From 334d5272386c57df6e2dc3d41b5b4d8f586b266d Mon Sep 17 00:00:00 2001 From: Alexthemediocre <65747823+Alexthemediocre@users.noreply.github.com> Date: Tue, 10 Mar 2026 23:24:31 -0400 Subject: [PATCH 1/2] update power menu and readme to add support for other lockers --- README.md | 1 + ignis/modules/powermenu/powermenu.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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/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", From db22e5b8a1c29c811a9a0b88d0b8c91e4c32a134 Mon Sep 17 00:00:00 2001 From: Alexthemediocre <65747823+Alexthemediocre@users.noreply.github.com> Date: Tue, 10 Mar 2026 23:24:48 -0400 Subject: [PATCH 2/2] update default configs to add support for other lockers --- exodefaults/config.kdl | 2 +- exodefaults/hyprland.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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