diff --git a/i3/config b/i3/config index f73b5dd..afef337 100755 --- a/i3/config +++ b/i3/config @@ -40,7 +40,9 @@ bindsym $mod+l exec ~/.config/i3/scripts/lock-now $wallpaper_dir bindsym $mod+Shift+o exec systemctl suspend bindsym $mod+Shift+p exec systemctl poweroff -bindsym Print exec flameshot gui -c +set $images $(xdg-user-dir PICTURES)/$(date +'%s_igrim.png') +bindsym Print exec grim -g "$(slurp)" - | wl-copy +bindsym $mod+Print exec grim -o $images # NetworkManager is the most popular way to manage wireless networks on Linux, # and nm-applet is a desktop environment-independent system tray GUI for it. diff --git a/i3/scripts/wallpaper-rotate b/i3/scripts/wallpaper-rotate index f77e365..938eea9 100755 --- a/i3/scripts/wallpaper-rotate +++ b/i3/scripts/wallpaper-rotate @@ -1,7 +1,4 @@ #!/bin/bash wall_dir="${1:?wallpaper directory required}" -while true; do - img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1) - [ -n "$img" ] && feh --bg-fill "$img" - sleep 1200 -done +img=$(find "$wall_dir" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" \) | shuf -n1) +[ -n "$img" ] && feh --bg-fill "$img"