blob: bc5cffbaba9d6a3ed2aaae6d8825bb4760fb2f65 [file] [log] [blame]
Samuel Shuert3f828662024-02-10 20:45:50 -05001{ pkgs, inputs, ... }: {
Samuel Shuertf1d6e992023-11-24 17:28:33 -05002
Samuel Shuert3f828662024-02-10 20:45:50 -05003 programs.hyprland.enable = true;
Samuel Shuertf1d6e992023-11-24 17:28:33 -05004
Samuel Shuert3f828662024-02-10 20:45:50 -05005 home-manager.users.coded = {
6 home.packages = [ pkgs.hyprpicker ];
Samuel Shuertf1d6e992023-11-24 17:28:33 -05007
Samuel Shuert3f828662024-02-10 20:45:50 -05008 wayland.windowManager.hyprland = {
9 enable = true;
Samuel Shuertf6c41b52023-12-02 13:21:47 -050010
Samuel Shuert3f828662024-02-10 20:45:50 -050011 xwayland.enable = true;
12 systemd.enable = true;
13
14 plugins = [
15
16 ];
17
18
19 settings = {
20 "$mainMod" = "SUPER";
21 "$terminal" = "kitty";
22 "$menu" = "anyrun";
23
24 general = {
25 gaps_in = 5;
26 gaps_out = 20;
27
28 border_size = 2;
29 "col.active_border" = "rgba(71AEF5EE) rgba(F2D478EE) 45deg";
30 "col.inactive_border" = "rgba(C4C4C4EE)";
31
32 layout = "dwindle";
33 };
34
35 decoration = {
36 rounding = 10;
37
38 drop_shadow = true;
39 shadow_range = 4;
40 shadow_render_power = 3;
41 "col.shadow" = "rgba(1a1a1aee)";
42 };
43
44 input = {
45 kb_layout = "us";
46 numlock_by_default = true;
47 };
48
49 monitor = [
50 "DP-1,1920x1080@165,0x0,1"
51 "DP-2,1920x1080@165,1920x0,1"
52 "HDMI-A-1,1920x1080@60,960x-1080,1"
53 ",preferred,auto,1"
54 ];
55
56 xwayland = {
57 force_zero_scaling = true;
58 };
59
60 master = {
61 new_is_master = true;
62 };
63
64 bind = [
65 "$mainMod, Q, killactive"
66 "$mainMod, SPACE, togglefloating"
67 "$mainMod, RETURN, exec, $terminal"
68 "$mainMod, down, movefocus, d"
69 "$mainMod, up, movefocus, u"
70 "$mainMod, right, movefocus, r"
71 "$mainMod, left, movefocus, l"
72
73 "ALT, SPACE, exec, $menu"
74 ] ++ (
75 builtins.concatLists (builtins.genList (
76 x: let
77 ws = let
78 c = (x + 1) / 10;
79 in
80 builtins.toString (x + 1 - (c * 10));
81 in [
82 "$mainMod, ${ws}, workspace, ${toString (x + 1)}"
83 "$mainMod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
84 ]
85 )
86 10)
87 );
88
89 bindm = [
90 "$mainMod, mouse:272, movewindow"
91 "$mainMod, mouse:273, resizewindow"
92 ];
93 };
94 };
95 };
96
97 # services.xserver.enable = true;
98 # services.xserver.videoDrivers = [ "amdgpu" ];
99
100 # services.xserver.displayManager.sddm.enable = true;
101 # services.xserver.desktopManager.plasma5.enable = true;
102
103 # hardware.opengl.driSupport = true;
104 # # For 32 bit applications
105 # hardware.opengl.driSupport32Bit = true;
106
107 # programs.dconf.enable = true;
108
109 # services.xserver = {
110 # layout = "us";
111 # xkbVariant = "";
112 # };
113
114 hardware.opengl = {
115 enable = true;
116 driSupport = true;
117 driSupport32Bit = true;
118 extraPackages = [
119 pkgs.vaapiVdpau
120 ];
Samuel Shuertf1d6e992023-11-24 17:28:33 -0500121 };
122}