-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdwm-personalized
executable file
·29 lines (27 loc) · 1.17 KB
/
dwm-personalized
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
SLEEP_TIME=2
xmodmap .xbindkeysrc &
dropbox start &>/dev/null &
unclutter &
# redshift -l 12.9667:77.5667 -t 3700:3700 &>/dev/null &
# Lock in 10 minutes of inactivity, or whenever you place the mouse cursor
# in the bottom right corner for 3 seconds.
#xautolock -time 10 -locker slock -nowlocker slock -detectsleep -corners 000+ -cornerdelay 3 &
# trayer --margin 0 --edge bottom --align left --height 18 --widthtype request --width 15 --transparent true --SetDockType false --SetPartialStrut false &
#nm-applet --sm-disable &
# (sleep $SLEEP_TIME && google-chrome-stable && terminator && urxvt) &
(sleep $SLEEP_TIME && google-chrome-stable) &
# (conky | while read LINE; do xsetroot -name "$LINE"; done) &
terminator &
wicd-gtk &
# urxvt &
while true; do
MEM=$(free -m | grep '^Mem' | awk '{print "total: " $2 "MB used: " $3"MB"}')
CPU=$(top -bn 1 | grep 'Cpu' | tr -d 'usy,' | head -1 | awk '{print "user " $2 ", sys " $3}')
VOLUME=$(awk --field-separator"[][]" '/dB/ { print $2 }' <(amixer sget Master))
DATE=$(date +"%Y-%m-%d %H:%M")
BAT=$(acpi -b | awk '{ print $4 }' | tr -d ',')
xsetroot -name "MEM: $MEM CPU: $CPU V: $VOLUME B: $BAT $DATE"
sleep 1m
done &
exec dwm