commit e8239d11593f152c6d6d857b0db0a2c21e80e2e1
parent f0362253ed8648427d357aa83c103961a634f101
Author: Vincent Demeester <vincent@sbr.pm>
Date: Sun, 8 Sep 2024 23:21:25 +0200
Some small updates on sway and desktop
- Remove some font
- Small changes in sway
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/systems/modules/desktop/base.nix b/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
];
};
diff --git a/users/vincent/desktop/sway.nix b/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