nix/home/hyprland/default.nix

157 lines
4 KiB
Nix
Raw Normal View History

2024-07-08 14:52:27 +02:00
{ pkgs, ... }: {
2024-06-05 20:52:52 +02:00
home.packages = with pkgs; [
2024-06-25 16:42:05 +02:00
rofi-wayland
2024-06-05 20:52:52 +02:00
pavucontrol
swww
wl-clipboard
2024-06-24 20:39:16 +02:00
cliphist
2024-06-05 20:52:52 +02:00
lxqt.lxqt-policykit
grim
slurp
hyprpicker
2024-06-20 21:07:23 +02:00
swappy
2024-06-05 20:52:52 +02:00
];
2024-06-21 11:59:08 +02:00
wayland.windowManager.hyprland = {
enable = true;
settings = {
2024-07-02 22:10:44 +02:00
"$mod" = "SUPER";
2024-06-21 11:59:08 +02:00
2024-07-02 22:10:44 +02:00
dwindle = {
pseudotile = true;
preserve_split = true;
};
2024-06-21 11:59:08 +02:00
2024-07-02 22:10:44 +02:00
monitor = "DP-1,2560x1440@165.00Hz,0x0,1,bitdepth,10";
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
env = [
"HYPRCURSOR_THEME = Bibata-Modern-Ice"
"HYPRCURSOR_SIZE = 24"
];
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
exec-once = [
"lxqt-policykit-agent &"
2024-07-02 22:18:06 +02:00
"ags -c ~/nix/home/ags/config.js &"
2024-07-02 22:10:44 +02:00
"wl-paste --type text --watch cliphist store"
"wl-paste --type image --watch cliphist store"
"screen -dmS cmus cmus &"
2024-06-05 20:52:52 +02:00
];
2024-07-02 22:10:44 +02:00
bind = [
2024-06-21 11:59:08 +02:00
2024-07-02 22:10:44 +02:00
# launch Apps
"$mod, TAB, exec, alacritty"
"$mod, E, exec, nemo"
"$mod, S, exec, brave"
"$mod, X, exec, keepassxc"
"$mod, D, exec, alacritty -e screen -r cmus"
"$mod, F, exec, freetube"
2024-07-04 22:23:36 +02:00
"$mod, M, exec, mbsync -a && alacritty -e neomutt"
2024-07-02 22:10:44 +02:00
"$mod, C, exec, hyprpicker -a"
"$mod, A, exec, rofi -show drun"
2024-07-05 22:11:08 +02:00
"$mod+Shift, W, exec, bash ~/nix/home/hyprland/vm.sh"
2024-07-02 22:10:44 +02:00
"$mod+Shift, Z, exec, grim - | swappy -f -"
"$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh"
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
2024-06-21 11:59:08 +02:00
2024-07-02 22:10:44 +02:00
# controles
"$mod, Q, killactive"
"$mod, W, togglefloating"
"$mod, R, togglesplit"
2024-07-04 22:29:55 +02:00
"$mod+shift, S, exec, systemctl suspend"
2024-07-02 22:10:44 +02:00
"$mod+shift, M, exit, hyprland"
# cmus
"$mod, P, exec, cmus-remote --pause"
"$mod, comma, exec, cmus-remote --prev"
"$mod, period, exec, cmus-remote --next"
"$mod, equal, exec, cmus-remote -v +5%"
"$mod, minus, exec, cmus-remote -v -5%"
2024-06-21 11:59:08 +02:00
2024-07-02 22:10:44 +02:00
# Move focus
"$mod, Return, fullscreen"
2024-07-05 20:32:21 +02:00
"$mod, H, movefocus, l"
"$mod, L, movefocus, r"
"$mod, K, movefocus, u"
"$mod, J, movefocus, d"
2024-07-02 22:37:09 +02:00
2024-07-02 23:52:12 +02:00
# Window resizing X Y
2024-07-05 20:32:21 +02:00
"CTRL+SHIFT, H, resizeactive, -60 0"
"CTRL+SHIFT, L, resizeactive, 60 0"
"CTRL+SHIFT, K, resizeactive, 0 -60"
"CTRL+SHIFT, J, resizeactive, 0 60"
2024-07-02 23:52:12 +02:00
2024-07-02 22:37:09 +02:00
# Moving windows
2024-07-05 20:32:21 +02:00
"$mod SHIFT, H, swapwindow, l"
"$mod SHIFT, L, swapwindow, r"
"$mod SHIFT, K, swapwindow, u"
"$mod SHIFT, J, swapwindow, d"
2024-06-21 11:59:08 +02:00
2024-07-02 22:10:44 +02:00
# Switch workspaces
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
"$mod, 3, workspace, 3"
"$mod, 4, workspace, 4"
"$mod, 5, workspace, 5"
"$mod, 6, workspace, 6"
"$mod, 7, workspace, 7"
"$mod, 8, workspace, 8"
"$mod, 9, workspace, 9"
"$mod, 0, workspace, 10"
2024-06-21 11:59:08 +02:00
2024-07-02 22:10:44 +02:00
# Move active window to a workspace
"$mod+Shift, 1, movetoworkspace, 1"
"$mod+Shift, 2, movetoworkspace, 2"
"$mod+Shift, 3, movetoworkspace, 3"
"$mod+Shift, 4, movetoworkspace, 4"
"$mod+Shift, 5, movetoworkspace, 5"
"$mod+Shift, 6, movetoworkspace, 6"
"$mod+Shift, 7, movetoworkspace, 7"
"$mod+Shift, 8, movetoworkspace, 8"
"$mod+Shift, 9, movetoworkspace, 9"
"$mod+Shift, 0, movetoworkspace, 10"
];
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
bindm= [
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
general = {
gaps_in = 0;
gaps_out = 0;
border_size = 3;
2024-07-05 17:53:59 +02:00
#"col.active_border" = "0xFFEBDBB2";
#"col.inactive_border" = "0xFF363537";
2024-07-02 22:10:44 +02:00
allow_tearing = false;
layout = "dwindle";
};
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
misc ={
disable_hyprland_logo = true;
disable_splash_rendering = true;
};
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
decoration = {
rounding = 0;
};
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
input = {
kb_layout = "us,de";
kb_variant = ",qwerty";
kb_options = "grp:alt_shift_toggle";
};
2024-07-02 22:37:09 +02:00
animations = {
enabled = false;
};
2024-06-05 20:52:52 +02:00
};
2024-07-02 22:10:44 +02:00
2024-06-05 20:52:52 +02:00
};
2024-07-02 22:10:44 +02:00
2024-06-05 20:52:52 +02:00
}