Add compose key customization
This commit is contained in:
parent
1af70b8f1c
commit
07e4884945
5 changed files with 17 additions and 3 deletions
11
.set_compose_key.sh
Executable file
11
.set_compose_key.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
# Since all keyboards does not include the same keys, the compose key
|
||||||
|
# should be customized. In order to achieve that, this script requires
|
||||||
|
# a symbolic link to point to a file containing the name of the key that
|
||||||
|
# will be used as a compose key.
|
||||||
|
|
||||||
|
COMPOSE_KEY_FILE="$HOME/compose_key"
|
||||||
|
|
||||||
|
if [ -f "$COMPOSE_KEY_FILE" ]; then
|
||||||
|
COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE")
|
||||||
|
setxkbmap -option "compose:$COMPOSE_KEY"
|
||||||
|
fi
|
|
@ -1,9 +1,7 @@
|
||||||
[ -f /etc/xprofile ] && . /etc/xprofile
|
[ -f /etc/xprofile ] && . /etc/xprofile
|
||||||
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
[ -f ~/.Xresources ] && xrdb -merge ~/.Xresources
|
||||||
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
|
[ -f ~/.setpath.sh ] && . ~/.setpath.sh
|
||||||
|
[ -f ~/.set_compose_key.sh ] && . ~/.set_compose_key.sh
|
||||||
setxkbmap -option compose:rwin
|
|
||||||
setxkbmap -option compose:menu
|
|
||||||
|
|
||||||
hash xcompmgr 2>/dev/null && xcompmgr &
|
hash xcompmgr 2>/dev/null && xcompmgr &
|
||||||
hash xscreensaver 2>/dev/null && xscreensaver -no-splash &
|
hash xscreensaver 2>/dev/null && xscreensaver -no-splash &
|
||||||
|
|
3
.zshrc
3
.zshrc
|
@ -50,6 +50,9 @@ pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1 && export SSH_AGENT_PID=$(pgrep
|
||||||
# Aliases
|
# Aliases
|
||||||
[ -f "$HOME/.aliases" ] && . "$HOME/.aliases"
|
[ -f "$HOME/.aliases" ] && . "$HOME/.aliases"
|
||||||
|
|
||||||
|
# Compose key
|
||||||
|
[ -f ~/.set_compose_key.sh ] && . ~/.set_compose_key.sh
|
||||||
|
|
||||||
# Pew
|
# Pew
|
||||||
hash pew 2>/dev/null && source $(pew shell_config)
|
hash pew 2>/dev/null && source $(pew shell_config)
|
||||||
|
|
||||||
|
|
1
compose/menu
Normal file
1
compose/menu
Normal file
|
@ -0,0 +1 @@
|
||||||
|
menu
|
1
compose/rwin
Normal file
1
compose/rwin
Normal file
|
@ -0,0 +1 @@
|
||||||
|
rwin
|
Loading…
Reference in a new issue