dotfiles/.config/polybar/nord-down

171 lines
3.8 KiB
INI

; vim:ft=dosini
[module/powermenu]
type = custom/menu
expand-right = true
label-open =
label-open-foreground = ${colors.background}
label-open-background = ${colors.nord9}
label-open-padding = 3
label-close =
label-close-foreground = ${colors.background}
label-close-background = ${colors.nord9}
label-close-padding = 4
menu-0-0 =
menu-0-0-foreground = ${colors.urgent}
menu-0-0-padding = 2
menu-0-0-exec = sudo shutdown -h now
menu-0-1 =
menu-0-1-foreground = ${colors.warning}
menu-0-1-padding = 2
menu-0-1-exec = sudo shutdown -hr now
menu-0-2 =
menu-0-2-foreground = ${colors.notify}
menu-0-2-padding = 2
menu-0-2-exec = i3lock -i ~/Downloads/wallpaper.png && sleep 1
[module/cpu]
type = internal/cpu
interval = 1
format = <ramp-coreload> <label>
label =  %percentage%%
warn-percentage = 50
format-warn = <ramp-coreload> <label>
format-warn-foreground = ${colors.warning}
ramp-coreload-spacing = 1
ramp-coreload-0 =
ramp-coreload-1 =
ramp-coreload-2 =
ramp-coreload-3 =
ramp-coreload-4 =
ramp-coreload-5 =
ramp-coreload-6 =
[module/show-desktop]
type = custom/text
content =
click-left = i3-msg workspace 25:Desktop
[module/memory]
type = internal/memory
interval = 3
format = <ramp-used> <label>
label = %gb_used%/%gb_total%
warn-percentage = 50
format-warn = <ramp-used> <label>
format-warn-foreground = ${colors.warning}
ramp-used-foreground = ${colors.success}
ramp-used-0 = ▁ 
ramp-used-1 = ▂ 
ramp-used-2 = ▃ 
ramp-used-3 = ▄ 
ramp-used-4 = ▅ 
ramp-used-5 = ▆ 
ramp-used-6 = ▇ 
[module/github]
type= internal/github
token = ${config.github-token}
empty-notifications = false
interval = 10
label =  %notifications%
[module/daily-poem]
type = custom/ipc
# replace 7UfdzOWorOAHZHcsxFQl2Ufa/7E9BtdT with your token from https://v2.jinrishici.com/token.
hook-0 = ~/.config/polybar/scripts/daily-poem require 7UfdzOWorOAHZHcsxFQl2Ufa/7E9BtdT ~/.config/polybar/scripts/poem.txt
hook-1 = ~/.config/polybar/scripts/daily-poem get ~/.config/polybar/scripts/poem.txt plus
hook-2 = ~/.config/polybar/scripts/daily-poem get ~/.config/polybar/scripts/poem.txt minus
initial = 1
scroll-up = polybar-msg -p %pid% hook daily-poem 2
scroll-down = polybar-msg -p %pid% hook daily-poem 3
double-click-left = polybar-msg -p %pid% hook daily-poem 1
format-underline = ${colors.nord7}
[module/network-detail]
type = internal/network
interface = ${config.interface}
interval = 3
format-connected = %{A1:networkmanager_dmenu:}<ramp-signal> <label-connected>%{A}
format-connected-foreground = ${colors.success}
label-connected = %essid% %downspeed:9% %upspeed:9%
format-disconnected = %{A1:networkmanager_dmenu:}<label-disconnected>%{A}
format-disconnected-foreground = ${colors.urgent}
label-disconnected =
ramp-signal-0 =
ramp-signal-1 = ▂▄
ramp-signal-2 = ▂▄▆
ramp-signal-3 = ▂▄▆█
[module/temperature]
type = internal/temperature
thermal-zone = ${config.thermal-zone}
base-temperature = ${config.base-temperature}
warn-temperature = ${config.warn-temperature}
; Format
format = <ramp> <label>
format-warn = <label-warn>
format-warn-background = ${colors.foreground}
label = %temperature-f%
label-warn =  %temperature-f%
label-warn-padding = 1
label-warn-foreground = ${colors.urgent}
label-warn-background = ${colors.foreground}
ramp-0 =
ramp-1 =
ramp-2 =
ramp-3 =
ramp-4 =
ramp-0-foreground = ${colors.nord8}
ramp-1-foreground = ${colors.nord8}
ramp-2-foreground = ${colors.success}
ramp-3-foreground = ${colors.success}
ramp-4-foreground = ${colors.warning}
interval = 10
[module/info-hackspeed]
type = custom/script
exec = ~/.config/polybar/scripts/info-hackspeed.sh
tail = true
[module/weather]
type = custom/script
exec = ~/.config/polybar/scripts/openweathermap-fullfeatured.sh
interval = 600
label-font = 4