Update system
This commit is contained in:
parent
84b5700555
commit
b222c15014
10 changed files with 150 additions and 209 deletions
|
@ -1,11 +1,12 @@
|
|||
{ system, inputs, impurity, lib, config, pkgs, ... }: let
|
||||
inherit (inputs) hyprland hyprpaper hyprland-hy3;
|
||||
|
||||
wrapper = pkgs.writeShellScriptBin "hyprland" ''
|
||||
# I blame home manager
|
||||
wrapper = pkgs.callPackage ({ ... }: pkgs.writeShellScriptBin "hyprland" ''
|
||||
${builtins.readFile ./session.sh}
|
||||
${config.hyprland-session.prerun}
|
||||
${hyprland.packages.${system}.default}/bin/Hyprland $@
|
||||
'';
|
||||
'') {};
|
||||
in {
|
||||
imports = [ hyprland.nixosModules.default ];
|
||||
|
||||
|
@ -31,10 +32,15 @@ in {
|
|||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = true;
|
||||
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-kde
|
||||
];
|
||||
|
||||
config.common.default = [
|
||||
"hyprland"
|
||||
"kde"
|
||||
];
|
||||
};
|
||||
|
||||
security.pam.services.swaylock = {};
|
||||
|
@ -44,6 +50,7 @@ in {
|
|||
|
||||
home.packages = with pkgs; [
|
||||
wrapper
|
||||
hyprpaper
|
||||
|
||||
# environment programs
|
||||
wl-clipboard
|
||||
|
@ -68,7 +75,7 @@ in {
|
|||
enable = true;
|
||||
|
||||
package = wrapper;
|
||||
plugins = [ hyprland-hy3.packages.${system}.default ];
|
||||
plugins = [ hyprland-hy3.packages.${system}.default inputs.hyprfocus.packages.${system}.default ];
|
||||
|
||||
extraConfig = ''
|
||||
exec-once = ${hyprpaper.packages.${system}.default}/bin/hyprpaper
|
||||
|
|
|
@ -83,12 +83,30 @@ plugin {
|
|||
trigger_height = 500
|
||||
}
|
||||
}
|
||||
|
||||
hyprfocus {
|
||||
enabled = false
|
||||
|
||||
keyboard_focus_animation = shrink
|
||||
|
||||
bezier = bezIn, 0.5,0.0,1.0,0.5
|
||||
bezier = bezOut, 0.0,0.5,0.5,1.0
|
||||
|
||||
shrink {
|
||||
shrink_percentage = 0.99
|
||||
|
||||
in_bezier = bezIn
|
||||
in_speed = 1
|
||||
|
||||
out_bezier = bezOut
|
||||
out_speed = 3
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
monitor = , preferred, auto, 1
|
||||
|
||||
layerrule = blur, wofi
|
||||
layerrule = blur, ironbar
|
||||
|
||||
windowrulev2 = float, class:^(opensnitch_ui)$
|
||||
windowrulev2 = dimaround, class:^(opensnitch_ui)$
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue