148 lines
3.9 KiB
Nix
148 lines
3.9 KiB
Nix
{
|
|
inputs,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: {
|
|
programs.rofi.enable = true;
|
|
home.packages = [
|
|
pkgs.kitty
|
|
];
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
systemd.variables = ["--all"];
|
|
settings = {
|
|
"$mod" = "SUPER";
|
|
bind =
|
|
[
|
|
"$mod, RETURN, exec, ${pkgs.kitty}/bin/kitty"
|
|
"$mod, d, exec, ${pkgs.rofi}/bin/rofi -show drun"
|
|
"$mod, f, exec, ${pkgs.firefox}/bin/firefox"
|
|
]
|
|
++ (
|
|
# workspaces
|
|
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
|
builtins.concatLists (builtins.genList (
|
|
x: let
|
|
ws = let
|
|
c = (x + 1) / 10;
|
|
in
|
|
builtins.toString (x + 1 - (c * 10));
|
|
in [
|
|
"$mod, ${ws}, workspace, ${toString (x + 1)}"
|
|
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
|
|
]
|
|
)
|
|
10)
|
|
);
|
|
# See https://wiki.hyprland.org/Configuring/Monitors/
|
|
monitor = ",preferred,auto,auto";
|
|
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
|
|
|
|
# Execute your favorite apps at launch
|
|
# exec-once = waybar & hyprpaper & firefox
|
|
|
|
# Source a file (multi-file configs)
|
|
# source = ~/.config/hypr/myColors.conf
|
|
|
|
# Some default env vars.
|
|
env = "XCURSOR_SIZE,24";
|
|
|
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
|
input = {
|
|
kb_layout = "de";
|
|
kb_variant = "";
|
|
kb_model = "";
|
|
kb_options = "caps:ctrl_modifier";
|
|
kb_rules = "";
|
|
|
|
follow_mouse = 1;
|
|
|
|
touchpad = {
|
|
natural_scroll = "yes";
|
|
};
|
|
|
|
sensitivity = 0; # -1.0 - 1.0, 0 means no modification.
|
|
};
|
|
|
|
general = {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
|
|
gaps_in = 5;
|
|
gaps_out = 20;
|
|
border_size = 2;
|
|
col.active_border = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
col.inactive_border = "rgba(595959aa)";
|
|
|
|
layout = "dwindle";
|
|
|
|
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
|
allow_tearing = false;
|
|
};
|
|
|
|
decoration = {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
|
|
rounding = 10;
|
|
|
|
blur = {
|
|
enabled = true;
|
|
size = 3;
|
|
passes = 1;
|
|
};
|
|
|
|
drop_shadow = "yes";
|
|
shadow_range = 4;
|
|
shadow_render_power = 3;
|
|
col.shadow = "rgba(1a1a1aee)";
|
|
};
|
|
|
|
animations = {
|
|
enabled = "yes";
|
|
|
|
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
|
|
|
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 = {
|
|
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
|
pseudotile = "yes"; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
preserve_split = "yes"; # you probably want this
|
|
};
|
|
|
|
master = {
|
|
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
|
new_is_master = true;
|
|
};
|
|
|
|
gestures = {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
workspace_swipe = "off";
|
|
};
|
|
|
|
misc = {
|
|
# See https://wiki.hyprland.org/Configuring/Variables/ for more
|
|
force_default_wallpaper = -1; # Set to 0 to disable the anime mascot wallpapers
|
|
};
|
|
|
|
# Example per-device config
|
|
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
|
|
"device:epic-mouse-v1" = {
|
|
sensitivity = -0.5;
|
|
};
|
|
};
|
|
};
|
|
}
|