Skip to content

Instantly share code, notes, and snippets.

@naoki-mizuno
Created May 15, 2018 11:50
Show Gist options
  • Save naoki-mizuno/313014e4473f32e319ed7a6e4f524c75 to your computer and use it in GitHub Desktop.
Save naoki-mizuno/313014e4473f32e319ed7a6e4f524c75 to your computer and use it in GitHub Desktop.
SandS startup script
#!/bin/bash
if [[ -n $REMOTEHOST ]] || [[ -n $SSH_CONNECTION ]]; then
exit
fi
if [ -n "$( ps aux | grep -v grep | grep xcape )" ]; then
# xmodmap -e 'keycode 49=Escape asciitilde'
# xmodmap -e 'keycode 9=grave Escape'
killall xcape
fi
xmodmap -e 'keycode 255=space'
xmodmap -e 'keycode 65=Shift_L'
xcape -e '#65=space'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment