From 33a06dbf63dfe375221f47c4c26d16b43924097f Mon Sep 17 00:00:00 2001 From: _N0x Date: Sat, 20 Feb 2021 21:00:34 +0100 Subject: [PATCH] Minor config tweaks --- lf/.config/lf/lfrc | 5 +++-- localbin/.local/bin/dwmscript/dwmnetspeed | 18 ++++++++++++++++++ localbin/.local/bin/dwmscript/dwmnetwork | 14 +------------- nvim/.config/nvim/init.vim | 2 +- xresources/.xinitrc | 3 +++ zsh/.oh-my-zsh/cache/.zsh-update | 2 +- 6 files changed, 27 insertions(+), 17 deletions(-) create mode 100755 localbin/.local/bin/dwmscript/dwmnetspeed diff --git a/lf/.config/lf/lfrc b/lf/.config/lf/lfrc index c7ef325..c4802df 100644 --- a/lf/.config/lf/lfrc +++ b/lf/.config/lf/lfrc @@ -1,5 +1,5 @@ # show hidden files -set hidden true +set hidden false set icons @@ -47,7 +47,8 @@ cmd open ${{ #Text handling text/*) $EDITOR $fx;; #Image handling - image/*) sxiv -a $fx 2>/dev/null ;; + #image/*) sxiv -a $fx 2>/dev/null ;; + image/*) eog $fx 2>/dev/null ;; *) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;; esac }} diff --git a/localbin/.local/bin/dwmscript/dwmnetspeed b/localbin/.local/bin/dwmscript/dwmnetspeed new file mode 100755 index 0000000..f3eaa65 --- /dev/null +++ b/localbin/.local/bin/dwmscript/dwmnetspeed @@ -0,0 +1,18 @@ +#!/bin/bash +icon="龍" +iface="enp4s0" +up="" +down="" + +R1="$(cat /sys/class/net/$iface/statistics/rx_bytes)" +T1="$(cat /sys/class/net/$iface/statistics/tx_bytes)" +sleep 1 +R2="$(cat /sys/class/net/$iface/statistics/rx_bytes)" +T2="$(cat /sys/class/net/$iface/statistics/tx_bytes)" +TBPS="$(expr $T2 - $T1)" +RBPS="$(expr $R2 - $R1)" +TKBPS="$(expr $TBPS / 1024)" +RKBPS="$(expr $RBPS / 1024)" + +printf " %s %s %skB/s %s %skB/s \\n" "$icon" "$up" "$TKBPS" "$down" "$RKBPS" +#echo "tx $iface: $TKBPS kB/s rx $iface: $RKBPS kB/s" diff --git a/localbin/.local/bin/dwmscript/dwmnetwork b/localbin/.local/bin/dwmscript/dwmnetwork index 382f0a9..3dc8eaf 100755 --- a/localbin/.local/bin/dwmscript/dwmnetwork +++ b/localbin/.local/bin/dwmscript/dwmnetwork @@ -3,19 +3,7 @@ icon="" iface="enp4s0" -up="" -down="" - -R1="$(cat /sys/class/net/$iface/statistics/rx_bytes)" -T1="$(cat /sys/class/net/$iface/statistics/tx_bytes)" -sleep 1 -R2="$(cat /sys/class/net/$iface/statistics/rx_bytes)" -T2="$(cat /sys/class/net/$iface/statistics/tx_bytes)" -TBPS="$(expr $T2 - $T1)" -RBPS="$(expr $R2 - $R1)" -TKBPS="$(expr $TBPS / 1024)" -RKBPS="$(expr $RBPS / 1024)" IPADDR="$(ip a show dev $iface | awk '/inet / { print $2 } ')" -printf " %s [%s] %s %skB/s %s %skB/s \\n" "$icon" "$IPADDR" "$up" "$TKBPS" "$down" "$RKBPS" +printf " %s %s [%s] \n" "$icon" "$iface" "$IPADDR" #echo "tx $iface: $TKBPS kB/s rx $iface: $RKBPS kB/s" diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index be31116..72b63cb 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -25,7 +25,7 @@ Plug 'preservim/nerdtree', {'on': 'NERDTreeToggle'} Plug 'arcticicestudio/nord-vim' Plug 'mg979/vim-visual-multi' Plug 'mbbill/undotree' -Plug 'hugolgst/vimsence' +#Plug 'hugolgst/vimsence' call plug#end() " colorscheme stuff " diff --git a/xresources/.xinitrc b/xresources/.xinitrc index e46b67a..5f3b497 100644 --- a/xresources/.xinitrc +++ b/xresources/.xinitrc @@ -44,6 +44,9 @@ picom -f & # restore wallpaper nitrogen --restore & +# start autolocker +xautolock -time 5 -locker slock & + # fix java for java is being java.... export AWT_TOOLKIT=MToolkit diff --git a/zsh/.oh-my-zsh/cache/.zsh-update b/zsh/.oh-my-zsh/cache/.zsh-update index 6156683..e909582 100644 --- a/zsh/.oh-my-zsh/cache/.zsh-update +++ b/zsh/.oh-my-zsh/cache/.zsh-update @@ -1 +1 @@ -LAST_EPOCH=18664 +LAST_EPOCH=18677