diff --git a/hosts/x-home.nix b/hosts/x-home.nix index 8e6ffd8..2d983e8 100644 --- a/hosts/x-home.nix +++ b/hosts/x-home.nix @@ -53,6 +53,22 @@ enable = true; settings = { bar.position = "top"; + bar.widgets = { + left = [ + { id = "Workspace"; } + { id = "SystemMonitor"; } + ]; + center = [ + { id = "Clock"; } + ]; + right = [ + { id = "Tray"; drawerEnabled = false; } + { id = "Battery"; } + { id = "Volume"; } + { id = "Brightness"; } + { id = "ControlCenter"; } + ]; + }; colorSchemes.darkMode = true; }; }; diff --git a/hosts/x.nix b/hosts/x.nix index 647f134..e96c392 100644 --- a/hosts/x.nix +++ b/hosts/x.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, unstable, ... }: +{ config, lib, pkgs, unstable, ... }: { services.displayManager.defaultSession = "niri"; @@ -19,6 +19,30 @@ services.dbus.packages = [ pkgs.iio-sensor-proxy ]; systemd.packages = [ pkgs.iio-sensor-proxy ]; + environment.etc."libinput/local-overrides.quirks".text = '' + [Chuwi Minibook Touchpad] + # Match the specific Chuwi device ID + MatchVendor=0911 + MatchProduct=5288 + + # 1. FORCE FLAT ACCELERATION + # This disables the "adaptive" profile that causes jumping. + # Flat means 1:1 mouse movement. No amplification of noise. + AttrAccelerationProfile=flat + + # 2. DISABLE CLICKFINGER + # Often causes "bouncing" or accidental clicks if both methods are on. + # We will rely on Button Areas (physical corners) or Tap (if enabled later). + AttrClickMethod=clickfinger + AttrTapButtonMap=1,3,0 + + # 3. ENSURE PALM DETECTION IS ACTIVE + AttrPalmDetection=true + + # 4. ENSURE DISABLE WHILE TYPING IS ACTIVE + AttrDisableWhileTyping=true + ''; + # Allow brightnessctl to control backlight without sudo services.udev.packages = [ pkgs.brightnessctl ]; users.users.jgarr.extraGroups = [ "video" ]; diff --git a/packages.txt b/packages.txt index 3b4a61a..f1f4b90 100644 --- a/packages.txt +++ b/packages.txt @@ -56,6 +56,7 @@ tuc upterm viddy xclip +wl-clipboard yq zoxide gettext @@ -126,6 +127,9 @@ krita blender pinta +# Notes / Scratchpad +iotas + # Gaming steam bottles