Use plasma-manager lib for configuring touchpads

Move bluedevilglobalrc config to be machine-specific (bluetooth off at
startup on laptops, on at startup on desktops, only specified if
machine has bluetooth capability)
This commit is contained in:
Evie Litherland-Smith 2024-08-06 15:00:54 +01:00
parent 402a0cf273
commit 8e9986ab12
4 changed files with 37 additions and 7 deletions

View file

@ -1,12 +1,25 @@
{ config, lib, ... }:
{ ... }:
{
imports = [
./personal.nix
./desktop/plasma/default.nix
];
programs.plasma = lib.mkIf config.programs.plasma.enable {
programs.plasma = {
input.touchpads = [
{
disableWhileTyping = true;
enable = true;
leftHanded = false;
middleMouseEmulation = true;
name = "SYNA32AA:00 06CB:CE17 Touchpad";
naturalScroll = true;
productId = "52759";
tapToClick = true;
vendorId = "1739";
}
];
configFile = {
kcminputrc."Libinput/1739/52759/SYNA32AA:00 06CB:CE17 Touchpad".NaturalScroll = true;
bluedevilglobalrc.Global.launchState.value = "disable";
};
};
}

View file

@ -1,12 +1,25 @@
{ config, lib, ... }:
{ ... }:
{
imports = [
./work.nix
./desktop/plasma/default.nix
];
programs.plasma = lib.mkIf config.programs.plasma.enable {
programs.plasma = {
input.touchpads = [
{
disableWhileTyping = true;
enable = true;
leftHanded = false;
middleMouseEmulation = true;
name = "DELL0A21:00 0488:1024 Touchpad";
naturalScroll = true;
productId = "4132";
tapToClick = true;
vendorId = "1160";
}
];
configFile = {
kcminputrc."Libinput/1160/4132/DELL0A21:00 0488:1024 Touchpad".NaturalScroll = true;
bluedevilglobalrc.Global.launchState.value = "disable";
};
};
}

View file

@ -6,6 +6,11 @@
./streaming/default.nix
./desktop/plasma/default.nix
];
programs.plasma = {
configFile = {
bluedevilglobalrc.Global.launchState.value = "enable";
};
};
xdg.configFile = {
"autostart/signal-desktop.desktop".source = "${pkgs.signal-desktop}/share/applications/signal-desktop.desktop";
"autostart/com.github.eneshecan.WhatsAppForLinux.desktop".source = "${pkgs.whatsapp-for-linux}/share/applications/com.github.eneshecan.WhatsAppForLinux.desktop";

View file

@ -203,7 +203,6 @@
configFile = {
baloofilerc."Basic Settings"."Indexing-Enabled" = false;
bluedevilglobalrc.Global.launchState.value = "enable";
kcminputrc.Keyboard.NumLock = 1;
plasmanotifyrc = {
Notifications = {