forked from antoniotrkdz/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xsessionrc
executable file
·47 lines (36 loc) · 1.22 KB
/
.xsessionrc
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
##Method with xkb (not working...yet)
## Requires two files:
## .config/xkb/keycodes/my-keycodes:
#xkb_keycodes "xcape-special" {
# <LWIN> = 65;
# <SPCE> = 133;
#};
## And .config/xkb/symbols/my-symbols
#xkb_symbols "xcape-special" {
# key <LWIN> { [ Super_L ] };
# modifier_map Control { <LWIN> };
#};
## Leave here
#XKB_DIR="$HOME/.config/xkb"
#XKB_SYMBOL_FILE="my-symbols"
#XKB_KEYCODE_FILE="my-keycodes"
#setxkbmap -layout "us+$XKB_SYMBOL_FILE(xcape-special)" \
# -keycodes "evdev+$XKB_KEYCODE_FILE(xcape-special)" \
# -option "" -print \
# | xkbcomp -I"$XKB_DIR" - "${DISPLAY%%.*}" >/dev/null 2>&1
#xcape -e "Super_L=space"
## Method with xmodmap (works)
## This file depends on settings in .xmodmaprc
#xmodmap ~/.xmodmaprc ## Could be run here or in the DE session manager
## Use spacebar as a modifier (in .i3/config set mod3)
#spare_modifier="Hyper_L"
#xmodmap -e "keycode 65=$spare_modifier"
#xmodmap -e "add Hyper_L=$spare_modifier"
#xmodmap -e "keycode any=space"
#xcape -e "$spare_modifier=space"
## Use Spacebar as a Modifier (ALTERNATIVE CONFIGURATION)
## No need for separate .xmodmaprc file
xmodmap -e "keycode 65=Super_L"
xmodmap -e "keycode any=space"
xcape -e "Super_L=space"