kanshi and mouse config

feat/kile-v2
Ricard Illa 2023-01-29 19:59:36 +01:00
parent 1d08715f79
commit 7d0ff36a37
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
3 changed files with 48 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, stablePkgs, ... }:
let let
configure-gtk = let configure-gtk = let
@ -15,7 +15,14 @@ let
${gsettings} set org.gnome.desktop.wm.preferences button-layout "" ${gsettings} set org.gnome.desktop.wm.preferences button-layout ""
''; '';
in { 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; [ home.packages = with pkgs; [
configure-gtk configure-gtk
@ -25,6 +32,7 @@ in {
pamixer pamixer
playerctl playerctl
river river
kile-wl
swaybg swaybg
wl-clipboard wl-clipboard
wtype wtype

View File

@ -165,7 +165,15 @@ riverctl spawn "configure-gtk"
BG="$(find "$WALLPAPERS" -type f | shuf -n 1)" BG="$(find "$WALLPAPERS" -type f | shuf -n 1)"
riverctl spawn "swaybg --image $BG --mode fill" 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. # Set the default layout generator to be rivertile and start it.
# River will send the process group of the init executable SIGTERM on exit. # River will send the process group of the init executable SIGTERM on exit.
riverctl default-layout rivertile riverctl default-layout rivertile
rivertile -view-padding 0 -outer-padding 0 & rivertile -view-padding 0 -outer-padding 0 &
kanshi &
gotify-desktop &
nm-applet --indicator &

View File

@ -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";
}
];
};
};
};
}