From 7d0ff36a377af6b0fe3abdfbb130a72dbd0256c4 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 29 Jan 2023 19:59:36 +0100 Subject: [PATCH] kanshi and mouse config --- home/desktop-river/default.nix | 12 ++++++++++-- home/desktop-river/init | 8 ++++++++ home/desktop-river/kanshi.nix | 30 ++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 home/desktop-river/kanshi.nix diff --git a/home/desktop-river/default.nix b/home/desktop-river/default.nix index fe0dffb..bb1dcad 100644 --- a/home/desktop-river/default.nix +++ b/home/desktop-river/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, ... }: +{ config, pkgs, stablePkgs, ... }: let configure-gtk = let @@ -15,7 +15,14 @@ let ${gsettings} set org.gnome.desktop.wm.preferences button-layout "" ''; in { - imports = [ ./bemenu.nix ./waybar.nix ./foot.nix ./mako.nix ./swaylock.nix ]; + imports = [ + ./bemenu.nix + ./waybar.nix + ./foot.nix + ./mako.nix + ./swaylock.nix + ./kanshi.nix + ]; home.packages = with pkgs; [ configure-gtk @@ -25,6 +32,7 @@ in { pamixer playerctl river + kile-wl swaybg wl-clipboard wtype diff --git a/home/desktop-river/init b/home/desktop-river/init index a3b572c..2f06644 100644 --- a/home/desktop-river/init +++ b/home/desktop-river/init @@ -165,7 +165,15 @@ riverctl spawn "configure-gtk" BG="$(find "$WALLPAPERS" -type f | shuf -n 1)" riverctl spawn "swaybg --image $BG --mode fill" +trackball_name="pointer-21298-5120-Clearly_Superior_Technologies._CST_Laser_Trackball" +riverctl input "$trackball_name" left-handed enabled +riverctl input "$trackball_name" pointer-accel -0.8 + # Set the default layout generator to be rivertile and start it. # River will send the process group of the init executable SIGTERM on exit. riverctl default-layout rivertile rivertile -view-padding 0 -outer-padding 0 & + +kanshi & +gotify-desktop & +nm-applet --indicator & diff --git a/home/desktop-river/kanshi.nix b/home/desktop-river/kanshi.nix new file mode 100644 index 0000000..fe90c74 --- /dev/null +++ b/home/desktop-river/kanshi.nix @@ -0,0 +1,30 @@ +{ config, pkgs, ... }: + +{ + home.packages = with pkgs; [ kanshi ]; + + services.kanshi = { + enable = true; + profiles = { + standalone = { + outputs = [{ + criteria = "LVDS-1"; + mode = "1366x768@60Hz"; + status = "enable"; + }]; + }; + docked = { + outputs = [ + { + criteria = "LVDS-1"; + status = "disable"; + } + { + criteria = "BNQ BenQ GW2780 L9K0033101Q"; + mode = "1920x1080@60Hz"; + } + ]; + }; + }; + }; +}