screenlock: Script for screenlock

This script supports dynamic wallpaper - uses the current random
wallpaper that was already applied by random-wallpaper script.
This commit is contained in:
Harzo 2023-05-30 23:12:15 +02:00
parent fba9579488
commit 3029ae7879
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ bind = $smod, down, movewindow, d
bind = $mmod, Return, exec, footclient
bind = $mmod, F, exec, pkill fsearch; fsearch
bind = $smod, D, exec, wofi --show drun
bind = $smod, X, exec, swaylock
bind = $smod, X, exec, ~/.scripts/system/screenlock
bind = $smod, S, exec, ~/.scripts/grimshot
bind = , Print, exec, ~/.scripts/grimshot -f
bind = $smod, Escape, exec, ~/.scripts/system/wofi-session

2
.scripts/system/screenlock Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
swaylock -i "/run/user/$(id -u)/.current-wallpaper"