Use different wallpapers for test-stations

* Addresses issue #90
This commit is contained in:
2Shirt 2019-05-13 16:51:18 -06:00
parent 2de8b0674e
commit 1269d1fa87
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
30 changed files with 30 additions and 2 deletions

View file

@ -23,7 +23,7 @@ URxvt*externalBorder: 0
!URxvt.colorUL: #87afd7
URxvt.geometry: 92x16
URxvt.internalBorder: 8
URxvt.shading: 7
URxvt.shading: 12
URxvt.transparent: true
! Base16 Isotope

View file

@ -4,6 +4,7 @@
REGEX_XRANDR='^.* ([0-9]+)x([0-9]+)\+[0-9]+\+[0-9]+.* ([0-9]+)mm x ([0-9]+)mm.*$'
REGEX_URXVT='(URxvt.geometry:\s+).*'
TEST_STATION_WALLPAPERS='/usr/share/wallpaper/test-stations'
# Get screen data
xrandr_str="$(xrandr | grep mm | head -1)"
@ -78,8 +79,21 @@ xset s off
xset -dpms
xrdb -merge $HOME/.Xresources
# Start common desktop apps
# Set wallpaper
_hostname="$(hostnamectl --static | sed 's/.1201.com//')"
_ip="$(ip a show scope global \
| grep inet \
| head -1 \
| sed -r 's#.*inet ([0-9]+.[0-9]+.[0-9]+.[0-9]+.)/.*#\1#')"
if [[ -e "$TEST_STATION_WALLPAPERS/$_hostname" ]]; then
feh --bg-fill "$TEST_STATION_WALLPAPERS/$_hostname"
elif [[ -e "$TEST_STATION_WALLPAPERS/$_ip" ]]; then
feh --bg-fill "$TEST_STATION_WALLPAPERS/$_ip"
else
feh --bg-fill "$HOME/.wallpaper"
fi
# Start common desktop apps
compton --backend xrender --xrender-sync --xrender-sync-fence &
sleep 1s
x0vncserver -display :0 -passwordfile $HOME/.vnc/passwd -AlwaysShared &

View file

@ -0,0 +1 @@
sex-robot

Binary file not shown.

After

Width:  |  Height:  |  Size: 269 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 290 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB