add i3, nvim, polybar, and xdg junk
This commit is contained in:
parent
aeaf670010
commit
969fda1ddc
8 changed files with 541 additions and 0 deletions
17
_config/polybar/launch.sh
Executable file
17
_config/polybar/launch.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
POLYBAR_CONFIG=/home/mark/dotfiles-refresh/.config/polybar/config
|
||||
|
||||
# kill polybar and wait for shutdown
|
||||
killall -q polybar
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# display 'primary' bar on primary display and 'secondary' bar on all other displays
|
||||
for display in $(xrandr --listactivemonitors | tail -n +2 | awk '{ print$2 }'); do
|
||||
display=${display:1} # discard leading '+'
|
||||
isprimary=$(expr match ${display} '^\*') # is this the primary display?
|
||||
if [[ $isprimary -eq 1 ]]; then
|
||||
MONITOR="${display:1}" polybar primary -r --config-file=${POLYBAR_CONFIG} &
|
||||
else
|
||||
MONITOR="$display" polybar secondary -r --config-file=${POLYBAR_CONFIG} &
|
||||
fi
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue