Skip to content

Instantly share code, notes, and snippets.

@gear
Created May 25, 2022 14:31
Show Gist options
  • Select an option

  • Save gear/6a7a898e813012402e444d7aa45ef1ff to your computer and use it in GitHub Desktop.

Select an option

Save gear/6a7a898e813012402e444d7aa45ef1ff to your computer and use it in GitHub Desktop.
polybar launch
#!/usr/bin/env bash
# Terminate already running bar instances
# If all your bars have ipc enabled, you can use
polybar-msg cmd quit
# Otherwise you can use the nuclear option:
# killall -q polybar
# Launch plbar
echo "---" | tee -a /tmp/polybar.log
polybar plbar 2>&1 | tee -a /tmp/polybar.log & disown
echo "Polybar launched..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment