feat: add wlogout

This commit is contained in:
Youwen Wu 2024-07-12 00:32:37 -07:00
parent 740e3df15e
commit b36a714a1a
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -138,6 +138,10 @@
catppuccin.enable = true; catppuccin.enable = true;
}; };
programs.wlogout = {
enable = true;
};
wayland.windowManager.hyprland.enable = true; wayland.windowManager.hyprland.enable = true;
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
exec-once = exec-once =
@ -156,35 +160,23 @@
]; ];
bind = bind =
[ [
# Application Keybinds
"$mod, F, exec, librewolf" "$mod, F, exec, librewolf"
"$mod, T, exec, kitty" "$mod, T, exec, kitty"
"$mod, E, exec, dolphin" "$mod, E, exec, dolphin"
"$mod, R, exec, pavucontrol" "$mod, R, exec, pavucontrol"
# Window actions
"$mod, Q, killactive" "$mod, Q, killactive"
"$mod, W, togglefloating" "$mod, W, togglefloating"
"$mod, J, togglesplit"
# Move around
"$mod, $Left, movefocus, l" "$mod, $Left, movefocus, l"
"$mod, $Right, movefocus, r" "$mod, $Right, movefocus, r"
"$mod, $Up, movefocus, u" "$mod, $Up, movefocus, u"
"$mod, $Down, movefocus, d" "$mod, $Down, movefocus, d"
"$mod+Shift+Ctrl, $Left, movewindow, l"
"$mod+Shift+Ctrl, $Right, movewindow, r"
"$mod+Shift+Ctrl, $Up, movewindow, u"
"$mod+Shift+Ctrl, $Down, movewindow, d"
"$mod, J, togglesplit"
"$mod+Ctrl+Alt, $Right, movetoworkspace, r+1"
"$mod+Ctrl+Alt, $Left, movetoworkspace, r-1"
"$mod+Ctrl, $Right, workspace, r+1"
"$mod+Ctrl, $Left, workspace, r-1"
"$mod+Alt, S, movetoworkspacesilent, special"
"$mod, S, togglespecialworkspace"
"$mod, 1, workspace, 1" "$mod, 1, workspace, 1"
"$mod, 2, workspace, 2" "$mod, 2, workspace, 2"
"$mod, 3, workspace, 3" "$mod, 3, workspace, 3"
@ -196,9 +188,28 @@
"$mod, 9, workspace, 9" "$mod, 9, workspace, 9"
"$mod, 0, workspace, 10" "$mod, 0, workspace, 10"
"$mod, A, exec, pkill -x rofi || rofi -show drun" "$mod, S, togglespecialworkspace"
"$mod, P, exec, grim -g \"$(slurp)\" - | swappy -f -" # Move windows around
"$mod+Shift+Ctrl, $Left, movewindow, l"
"$mod+Shift+Ctrl, $Right, movewindow, r"
"$mod+Shift+Ctrl, $Up, movewindow, u"
"$mod+Shift+Ctrl, $Down, movewindow, d"
"$mod+Ctrl+Alt, $Right, movetoworkspace, r+1"
"$mod+Ctrl+Alt, $Left, movetoworkspace, r-1"
"$mod+Ctrl, $Right, workspace, r+1"
"$mod+Ctrl, $Left, workspace, r-1"
"$mod+Alt, S, movetoworkspacesilent, special"
# Utilities
"$mod, A, exec, pkill -x rofi || rofi -show drun" # Run rofi
"$mod, P, exec, grim -g \"$(slurp)\" - | swappy -f -" # Screenshot
"$mod, Backspace, exec, wlogout" # Screenshot
]; ];
bindm = [ bindm = [
"$mod, mouse:272, movewindow" "$mod, mouse:272, movewindow"