Add --daemonize flag to swaylock
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
set LOCKPROG swaylock
|
||||
set OPTIONAL_CMDS grep sed grim lockscreen-blur
|
||||
set CONFIG "$HOME/.config/sway/swaylock.config"
|
||||
set FALLBACK_ARGS --config $CONFIG --color "302f3b"
|
||||
set DEFAULT_ARGS --daemonize --color "302f3b" --config $CONFIG
|
||||
set BLUR_FACTOR 40
|
||||
|
||||
# check if lock program is running
|
||||
@ -16,7 +16,7 @@ end
|
||||
for cmd in $OPTIONAL_CMDS
|
||||
if not command -v $cmd &>/dev/null
|
||||
echo "$cmd could not be found, falling back to basic mode."
|
||||
$LOCKPROG $FALLBACK_ARGS
|
||||
$LOCKPROG $DEFAULT_ARGS
|
||||
exit 0
|
||||
end
|
||||
end
|
||||
@ -43,5 +43,5 @@ end
|
||||
|
||||
wait
|
||||
|
||||
$LOCKPROG --color "302f3b" --config $HOME/.config/sway/swaylock.config $images
|
||||
$LOCKPROG $DEFAULT_ARGS $images
|
||||
|
||||
|
||||
Reference in New Issue
Block a user