kanshi and mouse config
parent
1d08715f79
commit
7d0ff36a37
|
@ -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
|
||||
|
|
|
@ -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 &
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue