commit 1c486f3103338ba3154256eeaaa1320072a3338c Author: Matthew Reschke Date: Fri Dec 6 14:18:09 2024 -0700 Initial commit of fresh adi1090x themes and old qpansl before git tweaks diff --git a/README.md b/README.md new file mode 100644 index 0000000..8bf315b --- /dev/null +++ b/README.md @@ -0,0 +1,75 @@ +# 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 +- 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 + +``` diff --git a/blocks/bars.ini b/blocks/bars.ini new file mode 100644 index 0000000..c245f34 --- /dev/null +++ b/blocks/bars.ini @@ -0,0 +1,600 @@ +;; ┌────────────────────────────────────────────────────┐ +;; │░█▀█░█▀█░█░░░█░█░█▀▄░█▀█░█▀▄░░░░░░░░░█▀▄░█▀█░█▀▄░█▀▀│ +;; │░█▀▀░█░█░█░░░░█░░█▀▄░█▀█░█▀▄░░░░▀░░░░█▀▄░█▀█░█▀▄░▀▀█│ +;; │░▀░░░▀▀▀░▀▀▀░░▀░░▀▀░░▀░▀░▀░▀░░░░▀░░░░▀▀░░▀░▀░▀░▀░▀▀▀│ +;; │░Created░By░Aditya░Shakya░@adi1090x░░░░░░░░░░░░░░░░░│ +;; └────────────────────────────────────────────────────┘ + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[bar] +fill = ⏽ +empty = ⏽ +indicator = ⏽ +; Nerd font :   ,  ⏽,  樂 籠 錄 , 雷 絛 + +[module/volume] +type = internal/alsa + +; Soundcard to be used +; Usually in the format hw:# where # is the card number +; You can find the different card numbers in `/proc/asound/cards` +master-soundcard = default +speaker-soundcard = default +headphone-soundcard = default + +; Name of the master, speaker and headphone mixers +; Use the following command to list available mixer controls: +; $ amixer scontrols | sed -nr "s/.*'([[:alnum:]]+)'.*/\1/p" +; If master, speaker or headphone-soundcard isn't the default, +; use `amixer -c # scontrols` instead where # is the number +; of the master, speaker or headphone soundcard respectively +; +; Default: Master +master-mixer = Master + +; Optionally define speaker and headphone mixers +; Default: none +;;speaker-mixer = Speaker +; Default: none +;;headphone-mixer = Headphone + +; NOTE: This is required if headphone_mixer is defined +; Use the following command to list available device controls +; $ amixer controls | sed -r "/CARD/\!d; s/.*=([0-9]+).*name='([^']+)'.*/printf '%3.0f: %s\n' '\1' '\2'/e" | sort +; You may also need to use `amixer -c # controls` as above for the mixer names +; Default: none +;;headphone-id = 9 + +; Use volume mapping (similar to amixer -M and alsamixer), where the increase in volume is linear to the ear +; Default: false +;;mapped = true + +; Interval for volume increase/decrease (in percent points) +; Default: 5 +interval = 5 + +; Available tags: +; (default) +; +; +format-volume = +format-volume-prefix =  +format-volume-prefix-padding = 1 +format-volume-prefix-background = ${color.blue} +format-volume-prefix-foreground = ${color.foreground} +format-volume-background = ${color.background-alt} +format-volume-foreground = ${color.foreground} +format-volume-overline = ${color.background} +format-volume-underline = ${color.background} + +; Available tags: +; (default) +; +; +format-muted = +format-muted-prefix =  +format-muted-prefix-padding = 1 +format-muted-prefix-background = ${color.red} +format-muted-overline = ${color.background} +format-muted-underline = ${color.background} + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% +label-volume-background = ${color.background-alt} +label-volume-padding = 1 + +; Available tokens: +; %percentage% (default +label-muted = "Muted" +label-muted-foreground = ${color.foreground} +label-muted-background = ${color.background-alt} +label-muted-padding = 1 + +; Only applies if is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-background = ${color.blue} +ramp-volume-padding = 1 + +; Only applies if is used +bar-volume-format = " %fill%%indicator%%empty% " +bar-volume-width = 10 +bar-volume-gradient = false + +bar-volume-indicator = ${bar.indicator} +bar-volume-indicator-foreground = ${color.foreground} + +bar-volume-fill = ${bar.fill} +bar-volume-foreground-0 = ${color.foreground} +bar-volume-foreground-1 = ${color.foreground} +bar-volume-foreground-2 = ${color.foreground} + +bar-volume-empty = ${bar.empty} +bar-volume-empty-foreground = ${color.gray} + +; If defined, it will replace when +; headphones are plugged in to `headphone_control_numid` +; If undefined, will be used for both +; Only applies if is used +ramp-headphones-0 =  +ramp-headphones-background = ${color.blue} +ramp-headphones-padding = 1 + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/brightness] +;type = internal/xbacklight +type = internal/backlight + +; Use the following command to list available cards: +; $ ls -1 /sys/class/backlight/ +;card = intel_backlight +card = amdgpu_bl0 + +; Available tags: +;