diff --git a/README.md b/README.md index d36f639..4c7d95a 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ https://github.com/user-attachments/assets/78e35d82-5fe9-4986-b545-80fc59bc4784 ### Optional - **Lock Screen**: [Hyprlock](https://github.com/hyprwm/hyprlock) - Automatically themed by Exo + - Locking (not theming) for other screen lockers is supported via dbus events (e.g. with `loginctl lock-session`) - **Screen Recording**: `gpu-screen-recorder` - **Region Selection**: `slurp` (for region recording) diff --git a/exodefaults/config.kdl b/exodefaults/config.kdl index 4de9f42..6ebef22 100644 --- a/exodefaults/config.kdl +++ b/exodefaults/config.kdl @@ -104,7 +104,7 @@ binds { // Suggested binds for running programs: terminal, app launcher, screen locker. Mod+T { spawn "kitty"; } Mod+D { spawn "ignis" "toggle-window" "Launcher"; } - Mod+L { spawn "hyprlock"; } + Mod+L { spawn-sh "hyprlock || loginctl lock-session"; } Mod+E { spawn "nautilus"; } Mod+Escape { spawn "ignis" "toggle-window" "PowerMenu"; } Mod+I { spawn "ignis" "toggle-window" "Settings"; } diff --git a/exodefaults/hyprland.conf b/exodefaults/hyprland.conf index adcd9a3..0f2f21a 100644 --- a/exodefaults/hyprland.conf +++ b/exodefaults/hyprland.conf @@ -75,7 +75,7 @@ bind = $mainMod SHIFT, F, fullscreen, bind = $mainMod, Escape, exec, ignis toggle-window PowerMenu bind = $mainMod, P, pseudo, # dwindle bind = $mainMod, J, togglesplit, # dwindle -bind = $mainMod, L, exec, hyprlock +bind = $mainMod, L, exec, hyprlock || loginctl lock-session bind = $mainMod SHIFT, C, exec, hyprpicker -a bind = $mainMod SHIFT, W, exec, ignis toggle-window Settings bind = $mainMod, I, exec, ignis inspector diff --git a/ignis/modules/powermenu/powermenu.py b/ignis/modules/powermenu/powermenu.py index 2b0eef9..76c0367 100644 --- a/ignis/modules/powermenu/powermenu.py +++ b/ignis/modules/powermenu/powermenu.py @@ -50,7 +50,11 @@ def __init__(self): label="Reboot", command="reboot || systemctl reboot", ), - PowerMenuButton(icon="lock", label="Lock Screen", command="hyprlock"), + PowerMenuButton( + icon="lock", + label="Lock Screen", + command="hyprlock || loginctl lock-session", + ), PowerMenuButton( icon="logout", label="Log Out",