mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-10-09 19:11:15 +02:00
switch to dwm
This commit is contained in:
10
.local/bin/statusbar/dwmbar
Executable file
10
.local/bin/statusbar/dwmbar
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
status() { \
|
||||
echo "$(volume) | $(internet) | $(clock)"
|
||||
}
|
||||
while :; do
|
||||
xsetroot -name "$(status | tr '\n' ' ')"
|
||||
|
||||
sleep 1m
|
||||
done
|
||||
|
5
.local/bin/statusbar/refbar
Executable file
5
.local/bin/statusbar/refbar
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Refresh the dwmbar.
|
||||
|
||||
kill "$(pstree -lp | grep -- -dwmbar\([0-9] | sed "s/.*sleep(\([0-9]\+\)).*/\1/")"
|
Reference in New Issue
Block a user