7 lines
92 B

#!/bin/sh
if [ -n "$DISPLAY" ]; then
setxkbmap -layout gb
else
sudo loadkeys -u -q gb
fi