]> git.sev.monster Git - dotfiles.git/commitdiff
update urxvtd detection, new script `wall'
authorsev <git@sev.monster>
Mon, 8 Jun 2020 07:52:23 +0000 (02:52 -0500)
committersev <git@sev.monster>
Mon, 8 Jun 2020 07:52:23 +0000 (02:52 -0500)
TERMINAL checks for urxvtd will now use `which' for portability.
`wall' script added that pulls from Mysplash API for random backgrounds
updated .xinitrc to use wall

base/.xinitrc
bin/wall [new file with mode: 0755]

index 97c5c14abe0a185f52ff24f6c50a022fb7ea6aba..8862d138f1440a7030c8f78a17db7f5356b86460 100644 (file)
@@ -21,7 +21,7 @@ fi
 
 # redshift, root image
 redon &
 
 # redshift, root image
 redon &
-"$HOME/.fehbg"
+wall &
 
 # Xorg settings
 xset r rate 290 26 &
 
 # Xorg settings
 xset r rate 290 26 &
@@ -50,7 +50,7 @@ xautolock -time 10 -locker "$HOME/bin/lck" &
 xbanish &
 eval `ssh-agent`
 
 xbanish &
 eval `ssh-agent`
 
-if [ -z "$TERMINAL" -a \( -x /usr/bin/urxvtd -o -x /usr/local/bin/urxvtd \) ]; then
+if [ -z "$TERMINAL" -a \( -x $(which -a urxvtd | head -1) \) ]; then
        for i in 1 2; do
                # try to start client twice, once before checking for daemon
                # and another after trying to start it
        for i in 1 2; do
                # try to start client twice, once before checking for daemon
                # and another after trying to start it
diff --git a/bin/wall b/bin/wall
new file mode 100755 (executable)
index 0000000..ffd0628
--- /dev/null
+++ b/bin/wall
@@ -0,0 +1,10 @@
+#!/bin/sh
+wall="$HOME/var/tmp/wall.jpg"
+res=$(xdpyinfo)
+if [ $? -eq 0 ]; then
+       res=$(echo "$res" | awk '/dimensions:/{print $2}')
+else
+       echo "ERROR: $res"
+       exit 1
+fi
+wget -O "$wall" "https://source.unsplash.com/$res/?tunnel,architecture" && feh --no-fehbg --bg-fill "$wall"
This page took 0.036692 seconds and 4 git commands to generate.