add script to show polybar
This commit is contained in:
parent
85b3ffb1bc
commit
166e3a2490
1 changed files with 20 additions and 0 deletions
20
show-polybar.sh
Executable file
20
show-polybar.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
_duration="$1"
|
||||
|
||||
killall polybar
|
||||
|
||||
_host=$(hostname)
|
||||
case "$_host" in
|
||||
Patricia)
|
||||
polybar HDMI-0 &
|
||||
polybar DVI-0 &
|
||||
;;
|
||||
Pamela)
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "$_duration" ]; then
|
||||
sleep 1
|
||||
killall polybar
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue