home/config/polybar/modules
2020-11-17 13:58:04 +01:00

303 lines
5.7 KiB
INI

; vim:ft=dosini
[module/filesystem]
type = internal/fs
interval = 120
mount-0 = /home
label-mounted = " %mountpoint%: %percentage_used%%"
label-unmounted =  %mountpoint% not mounted
label-unmounted-foreground = ${colors.nord11}
[module/i3]
type = internal/i3
format = <label-state> <label-mode>
index-sort = true
wrapping-scroll = false
label-focused-foreground = ${colors.nord0}
label-focused-background = ${colors.nord8}
label-focused-underline= ${colors.nord10}
label-focused-padding = 2
label-unfocused-foreground = ${colors.nord5}
label-unfocused-background = ${colors.nord3}
label-unfocused-padding = 2
label-visible-foreground = ${colors.nord5}
label-visible-background = ${colors.nord3}
label-visible-underline = ${colors.nord10}
label-visible-padding = 2
label-urgent-foreground = ${colors.nord5}
label-urgent-background = ${colors.nord12}
label-urgent-underline = ${colors.nord11}
label-urgent-padding = 2
[module/vpn]
type = custom/script
exec = ~/.config/polybar/scripts/vpn-networkmanager-status.sh
interval = 5
[module/wlan]
type = internal/network
interface = wlp59s0
interval = 3.0
format-connected = 直 <label-connected>
label-connected = %essid%
format-connected-underline = ${colors.nord14}
format-disconnected =
format-disconnected-underline = ${colors.nord11}
[module/eth]
type = internal/network
interface = enp0s31f6
interval = 3.0
format-connected-underline = ${colors.nord14}
label-connected =  %linkspeed%
format-disconnected =
format-disconnected-underline = ${colors.nord11}
[module/date]
type = internal/date
interval = 30
date = %d/%m
time = %H:%M
label =  %date% %time%
[module/pulseaudio]
type = internal/pulseaudio
format-volume = <label-volume> <bar-volume>
label-volume = ♪ %percentage%%
label-muted =  -
label-muted-foreground = ${colors.nord11}
bar-volume-width = 10
bar-volume-foreground-0 = ${colors.nord14}
bar-volume-foreground-1 = ${colors.nord14}
bar-volume-foreground-2 = ${colors.nord14}
bar-volume-foreground-3 = ${colors.nord14}
bar-volume-foreground-4 = ${colors.nord13}
bar-volume-foreground-5 = ${colors.nord13}
bar-volume-foreground-6 = ${colors.nord12}
bar-volume-foreground-7 = ${colors.nord12}
bar-volume-foreground-8 = ${colors.nord11}
bar-volume-foreground-9 = ${colors.nord11}
bar-volume-gradient = true
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.nord6}
[module/battery]
type = internal/battery
battery = BAT0
adapter = AC
full-at = 100
format-charging = <animation-charging> <label-charging>
format-charging-underline = ${colors.nord14}
format-discharging = <animation-discharging> <label-discharging>
format-discharging-underline = ${colors.nord13}
format-full-prefix = " "
format-full-underline = ${colors.nord10}
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
animation-charging-5 =
animation-charging-framerate = 750
animation-discharging-0 =
animation-discharging-1 =
animation-discharging-2 =
animation-discharging-3 =
animation-discharging-4 =
animation-discharging-5 =
animation-discharging-framerate = 750
[module/logitech]
type = custom/script
exec = ~/Bin/device_battery.sh mouse 2>/dev/null
format =  <label>
label = %output%
[module/hhkb]
type = custom/script
exec = ~/Bin/device_battery.sh keyboard 2>/dev/null
format =  <label>
label = %output%
[module/lcd_brightness]
type = custom/script
exec = ~/Bin/brightness.sh read 2>/dev/null
format =  <label>
label = %output%%
[module/bluetooth_headphones_status]
type = custom/script
exec = ~/Bin/bluetooth_headphones_status.sh
format =  <label>
label = %output%
click-left = ~/Bin/bluetooth_headphones_status.sh toggle_profile
[module/multimedia_previous]
type = custom/text
content =
click-left = ~/Bin/music.sh Previous
[module/multimedia_next]
type = custom/text
content =
click-left = ~/Bin/music.sh Next
[module/multimedia_current]
type = custom/script
exec = ~/Bin/nowPlaying.sh
format = <label>
label = %output%
click-left = ~/Bin/music.sh PlayPause
[module/imap]
type = custom/script
exec = ~/.config/polybar/scripts/inbox-imap-shellnetrc.sh
interval = 60
format =  <label>
label = %output%
[module/tmux]
type = custom/script
exec = ~/.config/polybar/scripts/info-tmux-sessions.sh
interval = 5
[module/cpu]
type = internal/cpu
format = <label> <ramp-coreload>
label = CPU %percentage%%
ramp-coreload-spacing = 0
ramp-coreload-0 =
ramp-coreload-1 =
ramp-coreload-2 =
ramp-coreload-3 =
ramp-coreload-4 =
ramp-coreload-5 =
ramp-coreload-6 =
ramp-coreload-7 =
[module/memory]
type = internal/memory
format = <label> <ramp-used>
label = RAM %percentage_used%%
ramp-used-0 =
ramp-used-1 =
ramp-used-2 =
ramp-used-3 =
ramp-used-4 =
ramp-used-5 =
ramp-used-6 =
ramp-used-7 =
[module/temperature-cpu]
type = internal/temperature
interval = 0.5
thermal-zone = 0
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input
base-temperature = 20
warn-temperature = 60
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = CPU %temperature-c%
label-warn = TEMP %temperature-c%
label-warn-foreground = ${colors.nord11}
ramp-0 =
ramp-1 =
ramp-2 =
[module/temperature-wifi]
type = internal/temperature
interval = 0.5
thermal-zone = 5
hwmon-path = /sys/devices/virtual/thermal/thermal_zone5/hwmon7/temp1_input
base-temperature = 20
warn-temperature = 60
format = <ramp> <label>
format-warn = <ramp> <label-warn>
label = WIFI %temperature-c%
label-warn = TEMP %temperature-c%
label-warn-foreground = ${colors.nord11}
ramp-0 =
ramp-1 =
ramp-2 =