mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
keymaps/install.sh: update
This commit is contained in:
parent
1afa3ccc5d
commit
051f7b199a
1 changed files with 7 additions and 2 deletions
|
|
@ -1,8 +1,13 @@
|
|||
#!/bin/bash
|
||||
BASE_PATH=$(dirname $(readlink -f $BASH_SOURCE))
|
||||
|
||||
cat $BASE_PATH/pnx-us-se.map | gzip | sudo tee /usr/share/kbd/keymaps/i386/qwerty/pnx-us-se.map.gz > /dev/null
|
||||
VC_DIR=/usr/share/kbd/keymaps/i386/qwerty
|
||||
if [ ! -d "$VC_DIR" ];then
|
||||
VC_DIR=/usr/lib/kbd/keymaps/xkb
|
||||
fi
|
||||
|
||||
cat $BASE_PATH/pnx-us-se.map | gzip | sudo tee ${VC_DIR}/pnx-us-se.map.gz > /dev/null
|
||||
ln -sfr $(realpath $BASE_PATH/../xkb) $HOME/.config/
|
||||
|
||||
sudo localectl --no-convert set-keymap pnx-us-se
|
||||
sudo localectl --no-convert set-x11-keymap pnx-us-se
|
||||
sudo localectl --no-convert set-keymap pnx-us-se
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue