Update some scripts

This commit is contained in:
Wiktor Zykubek 2021-01-19 20:56:51 +01:00
parent 16b776d6ec
commit ce9f79b96e
3 changed files with 9 additions and 9 deletions

View File

@ -8,4 +8,4 @@ elif [ "$(cat /etc/hostname)" = "laptop" ]; then
res="1366x768"
fi
find ~/.config/wallpapers/"$res"/* | shuf | sxiv - -tb
find ~/.config/wallpapers/"$res"/* | sxiv - -tb

View File

@ -4,10 +4,4 @@
[ "$1" ] && { xwallpaper --zoom "$1" && exit 1; }
if [ "$(cat /etc/hostname)" = "pc" ]; then
res="1920x1080"
elif [ "$(cat /etc/hostname)" = "laptop" ]; then
res="1366x768"
fi
xwallpaper --maximize /home/samedamci/.config/wallpapers/"$res"/wall15.png &
xwallpaper --maximize /home/samedamci/.config/wallpapers/1920x1080/wall30.png &

View File

@ -4,7 +4,13 @@ used() {
df -h "$1" | awk 'NR==2 { print $3 "/" $2 " GB" }' | sed 's/G\//\//g;s/G / /g'
}
server_used() {
ssh homeserver df -h | grep '/dev/mapper/md0-crypt' | \
awk '{print $3 "/" $2 " GB" }' | sed 's/G\//\//g;s/G / /g'
}
root="$(used /)"
home="$(used /home)"
server="$(server_used)"
echo "/ $root,  $home"
echo "/ $root,  $home,  $server"