mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Added autotiling
This commit is contained in:
parent
be58607648
commit
afaa1d11fc
2 changed files with 9 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
modifier = config.wayland.windowManager.sway.config.modifier;
|
modifier = config.wayland.windowManager.sway.config.modifier;
|
||||||
|
|
@ -63,7 +63,7 @@ in
|
||||||
|
|
||||||
floating.border = 0;
|
floating.border = 0;
|
||||||
window.border= 0;
|
window.border= 0;
|
||||||
|
|
||||||
keybindings = lib.mkOptionDefault {
|
keybindings = lib.mkOptionDefault {
|
||||||
"${modifier}+q" = "kill";
|
"${modifier}+q" = "kill";
|
||||||
"Print" = "exec grim ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png";
|
"Print" = "exec grim ~/Pictures/screenshot-$(date +'%Y%m%d-%H%M%S').png";
|
||||||
|
|
@ -78,6 +78,7 @@ in
|
||||||
for_window [app_id="one.alynx.showmethekey" title="Floating Window - Show Me The Key"] {
|
for_window [app_id="one.alynx.showmethekey" title="Floating Window - Show Me The Key"] {
|
||||||
floating enable
|
floating enable
|
||||||
sticky enable
|
sticky enable
|
||||||
}
|
}
|
||||||
|
exec_always ${pkgs.autotiling}/bin/autotiling
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
{ pkgs, lib, config, ... }:
|
{ pkgs, lib, config, ... }:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
let
|
let
|
||||||
cfg = config.modules.gui;
|
cfg = config.modules.gui;
|
||||||
|
|
||||||
in
|
in
|
||||||
{ options.modules.gui = { enable = mkEnableOption "gui"; };
|
{ options.modules.gui = { enable = mkEnableOption "gui"; };
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; };
|
wayland.windowManager.sway = import ./config/sway.nix { inherit pkgs config lib; };
|
||||||
|
|
@ -26,12 +26,13 @@ in
|
||||||
|
|
||||||
programs.btop.enable = true;
|
programs.btop.enable = true;
|
||||||
fonts.fontconfig.enable = true;
|
fonts.fontconfig.enable = true;
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
xdg-utils
|
xdg-utils
|
||||||
grim
|
grim
|
||||||
slurp
|
slurp
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
autotiling
|
||||||
|
|
||||||
imv
|
imv
|
||||||
gimp
|
gimp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue