diff options
author | Thomas Tuegel <ttuegel@gmail.com> | 2016-11-14 21:07:26 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@gmail.com> | 2016-11-15 07:21:41 -0600 |
commit | 5ab9ad1ce274bf7c4db75eb049b567f39750338f (patch) | |
tree | ef95a264d34566e250be1019592c60d95ebe74d1 /pkgs/desktops | |
parent | 7397dabc981eacb6069c447a8c56739846c84ee7 (diff) |
startkde: initialize kcminputrc if missing
Diffstat (limited to 'pkgs/desktops')
-rwxr-xr-x | pkgs/desktops/kde-5/plasma/startkde/startkde.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/desktops/kde-5/plasma/startkde/startkde.sh b/pkgs/desktops/kde-5/plasma/startkde/startkde.sh index d3b460f966b67..63c62f12321e8 100755 --- a/pkgs/desktops/kde-5/plasma/startkde/startkde.sh +++ b/pkgs/desktops/kde-5/plasma/startkde/startkde.sh @@ -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@" # 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 # Default GTK+ 2 config for NixOS KDE 5 include "/run/current-system/sw/share/themes/Breeze/gtk-2.0/gtkrc" @@ -21,7 +22,8 @@ gtk-button-images=1 EOF 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 [Settings] gtk-theme-name=Breeze @@ -99,6 +101,14 @@ fi configDir=$(qtpaths --writable-path GenericConfigLocation) mkdir -p "$configDir" +if ! [ -e $configDir/kcminputrc ]; then + cat >$configDir/kcminputrc <<EOF +[Mouse] +cursorTheme=breeze_cursors +cursorSize=0 +EOF +fi + THEME=org.kde.breeze #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 |