aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGravatar Matheus R <matheusrbarros03@gmail.com> 2022-06-03 23:51:39 +0000
committerGravatar Matheus R <matheusrbarros03@gmail.com> 2022-06-03 23:51:39 +0000
commit77710ea62aa6b2c15ed59abafe8041ba44815232 (patch)
treecc3d72305223437e16f09fbe7327dfe860b02b11 /bin
parent4e6b5a9bf59e4f8aa7193a1304191495ee5c2cc9 (diff)
atualização atrasada das dots
Diffstat (limited to 'bin')
-rwxr-xr-xbin/akko_config5
-rwxr-xr-xbin/mouse_kbd12
-rwxr-xr-xbin/wlan5
3 files changed, 18 insertions, 4 deletions
diff --git a/bin/akko_config b/bin/akko_config
index baf06f4..a094bbc 100755
--- a/bin/akko_config
+++ b/bin/akko_config
@@ -3,11 +3,14 @@
pgrep -x xcape && pkill -x xcape
setxkbmap -layout us
+# kills previously running kmonad instance
+pgrep -x kmonad && pkill -x kmonad
+
kbd="/dev/input/by-id/usb-ROYUAN_AKKO_Multi-modes_Keyboard-B-event-kbd"
file="$HOME/.config/kmonad/akko.kbd"
if [ -L "$kbd" ]; then
- kmonad "$file" &
+ kmonad "$file"
else
echo 'keyboard not connected'
fi
diff --git a/bin/mouse_kbd b/bin/mouse_kbd
new file mode 100755
index 0000000..54bf829
--- /dev/null
+++ b/bin/mouse_kbd
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+pgrep -x xbanish && pkill -x xbanish
+pgrep -x xmouseless && pkill -x xmouseless
+
+xmouseless
+
+while [ -n "$(pgrep -x xmouseless)" ]; do
+ echo 'still running' > /dev/null
+done
+
+xbanish &
diff --git a/bin/wlan b/bin/wlan
index 0b59b58..9db99c7 100755
--- a/bin/wlan
+++ b/bin/wlan
@@ -2,12 +2,11 @@
# prints connected SSID name
wlan() {
- station="$(iwctl device list | grep station | awk ' { print $1 } ')"
- essid="$(iwgetid | sed -e 's/ESSID://g' -e 's/\"//g' -e "s:$station::g" -e 's/^\W*/ /g')"
+ essid="$(iwgetid | awk '{print $2}' | sed -e 's/ESSID://g' -e 's/\"//g' -e 's/^\W*/ /g')"
[ -z "$essid" ] && essid=' no link'
- printf "%s" "$essid"
+ printf "%s" " $essid"
}
wlan