diff --git a/home/pomp/.config/polybar/config.ini b/home/pomp/.config/polybar/config.ini new file mode 100644 index 0000000..0807a5c --- /dev/null +++ b/home/pomp/.config/polybar/config.ini @@ -0,0 +1,44 @@ +[global/wm] +include-file = ~/.config/polybar/modules/alsa.ini +include-file = ~/.config/polybar/modules/brightness.ini +include-file = ~/.config/polybar/modules/date.ini +include-file = ~/.config/polybar/modules/keyboard.ini +include-file = ~/.config/polybar/modules/network-wired.ini +include-file = ~/.config/polybar/modules/network-wireless.ini +include-file = ~/.config/polybar/modules/pulseaudio.ini +include-file = ~/.config/polybar/modules/title.ini +include-file = ~/.config/polybar/modules/updates.ini +include-file = ~/.config/polybar/modules/volume.ini +include-file = ~/.config/polybar/modules/workspaces.ini + +[color] +background = #272727 +background-alt = #383838 +foreground = #CACACA +foreground-alt = #CACACA +primary = #E53935 +red = #EF5350 +yellow = #FFEE58 + +[bar] +fill =  +empty =  +indicator = ⏽ +; Nerd font :   ,  ⏽,  樂 籠 錄 , 雷 絛 + +[bar/main] +width = 100% +height = 25 + +background = ${color.background} +foreground = ${color.foreground} + +font-0 = "Iosevka Nerd Font:size=10;4" +font-1 = "feather:size=10;3" + + +modules-left = workspaces +modules-center = date +modules-right = updates alsa + +tray-position = right diff --git a/home/pomp/.config/polybar/launch.sh b/home/pomp/.config/polybar/launch.sh new file mode 100755 index 0000000..9c2fc9c --- /dev/null +++ b/home/pomp/.config/polybar/launch.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# 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 + +# start polybar +polybar & diff --git a/home/pomp/.config/polybar/modules/alsa.ini b/home/pomp/.config/polybar/modules/alsa.ini new file mode 100644 index 0000000..b072f4b --- /dev/null +++ b/home/pomp/.config/polybar/modules/alsa.ini @@ -0,0 +1,83 @@ +[module/alsa] +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-background = ${color.background-alt} +format-volume-foreground = ${color.foreground} +format-volume-overline = ${color.background} +format-volume-underline = ${color.background} +format-volume-padding = 2 + +; Available tags: +; (default) +; +; +format-muted = +format-muted-prefix =  +format-muted-background = ${color.background-alt} +format-muted-foreground = ${color.foreground} +format-muted-overline = ${color.background} +format-muted-underline = ${color.background} +format-muted-padding = 2 + +; Available tokens: +; %percentage% (default) +label-volume = %percentage%% + +; Available tokens: +; %percentage% (default +label-muted = " Muted" +label-muted-foreground = ${color.red} + +; Only applies if is used +ramp-volume-0 =  +ramp-volume-1 =  +ramp-volume-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 =  diff --git a/home/pomp/.config/polybar/modules/brightness.ini b/home/pomp/.config/polybar/modules/brightness.ini new file mode 100644 index 0000000..6315aa1 --- /dev/null +++ b/home/pomp/.config/polybar/modules/brightness.ini @@ -0,0 +1,45 @@ +[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: +;