505 lines
13 KiB
Plaintext
505 lines
13 KiB
Plaintext
;=====================================================
|
|
;
|
|
;=====================================================
|
|
|
|
[global/wm]
|
|
margin-top = 0
|
|
margin-bottom = 0
|
|
|
|
[settings]
|
|
throttle-output = 5
|
|
throttle-output-for = 10
|
|
throttle-input-for = 30
|
|
screenchange-reload = true
|
|
compositing-background = over
|
|
compositing-foreground = over
|
|
compositing-overline = over
|
|
compositing-underline = over
|
|
compositing-border = over
|
|
|
|
; Define fallback values used by all module formats
|
|
format-foreground = #FF0000
|
|
format-background = #00FF00
|
|
format-underline =
|
|
format-overline =
|
|
format-spacing =
|
|
format-padding =
|
|
format-margin =
|
|
format-offset =
|
|
|
|
[colors]
|
|
; Nord theme ============
|
|
background = #2F343F
|
|
foreground = #f3f4f5
|
|
alert = #d08770
|
|
volume-min = #a3be8c
|
|
volume-med = #ebcb8b
|
|
volume-max = #bf616a
|
|
; =======================
|
|
|
|
; Gotham theme ==========
|
|
; background = #0a0f14
|
|
; foreground = #99d1ce
|
|
; alert = #d26937
|
|
; volume-min = #2aa889
|
|
; volume-med = #edb443
|
|
; volume-max = #c23127
|
|
; =======================
|
|
|
|
; INTRCPTR theme ============
|
|
;background = ${xrdb:color0:#222}
|
|
;background = #aa000000
|
|
;background-alt = #444
|
|
;foreground = ${xrdb:color7:#222}
|
|
;foreground = #fff
|
|
;foreground-alt = #555
|
|
;primary = #ffb52a
|
|
;secondary = #e60053
|
|
;alert = #bd2c40
|
|
|
|
|
|
################################################################################
|
|
################################################################################
|
|
############ MAINBAR-SPECTRWM ############
|
|
################################################################################
|
|
################################################################################
|
|
|
|
[bar/mainbar-spectrwm]
|
|
monitor = ${env:MONITOR}
|
|
;monitor-fallback = HDMI1
|
|
width = 100%
|
|
height = 30
|
|
;offset-x = 1%
|
|
;offset-y = 1%
|
|
radius = 0.0
|
|
fixed-center = true
|
|
bottom = false
|
|
separator = |
|
|
|
|
background = ${colors.background}
|
|
foreground = ${colors.foreground}
|
|
|
|
line-size = 2
|
|
line-color = #f00
|
|
|
|
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-left-size = 0
|
|
;border-right-size = 25
|
|
;border-top-size = 0
|
|
;border-bottom-size = 25
|
|
border-color = #00000000
|
|
|
|
padding-left = 0
|
|
padding-right = 1
|
|
|
|
module-margin-left = 3
|
|
module-margin-right = 3
|
|
|
|
;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-center = xwindow
|
|
modules-right = memory3 cpu1 temperature2 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-background = ${colors.background}
|
|
|
|
scroll-up = spectrwm-desknext
|
|
scroll-down = spectrwm-deskprev
|
|
|
|
################################################################################
|
|
############ MODULES ############
|
|
################################################################################
|
|
|
|
[module/cpu1]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-cpu
|
|
type = internal/cpu
|
|
; Seconds to sleep between updates
|
|
; Default: 1
|
|
interval = 1
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
;
|
|
format-prefix = " "
|
|
format-prefix-foreground = #cd1f3f
|
|
format-underline = #cd1f3f
|
|
|
|
; Available tags:
|
|
; <label> (default)
|
|
; <bar-load>
|
|
; <ramp-load>
|
|
; <ramp-coreload>
|
|
format = <label> <ramp-coreload>
|
|
|
|
format-padding = 2
|
|
|
|
; Available tokens:
|
|
; %percentage% (default) - total cpu load
|
|
; %percentage-cores% - load percentage for each core
|
|
; %percentage-core[1-9]% - load percentage for specific core
|
|
label-font = 3
|
|
label = Cpu %percentage:3%%
|
|
ramp-coreload-0 = ▁
|
|
ramp-coreload-0-font = 3
|
|
ramp-coreload-0-foreground = #aaff77
|
|
ramp-coreload-1 = ▂
|
|
ramp-coreload-1-font = 3
|
|
ramp-coreload-1-foreground = #aaff77
|
|
ramp-coreload-2 = ▃
|
|
ramp-coreload-2-font = 3
|
|
ramp-coreload-2-foreground = #aaff77
|
|
ramp-coreload-3 = ▄
|
|
ramp-coreload-3-font = 3
|
|
ramp-coreload-3-foreground = #aaff77
|
|
ramp-coreload-4 = ▅
|
|
ramp-coreload-4-font = 3
|
|
ramp-coreload-4-foreground = #fba922
|
|
ramp-coreload-5 = ▆
|
|
ramp-coreload-5-font = 3
|
|
ramp-coreload-5-foreground = #fba922
|
|
ramp-coreload-6 = ▇
|
|
ramp-coreload-6-font = 3
|
|
ramp-coreload-6-foreground = #ff5555
|
|
ramp-coreload-7 = █
|
|
ramp-coreload-7-font = 3
|
|
ramp-coreload-7-foreground = #ff5555
|
|
|
|
################################################################################
|
|
|
|
[module/cpu2]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-cpu
|
|
type = internal/cpu
|
|
; Seconds to sleep between updates
|
|
; Default: 1
|
|
interval = 1
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
format-prefix = " "
|
|
format-prefix-foreground = #d75f5f
|
|
format-underline = #d75f5f
|
|
|
|
label-font = 3
|
|
|
|
; Available tags:
|
|
; <label> (default)
|
|
; <bar-load>
|
|
; <ramp-load>
|
|
; <ramp-coreload>
|
|
format = <label>
|
|
|
|
format-padding = 2
|
|
|
|
; Available tokens:
|
|
; %percentage% (default) - total cpu load
|
|
; %percentage-cores% - load percentage for each core
|
|
; %percentage-core[1-9]% - load percentage for specific core
|
|
label = Cpu %percentage:3%%
|
|
|
|
################################################################################
|
|
|
|
[module/date]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-date
|
|
type = internal/date
|
|
; Seconds to sleep between updates
|
|
interval = 5
|
|
; See "http://en.cppreference.com/w/cpp/io/manip/put_time" for details on how to format the date string
|
|
; NOTE: if you want to use syntax tags here you need to use %%{...}
|
|
date = " %Y-%m-%d%"
|
|
date-alt = " %d-%m-%Y"
|
|
time = %H:%M
|
|
time-alt = %H:%M
|
|
format-prefix = " "
|
|
format-prefix-foreground = #c1941a
|
|
format-underline = #c1941a
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
label = %date% %time%
|
|
|
|
#################################################################
|
|
|
|
[module/ewmh]
|
|
type = internal/xworkspaces
|
|
|
|
pin-workspaces = false
|
|
enable-click = true
|
|
enable-scroll = true
|
|
reverse-scroll = true
|
|
|
|
|
|
icon-0 = 1;
|
|
icon-1 = 2;
|
|
icon-2 = 3;
|
|
icon-3 = 4;
|
|
icon-4 = 5;
|
|
#icon-5 = 6;
|
|
format = <label-state>
|
|
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-underline = #555555
|
|
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/jgmenu]
|
|
type = custom/script
|
|
interval = 120
|
|
exec = echo "ArcoLinux"
|
|
click-left = "jgmenu_run >/dev/null 2>&1 &"
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
|
|
################################################################################
|
|
|
|
[module/memory1]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-memory
|
|
type = internal/memory
|
|
interval = 1
|
|
; Available tokens:
|
|
; %percentage_used% (default)
|
|
; %percentage_free%
|
|
; %gb_used%
|
|
; %gb_free%
|
|
; %gb_total%
|
|
; %mb_used%
|
|
; %mb_free%
|
|
; %mb_total%
|
|
label = %percentage_used%%
|
|
bar-used-indicator =
|
|
bar-used-width = 10
|
|
bar-used-foreground-0 = #3384d0
|
|
bar-used-fill =
|
|
bar-used-empty =
|
|
bar-used-empty-foreground = #ffffff
|
|
|
|
format = <label> <bar-used>
|
|
format-prefix = " "
|
|
format-prefix-foreground = #3384d0
|
|
format-underline = #3384d0
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
|
|
################################################################################
|
|
|
|
[module/memory2]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-memory
|
|
type = internal/memory
|
|
interval = 1
|
|
; Available tokens:
|
|
; %percentage_used% (default)
|
|
; %percentage_free%
|
|
; %gb_used%
|
|
; %gb_free%
|
|
; %gb_total%
|
|
; %mb_used%
|
|
; %mb_free%
|
|
; %mb_total%
|
|
label = %percentage_used%%
|
|
|
|
format = Mem <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = #3384d0
|
|
format-underline = #3384d0
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
|
|
################################################################################
|
|
|
|
[module/memory3]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-memory
|
|
type = internal/memory
|
|
interval = 1
|
|
; Available tokens:
|
|
; %percentage_used% (default)
|
|
; %percentage_free%
|
|
; %gb_used%
|
|
; %gb_free%
|
|
; %gb_total%
|
|
; %mb_used%
|
|
; %mb_free%
|
|
; %mb_total%
|
|
label = %gb_used%/%gb_free%
|
|
|
|
format = Mem <label>
|
|
format-prefix = " "
|
|
format-prefix-foreground = #3384d0
|
|
format-underline = #3384d0
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
|
|
|
|
################################################################################
|
|
|
|
[module/mpd]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-mpd
|
|
type = internal/mpd
|
|
;format-online = "<label-song> <icon-prev> <icon-stop> <toggle> <icon-next>"
|
|
format-online = "<label-song> <bar-progress>"
|
|
;format-online = "<label-song> <bar-progress> <icon-prev> <icon-stop> <toggle> <icon-next>"
|
|
icon-prev =
|
|
icon-stop =
|
|
icon-play =
|
|
icon-pause =
|
|
icon-next =
|
|
label-song-maxlen = 40
|
|
label-song-ellipsis = true
|
|
bar-progress-width = 10
|
|
bar-progress-indicator =
|
|
bar-progress-fill =
|
|
bar-progress-empty =
|
|
bar-progress-fill-foreground = #ff0
|
|
bar-progress-fill-background = ${colors.background}
|
|
bar-progress-indicator-foreground = ${colors.foreground}
|
|
format-online-foreground = ${colors.foreground}
|
|
format-online-background = ${colors.background}
|
|
################################################################################
|
|
|
|
[module/temperature1]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-temperature
|
|
type = internal/temperature
|
|
; Thermal zone to use
|
|
; To list all the zone types, run
|
|
; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done
|
|
; Default: 0
|
|
thermal-zone = 0
|
|
|
|
; Full path of temperature sysfs path
|
|
; Use `sensors` to find preferred temperature source, then run
|
|
; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done
|
|
; to find path to desired file
|
|
; Default reverts to thermal zone setting
|
|
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
|
|
|
|
warn-temperature = 70
|
|
format = <ramp> <label>
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
format-underline = #c72581
|
|
format-warn = <ramp> <label-warn>
|
|
format-warn-underline = #c7254f
|
|
label = %temperature%
|
|
label-warn = %temperature%
|
|
label-warn-foreground = #c7254f
|
|
|
|
ramp-0 =
|
|
ramp-1 =
|
|
ramp-2 =
|
|
ramp-3 =
|
|
ramp-4 =
|
|
ramp-foreground =${colors.foreground}
|
|
|
|
################################################################################
|
|
|
|
[module/temperature2]
|
|
type = custom/script
|
|
exec = ~/.config/polybar/scripts/temperature-laptop
|
|
interval = 2
|
|
format-padding = 1
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
format-underline = #C1B93E
|
|
format-prefix-foreground = #C1B93E
|
|
label = %output%
|
|
|
|
################################################################################
|
|
|
|
[module/volume]
|
|
;https://github.com/jaagr/polybar/wiki/Module:-volume
|
|
type = internal/volume
|
|
format-volume = "<label-volume> <bar-volume>"
|
|
|
|
label-volume = " "
|
|
label-volume-foreground = #40ad4b
|
|
label-muted = muted
|
|
|
|
bar-volume-width = 10
|
|
bar-volume-foreground-0 = #40ad4b
|
|
bar-volume-foreground-1 = #40ad4b
|
|
bar-volume-foreground-2 = #40ad4b
|
|
bar-volume-foreground-3 = #40ad4b
|
|
bar-volume-foreground-4 = #40ad4b
|
|
bar-volume-foreground-5 = #40ad4b
|
|
bar-volume-foreground-6 = #40ad4b
|
|
bar-volume-gradient = false
|
|
bar-volume-indicator =
|
|
bar-volume-indicator-font = 2
|
|
bar-volume-fill =
|
|
bar-volume-fill-font = 2
|
|
bar-volume-empty =
|
|
bar-volume-empty-font = 2
|
|
bar-volume-empty-foreground = ${colors.foreground}
|
|
format-volume-foreground = ${colors.foreground}
|
|
format-volume-background = ${colors.background}
|
|
format-muted-prefix = " "
|
|
format-muted-prefix-foreground = "#ff0000"
|
|
format-muted-foreground = ${colors.foreground}
|
|
format-muted-background = ${colors.background}
|
|
|
|
################################################################################
|
|
|
|
[module/weather]
|
|
type = custom/script
|
|
interval = 10
|
|
format = <label>
|
|
format-prefix-foreground = #3EC13F
|
|
format-underline = #3EC13F
|
|
format-foreground = ${colors.foreground}
|
|
format-background = ${colors.background}
|
|
exec = ~/.config/polybar/scripts/weather.sh
|
|
tail = true
|
|
|
|
################################################################################
|
|
|
|
[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}
|
|
|
|
###############################################################################
|