Update some scripts
This commit is contained in:
parent
16b776d6ec
commit
ce9f79b96e
@ -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
|
||||
|
@ -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 &
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user