shell: alias zzz: lock before

This commit is contained in:
lupan committed 2026-10-03 09:43:11 +02:00
1 parent c96461a898
commit 26586f9283
1 file changed
+11
+11
View File
@@ -18,6 +18,17 @@ alias nocaps='setxkbmap pl -option ctrl:nocaps'
alias fixdp='xrandr --output DP-0 --right-of DP-2'
alias a4='COLORTERM=truecolor TERM=xterm-256color a4'
zzz() {
sudo echo
if [[ -n "$WAYLAND_DISPLAY" ]]; then
swaylock &
else
slock &
fi
sleep 1
sudo /usr/bin/zzz
}
a4i() {
local Q="${@:-}"
local NAME=$(a4 -l | grep '^ ' | fzy -q "$Q" | tr '\t' ' ' | cut -d' ' -f6-)