diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-03 04:44:06 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-02-03 04:44:06 +0900 |
| commit | a9d8db2a4c935bdcbb2f1b0bf208accbabc5cd4c (patch) | |
| tree | f3763b93b4497cc560ec55536b0b1a8cad8ebef2 /ar | |
| parent | b0854da908654a679e0d98b48d61157ccef2e538 (diff) | |
modified statusbar/sb-keyboard
Diffstat (limited to 'ar')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-keyboard | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ar/.local/bin/statusbar/sb-keyboard b/ar/.local/bin/statusbar/sb-keyboard index 3d9383d..34fa2bc 100755 --- a/ar/.local/bin/statusbar/sb-keyboard +++ b/ar/.local/bin/statusbar/sb-keyboard @@ -4,17 +4,18 @@ # requirements: dmenu, xorg-setxkbmap case $BLOCK_BUTTON in 1) fcitx5-remote -t && kill -44 "$(pidof "${STATUSBAR:-dwmblocks}")" ;; -2) +2) remaps ;; +3) notify-send "⌨️ Input Method module" "\- Shows current input method (defalt US) +- Left click to switch language (EN/KO) +- Middle click to change keyboard" ;; +6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; +7) kb_choice="$(awk '/! layout/{flag=1; next} /! variant/{flag=0} flag {print $2, "- " $1}' /usr/share/X11/xkb/rules/base.lst | dmenu -l 15)" [ -z "$kb_choice" ] && exit 0 kb="$(echo "$kb_choice" | awk '{print $3}')" setxkbmap "$kb" pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" ;; -3) notify-send "⌨️ Input Method module" "\- Shows current input method (defalt US) -- Left click to switch language (EN/KO) -- Middle click to change keyboard" ;; -6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac method=$(dbus-send --print-reply --dest=org.fcitx.Fcitx5 \ |
