Update over time

This commit is contained in:
Hannes
2026-01-17 23:02:56 +01:00
parent 1d0811d81a
commit c084024f82
21 changed files with 84 additions and 31 deletions

View File

@@ -13,6 +13,4 @@ if [[ ! -d "$dir" ]]; then
fi
# Take Screenshot
cd "$dir" && grim -g "$(slurp)" "$file" && wl-copy < "$file"
# Open Screenshot
viewnior ${dir}/"$file"
cd "$dir" && grim -g "$(slurp)" - | swappy -f - -o "$file" && wl-copy < "$file"

View File

@@ -8,6 +8,6 @@ if [[ ! -d "$dir" ]]; then
fi
# Take Screenshot
cd "$dir" && sleep 0.5 && grim "$file" && wl-copy < "$file"
cd "$dir" && grim "$file" && wl-copy < "$file"
# Open Screenshot
viewnior ${dir}/"$file"

View File

@@ -10,6 +10,4 @@ fi
focused_window=$(hyprctl activewindow -j | jq -r '"\(.at[0]),\(.at[1]) \(.size[0])x\(.size[1])"')
# Take Screenshot
cd "$dir" && grim -g "$focused_window" "$file" && wl-copy < "$file"
# Open Screenshot
viewnior ${dir}/"$file"
cd "$dir" && grim -g "$focused_window" "$file" && swappy -f "$file" -o "$file" && wl-copy < "$file"