hyprland.nix

This commit is contained in:
2024-04-02 00:55:27 +01:00
parent fb6a7851d8
commit 45a1233bbf
3 changed files with 27 additions and 33 deletions
+4
View File
@@ -9,6 +9,10 @@
}; };
hyprland.url = "github:hyprwm/Hyprland"; hyprland.url = "github:hyprwm/Hyprland";
hyprlan-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
}; };
outputs = { self, nixpkgs, ... }@inputs: outputs = { self, nixpkgs, ... }@inputs:
+5 -13
View File
@@ -8,6 +8,7 @@
../../modules/home-manager/dunst.nix ../../modules/home-manager/dunst.nix
../../modules/home-manager/terminals/alacritty.nix ../../modules/home-manager/terminals/alacritty.nix
../../modules/desktop/bluetooth.nix ../../modules/desktop/bluetooth.nix
../../modules/desktop/hyprland.nix
]; ];
# You should not change this value, even if you update Home Manager. If you do # You should not change this value, even if you update Home Manager. If you do
# want to update the value, then make sure to first check the Home Manager # want to update the value, then make sure to first check the Home Manager
@@ -135,10 +136,10 @@
recursive = true; recursive = true;
source = ../../modules/old_configs/ghostty; source = ../../modules/old_configs/ghostty;
}; };
"hypr" = { # "hypr" = {
recursive = true; # recursive = true;
source = ../../modules/old_configs/hypr; # source = ../../modules/old_configs/hypr;
}; # };
"kitty" = { "kitty" = {
recursive = true; recursive = true;
source = ../../modules/old_configs/kitty; source = ../../modules/old_configs/kitty;
@@ -166,15 +167,6 @@
"user-dirs.dirs".source = ../../modules/old_configs/user-dirs.dirs; "user-dirs.dirs".source = ../../modules/old_configs/user-dirs.dirs;
"user-dirs.locale".source = ../../modules/old_configs/user-dirs.locale; "user-dirs.locale".source = ../../modules/old_configs/user-dirs.locale;
}; };
wayland.windowManager.hyprland = {
enable = true;
systemd.enable = true;
xwayland.enable = true;
# extraConfig = ''
# ${builtins.readFile ./hyprland.conf}
# '';
};
# BEGIN PROGRAMS # BEGIN PROGRAMS
programs = { programs = {
+10 -12
View File
@@ -1,24 +1,22 @@
{ {
config, config,
inputs,
lib, lib,
pkgs, pkgs,
osConfig, osConfig,
... ...
}: }:
let
home = builtins.getEnv "HOME";
in
{ {
home.packages = with pkgs; [ home.packages = with pkgs; [
hyprpicker hyprpicker
# hyprlock # hyprlock
# hypridle # hypridle
]; ];
programs.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
xwayland.enable = true; xwayland.enable = true;
systemdIntegration = true; systemd.enable = true;
settings = { settings = {
monitor = [ monitor = [
"eDP-1,1920x1080@60,0x0,1" "eDP-1,1920x1080@60,0x0,1"
@@ -30,6 +28,7 @@ in
"wl-paste -p --watch wl-copy -p ''" "wl-paste -p --watch wl-copy -p ''"
]; ];
env = [ env = [
"PATH,PATH:$HOME/.local"
"HYPRCURSOR_THEME,${config.gtk.cursorTheme.name}" "HYPRCURSOR_THEME,${config.gtk.cursorTheme.name}"
"HYPRCURSOR_SIZE,24" "HYPRCURSOR_SIZE,24"
"WLR_NO_HARDWARE_CURSORS,1" "WLR_NO_HARDWARE_CURSORS,1"
@@ -82,7 +81,7 @@ in
drop_shadow = true; drop_shadow = true;
shadow_range = 4; shadow_range = 4;
shadow_render_power = 3; shadow_render_power = 3;
col.shadow = "rgba(1a1a1aee)"; "col.shadow" = "rgba(1a1a1aee)";
}; };
animations = { animations = {
@@ -153,8 +152,8 @@ in
"$screenshotarea" = "hyprctl keyword animation 'fadeOut,0,0,default'; grimblast --notify copy area; hyprctl keyword animation 'fadeOut,1,4,default'"; "$screenshotarea" = "hyprctl keyword animation 'fadeOut,0,0,default'; grimblast --notify copy area; hyprctl keyword animation 'fadeOut,1,4,default'";
bind = [ bind = [
"$altMod, Return, exec, ${home}/.local/bin/ghostty" "$altMod, Return, exec, $HOME/.local/bin/ghostty"
"$mainMod, Return, exec, ${home}/.local/bin/ghostty" # for apps that yoink alt- binds "$mainMod, Return, exec, $HOME/.local/bin/ghostty" # for apps that yoink alt- binds
"$altMod SHIFT, Return, exec, alacritty" "$altMod SHIFT, Return, exec, alacritty"
"$mainMod SHIFT, D, exec, discord --enable-blink-features=MiddleClickAutoscroll" "$mainMod SHIFT, D, exec, discord --enable-blink-features=MiddleClickAutoscroll"
"$mainMod SHIFT, E, exec, emacsclient -c -a 'emacs'" "$mainMod SHIFT, E, exec, emacsclient -c -a 'emacs'"
@@ -252,8 +251,8 @@ in
"$mainMod, mouse:273, resizewindow" "$mainMod, mouse:273, resizewindow"
]; ];
# Screenshots and Submaps };
extraConfig = '' extraConfig = ''
bind = $mainMod, R, submap, resize bind = $mainMod, R, submap, resize
submap = resize submap = resize
bind=, escape,submap,reset bind=, escape,submap,reset
@@ -299,7 +298,6 @@ in
bind=, escape,submap,reset bind=, escape,submap,reset
submap = reset submap = reset
''; '';
};
}; };
} }