Skip to content

Commit

Permalink
convert ro/se from xkb to keylayout
Browse files Browse the repository at this point in the history
  • Loading branch information
andreineculau committed Nov 10, 2021
1 parent 465aedc commit 46f61f3
Show file tree
Hide file tree
Showing 6 changed files with 2,746 additions and 0 deletions.
19 changes: 19 additions & 0 deletions xkb-ubuntu-20.04-keylayout-ro/install-system.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
set -eu

dir_from=$(dirname "$0")
dir_to="/Library/Keyboard Layouts"
layout="ro"

OPTIND=1

while getopts "d:i:l:" opt; do
case "$opt" in
d|i) dir_from="$OPTARG";;
o) dir_to="$OPTARG";;
l) layout="$OPTARG";;
*) exit 1;;
esac
done

cp "$dir_from/$layout"*.keylayout "$dir_to"
19 changes: 19 additions & 0 deletions xkb-ubuntu-20.04-keylayout-ro/install-user.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/sh
set -eu

dir_from=$(dirname "$0")
dir_to="$HOME/Library/Keyboard Layouts"
layout="ro"

OPTIND=1

while getopts "d:i:l:" opt; do
case "$opt" in
d|i) dir_from="$OPTARG";;
o) dir_to="$OPTARG";;
l) layout="$OPTARG";;
*) exit 1;;
esac
done

cp "$dir_from/$layout"*.keylayout "$dir_to"
Loading

0 comments on commit 46f61f3

Please sign in to comment.