From d31924facefbade470c67778afbcdcf0b0ab0080 Mon Sep 17 00:00:00 2001 From: nnduc Date: Sat, 27 Jun 2026 20:22:58 +0700 Subject: [PATCH] fixed fs apps and feh conflict --- i3/config | 4 +++- i3/scripts/wallpaper-rotate | 7 ++----- 2 files changed, 5 insertions(+), 6 deletions(-) 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"