From 82c6b48c54dadc5a7bf41e07d324220a4cca4473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Thu, 13 Jan 2022 22:12:48 +0300 Subject: [PATCH] Add polybar launcher bash script --- README.md | 7 +++++++ launch_polybar.sh | 9 +++++++++ 2 files changed, 16 insertions(+) create mode 100644 launch_polybar.sh diff --git a/README.md b/README.md index b1ffe8f..2a41628 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,10 @@ updates repositories kept in $HOME/sources by calling 'git pull' using subproces dependencies: - [termcolor](https://pypi.org/project/termcolor) + +### launch_polybar.sh + +used by i3wm to launch polybar on occasions. ripped it off from arch wiki ;) + +dependencies: + - [polybar](https://github.com/polybar/polybar) diff --git a/launch_polybar.sh b/launch_polybar.sh new file mode 100644 index 0000000..7447395 --- /dev/null +++ b/launch_polybar.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Terminate already running bar instances +killall -q polybar +# If all your bars have ipc enabled, you can also use +# polybar-msg cmd quit + +# Launch Polybar, using default config location ~/.config/polybar/config +polybar example 2>&1 | tee -a /tmp/polybar.log & disown