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