From a07242cdd5cec39528077d28d7273b2b8ef4328e Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Mon, 21 Nov 2022 22:57:29 +0100 Subject: Add polybar config --- .gitmodules | 3 + catppuccin/polybar | 1 + polybar.ini | 235 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 239 insertions(+) create mode 160000 catppuccin/polybar create mode 100644 polybar.ini diff --git a/.gitmodules b/.gitmodules index e9134c8c..acaec0d0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "catppuccin/neomutt"] path = catppuccin/neomutt url = https://github.com/catppuccin/neomutt +[submodule "catppuccin/polybar"] + path = catppuccin/polybar + url = https://github.com/catppuccin/polybar diff --git a/catppuccin/polybar b/catppuccin/polybar new file mode 160000 index 00000000..9ee66f83 --- /dev/null +++ b/catppuccin/polybar @@ -0,0 +1 @@ +Subproject commit 9ee66f83335404186ce979bac32fcf3cd047396a diff --git a/polybar.ini b/polybar.ini new file mode 100644 index 00000000..4243cb95 --- /dev/null +++ b/polybar.ini @@ -0,0 +1,235 @@ +; -*- mode: conf-windows; -*- + +[global/wm] +include-file = catppuccin.ini + +[colors] +background = ${colors.base} +background-alt = ${colors.surface0} +primary = ${colors.blue} +alert = ${colors.yellow} +disabled = ${colors.overlay2} +empty-bar = ${colors.surface2} + +[settings] +screenchange-reload = true + +[bar/primary] +monitor = ${env:POLYBAR_MONITOR} +width = 100% +height = 24pt +radius = 0 +line-size = 3pt +line-color = ${colors.primary} +border-size = 0 +padding-left = 0 +padding-right = 2 +module-margin = 2 + +background = ${colors.background} +foreground = ${colors.text} + +font-0 = Fira Sans:size=11;2 +; Some workspace names have emojis in them. +font-1 = Openmoji:size=11;2 +; Hermit is needed for Unicode block chars. +font-2 = Hermit:size=10;1 + +separator = ยท +separator-foreground = ${colors.disabled} + +modules-left = i3 xwindow +modules-right = memory cpu temp xkeyboard pulseaudio dunst wlan eth battery date +tray-position = right + +enable-ipc = true + +cursor-click = pointer +cursor-scroll = ns-resize + +[module/i3] +type = internal/i3 +pin-workspaces = false +show-urgent = true +strip-wsnumbers = true +index-sort = true +label-mode-foreground = ${colors.alert} +label-mode-background = ${colors.background-alt} +label-mode-padding = 2 +label-focused-overline = ${colors.primary} +label-focused-padding = 1 +label-urgent-foreground = ${colors.alert} +label-urgent-background = ${colors.background-alt} +label-urgent-padding = 1 +label-unfocused-padding = 1 +label-visible-padding = 1 + +[module/xwindow] +type = internal/xwindow +label = %title% +label-maxlen = 120 + +[module/pulseaudio] +type = internal/pulseaudio +format-volume = +label-volume = %percentage%% +label-muted = ๐Ÿ”‡ +label-muted-foreground = ${colors.disabled} + +ramp-volume-0 = ๐Ÿ”ˆ +ramp-volume-1 = ๐Ÿ”‰ +ramp-volume-2 = ๐Ÿ”Š +ramp-volume-0-foreground = ${colors.primary} +ramp-volume-1-foreground = ${colors.primary} +ramp-volume-2-foreground = ${colors.primary} + +[module/xkeyboard] +type = internal/xkeyboard +blacklist-0 = num lock +; hide xkeyboard module unless Caps Lock is pressed +label-layout = +label-indicator-padding = 1 +label-indicator-margin = 0 +label-indicator-foreground = ${colors.alert} +label-indicator-background = ${colors.background-alt} + +[module/memory] +type = internal/memory +interval = 1 +format =