Configure the appearance of swaynag
This commit is contained in:
parent
e8f837dd65
commit
a41f4be8fb
|
@ -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
|
||||||
|
|
|
@ -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";
|
||||||
|
|
16
home-manager/wayland/swaynag.nix
Normal file
16
home-manager/wayland/swaynag.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue