changed public ip script for polybar
This commit is contained in:
@@ -162,7 +162,7 @@ font-2 = "xos4 Terminus:size=22;1"
|
||||
|
||||
modules-left = workspaces cpu cpu_temp memory filesystem
|
||||
modules-center = title
|
||||
modules-right = pulseaudio mic_status network public_ip_city battery date
|
||||
modules-right = pulseaudio mic_status network public_ip battery date
|
||||
|
||||
; The separator will be inserted between the output of each module
|
||||
separator =
|
||||
|
||||
@@ -784,7 +784,7 @@ interface = wlp3s0
|
||||
[module/network]
|
||||
type = internal/network
|
||||
interface = wlp0s20f3
|
||||
click-left = nm-connection-editor
|
||||
click-left = brave
|
||||
|
||||
; Seconds to sleep between updates
|
||||
; Default: 1
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
;; Created By Aditya Shakya @adi1090x
|
||||
;;
|
||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||
[module/public_ip_city]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/public_ip_city
|
||||
interval=30
|
||||
label=%output%
|
||||
[module/public_ip]
|
||||
type = custom/text
|
||||
content=
|
||||
click-left = curl -s ifconfig.co | while read OUTPUT; do notify-send "$OUTPUT"; done
|
||||
click-right = curl -s ifconfig.co | xargs -I % sh -c "curl -s ipinfo.io/%/city" | while read OUTPUT; do notify-send "$OUTPUT"; done
|
||||
|
||||
[module/mic_status]
|
||||
type = custom/script
|
||||
|
||||
Reference in New Issue
Block a user