added public ip script to polybar

This commit is contained in:
2021-08-10 13:31:13 +02:00
parent a3dbce034c
commit bf7b3fe08a
6 changed files with 14 additions and 7 deletions
@@ -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 battery date
modules-right = pulseaudio mic_status network public_ip_city battery date
; The separator will be inserted between the output of each module
separator =
+7 -1
View File
@@ -9,6 +9,12 @@
;; Created By Aditya Shakya @adi1090x
;;
;; _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
[module/public_ip_city]
type = custom/script
exec = ~/.config/polybar/scripts/public_ip_city
interval=30
label=%output%
[module/mic_status]
type = custom/script
exec = ~/.config/polybar/scripts/get_mic_status
@@ -18,7 +24,7 @@ label=%output%
[module/cpu_temp]
type = custom/script
exec = sensors | awk '/Core/ {printf "%.0f\n", $3}' | tail -n1
interval=1
interval=4
label= @ %output%C
[module/checknetwork]