🎨 feat(rofi): Fix rofi conf format; install rofi-calc

This commit is contained in:
punkfairie 2024-02-25 11:04:09 -08:00
parent 509f21acfb
commit 4e945ac6c8
5 changed files with 182 additions and 97 deletions

View file

@ -0,0 +1,84 @@
[General]
version=4.9.0
save_mode_on_exit=1
save_definitions_on_exit=1
clear_history_on_exit=0
ignore_locale=0
colorize=1
auto_update_exchange_rates=-1
spacious=1
vertical_space=1
excessive_parenthesis=0
short_multiplication=1
use_unicode_signs=1
use_unicode_exponents=1
lower_case_numbers=0
duodecimal_symbols=0
lower_case_e=0
imaginary_j=0
base_display=1
twos_complement=1
hexadecimal_twos_complement=0
spell_out_logical_operators=1
digit_grouping=0
decimal_comma=-1
dot_as_separator=-1
comma_as_separator=0
multiplication_sign=2
division_sign=0
[Mode]
min_deci=0
use_min_deci=0
max_deci=2
use_max_deci=0
precision=10
interval_arithmetic=1
interval_display=0
min_exp=-1
negative_exponents=0
sort_minus_last=1
number_fraction_format=-1
complex_number_form=0
use_prefixes=1
use_prefixes_for_all_units=0
use_prefixes_for_currencies=0
use_binary_prefixes=0
abbreviate_names=1
all_prefixes_enabled=0
denominator_prefix_enabled=1
place_units_separately=1
auto_post_conversion=3
mixed_units_conversion=3
local_currency_conversion=1
number_base=10
number_base_expression=10
read_precision=0
assume_denominators_nonzero=1
warn_about_denominators_assumed_nonzero=1
structuring=1
angle_unit=1
caret_as_xor=0
concise_uncertainty_input=0
functions_enabled=1
variables_enabled=1
calculate_variables=1
calculate_functions=1
variable_units_enabled=1
sync_units=1
unknownvariables_enabled=0
units_enabled=1
allow_complex=1
allow_infinite=1
indicate_infinite_series=0
show_ending_zeroes=1
rounding_mode=0
approximation=-1
interval_calculation=1
in_rpn_mode=0
rpn_syntax=0
limit_implicit_multiplication=0
parsing_mode=0
default_assumption_type=4
default_assumption_sign=0

View file

@ -2,8 +2,8 @@ configuration {
display-drun: "Applications:"; display-drun: "Applications:";
display-window: "Windows:"; display-window: "Windows:";
drun-display-format: "{name}"; drun-display-format: "{name}";
font: "JetBrainsMono Nerd Font Medium 10"; font: "FiraCode Nerd Font Propo 10";
modi: "window,run,drun"; modi: "window,run,drun,calc";
show-icons: true; show-icons: true;
} }

View file

@ -1,3 +1,3 @@
* { * {
font: "Iosevka 10"; font: "FiraCode Nerd Font 10";
} }

View file

@ -1,150 +1,150 @@
configuration { configuration {
show-icons: true; show-icons: true;
display-drun: ""; display-drun: "";
drun-display-format: "{icon} {name}"; drun-display-format: "{icon} {name}";
disable-history: false; disable-history: false;
click-to-exit: true; click-to-exit: true;
location: 0; location: 0;
icon-theme: "Tela-circle-dark"; icon-theme: "Papirus";
} }
@import "font.rasi" @import "font.rasi"
@import "colors.rasi" @import "colors.rasi"
window { window {
transparency: "real"; transparency: "real";
background-color: @BG; background-color: @BG;
text-color: @FG; text-color: @FG;
border: 2px; border: 2px;
border-color: @BDR; border-color: @BDR;
border-radius: 10px; border-radius: 10px;
width: 500px; width: 500px;
anchor: center; anchor: center;
x-offset: 0; x-offset: 0;
y-offset: 0; y-offset: 0;
} }
prompt { prompt {
enabled: true; enabled: true;
padding: 8px; padding: 8px;
background-color: @BG; background-color: @BG;
text-color: @IMG; text-color: @IMG;
} }
textbox-prompt-colon { textbox-prompt-colon {
expand: false; expand: false;
str: ""; str: "";
border-radius: 100%; border-radius: 100%;
background-color: @SEL; background-color: @SEL;
text-color: @FG; text-color: @FG;
padding: 8px 12px 8px 12px; padding: 8px 12px 8px 12px;
font: "Iosevka Nerd Font 10"; font: "FiraCode Nerd Font 10";
} }
entry { entry {
background-color: @BG; background-color: @BG;
text-color: @FG; text-color: @FG;
placeholder-color: @FG; placeholder-color: @FG;
expand: true; expand: true;
horizontal-align: 0; horizontal-align: 0;
placeholder: "Search..."; placeholder: "Search...";
blink: true; blink: true;
border: 2px 2px 2px 2px; border: 2px 2px 2px 2px;
border-color: @BDR; border-color: @BDR;
border-radius: 10px; border-radius: 10px;
padding: 8px; padding: 8px;
} }
inputbar { inputbar {
children: [ textbox-prompt-colon, prompt, entry ]; children: [ textbox-prompt-colon, prompt, entry ];
background-color: @BG; background-color: @BG;
text-color: @FG; text-color: @FG;
expand: false; expand: false;
border: 0px 0px 0px 0px; border: 0px 0px 0px 0px;
border-radius: 0px; border-radius: 0px;
border-color: @BDR; border-color: @BDR;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
padding: 0px; padding: 0px;
position: center; position: center;
} }
case-indicator { case-indicator {
background-color: @BG; background-color: @BG;
text-color: @FG; text-color: @FG;
spacing: 0; spacing: 0;
} }
listview { listview {
background-color: @BG; background-color: @BG;
columns: 1; columns: 1;
lines: 7; lines: 7;
spacing: 4px; spacing: 4px;
cycle: false; cycle: false;
dynamic: true; dynamic: true;
layout: vertical; layout: vertical;
} }
mainbox { mainbox {
background-color: @BG; background-color: @BG;
children: [ inputbar, listview ]; children: [ inputbar, listview ];
spacing: 15px; spacing: 15px;
padding: 15px; padding: 15px;
} }
element { element {
background-color: @BG; background-color: @BG;
text-color: @FG; text-color: @FG;
orientation: horizontal; orientation: horizontal;
border-radius: 4px; border-radius: 4px;
padding: 6px 6px 6px 6px; padding: 6px 6px 6px 6px;
} }
element-icon { element-icon {
background-color: inherit; background-color: inherit;
text-color: inherit; text-color: inherit;
horizontal-align: 0.5; horizontal-align: 0.5;
vertical-align: 0.5; vertical-align: 0.5;
size: 24px; size: 24px;
border: 0px; border: 0px;
} }
element-text { element-text {
background-color: inherit; background-color: inherit;
text-color: inherit; text-color: inherit;
expand: true; expand: true;
horizontal-align: 0; horizontal-align: 0;
vertical-align: 0.5; vertical-align: 0.5;
margin: 2px 0px 2px 2px; margin: 2px 0px 2px 2px;
} }
element normal.urgent, element normal.urgent,
element alternate.urgent { element alternate.urgent {
background-color: @UGT; background-color: @UGT;
text-color: @FG; text-color: @FG;
border-radius: 9px; border-radius: 9px;
} }
element normal.active, element normal.active,
element alternate.active { element alternate.active {
background-color: @BGA; background-color: @BGA;
text-color: @FG; text-color: @FG;
} }
element selected { element selected {
background-color: @BDR; background-color: @BDR;
text-color: @SEL; text-color: @SEL;
border: 0px 0px 0px 0px; border: 0px 0px 0px 0px;
border-radius: 10px; border-radius: 10px;
border-color: @BDR; border-color: @BDR;
} }
element selected.urgent { element selected.urgent {
background-color: @UGT; background-color: @UGT;
text-color: @FG; text-color: @FG;
} }
element selected.active { element selected.active {
background-color: @BGA; background-color: @BGA;
color: @FG; color: @FG;
} }

1
.gitignore vendored
View file

@ -71,3 +71,4 @@ data/
.gnupg/ .gnupg/
.config/nvim/lazy-lock.json .config/nvim/lazy-lock.json
.config/browsh/ .config/browsh/
.config/qalculate/qalc.history