From 7a1af797d42799ef239d340eeb4f99a7fc448e2f Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 15 Feb 2025 06:39:41 +0900 Subject: modified bin/remaps --- ar/.local/bin/remaps | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ar/.local/bin/remaps b/ar/.local/bin/remaps index 153ce29..c923fa5 100755 --- a/ar/.local/bin/remaps +++ b/ar/.local/bin/remaps @@ -12,15 +12,11 @@ xinput list | grep 'id=' | while read -r line; do setxkbmap -device "$id" -option setxkbmap -device "$id" -option caps:ctrl_modifier,ctrl:swap_lwin_lctl ;; - *"Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint"*) - setxkbmap -device "$id" -option - setxkbmap -device "$id" -option caps:ctrl_modifier,altwin:menu_win,altwin:swap_lalt_lwin - ;; - *"AT Translated Set 2 keyboard"*) + *"Lite-On Technology Corp. ThinkPad USB Keyboard with TrackPoint"* | *"AT Translated Set 2 keyboard"*) setxkbmap -device "$id" -option setxkbmap -device "$id" -option caps:ctrl_modifier,altwin:menu_win,altwin:swap_lalt_lwin ;; - *"Soomin Im’s Keyboard"*) + *"Magic keyboard"*) setxkbmap -device "$id" -option setxkbmap -device "$id" -option caps:ctrl_modifier ;; @@ -61,6 +57,6 @@ xinput list | grep 'id=' | while read -r line; do done # When left control, caps lock, or Super_L is pressed only once, treat it as escape. killall xcape 2>/dev/null -xcape -e 'Caps_Lock=Escape' #;Control_L=Escape' #;Super_L=Escape' +xcape -e 'Caps_Lock=Escape;Control_L=Escape' #;Super_L=Escape' # Turn off caps lock if on since there is no longer a key for it. xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock -- cgit v1.2.3