nix/home/hyprland/default.nix

163 lines
4.3 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
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-12 17:43:33 +02:00
monitor = [
"eDP-1,2560x1440@165.00Hz,0x0,1.25"
"DP-1,2560x1440@165.00Hz,0x0,1,bitdepth,10"
];
2024-06-05 20:52:52 +02:00
2024-07-15 20:30:05 +02:00
2024-07-02 22:10:44 +02:00
env = [
"HYPRCURSOR_THEME = Bibata-Modern-Ice"
"HYPRCURSOR_SIZE = 24"
2024-07-16 11:59:12 +02:00
"QT_QPA_PLATFORMTHEME,gtk2"
"QT_STYLE_OVERRIDE,gtk2"
2024-07-02 22:10:44 +02:00
];
2024-06-05 20:52:52 +02:00
2024-07-02 22:10:44 +02:00
exec-once = [
2024-07-12 20:59:08 +02:00
"ags -c ~/nix/home/ags/bar/config.js &"
2024-07-02 22:10:44 +02:00
"wl-paste --type text --watch cliphist store"
"wl-paste --type image --watch cliphist store"
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
2024-07-12 00:09:53 +02:00
"$mod,TAB, exec, alacritty"
2024-07-02 22:10:44 +02:00
"$mod, E, exec, nemo"
2024-07-12 17:08:03 +02:00
"$mod, S, exec, firefox"
2024-07-15 20:30:05 +02:00
"$mod, X, exec, secrets"
2024-07-15 20:56:17 +02:00
"$mod, M, exec, mbsync -a && alacritty -e neomutt"
2024-07-02 22:10:44 +02:00
"$mod, A, exec, rofi -show drun"
2024-07-15 21:19:56 +02:00
"$mod, F, exec, freetube"
2024-07-16 20:21:51 +02:00
"$mod, C, exec, hyprpickr -a"
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"
2024-07-15 20:30:05 +02:00
"$mod, G, exec, sh ~/nix/home/hyprland/gamemode.sh"
2024-07-02 22:10:44 +02:00
# cmus
2024-07-16 00:06:38 +02:00
"$mod, D, exec, sh ~/nix/home/hyprland/cmus.sh"
2024-07-02 22:10:44 +02:00
"$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-12 00:09:53 +02:00
# Window resizing X Y
"CTRL+SHIFT, H, resizeactive, -60 0"
2024-07-05 20:32:21 +02:00
"CTRL+SHIFT, L, resizeactive, 60 0"
2024-07-12 00:09:53 +02:00
"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-07-12 00:09:53 +02:00
2024-07-02 22:10:44 +02:00
];
2024-06-05 20:52:52 +02:00
2024-07-12 00:09:53 +02:00
bindm = [
2024-07-02 22:10:44 +02:00
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
];
2024-06-05 20:52:52 +02:00
2024-07-12 00:09:53 +02:00
bindl = [
", XF86MonBrightnessUp, exec, brightnessctl set +10%"
", XF86MonBrightnessDown, exec, brightnessctl set 10%-"
", XF86AudioRaiseVolume, exec, amixer set Master 5%+"
", XF86AudioLowerVolume, exec, amixer set Master 5%-"
];
2024-07-02 22:10:44 +02:00
general = {
2024-07-09 17:42:26 +02:00
gaps_in = 5;
2024-07-14 22:03:17 +02:00
gaps_out = 20;
2024-07-09 17:42:26 +02:00
border_size = 2;
2024-07-02 22:10:44 +02:00
allow_tearing = false;
2024-07-15 20:30:05 +02:00
layout = "master";
2024-07-02 22:10:44 +02:00
};
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 = {
2024-07-09 17:42:26 +02:00
rounding = 5;
2024-07-02 22:10:44 +02:00
};
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-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
}