summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-15 06:39:41 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-15 06:39:41 +0900
commit7a1af797d42799ef239d340eeb4f99a7fc448e2f (patch)
tree5f2c372bc3d6f1aa133b1389af3c587ca9ef8f50
parent2f3ae9baf2f695570afead75582b2fdfbde62392 (diff)
modified bin/remaps
-rwxr-xr-xar/.local/bin/remaps10
1 files 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