initial commit

This commit is contained in:
2025-06-03 14:16:01 +03:00
commit 6fed9ef617
683 changed files with 109296 additions and 0 deletions

33
polybar/launch.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/usr/bin/env bash
dir="$HOME/.config/polybar"
themes=(`ls --hide="launch.sh" $dir`)
launch_bar() {
# Terminate already running bar instances
killall polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 0.1; done
# Launch the bar
if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
polybar -q top -c "$dir/$style/config.ini" &
elif [[ "$style" == "pwidgets" ]]; then
bash "$dir"/pwidgets/launch.sh --main
else
polybar -q main -c "$dir/$style/config.ini" &
fi
}
if [[ "$1" == "--hack" ]]; then
style="hack"
launch_bar
else
cat <<- EOF
Usage : launch.sh --theme
Available Themes :
--hack
EOF
fi