76 lines
2.0 KiB
Markdown
76 lines
2.0 KiB
Markdown
# Polybar Themes
|
|
|
|
This is a collection of themes from:
|
|
|
|
- mReschke custom
|
|
- https://github.com/adi1090x/polybar-themes
|
|
- https://archcraft.io/ (which is made by same adi1090x guy)
|
|
|
|
All of these themes are straight from https://github.com/adi1090x/polybar-themes (the "simple" version) and are completely UNTOUCHED. I just use them for show, or ideas to FORK into my own theme.
|
|
|
|
If you diff the bitmap vs simple folder, he changes font sizes and gliphs thats about it. Simple folder has more themes including `panels`
|
|
|
|
I ALREADY have all his fonts in my .files ~/.local/share/fonts
|
|
|
|
**adi1090x "simple" untouched themes**
|
|
- blocks
|
|
- colorblocks
|
|
- cuts
|
|
- docky
|
|
- forest
|
|
- grayblocks
|
|
- hack
|
|
- material
|
|
- panels
|
|
- pwidgets # NO, I deleted this
|
|
- shades
|
|
- shapes
|
|
|
|
I created the `shared` folder for shared bars and modules used by the `qpanels` theme and other custom themes.
|
|
|
|
My custom themes and `shared` resources contain Jinja merge fields which are dynamically handled by `ohmyi3`!!!
|
|
|
|
The `launch.sh` has been customized to accept any theme, dynamically
|
|
|
|
|
|
|
|
# New launcher
|
|
```bash
|
|
#!/usr/bin/env bash
|
|
|
|
dir="$HOME/.config/polybar"
|
|
themes=(`ls --hide="launch.sh" $dir`)
|
|
|
|
launch_bar() {
|
|
if [ -e "$dir/$style/config.ini" ]; then
|
|
|
|
# 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
|
|
|
|
# Launch the bar
|
|
if [[ "$style" == "hack" || "$style" == "cuts" ]]; then
|
|
polybar -q top -c "$dir/$style/config.ini" &
|
|
polybar -q bottom -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
|
|
else
|
|
echo "$dir/$style/config.ini" not found
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
if [ "$1" = "" ]; then
|
|
echo "Please specify a --style"
|
|
exit 1
|
|
fi
|
|
style=${1#--*}
|
|
launch_bar
|
|
|
|
```
|