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