From 857f831cd93452ae3b8075bd3d425a2fdc502bfd Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Mon, 4 Nov 2024 17:40:36 -0500 Subject: [PATCH] added polybar --- .config/nvim/spell/en.utf-8.add | 4 + .config/nvim/spell/en.utf-8.add.spl | Bin 482 -> 538 bytes .config/polybar/config.ini | 208 ++++++++++++++++++++++++++++ .config/polybar/launch.sh | 6 + 4 files changed, 218 insertions(+) create mode 100644 .config/polybar/config.ini create mode 100755 .config/polybar/launch.sh diff --git a/.config/nvim/spell/en.utf-8.add b/.config/nvim/spell/en.utf-8.add index 972bccf8..8637cf08 100644 --- a/.config/nvim/spell/en.utf-8.add +++ b/.config/nvim/spell/en.utf-8.add @@ -31,3 +31,7 @@ Dunst Mindmap linters PRs +Meta's +subgraphs +eg +replicability diff --git a/.config/nvim/spell/en.utf-8.add.spl b/.config/nvim/spell/en.utf-8.add.spl index 051f8a2a6adc9a6eba1e945c87be347536757817..1b6e912fe92ab5413db1151f04013dd52ba7b6e8 100644 GIT binary patch literal 538 zcmYL_u};G<5Qgt_LCOdlVq$_BSQ%Lu5T&5*ZsS5AiG%F`WkP)!o`H!+1Kp_-87}AZ z`M>YK`PFqELffAGig2^<7t1<4K0UWxKcrm74_Z7+JkC*gLtK1wZBHbTS@KAr1ChhP zO8@gl<5BJ6NMS`oOCUROj-G6-#abR%GmvaTZ}l3_E8c_?CUid#ShJv^r?z+5@pHA-7)9iGGM(KqBO}}@b*0pmQdde{W#Sh4YN|rj LhR literal 482 zcmYL_yG{c^3`Kn$khV;RsOX>uYC4(}NC5=>J|<*gcW0TIC4>q-gwM$LfjmTF3hRz# zUmyE%aT7<^br(M(oXyLsZr0B)T|bN=rs;!@lA01#5*tMQM!Nw|AX2l&(SyjbV?}G~ z)rezLLJj#jv92zY$f zD=K>2ANk2ND}BhuiA1?qI^WOq#GJCrq`ZhD;CN@G%XdWN%Hb7}qrr9ymOAz#aynby g-E&7oxHZtiKnnvc477;&J?CO+UB&f3XR#7{znaTdDF6Tf diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini new file mode 100644 index 00000000..b7cce8de --- /dev/null +++ b/.config/polybar/config.ini @@ -0,0 +1,208 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +; [colors] +; background = #282A2E +; background-alt = #373B41 +; foreground = #C5C8C6 +; primary = #F0C674 +; secondary = #8ABEB7 +; alert = #A54242 +; disabled = #707880 +[colors] +background = ${xrdb:color0:#222} +foreground = ${xrdb:color7:#222} +foreground-alt = ${xrdb:color7:#222} +primary = ${xrdb:color14:#222} +secondary = ${xrdb:color10:#222} +alert = ${xrdb:color14:#222} + +[bar/example] +width = 100% +height = 24pt +radius = 6 + +; dpi = 140 +dpi = 96 + +background = ${colors.background} +foreground = ${colors.foreground} +; foreground-alt = ${colors.foreground-alt} +; primary = ${colors.primary} +; secondary = ${colors.secondary} +; alert = ${colors.alert} + +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:size=12;2" + +modules-left = xworkspaces xwindow +modules-right = filesystem pulseaudio memory cpu wlan systray battery date + +cursor-click = pointer +cursor-scroll = ns-resize + +enable-ipc = true + +; wm-restack = generic +; wm-restack = bspwm +wm-restack = i3 + +; override-redirect = true + +; This module is not active by default (to enable it, add it to one of the +; modules-* list above). +; Please note that only a single tray can exist at any time. If you launch +; multiple bars with this module, only a single one will show it, the others +; will produce a warning. Which bar gets the module is timing dependent and can +; be quite random. +; For more information, see the documentation page for this module: +; https://polybar.readthedocs.io/en/stable/user/modules/tray.html +[module/systray] +type = internal/tray + +format-margin = 8pt +tray-spacing = 16pt + +[module/battery] +type = internal/battery +low-at = 15 +full-at = 96 +time-format = %H:%M +label-charging = CHRG %percentage%% %time% +label-discharging = %percentage%% %time% +label-full = FULL +label-low = LOW +poll-interval = 5 + +[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 = "V " +format-volume-prefix-foreground = ${colors.primary} +format-volume = + +label-volume = %percentage%% + +label-muted = m +label-muted-foreground = ${colors.disabled} + +[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 = "R " +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-connected-foreground = ${colors.primary} +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 %H:%M:%S + +label = %date% +label-foreground = ${colors.primary} + +[settings] +screenchange-reload = true +pseudo-transparency = true + +; vim:ft=dosini diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh new file mode 100755 index 00000000..a465ab54 --- /dev/null +++ b/.config/polybar/launch.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +killall -q polybar +while pgrep -x polybar >/dev/null; do sleep 1; done + +polybar &