From 303f89536b6179a1b0a75e003d79d1fd46d0bc60 Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Tue, 31 May 2022 16:28:16 +0200 Subject: Moved polybar launch script to .local/bin --- .config/i3/config | 4 ++-- .config/polybar/launch | 13 ------------- .local/bin/polybar-launch | 10 ++++++++++ 3 files changed, 12 insertions(+), 15 deletions(-) delete mode 100755 .config/polybar/launch create mode 100755 .local/bin/polybar-launch diff --git a/.config/i3/config b/.config/i3/config index 25775e4..3b78957 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -195,6 +195,6 @@ for_window [title="^Steam Keyboard$"] floating enable ##### Exec exec --no-startup-id /usr/bin/unclutter -b -exec --no-startup-id $HOME/.config/polybar/launch -exec --no-startup-id picom --config $HOME/.config/picom/picom.conf -b +exec --no-startup-id ~/.local/bin/polybar-launch +exec --no-startup-id ~/.local/bin/picom-toggle exec --no-startup-id nextcloud --background diff --git a/.config/polybar/launch b/.config/polybar/launch deleted file mode 100755 index 0061bf1..0000000 --- a/.config/polybar/launch +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env 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 bar1 -echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log -polybar bar1 -r 2>&1 | tee -a /tmp/polybar1.log & disown -polybar bar2 -r 2>&1 | tee -a /tmp/polybar2.log & disown - -echo "Bars launched..." diff --git a/.local/bin/polybar-launch b/.local/bin/polybar-launch new file mode 100755 index 0000000..d425d48 --- /dev/null +++ b/.local/bin/polybar-launch @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Terminate already running bar instances +killall -q polybar + +echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log +polybar bar1 -r 2>&1 | tee -a /tmp/polybar1.log & disown +polybar bar2 -r 2>&1 | tee -a /tmp/polybar2.log & disown + +echo "Bars launched..." -- cgit v1.2.3-70-g09d2