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

View file

@ -9,6 +9,7 @@ in {
options.custom.menus = {
enable = mkOption {default = config.custom.full;};
show = mkOption {default = "";};
calculator.show = mkOption {default = "";};
clipboard = {
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-pink-dark.rasi
***/
@ -11,52 +11,62 @@ https://github.com/newmanls/rofi-themes-collection/blob/master/themes/rounded-pi
padding: 0;
spacing: 0;
text-color: #93a1a1;
vertical-align: 0.5;
}
window {
background-color: #002b36;
border-color: #073642;
border-radius: 30px;
border-radius: 32px;
location: north;
width: 750;
y-offset: calc(50% - 25% / 2);
}
mainbox {
children: [inputbox, listview];
padding: 4px;
}
inputbar {
inputbox {
background-color: #073642;
border-radius: 24px;
children: [inputbar, message];
expand: false;
}
inputbar {
background-color: #002b36;
border-color: #d33682;
border-radius: 30px;
padding: 8px 8px 8px 4px;
spacing: 4px;
border-radius: 32px;
children: [entry, prompt];
padding: 4px;
}
prompt {
font: 'monospace 16';
padding: 4px 4px 4px 8px;
background-color: #073642;
border-radius: 32px;
font: 'monospace 18';
padding: 4px 18px;
text-color: #93a1a1;
vertical-align: 0.5;
}
entry {
font: 'monospace 18';
margin: 4px 12px;
placeholder-color: #586e7580;
vertical-align: 0.5;
}
message {
padding: 8px 8px 4px 8px;
padding: 16px;
}
textbox {
font: 'sans-serif 10';
font: 'monospace 16';
horizontal-align: 0.5;
}
listview {
background-color: transparent;
columns: 1;
fixed-height: false;
lines: 5;
@ -64,9 +74,9 @@ listview {
}
element {
border-radius: 30px;
border-radius: 32px;
padding: 12px;
spacing: 8px;
spacing: 4px;
}
element selected normal,
@ -76,10 +86,10 @@ element selected active {
element-icon {
size: 32px;
vertical-align: 0.5;
}
element-text {
text-color: inherit;
vertical-align: 0.5;
highlight: #d33682;
margin: 4px;
tab-stops: [700px];
}

View file

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

View file

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