mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-25 19:14:39 +02:00
[sway] initial config based on i3
This commit is contained in:
parent
72aac248e5
commit
08de0874b5
5 changed files with 402 additions and 5 deletions
20
sway/lock.sh
Executable file
20
sway/lock.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
images=()
|
||||
swaylock_args=()
|
||||
|
||||
swaylock_args+=(-e)
|
||||
|
||||
for output in $(swaymsg -t get_outputs | jq -r '.[] .name'); do
|
||||
image=$(mktemp --suffix=.png)
|
||||
images+=($image)
|
||||
swaylock_args+=(-i $output:$image)
|
||||
grim -o $output $image
|
||||
done
|
||||
|
||||
printf '%s\n' "${images[@]}" | xargs -P 0 -I{} convert -resize 20% -level 0%,100%,0.9 -blur 0x2 -resize 500% {} {}
|
||||
|
||||
physlock -l prevent tty switching
|
||||
swaylock ${swaylock_args[@]} -s center
|
||||
physlock -L reenable tty switching
|
||||
rm ${images[@]}
|
Loading…
Add table
Add a link
Reference in a new issue