diff options
author | Minijackson <minijackson@riseup.net> | 2024-03-29 17:22:00 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2024-03-29 17:22:00 +0100 |
commit | 66ceb02334f8f5b3a1160c44d42877b827ec711d (patch) | |
tree | 02733de9fa000fcb96d7efce65f32f31d2f50086 /usecases | |
parent | 893fc08e36affc721900a9be5a6538204b776696 (diff) | |
download | nixos-config-reborn-66ceb02334f8f5b3a1160c44d42877b827ec711d.tar.gz nixos-config-reborn-66ceb02334f8f5b3a1160c44d42877b827ec711d.zip |
usecases/graphical: add rofi-pass
Diffstat (limited to 'usecases')
-rw-r--r-- | usecases/desktop/graphical/rofi.nix | 9 | ||||
-rw-r--r-- | usecases/desktop/graphical/sway.nix | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/usecases/desktop/graphical/rofi.nix b/usecases/desktop/graphical/rofi.nix index 741e7da..f14c7ce 100644 --- a/usecases/desktop/graphical/rofi.nix +++ b/usecases/desktop/graphical/rofi.nix | |||
@@ -11,6 +11,15 @@ _inputs: { | |||
11 | rofi-calc | 11 | rofi-calc |
12 | ]; | 12 | ]; |
13 | 13 | ||
14 | pass = { | ||
15 | enable = true; | ||
16 | package = pkgs.rofi-pass-wayland; | ||
17 | extraConfig = '' | ||
18 | clip="clipboard" | ||
19 | help_color="${config.theme.colors.dominant}" | ||
20 | ''; | ||
21 | }; | ||
22 | |||
14 | # TODO: there is a better way | 23 | # TODO: there is a better way |
15 | theme = with config.theme.colors; | 24 | theme = with config.theme.colors; |
16 | builtins.toFile "theme.rasi" '' | 25 | builtins.toFile "theme.rasi" '' |
diff --git a/usecases/desktop/graphical/sway.nix b/usecases/desktop/graphical/sway.nix index cbe8d9d..509d8a7 100644 --- a/usecases/desktop/graphical/sway.nix +++ b/usecases/desktop/graphical/sway.nix | |||
@@ -158,6 +158,7 @@ _inputs: { | |||
158 | "${modifier}+m" = "exec ${pkgs.swaylock}/bin/swaylock"; | 158 | "${modifier}+m" = "exec ${pkgs.swaylock}/bin/swaylock"; |
159 | 159 | ||
160 | "${modifier}+c" = "exec rofi -show calc -modi calc -no-sort -no-persist-history -calc-command 'echo -n {result} | wl-copy'"; | 160 | "${modifier}+c" = "exec rofi -show calc -modi calc -no-sort -no-persist-history -calc-command 'echo -n {result} | wl-copy'"; |
161 | "${modifier}+p" = "exec rofi-pass"; | ||
161 | 162 | ||
162 | "XF86AudioRaiseVolume" = "exec ${pkgs.pamixer}/bin/pamixer -i 5"; | 163 | "XF86AudioRaiseVolume" = "exec ${pkgs.pamixer}/bin/pamixer -i 5"; |
163 | "XF86AudioLowerVolume" = "exec ${pkgs.pamixer}/bin/pamixer -d 5"; | 164 | "XF86AudioLowerVolume" = "exec ${pkgs.pamixer}/bin/pamixer -d 5"; |