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-left = workspaces cpu cpu_temp memory filesystem
|
||||||
modules-center = title
|
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
|
; The separator will be inserted between the output of each module
|
||||||
separator =
|
separator =
|
||||||
|
|||||||
@@ -784,7 +784,7 @@ interface = wlp3s0
|
|||||||
[module/network]
|
[module/network]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interface = wlp0s20f3
|
interface = wlp0s20f3
|
||||||
click-left = nm-connection-editor
|
click-left = brave
|
||||||
|
|
||||||
; Seconds to sleep between updates
|
; Seconds to sleep between updates
|
||||||
; Default: 1
|
; Default: 1
|
||||||
|
|||||||
@@ -9,11 +9,11 @@
|
|||||||
;; Created By Aditya Shakya @adi1090x
|
;; Created By Aditya Shakya @adi1090x
|
||||||
;;
|
;;
|
||||||
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
|
||||||
[module/public_ip_city]
|
[module/public_ip]
|
||||||
type = custom/script
|
type = custom/text
|
||||||
exec = ~/.config/polybar/scripts/public_ip_city
|
content=
|
||||||
interval=30
|
click-left = curl -s ifconfig.co | while read OUTPUT; do notify-send "$OUTPUT"; done
|
||||||
label=%output%
|
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]
|
[module/mic_status]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
|
|||||||
Reference in New Issue
Block a user