diff options
author | Joe <rrbo@proton.me> | 2023-02-06 15:24:19 +0100 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-02-06 15:24:19 +0100 |
commit | 226d9359878469f81c635de525e5d8722bb16e0e (patch) | |
tree | f8208f4ec8776b3b6fc843958f68153b137880a6 /.local/bin/conky | |
parent | up (diff) | |
download | dotfiles-bsd-226d9359878469f81c635de525e5d8722bb16e0e.tar.gz dotfiles-bsd-226d9359878469f81c635de525e5d8722bb16e0e.tar.bz2 dotfiles-bsd-226d9359878469f81c635de525e5d8722bb16e0e.tar.xz dotfiles-bsd-226d9359878469f81c635de525e5d8722bb16e0e.tar.zst dotfiles-bsd-226d9359878469f81c635de525e5d8722bb16e0e.zip |
up
Diffstat (limited to '.local/bin/conky')
-rwxr-xr-x | .local/bin/conky/net.sh | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/.local/bin/conky/net.sh b/.local/bin/conky/net.sh index 528e4a6..ab9b543 100755 --- a/.local/bin/conky/net.sh +++ b/.local/bin/conky/net.sh @@ -1,21 +1,6 @@ #!/bin/sh -os="$(uname)" -tmpfile="/tmp/os" - -if [ -e "/tmp/os" ]; then - os=$(cat $tmpfile) -else - if [ "$os" = "Linux" ]; then - grep "Artix" /etc/issue >/dev/null 2>&1 && os=1 || os=2 - elif [ "$os" = "FreeBSD" ]; then - os=3 - else - echo "unknown OS" - exit 1 - fi - echo $os >$tmpfile -fi +os=$(cat "/tmp/os") case $os in 1) @@ -47,7 +32,7 @@ ${color #928374}LAN IP: ${font1}${color #ebdbb2}${addr '$if_main'}${font} ${color #928374}DNS IP: ${font1}${color #ebdbb2}${nameserver 0}${font} ${color #928374}WAN IP: ${color #ebdbb2}${font1}${execi 300 curl -s https://ifconfig.me || echo No WAN}${font} ${hr} -${color #928374}Speed: ${font1}down: ${color #ebdbb2}${font1}${downspeed '$if_main'} ${color grey}- up: ${color #ebdbb2}${font1}${upspeed '$if_main'}${font} +${color #928374}Speed: ${font1}down: ${color #ebdbb2}${font1}${downspeed '$if_main'} ${color #928374}- up: ${color #ebdbb2}${font1}${upspeed '$if_main'}${font} ${color #928374}Down: ${color #ebdbb2}${downspeedgraph '$if_main' bfbfbf c0c0c0 125829120} ${color #928374}Up: ${color #ebdbb2}${upspeedgraph '$if_main' bfbfbf c0c0c0 125829120} ${hr}' |