; 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-load> <label>

ramp-load-0 = 
ramp-load-0-foreground = ${colors.success}

ramp-load-1 = 
ramp-load-1-foreground = ${colors.warning}

ramp-load-2 = 
ramp-load-2-foreground = ${colors.urgent}

[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%

ramp-used-0 = 
ramp-used-0-foreground = ${colors.success}

ramp-used-1 = 
ramp-used-1-foreground = ${colors.warning}

ramp-used-2 = 
ramp-used-2-foreground = ${colors.urgent}

[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 = <label-connected>

label-connected =  %downspeed:9%   %upspeed:9%
label-connected-foreground = ${colors.success}

[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
