From 6565d750bb7b7414f3271104c0281ec9ce8f234d Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:15:15 +0100 Subject: cleaner polybar --- .config/polybar/config | 18 +- .config/polybar/config-reddit | 607 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 614 insertions(+), 11 deletions(-) create mode 100644 .config/polybar/config-reddit (limited to '.config') diff --git a/.config/polybar/config b/.config/polybar/config index ca56c64..fe410b1 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -16,7 +16,7 @@ alert = #bd2c40 [bar/bar1] monitor = DP-2 width = 100% -height = 25 +height = 28 ;offset-x = 1% ;offset-y = 1% radius = 0 @@ -38,7 +38,7 @@ padding-right = 2 module-margin-left = 0 module-margin-right = 4 -font-0 = Averia Libre:style=bold:size=14;4 +font-0 = Averia Libre:style=bold:size=15;3.6 font-1 = Font Awesome 5 Free Regular:size=14;4.5 font-2 = Font Awesome 5 Free Solid:size=14;4.5 @@ -60,7 +60,7 @@ enable-ipc = true [bar/bar2] monitor = DP-4.8 width = 100% -height = 25 +height = 28 ;offset-x = 1% ;offset-y = 1% radius = 0 @@ -82,9 +82,7 @@ padding-right = 0 module-margin-left = 1 module-margin-right = 2 -font-0 = Averia Libre:style=bold:size=14;4 -font-1 = Font Awesome 5 Free Regular:size=14;4.5 -font-2 = Font Awesome 5 Free Solid:size=14;4.5 +font-0 = Averia Libre:style=bold:size=15;3.6 modules-left = i3 modules-center = @@ -134,18 +132,16 @@ label-mode-background = ${colors.primary} ; focused = Active workspace on focused monitor label-focused = %index% label-focused-background = ${colors.background-alt} -label-focused-foreground = #f1e98a label-focused-underline= ${colors.primary} label-focused-padding = 3 ; unfocused = Inactive workspace on any monitor label-unfocused = %index% -label-unfocused-background = #0f1b36 label-unfocused-padding = 3 ; visible = Active workspace on unfocused monitor label-visible = %index% -label-visible-background = ${self.label-focused-background} +label-visible-background = #0f1b36 label-visible-underline = ${self.label-focused-underline} label-visible-padding = ${self.label-focused-padding} @@ -161,7 +157,7 @@ type = internal/date interval = 5 date-alt = "" -date = " %a, %b %d " +date = " %a, %d %b " time-alt = %H:%M time = %H:%M @@ -173,7 +169,7 @@ type = internal/date interval = 5 date = "" -date-alt = "%a, %b %d " +date-alt = " %a, %d %b " time = %H:%M time-alt = %H:%M diff --git a/.config/polybar/config-reddit b/.config/polybar/config-reddit new file mode 100644 index 0000000..ab2d980 --- /dev/null +++ b/.config/polybar/config-reddit @@ -0,0 +1,607 @@ +; ______ __ __ +; | __ \.-----.| |.--.--.| |--.---.-.----. +; | __/| _ || || | || _ | _ | _| +; |___| |_____||__||___ ||_____|___._|__| +; |_____| + +; COLORS {{{ +[colors] +background = ${xrdb:background} +foreground = ${xrdb:background} +foreground-alt = #A5ABB6 +background-alt = ${xrdb:cursorColor} +alert = ${xrdb:color1} +red = ${xrdb:color1} +green = ${xrdb:color2} +yellow = ${xrdb:color3} +blue = ${xrdb:color4} +magenta = ${xrdb:color5} +cyan = ${xrdb:color6} + +; }}} + +; BASE BAR {{{ + +[bar/base] +;monitor = ${env:MONITOR:HDMI-1} +width = 100% +height = 22 +offset-x = 0 +offset-y = 0 +radius = 0 +fixed-center = true +enable-ipc = true + +line-size = 2 +line-color = #fff + +background = ${colors.background} +foreground = ${colors.foreground} + +border-size = 0 +border-color = ${colors.background} + +padding-left = 0 +padding-right = 0 + +module-margin-left = 0 +module-margin-right = 0 + +font-0 = Open Sans Condensed:style=Bold:size=10 +font-1 = Font Awesome 5 Free Regular:style=Regular:size=9;1 +font-2 = Font Awesome 5 Free Solid:style=Solid:size=9;1 +font-3 = Font Awesome 5 Free Brand:style=Regular:size=9;1 +font-4 = JetBrainsMono Nerd Font:size=13;3 + +modules-right = slash2 picom-toggle uptime pulseaudio cpu memory date + +tray-position = right +tray-padding = 4 +tray-background = ${colors.background-alt} +tray-maxsize = 16 + +cursor-click = pointer +;cursor-scroll = ns-resize + +wm-restack = bspwm + +; }}} + +; BSPWM-BAR {{{ +[bar/bspwm-bar] +inherit = bar/base +modules-left = bspwm mpd slash1 +wm-restack = bspwm + +; }}} + +; I3-BAR {{{ +[bar/i3-bar] +inherit = bar/base + +;override-redirect = true +modules-left = i3 mpd slash1 +wm-restack = i3 + +; }}} + +; HERBS-BAR {{{ +[bar/herbs-bar] +inherit = bar/base +padding-left = 0 +modules-left = xworkspaces mpd slash1 + +; }}} + +; XMONAD-BAR {{{ +[bar/xmonad-bar] +inherit = bar/base +padding-left = 0 +modules-left = xmonad + +; }}} + +; SLASH MODULES {{{ + +[module/slash1] +type = custom/text +content = "%{T6} %{T-}" +content-font = 2 +content-foreground = ${colors.background-alt} +content-background = ${colors.background} + +[module/slash2] +type = custom/text +content = "%{T6} %{T-}" +content-font = 2 +content-foreground = ${colors.background-alt} +content-background = ${colors.background} + + +; }}} + +; DUNST-TOOGLE {{{ + +[module/dunst-toggle] +type = custom/ipc +hook-0 = echo "%{T3}%{T-}" +hook-1 = echo "%{T3}%{T-}" +initial = 1 +click-left = /home/dilip/.config/polybar/scripts/poly-dunst.sh & +format-padding = 2 +format-background = ${colors.backlight-alt} + +; }}} + +; UPTIME {{{ +[module/uptime] +type = custom/script +exec = uptime -p | cut -d' ' -f2,3 +format-prefix =  +format-padding = 2 +format-prefix-padding = 2 +format-background = ${colors.background-alt} +; exec-if = pgrep -x myservice +tail = true +interval = 60 +; }}} + +; PICOM-TOOGLE {{{ + +[module/picom-toggle] +type = custom/ipc +hook-0 = echo "" +hook-1 = echo "" +initial = 1 +click-left = /home/dilip/.config/polybar/scripts/poly-picom.sh & +format-padding = 2 +format-background = ${colors.background-alt} + +; }}} + +; XRESOURCES-TOGGLE {{{ + +[module/xresources-toggle] +type = custom/ipc +hook-0 = echo "" +hook-1 = echo "" +initial = 1 +click-left = /home/dilip/.config/polybar/scripts/poly-xresources.sh & +format-padding = 2 +format-background = ${colors.background-alt} + +; }}} + +; XWORKSPACES {{{ + +[module/xworkspaces] +type = internal/xworkspaces + +inactive-color = +pin-workspaces = false +enable-click = true +enable-scroll = true +reverse-scroll = true + +format = +label-monitor = %name% + +label-active = %name% +label-active-foreground = ${colors.background} +label-active-background = ${colors.background-alt} +label-active-underline= ${colors.background} +label-active-padding = 2 + +label-occupied = %name% +label-occupied-underline= ${colors.background-alt} +label-occupied-background = ${colors.background-alt} +label-occupied-foreground = ${colors.background} +label-occupied-padding = 2 + +label-urgent = %name% +label-urgent-foreground = ${colors.foreground} +label-urgent-background = ${colors.background-alt} +label-urgent-underline = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %name% +label-empty-foreground = ${colors.foreground-alt} +label-empty-background = ${colors.background-alt} +label-empty-padding = 2 + +; }}} + +; XWINDOW {{{ + +[module/xwindow] +type = internal/xwindow +format-prefix =  +format-prefix-background = ${colors.background-alt} +format-prefix-padding = 2 +label = %title:0:30:...% +label-foreground = ${colors.foreground} +label-background = ${colors.background-alt} +label-padding = 1 +;label-margin = 1 + +; }}} + +; XMONAD {{{ + +[module/xmonad] +type = custom/script +exec = xmonad-log +tail = true +format-foreground = ${colors.background} +format-background = ${colors.background-alt} + +; }}} + +; BSPWM {{{ + +[module/bspwm] +type = internal/bspwm + +label-focused = %name% +label-focused-foreground= ${colors.foreground} +label-focused-background= ${colors.background-alt} +label-focused-underline= ${colors.foreground} +label-focused-padding = 2 + +label-occupied = %name% +label-occupied-underline= ${colors.background-alt} +label-occupied-padding = 2 +label-occupied-background = ${colors.background-alt} +label-occupied-foreground = ${colors.foreground} + +label-urgent = %name% +label-urgent-foreground = ${colors.foreground} +label-urgent-background = ${colors.background-alt} +label-urgent-underline = ${colors.alert} +label-urgent-padding = 2 + +label-empty = %name% +label-empty-foreground = ${colors.foreground-alt} +label-empty-background = ${colors.background-alt} +label-empty-padding = 2 + +; Separator in between workspaces +; label-separator = | + +; }}} + +; I3 {{{ + +[module/i3] +type = internal/i3 +format = +index-sort = true +wrapping-scroll = false + +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +; focused = Active workspace on focused monitor +label-focused = %name% +label-focused-underline = ${colors.foreground} +label-focused-foreground = ${colors.foreground} +label-focused-background = ${colors.background-alt} +label-focused-padding = 2 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %name% +label-unfocused-underline = ${colors.background-alt} +label-unfocused-padding = ${self.label-focused-padding} +label-unfocused-foreground = ${colors.foreground} +label-unfocused-background = ${colors.background-alt} + +; visible = Active workspace on unfocused monitor +label-visible = %name% +label-visible-background = ${self.label-focused-background} +label-visible-underline = ${self.label-focused-underline} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %name% +label-urgent-background = ${colors.background-alt} +label-urgent-foreground = ${colors.foreground} +label-urgent-underline = ${colors.alert} +label-urgent-padding = ${self.label-focused-padding} + +; }}} + +; BACKLIGHT {{{ + +[module/backlight] +type = internal/xbacklight + +output = VGA1 + +format =