scripts - scripts - some useful shell scripts

git clone git://git.bcharge.de/scripts.git

About | Log | Files | Refs

keyboard_settings.sh (463B)


#!/bin/sh

EVENT="$1"
ID="$2"
TYPE="$3"
NAME="$4"

echo $EVENT

if [ "$EVENT" = "XIDeviceEnabled" ] && [ "$TYPE" = "XISlaveKeyboard" ]; then
	#echo "Script executed at $(date)" >> /tmp/keyboard_mouse_setup.log
	# Set keyboard repeat rate
	xset r rate 300 50

	# Set keyboard layout and options
	setxkbmap -layout us,ge -variant de_se_fi,basic -option grp:alt_space_toggle -option caps:super

	# Use xcape to remap Super_L to Escape
	xcape -e 'Super_L=Escape'
fi