Minor config tweaks
This commit is contained in:
parent
4e5c51a5dd
commit
33a06dbf63
@ -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
|
||||
}}
|
||||
|
18
localbin/.local/bin/dwmscript/dwmnetspeed
Executable file
18
localbin/.local/bin/dwmscript/dwmnetspeed
Executable file
@ -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"
|
@ -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"
|
||||
|
@ -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 "
|
||||
|
@ -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
|
||||
|
||||
|
2
zsh/.oh-my-zsh/cache/.zsh-update
vendored
2
zsh/.oh-my-zsh/cache/.zsh-update
vendored
@ -1 +1 @@
|
||||
LAST_EPOCH=18664
|
||||
LAST_EPOCH=18677
|
||||
|
Loading…
Reference in New Issue
Block a user