nix/home/hyprland/default.nix

194 lines
5.2 KiB
Nix
Raw Normal View History

2024-07-08 14:52:27 +02:00
{ pkgs, ... }: {
2024-08-03 12:00:20 +02:00
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-08-17 17:24:39 +02:00
cowsay
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;
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-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
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-17 17:24:39 +02:00
"DP-1,prefrered,auto,1"
"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-09 20:58:10 +02:00
"hypridle"
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-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-03 12:00:20 +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-23 19:40:00 +02:00
"$mod, X, exec, keepassxc"
2024-08-11 19:18:59 +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-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-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-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-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-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-07-09 17:42:26 +02:00
gaps_in = 5;
2024-07-24 19:31:25 +02:00
gaps_out = 15;
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";
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 = {
name= "at-translated-set-2-keyboard";
repeat_rate = "50";
};
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
};
2024-07-02 22:10:44 +02:00
2024-06-05 20:52:52 +02:00
}