2024-10-14 14:14:31 -07:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [];
|
|
|
|
settings = {
|
|
|
|
monitor = ",1920x1080@60,0x0,1";
|
2024-10-15 16:57:00 -07:00
|
|
|
# Declare default applications
|
2024-10-14 14:14:31 -07:00
|
|
|
"$terminal" = "kitty";
|
2024-10-20 01:44:40 -07:00
|
|
|
"$terminalFloating" = "kitty --class floating --override remember_window_size=false --override initial_window_height=720 --override initial_window_width=1280";
|
2024-10-14 14:14:31 -07:00
|
|
|
"$fileManager" = "dolphin";
|
2024-10-15 16:57:00 -07:00
|
|
|
"$browser" = "flatpak run io.github.zen_browser.zen";
|
|
|
|
"$bar" = "killall .waybar-wrapped; waybar"; #"$bar" = "killall .waybar-wrapped; waybar --style ~/.config/waybar/waybar.css";
|
2024-10-14 14:14:31 -07:00
|
|
|
"$menu" = "wofi --show drun";
|
|
|
|
"$notifd" = "mako";
|
|
|
|
"$wallpaperd" = "swww-daemon";
|
2024-10-20 01:44:40 -07:00
|
|
|
"$network" = "nm-applet --indicator";
|
2024-10-15 16:57:00 -07:00
|
|
|
"$screenshot" = "grimblast copy area";
|
|
|
|
|
|
|
|
# Scripted actions
|
2024-10-16 21:38:58 -07:00
|
|
|
"$commandRebuildNix" = "$terminal sudo nixos-rebuild switch --flake ~/Jafner.net/nix && read";
|
|
|
|
"$commandRebuildHomeManager" = "$terminal home-manager switch -b bak --flake ~/Jafner.net/nix && read";
|
2024-10-14 14:14:31 -07:00
|
|
|
|
|
|
|
exec-once = [
|
|
|
|
"$terminal"
|
|
|
|
"$bar"
|
|
|
|
"$notifd"
|
|
|
|
"$wallpaperd"
|
2024-10-20 01:44:40 -07:00
|
|
|
"$network"
|
2024-10-14 14:14:31 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
env = [
|
|
|
|
"XCURSOR_SIZE,24"
|
|
|
|
"HYPRCURSOR_SIZE,24"
|
|
|
|
];
|
|
|
|
|
|
|
|
general = {
|
|
|
|
gaps_in = "5";
|
|
|
|
gaps_out = "20";
|
|
|
|
border_size = "2";
|
|
|
|
allow_tearing = false;
|
|
|
|
resize_on_border = false;
|
|
|
|
layout = "dwindle";
|
|
|
|
};
|
|
|
|
|
|
|
|
decoration = {
|
|
|
|
rounding = "10";
|
|
|
|
active_opacity = "1.0";
|
2024-10-15 16:57:00 -07:00
|
|
|
inactive_opacity = "0.99";
|
2024-10-14 14:14:31 -07:00
|
|
|
drop_shadow = true;
|
|
|
|
shadow_range = "4";
|
|
|
|
shadow_render_power = "3";
|
|
|
|
blur = {
|
|
|
|
enabled = true;
|
|
|
|
size = "3";
|
|
|
|
passes = "1";
|
|
|
|
vibrancy = "0.1696";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
animations = {
|
|
|
|
enabled = true;
|
|
|
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
|
|
|
animation = [
|
|
|
|
"windows, 1, 7, myBezier"
|
|
|
|
"windowsOut, 1, 7, default, popin 80%"
|
|
|
|
"border, 1, 10, default"
|
|
|
|
"borderangle, 1, 8, default"
|
|
|
|
"fade, 1, 7, default"
|
|
|
|
"workspaces, 1, 6, default"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
dwindle = {
|
|
|
|
pseudotile = true;
|
|
|
|
preserve_split = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
master = {
|
|
|
|
new_status = "master";
|
|
|
|
};
|
|
|
|
|
|
|
|
misc = {
|
|
|
|
force_default_wallpaper = "0";
|
|
|
|
disable_hyprland_logo = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
input = {
|
|
|
|
kb_layout = "us";
|
|
|
|
follow_mouse = "1";
|
|
|
|
sensitivity = "0";
|
|
|
|
touchpad = {
|
|
|
|
natural_scroll = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gestures = {
|
|
|
|
workspace_swipe = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
device = {
|
|
|
|
name = "epic-mouse-v1";
|
|
|
|
sensitivity = "-0.5";
|
|
|
|
};
|
|
|
|
|
|
|
|
"$mainMod" = "SUPER";
|
|
|
|
bind = [
|
2024-10-20 01:44:40 -07:00
|
|
|
"$mainMod, T, exec, $terminalFloating"
|
2024-10-14 14:14:31 -07:00
|
|
|
"$mainMod, Q, killactive,"
|
|
|
|
"$mainMod, M, exit,"
|
|
|
|
"$mainMod, E, exec, $fileManager"
|
|
|
|
"$mainMod, V, togglefloating,"
|
|
|
|
"$mainMod, R, exec, $menu"
|
|
|
|
"$mainMod, P, pseudo,"
|
|
|
|
"$mainMod, J, togglesplit,"
|
2024-10-15 16:57:00 -07:00
|
|
|
"$mainMod CTRL, S, exec, $screenshot"
|
|
|
|
"$mainMod CTRL, Z, exec, $browser"
|
|
|
|
"$mainMod CTRL ALT, N, exec, $commandRebuildNix"
|
|
|
|
"$mainMod CTRL ALT, H, exec, $commandRebuildHomeManager"
|
2024-10-16 21:38:58 -07:00
|
|
|
"$mainMod CTRL, P, exec, rofi-rbw"
|
2024-10-14 14:14:31 -07:00
|
|
|
"$mainMod, left, movefocus, l"
|
|
|
|
"$mainMod, right, movefocus, r"
|
|
|
|
"$mainMod, up, movefocus, u"
|
|
|
|
"$mainMod, down, movefocus, d"
|
|
|
|
"$mainMod CTRL, right, workspace, +1"
|
|
|
|
"$mainMod CTRL, left, workspace, -1"
|
|
|
|
"$mainMod CTRL SHIFT, right, movetoworkspace, +1"
|
|
|
|
"$mainMod CTRL SHIFT, left, movetoworkspace, -1"
|
|
|
|
"$mainMod CTRL, B, exec, $bar"
|
|
|
|
];
|
|
|
|
|
2024-10-20 01:44:40 -07:00
|
|
|
windowrulev2 = [
|
|
|
|
"suppressevent maximize, class:.*"
|
|
|
|
"float, class:floating"
|
|
|
|
"float, title:Network Connections"
|
|
|
|
];
|
2024-10-14 14:14:31 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|