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 = [
./sway.nix
./swaylock.nix
./swaynag.nix
./mako.nix
./rofi.nix
./waybar.nix

View file

@ -114,9 +114,8 @@ in {
"XF86AudioPrev" = playerctl "previous";
# Exit
"${modifier}+Shift+e" = ''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" '';
"${modifier}+Shift+e" = ''exec swaynag -t exit -m "Do you really want to exit?" \
-B "Reboot" "reboot" -B "Shutdown" "poweroff" -b "Exit" "swaymsg exit"'';
# Workspaces
"${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
'';
}