Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ modulesPath, config, lib, pkgs, ... }: let | ||
|
||
# Shell script which invokes gsettings with the schemas for maliit-keyboard set. | ||
schema-path = "${pkgs.maliit-keyboard}/share/gsettings-schemas/maliit-keyboard-2.3.1/glib-2.0/schemas"; # todo: derivation that just gets the schema path inside of this. right now it hardcodes the kb version... | ||
gsettings-maliit = pkgs.writeShellScriptBin "gsettings-maliit" '' | ||
# usage suggestion: gsettings-maliit list-recursively | ||
env GSETTINGS_SCHEMA_DIR=$GSETTINGS_SCHEMA_DIR:${schema-path} ${pkgs.glib.bin}/bin/gsettings "$@" | ||
''; | ||
|
||
dconf-editor-maliit = pkgs.writeShellScriptBin "dconf-editor-maliit" '' | ||
env GSETTINGS_SCHEMA_DIR=$GSETTINGS_SCHEMA_DIR:${schema-path} ${pkgs.gnome.dconf-editor}/bin/dconf-editor ${schema-path} --I-understand-that-changing-options-can-break-applications "$@" | ||
''; | ||
|
||
maliit-apply-viv-settings = pkgs.writeShellScriptBin "maliit-apply-viv-settings" '' | ||
# these don't seem to really work yet | ||
${gsettings-maliit}/bin/gsettings-maliit set org.maliit.keyboard.maliit auto-capitalization false | ||
${gsettings-maliit}/bin/gsettings-maliit set org.maliit.keyboard.maliit opacity 0.7 | ||
${gsettings-maliit}/bin/gsettings-maliit set org.maliit.keyboard.maliit plugin-paths ${maliit-keyboard}/lib/maliit/plugins # gsettings can only set an entire array at once, put in quotes and quare brackets and single quotes | ||
''; | ||
|
||
in { | ||
environment.systemPackages = with pkgs; [ | ||
maliit-keyboard # onscreen keyboard, integrates with plasma nicely | ||
gsettings-maliit | ||
dconf-editor-maliit | ||
]; | ||
|
||
system.activationScripts.configureMaliit = pkgs.lib.stringAfter [ "var" ] '' | ||
# todo apply some settings here? if it makes sense to do it globally? | ||
''; | ||
} | ||
|