mirror of
https://github.com/Astatin3/dotfiles.git
synced 2026-06-09 00:07:59 -06:00
Keep things up-to-date
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
if test -f "/tmp/wallpaper-blur.png"; then
|
||||
exit
|
||||
fi
|
||||
|
||||
#cmd[0]="cmatrix"
|
||||
#cmd[1]="hollywood"
|
||||
#cmd[2]="termsaver sysmon"
|
||||
#cmd[3]="termsaver wttr"
|
||||
#cmd=${cmd[$[$RANDOM % ${#cmd[@]}]]}
|
||||
|
||||
cmd="btop"
|
||||
term="foot"
|
||||
|
||||
grim "/tmp/swaylock.png"
|
||||
convert "/tmp/swaylock.png" -filter Gaussian -blur 0x8 "/tmp/swaylock-blur.png"
|
||||
|
||||
rm "/tmp/swaylock.png"
|
||||
|
||||
workspace="$(swaymsg -t get_workspaces -p | grep -oP '(?<=Workspace\s).*?(?=\s\(focused\))')"
|
||||
swaymsg workspace "screensaver"
|
||||
swaymsg exec $term $cmd
|
||||
|
||||
sleep 0.5
|
||||
|
||||
swaymsg fullscreen
|
||||
|
||||
swayidle -w timeout 1 "" resume "pkill -n 'swayidle'"
|
||||
|
||||
swaylock -f -i "/tmp/swaylock-blur.png"
|
||||
|
||||
pkill -n -f "$term $cmd" &
|
||||
#pkill -n -f "byobu" &
|
||||
swaymsg workspace $workspace &
|
||||
rm "/tmp/swaylock-blur.png" &
|
||||
Reference in New Issue
Block a user