hyprland.nix
This commit is contained in:
@@ -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
@@ -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 = {
|
||||||
|
|||||||
@@ -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,12 +251,12 @@ 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
|
||||||
|
|
||||||
binde=, left, resizeactive, -10 0
|
binde=, left, resizeactive, -10 0
|
||||||
bindr=, left, submap, reset
|
bindr=, left, submap, reset
|
||||||
binde=, right, resizeactive, 10 0
|
binde=, right, resizeactive, 10 0
|
||||||
@@ -266,7 +265,7 @@ in
|
|||||||
bindr=, up, submap, reset
|
bindr=, up, submap, reset
|
||||||
binde=, down, resizeactive, 0 -10
|
binde=, down, resizeactive, 0 -10
|
||||||
bindr=, down, submap, reset
|
bindr=, down, submap, reset
|
||||||
|
|
||||||
binde=, H, resizeactive, -10 0
|
binde=, H, resizeactive, -10 0
|
||||||
bindr=, H, submap, reset
|
bindr=, H, submap, reset
|
||||||
binde=, J, resizeactive, 0 -10
|
binde=, J, resizeactive, 0 -10
|
||||||
@@ -275,31 +274,30 @@ in
|
|||||||
bindr=, K, submap, reset
|
bindr=, K, submap, reset
|
||||||
binde=, L, resizeactive, 10 0
|
binde=, L, resizeactive, 10 0
|
||||||
bindr=, L, submap, reset
|
bindr=, L, submap, reset
|
||||||
|
|
||||||
submap=reset
|
submap=reset
|
||||||
|
|
||||||
bind = $mainMod, B, submap, browser_select
|
bind = $mainMod, B, submap, browser_select
|
||||||
submap = browser_select
|
submap = browser_select
|
||||||
|
|
||||||
bind =, B, exec, brave --enable-blink-features=MiddleClickAutoscroll
|
bind =, B, exec, brave --enable-blink-features=MiddleClickAutoscroll
|
||||||
bind =, B, submap, reset
|
bind =, B, submap, reset
|
||||||
|
|
||||||
bind =, F, exec, firefox
|
bind =, F, exec, firefox
|
||||||
bind =, F, submap, reset
|
bind =, F, submap, reset
|
||||||
|
|
||||||
bind=, escape,submap,reset
|
bind=, escape,submap,reset
|
||||||
submap=reset
|
submap=reset
|
||||||
|
|
||||||
bind = $mainMod SHIFT, V, submap, video_stuff
|
bind = $mainMod SHIFT, V, submap, video_stuff
|
||||||
submap = video_stuff
|
submap = video_stuff
|
||||||
bind = , O, exec, obs
|
bind = , O, exec, obs
|
||||||
bind = , O, submap, reset
|
bind = , O, submap, reset
|
||||||
bind = , V, exec , kdenlive
|
bind = , V, exec , kdenlive
|
||||||
bind = , V, submap, reset
|
bind = , V, submap, reset
|
||||||
|
|
||||||
bind=, escape,submap,reset
|
bind=, escape,submap,reset
|
||||||
submap = reset
|
submap = reset
|
||||||
'';
|
'';
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user