Merge branch 'master' into dev
This commit is contained in:
commit
abc0005893
12
bin/omarchy-lock-screen
Executable file
12
bin/omarchy-lock-screen
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Lock the screen
|
||||||
|
pidof hyprlock || hyprlock
|
||||||
|
|
||||||
|
# Ensure 1password is locked
|
||||||
|
if pgrep -x "1password" >/dev/null; then
|
||||||
|
1password --lock
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Avoid running screensaver when locked
|
||||||
|
pkill -f "alacritty --class Screensaver"
|
@ -273,7 +273,7 @@ show_update_config_menu() {
|
|||||||
|
|
||||||
show_system_menu() {
|
show_system_menu() {
|
||||||
case $(menu "System" " Lock\n Suspend\n Relaunch\n Restart\n Shutdown") in
|
case $(menu "System" " Lock\n Suspend\n Relaunch\n Restart\n Shutdown") in
|
||||||
*Lock*) hyprlock ;;
|
*Lock*) $OMARCHY_BIN_PATH/omarchy-lock-screen ;;
|
||||||
*Suspend*) systemctl suspend ;;
|
*Suspend*) systemctl suspend ;;
|
||||||
*Relaunch*) uwsm stop ;;
|
*Relaunch*) uwsm stop ;;
|
||||||
*Restart*) systemctl reboot ;;
|
*Restart*) systemctl reboot ;;
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
general {
|
general {
|
||||||
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
|
lock_cmd = omarchy-lock-screen # lock screen and 1password
|
||||||
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
before_sleep_cmd = loginctl lock-session # lock before suspend.
|
||||||
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
|
||||||
on_lock_cmd = pkill -f "alacritty --class Screensaver" # avoid running screensaver when locked
|
|
||||||
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking
|
on_unlock_cmd = omarchy-restart-waybar # prevent stacking of waybar when waking
|
||||||
}
|
}
|
||||||
|
|
||||||
|
5
migrations/1754679822.sh
Normal file
5
migrations/1754679822.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
echo "Lock 1password on screen lock"
|
||||||
|
|
||||||
|
if ! grep -q "omarchy-lock-screen" ~/.config/hypr/hypridle.conf; then
|
||||||
|
~/.local/share/omarchy/bin/omarchy-refresh-hypridle
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user