something here caused the issue
This commit is contained in:
parent
cd89855ce2
commit
45ff93c873
17 changed files with 345 additions and 85 deletions
39
homes/modules/wm/default.nix
Normal file
39
homes/modules/wm/default.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit
|
||||
(lib)
|
||||
mkEnableOption
|
||||
mkOption
|
||||
types
|
||||
;
|
||||
in {
|
||||
imports = [
|
||||
./hypr/hyprland.nix
|
||||
./mangowc.nix
|
||||
];
|
||||
|
||||
options.cryos = {
|
||||
wm = {
|
||||
default = mkOption {
|
||||
type = types.enum ["mangowc" "hyprland"];
|
||||
default = "mangowc";
|
||||
example = "hyprland";
|
||||
description = "Window manager to boot by default.";
|
||||
};
|
||||
hyprland.enabled = mkEnableOption "hyprland";
|
||||
mangowc.enabled = mkEnableOption "mangowc";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
# xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,42 +1,29 @@
|
|||
# NOTE: hyprland must be enabled in BOTH your host config (for running hyprland)
|
||||
# and your home-manager config (for managing hyprland's config files)
|
||||
# NOTE: and your home-manager config (for managing hyprland's config files)
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.hyprland = {
|
||||
enable = lib.mkEnableOption "Hyprland";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.hyprland.enable {
|
||||
config = {
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
package = pkgs.hyprland;
|
||||
# package = pkgs.hyprland;
|
||||
package = null;
|
||||
portalPackage = null;
|
||||
|
||||
xwayland.enable = true;
|
||||
|
||||
systemd = {
|
||||
enable = true;
|
||||
# enable autostart of applications
|
||||
# REF: `man 8 systemd-xdg-autostart-generator`
|
||||
enableXdgAutostart = true;
|
||||
};
|
||||
# systemd = {
|
||||
# enable = true;
|
||||
# # enable autostart of applications
|
||||
# # REF: `man 8 systemd-xdg-autostart-generator`
|
||||
# enableXdgAutostart = true;
|
||||
# };
|
||||
|
||||
plugins = with inputs; [
|
||||
split-monitor-workspaces.packages.${pkgs.system}.split
|
||||
];
|
||||
# plugins = with inputs; [
|
||||
# split-monitor-workspaces.packages.${pkgs.system}.split
|
||||
# ];
|
||||
};
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-gtk
|
||||
];
|
||||
};
|
||||
|
||||
# TODO: finish this
|
||||
};
|
||||
}
|
||||
|
|
|
|||
107
homes/modules/wm/mangowc.nix
Normal file
107
homes/modules/wm/mangowc.nix
Normal file
|
|
@ -0,0 +1,107 @@
|
|||
{...}: {
|
||||
home.shellAliases = {
|
||||
logoff = "mmsg -q";
|
||||
};
|
||||
|
||||
wayland.windowManager.mango = {
|
||||
enable = true;
|
||||
|
||||
systemd = {
|
||||
enable = true;
|
||||
|
||||
# enable autostart of applications
|
||||
# REF: `man 8 systemd-xdg-autostart-generator`
|
||||
xdgAutostart = true;
|
||||
};
|
||||
|
||||
settings = ''
|
||||
# REF: config.conf
|
||||
exec-once = awww-daemon
|
||||
exec-once = mako
|
||||
|
||||
bind=SUPER,Return,spawn,foot
|
||||
bind=SUPER,R,spawn,fuzzel
|
||||
|
||||
bind=SUPER+SHIFT,R,reload_config
|
||||
bind=SUPER,Q,killclient
|
||||
|
||||
# Brightness
|
||||
bind=NONE,XF86MonBrightnessUp,spawn,brightnessctl -e4 -n2 set 5%+
|
||||
bind=NONE,XF86MonBrightnessDown,spawn,brightnessctl -e4 -n2 set 5%-
|
||||
bind=SUPER+SHIFT,-,spawn brightnessctl -e4 -n2 set 5%+
|
||||
bind=SUPER+SHIFT,+,spawn brightnessctl -e4 -n2 set 5%-
|
||||
|
||||
# Window Options
|
||||
bind=SUPER,F,togglefullscreen
|
||||
bind=SUPER+SHIFT,F,togglefakefullscreen
|
||||
|
||||
# Window Movement
|
||||
bind=SUPER,Tab,focusstack,next
|
||||
bind=SUPER,h,focusdir,left
|
||||
bind=SUPER,l,focusdir,right
|
||||
bind=SUPER,k,focusdir,up
|
||||
bind=SUPER,j,focusdir,down
|
||||
bind=SUPER,Left,focusdir,left
|
||||
bind=SUPER,Right,focusdir,right
|
||||
bind=SUPER,Up,focusdir,up
|
||||
bind=SUPER,Down,focusdir,down
|
||||
|
||||
keymode=resize
|
||||
bind=NONE,Left,resizewin,-10.0
|
||||
bind=NONE,Right,resizewin,+10.0
|
||||
bind=NONE,Escape,setkeymode,default
|
||||
|
||||
# Keyboard
|
||||
repeat_rate=25
|
||||
repeat_delay=300
|
||||
numlockon=0
|
||||
xkb_rules_layout=us
|
||||
|
||||
# Laptop Specific Things
|
||||
# disable_trackpad=0
|
||||
# mouse_natural_scrolling=1
|
||||
|
||||
|
||||
bind=SUPER,1,view,1,0
|
||||
bind=SUPER,2,view,2,0
|
||||
bind=SUPER,3,view,3,0
|
||||
bind=SUPER,4,view,4,0
|
||||
bind=SUPER,5,view,5,0
|
||||
bind=SUPER,6,view,6,0
|
||||
bind=SUPER,7,view,7,0
|
||||
bind=SUPER,8,view,8,0
|
||||
bind=SUPER,9,view,9,0
|
||||
bind=SUPER+SHIFT,1,tag,1,0
|
||||
bind=SUPER+SHIFT,2,tag,2,0
|
||||
bind=SUPER+SHIFT,3,tag,3,0
|
||||
bind=SUPER+SHIFT,4,tag,4,0
|
||||
bind=SUPER+SHIFT,5,tag,5,0
|
||||
bind=SUPER+SHIFT,6,tag,6,0
|
||||
bind=SUPER+SHIFT,7,tag,7,0
|
||||
bind=SUPER+SHIFT,8,tag,8,0
|
||||
bind=SUPER+SHIFT,9,tag,9,0
|
||||
|
||||
bind=SUPER+SHIFT,h,focusmon,left
|
||||
bind=SUPER+SHIFT,l,focusmon,right
|
||||
bind=SUPER+SHIFT,k,focusmon,up
|
||||
bind=SUPER+SHIFT,j,focusmon,down
|
||||
|
||||
# bind=SUPER,Left,tagmon,left
|
||||
# bind=SUPER,Right,tagmon,right
|
||||
# bind=SUPER,Up,tagmon,up
|
||||
# bind=SUPER,Down,tagmon,down
|
||||
|
||||
bind=SUPER,g,toggleglobal
|
||||
bind=SUPER,o,toggleoverlay
|
||||
bind=SUPER,a,togglefloating
|
||||
bind=SUPER,z,toggle_scratchpad
|
||||
|
||||
'';
|
||||
autostart_sh = ''
|
||||
# REF: autostart.sh
|
||||
|
||||
# XDG_CURRENT_DESKTOP=Hyprland
|
||||
# dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue