From fce19a3c7c329a86001f3dba4a25705d08c8df27 Mon Sep 17 00:00:00 2001 From: SindreKjelsrud Date: Wed, 13 Sep 2023 21:09:20 +0200 Subject: [PATCH] :wrench: add polybar config --- .config/polybar/config.ini | 224 +++++++++++++++++++++++++++++++++++++ .config/polybar/launch.sh | 13 +++ 2 files changed, 237 insertions(+) create mode 100644 .config/polybar/config.ini create mode 100755 .config/polybar/launch.sh diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 0000000..b11d60e --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,224 @@ +[colors] +background = #24273a +background-alt = #24273a +foreground = #cad3f5 +primary = #8aadf4 +occupied = #8aadf4 +secondary = #8ABEB7 +alert = #A54242 +disabled = #707880 + +[bar/mybar] +width = 100% +height = 24pt +radius = 6 + +; dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} + +line-size = 3pt + +border-size = 4pt +border-color = #00000000 + +padding-left = 0 +padding-right = 1 + +module-margin = 1 + +separator = \ +separator-foreground = ${colors.disabled} + +font-0 = monospace:pixelsize=14;2 +font-1 = Symbols Nerd Font:style=Regular:pixelsize=13;3 + +modules-left = bspwm +modules-right = pulseaudio memory cpu battery backlight date + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +; tray-position = right + +; wm-restack = generic +wm-restack = bspwm +; wm-restack = i3 + +; override-redirect = true + +[module/bspwm] +type = internal/bspwm + +label-focused = %icon% +label-focused-background = ${colors.background-alt} +label-focused-underline= ${colors.primary} +label-focused-padding = 2 + +label-occupied = %icon% +label-occupied-padding = 1 + +label-empty = %icon% +label-empty-foreground = ${colors.disabled} +label-empty-padding = 1 + +ws-icon-0 = I;1 +ws-icon-1 = II;2 +ws-icon-2 = III;3 +ws-icon-3 = IV;4 +ws-icon-4 = V;5 +ws-icon-5 = VI;6 +ws-icon-6 = VII;7 +ws-icon-7 = VIII;8 +ws-icon-8 = IX;9 +ws-icon-9 = X;10 + +[module/xworkspaces] +type = internal/xworkspaces + +label-active = %name% +label-active-background = ${colors.background-alt} +label-active-underline= ${colors.primary} +label-active-padding = 1 + +label-occupied = %name% +label-occupied-padding = 1 + +label-urgent = %name% +label-urgent-background = ${colors.alert} +label-urgent-padding = 1 + +label-empty = %name% +label-empty-foreground = ${colors.disabled} +label-empty-padding = 1 + +[module/xwindow] +type = internal/xwindow +label = %title:0:60:...% + +[module/filesystem] +type = internal/fs +interval = 25 + +mount-0 = / + +label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%% + +label-unmounted = %mountpoint% not mounted +label-unmounted-foreground = ${colors.disabled} + +[module/pulseaudio] +type = internal/pulseaudio + +format-volume-prefix = "VOL " +format-volume-prefix-foreground = ${colors.primary} +format-volume = + +label-volume = %percentage%% +use-ui-max = true +label-muted = Muted +label-muted-foreground = ${colors.primary} + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock + +label-layout = %layout% +label-layout-foreground = ${colors.primary} + +label-indicator-padding = 2 +label-indicator-margin = 1 +label-indicator-foreground = ${colors.background} +label-indicator-background = ${colors.secondary} + +[module/memory] +type = internal/memory +interval = 2 +format-prefix = "RAM " +format-prefix-foreground = ${colors.primary} +label = %percentage_used:2%% + +[module/cpu] +type = internal/cpu +interval = 2 +format-prefix = "CPU " +format-prefix-foreground = ${colors.primary} +label = %percentage:2%% + +[network-base] +type = internal/network +interval = 5 +format-connected = +format-disconnected = +label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected + +[module/wlan] +inherit = network-base +interface-type = wireless +label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip% + +[module/eth] +inherit = network-base +interface-type = wired +label-connected = %{F#F0C674}%ifname%%{F-} %local_ip% + +[module/date] +type = internal/date +interval = 1 + +date = %H:%M +date-alt = %Y-%m-%d + +label = %date% +label-foreground = ${colors.primary} + +[module/battery] +type = internal/battery +full-at = 95 + +format-charging = +label-charging = %percentage%% + +format-discharging = +label-discharging = %percentage%% + +format-full = +format-full-prefix = " " +format-full-prefix-foreground = ${colors.primary} + +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-3 =  + +ramp-capacity-foreground = ${colors.primary} + +animation-charging-0 =  +animation-charging-1 =  +animation-charging-2 =  +animation-charging-3 =  + +animation-charging-foreground = ${colors.primary} +animation-charging-framerate = 850 + +[module/backlight] +type = internal/backlight +card = intel_backlight +format-prefix-foreground = ${colors.primary} + +;scroll +format =