hyprlan canges, added i3wm
This commit is contained in:
parent
08791cb207
commit
0d8f9976a1
9 changed files with 64 additions and 10 deletions
|
@ -1 +1 @@
|
|||
_: {imports = [./wayland];}
|
||||
_: {imports = [./wayland ./x];}
|
||||
|
|
|
@ -59,7 +59,7 @@ in {
|
|||
"HDMI-A-2,1920x1080,1920x0,1"
|
||||
"HDMI-A-1,1920x1080,3840x0,1"
|
||||
# Had the shadow monitor bug, so had to disable all unknown monitors.
|
||||
# "Unknown-1,disable"
|
||||
"Unknown-1,disable"
|
||||
];
|
||||
# Workspace config
|
||||
workspace = [
|
||||
|
@ -155,7 +155,7 @@ in {
|
|||
];
|
||||
# Hyprland anomations, using the above bezier curves
|
||||
animations = {
|
||||
enabled = true;
|
||||
enabled = false;
|
||||
animation = [
|
||||
"windows, 1, 4, dupa, popin"
|
||||
"windowsOut, 1, 4, dupa, slide"
|
||||
|
@ -222,6 +222,12 @@ in {
|
|||
"$mainMod SHIFT, 8, split-movetoworkspacesilent, 8"
|
||||
"$mainMod SHIFT, 9, split-movetoworkspacesilent, 9"
|
||||
"$mainMod SHIFT, 0, split-movetoworkspacesilent, 10"
|
||||
|
||||
# Move Windows
|
||||
"$mainMod SHIFT, H, movewindow, left"
|
||||
"$mainMod SHIFT, J, movewindow, down"
|
||||
"$mainMod SHIFT, K, movewindow, up"
|
||||
"$mainMod SHIFT, L, movewindow, right"
|
||||
# Screenshotting
|
||||
"$mainMod, S, exec, ${pkgs.grimblast}/bin/grimblast copy area"
|
||||
# File manager
|
||||
|
@ -300,7 +306,7 @@ in {
|
|||
# and run it all again
|
||||
"[workspace special:btop;silent;tile] ${foot}/bin/foot ${pkgs.btop}/bin/btop"
|
||||
|
||||
"[workspace special:pipewire silent;tile] ${pkgs.helvum}/bin/helvum"
|
||||
# "[workspace special:pipewire silent;tile] ${pkgs.helvum}/bin/helvum"
|
||||
"[workspace special:pipewire;silent;tile] ${pkgs.pavucontrol}/bin/pavucontrol"
|
||||
# "${pkgs.networkmanagerapplet}/bin/nm-applet --indicator"
|
||||
];
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
imports = [./i3];
|
||||
}
|
3
modules/wms/x/i3/default.nix
Normal file
3
modules/wms/x/i3/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
_: {
|
||||
imports = [./i3.nix];
|
||||
}
|
40
modules/wms/x/i3/i3.nix
Normal file
40
modules/wms/x/i3/i3.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
username = config.modules.other.system.username;
|
||||
cfg = config.modules.wms.x.i3;
|
||||
in {
|
||||
options.modules.wms.x.i3.enable = lib.mkEnableOption "i3";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = [
|
||||
pkgs.xdg-desktop-portal-gtk
|
||||
];
|
||||
config.common.default = "*";
|
||||
};
|
||||
services = {
|
||||
xserver = {
|
||||
enable = true;
|
||||
xkb.layout = "de";
|
||||
desktopManager.xterm.enable = false;
|
||||
windowManager.i3.enable = true;
|
||||
displayManager = {
|
||||
lightdm.enable = true;
|
||||
defaultSession = "none+i3";
|
||||
setupCommands = "${pkgs.xorg.xrandr}/bin/xrandr --output HDMI-1 --rotate normal --output DP-2 --rotate normal --left-of HDMI-1 --output HDMI-0 --right-of HDMI-1";
|
||||
};
|
||||
};
|
||||
};
|
||||
home-manager.users.${username} = {
|
||||
xsession.windowManager.i3 = {
|
||||
# enable = false;
|
||||
# package = pkgs.i3-gaps;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue