mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -05:00
feat: init
This commit is contained in:
commit
96c6f790fc
804 changed files with 33411 additions and 0 deletions
77
modules/home/gui/desktop/river/default.nix
Executable file
77
modules/home/gui/desktop/river/default.nix
Executable file
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes) cursor;
|
||||
configPath = ./config;
|
||||
settingsPath = {
|
||||
spawn = import (configPath + /spawn.nix) { inherit config flake; };
|
||||
map = import (configPath + /map.nix);
|
||||
};
|
||||
in
|
||||
{
|
||||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
rivercarro
|
||||
;
|
||||
};
|
||||
|
||||
services.kanshi = {
|
||||
enable = true;
|
||||
systemdTarget = "river-session.target";
|
||||
};
|
||||
|
||||
wayland.windowManager.river = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
settings = {
|
||||
border-width = 4;
|
||||
declare-mode = [
|
||||
"locked"
|
||||
"normal"
|
||||
"passthrough"
|
||||
];
|
||||
input = {
|
||||
pointer-foo-bar = {
|
||||
accel-profile = "flat";
|
||||
events = true;
|
||||
pointer-accel = -0.3;
|
||||
tap = false;
|
||||
};
|
||||
};
|
||||
rule-add = {
|
||||
"-app-id" = {
|
||||
"'bar'" = "csd";
|
||||
"'float*'" = {
|
||||
"-title" = {
|
||||
"'foo'" = "float";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
set-cursor-warp = "on-output-change";
|
||||
set-repeat = "50 300";
|
||||
map-pointer = {
|
||||
normal = {
|
||||
"Alt BTN_LEFT" = "move-view";
|
||||
"Super BTN_LEFT" = "resize-view";
|
||||
"Super F" = "toggle-float";
|
||||
};
|
||||
};
|
||||
default-layout = "rivercarro";
|
||||
attach-mode = "bottom";
|
||||
map.normal = settingsPath.map;
|
||||
spawn = settingsPath.spawn;
|
||||
};
|
||||
systemd = {
|
||||
enable = true;
|
||||
extraCommands = [
|
||||
"systemctl --user stop river-session.target"
|
||||
"systemctl --user start river-session.target"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue