mirror of
https://github.com/dnlbauer/dotfiles.git
synced 2026-09-10 21:45:30 +00:00
desktop->shared
This commit is contained in:
17
profiles/laptop/.config/polybar/config
Normal file
17
profiles/laptop/.config/polybar/config
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
include-file = ~/.config/polybar/config.d/colors
|
||||
include-file = ~/.config/polybar/config.d/settings
|
||||
include-file = ~/.config/polybar/config.d/modules
|
||||
include-file = ~/.config/polybar/config.d/base_bar
|
||||
|
||||
[bar/laptop]
|
||||
inherit = bar/base
|
||||
monitor = ${env:MONITOR:eDP-1}
|
||||
|
||||
modules-left = i3 xwindow
|
||||
modules-right = previous playpause next spotify volume cpu memory battery1 date
|
||||
|
||||
|
||||
[bar/laptop_extern]
|
||||
inherit = bar/laptop
|
||||
monitor = ${env:MONITOR:HDMI-2}
|
||||
12
profiles/laptop/.config/polybar/polybar.sh
Executable file
12
profiles/laptop/.config/polybar/polybar.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch bar1 and bar2
|
||||
polybar -c ~/.config/polybar/config laptop &
|
||||
polybar -c ~/.config/polybar/config laptop_extern &
|
||||
|
||||
echo "Bars launched..."
|
||||
Reference in New Issue
Block a user