From 3b2e802221752ce9c48e01dfa6d1952c0dcde694 Mon Sep 17 00:00:00 2001 From: therbron Date: Tue, 7 Jul 2020 02:20:44 +0200 Subject: [PATCH] Update polybar configuration (include multihead) --- .config/polybar/bars.ini | 605 +++++++++++++ .config/polybar/colors.ini | 265 ++++++ .config/polybar/config-bottom.ini | 334 +++++++ .config/polybar/config-top.ini | 333 +++++++ .config/polybar/launch.sh | 17 +- .config/polybar/modules.ini | 1146 +++++++++++++++++++++++++ .config/polybar/scripts/check-network | 12 +- .config/polybar/scripts/launcher | 5 + .config/polybar/scripts/launcher-alt | 5 + .config/polybar/scripts/launcher-full | 5 + .config/polybar/scripts/lupdates | 3 + .config/polybar/scripts/powermenu | 11 + .config/polybar/scripts/powermenu-alt | 11 + .config/polybar/scripts/updates.sh | 6 +- .config/polybar/scripts/windows | 5 + .config/polybar/user_modules.ini | 290 +++++++ 16 files changed, 3042 insertions(+), 11 deletions(-) create mode 100644 .config/polybar/bars.ini create mode 100644 .config/polybar/colors.ini create mode 100644 .config/polybar/config-bottom.ini create mode 100644 .config/polybar/config-top.ini create mode 100644 .config/polybar/modules.ini create mode 100755 .config/polybar/scripts/launcher create mode 100755 .config/polybar/scripts/launcher-alt create mode 100755 .config/polybar/scripts/launcher-full create mode 100755 .config/polybar/scripts/lupdates create mode 100755 .config/polybar/scripts/powermenu create mode 100755 .config/polybar/scripts/powermenu-alt create mode 100755 .config/polybar/scripts/windows create mode 100644 .config/polybar/user_modules.ini diff --git a/.config/polybar/bars.ini b/.config/polybar/bars.ini new file mode 100644 index 0000000..b77f2fd --- /dev/null +++ b/.config/polybar/bars.ini @@ -0,0 +1,605 @@ +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ +;; +;; ____ +;; / __ )____ ___________ +;; / __ / __ `/ ___/ ___/ +;; / /_/ / /_/ / / (__ ) +;; /_____/\__,_/_/ /____/ +;; +;; Created By Aditya Shakya @adi1090x +;; +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[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 = + +; Available tags: +; (default) +; +; +format-muted = + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% + +; Available tokens: +; %percentage% (default +format-muted-prefix =  +label-muted = " Muted" +label-muted-foreground = ${color.ac} + +; Only applies if is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-2 =  +ramp-volume-3 =  +ramp-volume-4 =  + +; Only applies if is used +bar-volume-width = 10 +bar-volume-gradient = false + +bar-volume-indicator = +bar-volume-indicator-foreground = ${color.bi} +bar-volume-indicator-font = 2 + +bar-volume-fill = ━ +bar-volume-foreground-0 = ${color.bn} +bar-volume-foreground-1 = ${color.bn} +bar-volume-foreground-2 = ${color.bn} +bar-volume-foreground-3 = ${color.bn} +bar-volume-foreground-4 = ${color.bm} +bar-volume-foreground-5 = ${color.bm} +bar-volume-foreground-6 = ${color.bm} +bar-volume-foreground-7 = ${color.bd} +bar-volume-foreground-8 = ${color.bd} +bar-volume-fill-font = 2 + +bar-volume-empty = ┉ +bar-volume-empty-foreground = ${color.be} +bar-volume-empty-font = 2 + +; 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-1 =  + +;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ + +[module/brightness] +type = internal/xbacklight + +; Use the following command to list available cards: +; $ ls -1 /sys/class/backlight/ +card = intel_backlight + +; Available tags: +;