;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ ;; ;; __ __ __ ___ __ __ ;; / / / /_______ _____ / |/ /___ ____/ /_ __/ /__ _____ ;; / / / / ___/ _ \/ ___/ / /|_/ / __ \/ __ / / / / / _ \/ ___/ ;; / /_/ (__ ) __/ / / / / / /_/ / /_/ / /_/ / / __(__ ) ;; \____/____/\___/_/ /_/ /_/\____/\__,_/\__,_/_/\___/____/ ;; ;; Created By Aditya Shakya @adi1090x ;; ;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ [module/public_ip] type = custom/text content=  click-left = ip="$(curl -fsS --connect-timeout 3 --max-time 5 https://ifconfig.co/ip)" || exit; case "$ip" in ''|*[!0-9A-Fa-f.:]*) exit 1 ;; esac; notify-send "$ip"; city="$(curl -fsS --connect-timeout 3 --max-time 5 "https://ipinfo.io/${ip}/city")" || exit; notify-send "$city" [module/mic_status] type = custom/script exec = ~/.config/polybar/scripts/get_mic_status interval=1 label=%output% [module/cpu_temp] type = custom/script exec = sensors | awk '/Core/ {printf "%.0f\n", $3}' | tail -n1 interval=4 label= @ %output%C [module/checknetwork] type = custom/script ; Available tokens: ; %counter% ; Command to be executed (using "/usr/bin/env sh -c [command]") exec = ~/.config/polybar/scripts/check-network ; Conditional command that, if defined, needs to exit successfully ; before the main exec command is invoked. ; Default: "" ;;exec-if = "" ; Will the script output continous content? ; Default: false tail = true ; Seconds to sleep between updates ; Default: 2 (0 if `tail = true`) interval = 5 ; Available tags: ; - deprecated ;