From 61cb059df91afc8ec03428cfd1c5c08800225546 Mon Sep 17 00:00:00 2001 From: LarsZauberer Date: Sat, 13 Apr 2024 19:35:09 +0200 Subject: [PATCH] Hyprland config --- hosts/lars/hyprland.nix | 23 +++++++++++++++++++++-- hosts/lars/kronos/configuration.nix | 5 +++++ hosts/lars/programs.nix | 1 + 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/hosts/lars/hyprland.nix b/hosts/lars/hyprland.nix index 4226214..dfbeee3 100644 --- a/hosts/lars/hyprland.nix +++ b/hosts/lars/hyprland.nix @@ -55,8 +55,25 @@ in { kb_layout = "ch"; }; + bezier = [ + "wind, 0.05, 0.9, 0.1, 1.05" + "winIn, 0.1, 1.1, 0.1, 1.1" + "winOut, 0.3, -0.3, 0, 1" + "liner, 1, 1, 1, 1" + ]; + animation = [ - "workspaces,1,10,default" + "windows, 1, 6, wind, slide" + "windowsIn, 1, 6, winIn, slide" + "windowsOut, 1, 5, winOut, slide" + "windowsMove, 1, 5, wind, slide" + "border, 1, 1, liner" + "borderangle, 1, 30, liner, loop" + "fade, 1, 10, default" + "workspaces, 1, 5, wind" + ]; + + exec-once = [ ]; bind = [ @@ -64,6 +81,8 @@ in { "$mod, return, exec, alacritty" "$mod SHIFT, return, exec, firefox" "$mod SHIFT, m, exit" + ", F11, exec, pamixer -d 2" + ", F12, exec, pamixer -i 2" # Application "$mod SHIFT, c, exec, code --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu" @@ -80,7 +99,7 @@ in { "$mod, F, fullscreen" # Screenshot - "$mod SHIFT, s, exec, grim -g 'slurp -d' - | wl-copy" + "$mod SHIFT, s, exec, grim -g '$(slurp -d)' - | wl-copy" ] ++ ( builtins.concatLists (builtins.genList ( diff --git a/hosts/lars/kronos/configuration.nix b/hosts/lars/kronos/configuration.nix index 0189d05..70ef21c 100644 --- a/hosts/lars/kronos/configuration.nix +++ b/hosts/lars/kronos/configuration.nix @@ -14,6 +14,11 @@ "DP-2,2560x1440@144,0x0,1" "DP-1,1920x1080@60,2560x0,1" ]; + extra = { + exec-once = [ + "hyprctl dispatch moveworkspacetomonitor 1 DP-2" + ]; + }; }; }; diff --git a/hosts/lars/programs.nix b/hosts/lars/programs.nix index 651a82a..459545e 100644 --- a/hosts/lars/programs.nix +++ b/hosts/lars/programs.nix @@ -52,6 +52,7 @@ in { grim slurp wl-clipboard + pavucontrol ]; }; }