nix/home/hyprland/default.nix

193 lines
5.3 KiB
Nix
Raw Normal View History

2024-08-21 09:02:49 +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-08-09 01:14:56 +02:00
pwvucontrol
2024-06-05 20:52:52 +02:00
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-08-09 20:58:10 +02:00
hypridle
2024-06-05 20:52:52 +02:00
];
2024-08-03 00:01:29 +02:00
services.cliphist.enable = true;
2024-06-21 11:59:08 +02:00
wayland.windowManager.hyprland = {
enable = true;
2024-08-21 09:02:49 +02:00
2024-06-21 11:59:08 +02:00
settings = {
2024-07-02 22:10:44 +02:00
"$mod" = "SUPER";
2024-08-11 17:44:22 +02:00
"$scrPath" = "~/nix/home/hyprland/scirpts";
2024-08-21 09:02:49 +02:00
dwindle = {
pseudotile = true;
preserve_split = true;
};
2024-08-23 19:41:17 +02:00
2024-08-21 19:21:47 +02:00
cursor = {
inactive_timeout = "3";
};
2024-08-23 19:41:17 +02:00
2024-07-02 22:10:44 +02:00
env = [
"HYPRCURSOR_THEME = Bibata-Modern-Ice"
"HYPRCURSOR_SIZE = 24"
2024-08-03 19:15:36 +02:00
"NIXOS_OZONE_WL = 1"
2024-08-03 12:00:20 +02:00
];
2024-08-03 19:15:36 +02:00
xwayland = {
force_zero_scaling = true;
};
2024-08-03 12:00:20 +02:00
monitor = [
2024-08-22 23:06:38 +02:00
"DP-1,2560x1440@165.00Hz,auto,1,bitdepth,10"
2024-08-17 17:24:39 +02:00
"eDP-1,prefrered,auto,1"
"HDMI-A-1,prefrered,auto,1,mirror,eDP-1"
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-08-03 00:01:29 +02:00
"ags"
2024-08-22 19:02:54 +02:00
"sh ~/nix/home/hyprland/scripts/hypridle.sh"
2024-06-05 20:52:52 +02:00
];
2024-08-03 12:00:20 +02:00
windowrule = [
2024-08-09 01:23:36 +02:00
"float,title:^(Pipewire)(.*)$"
2024-08-06 10:14:45 +02:00
"float,title:^(Disks)(.*)$"
"float,title:^(Calculator)(.*)$"
"float,title:^(Bluetooth)(.*)$"
"float,title:^(Clocks)(.*)$"
"float,title:^(Network Connections)(.*)$"
2024-08-21 18:55:10 +02:00
"opacity 0.9,^(Alacritty)(.*)$"
2024-08-03 12:00:20 +02:00
];
2024-08-04 00:37:19 +02:00
gestures = {
workspace_swipe = true;
2024-08-04 02:08:32 +02:00
workspace_swipe_forever = true;
workspace_swipe_distance = 200;
2024-08-04 00:37:19 +02:00
};
2024-08-21 09:02:49 +02:00
2024-07-02 22:10:44 +02:00
bind = [
# 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-23 19:40:00 +02:00
"$mod, X, exec, keepassxc"
2024-08-21 09:02:49 +02:00
"$mod, M, exec, mw -Y && alacritty -e neomutt"
2024-08-11 18:17:01 +02:00
"$mod, N, exec, alacritty -e newsboat"
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-17 23:52:19 +02:00
"$mod, C, exec, hyprpicker -a"
2024-08-11 17:44:22 +02:00
"$mod+Shift, W, exec, sh ~/nix/home/hyprland/scripts/vm.sh"
2024-07-02 22:10:44 +02:00
"$mod+Shift, Z, exec, grim - | swappy -f -"
2024-08-11 17:44:22 +02:00
"$mod, Z, exec, sh ~/nix/home/hyprland/scripts/screen.sh"
2024-07-02 22:10:44 +02:00
"$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy"
2024-08-21 09:02:49 +02:00
# controles
2024-07-02 22:10:44 +02:00
"$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-08-18 00:03:11 +02:00
"$mod, G, exec, sh ~/nix/home/hyprland/scripts/gamemode.sh"
2024-08-18 14:13:07 +02:00
"$mod+shift, B, exec, sh ~/nix/home/hyprland/scripts/ags.sh"
2024-08-22 20:27:18 +02:00
"$mod, up, exec, sh ~/nix/home/hyprland/scripts/volume.sh -i"
2024-08-22 20:33:30 +02:00
"$mod, down, exec, sh ~/nix/home/hyprland/scripts/volume.sh -d"
2024-07-02 22:10:44 +02:00
# cmus
2024-08-11 17:44:22 +02:00
"$mod, D, exec, sh ~/nix/home/hyprland/scripts/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-08-21 09:02:49 +02:00
# Move focus
2024-07-02 22:10:44 +02:00
"$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-08-21 09:02:49 +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-08-21 09:02:49 +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-08-03 12:00:20 +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%-"
2024-08-11 17:44:22 +02:00
", XF86AudioRaiseVolume, exec, sh ~/nix/home/hyprland/scripts/volume.sh -i"
", XF86AudioLowerVolume, exec, sh ~/nix/home/hyprland/scripts/volume.sh -d"
", XF86AudioMute, exec, sh ~/nix/home/hyprland/scripts/volume.sh -m"
", XF86AudioMicMute, exec, sh ~/nix/home/hyprland/scripts/volume.sh -t"
2024-07-12 00:09:53 +02:00
];
2024-07-02 22:10:44 +02:00
general = {
2024-08-21 09:02:49 +02:00
gaps_in = 5;
2024-08-23 19:59:56 +02:00
gaps_out = 10;
border_size = 4;
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-08-21 09:02:49 +02:00
misc = {
2024-07-02 22:10:44 +02:00
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";
2024-08-16 20:03:20 +02:00
kb_options = "grp:alt_shift_toggle,caps:swapescape";
2024-08-09 20:43:05 +02:00
};
2024-08-04 02:08:32 +02:00
device = {
2024-08-21 09:02:49 +02:00
name = "at-translated-set-2-keyboard";
2024-08-04 02:08:32 +02:00
repeat_rate = "50";
};
2024-06-05 20:52:52 +02:00
};
};
}