Guest User

Untitled

a guest
May 8th, 2024
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1.  
  2. { config, pkgs, ... }:
  3.  
  4. {
  5. wayland.windowManager.hyprland = {
  6. # Whether to enable Hyprland wayland compositor
  7. enable = true;
  8. # The hyprland package to use
  9. package = pkgs.hyprland;
  10. # Whether to enable XWayland
  11. xwayland.enable = true;
  12.  
  13. # Optional
  14. # Whether to enable hyprland-session.target on hyprland startup
  15. systemd.enable = true;
  16.  
  17.  
  18.  
  19.  
  20. settings = {
  21.  
  22. monitor =
  23. [
  24. " HDMI-A-2, 2560x1440, 1920x0, 1 "
  25. " HDMI-A-1, 1920x1080, 0x0, 1 "
  26. ];
  27.  
  28. decoration = {
  29. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  30.  
  31. rounding = 10;
  32.  
  33. blur = {
  34. enabled = true;
  35. size = 3;
  36. passes = 1;
  37. };
  38.  
  39. drop_shadow = "yes";
  40. shadow_range = 4;
  41. shadow_render_power = 3;
  42. "col.shadow" = "rgba(1a1a1aee)";
  43.  
  44. };
  45.  
  46. windowrule = [
  47.  
  48. "float , pavucontrol"
  49. "move 1140 40, pavucontrol"
  50. "size 40% 40% , pavucontrol"
  51. "opacity 0.9 override 0.2, pavucontrol"
  52. #"opacity 0.8 override 0.2, firefox-wayland" funzt nicht
  53.  
  54.  
  55.  
  56. ];
  57.  
  58. workspace = [
  59.  
  60. "1, monitor:HDMI-A-1, default"
  61. "2, monitor:HDMI-A-1"
  62. "3, monitor:HDMI-A-2, default"
  63. "4, monitor:HDMI-A-2"
  64. "5, monitor:HDMI-A-2"
  65.  
  66.  
  67.  
  68.  
  69. ];
  70.  
  71.  
  72.  
  73. animations = {
  74. enabled = "yes";
  75.  
  76. # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
  77.  
  78. bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
  79.  
  80. animation =
  81. [
  82.  
  83. "windows, 1, 7, myBezier"
  84. "windowsOut, 1, 7, default, popin 80%"
  85. "border, 1, 10, default"
  86. "borderangle, 1, 8, default"
  87. "fade, 1, 7, default"
  88. "workspaces, 1, 6, default"
  89. ];
  90. };
  91.  
  92.  
  93.  
  94.  
  95. exec-once = [
  96. "waybar"
  97. "hyprpaper"
  98. ];
  99.  
  100. input = {
  101. kb_layout = "de";
  102. # kb_variant =de;
  103. # kb_model =de;
  104. # kb_options =de;
  105. # kb_rules =de;
  106.  
  107. follow_mouse = 1;
  108.  
  109. touchpad = {
  110. natural_scroll = "no";
  111. };
  112.  
  113. sensitivity = 0 ;# -1.0 - 1.0, 0 means no modification.
  114. };
  115.  
  116.  
  117.  
  118. general = {
  119. # See https://wiki.hyprland.org/Configuring/Variables/ for more
  120.  
  121. gaps_in = 5;
  122. gaps_out = 15;
  123. border_size = 2;
  124. "col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
  125. "col.inactive_border" = "rgba(595959aa)";
  126.  
  127. layout = "dwindle";
  128.  
  129. # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
  130. allow_tearing = false;
  131. };
  132.  
  133.  
  134. dwindle = {
  135. # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
  136. pseudotile = "yes"; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
  137. preserve_split = "yes"; # you probably want this
  138. };
  139.  
  140.  
  141.  
  142.  
  143. "$mod" = "SUPER";
  144. bind =
  145. [
  146. "$mod, F, exec, firefox"
  147. "$mod, Q, killactive"
  148. "$mod, T, exec, kitty"
  149. "$mod, E, exec, nautilus"
  150. "$mod, O, exec, wlogout"
  151. "$mod, D, exec, obsidian"
  152. "$mod, V, togglefloating"
  153. "$mod, J, togglesplit"
  154. "$mod, B, exec, brave"
  155. "$mod, S, exec, steam"
  156. "$mod, mouse:272, movewindow"
  157. "$mod, mouse_down, workspace, e+1"
  158. "$mod, mouse_up, workspace, e-1"
  159.  
  160. ]
  161. ++ (
  162. # workspaces
  163. # binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
  164. builtins.concatLists (builtins.genList (
  165. x: let
  166. ws = let
  167. c = (x + 1) / 10;
  168. in
  169. builtins.toString (x + 1 - (c * 10));
  170. in [
  171. "$mod, ${ws}, workspace, ${toString (x + 1)}"
  172. "$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
  173. ]
  174. )
  175. 10)
  176. );
  177.  
  178.  
  179.  
  180.  
  181.  
  182. bindm =
  183. [
  184.  
  185. "$mod, mouse:272, movewindow"
  186. "$mod, mouse:273, resizewindow"
  187.  
  188.  
  189.  
  190. ];
  191.  
  192.  
  193. };
  194.  
  195. };
  196.  
  197. }
Advertisement
Add Comment
Please, Sign In to add comment