Configure the appearance of swaynag

This commit is contained in:
Kiana Sheibani 2023-09-21 23:38:42 -04:00
parent e8f837dd65
commit a41f4be8fb
3 changed files with 19 additions and 3 deletions

View file

@ -8,6 +8,7 @@
imports = [ imports = [
./sway.nix ./sway.nix
./swaylock.nix ./swaylock.nix
./swaynag.nix
./mako.nix ./mako.nix
./rofi.nix ./rofi.nix
./waybar.nix ./waybar.nix

View file

@ -114,9 +114,8 @@ in {
"XF86AudioPrev" = playerctl "previous"; "XF86AudioPrev" = playerctl "previous";
# Exit # Exit
"${modifier}+Shift+e" = ''exec swaynag -t warning -m \ "${modifier}+Shift+e" = ''exec swaynag -t exit -m "Do you really want to exit?" \
"You pressed the exit shortcut. Do you really want to exit sway? \ -B "Reboot" "reboot" -B "Shutdown" "poweroff" -b "Exit" "swaymsg exit"'';
This will end your Wayland session." -b "Yes, exit sway" "swaymsg exit" '';
# Workspaces # Workspaces
"${modifier}+1" = "workspace 10:browser"; "${modifier}+1" = "workspace 10:browser";

View file

@ -0,0 +1,16 @@
{ pkgs, ... }:
{
xdg.configFile."swaynag/config".text =
''
font=JetBrainsMono 10
layer=top
[exit]
background=111320D0
text=a9b1d6
border-bottom=7BC5E4
border-bottom-size=1
button-background=282E49F0
button-border-size=2
'';
}