#!/bin/sh # xmodmap not packaged? use xpra container instead set_via_container() { display=${DISPLAY#:} xsession_cookie="$(xauth list $DISPLAY)" || exit $? xsession_cookie=${xsession_cookie##* } || exit $? s6-sudo /run/cmd.s link xsession.$display.$USER xpra.$USER tmp/.X11-unix/X$display || exit $? exec s6-sudo /run/inbox/xpra.$USER/run/exec/x11 "$display" "$xsession_cookie" xkb } set_via_container setxkbmap \ -model thinkpad \ -option terminate:ctrl_alt_bksp \ -option caps:ctrl_modifier \ -option compose:ralt \ -option grp:shift_toggle \ -option grp_led:scroll \ us,cz ,qwerty xmodmap ~/.config/ccx.xmodmap