startkde: initialize kcminputrc if missing
This commit is contained in:
parent
7397dabc98
commit
5ab9ad1ce2
@ -7,7 +7,8 @@ export QML_IMPORT_PATH="$QML_IMPORT_PATH${QML_IMPORT_PATH:+:}@QML_IMPORT_PATH@"
|
|||||||
export QML2_IMPORT_PATH="$QML2_IMPORT_PATH${QML2_IMPORT_PATH:+:}@QML2_IMPORT_PATH@"
|
export QML2_IMPORT_PATH="$QML2_IMPORT_PATH${QML2_IMPORT_PATH:+:}@QML2_IMPORT_PATH@"
|
||||||
|
|
||||||
# Set the default GTK 2 theme
|
# Set the default GTK 2 theme
|
||||||
if [ ! -e $HOME/.gtkrc-2.0 -a -e /run/current-system/sw/share/themes/Breeze/gtk-2.0/gtkrc ]; then
|
if ! [ -e $HOME/.gtkrc-2.0 ] \
|
||||||
|
&& [ -e /run/current-system/sw/share/themes/Breeze/gtk-2.0/gtkrc ]; then
|
||||||
cat >$HOME/.gtkrc-2.0 <<EOF
|
cat >$HOME/.gtkrc-2.0 <<EOF
|
||||||
# Default GTK+ 2 config for NixOS KDE 5
|
# Default GTK+ 2 config for NixOS KDE 5
|
||||||
include "/run/current-system/sw/share/themes/Breeze/gtk-2.0/gtkrc"
|
include "/run/current-system/sw/share/themes/Breeze/gtk-2.0/gtkrc"
|
||||||
@ -21,7 +22,8 @@ gtk-button-images=1
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -e $HOME/.config/gtk-3.0/settings.ini -a -e /run/current-system/sw/share/themes/Breeze/gtk-3.0 ]; then
|
if ! [ -e $HOME/.config/gtk-3.0/settings.ini ] \
|
||||||
|
&& [ -e /run/current-system/sw/share/themes/Breeze/gtk-3.0 ]; then
|
||||||
cat >$HOME/.config/gtk-3.0/settings.ini <<EOF
|
cat >$HOME/.config/gtk-3.0/settings.ini <<EOF
|
||||||
[Settings]
|
[Settings]
|
||||||
gtk-theme-name=Breeze
|
gtk-theme-name=Breeze
|
||||||
@ -99,6 +101,14 @@ fi
|
|||||||
configDir=$(qtpaths --writable-path GenericConfigLocation)
|
configDir=$(qtpaths --writable-path GenericConfigLocation)
|
||||||
mkdir -p "$configDir"
|
mkdir -p "$configDir"
|
||||||
|
|
||||||
|
if ! [ -e $configDir/kcminputrc ]; then
|
||||||
|
cat >$configDir/kcminputrc <<EOF
|
||||||
|
[Mouse]
|
||||||
|
cursorTheme=breeze_cursors
|
||||||
|
cursorSize=0
|
||||||
|
EOF
|
||||||
|
fi
|
||||||
|
|
||||||
THEME=org.kde.breeze
|
THEME=org.kde.breeze
|
||||||
#This is basically setting defaults so we can use them with kstartupconfig5
|
#This is basically setting defaults so we can use them with kstartupconfig5
|
||||||
#We cannot set the equivilant of THEME here as it will generate an
|
#We cannot set the equivilant of THEME here as it will generate an
|
||||||
|
Loading…
x
Reference in New Issue
Block a user