mirror of
https://github.com/flynx/post-install.git
synced 2025-12-26 13:11:59 +00:00
Compare commits
No commits in common. "c2acd692f9e8edccd8c3e6177a5dd69dd681c466" and "fcbf39d3d88db59fdf177728aa2f64d4c1e5e623" have entirely different histories.
c2acd692f9
...
fcbf39d3d8
30
post-install
30
post-install
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/bash
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# TODO:
|
# TODO:
|
||||||
@ -450,8 +450,7 @@ function feature-vim(){
|
|||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
# see:
|
# see:
|
||||||
# https://github.com/rvaiya/keyd
|
# https://github.com/rvaiya/keyd
|
||||||
# XXX copy config: /etc/keyd/<keyboard-id>.conf...
|
function feature-keyd(){ (
|
||||||
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
|
||||||
@ -463,26 +462,8 @@ function feature-keyd-source(){ (
|
|||||||
@ 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
|
|
||||||
) }
|
) }
|
||||||
|
|
||||||
|
|
||||||
@ -571,9 +552,6 @@ function feature-gnome(){
|
|||||||
@ gsettings set org.gnome.desktop.wm.preferences visual-bell true
|
@ gsettings set org.gnome.desktop.wm.preferences visual-bell true
|
||||||
@ gsettings set org.gnome.desktop.wm.preferences visual-bell-type frame-flash
|
@ gsettings set org.gnome.desktop.wm.preferences visual-bell-type frame-flash
|
||||||
|
|
||||||
# per window input selection...
|
|
||||||
@ gsettings set org.gnome.desktop.input-sources.per-window true
|
|
||||||
|
|
||||||
# swap language with alt-shift...
|
# swap language with alt-shift...
|
||||||
# NOTE: with the way the gui is setup not this is not possible to set there...
|
# NOTE: with the way the gui is setup not this is not possible to set there...
|
||||||
@ gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Alt>Shift_L']"
|
@ gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Alt>Shift_L']"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user