mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-30 04:40:13 +00:00
Move hyprland to separate directory
This commit is contained in:
parent
b5d38d1211
commit
5e2770282e
@ -1,7 +1,8 @@
|
||||
{ pkgs, zen-browser, ... }:
|
||||
{ zen-browser, ... }:
|
||||
{
|
||||
imports = [
|
||||
zen-browser.homeModules.beta
|
||||
./hypr
|
||||
];
|
||||
|
||||
programs.zen-browser = {
|
||||
@ -23,71 +24,4 @@
|
||||
# find more options here: https://mozilla.github.io/policy-templates/
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = [
|
||||
pkgs.rofi-wayland
|
||||
pkgs.brightnessctl
|
||||
];
|
||||
|
||||
programs.kitty.enable = true;
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
monitor = [ ",preferred,auto,1" ];
|
||||
|
||||
gestures = {
|
||||
workspace_swipe = true;
|
||||
};
|
||||
|
||||
input = {
|
||||
natural_scroll = true;
|
||||
scroll_factor = 0.4;
|
||||
touchpad = {
|
||||
natural_scroll = true;
|
||||
scroll_factor = 0.4;
|
||||
tap-to-click = true;
|
||||
};
|
||||
};
|
||||
|
||||
"$mod" = "SUPER";
|
||||
"$shiftMod" = "SUPER_SHIFT";
|
||||
|
||||
bind = [
|
||||
"$mod, RETURN, exec, kitty"
|
||||
"$mod, E, exec, emacsclient -c"
|
||||
"$mod, Q, killactive"
|
||||
"$mod, SPACE, exec, rofi -show drun"
|
||||
|
||||
"$mod, F, fullscreen"
|
||||
|
||||
"$mod, H, movefocus, l"
|
||||
"$mod, J, movefocus, d"
|
||||
"$mod, K, movefocus, u"
|
||||
"$mod, L, movefocus, r"
|
||||
|
||||
"$shiftMod, H, movewindow, l"
|
||||
"$shiftMod, J, movewindow, d"
|
||||
"$shiftMod, K, movewindow, u"
|
||||
"$shiftMod, L, movewindow, r"
|
||||
|
||||
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
|
||||
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
||||
]
|
||||
++ builtins.concatLists (
|
||||
builtins.genList (
|
||||
i:
|
||||
let
|
||||
code = "1${toString i}";
|
||||
ws = toString (i + 1);
|
||||
in
|
||||
[
|
||||
"$mod, code:${code}, workspace, ${ws}"
|
||||
"$shiftMod, code:${code}, movetoworkspace, ${ws}"
|
||||
]
|
||||
) 9
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
||||
|
69
home/desktop/hypr/default.nix
Normal file
69
home/desktop/hypr/default.nix
Normal file
@ -0,0 +1,69 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
pkgs.rofi-wayland
|
||||
pkgs.brightnessctl
|
||||
];
|
||||
|
||||
programs.kitty.enable = true;
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
monitor = [ ",preferred,auto,1.2" ];
|
||||
|
||||
xwayland.force_zero_scaling = true;
|
||||
|
||||
gestures.workspace_swipe = true;
|
||||
|
||||
input = {
|
||||
natural_scroll = true;
|
||||
scroll_factor = 0.4;
|
||||
touchpad = {
|
||||
natural_scroll = true;
|
||||
scroll_factor = 0.4;
|
||||
tap-to-click = true;
|
||||
};
|
||||
};
|
||||
|
||||
"$mod" = "SUPER";
|
||||
"$shiftMod" = "SUPER_SHIFT";
|
||||
|
||||
bind = [
|
||||
"$mod, RETURN, exec, kitty"
|
||||
"$mod, E, exec, emacsclient -c"
|
||||
"$mod, Q, killactive"
|
||||
"$mod, SPACE, exec, rofi -show drun"
|
||||
|
||||
"$mod, F, fullscreen"
|
||||
|
||||
"$mod, H, movefocus, l"
|
||||
"$mod, J, movefocus, d"
|
||||
"$mod, K, movefocus, u"
|
||||
"$mod, L, movefocus, r"
|
||||
|
||||
"$shiftMod, H, movewindow, l"
|
||||
"$shiftMod, J, movewindow, d"
|
||||
"$shiftMod, K, movewindow, u"
|
||||
"$shiftMod, L, movewindow, r"
|
||||
|
||||
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
|
||||
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
||||
]
|
||||
++ builtins.concatLists (
|
||||
builtins.genList (
|
||||
i:
|
||||
let
|
||||
code = "1${toString i}";
|
||||
ws = toString (i + 1);
|
||||
in
|
||||
[
|
||||
"$mod, code:${code}, workspace, ${ws}"
|
||||
"$shiftMod, code:${code}, movetoworkspace, ${ws}"
|
||||
]
|
||||
) 9
|
||||
);
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user