Home Gen407 @ 2024-11-01-16:01

This commit is contained in:
Jonas Röger 2024-11-01 16:01:36 +01:00
parent 2b68075170
commit 2406455d4e
2 changed files with 2 additions and 15 deletions

View File

@ -88,7 +88,7 @@
", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +5%"
", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 5%-"
"$mod, 9, exec, ${pkgs.hyprlock}/bin/hyprlock"
"$mod, 0, exec, ${config.programs.wlogout.package}/bin/wlogout"
"$mod, 0, exec, ${pkgs.wlogout}/bin/wlogout -b 5"
]
++ (
# workspaces

View File

@ -1,16 +1,3 @@
{pkgs, ...}: {
{...}: {
programs.wlogout.enable = true;
programs.wlogout.package = pkgs.writeShellApplication {
name = "wlogout";
runtimeInputs = [pkgs.wlogout];
text = ''
# Check if wlogout is already running
if pgrep -x "wlogout" > /dev/null; then
pkill -x "wlogout"
exit 0
fi
# 5 buttons in a row
wlogout -b 5 &
'';
};
}