mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 12:02:09 +02:00
UWSM Hyprland
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# Hypridle is a daemon that listens for user activity and runs commands when the user is idle.
|
# Hypridle is a daemon that listens for user activity and runs commands when the user is idle.
|
||||||
{ pkgs, ... }: {
|
{ pkgs, lib, ... }: {
|
||||||
services.hypridle = {
|
services.hypridle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
@@ -24,4 +24,6 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
systemd.user.services.hypridle.Unit.After =
|
||||||
|
lib.mkForce "graphical-session.target";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,16 @@
|
|||||||
{ pkgs, ... }: {
|
{ pkgs, ... }: {
|
||||||
wayland.windowManager.hyprland.settings = {
|
wayland.windowManager.hyprland.settings = {
|
||||||
bind = [
|
bind = [
|
||||||
"$mod,RETURN, exec, ${pkgs.kitty}/bin/kitty" # Kitty
|
"$mod,RETURN, exec, uwsm app -- ${pkgs.kitty}/bin/kitty" # Kitty
|
||||||
"$mod,E, exec, ${pkgs.xfce.thunar}/bin/thunar" # Thunar
|
"$mod,E, exec, uwsm app -- ${pkgs.xfce.thunar}/bin/thunar" # Thunar
|
||||||
"$mod,B, exec, zen" # Zen Browser
|
"$mod,B, exec, uwsm app -- zen-beta" # Zen Browser
|
||||||
"$mod,K, exec, ${pkgs.bitwarden}/bin/bitwarden" # Bitwarden
|
"$mod,K, exec, uwsm app -- ${pkgs.bitwarden}/bin/bitwarden" # Bitwarden
|
||||||
"$mod,L, exec, ${pkgs.hyprlock}/bin/hyprlock" # Lock
|
"$mod,L, exec, uwsm app -- ${pkgs.hyprlock}/bin/hyprlock" # Lock
|
||||||
"$mod,X, exec, powermenu" # Powermenu
|
"$mod,X, exec, powermenu" # Powermenu
|
||||||
"$mod,SPACE, exec, menu" # Launcher
|
"$mod,SPACE, exec, menu" # Launcher
|
||||||
"$mod,C, exec, quickmenu" # Quickmenu
|
"$mod,C, exec, quickmenu" # Quickmenu
|
||||||
"$shiftMod,SPACE, exec, hyprfocus-toggle" # Toggle HyprFocus
|
"$shiftMod,SPACE, exec, hyprfocus-toggle" # Toggle HyprFocus
|
||||||
"$mod,P, exec, ${pkgs.planify}/bin/io.github.alainm23.planify" # Planify
|
"$mod,P, exec, uwsm app -- ${pkgs.planify}/bin/io.github.alainm23.planify" # Planify
|
||||||
|
|
||||||
"$mod,Q, killactive," # Close window
|
"$mod,Q, killactive," # Close window
|
||||||
"$mod,T, togglefloating," # Toggle Floating
|
"$mod,T, togglefloating," # Toggle Floating
|
||||||
|
|||||||
@@ -47,11 +47,12 @@ in {
|
|||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
xwayland.enable = true;
|
xwayland.enable = true;
|
||||||
systemd.enable = true;
|
systemd = {
|
||||||
# withUWSM = true; # One day, but not today
|
enable = false;
|
||||||
systemd.variables = [
|
variables = [
|
||||||
"--all"
|
"--all"
|
||||||
]; # https://wiki.hyprland.org/Nix/Hyprland-on-Home-Manager/#programs-dont-work-in-systemd-services-but-do-on-the-terminal
|
]; # https://wiki.hyprland.org/Nix/Hyprland-on-Home-Manager/#programs-dont-work-in-systemd-services-but-do-on-the-terminal
|
||||||
|
};
|
||||||
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
||||||
portalPackage =
|
portalPackage =
|
||||||
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# Hyprpaper is used to set the wallpaper on the system
|
# Hyprpaper is used to set the wallpaper on the system
|
||||||
{
|
{ lib, ... }: {
|
||||||
# The wallpaper is set by stylix
|
# The wallpaper is set by stylix
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -9,4 +9,6 @@
|
|||||||
splash_offset = 2.0;
|
splash_offset = 2.0;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
systemd.user.services.hyprpaper.Unit.After =
|
||||||
|
lib.mkForce "graphical-session.target";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,12 +8,12 @@
|
|||||||
../../nixos/home-manager.nix
|
../../nixos/home-manager.nix
|
||||||
../../nixos/nix.nix
|
../../nixos/nix.nix
|
||||||
../../nixos/systemd-boot.nix
|
../../nixos/systemd-boot.nix
|
||||||
# ../../nixos/grub.nix
|
|
||||||
../../nixos/sddm.nix
|
../../nixos/sddm.nix
|
||||||
../../nixos/users.nix
|
../../nixos/users.nix
|
||||||
../../nixos/utils.nix
|
../../nixos/utils.nix
|
||||||
# ../../nixos/docker.nix
|
|
||||||
../../nixos/tailscale.nix
|
../../nixos/tailscale.nix
|
||||||
|
../../nixos/hyprland.nix
|
||||||
|
|
||||||
../../nixos/omen.nix # For my laptop only
|
../../nixos/omen.nix # For my laptop only
|
||||||
|
|
||||||
# You should let those lines as is
|
# You should let those lines as is
|
||||||
|
|||||||
6
nixos/hyprland.nix
Normal file
6
nixos/hyprland.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
withUWSM = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -105,10 +105,7 @@ in {
|
|||||||
hyprland.default = [ "gtk" "hyprland" ];
|
hyprland.default = [ "gtk" "hyprland" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPortals = [
|
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
pkgs.xdg-desktop-portal-gtk
|
|
||||||
inputs.hyprland.packages."${pkgs.system}".xdg-desktop-portal-hyprland
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
security = {
|
security = {
|
||||||
|
|||||||
Reference in New Issue
Block a user