mirror of
https://github.com/flynx/post-install.git
synced 2025-10-29 02:30:08 +00:00
fixed an issue with keyd...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
16e905342b
commit
c2acd692f9
27
post-install
27
post-install
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/env bash
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# TODO:
|
# TODO:
|
||||||
@ -450,7 +450,8 @@ function feature-vim(){
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# see:
|
# see:
|
||||||
# https://github.com/rvaiya/keyd
|
# https://github.com/rvaiya/keyd
|
||||||
function feature-keyd(){ (
|
# XXX copy config: /etc/keyd/<keyboard-id>.conf...
|
||||||
|
function feature-keyd-source(){ (
|
||||||
@ mkdir -p ~/work/EXTERNAL
|
@ mkdir -p ~/work/EXTERNAL
|
||||||
@ cd ~/work/EXTERNAL
|
@ cd ~/work/EXTERNAL
|
||||||
if ! [ -d keyd ] ; then
|
if ! [ -d keyd ] ; then
|
||||||
@ -462,8 +463,26 @@ function feature-keyd(){ (
|
|||||||
@ sudo systemctl enable keyd \
|
@ sudo systemctl enable keyd \
|
||||||
&& @ sudo systemctl start keyd
|
&& @ sudo systemctl start keyd
|
||||||
|
|
||||||
# XXX copy config: /etc/keyd/<keyboard-id>.conf...
|
) }
|
||||||
|
function feature-keyd(){ (
|
||||||
|
@ sudo dnf copr enable alternateved/keyd
|
||||||
|
@ sudo dnf install keyd
|
||||||
|
) }
|
||||||
|
function feature-keyd-quirk(){ (
|
||||||
|
local QUIRKS_FILE=/etc/libinput/local-overrides.quirks
|
||||||
|
# check if already installed...
|
||||||
|
if [ -e "$QUIRKS_FILE" ] \
|
||||||
|
&& grep -q '\[keyd\]' "$QUIRKS_FILE" ; then
|
||||||
|
echo "File \"$QUIRKS_FILE\" already exists and contains \"[keyd]\" section, aborting." 1>&2
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
# install...
|
||||||
|
cat <<-EOF | sudo tee -a "$QUIRKS_FILE" > /dev/null
|
||||||
|
[keyd]
|
||||||
|
MatchUdevType=keyboard
|
||||||
|
MatchName=keyd virtual keyboard
|
||||||
|
AttrKeyboardIntegration=internal
|
||||||
|
EOF
|
||||||
) }
|
) }
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user