mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Merge branch 'master' into dev
This commit is contained in:
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() {
|
||||
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 ;;
|
||||
*Relaunch*) uwsm stop ;;
|
||||
*Restart*) systemctl reboot ;;
|
||||
|
||||
Reference in New Issue
Block a user