This commit is contained in:
паша душный 2023-04-01 23:37:44 +03:00
parent cdd176b352
commit f11c775e3d
3 changed files with 64 additions and 48 deletions

View file

@ -211,16 +211,25 @@ interval = 3600
[module/uptime]
type = custom/script
exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' )
format-prefix = "󰅔"
# exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' )
exec = uptime | sed 's/.*up //g;s/,.*user.*//g'
interval = 60
[module/mpdvol]
type = custom/script
exec = echo  $(mpc --host=192.168.0.186 status %volume%)
interval = 5
scroll-up = mpc --host=192.168.0.186 volume +5
scroll-down = mpc --host=192.168.0.186 volume -5
click-left = mpc --host=192.168.0.186 toggleoutput 1
type = custom/ipc
interval = 10
initial = 1
hook-0 = echo  $(mpc --host=192.168.0.186 status %volume%)
hook-1 = mpc --host=192.168.0.186 volume +1 > /dev/null
hook-2 = mpc --host=192.168.0.186 volume -1 > /dev/null
hook-3 = mpc --host=192.168.0.186 toggleoutput 1 > /dev/null
# exec = echo  $(mpc --host=192.168.0.186 status %volume%)
# scroll-up = mpc --host=192.168.0.186 volume +5
# scroll-down = mpc --host=192.168.0.186 volume -5
# click-left = mpc --host=192.168.0.186 toggleoutput 1
[module/ddcci]
type = custom/script
@ -242,7 +251,13 @@ menu-0-1 = Suspend
menu-0-1-exec = systemctl suspend
label-open =
[module/openvpn]
type = custom/script
exec = hostname -i | sed 's#.*10\.8#10\.8#'
exec-if = pgrep -x openvpn
tail = true
interval = 5
format-prefix = "󰢭 "
###############
# INTERNAL #
@ -468,14 +483,14 @@ ramp-coreload-5 = ▆
ramp-coreload-6 =
ramp-coreload-7 =
# [module/freq]
# type = custom/script
# format = <label> MHz
# exec = cat /proc/cpuinfo | grep MHz | sed 's/cpu MHz//' | sed 's/://' | awk '{print int($1+0.5)}'
# # tail = true
# click-left = kill -USR1 %pid%
# format-prefix = " "
# interval = 3
[module/freq]
type = custom/script
format = <label> MHz
exec = cat /proc/cpuinfo | grep MHz | sed 's/cpu MHz//' | sed 's/://' | awk '{print int($1+0.5)}'
# tail = true
click-left = kill -USR1 %pid%
format-prefix = " "
interval = 3
[module/wireguard]
type = internal/network
@ -487,15 +502,15 @@ ping-interval = 5
label-connected = 󰒄 %ifname% %local_ip%
label-disconnected = 󰒄 %local_ip%
[module/openvpn]
type = internal/network
interface = tun0
interface-type = wired
interval = 3.0
ping-interval = 5
label-connected = 󰖂 %local_ip%
label-disconnected =
# [module/tun0]
# type = internal/network
# interface = tun0
# interface-type = wired
# interval = 3.0
# ping-interval = 5
# label-connected = 󰖂 %local_ip%
# label-disconnected =
[module/ethernet]
type = internal/network
interface = enp37s0