1
0
Fork 0
dotfiles/dot_config/polybar/scripts/executable_launch_polybar
Florian RICHER 3ff2e6e742 Update dot_config/polybar/custom_modules.ini
Add dot_config/polybar/scripts/executable_beep.sh
Add dot_config/polybar/scripts/executable_colors.sh
Add dot_config/polybar/scripts/executable_colors.sh.base
Add dot_config/polybar/scripts/executable_launch_polybar
Add dot_config/polybar/scripts/executable_michurin
Add dot_config/polybar/scripts/executable_polybar_bluetooth_speaker.sh
Add dot_config/polybar/scripts/executable_polybar_custom_time.sh
Add dot_config/polybar/scripts/executable_polybar_dunst_indicator.sh
Add dot_config/polybar/scripts/executable_polybar_healthbar.sh
Add dot_config/polybar/scripts/executable_polybar_michurin.py
Add dot_config/polybar/scripts/executable_polybar_net_indicator.sh
Add dot_config/polybar/scripts/executable_polybar_net_speed.sh
Add dot_config/polybar/scripts/executable_polybar_redshift_indicator.sh
Add dot_config/polybar/scripts/executable_polybar_wifibar.sh
Add dot_config/polybar/scripts/executable_refresh_wpg_wallpapers
Add dot_config/polybar/scripts/executable_regkernel
Add dot_config/polybar/scripts/executable_setbg
Add dot_config/polybar/scripts/executable_theme.sh
Add dot_config/polybar/scripts/executable_transmission_indicator.sh
Add dot_config/polybar/scripts/executable_tresorit_indicator.sh
2022-05-06 22:55:24 +02:00

23 lines
696 B
Bash

#!/usr/bin/env sh
## Add this to your wm startup file.
# Terminate already running bar instances
pkill polybar
# Wait until the processes have been shut down
#while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
sleep 1
rm /tmp/polybar*
rm /tmp/ipc-polybar*
# Launch bar1 and bar2
polybar --reload -c ~/.config/polybar/config.ini main &
ln -s /tmp/polybar_mqueue.$! /tmp/ipc-polybar-top
polybar --reload -c ~/.config/polybar/config_bottom.ini main &
ln -s /tmp/polybar_mqueue.$! /tmp/ipc-polybar-bottom
#polybar --reload -c ~/.config/polybar/config_monitor_2.ini main &
# Hide the bottom bar by default. Can be toggled with a shortcut.
sleep 1
echo cmd:hide > /tmp/ipc-polybar-bottom