1
1
Fork 0

Compare commits

...

4 commits

Author SHA1 Message Date
3985ebd1d5
rbw: disable keybind help
Signed-off-by: Myned <dev@bjork.tech>
2025-02-10 15:10:57 -06:00
e9de99ad9f
rofi: modify theme
Signed-off-by: Myned <dev@bjork.tech>
2025-02-10 15:10:33 -06:00
3304110242
menu: add calculator option
Signed-off-by: Myned <dev@bjork.tech>
2025-02-10 15:02:15 -06:00
b918f88e21
niri: modify binds
Signed-off-by: Myned <dev@bjork.tech>
2025-02-10 15:01:41 -06:00
5 changed files with 48 additions and 35 deletions

View file

@ -130,6 +130,7 @@ in {
(key "M" "Ctrl+Alt" (spawn [pkill "youtube-music"])) (key "M" "Ctrl+Alt" (spawn [pkill "youtube-music"]))
(key "M" "Mod" (spawn youtube-music)) (key "M" "Mod" (spawn youtube-music))
(key "Minus" "Mod" (spawn [swayosd-client "--output-volume" "lower"])) (key "Minus" "Mod" (spawn [swayosd-client "--output-volume" "lower"]))
(key "N" "Mod" (spawn networkmanager_dmenu))
(key "O" "Mod" (spawn [loupe "/tmp/wallpaper.png"])) (key "O" "Mod" (spawn [loupe "/tmp/wallpaper.png"]))
(key "P" "Ctrl+Alt" (spawn [pkill "bitwarden"])) (key "P" "Ctrl+Alt" (spawn [pkill "bitwarden"]))
(key "P" "Mod" (spawn [bash "-c" config.custom.menus.vault.show])) (key "P" "Mod" (spawn [bash "-c" config.custom.menus.vault.show]))
@ -180,7 +181,7 @@ in {
#// (key "Shift_L" "Mod" focus-workspace-previous) #// (key "Shift_L" "Mod" focus-workspace-previous)
# TODO: Use "Super_L" when fixed # TODO: Use "Super_L" when fixed
(key "Space" "Mod" (spawn [bash "-c" config.custom.menus.show])) (key "Space" "Mod" (spawn [bash "-c" config.custom.menus.show]))
(key "Space" "Mod+Ctrl+Shift" (spawn networkmanager_dmenu)) (key "Space" "Mod+Ctrl" (spawn [bash "-c" config.custom.menus.calculator.show]))
(key "Space" "Mod+Shift" (spawn [bash "-c" config.custom.menus.search.show])) (key "Space" "Mod+Shift" (spawn [bash "-c" config.custom.menus.search.show]))
# Media keys # Media keys

View file

@ -9,6 +9,7 @@ in {
options.custom.menus = { options.custom.menus = {
enable = mkOption {default = config.custom.full;}; enable = mkOption {default = config.custom.full;};
show = mkOption {default = "";}; show = mkOption {default = "";};
calculator.show = mkOption {default = "";};
clipboard = { clipboard = {
clear = mkOption {default = "";}; clear = mkOption {default = "";};

View file

@ -1,5 +1,5 @@
/*** /***
https://github.com/lbonn/rofi/blob/wayland/doc/rofi-theme.5.markdown https://davatorium.github.io/rofi/current/rofi-theme.5/
https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-common.rasi https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-common.rasi
https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pink-dark.rasi https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pink-dark.rasi
***/ ***/
@ -11,52 +11,62 @@ https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pi
padding: 0; padding: 0;
spacing: 0; spacing: 0;
text-color: #93a1a1; text-color: #93a1a1;
vertical-align: 0.5;
} }
window { window {
background-color: #002b36; background-color: #002b36;
border-color: #073642; border-color: #073642;
border-radius: 30px; border-radius: 32px;
location: north; location: north;
width: 750; width: 750;
y-offset: calc(50% - 25% / 2); y-offset: calc(50% - 25% / 2);
} }
mainbox { mainbox {
children: [inputbox, listview];
padding: 4px; padding: 4px;
} }
inputbar { inputbox {
background-color: #073642; background-color: #073642;
border-radius: 24px;
children: [inputbar, message];
expand: false;
}
inputbar {
background-color: #002b36;
border-color: #d33682; border-color: #d33682;
border-radius: 30px; border-radius: 32px;
padding: 8px 8px 8px 4px; children: [entry, prompt];
spacing: 4px; padding: 4px;
} }
prompt { prompt {
font: 'monospace 16'; background-color: #073642;
padding: 4px 4px 4px 8px; border-radius: 32px;
font: 'monospace 18';
padding: 4px 18px;
text-color: #93a1a1; text-color: #93a1a1;
vertical-align: 0.5;
} }
entry { entry {
font: 'monospace 18'; font: 'monospace 18';
margin: 4px 12px;
placeholder-color: #586e7580; placeholder-color: #586e7580;
vertical-align: 0.5;
} }
message { message {
padding: 8px 8px 4px 8px; padding: 16px;
} }
textbox { textbox {
font: 'sans-serif 10'; font: 'monospace 16';
horizontal-align: 0.5;
} }
listview { listview {
background-color: transparent;
columns: 1; columns: 1;
fixed-height: false; fixed-height: false;
lines: 5; lines: 5;
@ -64,9 +74,9 @@ listview {
} }
element { element {
border-radius: 30px; border-radius: 32px;
padding: 12px; padding: 12px;
spacing: 8px; spacing: 4px;
} }
element selected normal, element selected normal,
@ -76,10 +86,10 @@ element selected active {
element-icon { element-icon {
size: 32px; size: 32px;
vertical-align: 0.5;
} }
element-text { element-text {
text-color: inherit; highlight: #d33682;
vertical-align: 0.5; margin: 4px;
tab-stops: [700px];
} }

View file

@ -25,7 +25,8 @@ in {
menus = let menus = let
quit = "${pkill} --exact rofi"; quit = "${pkill} --exact rofi";
in { in {
show = "${quit} || ${rofi} -show combi -show-icons"; show = "${quit} || ${rofi} -show combi -show-icons -theme-str 'prompt { enabled: false; }'";
calculator.show = "${quit} || ${rofi} -show calc";
clipboard = { clipboard = {
show = "${quit} || ${rofi} -show clipboard -show-icons"; show = "${quit} || ${rofi} -show clipboard -show-icons";
@ -33,10 +34,10 @@ in {
}; };
dmenu.show = "${quit} || ${rofi} -dmenu"; dmenu.show = "${quit} || ${rofi} -dmenu";
emoji.show = "${quit} || ${rofimoji} --prompt 󰞅"; emoji.show = "${quit} || ${rofimoji} --prompt 󰱰";
network.show = "${quit} || ${rofi} -dmenu -p "; network.show = "${quit} || ${rofi} -dmenu -p 󰛳";
search.show = ""; search.show = "";
vault.show = "${quit} || ${rofi-rbw} --prompt "; vault.show = "${quit} || ${rofi-rbw} --prompt 󰌾";
}; };
services = { services = {
@ -57,36 +58,35 @@ in {
enable = true; enable = true;
# https://github.com/lbonn/rofi # https://github.com/lbonn/rofi
# https://github.com/lbonn/rofi/tree/wayland/doc
package = pkgs.rofi-wayland; # Wayland fork package = pkgs.rofi-wayland; # Wayland fork
plugins = with pkgs; [ plugins = with pkgs; [
rofi-calc # https://github.com/svenstaro/rofi-calc rofi-calc # https://github.com/svenstaro/rofi-calc
]; ];
# https://davatorium.github.io/rofi/themes/themes/
#?? rofi-theme-selector #?? rofi-theme-selector
theme = "custom"; theme = "custom";
# https://github.com/lbonn/rofi/blob/wayland/CONFIG.md # https://davatorium.github.io/rofi/current/rofi.1/
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi.1.markdown
# https://www.nerdfonts.com/cheat-sheet # https://www.nerdfonts.com/cheat-sheet
extraConfig = { extraConfig = {
combi-hide-mode-prefix = true; combi-hide-mode-prefix = true;
combi-modes = ["drun" "run" "calc"]; combi-modes = ["drun" "run"];
cycle = false; cycle = false;
display-calc = "󱖦"; display-calc = "";
display-clipboard = "󰅌"; display-clipboard = "";
display-combi = ""; display-combi = "";
display-dmenu = "󰗧"; display-dmenu = "󰗧";
display-drun = ""; display-drun = "󱗼";
display-keys = ""; display-keys = "󰌌";
display-run = ""; display-run = "";
display-ssh = ""; display-ssh = "";
drun-display-format = "{name}"; # Display only names drun-display-format = "{name}"; # Display only names
drun-match-fields = "name"; # Disable matching of invisible desktop attributes drun-match-fields = "name"; # Disable matching of invisible desktop attributes
matching = "prefix"; # Match beginning of words matching = "prefix"; # Match beginning of words
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi.1.markdown#available-modes # https://davatorium.github.io/rofi/current/rofi.1/#available-modes
modes = [ modes = [
"calc" "calc"
"clipboard" "clipboard"
@ -100,7 +100,7 @@ in {
}; };
xdg.configFile = { xdg.configFile = {
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi-theme.5.markdown # https://davatorium.github.io/rofi/current/rofi-theme.5/
"rofi/custom.rasi".text = '' "rofi/custom.rasi".text = ''
${readFile ./custom.rasi} ${readFile ./custom.rasi}
@ -109,7 +109,7 @@ in {
} }
''; '';
# https://github.com/lbonn/rofi/blob/wayland/doc/rofi-script.5.markdown # https://davatorium.github.io/rofi/current/rofi-script.5/
# https://github.com/sentriz/cliphist?tab=readme-ov-file#picker-examples # https://github.com/sentriz/cliphist?tab=readme-ov-file#picker-examples
"rofi/scripts/clipboard" = { "rofi/scripts/clipboard" = {
#// source = getExe' hm.services.cliphist.package "cliphist-rofi-img"; #// source = getExe' hm.services.cliphist.package "cliphist-rofi-img";

View file

@ -38,6 +38,7 @@ in {
xdg.configFile = { xdg.configFile = {
"rofi-rbw.rc".text = '' "rofi-rbw.rc".text = ''
action=copy action=copy
no-help=true
selector=${config.custom.menu} selector=${config.custom.menu}
''; '';
}; };