Updated the screen layout/wallpaper config

This commit is contained in:
Jaden Provost Maxwell-Comfort 2024-01-06 16:09:20 -08:00
parent 057348f9ec
commit 2470afaefc
3 changed files with 10 additions and 6 deletions

View File

@ -165,8 +165,6 @@ client.focused_inactive #333333 #222222 #888888 #292d2e #eeeeee
client.unfocused #333333 #222222 #888888 #292d2e #eeeeee
# Startup Applications
exec --no-startup-id "$HOME/.screenlayout/launch.sh" # load xrandr screen layout
exec --no-startup-id "xmodmap $HOME/.Xmodmap" # update capslock key
exec --no-startup-id "lxpolkit &" # start authentication agent (prompt)
exec --no-startup-id "xcompmgr &" # startup composition manager (transparency)
exec --no-startup-id "polybar" # status bar

View File

@ -1,9 +1,16 @@
#!/bin/bash
# Load screen layout script if it exists
script="$HOME/.screenlayout/layout.sh"
if [ -f "$script" ]; then
$script
fi
feh --bg-scale $HOME/Pictures/wallpaper.jpg
# 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"

View File

@ -28,7 +28,6 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
unset f
fi
feh --bg-scale $HOME/Pictures/wallpaper.jpg &
$HOME/.screenlayout/launch.sh &
/usr/libexec/polkit-gnome-authentication-agent-1 &
$HOME/.screenlayout/launch.sh &
exec dbus-launch --exit-with-session i3