From 7c41f0d9d03868e0aeda6bf3cf2e76aeb03c0b18 Mon Sep 17 00:00:00 2001 From: q3aql Date: Sat, 8 Jan 2022 21:23:03 +0100 Subject: [PATCH] Dotfiles config update (2021-01-08) --- .config/polybar/config | 21 +- .config/polybar/config.bck | 389 ++++++++++++++++++++++++++++++++++ examples/i3wm-polybar.png | Bin 897707 -> 948631 bytes examples/spectrwm-polybar.png | Bin 1705578 -> 1686436 bytes 4 files changed, 402 insertions(+), 8 deletions(-) create mode 100644 .config/polybar/config.bck diff --git a/.config/polybar/config b/.config/polybar/config index 16073c8..058bd0a 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -46,12 +46,14 @@ radius = 0.0 fixed-center = true ;background = ${glob.background} -background = #222133 +;background = #222133 +background = #2b303b foreground = #ADBAC7 underline = #664477 line-size = 2 -line-color = #f004477 +;line-color = #f004477 +line-color = #9fa8af border-size = 0 ;border-color = #664477 @@ -74,7 +76,8 @@ modules-left = i3 modules-right = kernel cpu meminfo diskinfo pulseaudio wlan eth0 date tray-position = right ;tray-margin = 0 -tray-background = #222133 +;tray-background = #222133 +tray-background = #2b303b ;wm-restack = bspwm ;wm-restack = i3 @@ -179,8 +182,9 @@ label-monitor = %name% label-active = %name% label-active-foreground = ${colors.foreground} -label-active-background = ${colors.background} -label-active-underline= #6790eb +;label-active-background = ${colors.background} +label-active-background = #42516d +label-active-underline= #dbdbdb label-active-padding = 2 label-occupied = %name% @@ -243,8 +247,9 @@ label-mode-background = ${glob.primary} ; focused = Active workspace on focused monitor label-focused = %name% label-focused-foreground = ${colors.foreground} -label-focused-background = ${colors.background} -label-focused-underline = #6790eb +;label-focused-background = ${colors.background} +label-focused-background = #42516d +label-focused-underline = #dbdbdb label-focused-padding = 1 ; unfocused = Inactive workspace on any monitor @@ -309,7 +314,7 @@ interval = 5 date = "%d %b %Y" ;date-alt = " %Y-%m-%d" -time = %I:%M +time = %H:%M ;time-alt = %H:%M:%S ;format-prefix =  diff --git a/.config/polybar/config.bck b/.config/polybar/config.bck new file mode 100644 index 0000000..23cf996 --- /dev/null +++ b/.config/polybar/config.bck @@ -0,0 +1,389 @@ +;========================================================== +; +; +; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗ +; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗ +; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝ +; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗ +; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║ +; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝ +; +; +; To learn more about how to configure Polybar +; go to https://github.com/polybar/polybar +; +; The README contains a lot of information +; +;========================================================== + +[glob] +background = ${xrdb: color0} +foreground = ${xrdb: color7} +alert = ${xrdb: color9} +underline = ${xrdb: color2} +primary = ${xrdb: color7} + +red = ${xrdb: color9} +green = ${xrdb: color2} +yellow = ${xrdb: color3} +light-blue = ${xrdb: color4} +light-pink = ${xrdb: color5} +light-green = ${xrdb: color6} + +padding = 2 + +[bar/mainbar-i3] +monitor = ${env:MONITOR:} +;monitor = ${env:MONITOR:HDMI-1} +;monitor = ${env:MONITOR:DisplayPort-0} +;monitor = ${env:MONITOR:DisplayPort-1} +width = 100% +height = 28 +;override-redirect = true +;offset-x = 25% +;offset-y = 0% +radius = 0.0 +fixed-center = true + +;background = ${glob.background} +background = #222133 +foreground = #ADBAC7 +underline = #664477 + +line-size = 2 +line-color = #f004477 + +border-size = 0 +;border-color = #664477 +;border-color = #00000000 +;border-color = ${glob.background} + +padding-left = 0 +padding-right = 0 + +module-margin-left = 0 +module-margin-right = 0 + +font-0 = "Noto Sans:size=10;0" +font-1 = "FontAwesome:size=10;0" +font-2 = "Noto Sans:size=10;0" +font-3 = "Noto Sans Mono:size=10;0" + +modules-left = i3 +; modules-center = calendar date +modules-right = kernel cpu meminfo diskinfo pulseaudio wlan eth0 date +tray-position = right +;tray-margin = 0 +tray-background = #222133 + +;wm-restack = bspwm +;wm-restack = i3 + +;override-redirect = true + +;scroll-up = bspwm-desknext +;scroll-down = bspwm-deskprev + +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev + +cursor-click = pointer +cursor-scroll = ns-resize + +[bar/mainbar-spectrwm] +monitor = ${env:MONITOR} +;monitor-fallback = HDMI1 +width = 100% +height = 26 +;offset-x = 1% +;offset-y = 1% +radius = 0.0 +fixed-center = true +;bottom = false +;separator = | + +;background = ${glob.background} +background = #222133 +foreground = #ADBAC7 +underline = #664477 + +line-size = 3 +line-color = #f004477 + +;wm-restack = bspwm +override-redirect = true + +; Enable support for inter-process messaging +; See the Messaging wiki page for more details. +;enable-ipc = true + +border-size = 0 +;border-color = #664477 +;border-color = #00000000 +;border-color = ${glob.background} + +padding-left = 0 +padding-right = 0 + +module-margin-left = 1 +module-margin-right = 0 + +;https://github.com/jaagr/polybar/wiki/Fonts +font-0 = "Noto Sans:size=10;0" +font-1 = "FontAwesome:size=10;0" +font-2 = "Noto Sans:size=10;0" +font-3 = "Noto Sans Mono:size=10;0" + +;modules-left = ewmh xwindow +modules-left = ewmh +;modules-center = kernel +;modules-right = pavolume memory2 cpu2 date +modules-right = kernel cpu meminfo diskinfo pulseaudio date + +;tray-detached = false +;tray-offset-x = 0 +;tray-offset-y = 0 +;tray-padding = 2 +;tray-maxsize = 20 +;tray-scale = 1.0 +tray-position = right +;tray-margin = 0 +tray-background = #222133 + +scroll-up = spectrwm-desknext +scroll-down = spectrwm-deskprev + +[module/xwindow] +;https://github.com/jaagr/polybar/wiki/Module:-xwindow +type = internal/xwindow + +; Available tokens: +; %title% +; Default: %title% +label = %title% +label-maxlen = 50 + +format-foreground = ${colors.foreground} +format-background = ${colors.background} + +[module/ewmh] +type = internal/xworkspaces +pin-workspaces = false +enable-click = true +enable-scroll = true +reverse-scroll = true + +#icon-5 = 6; +format = +label-monitor = %name% + +label-active = %name% +label-active-foreground = ${colors.foreground} +label-active-background = ${colors.background} +label-active-underline= #6790eb +label-active-padding = 2 + +label-occupied = %name% +label-occupied-background = ${colors.background} +label-occupied-padding = 2 + +label-urgent = %name% +label-urgent-foreground = ${colors.foreground} +label-urgent-background = ${colors.alert} +label-urgent-underline = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %name% +label-empty-foreground = ${colors.foreground} +label-empty-padding = 2 +format-foreground = ${colors.foreground} +format-background = ${colors.background} + +[module/kernel] +format-foreground = #51A6E3 +type = custom/script +exec = ~/.config/polybar/kernel_version.sh +interval = 10 + +[module/cpu] +;type = internal/cpu +format-foreground = #B63CEC +;format =