summaryrefslogtreecommitdiff
path: root/.config/polybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar')
-rw-r--r--.config/polybar/config18
-rw-r--r--.config/polybar/config-reddit607
2 files changed, 614 insertions, 11 deletions
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-state>
+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 = <label-state> <label-mode>
+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 = <label>
+format-prefix = 
+label = %percentage%%
+label-foreground = ${colors.foreground}
+label-background = ${colors.background}
+
+; }}}
+
+; FILESYSTEM {{{
+
+[module/filesystem]
+type = internal/fs
+mount-0 = /
+interval = 10
+fixed-values = true
+spacing = 4
+
+format-mounted = <label-mounted>
+format-mounted-padding = 2
+format-mounted-background = ${colors.background-alt}
+format-mounted-prefix = %{T3}%{T-}
+format-mounted-prefix-foreground = ${colors.foreground}
+label-mounted = " %mountpoint% : %percentage_used%%"
+
+; }}}
+
+; MPD {{{
+
+[module/mpd]
+type = internal/mpd
+
+host = 127.0.0.1
+port = 6600
+password =
+
+format-online = <icon-prev> <toggle> <icon-next> <icon-repeat> <label-song> <label-time>
+format-online-background = ${colors.background-alt}
+format-online-padding = 2
+format-offline = <label-offline>
+format-offline-background = ${colors.background-alt}
+format-offline-prefix = 
+format-offline-prefix-foreground = ${colors.alert}
+format-offline-padding = 2
+
+label-offline = " Mpd is offline"
+label-song = %title%
+label-song-margin = 3
+label-time-margin = 2
+
+;=== Icons ===
+;        
+
+icon-seekb = 
+icon-seekb-margin = 1
+icon-prev = 
+icon-prev-margin = 1
+icon-play = 
+icon-play-margin = 1
+icon-pause-margin = 1
+icon-pause = 
+icon-seekf = 
+icon-seekf-margin = 1
+icon-next = 
+icon-next-margin = 1
+icon-repeat = 
+icon-repeat-margin = 1
+icon-stop = 
+icon-stop-margin = 1
+
+toggle-on-foreground = ${colors.foreground}
+toggle-off-foreground = ${colors.foreground-alt}
+
+click-right = ncmpcpp &
+
+; }}}
+
+; CPU {{{
+
+[module/cpu]
+type = internal/cpu
+interval = 2
+format = <ramp-load> <label>
+format-padding = 2
+format-background = ${colors.background-alt}
+
+ramp-load-0 = 
+ramp-load-0-foreground = ${colors.foreground}
+ramp-load-1 = 
+ramp-load-1-foreground = ${colors.foreground}
+ramp-load-2 = 
+ramp-load-2-foreground = ${colors.foreground}
+ramp-load-3 = 
+ramp-load-3-foreground = ${colors.foreground}
+ramp-load-4 = 
+ramp-load-4-foreground = ${colors.foreground}
+ramp-load-5 = 
+ramp-load-5-foreground = ${colors.foreground}
+ramp-load-6 = 
+ramp-load-6-foreground = ${colors.foreground}
+ramp-load-7 = 
+ramp-load-7-foreground = ${colors.foreground}
+ramp-load-8 = 
+ramp-load-8-foreground = ${colors.foreground}
+ramp-load-9 = 
+ramp-load-9-foreground = ${colors.alert}
+
+label = %percentage:2%%
+label-foreground = ${colors.foreground}
+label-padding = 1
+
+click-right = htop &
+
+; }}}
+
+; MEMORY {{{
+
+[module/memory]
+type = internal/memory
+interval = 2
+format = <ramp-used> <label>
+format-padding = 2
+format-background = ${colors.background-alt}
+
+ramp-used-0 = " "
+ramp-used-0-foreground = ${colors.foreground}
+ramp-used-1 = " "
+ramp-used-1-foreground = ${colors.foreground}
+ramp-used-2 = " "
+ramp-used-2-foreground = ${colors.foreground}
+ramp-used-3 = " "
+ramp-used-3-foreground = ${colors.foreground}
+ramp-used-4 = " "
+ramp-used-4-foreground = ${colors.foreground}
+ramp-used-5 = " "
+ramp-used-5-foreground = ${colors.foreground}
+ramp-used-6 = " "
+ramp-used-6-foreground = ${colors.foreground}
+ramp-used-7 = " "
+ramp-used-7-foreground = ${colors.foreground}
+ramp-used-8 = " "
+ramp-used-8-foreground = ${colors.foreground}
+ramp-used-9 = " "
+ramp-used-9-foreground = ${colors.alert}
+
+label = %percentage_used%%
+label-foreground = ${colors.foreground}
+label-padding = 1
+;label-margin = 1
+
+; }}}
+
+; WLAN {{{
+
+[module/wlan]
+type = internal/network
+interface = wlan0
+interval = 1.0
+
+format-connected = <label-connected>
+;format-connected-underline = #55ff55
+label-connected = WIFI: %essid% IP: %local_ip%
+label-connected-foreground = ${colors.foreground}
+label-connected-padding = 1
+;label-connected-margin = 1
+
+;format-disconnected =
+;format-disconnected = <label-disconnected>
+;format-disconnected-underline = #ff5555
+;label-disconnected = WIFI: disconnected IP: N/A
+;label-disconnected-padding = 2
+;label-disconnected-background = #3971ed
+;label-disconned
+;label-disconnected-foreground = #ff0000
+
+; }}}
+
+; DATE {{{
+
+[module/date]
+type = internal/date
+interval = 5
+
+date = "%d %b"
+
+time = %a %H:%M
+
+format-prefix = 
+format-prefix-foreground = ${colors.foreground}
+format-prefix-background = ${colors.background-alt}
+format-prefix-padding = 2
+
+label = %date%, %time%
+label-foreground = ${colors.foreground}
+label-background = ${colors.background-alt}
+label-padding = 1
+;label-margin = 1
+
+; }}}
+
+; PULSEAUDIO {{{
+
+[module/pulseaudio]
+type = internal/pulseaudio
+
+format-volume = <ramp-volume> <label-volume>
+format-volume-padding = 2
+format-volume-background = ${colors.background-alt}
+label-volume = %percentage%%
+label-volume-foreground = ${colors.foreground}
+label-volume-padding = 1
+
+ramp-volume-0 = 
+ramp-volume-0-foreground = ${colors.foreground}
+ramp-volume-1 = 
+ramp-volume-1-foreground = ${colors.foreground}
+ramp-volume-2 = 
+ramp-volume-2-foreground = ${colors.foreground}
+ramp-volume-3 = 
+ramp-volume-3-foreground = ${colors.foreground}
+ramp-volume-4 = 
+ramp-volume-4-foreground = ${colors.foreground}
+ramp-volume-5 = 
+ramp-volume-5-foreground = ${colors.foreground}
+ramp-volume-6 = 
+ramp-volume-6-foreground = ${colors.foreground}
+ramp-volume-7 = 
+ramp-volume-7-foreground = ${colors.foreground}
+ramp-volume-8 = 
+ramp-volume-8-foreground = ${colors.foreground}
+ramp-volume-9 = 
+ramp-volume-9-foreground = ${colors.alert}
+
+label-muted = 
+label-muted-foreground = ${colors.alert}
+label-muted-background = ${colors.background-alt}
+label-muted-padding = 2
+
+click-right = pavucontrol &
+
+; }}}
+
+; TEMPERATURE {{{
+
+[module/temperature]
+type = internal/temperature
+thermal-zone = 0
+warn-temperature = 60
+
+format = <ramp> <label>
+format-padding = 2
+format-background = ${colors.background-alt}
+format-warn = <ramp> <label-warn>
+
+ramp-0 = 
+ramp-0-foreground = ${colors.foreground}
+ramp-1 = 
+ramp-1-foreground = ${colors.foreground}
+ramp-2 = 
+ramp-2-foreground = ${colors.foreground}
+ramp-3 = 
+ramp-3-foreground = ${colors.foreground}
+ramp-4 = 
+ramp-4-foreground = ${colors.alert}
+
+label = %temperature-c%
+label-foreground = ${colors.foreground}
+label-padding = 1
+
+; }}}
+
+; OTHERS {{{
+
+[settings]
+screenchange-reload = true
+;compositing-background = xor
+;compositing-background = screen
+;compositing-foreground = source
+;compositing-border = over
+;pseudo-transparency = false
+
+[global/wm]
+margin-top = 0
+margin-bottom = 0
+
+; vim:ft=dosini
+
+; }}}
+