Renamed dotfiles folder to assets

This commit is contained in:
Random936
2026-02-13 15:17:51 -05:00
parent b062663705
commit f3ea0b7922
61 changed files with 24 additions and 24 deletions

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Dynamically load background with feh
feh_command="feh"
while read resolution; do
echo "Assigning wallpaper-$resolution.jpg to $(xrandr | grep ' connected' | grep $resolution | awk '{print $1}')"
feh_command="$feh_command --bg-fill ~/Pictures/wallpaper-$resolution.jpg"
done < <(xrandr --listmonitors | grep -oP '[0-9]+\/[0-9]+x[0-9]+\/[0-9]+' | awk -F'[/x]' '{printf "%sx%s\n", $1, $3}')
echo "$feh_command"
eval "$feh_command"