Moved dotfiles to new location for switch to nix

This commit is contained in:
Random936
2024-05-17 15:22:37 -07:00
parent 1bcf271251
commit ac9bc5772e
47 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
function load_script() {
if [ -f "$1" ]; then
$1
fi
}
load_script "$HOME/.screenlayout/layout.sh" # screen layout script
load_script "$HOME/.screenlayout/wallpapers.sh" # wallpapers script

View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Dynamically load background with feh
feh_command="feh --bg-fill"
while read resolution; do
feh_command="$feh_command ~/Pictures/wallpaper-$resolution.jpg"
done < <(xrandr | grep ' connected' | grep -oP '[0-9]+x[0-9]+\+[0-9]+\+[0-9]+' | cut -d '+' -f 1)
echo "$feh_command"
eval "$feh_command"