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 | |
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
-rwxr-xr-x | .config/tint2/tint2rc | 4 | ||||
-rwxr-xr-x | .local/bin/conky/net.sh | 19 | ||||
-rwxr-xr-x | .local/bin/tmp_os.sh | 13 |
3 files changed, 17 insertions, 19 deletions
diff --git a/.config/tint2/tint2rc b/.config/tint2/tint2rc index fd2277e..71a9476 100755 --- a/.config/tint2/tint2rc +++ b/.config/tint2/tint2rc @@ -1,4 +1,4 @@ -#---- Generated by tint2conf ade1 ---- +#---- Generated by tint2conf c5f3 ---- # See https://gitlab.com/o9000/tint2/wikis/Configure for # full documentation of the configuration options. #------------------------------------- @@ -196,7 +196,7 @@ task_thumbnail = 1 task_thumbnail_size = 210 task_font_color = #eeeeee 100 task_active_font_color = #ffffff 100 -task_iconified_font_color = #ffffff 65 +task_iconified_font_color = #ffffff 64 task_icon_asb = 100 0 -15 task_active_icon_asb = 100 0 0 task_iconified_icon_asb = 70 -50 -50 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}' diff --git a/.local/bin/tmp_os.sh b/.local/bin/tmp_os.sh new file mode 100755 index 0000000..e0fa13f --- /dev/null +++ b/.local/bin/tmp_os.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +os="$(uname)" + +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 |