From 4a21ae6fcdfcd0051a2e6fee641cd344c01dac83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Tue, 12 Aug 2025 15:19:57 +0200 Subject: Reset everything --- config/polybar/pwidgets/launch.sh | 68 --------------------------------------- 1 file changed, 68 deletions(-) delete mode 100755 config/polybar/pwidgets/launch.sh (limited to 'config/polybar/pwidgets/launch.sh') diff --git a/config/polybar/pwidgets/launch.sh b/config/polybar/pwidgets/launch.sh deleted file mode 100755 index c5659f7..0000000 --- a/config/polybar/pwidgets/launch.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env sh - -DIR="$HOME/.config/polybar/pwidgets" - -kill_bar() { - # Terminate already running bar instances - killall -q polybar - - # Wait until the processes have been shut down - while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done -} - -## Main -if [[ "$1" == "--main" ]]; then - kill_bar - polybar -q primary -c $DIR/main.ini & - polybar -q secondary -c $DIR/main.ini & - polybar -q top -c $DIR/main.ini & - -## Apps -elif [[ "$1" == "--apps" ]]; then - kill_bar - polybar -q primary -c $DIR/apps.ini & - polybar -q secondary -c $DIR/apps.ini & - -## System -elif [[ "$1" == "--system" ]]; then - kill_bar - polybar -q primary -c $DIR/system.ini & - polybar -q secondary -c $DIR/system.ini & - -## Mpd -elif [[ "$1" == "--mpd" ]]; then - kill_bar - polybar -q primary -c $DIR/mpd.ini & - polybar -q secondary -c $DIR/mpd.ini & - -## Workspaces -elif [[ "$1" == "--ws" ]]; then - kill_bar - polybar -q primary -c $DIR/workspace.ini & - polybar -q secondary -c $DIR/workspace.ini & - -## CPU -elif [[ "$1" == "--cpu" ]]; then - kill_bar - polybar -q primary -c $DIR/cpu.ini & - polybar -q secondary -c $DIR/cpu.ini & - -## Memory -elif [[ "$1" == "--memory" ]]; then - kill_bar - polybar -q primary -c $DIR/memory.ini & - polybar -q secondary -c $DIR/memory.ini & - -## Filesystem -elif [[ "$1" == "--fs" ]]; then - kill_bar - polybar -q primary -c $DIR/fs.ini & - polybar -q secondary -c $DIR/fs.ini & - -else - cat <<- _EOF_ - No widget specified, Available widgets: - --main --apps --system --mpd - --ws --cpu --memory --fs - _EOF_ -fi -- cgit v1.2.3