Files
df/tree/.local/bin/screenlock

13 lines
203 B
Fish
Executable File

#!/usr/bin/fish
# configured for wayland
set LOCKPROG hyprlock
# check if lock program is running
if ps -e | grep " $LOCKPROG\$"
echo "$LOCKPROG is already running"
exit 1
end
$LOCKPROG $argv