Update Polybar layouts / modules
This commit is contained in:
parent
f9db227fc6
commit
c75eeec199
|
@ -21,7 +21,7 @@ font-4 = Unifont:size=8;0
|
||||||
|
|
||||||
modules-left = powermenu
|
modules-left = powermenu
|
||||||
modules-center = ki3
|
modules-center = ki3
|
||||||
modules-right = volume wired-network clock
|
modules-right = keyboard volume wired-network clock
|
||||||
|
|
||||||
[bar/bottom]
|
[bar/bottom]
|
||||||
monitor = ${env:MONITOR}
|
monitor = ${env:MONITOR}
|
||||||
|
@ -47,26 +47,238 @@ font-3 = NotoSans-Regular:size=8;-1
|
||||||
font-4 = MaterialIcons:size=10;-1
|
font-4 = MaterialIcons:size=10;-1
|
||||||
font-5 = Termsynu:size=8:antialias=false;0
|
font-5 = Termsynu:size=8:antialias=false;0
|
||||||
|
|
||||||
modules-left =
|
modules-left = temp-cpu cpu
|
||||||
modules-right = cpu memory
|
modules-center = network filesystem
|
||||||
|
modules-right = temp-gpu memory
|
||||||
|
|
||||||
|
[module/filesystem]
|
||||||
|
type = internal/fs
|
||||||
|
|
||||||
|
; Mountpoints to display
|
||||||
|
mount-0 = /
|
||||||
|
;mount-1 = /home
|
||||||
|
;mount-2 = /var
|
||||||
|
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
; Default: 30
|
||||||
|
interval = 10
|
||||||
|
|
||||||
|
; Display fixed precision values
|
||||||
|
; Default: false
|
||||||
|
fixed-values = true
|
||||||
|
|
||||||
|
;Available tags:
|
||||||
|
; <label-mounted> (default)
|
||||||
|
; <bar-free>
|
||||||
|
; <bar-used>
|
||||||
|
; <ramp-capacity>
|
||||||
|
format-mounted = <label-mounted>
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %mountpoint%
|
||||||
|
; %type%
|
||||||
|
; %fsname%
|
||||||
|
; %percentage_free%
|
||||||
|
; %percentage_used%
|
||||||
|
; %total%
|
||||||
|
; %free%
|
||||||
|
; %used%
|
||||||
|
; Default: %mountpoint% %percentage_free%%
|
||||||
|
label-mounted = root: %total%
|
||||||
|
|
||||||
|
; Spacing between entries
|
||||||
|
; Default: 2
|
||||||
|
spacing = 4
|
||||||
|
|
||||||
|
[module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = enp0s31f6
|
||||||
|
|
||||||
|
; Available tags:
|
||||||
|
; <label-connected> (default)
|
||||||
|
; <ramp-signal>
|
||||||
|
format-connected = <ramp-signal> <label-connected>
|
||||||
|
|
||||||
|
; Available tags:
|
||||||
|
; <label-disconnected> (default)
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
|
||||||
|
; Available tags:
|
||||||
|
; <label-connected> (default)
|
||||||
|
; <label-packetloss>
|
||||||
|
; <animation-packetloss>
|
||||||
|
format-packetloss = <animation-packetloss> <label-connected>
|
||||||
|
|
||||||
|
; Default: %ifname% %local_ip%
|
||||||
|
label-connected = %ifname% %local_ip%: %upspeed% /%downspeed:9% %linkspeed%
|
||||||
|
label-connected-foreground = #eefafafa
|
||||||
|
|
||||||
|
; Default: (none)
|
||||||
|
label-disconnected = not connected
|
||||||
|
label-disconnected-foreground = #66ffffff
|
||||||
|
|
||||||
|
; Default: (none)
|
||||||
|
;label-packetloss = %essid%
|
||||||
|
;label-packetloss-foreground = #eefafafa
|
||||||
|
|
||||||
|
; Only applies if <ramp-signal> is used
|
||||||
|
ramp-signal-0 = 😱
|
||||||
|
ramp-signal-1 = 😠
|
||||||
|
ramp-signal-2 = 😒
|
||||||
|
ramp-signal-3 = 😊
|
||||||
|
ramp-signal-4 = 😃
|
||||||
|
ramp-signal-5 = 😈
|
||||||
|
|
||||||
|
; Only applies if <animation-packetloss> is used
|
||||||
|
animation-packetloss-0 = ⚠
|
||||||
|
animation-packetloss-0-foreground = #ffa64c
|
||||||
|
animation-packetloss-1 = 📶
|
||||||
|
animation-packetloss-1-foreground = #000000
|
||||||
|
; Framerate in milliseconds
|
||||||
|
animation-packetloss-framerate = 500
|
||||||
|
|
||||||
|
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
; Default: 1
|
||||||
|
interval = 3.0
|
||||||
|
|
||||||
|
; Test connectivity every Nth update
|
||||||
|
; A value of 0 disables the feature
|
||||||
|
; NOTE: Experimental (needs more testing)
|
||||||
|
; Default: 0
|
||||||
|
;ping-interval = 3
|
||||||
|
|
||||||
|
; @deprecated: Define min width using token specifiers (%downspeed:min% and %upspeed:min%)
|
||||||
|
; Minimum output width of upload/download rate
|
||||||
|
; Default: 3
|
||||||
|
udspeed-minwidth = 5
|
||||||
|
|
||||||
|
; Accumulate values from all interfaces
|
||||||
|
; when querying for up/downspeed rate
|
||||||
|
; Default: false
|
||||||
|
accumulate-stats = true
|
||||||
|
|
||||||
|
; Consider an `UNKNOWN` interface state as up.
|
||||||
|
; Some devices like USB network adapters have
|
||||||
|
; an unknown state, even when they're running
|
||||||
|
; Default: false
|
||||||
|
unknown-as-up = true
|
||||||
|
|
||||||
|
[module/temp-cpu]
|
||||||
|
type = internal/temperature
|
||||||
|
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
; Default: 1
|
||||||
|
interval = 0.5
|
||||||
|
|
||||||
|
; 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/hwmon2/temp1_input
|
||||||
|
|
||||||
|
; Base temperature for where to start the ramp (in degrees celsius)
|
||||||
|
; Default: 0
|
||||||
|
base-temperature = 20
|
||||||
|
|
||||||
|
; Threshold temperature to display warning label (in degrees celsius)
|
||||||
|
; Default: 80
|
||||||
|
warn-temperature = 60
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %temperature% (deprecated)
|
||||||
|
; %temperature-c% (default, temperature in °C)
|
||||||
|
; %temperature-f% (temperature in °F)
|
||||||
|
label = CPU: %temperature-f%
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %temperature% (deprecated)
|
||||||
|
; %temperature-c% (default, temperature in °C)
|
||||||
|
; %temperature-f% (temperature in °F)
|
||||||
|
label-warn = %temperature-f%
|
||||||
|
label-warn-foreground = #f00
|
||||||
|
|
||||||
|
[module/temp-gpu]
|
||||||
|
type = internal/temperature
|
||||||
|
|
||||||
|
; Seconds to sleep between updates
|
||||||
|
; Default: 1
|
||||||
|
interval = 0.5
|
||||||
|
|
||||||
|
; 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 = 2
|
||||||
|
|
||||||
|
; 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/hwmon2/temp1_input
|
||||||
|
|
||||||
|
; Base temperature for where to start the ramp (in degrees celsius)
|
||||||
|
; Default: 0
|
||||||
|
base-temperature = 20
|
||||||
|
|
||||||
|
; Threshold temperature to display warning label (in degrees celsius)
|
||||||
|
; Default: 80
|
||||||
|
warn-temperature = 60
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %temperature% (deprecated)
|
||||||
|
; %temperature-c% (default, temperature in °C)
|
||||||
|
; %temperature-f% (temperature in °F)
|
||||||
|
label = GPU: %temperature-f%
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %temperature% (deprecated)
|
||||||
|
; %temperature-c% (default, temperature in °C)
|
||||||
|
; %temperature-f% (temperature in °F)
|
||||||
|
label-warn = %temperature-f%
|
||||||
|
label-warn-foreground = #f00
|
||||||
|
|
||||||
|
|
||||||
|
[module/keyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
; List of indicators to ignore
|
||||||
|
blacklist-1 = scroll lock
|
||||||
|
;label-indicator-on-capslock =
|
||||||
|
;label-indicator-off-capslock =
|
||||||
|
;label-indicator-on-numlock =
|
||||||
|
;label-indicator-off-numlock =
|
||||||
|
format = <label-indicator> <label-layout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/powermenu]
|
[module/powermenu]
|
||||||
type = custom/menu
|
type = custom/menu
|
||||||
|
|
||||||
format-padding = 5
|
format-padding = 5
|
||||||
|
format = <label-toggle> <menu>
|
||||||
label-open = ䷡
|
label-open = ䷡
|
||||||
label-close = "Ⓧ "
|
label-close = "Ⓧ "
|
||||||
|
|
||||||
menu-0-0 = "↸ pkill poly "
|
menu-0-0 = "↸ pkill poly "
|
||||||
menu-0-0-foreground = #fba922
|
menu-0-0-foreground = #fba922
|
||||||
menu-0-0-exec = pkill -f polybar
|
menu-0-0-exec = pkill -f polybar
|
||||||
|
|
||||||
menu-0-1 = "⊒ i3 restart "
|
menu-0-1 = "⊒ i3 restart "
|
||||||
menu-0-1-foreground = #fba922
|
menu-0-1-foreground = #fba922
|
||||||
menu-0-1-exec = i3 restart
|
menu-0-1-exec = i3 restart
|
||||||
|
|
||||||
menu-0-2 = "⬡ Reboot "
|
menu-0-2 = "⬡ Reboot "
|
||||||
menu-0-2-foreground = #fba922
|
menu-0-2-foreground = #fba922
|
||||||
menu-0-2-exec = sudo /sbin/reboot
|
menu-0-2-exec = sudo /sbin/reboot
|
||||||
|
|
||||||
menu-0-3 = "⏾ Power off "
|
menu-0-3 = "⏾ Power off "
|
||||||
menu-0-3-foreground = #fba922
|
menu-0-3-foreground = #fba922
|
||||||
menu-0-3-exec = sudo poweroff
|
menu-0-3-exec = sudo poweroff
|
||||||
|
@ -88,8 +300,8 @@ menu-2-1-exec = menu_open-0
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
interval = 0.5
|
interval = 0.5
|
||||||
format = <label> <ramp-coreload>
|
format = <ramp-coreload> <label>
|
||||||
label = CPU
|
label = %percentage-cores%
|
||||||
|
|
||||||
ramp-coreload-0 = ▁
|
ramp-coreload-0 = ▁
|
||||||
ramp-coreload-0-font = 2
|
ramp-coreload-0-font = 2
|
||||||
|
@ -188,6 +400,67 @@ reverse-scroll = false
|
||||||
; Default: false
|
; Default: false
|
||||||
fuzzy-match = true
|
fuzzy-match = true
|
||||||
|
|
||||||
|
|
||||||
|
; Available tags:
|
||||||
|
; <label-state> (default) - gets replaced with <label-(focused|unfocused|visible|urgent)>
|
||||||
|
; <label-mode> (default)
|
||||||
|
format = <label-state> <label-mode>
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %mode%
|
||||||
|
; Default: %mode%
|
||||||
|
label-mode = %mode%
|
||||||
|
label-mode-padding = 2
|
||||||
|
label-mode-background = #e60053
|
||||||
|
|
||||||
|
; ws-icon-[0-9]+ = label;icon
|
||||||
|
; NOTE: The label needs to match the name of the i3 workspace
|
||||||
|
;ws-icon-0 = 1;♚
|
||||||
|
;ws-icon-1 = 2;♛
|
||||||
|
;ws-icon-2 = 3;♜
|
||||||
|
;ws-icon-3 = 4;♝
|
||||||
|
;ws-icon-4 = 5;♞
|
||||||
|
;ws-icon-default = ♟
|
||||||
|
; NOTE: You cannot skip icons, e.g. to get a ws-icon-6
|
||||||
|
; you must also define a ws-icon-5.
|
||||||
|
; NOTE: Icon will be available as the %icon% token inside label-*
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %name%
|
||||||
|
; %icon%
|
||||||
|
; %index%
|
||||||
|
; %output%
|
||||||
|
; Default: %icon% %name%
|
||||||
|
label-focused = %index%
|
||||||
|
label-focused-foreground = #ffffff
|
||||||
|
label-focused-background = #016239
|
||||||
|
label-focused-underline = #1f1f1f
|
||||||
|
label-focused-padding = 4
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %name%
|
||||||
|
; %icon%
|
||||||
|
; %index%
|
||||||
|
; %output%
|
||||||
|
; Default: %icon% %name%
|
||||||
|
label-unfocused = %index%
|
||||||
|
label-unfocused-padding = 4
|
||||||
|
|
||||||
|
; Available tokens:
|
||||||
|
; %name%
|
||||||
|
; %icon%
|
||||||
|
; %index%
|
||||||
|
; %output%
|
||||||
|
; Default: %icon% %name%
|
||||||
|
label-visible = %index%
|
||||||
|
label-visible-underline = #1f1f1f
|
||||||
|
label-visible-padding = 4
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
label-separator = |
|
||||||
|
label-separator-padding = 2
|
||||||
|
label-separator-foreground = #ffb52a
|
||||||
|
|
||||||
[module/volume]
|
[module/volume]
|
||||||
type = internal/alsa
|
type = internal/alsa
|
||||||
speaker-mixer = IEC958
|
speaker-mixer = IEC958
|
||||||
|
|
Loading…
Reference in New Issue