{ config, ... }: { programs.wlogout = { enable = true; layout = [ { label = "lock"; action = "swaylock"; text = "Lock"; circular = true; keybind = "l"; } { label = "hibernate"; action = "systemctl hibernate"; text = "Hibernate"; circular = true; keybind = "h"; } { label = "logout"; action = "loginctl terminate-user $USER"; text = "Logout"; circular = true; keybind = "e"; } { label = "shutdown"; action = "systemctl poweroff"; text = "Shutdown"; circular = true; keybind = "s"; } { label = "suspend"; action = "systemctl suspend"; text = "Suspend"; circular = true; keybind = "u"; } { label = "reboot"; action = "systemctl reboot"; text = "Reboot"; circular = true; keybind = "r"; } ]; }; xdg.configFile."wlogout/style.css" = { enable = true; target = "./wlogout/style.css"; text = '' #lock { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/common/wlogout/lock.png"); } #logout { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/common/wlogout/logout.png"); } #suspend { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/common/wlogout/suspend.png"); } #hibernate { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/common/wlogout/hibernate.png"); } #shutdown { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/common/wlogout/shutdown.png"); } #reboot { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/common/wlogout/reboot.png"); } ''; }; }