summaryrefslogtreecommitdiffstats
path: root/usecases
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2023-02-05 18:45:26 +0100
committerMinijackson <minijackson@riseup.net>2023-02-05 18:45:26 +0100
commita97959badd758df26329fd269a2e9c471bba54a4 (patch)
tree5e5b114185eb78c5c913dba680541b590d6435ac /usecases
parent985588f02c735ba545bbbf32e8d1490d27bb4ef5 (diff)
downloadnixos-config-reborn-a97959badd758df26329fd269a2e9c471bba54a4.tar.gz
nixos-config-reborn-a97959badd758df26329fd269a2e9c471bba54a4.zip
sway: configure fnott as notification daemon
Diffstat (limited to 'usecases')
-rw-r--r--usecases/desktop/graphical/sway.nix38
1 files changed, 32 insertions, 6 deletions
diff --git a/usecases/desktop/graphical/sway.nix b/usecases/desktop/graphical/sway.nix
index 96ea14b..9469473 100644
--- a/usecases/desktop/graphical/sway.nix
+++ b/usecases/desktop/graphical/sway.nix
@@ -1,8 +1,6 @@
1_inputs: { 1_inputs: {
2 config,
3 lib, 2 lib,
4 pkgs, 3 pkgs,
5 system,
6 ... 4 ...
7}: { 5}: {
8 services.greetd = { 6 services.greetd = {
@@ -152,6 +150,10 @@ _inputs: {
152 "${modifier}+Shift+ccedilla" = "move container to workspace 9"; 150 "${modifier}+Shift+ccedilla" = "move container to workspace 9";
153 "${modifier}+Shift+agrave" = "move container to workspace 10"; 151 "${modifier}+Shift+agrave" = "move container to workspace 10";
154 152
153 "${modifier}+comma" = "exec fnottctl dismiss";
154 "${modifier}+Shift+comma" = "exec fnottctl dismiss all";
155 "${modifier}+period" = "exec fnottctl actions";
156
155 "${modifier}+m" = "exec ${pkgs.swaylock}/bin/swaylock"; 157 "${modifier}+m" = "exec ${pkgs.swaylock}/bin/swaylock";
156 158
157 "${modifier}+c" = "exec rofi -show calc -modi calc -no-sort -no-persist-history -calc-command 'echo -n {result} | wl-copy'"; 159 "${modifier}+c" = "exec rofi -show calc -modi calc -no-sort -no-persist-history -calc-command 'echo -n {result} | wl-copy'";
@@ -170,10 +172,6 @@ _inputs: {
170 output."*".bg = "${../../../res/wallpapers/wallpaper-1920x1080-kernel-card-black.png} fill"; 172 output."*".bg = "${../../../res/wallpapers/wallpaper-1920x1080-kernel-card-black.png} fill";
171 173
172 startup = [ 174 startup = [
173 {
174 command = "${pkgs.mako}/bin/mako";
175 always = true;
176 }
177 {command = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";} 175 {command = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";}
178 ]; 176 ];
179 177
@@ -186,6 +184,34 @@ _inputs: {
186 }; 184 };
187 }; 185 };
188 186
187 services.fnott = {
188 enable = true;
189 extraFlags = ["-s"];
190 settings = let
191 color = c: (lib.removePrefix "#" c) + "ff";
192 in
193 with osConfig.theme.colors; {
194 main = {
195 title-color = color foreground;
196 summary-color = color foreground;
197 body-color = color foreground;
198
199 border-size = 1;
200 border-color = color background0;
201
202 min-width = 300;
203
204 notification-margin = 5;
205
206 selection-helper = "${config.programs.rofi.finalPackage}/bin/rofi -dmenu -no-custom";
207 };
208
209 normal.background = color lightBackground;
210 low.background = color background;
211 critical.background = color brightRed;
212 };
213 };
214
189 services.wlsunset = { 215 services.wlsunset = {
190 enable = true; 216 enable = true;
191 latitude = "48.864716"; 217 latitude = "48.864716";