-
Notifications
You must be signed in to change notification settings - Fork 0
/
xcapes
executable file
·30 lines (26 loc) · 905 Bytes
/
xcapes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#dependencies: xmodmap xcape
# Known issues:
# After system update script needs to be called again.
# clear mappings
setxkbmap -option grp:switch,grp:shifts_toggle,grp_led:caps us,de
echo "Keyboard options: shift keys together toggle us,de and use CapsLock LED as indicator for de"
# do the magic
# 2023-09-11 REPLACED WITH keyd
#xmodmap -e 'clear Lock'
#xmodmap -e 'keycode 66 = Control_L'
#xmodmap -e 'add Control = Control_L'
## make fake esc key to be mapped with xcape
#xmodmap -e 'keycode 999 = Escape'
#xcape -e 'Control_L=Escape'
#echo "CapsLock remapped to Control/Escape"
# remap page up/down to page back / forward
#xmodmap -e 'XF86Forward = keycode 117'
#xmodmap -e 'XF86Back = keycode 112'
#echo "Remapped Pageup/down to Back and Forward"
if pgrep -x xfce-polkit >/dev/null; then
echo "polkit already running"
else
/usr/lib/xfce-polkit/xfce-polkit &
echo started polkit
fi