aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xi3blocks/i3internet.sh5
-rwxr-xr-xsystemControl.sh3
-rwxr-xr-xxinit.sh2
3 files changed, 6 insertions, 4 deletions
diff --git a/i3blocks/i3internet.sh b/i3blocks/i3internet.sh
index 3e63276..e9eb154 100755
--- a/i3blocks/i3internet.sh
+++ b/i3blocks/i3internet.sh
@@ -31,10 +31,11 @@ if [ -n "$wifiDev" ]; then
#cut -d' ' -f6)) ($(egrep "^\s*w" /proc/net/wireless |
#awk '{print int($3 * 100 / 70)"%"}'))"
# with name
+ quality="$(grep -E '^\s*w' /proc/net/wireless | awk '{print int($3 * 100 / 70)"%"}')"
+ echo "$quality" | grep -q '100' && quality='100'
wifi="$tick <span color='#79ff79'>$(nmcli |
grep -F "$wifiDev: connected to " |
- cut -d' ' -f4-) ($(grep -E '^\s*w' /proc/net/wireless |
- awk '{print int($3 * 100 / 70)"%"}'))</span>"
+ cut -d' ' -f4-) (${quality})</span>"
fi
fi
diff --git a/systemControl.sh b/systemControl.sh
index 1bd09d4..a751588 100755
--- a/systemControl.sh
+++ b/systemControl.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# A dmenu prompt script to control system functions.
-options="lock\nreboot\nshutdown\nsuspend\nhibernate\nexit i3"
+options="lock\nreboot\nshutdown\nsuspend\nhibernate\nexit i3\nexit bspwm"
chosen=$(echo -e "$options" | dmenu -p ">_")
@@ -12,4 +12,5 @@ case "$chosen" in
"suspend") systemctl suspend ;;
"hibernate") ~/scripts/prompt.sh Hibernate? "systemctl hibernate" ;;
"exit i3") ~/scripts/prompt.sh "Exit i3? (ends X session)" "i3-msg exit" ;;
+ "exit bspwm") ~/scripts/prompt.sh "Exit bspwm? (ends X session)" "bspc quit" ;;
esac
diff --git a/xinit.sh b/xinit.sh
index 91e0cb8..f519592 100755
--- a/xinit.sh
+++ b/xinit.sh
@@ -4,10 +4,10 @@
xrdb ~/.Xresources
pgrep -x picom || picom -b
pgrep -x dunst || dunst &
-setRandomBG.sh
setxkbmap -layout es -option caps:swapescape
xset -b
pgrep -x unclutter || unclutter --idle 1 &
#touchpad.sh
initialLayout.sh
+setRandomBG.sh
pgrep -x sxhkd || sxhkd >~/logs/sxhkd.log &