"True" bg Okular fxn, Git/laptop changes
laptop: - connect lab monitor alias - mute key - wi-fi symbol/name (i3blocks) Git: - checkout file - continue cherry-pick - checkout new branch
This commit is contained in:
@@ -64,6 +64,8 @@ if ($status eq 'Discharging') {
|
||||
print "#FFF600\n";
|
||||
} elsif ($percent < 85) {
|
||||
print "#A8FF00\n";
|
||||
} else {
|
||||
print "#2c9332\n";
|
||||
}
|
||||
|
||||
if ($percent < 5) {
|
||||
|
||||
@@ -28,10 +28,12 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
|
||||
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
|
||||
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
echo $QUALITY% # full text
|
||||
echo $QUALITY% "$W_name" # full text
|
||||
echo $QUALITY% # short text
|
||||
|
||||
# color
|
||||
|
||||
Reference in New Issue
Block a user