feat(dwm): startup apps
This commit is contained in:
parent
2e38a18413
commit
7ae783532b
2 changed files with 32 additions and 27 deletions
|
@ -33,7 +33,8 @@ static const char *tags[] = { "main", "term", "www", "chat", "5", "6", "7", "8",
|
|||
static const Rule rules[] = {
|
||||
/* class instance title tags mask isfloating monitor */
|
||||
{ "Gimp", NULL, NULL, 0, True, -1 },
|
||||
{ "Firefox", NULL, NULL, 0, False, -1 },
|
||||
{ "firefox", NULL, NULL, 1 << 2, False, -1 },
|
||||
{ "discord", NULL, NULL, 1 << 3, False, -1 },
|
||||
{ "Thunderbird", NULL, NULL, 2, False, -1 },
|
||||
{ "stalonetray", NULL, NULL, 1, False, -1 },
|
||||
{ "chrome", NULL, NULL, 4, False, -1 },
|
||||
|
|
|
@ -6,8 +6,9 @@ xsetroot -solid black
|
|||
#while loop to update statusbar with some goodies
|
||||
while true; do
|
||||
#memfreak to get it in MB
|
||||
memfreak2=$(grep MemUsed /proc/meminfo | awk '{ print $2 }')
|
||||
memfreak=$(($memfreak2 / 1024))
|
||||
memfree=$(grep MemFree /proc/meminfo | awk '{ print $2 }')
|
||||
memtotal=$(grep MemTotal /proc/meminfo | awk '{ print $2 }')
|
||||
memfreak=$(((memtotal - memfree) / 1024))
|
||||
#time
|
||||
CLK=$(date +'%a %b %d %R:%S %Z')
|
||||
#volume
|
||||
|
@ -29,8 +30,11 @@ mate-volume-control-status-icon &
|
|||
flameshot &
|
||||
feh -z -Z --bg-scale $HOME/Pictures/background.*
|
||||
|
||||
touch /tmp/restart-dwm
|
||||
while [ -f /tmp/restart-dwm ]; do
|
||||
rm -rf /tmp/restart-dwm
|
||||
start_apps() {
|
||||
discord &
|
||||
firefox &
|
||||
}
|
||||
|
||||
(sleep 1 && start_apps) &
|
||||
|
||||
exec dwm >/dev/null
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue