Commit e8239d11593f

Vincent Demeester <vincent@sbr.pm>
2024-09-08 23:21:25
Some small updates on sway and desktop
- Remove some font - Small changes in sway Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent f036225
Changed files (2)
systems
modules
desktop
users
vincent
desktop
systems/modules/desktop/base.nix
@@ -57,28 +57,21 @@ in
         fira-mono
         font-awesome
         go-font
-        #hasklig
+	hack-font
         inconsolata
         inconsolata-nerdfont
-        #iosevka
-        #iosevka-comfy.comfy
         jetbrains-mono
         liberation_ttf
-	maple-mono
-	maple-mono-NF
         nerdfonts
         noto-fonts
         noto-fonts-cjk
         noto-fonts-emoji
         noto-fonts-extra
         overpass
-        #source-code-pro
-        sudo-font
         symbola
         twemoji-color-font
         ubuntu_font_family
         unifont
-        #victor-mono
       ];
     };
 
users/vincent/desktop/sway.nix
@@ -14,7 +14,7 @@ in
   wayland.windowManager.sway = {
     enable = true;
     wrapperFeatures.gtk = true;
-    systemdIntegration = true;
+    systemd.enable = true;
     extraSessionCommands = ''
       export SDL_VIDEODRIVER=wayland
       export QT_QPA_PLATFORM=wayland
@@ -183,6 +183,7 @@ in
         bindcode ${mod}+Shift+26 exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'"
         bindcode ${mod}+32 mode resize
         bindcode ${mod}+Shift+32 exec "${pkgs.swaylock}/bin/swaylock -i $HOME/desktop/pictures/lockscreen"
+	bindcode ${mod}+24 exec "notify-send --icon=battery --category=info --urgency=critical \"$(acpi)\""
 
         # switch to workspace
         bindcode ${mod}+10 workspace number 1