diff --git a/.scripts/wlogout.sh b/.scripts/wlogout.sh index d8bc09c..d2fcd66 100755 --- a/.scripts/wlogout.sh +++ b/.scripts/wlogout.sh @@ -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 diff --git a/hyprland.conf b/hyprland.conf index cb2744d..5e332cc 100644 --- a/hyprland.conf +++ b/hyprland.conf @@ -23,10 +23,10 @@ $h_conf = ~/.config/hypr # ─< source hotkeys file for hyprland >────────────────────────────────────────────────────── source = $h_conf/hotkeys.conf - source = $HOME/.monitors.conf - # variable for specialworkspace (has to be configured in .monitors.conf like -> 'workspace = name:x, on-created-empty:$terminal') -$terminal = foot +# variable for specialworkspace (has to be configured in .monitors.conf like -> 'workspace = name:x, on-created-empty:$terminal') + +# $terminal = foot # $browser = zen-browser # $secondary = $main # <- Uncomment this, if you only have one monitor @@ -41,7 +41,7 @@ workspace = 7, monitor:$secondary workspace = 8, monitor:$secondary workspace = 9, monitor:$main, persistent:true, allow-tearing:true # ─< 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 >──────────────────────────────────────── workspace = special:magic, monitor:$main, on-created-empty:$terminal, border:0