some fixes, and addet blur for wlogout

This commit is contained in:
pika 2025-05-09 14:35:35 +02:00
parent a5ade25b8d
commit d401d73c2f
2 changed files with 7 additions and 14 deletions

View file

@ -5,6 +5,7 @@ command_exists() {
} }
if ! command_exists wlogout; then if ! command_exists wlogout; then
notify-send "logout" "Cannot logout, wlogout not present!"
exit 1 exit 1
fi fi
@ -13,8 +14,8 @@ take_and_blur_screenshot() {
local blurred_path="$HOME/.config/wlogout/tmp.png" local blurred_path="$HOME/.config/wlogout/tmp.png"
# Take a screenshot and blur it # Take a screenshot and blur it
grim -t ppm - | ffmpeg -f image2pipe -vcodec ppm -i - -vf "gblur=sigma=8" -vframes 1 "$blurred_path" # grim -o DP-1 - | ffmpeg -i - -vf "scale=iw/10:ih/10:flags=neighbor,scale=iw*10:ih*10:flags=neighbor" -y "$blurred_path"
# handle_error $? "grim and ffmpeg" grim -o DP-1 - | ffmpeg -i - -vf "boxblur=24" -y "$blurred_path"
} }
# Main logic # Main logic
@ -32,11 +33,3 @@ else
fi fi
# wlogout # 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

View file

@ -23,10 +23,10 @@ $h_conf = ~/.config/hypr
# ─< source hotkeys file for hyprland >────────────────────────────────────────────────────── # ─< source hotkeys file for hyprland >──────────────────────────────────────────────────────
source = $h_conf/hotkeys.conf source = $h_conf/hotkeys.conf
source = $HOME/.monitors.conf source = $HOME/.monitors.conf
# variable for specialworkspace (has to be configured in .monitors.conf like -> 'workspace = name:x, on-created-empty:$terminal') # variable for specialworkspace (has to be configured in .monitors.conf like -> 'workspace = name:x, on-created-empty:$terminal')
$terminal = foot
# $terminal = foot
# $browser = zen-browser # $browser = zen-browser
# $secondary = $main # <- Uncomment this, if you only have one monitor # $secondary = $main # <- Uncomment this, if you only have one monitor
@ -41,7 +41,7 @@ workspace = 7, monitor:$secondary
workspace = 8, monitor:$secondary workspace = 8, monitor:$secondary
workspace = 9, monitor:$main, persistent:true, allow-tearing:true workspace = 9, monitor:$main, persistent:true, allow-tearing:true
# ─< Gaming workspace >────────────────────────────────────────────────────────────────────── # ─< Gaming workspace >──────────────────────────────────────────────────────────────────────
workspace = 69, monitor:$main, persistent:true, allow-tearing:true, gapsin:0, gapsout:0, rounding:0, border:0, blur_enabled:0 workspace = 69, monitor:$main, persistent:true, allow-tearing:true, gapsin:0, gapsout:0, rounding:0, border:0
# ────────────────────────────────────────< specials >──────────────────────────────────────── # ────────────────────────────────────────< specials >────────────────────────────────────────
workspace = special:magic, monitor:$main, on-created-empty:$terminal, border:0 workspace = special:magic, monitor:$main, on-created-empty:$terminal, border:0