playing with polybar
This commit is contained in:
		
							parent
							
								
									7d693a37d3
								
							
						
					
					
						commit
						05a39713f4
					
				|  | @ -29,357 +29,347 @@ accent = #604c7e | ||||||
| [global/wm] | [global/wm] | ||||||
| margin-top = 0 | margin-top = 0 | ||||||
| margin-bottom = 34 | margin-bottom = 34 | ||||||
|  | [bar/mybar] | ||||||
|  | ; monitor = VGA-1 | ||||||
| 
 | 
 | ||||||
| [bar/main] | override-redirect = false | ||||||
| monitor = ${env:MONITOR} | 
 | ||||||
| monitor-strict = true | ; Put the bar at the bottom of the screen | ||||||
| enable-ipc = true | bottom = false | ||||||
| wm-restack = bspwm | 
 | ||||||
| # REQUIRED to move the window with hideit.sh | ; Prefer fixed center position for the `modules-center` block | ||||||
| override-redirect = true |  | ||||||
| fixed-center = true | fixed-center = true | ||||||
| 
 | 
 | ||||||
|  | width = 100% | ||||||
|  | height = 29 | ||||||
|  | 
 | ||||||
|  | offset-x =  | ||||||
|  | offset-y =   | ||||||
|  | 
 | ||||||
|  | ; Background ARGB color (e.g. #f00, #ff992a, #ddff1023) | ||||||
| background = ${colors.bg} | background = ${colors.bg} | ||||||
|  | 
 | ||||||
|  | ; Foreground ARGB color (e.g. #f00, #ff992a, #ddff1023) | ||||||
| foreground = ${colors.fg} | foreground = ${colors.fg} | ||||||
| 
 | 
 | ||||||
| width = 100% | line-size = 0 | ||||||
| height = 34 | line-color = #fff | ||||||
| offset-x = 0 |  | ||||||
| offset-y = 0 |  | ||||||
| # bottom = true |  | ||||||
| 
 | 
 | ||||||
| overline-size = 0 | ; Number of spaces to add at the beginning/end of the bar | ||||||
| overline-color = #f00 | ; Individual side values can be defined using: | ||||||
| underline-size = 0 | ;   padding-{left,right} | ||||||
| underline-color = #00f | padding-right = 1  | ||||||
|  | padding-left = 0 | ||||||
| 
 | 
 | ||||||
| border-bottom-size = 0 | ; Number of spaces to add before/after each module | ||||||
| border-top-size = 1 | ; Individual side values can be defined using: | ||||||
| border-color = ${colors.bg-dark} | ;   module-margin-{left,right} | ||||||
|  | module-margin = 0 | ||||||
| 
 | 
 | ||||||
| padding-left = 2 | font-0 = "Iosevka Term:pixelsize=13;4" | ||||||
| padding-right = 2 | font-1 = "Iosevka Term:pixelsize=6;1" | ||||||
| module-margin-left = 0 |  | ||||||
| module-margin-right = 0 |  | ||||||
| 
 | 
 | ||||||
| font-0 = "Fira Code:pixelsize=9;2" | ; Add module mpd for artist - title info | ||||||
| font-1 = "Wuncon Siji:pixelsize=12;2" | modules-left = i3 sps mpd_i sps mpd sps  pulseaudio | ||||||
| font-2 = "Siji:pixelsize=10;2" | modules-center = title | ||||||
|  | modules-right = network sps memory sps cpu sps date | ||||||
| 
 | 
 | ||||||
| ; modules-left = volume pad cpu memory pad pkg mail | ; The separator will be inserted between the output of each module | ||||||
| modules-left = pulseaudio pad cpu memory pad fs | separator = | ||||||
| modules-center = bspwm |  | ||||||
| modules-right = syncthing redshift wlan pad network-up pad network-down pad battery pad date |  | ||||||
| 
 | 
 | ||||||
| ;tray-position = center | ; This value is used to add extra spacing between elements | ||||||
| ;tray-padding = 2 | ; @deprecated: This parameter will be removed in an upcoming version | ||||||
| ;tray-transparent = true | spacing = 0 | ||||||
| ;tray-background = #0063ff |  | ||||||
| 
 | 
 | ||||||
| [module/bspwm] | ; Opacity value between 0.0 and 1.0 used on fade in/out | ||||||
| type = internal/bspwm | dim-value = 1.0 | ||||||
|  | 
 | ||||||
|  | wm-name = i3 | ||||||
|  | 
 | ||||||
|  | tray-position = right | ||||||
|  | 
 | ||||||
|  | ; If true, the bar will not shift its | ||||||
|  | ; contents when the tray changes | ||||||
|  | tray-detached = false | ||||||
|  | 
 | ||||||
|  | ; Tray icon max size | ||||||
|  | tray-maxsize = 16 | ||||||
|  | 
 | ||||||
|  | tray-background = ${colors.bg} | ||||||
|  | ;offset defined as pixel value (e.g. 35) or percentage (e.g. 50%) | ||||||
|  | 
 | ||||||
|  | tray-offset-x = 0 | ||||||
|  | tray-offset-y = 0 | ||||||
|  | 
 | ||||||
|  | ; Pad the sides of each tray icon | ||||||
|  | tray-padding = 0 | ||||||
|  | 
 | ||||||
|  | ; Scale factor for tray clients | ||||||
|  | tray-scale = 1.0 | ||||||
|  | 
 | ||||||
|  | wm-restack = i3 | ||||||
|  | 
 | ||||||
|  | dpi-x = 133 | ||||||
|  | dpi-y = 133 | ||||||
|  | 
 | ||||||
|  | enable-ipc = false | ||||||
|  | 
 | ||||||
|  | ; Fallback click handlers that will be called if | ||||||
|  | ; there's no matching module handler found. | ||||||
|  | [module/i3] | ||||||
|  | type = internal/i3 | ||||||
| pin-workspaces = true | pin-workspaces = true | ||||||
|  | 
 | ||||||
|  | strip-wsnumbers = true | ||||||
|  | 
 | ||||||
|  | index-sort = true | ||||||
|  | 
 | ||||||
|  | ; Create click handler used to focus workspace | ||||||
|  | ; Default: true | ||||||
| enable-click = true | enable-click = true | ||||||
| 
 | 
 | ||||||
| # ws-icon-0 = 1; | ; Create scroll handlers used to cycle workspaces | ||||||
| # ws-icon-1 = 2; | ; Default: true | ||||||
| # ws-icon-2 = 3; | enable-scroll = true | ||||||
| # ws-icon-3 = 4; |  | ||||||
| # ws-icon-4 = 5; |  | ||||||
| # ws-icon-5 = 6; |  | ||||||
| ws-icon-default =  |  | ||||||
| 
 | 
 | ||||||
| format = <label-state> <label-mode> | ; Wrap around when reaching the first/last workspace | ||||||
| label-padding = 1 | ; Default: true | ||||||
|  | wrapping-scroll = false | ||||||
|  | 
 | ||||||
|  | ; Set the scroll cycle direction | ||||||
|  | ; Default: true | ||||||
|  | reverse-scroll = false | ||||||
|  | ws-icon-0 = 1;%{T1}%{T-} | ||||||
|  | ws-icon-1 = 2;%{T1}%{T-} | ||||||
|  | ws-icon-2 = 3;%{T1}%{T-} | ||||||
|  | ws-icon-3 = 4;%{T1}%{T-} | ||||||
|  | ws-icon-4 = 5;%{T1}%{T-} | ||||||
|  | ws-icon-5 = 6;%{T1}%{T-} | ||||||
|  | ws-icon-6 = 7;%{T1}%{T-} | ||||||
|  | ws-icon-7 = 8;%{T1}%{T-} | ||||||
|  | ws-icon-8 = 9;%{T1}%{T-} | ||||||
|  | ws-icon-9 = 0;%{T1}%{T-} | ||||||
|  | ws-icon-default = %{T1}%{T-} | ||||||
|  | fuzzy-match = true | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | label-unfocused = %icon% | ||||||
|  | label-unfocused-padding = 1 | ||||||
|  | label-unfocused-foreground = ${colors.yellow} | ||||||
| 
 | 
 | ||||||
| label-focused = %icon% | label-focused = %icon% | ||||||
| label-focused-background = ${colors.bg-dark} | label-focused-foreground = ${colors.bg} | ||||||
| label-focused-foreground = ${colors.fg} | label-focused-background = ${colors.yellow} | ||||||
| # label-focused-underline = ${colors.magenta} | label-focused-underline = #f92672 | ||||||
| ; label-focused-foreground = ${xrdb:color2} |  | ||||||
| label-focused-padding = 1 | label-focused-padding = 1 | ||||||
| 
 | 
 | ||||||
| label-occupied = %icon% |  | ||||||
| label-occupied-foreground = ${colors.accent} |  | ||||||
| label-occupied-padding = 1 |  | ||||||
| 
 |  | ||||||
| ; label-urgent = %icon% |  | ||||||
| label-urgent-foreground = ${colors.alert} |  | ||||||
| ; label-urgent-background = ${colors.alert} |  | ||||||
| label-urgent-padding = 1 |  | ||||||
| 
 |  | ||||||
| label-empty = %icon% |  | ||||||
| label-empty-foreground = ${colors.fg-alt} |  | ||||||
| label-empty-padding = 1 |  | ||||||
| 
 |  | ||||||
| [module/date] | [module/date] | ||||||
| type = internal/date | type = internal/date | ||||||
| interval = 5 |  | ||||||
| 
 | 
 | ||||||
| label = %date%  %time% | ; Seconds to sleep between updates | ||||||
| date = %A, %h %d | interval = 1.0 | ||||||
| date-alt = %Y-%m-%d |  | ||||||
| time = %I:%M %p |  | ||||||
| time-alt = %H:%M:%S |  | ||||||
| format-prefix = "" |  | ||||||
| format-prefix-padding = 1 |  | ||||||
| ; format-prefix-background = ${colors.bg-alt} |  | ||||||
| format-prefix-foreground = ${colors.accent} |  | ||||||
| ; format-underline = ${xrdb:color4} |  | ||||||
| 
 | 
 | ||||||
| [module/fs] | ; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string | ||||||
| type = internal/fs | ; NOTE: if you want to use syntax tags here you need to use %%{...} | ||||||
| mount-0 = / | date = %{T1}%{T-}%{T2} %d/%a%{T-} | ||||||
| mount-1 = /mnt/projects  ; for desktops |  | ||||||
| mount-2 = /home          ; for laptop |  | ||||||
| interval = 30 |  | ||||||
| 
 | 
 | ||||||
| ; Available tags: | ; Optional time format | ||||||
| ;   <label-mounted> (default) | time = %{T2} %H:%M%{T-} | ||||||
| ;   <bar-free> |  | ||||||
| ;   <bar-used> |  | ||||||
| ;   <ramp-capacity> |  | ||||||
| format-mounted = "<bar-used>" |  | ||||||
| format-mounted-foreground = ${colors.accent} |  | ||||||
| ; Available tokens: |  | ||||||
| ;   %mountpoint% |  | ||||||
| ;   %type% |  | ||||||
| ;   %fsname% |  | ||||||
| ;   %percentage_free% |  | ||||||
| ;   %percentage_used% |  | ||||||
| ;   %total% |  | ||||||
| ;   %free% |  | ||||||
| ;   %used% |  | ||||||
| ; Default: %mountpoint% %percentage_free%% |  | ||||||
| 
 | 
 | ||||||
| ; Available tags: | ; if `date-alt` or `time-alt` is defined, clicking | ||||||
| ;   <label-unmounted> (default) | ; the module will toggle between formats | ||||||
| format-unmounted = | date-alt = %{T1}%{T-}%{T2} %a, %d %b %y%{T-} | ||||||
| label-unmounted = | time-alt = %{T2} %H:%M:%S%{T-} | ||||||
| label-unmounted-foreground = ${colors.fg-alt} |  | ||||||
| 
 | 
 | ||||||
| bar-used-indicator = | label = %date%%time% | ||||||
| bar-used-width = 8 | label-font = 0 | ||||||
| bar-used-foreground-0 = ${colors.fg} | label-foreground = ${colors.green} | ||||||
| bar-used-foreground-1 = ${colors.fg} |  | ||||||
| bar-used-foreground-2 = ${colors.yellow} |  | ||||||
| bar-used-foreground-3 = ${colors.alert} |  | ||||||
| bar-used-foreground-4 = ${colors.alert} |  | ||||||
| bar-used-fill = | |  | ||||||
| bar-used-empty = ¦ |  | ||||||
| bar-used-empty-foreground = ${colors.fg-alt} |  | ||||||
| 
 | 
 | ||||||
| [module/xwindow] | [module/wireless-network] | ||||||
| type = internal/xwindow | type = internal/network | ||||||
| label = %title:0:80:...% | interface = wlan0 | ||||||
| label-padding-left = 2 |  | ||||||
| 
 | 
 | ||||||
| ; [module/mpd] | label-connected = %essid% | ||||||
| ; type = internal/mpd | format-connected = <ramp-signal> | ||||||
| ; host = /home/hlissner/.config/mpd/mpd.sock | label-connected-foreground = #82b414 | ||||||
| ; | 
 | ||||||
| ; format-online = <label-song> <toggle> | format-disconnected = <label-disconnected> | ||||||
| ; format-padding = 5 | label-disconnected = Not connected | ||||||
| ; | label-disconnected-foreground = #f92672 | ||||||
| ; label-song-maxlen = 45 | label-disconnected-background = #99000000 | ||||||
| ; label-song-ellipsis = true | 
 | ||||||
| ; | ramp-signal-foreground = #82b414 | ||||||
| ; icon-prev =  | ramp-signal-0 =  | ||||||
| ; icon-seekb =  | ramp-signal-1 =  | ||||||
| ; icon-stop =  | ramp-signal-2 =  | ||||||
| ; icon-play =  | ramp-signal-3 =  | ||||||
| ; icon-pause =  | ramp-signal-4 =  | ||||||
| ; icon-next =  | ramp-signal-5 =  | ||||||
| ; icon-seekf =  |  | ||||||
| ; |  | ||||||
| ; icon-random =  |  | ||||||
| ; icon-repeat =  |  | ||||||
| ; |  | ||||||
| ; toggle-on-foreground = ${colors.fg} |  | ||||||
| ; toggle-off-foreground = #66 |  | ||||||
| 
 | 
 | ||||||
| [module/cpu] | [module/cpu] | ||||||
| type = internal/cpu | type = internal/cpu | ||||||
| interval = 2 |  | ||||||
| format = <bar-load> |  | ||||||
| format-prefix = "" |  | ||||||
| format-foreground = ${colors.accent} |  | ||||||
| ; format-underline = #f90000 |  | ||||||
| ; label = %percentage%% |  | ||||||
| format-padding = 1 |  | ||||||
| 
 | 
 | ||||||
| bar-load-indicator = | ; Seconds to sleep between updates | ||||||
| bar-load-width = 8 | ; Default: 1 | ||||||
| bar-load-foreground-0 = ${colors.fg} | interval = 0.5 | ||||||
| bar-load-foreground-1 = ${colors.fg} | 
 | ||||||
| bar-load-foreground-2 = ${colors.yellow} | label = %{T1}%{T-}%{T2} %percentage:2%%%{T-} | ||||||
| bar-load-foreground-3 = ${colors.alert} | 
 | ||||||
| bar-load-foreground-4 = ${colors.alert} | label-foreground = ${colors.cyan} | ||||||
| bar-load-fill = | |  | ||||||
| bar-load-empty = ¦ |  | ||||||
| bar-load-empty-foreground = ${colors.fg-alt} |  | ||||||
| 
 | 
 | ||||||
| [module/memory] | [module/memory] | ||||||
| type = internal/memory | type = internal/memory | ||||||
| interval = 3 |  | ||||||
| format = <bar-used> |  | ||||||
| format-prefix = "" |  | ||||||
| format-prefix-foreground = ${colors.accent} |  | ||||||
| ; format-underline = #4bffdc |  | ||||||
| ; label = %percentage_used%% |  | ||||||
| format-padding-left = 1 |  | ||||||
| 
 | 
 | ||||||
| ; Only applies if <bar-used> is used | ; Seconds to sleep between updates | ||||||
| bar-used-indicator = | ; Default: 1 | ||||||
| bar-used-width = 8 | interval = 0.5 | ||||||
| bar-used-foreground-0 = ${colors.fg} | format = <label> | ||||||
| bar-used-foreground-1 = ${colors.fg} |  | ||||||
| bar-used-foreground-2 = ${colors.yellow} |  | ||||||
| bar-used-foreground-3 = ${colors.alert} |  | ||||||
| bar-used-foreground-4 = ${colors.alert} |  | ||||||
| bar-used-fill = | |  | ||||||
| bar-used-empty = ¦ |  | ||||||
| bar-used-empty-foreground = ${colors.fg-alt} |  | ||||||
| 
 | 
 | ||||||
| [module/wlan] | ; Available tokens: | ||||||
|  | ;   %percentage_used% (default) | ||||||
|  | ;   %percentage_free% | ||||||
|  | ;   %gb_used% | ||||||
|  | ;   %gb_free% | ||||||
|  | ;   %gb_total% | ||||||
|  | ;   %mb_used% | ||||||
|  | ;   %mb_free% | ||||||
|  | ;   %mb_total% | ||||||
|  | ;   %percentage_swap_used% | ||||||
|  | ;   %percentage_swap_free% | ||||||
|  | ;   %mb_swap_total% | ||||||
|  | ;   %mb_swap_free% | ||||||
|  | ;   %mb_swap_used% | ||||||
|  | ;   %gb_swap_total% | ||||||
|  | ;   %gb_swap_free% | ||||||
|  | ;   %gb_swap_used% | ||||||
|  | 
 | ||||||
|  | label = %{T1}%{T-}%{T2} %gb_used%%{T-} | ||||||
|  | 
 | ||||||
|  | label-foreground = ${colors.cyan} | ||||||
|  | 
 | ||||||
|  | [module/mpd] | ||||||
|  | type = internal/mpd | ||||||
|  | 
 | ||||||
|  | host = 0.0.0.0 | ||||||
|  | port = 6600 | ||||||
|  | 
 | ||||||
|  | interval = 2 | ||||||
|  | 
 | ||||||
|  | format-online = <label-song> | ||||||
|  | format-online-background = ${colors.bg} | ||||||
|  | format-online-foreground = ${colors.yellow} | ||||||
|  | #format-online-padding = 20 | ||||||
|  | 
 | ||||||
|  | label-song =  %{T2}%artist% - %title%%{T-} | ||||||
|  | label-song-maxlen = 55 | ||||||
|  | label-song-ellipsis = true | ||||||
|  | 
 | ||||||
|  | label-offline = "MPD is offline" | ||||||
|  | 
 | ||||||
|  | [module/mpd_i] | ||||||
|  | type = internal/mpd | ||||||
|  | 
 | ||||||
|  | interval = 2 | ||||||
|  | 
 | ||||||
|  | format-online = <icon-prev> <toggle> <icon-next> | ||||||
|  | format-online-background = ${colors.bg} | ||||||
|  | format-online-foreground = ${colors.yellow} | ||||||
|  | #format-online-padding = 2 | ||||||
|  | 
 | ||||||
|  | label-offline = "MPD is offline" | ||||||
|  | 
 | ||||||
|  | ; Only applies if <icon-X> is used | ||||||
|  | icon-play = %{T1}奈%{T-} | ||||||
|  | icon-pause = %{T1}%{T-} | ||||||
|  | icon-stop = %{T1}%{T-} | ||||||
|  | icon-prev = %{T1}ﭣ%{T-} | ||||||
|  | icon-next = %{T1}ﭡ%{T-} | ||||||
|  | 
 | ||||||
|  | ;An empty module used to add 1 unit spacings whenever needed | ||||||
|  | [module/sps] | ||||||
|  | type = custom/text | ||||||
|  | content = " " | ||||||
|  | content-padding = 0 | ||||||
|  | 
 | ||||||
|  | [module/network] | ||||||
| type = internal/network | type = internal/network | ||||||
| interface = ${env:WLP:wlp3s0} | interface = wlan0 | ||||||
| interval = 3.0 | ;enp0s29u1u2 | ||||||
|  | interval = 1.0 | ||||||
|  | label-connected = "%{T1}龍%{T-}%{T2} %downspeed% | %upspeed%%{T-}" | ||||||
|  | label-disconnected = "%{T2}0/0%{T-}" | ||||||
|  | label-connected-background = ${colors.bg} | ||||||
|  | label-connected-foreground = ${colors.blue} | ||||||
|  | label-disconnected-foreground = ${colors.red} | ||||||
| 
 | 
 | ||||||
| format-connected = <ramp-signal> | [module/title] | ||||||
| format-disconnected = | type = internal/xwindow | ||||||
| format-disconnected-foreground = | ; Available tags: | ||||||
|  | ;   <label> (default) | ||||||
|  | format = <label> | ||||||
|  | format-background = ${colors.bg} | ||||||
|  | format-foreground = ${colors.green} | ||||||
|  | format-padding = 4 | ||||||
| 
 | 
 | ||||||
| ; label-connected = | ; Available tokens: | ||||||
| ; label-disconnected = ! | ;   %title% | ||||||
| ; label-disconnected-foreground = ${colors.red} | ; Default: %title% | ||||||
|  | label = "%{T1}类%{T-}%{T2} %title%%{T-}" | ||||||
|  | label-maxlen = 65 | ||||||
| 
 | 
 | ||||||
| ramp-signal-0 =  | ; Used instead of label when there is no window title | ||||||
| ramp-signal-0-foreground = ${colors.yellow} | ; Available tokens: | ||||||
| ramp-signal-1 =  | ;   None | ||||||
| ramp-signal-1-foreground = ${colors.yellow} | label-empty =%{T2}Empty%{T-} | ||||||
| ramp-signal-2 =  | label-empty-foreground = #707880 | ||||||
| ramp-signal-2-foreground = ${colors.yellow} |  | ||||||
| ramp-signal-3 =  |  | ||||||
| ramp-signal-3-foreground = ${colors.accent} |  | ||||||
| ramp-signal-4 =  |  | ||||||
| ramp-signal-4-foreground = ${colors.fg} |  | ||||||
| 
 |  | ||||||
| [module/network-up] |  | ||||||
| type = internal/network |  | ||||||
| interface = ${env:LAN:eno1} |  | ||||||
| interval = 4.0 |  | ||||||
| label-connected = "%upspeed%" |  | ||||||
| format-connected-prefix = " " |  | ||||||
| format-connected-prefix-foreground = ${colors.accent} |  | ||||||
| format-connected-foreground = ${colors.fg} |  | ||||||
| format-connected-background = |  | ||||||
| format-connected-underline = |  | ||||||
| format-disconnected-prefix = " " |  | ||||||
| format-disconnected-prefix-foreground = ${colors.alert} |  | ||||||
| format-disconnected-foreground = ${colors.alert} |  | ||||||
| 
 |  | ||||||
| [module/network-down] |  | ||||||
| type = internal/network |  | ||||||
| interface = ${env:LAN:eno1} |  | ||||||
| interval = 4.0 |  | ||||||
| label-connected = "%downspeed%" |  | ||||||
| format-connected-prefix = " " |  | ||||||
| format-connected-prefix-foreground = ${colors.accent} |  | ||||||
| format-connected-foreground = ${colors.fg} |  | ||||||
| format-connected-background = |  | ||||||
| format-connected-underline = |  | ||||||
| format-disconnected-prefix = " " |  | ||||||
| format-disconnected-prefix-foreground = ${colors.alert} |  | ||||||
| format-disconnected-foreground = ${colors.alert} |  | ||||||
| 
 | 
 | ||||||
| [module/pulseaudio] | [module/pulseaudio] | ||||||
| type = internal/pulseaudio | type = internal/pulseaudio | ||||||
| 
 | 
 | ||||||
| ; format-volume = <label-volume> <bar-volume> | ; Sink to be used, if it exists (find using `pacmd list-sinks`, name field) | ||||||
| format-volume = <ramp-volume> <bar-volume> | ; If not, uses default sink | ||||||
| ; label-volume = " " | ; sink = alsa_output.pci-0000_12_00.3.analog-stereo | ||||||
| label-volume-foreground = ${colors.accent} | ; sink = alsa_output.pci-0000_00_1b.0.analog-stereo | ||||||
| 
 | 
 | ||||||
| ; format-muted-prefix = " " | ; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false | ||||||
| format-muted-foreground = ${colors.alert} | ; Default: true | ||||||
| label-muted =  | use-ui-max = true | ||||||
| 
 | 
 | ||||||
| bar-volume-width = 8 | ; Interval for volume increase/decrease (in percent points) | ||||||
| # bar-volume-foreground-0 = ${colors.magenta} | ; Default: 5 | ||||||
| # bar-volume-foreground-1 = ${colors.magenta} | interval = 5 | ||||||
| # bar-volume-foreground-2 = ${colors.magenta} | 
 | ||||||
| # bar-volume-foreground-3 = ${colors.magenta} | ; Available tags: | ||||||
| # bar-volume-foreground-4 = ${colors.magenta} | ;   <label-volume> (default) | ||||||
| # bar-volume-foreground-5 = ${colors.magenta} | ;   <ramp-volume> | ||||||
| # bar-volume-foreground-6 = ${colors.magenta} | ;   <bar-volume> | ||||||
| bar-volume-gradient = false | format-volume = <label-volume> | ||||||
| bar-volume-indicator = | | 
 | ||||||
| bar-volume-indicator-font = 1 | ; Available tags: | ||||||
| bar-volume-indicator-foreground = #ff | ;   <label-muted> (default) | ||||||
| bar-volume-fill = ─ | ;   <ramp-volume> | ||||||
| bar-volume-fill-font = 1 | ;   <bar-volume> | ||||||
| bar-volume-empty = ─ | format-muted = <label-muted> | ||||||
| bar-volume-empty-font = 1 | 
 | ||||||
| bar-volume-empty-foreground = ${colors.fg-alt} | ; Available tokens: | ||||||
|  | ;   %percentage% (default) | ||||||
|  | ;   %decibels% (unreleased) | ||||||
|  | label-volume = %{T2}%percentage%%%{T-} | ||||||
|  | 
 | ||||||
|  | ; Available tokens: | ||||||
|  | ;   %percentage% (default) | ||||||
|  | ;   %decibels% (unreleased) | ||||||
|  | label-muted = %{T1} %{T-} | ||||||
|  | label-muted-foreground = #666 | ||||||
| 
 | 
 | ||||||
| ; Only applies if <ramp-volume> is used | ; Only applies if <ramp-volume> is used | ||||||
| ramp-volume-0 =  | ramp-volume-0 = %{T1}🔈%{T-} | ||||||
| ramp-volume-1 =  | ramp-volume-1 = %{T1}🔉%{T-} | ||||||
| ramp-volume-2 =  | ramp-volume-2 = %{T1}🔊%{T-} | ||||||
| 
 | 
 | ||||||
| [module/battery] | ; Right and Middle click (unreleased) | ||||||
| type = internal/battery | click-right = pavucontrol & | ||||||
| battery = BAT0 | ; click-middle = | ||||||
| adapter = ADP1 |  | ||||||
| full-at = 98 |  | ||||||
| 
 | 
 | ||||||
| format-charging = <animation-charging> <label-charging> | ;[settings] | ||||||
| format-charging-underline = #ffb52a | ;pseudo-transparency = true | ||||||
| 
 |  | ||||||
| format-discharging = <ramp-capacity> <label-discharging> |  | ||||||
| format-discharging-underline = ${self.format-charging-underline} |  | ||||||
| 
 |  | ||||||
| format-full-prefix = " " |  | ||||||
| format-full-prefix-foreground = ${colors.fg-alt} |  | ||||||
| format-full-underline = ${self.format-charging-underline} |  | ||||||
| 
 |  | ||||||
| ramp-capacity-0 =  |  | ||||||
| ramp-capacity-1 =  |  | ||||||
| ramp-capacity-2 =  |  | ||||||
| ramp-capacity-0-foreground = ${colors.red} |  | ||||||
| ramp-capacity-1-foreground = #575864 |  | ||||||
| ramp-capacity-2-foreground = ${colors.fg-alt} |  | ||||||
| 
 |  | ||||||
| animation-charging-0 =  |  | ||||||
| animation-charging-1 =  |  | ||||||
| animation-charging-2 =  |  | ||||||
| animation-charging-framerate = 1000 |  | ||||||
| animation-charging-foreground = ${colors.fg} |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| ;===================================================== |  | ||||||
| ; Custom scripts |  | ||||||
| ;===================================================== |  | ||||||
| 
 |  | ||||||
| [module/pad] |  | ||||||
| type = custom/text |  | ||||||
| content = "   " |  | ||||||
| content-foreground = ${colors.fg-alt} |  | ||||||
| 
 |  | ||||||
| [module/redshift] |  | ||||||
| type = custom/script |  | ||||||
| exec = ~/.config/polybar/modules/redshift |  | ||||||
| exec-if = pgrep -x redshift |  | ||||||
| interval = 60 |  | ||||||
| format-padding = 1 |  | ||||||
| 
 |  | ||||||
| [module/syncthing] |  | ||||||
| type = custom/script |  | ||||||
| exec = echo 1 |  | ||||||
| exec-if = systemctl is-active syncthing |  | ||||||
| format = "" |  | ||||||
| format-foreground = ${colors.fg} |  | ||||||
| interval = 30 |  | ||||||
| 
 |  | ||||||
| ; vim:ft=dosini |  | ||||||
|  |  | ||||||
							
								
								
									
										385
									
								
								users/profiles/desktop/polybar/config.bak
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										385
									
								
								users/profiles/desktop/polybar/config.bak
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,385 @@ | ||||||
|  | [colors] | ||||||
|  | black = ${xrdb:color0} | ||||||
|  | bblack = ${xrdb:color8} | ||||||
|  | red = ${xrdb:color1} | ||||||
|  | bred = ${xrdb:color9} | ||||||
|  | green = ${xrdb:color2} | ||||||
|  | bgreen = ${xrdb:color10} | ||||||
|  | yellow = ${xrdb:color3} | ||||||
|  | byellow = ${xrdb:color11} | ||||||
|  | blue = ${xrdb:color4} | ||||||
|  | bblue = ${xrdb:color12} | ||||||
|  | magenta = ${xrdb:color5} | ||||||
|  | bmagenta = ${xrdb:color13} | ||||||
|  | cyan = ${xrdb:color6} | ||||||
|  | bcyan = ${xrdb:color14} | ||||||
|  | white = ${xrdb:color7} | ||||||
|  | bwhite = ${xrdb:color15} | ||||||
|  | 
 | ||||||
|  | bg = ${xrdb:background} | ||||||
|  | fg = ${colors.magenta} | ||||||
|  | bg-alt = #1E2029 | ||||||
|  | fg-alt = #373844 | ||||||
|  | bg-dark = #181a23 | ||||||
|  | 
 | ||||||
|  | alert = ${colors.yellow} | ||||||
|  | accent = #604c7e | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | [global/wm] | ||||||
|  | margin-top = 0 | ||||||
|  | margin-bottom = 34 | ||||||
|  | 
 | ||||||
|  | [bar/main] | ||||||
|  | monitor = ${env:MONITOR} | ||||||
|  | monitor-strict = true | ||||||
|  | enable-ipc = true | ||||||
|  | wm-restack = bspwm | ||||||
|  | # REQUIRED to move the window with hideit.sh | ||||||
|  | override-redirect = true | ||||||
|  | fixed-center = true | ||||||
|  | 
 | ||||||
|  | background = ${colors.bg} | ||||||
|  | foreground = ${colors.fg} | ||||||
|  | 
 | ||||||
|  | width = 100% | ||||||
|  | height = 34 | ||||||
|  | offset-x = 0 | ||||||
|  | offset-y = 0 | ||||||
|  | # bottom = true | ||||||
|  | 
 | ||||||
|  | overline-size = 0 | ||||||
|  | overline-color = #f00 | ||||||
|  | underline-size = 0 | ||||||
|  | underline-color = #00f | ||||||
|  | 
 | ||||||
|  | border-bottom-size = 0 | ||||||
|  | border-top-size = 1 | ||||||
|  | border-color = ${colors.bg-dark} | ||||||
|  | 
 | ||||||
|  | padding-left = 2 | ||||||
|  | padding-right = 2 | ||||||
|  | module-margin-left = 0 | ||||||
|  | module-margin-right = 0 | ||||||
|  | 
 | ||||||
|  | font-0 = "Fira Code:pixelsize=9;2" | ||||||
|  | font-1 = "Wuncon Siji:pixelsize=12;2" | ||||||
|  | font-2 = "Siji:pixelsize=10;2" | ||||||
|  | 
 | ||||||
|  | ; modules-left = volume pad cpu memory pad pkg mail | ||||||
|  | modules-left = pulseaudio pad cpu memory pad fs | ||||||
|  | modules-center = bspwm | ||||||
|  | modules-right = syncthing redshift wlan pad network-up pad network-down pad battery pad date | ||||||
|  | 
 | ||||||
|  | ;tray-position = center | ||||||
|  | ;tray-padding = 2 | ||||||
|  | ;tray-transparent = true | ||||||
|  | ;tray-background = #0063ff | ||||||
|  | 
 | ||||||
|  | [module/bspwm] | ||||||
|  | type = internal/bspwm | ||||||
|  | pin-workspaces = true | ||||||
|  | enable-click = true | ||||||
|  | 
 | ||||||
|  | # ws-icon-0 = 1; | ||||||
|  | # ws-icon-1 = 2; | ||||||
|  | # ws-icon-2 = 3; | ||||||
|  | # ws-icon-3 = 4; | ||||||
|  | # ws-icon-4 = 5; | ||||||
|  | # ws-icon-5 = 6; | ||||||
|  | ws-icon-default =  | ||||||
|  | 
 | ||||||
|  | format = <label-state> <label-mode> | ||||||
|  | label-padding = 1 | ||||||
|  | 
 | ||||||
|  | label-focused = %icon% | ||||||
|  | label-focused-background = ${colors.bg-dark} | ||||||
|  | label-focused-foreground = ${colors.fg} | ||||||
|  | # label-focused-underline = ${colors.magenta} | ||||||
|  | ; label-focused-foreground = ${xrdb:color2} | ||||||
|  | label-focused-padding = 1 | ||||||
|  | 
 | ||||||
|  | label-occupied = %icon% | ||||||
|  | label-occupied-foreground = ${colors.accent} | ||||||
|  | label-occupied-padding = 1 | ||||||
|  | 
 | ||||||
|  | ; label-urgent = %icon% | ||||||
|  | label-urgent-foreground = ${colors.alert} | ||||||
|  | ; label-urgent-background = ${colors.alert} | ||||||
|  | label-urgent-padding = 1 | ||||||
|  | 
 | ||||||
|  | label-empty = %icon% | ||||||
|  | label-empty-foreground = ${colors.fg-alt} | ||||||
|  | label-empty-padding = 1 | ||||||
|  | 
 | ||||||
|  | [module/date] | ||||||
|  | type = internal/date | ||||||
|  | interval = 5 | ||||||
|  | 
 | ||||||
|  | label = %date%  %time% | ||||||
|  | date = %A, %h %d | ||||||
|  | date-alt = %Y-%m-%d | ||||||
|  | time = %I:%M %p | ||||||
|  | time-alt = %H:%M:%S | ||||||
|  | format-prefix = "" | ||||||
|  | format-prefix-padding = 1 | ||||||
|  | ; format-prefix-background = ${colors.bg-alt} | ||||||
|  | format-prefix-foreground = ${colors.accent} | ||||||
|  | ; format-underline = ${xrdb:color4} | ||||||
|  | 
 | ||||||
|  | [module/fs] | ||||||
|  | type = internal/fs | ||||||
|  | mount-0 = / | ||||||
|  | mount-1 = /mnt/projects  ; for desktops | ||||||
|  | mount-2 = /home          ; for laptop | ||||||
|  | interval = 30 | ||||||
|  | 
 | ||||||
|  | ; Available tags: | ||||||
|  | ;   <label-mounted> (default) | ||||||
|  | ;   <bar-free> | ||||||
|  | ;   <bar-used> | ||||||
|  | ;   <ramp-capacity> | ||||||
|  | format-mounted = "<bar-used>" | ||||||
|  | format-mounted-foreground = ${colors.accent} | ||||||
|  | ; Available tokens: | ||||||
|  | ;   %mountpoint% | ||||||
|  | ;   %type% | ||||||
|  | ;   %fsname% | ||||||
|  | ;   %percentage_free% | ||||||
|  | ;   %percentage_used% | ||||||
|  | ;   %total% | ||||||
|  | ;   %free% | ||||||
|  | ;   %used% | ||||||
|  | ; Default: %mountpoint% %percentage_free%% | ||||||
|  | 
 | ||||||
|  | ; Available tags: | ||||||
|  | ;   <label-unmounted> (default) | ||||||
|  | format-unmounted = | ||||||
|  | label-unmounted = | ||||||
|  | label-unmounted-foreground = ${colors.fg-alt} | ||||||
|  | 
 | ||||||
|  | bar-used-indicator = | ||||||
|  | bar-used-width = 8 | ||||||
|  | bar-used-foreground-0 = ${colors.fg} | ||||||
|  | bar-used-foreground-1 = ${colors.fg} | ||||||
|  | bar-used-foreground-2 = ${colors.yellow} | ||||||
|  | bar-used-foreground-3 = ${colors.alert} | ||||||
|  | bar-used-foreground-4 = ${colors.alert} | ||||||
|  | bar-used-fill = | | ||||||
|  | bar-used-empty = ¦ | ||||||
|  | bar-used-empty-foreground = ${colors.fg-alt} | ||||||
|  | 
 | ||||||
|  | [module/xwindow] | ||||||
|  | type = internal/xwindow | ||||||
|  | label = %title:0:80:...% | ||||||
|  | label-padding-left = 2 | ||||||
|  | 
 | ||||||
|  | ; [module/mpd] | ||||||
|  | ; type = internal/mpd | ||||||
|  | ; host = /home/hlissner/.config/mpd/mpd.sock | ||||||
|  | ; | ||||||
|  | ; format-online = <label-song> <toggle> | ||||||
|  | ; format-padding = 5 | ||||||
|  | ; | ||||||
|  | ; label-song-maxlen = 45 | ||||||
|  | ; label-song-ellipsis = true | ||||||
|  | ; | ||||||
|  | ; icon-prev =  | ||||||
|  | ; icon-seekb =  | ||||||
|  | ; icon-stop =  | ||||||
|  | ; icon-play =  | ||||||
|  | ; icon-pause =  | ||||||
|  | ; icon-next =  | ||||||
|  | ; icon-seekf =  | ||||||
|  | ; | ||||||
|  | ; icon-random =  | ||||||
|  | ; icon-repeat =  | ||||||
|  | ; | ||||||
|  | ; toggle-on-foreground = ${colors.fg} | ||||||
|  | ; toggle-off-foreground = #66 | ||||||
|  | 
 | ||||||
|  | [module/cpu] | ||||||
|  | type = internal/cpu | ||||||
|  | interval = 2 | ||||||
|  | format = <bar-load> | ||||||
|  | format-prefix = "" | ||||||
|  | format-foreground = ${colors.accent} | ||||||
|  | ; format-underline = #f90000 | ||||||
|  | ; label = %percentage%% | ||||||
|  | format-padding = 1 | ||||||
|  | 
 | ||||||
|  | bar-load-indicator = | ||||||
|  | bar-load-width = 8 | ||||||
|  | bar-load-foreground-0 = ${colors.fg} | ||||||
|  | bar-load-foreground-1 = ${colors.fg} | ||||||
|  | bar-load-foreground-2 = ${colors.yellow} | ||||||
|  | bar-load-foreground-3 = ${colors.alert} | ||||||
|  | bar-load-foreground-4 = ${colors.alert} | ||||||
|  | bar-load-fill = | | ||||||
|  | bar-load-empty = ¦ | ||||||
|  | bar-load-empty-foreground = ${colors.fg-alt} | ||||||
|  | 
 | ||||||
|  | [module/memory] | ||||||
|  | type = internal/memory | ||||||
|  | interval = 3 | ||||||
|  | format = <bar-used> | ||||||
|  | format-prefix = "" | ||||||
|  | format-prefix-foreground = ${colors.accent} | ||||||
|  | ; format-underline = #4bffdc | ||||||
|  | ; label = %percentage_used%% | ||||||
|  | format-padding-left = 1 | ||||||
|  | 
 | ||||||
|  | ; Only applies if <bar-used> is used | ||||||
|  | bar-used-indicator = | ||||||
|  | bar-used-width = 8 | ||||||
|  | bar-used-foreground-0 = ${colors.fg} | ||||||
|  | bar-used-foreground-1 = ${colors.fg} | ||||||
|  | bar-used-foreground-2 = ${colors.yellow} | ||||||
|  | bar-used-foreground-3 = ${colors.alert} | ||||||
|  | bar-used-foreground-4 = ${colors.alert} | ||||||
|  | bar-used-fill = | | ||||||
|  | bar-used-empty = ¦ | ||||||
|  | bar-used-empty-foreground = ${colors.fg-alt} | ||||||
|  | 
 | ||||||
|  | [module/wlan] | ||||||
|  | type = internal/network | ||||||
|  | interface = ${env:WLP:wlp3s0} | ||||||
|  | interval = 3.0 | ||||||
|  | 
 | ||||||
|  | format-connected = <ramp-signal> | ||||||
|  | format-disconnected = | ||||||
|  | format-disconnected-foreground = | ||||||
|  | 
 | ||||||
|  | ; label-connected = | ||||||
|  | ; label-disconnected = ! | ||||||
|  | ; label-disconnected-foreground = ${colors.red} | ||||||
|  | 
 | ||||||
|  | ramp-signal-0 =  | ||||||
|  | ramp-signal-0-foreground = ${colors.yellow} | ||||||
|  | ramp-signal-1 =  | ||||||
|  | ramp-signal-1-foreground = ${colors.yellow} | ||||||
|  | ramp-signal-2 =  | ||||||
|  | ramp-signal-2-foreground = ${colors.yellow} | ||||||
|  | ramp-signal-3 =  | ||||||
|  | ramp-signal-3-foreground = ${colors.accent} | ||||||
|  | ramp-signal-4 =  | ||||||
|  | ramp-signal-4-foreground = ${colors.fg} | ||||||
|  | 
 | ||||||
|  | [module/network-up] | ||||||
|  | type = internal/network | ||||||
|  | interface = ${env:LAN:eno1} | ||||||
|  | interval = 4.0 | ||||||
|  | label-connected = "%upspeed%" | ||||||
|  | format-connected-prefix = " " | ||||||
|  | format-connected-prefix-foreground = ${colors.accent} | ||||||
|  | format-connected-foreground = ${colors.fg} | ||||||
|  | format-connected-background = | ||||||
|  | format-connected-underline = | ||||||
|  | format-disconnected-prefix = " " | ||||||
|  | format-disconnected-prefix-foreground = ${colors.alert} | ||||||
|  | format-disconnected-foreground = ${colors.alert} | ||||||
|  | 
 | ||||||
|  | [module/network-down] | ||||||
|  | type = internal/network | ||||||
|  | interface = ${env:LAN:eno1} | ||||||
|  | interval = 4.0 | ||||||
|  | label-connected = "%downspeed%" | ||||||
|  | format-connected-prefix = " " | ||||||
|  | format-connected-prefix-foreground = ${colors.accent} | ||||||
|  | format-connected-foreground = ${colors.fg} | ||||||
|  | format-connected-background = | ||||||
|  | format-connected-underline = | ||||||
|  | format-disconnected-prefix = " " | ||||||
|  | format-disconnected-prefix-foreground = ${colors.alert} | ||||||
|  | format-disconnected-foreground = ${colors.alert} | ||||||
|  | 
 | ||||||
|  | [module/pulseaudio] | ||||||
|  | type = internal/pulseaudio | ||||||
|  | 
 | ||||||
|  | ; format-volume = <label-volume> <bar-volume> | ||||||
|  | format-volume = <ramp-volume> <bar-volume> | ||||||
|  | ; label-volume = " " | ||||||
|  | label-volume-foreground = ${colors.accent} | ||||||
|  | 
 | ||||||
|  | ; format-muted-prefix = " " | ||||||
|  | format-muted-foreground = ${colors.alert} | ||||||
|  | label-muted =  | ||||||
|  | 
 | ||||||
|  | bar-volume-width = 8 | ||||||
|  | # bar-volume-foreground-0 = ${colors.magenta} | ||||||
|  | # bar-volume-foreground-1 = ${colors.magenta} | ||||||
|  | # bar-volume-foreground-2 = ${colors.magenta} | ||||||
|  | # bar-volume-foreground-3 = ${colors.magenta} | ||||||
|  | # bar-volume-foreground-4 = ${colors.magenta} | ||||||
|  | # bar-volume-foreground-5 = ${colors.magenta} | ||||||
|  | # bar-volume-foreground-6 = ${colors.magenta} | ||||||
|  | bar-volume-gradient = false | ||||||
|  | bar-volume-indicator = | | ||||||
|  | bar-volume-indicator-font = 1 | ||||||
|  | bar-volume-indicator-foreground = #ff | ||||||
|  | bar-volume-fill = ─ | ||||||
|  | bar-volume-fill-font = 1 | ||||||
|  | bar-volume-empty = ─ | ||||||
|  | bar-volume-empty-font = 1 | ||||||
|  | bar-volume-empty-foreground = ${colors.fg-alt} | ||||||
|  | 
 | ||||||
|  | ; Only applies if <ramp-volume> is used | ||||||
|  | ramp-volume-0 =  | ||||||
|  | ramp-volume-1 =  | ||||||
|  | ramp-volume-2 =  | ||||||
|  | 
 | ||||||
|  | [module/battery] | ||||||
|  | type = internal/battery | ||||||
|  | battery = BAT0 | ||||||
|  | adapter = ADP1 | ||||||
|  | full-at = 98 | ||||||
|  | 
 | ||||||
|  | format-charging = <animation-charging> <label-charging> | ||||||
|  | format-charging-underline = #ffb52a | ||||||
|  | 
 | ||||||
|  | format-discharging = <ramp-capacity> <label-discharging> | ||||||
|  | format-discharging-underline = ${self.format-charging-underline} | ||||||
|  | 
 | ||||||
|  | format-full-prefix = " " | ||||||
|  | format-full-prefix-foreground = ${colors.fg-alt} | ||||||
|  | format-full-underline = ${self.format-charging-underline} | ||||||
|  | 
 | ||||||
|  | ramp-capacity-0 =  | ||||||
|  | ramp-capacity-1 =  | ||||||
|  | ramp-capacity-2 =  | ||||||
|  | ramp-capacity-0-foreground = ${colors.red} | ||||||
|  | ramp-capacity-1-foreground = #575864 | ||||||
|  | ramp-capacity-2-foreground = ${colors.fg-alt} | ||||||
|  | 
 | ||||||
|  | animation-charging-0 =  | ||||||
|  | animation-charging-1 =  | ||||||
|  | animation-charging-2 =  | ||||||
|  | animation-charging-framerate = 1000 | ||||||
|  | animation-charging-foreground = ${colors.fg} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | ;===================================================== | ||||||
|  | ; Custom scripts | ||||||
|  | ;===================================================== | ||||||
|  | 
 | ||||||
|  | [module/pad] | ||||||
|  | type = custom/text | ||||||
|  | content = "   " | ||||||
|  | content-foreground = ${colors.fg-alt} | ||||||
|  | 
 | ||||||
|  | [module/redshift] | ||||||
|  | type = custom/script | ||||||
|  | exec = ~/.config/polybar/modules/redshift | ||||||
|  | exec-if = pgrep -x redshift | ||||||
|  | interval = 60 | ||||||
|  | format-padding = 1 | ||||||
|  | 
 | ||||||
|  | [module/syncthing] | ||||||
|  | type = custom/script | ||||||
|  | exec = echo 1 | ||||||
|  | exec-if = systemctl is-active syncthing | ||||||
|  | format = "" | ||||||
|  | format-foreground = ${colors.fg} | ||||||
|  | interval = 30 | ||||||
|  | 
 | ||||||
|  | ; vim:ft=dosini | ||||||
		Loading…
	
		Reference in a new issue