some fixes, and addet blur for wlogout
This commit is contained in:
parent
a5ade25b8d
commit
d401d73c2f
2 changed files with 7 additions and 14 deletions
|
@ -5,6 +5,7 @@ command_exists() {
|
|||
}
|
||||
|
||||
if ! command_exists wlogout; then
|
||||
notify-send "logout" "Cannot logout, wlogout not present!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -13,8 +14,8 @@ take_and_blur_screenshot() {
|
|||
local blurred_path="$HOME/.config/wlogout/tmp.png"
|
||||
|
||||
# Take a screenshot and blur it
|
||||
grim -t ppm - | ffmpeg -f image2pipe -vcodec ppm -i - -vf "gblur=sigma=8" -vframes 1 "$blurred_path"
|
||||
# handle_error $? "grim and ffmpeg"
|
||||
# grim -o DP-1 - | ffmpeg -i - -vf "scale=iw/10:ih/10:flags=neighbor,scale=iw*10:ih*10:flags=neighbor" -y "$blurred_path"
|
||||
grim -o DP-1 - | ffmpeg -i - -vf "boxblur=24" -y "$blurred_path"
|
||||
}
|
||||
|
||||
# Main logic
|
||||
|
@ -32,11 +33,3 @@ else
|
|||
fi
|
||||
|
||||
# wlogout
|
||||
|
||||
# if command_exists grim && command_exists magick; then
|
||||
# grim /tmp/shot.png
|
||||
# magick /tmp/shot.png -blur 0x8 $HOME/.config/wlogout/tmp.png
|
||||
# wlogout --css $HOME/.config/wlogout/style_blur.css
|
||||
# else
|
||||
# wlogout
|
||||
# fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue