moving changes to main
This commit is contained in:
parent
c0d2fc3e59
commit
7b697d5a46
3 changed files with 14 additions and 8 deletions
|
@ -178,6 +178,10 @@ map i push A<a-b><a-b><a-f> # before extension
|
|||
map c push A<c-u> # new rename
|
||||
map B bulkrename
|
||||
map b $cp "$f" "$f-COPY"
|
||||
map u :clear; unselect
|
||||
map n &echo $f | xclip -r -selection c
|
||||
map N
|
||||
map gh
|
||||
|
||||
# Kitty Specific
|
||||
map W $setsid -f $TERMINAL -e lf >/dev/null 2>&1
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
#!/bin/sh
|
||||
big="\033[11m"
|
||||
norm="\033[10m"
|
||||
if grep -xq 'up' /sys/class/net/w*/operstate 2>/dev/null ; then
|
||||
percent="$(cat /proc/net/wireless | tail -1 | tr -s ' ' | cut -d ' ' -f3 | sed 's/\.//')"
|
||||
wifi_icon="直"
|
||||
percent=$(tail -1 /proc/net/wireless | tr -s ' ' | cut -d ' ' -f3 | sed 's/\.//')
|
||||
wifi_icon="直"
|
||||
elif grep -xq 'down' /sys/class/net/w*/operstate 2>/dev/null ; then
|
||||
grep -xq '0x1003' /sys/class/net/w*/flags && wifi_icon="睊" || wifi_icon=""
|
||||
grep -xq '0x1003' /sys/class/net/w*/flags && wifi_icon="睊" || wifi_icon=""
|
||||
else
|
||||
wifi_icon=""
|
||||
percent=""
|
||||
fi
|
||||
|
||||
ls /sys/class/net/tun* 1>/dev/null 2>&1 && vpn_icon="$(sed "s/.*/嬨/" /sys/class/net/tun*/operstate 2>/dev/null)" || vpn_icon=""
|
||||
ls /sys/class/net/tun* 1> /dev/null 2>&1 && vpn_icon="$(sed "s/.*/嬨/" /sys/class/net/tun*/operstate 2>/dev/null)" || vpn_icon=""
|
||||
|
||||
printf "%s%s%s%s" "$wifi_icon" "$percent" "$(sed "s/down//;s/up//;s/\n//" /sys/class/net/e*/operstate 2>/dev/null)" "$vpn_icon"
|
||||
|
||||
printf "$big%s$norm %s $big%s%s$norm" "$wifi_icon" " $percent" "$(sed "s/down//;s/up//" /sys/class/net/e*/operstate 2>/dev/null | tr "\n" " " | xargs echo -n)" "$vpn_icon"
|
||||
|
|
|
@ -12,4 +12,4 @@
|
|||
# Description = Updating statusbar...
|
||||
# When = PostTransaction
|
||||
# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks # Or i3blocks if using i3.
|
||||
pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/ /;s/^ 0$//g"
|
||||
echo -n $(pacman -Qu | grep -Fcv "[ignored]" | sed "s/^/ /;s/^ 0$//g")
|
||||
|
|
Loading…
Add table
Reference in a new issue