more fht stuff
This commit is contained in:
parent
ae371d86d9
commit
182426f2d8
2 changed files with 88 additions and 82 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
programs.dms-shell = {
|
programs.dms-shell = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = false;
|
systemd.enable = false;
|
||||||
|
enableVPN = false;
|
||||||
enableClipboardPaste = false;
|
enableClipboardPaste = false;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
{ inputs, pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
let
|
||||||
|
filename = "fht-compositor.toml";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [ inputs.fht-compositor.nixosModules.default ];
|
imports = [ inputs.fht-compositor.nixosModules.default ];
|
||||||
programs.fht-compositor =
|
environment.etc.${filename}.source = (pkgs.formats.toml { }).generate "config.toml" {
|
||||||
let
|
|
||||||
config = {
|
|
||||||
autostart = [ "dms run" ];
|
autostart = [ "dms run" ];
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
focus-follows-mouse = true;
|
focus-follows-mouse = true;
|
||||||
inner-gaps = 10;
|
inner-gaps = 10;
|
||||||
outer-gaps = 30;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
decorations = {
|
decorations = {
|
||||||
|
|
@ -25,10 +25,15 @@
|
||||||
Super-f = "fullscreen-focused-window";
|
Super-f = "fullscreen-focused-window";
|
||||||
Super-Ctrl-q = "quit";
|
Super-Ctrl-q = "quit";
|
||||||
Super-Ctrl-r = "reload-config";
|
Super-Ctrl-r = "reload-config";
|
||||||
|
|
||||||
Super-t = {
|
Super-t = {
|
||||||
action = "run-command";
|
action = "run-command";
|
||||||
arg = "ptyxis";
|
arg = "ptyxis";
|
||||||
};
|
};
|
||||||
|
Super-e = {
|
||||||
|
action = "run-command";
|
||||||
|
arg = "nautilus";
|
||||||
|
};
|
||||||
|
|
||||||
Super-Down = {
|
Super-Down = {
|
||||||
action = "change-window-proportion";
|
action = "change-window-proportion";
|
||||||
|
|
@ -80,8 +85,8 @@
|
||||||
size = 24;
|
size = 24;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
|
||||||
{
|
programs.fht-compositor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package =
|
package =
|
||||||
inputs.fht-compositor.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs
|
inputs.fht-compositor.packages.${pkgs.stdenv.hostPlatform.system}.default.overrideAttrs
|
||||||
|
|
@ -90,7 +95,7 @@
|
||||||
|
|
||||||
postInstall = (old.postInstall or "") + ''
|
postInstall = (old.postInstall or "") + ''
|
||||||
wrapProgram $out/bin/fht-compositor \
|
wrapProgram $out/bin/fht-compositor \
|
||||||
--add-flags "-c ${(pkgs.formats.toml { }).generate "config.toml" config}"
|
--add-flags "-c /etc/${filename}"
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue