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";
hyprlan-plugins = {
url = "github:hyprwm/hyprland-plugins";
inputs.hyprland.follows = "hyprland";
};
};
outputs = { self, nixpkgs, ... }@inputs:
+5 -13
View File
@@ -8,6 +8,7 @@
../../modules/home-manager/dunst.nix
../../modules/home-manager/terminals/alacritty.nix
../../modules/desktop/bluetooth.nix
../../modules/desktop/hyprland.nix
];
# 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
@@ -135,10 +136,10 @@
recursive = true;
source = ../../modules/old_configs/ghostty;
};
"hypr" = {
recursive = true;
source = ../../modules/old_configs/hypr;
};
# "hypr" = {
# recursive = true;
# source = ../../modules/old_configs/hypr;
# };
"kitty" = {
recursive = true;
source = ../../modules/old_configs/kitty;
@@ -166,15 +167,6 @@
"user-dirs.dirs".source = ../../modules/old_configs/user-dirs.dirs;
"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
programs = {
+10 -12
View File
@@ -1,24 +1,22 @@
{
config,
inputs,
lib,
pkgs,
osConfig,
...
}:
let
home = builtins.getEnv "HOME";
in
{
home.packages = with pkgs; [
hyprpicker
# hyprlock
# hypridle
];
programs.hyprland = {
wayland.windowManager.hyprland = {
enable = true;
xwayland.enable = true;
systemdIntegration = true;
systemd.enable = true;
settings = {
monitor = [
"eDP-1,1920x1080@60,0x0,1"
@@ -30,6 +28,7 @@ in
"wl-paste -p --watch wl-copy -p ''"
];
env = [
"PATH,PATH:$HOME/.local"
"HYPRCURSOR_THEME,${config.gtk.cursorTheme.name}"
"HYPRCURSOR_SIZE,24"
"WLR_NO_HARDWARE_CURSORS,1"
@@ -82,7 +81,7 @@ in
drop_shadow = true;
shadow_range = 4;
shadow_render_power = 3;
col.shadow = "rgba(1a1a1aee)";
"col.shadow" = "rgba(1a1a1aee)";
};
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'";
bind = [
"$altMod, Return, exec, ${home}/.local/bin/ghostty"
"$mainMod, Return, exec, ${home}/.local/bin/ghostty" # for apps that yoink alt- binds
"$altMod, Return, exec, $HOME/.local/bin/ghostty"
"$mainMod, Return, exec, $HOME/.local/bin/ghostty" # for apps that yoink alt- binds
"$altMod SHIFT, Return, exec, alacritty"
"$mainMod SHIFT, D, exec, discord --enable-blink-features=MiddleClickAutoscroll"
"$mainMod SHIFT, E, exec, emacsclient -c -a 'emacs'"
@@ -252,8 +251,8 @@ in
"$mainMod, mouse:273, resizewindow"
];
# Screenshots and Submaps
extraConfig = ''
};
extraConfig = ''
bind = $mainMod, R, submap, resize
submap = resize
bind=, escape,submap,reset
@@ -299,7 +298,6 @@ in
bind=, escape,submap,reset
submap = reset
'';
};
'';
};
}