{ pkgs, ... }: { imports = [ ../qutesearch/home.nix ../waybar/home.nix ../rofi/home.nix ]; # options.custom.hyprland.enable = lib.mkEnable "hyprland"; config = { home.packages = [ pkgs.swaybg ]; programs.waybar.enable = true; # When swhkd is available, wlogout could be started via a script # that disables keybind watching, starts wlogout, and enables keybind # watching again once it's closed programs.wlogout = { enable = true; }; xdg.portal = { enable = true; extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; configPackages = [ pkgs.xdg-desktop-portal-gtk ]; }; wayland.windowManager.hyprland = { enable = true; settings = { exec-once = [ "swaybg -i $WALLPAPER" "waybar" ]; monitor = [ "eDP-1,1920x1080@59.96,0x0,auto" # "X11-1,600x800@59.96,0x0,auto" ]; input = { # kb_options = "caps:swapescape,altwin:swap_alt_win"; }; general = { gaps_in = 3; gaps_out = 6; }; group = { groupbar = { gradients = false; text_color = "0xff111111"; }; }; misc = { disable_hyprland_logo = true; background_color = "0x000000"; }; animation = [ "workspaces,1,3,default,slidevert" "windows,1,2,default,slide" ]; workspace = [ "name:I" "name:II" "name:III" "name:IV" "name:V" ]; windowrule = [ "fullscreen,noanim,noborder,title:(Albert)" ]; "$mod" = "SUPER"; bind = [ "$mod, Return, exec, $TERMINAL" "$mod, o, exec, qutesearch" "$mod, Space, exec, rofi -show drun" "SUPERSHIFT, Space, exec, rofi -show run" "$mod, Escape, exec, wlogout" "$mod, w, killactive" # This closes the window and the name is dumb "$mod, f, togglefloating" "$mod, t, togglegroup" "$mod, h, movefocus, l" "$mod, j, movefocus, d" "$mod, k, movefocus, u" "$mod, l, movefocus, r" "$mod, left, movefocus, l" "$mod, down, movefocus, d" "$mod, up, movefocus, u" "$mod, right, movefocus, r" "$mod, a, changegroupactive, f" "$mod, d, changegroupactive, f" "$mod, Tab, cyclenext" "SUPERSHIFT, h, movewindoworgroup, l" "SUPERSHIFT, j, movewindoworgroup, d" "SUPERSHIFT, k, movewindoworgroup, u" "SUPERSHIFT, l, movewindoworgroup, r" "SUPERSHIFT, left, movewindoworgroup, l" "SUPERSHIFT, down, movewindoworgroup, d" "SUPERSHIFT, up, movewindoworgroup, u" "SUPERSHIFT, right, movewindoworgroup, r" "$mod, 1, workspace, 1" "$mod, 2, workspace, 2" "$mod, 3, workspace, 3" "$mod, 4, workspace, 4" "$mod, 5, workspace, 5" ]; bindm = [ "$mod, mouse:272, movewindow" "$mod, mouse:273, resizewindow" ]; }; }; }; }