2023-02-20 01:26:02 +01:00
|
|
|
#!/bin/sh
|
|
|
|
gnome-screensaver &
|
|
|
|
|
|
|
|
xsetroot -solid black
|
|
|
|
|
|
|
|
#while loop to update statusbar with some goodies
|
|
|
|
while true; do
|
|
|
|
#memfreak to get it in MB
|
|
|
|
memfreak2=$(grep MemFree /proc/meminfo | awk '{ print $2 }')
|
|
|
|
memfreak=$(($memfreak2 / 1024))
|
|
|
|
#time
|
|
|
|
CLK=$(date +'%a %b %d %R:%S %Z')
|
|
|
|
#volume
|
|
|
|
VOL=$(amixer get Master | tail -1 | awk '{ print $5 }' | tr -d '[]')
|
|
|
|
#loadavg
|
|
|
|
AVG=$(cat /proc/loadavg | cut -d ' ' -f -3)
|
|
|
|
#network stats in Bytes
|
|
|
|
NW=$(dstat -n --nocolor 1 1 | tail -1 | awk '{ print $1, $2}')
|
|
|
|
battper=$(cat /sys/class/power_supply/BAT0/capacity)
|
|
|
|
#this one is not so good, increases a delay of 1-2s of the updating.
|
|
|
|
#put it in the xsetrootname plz (tip of the day, do not put | as first char after "
|
|
|
|
xsetroot -name "$AVG | $memfreak MB | Bat: $battper% | Vol: $VOL | $CLK | "
|
|
|
|
sleep 1
|
|
|
|
done &
|
|
|
|
|
|
|
|
|
|
|
|
nm-applet &
|
|
|
|
mate-volume-control-status-icon &
|
2023-02-20 14:10:35 +01:00
|
|
|
flameshot &
|
2023-02-20 16:47:39 +01:00
|
|
|
feh -z -Z --bg-scale $HOME/Pictures/background.*
|
2023-02-20 01:26:02 +01:00
|
|
|
|
2023-02-20 16:47:39 +01:00
|
|
|
touch /tmp/restart-dwm
|
|
|
|
while [ -f /tmp/restart-dwm ]; do
|
|
|
|
exec dwm >/dev/null
|
|
|
|
rm -rf /tmp/restart-dwm
|
|
|
|
done
|