chore(home/linux/gui/hyprland): remove scripts & unused packages, use hyprlock & hypridle

This commit is contained in:
Ryan Yin
2025-06-01 01:03:56 +08:00
parent 0342d55c4f
commit 4080bad9df
16 changed files with 60 additions and 214 deletions

View File

@@ -7,18 +7,32 @@
}: let
package = pkgs.hyprland;
in {
# hyprland configs, based on https://github.com/notwidow/hyprland
xdg.configFile = let
mkSymlink = config.lib.file.mkOutOfStoreSymlink;
hyprPath = "${config.home.homeDirectory}/nix-config/home/linux/gui/hyprland/conf";
in {
"mako".source = mkSymlink "${hyprPath}/mako";
"waybar".source = mkSymlink "${hyprPath}/waybar";
"wlogout".source = mkSymlink "${hyprPath}/wlogout";
"hypr/hypridle.conf".source = mkSymlink "${hyprPath}/hypridle.conf";
"hypr/configs".source = mkSymlink "${hyprPath}/configs";
"hypr/mako".source = mkSymlink "${hyprPath}/mako";
"hypr/scripts".source = mkSymlink "${hyprPath}/scripts";
"hypr/waybar".source = mkSymlink "${hyprPath}/waybar";
"hypr/wlogout".source = mkSymlink "${hyprPath}/wlogout";
};
# status bar
programs.waybar.enable = true;
# screen locker
programs.hyprlock.enable = true;
# Logout Menu
programs.wlogout.enable = true;
# Hyprland idle daemon
services.hypridle.enable = true;
# notification daemon, the same as dunst
services.mako.enable = true;
# NOTE:
# We have to enable hyprland/i3's systemd user service in home-manager,
# so that gammastep/wallpaper-switcher's user service can be start correctly!

View File

@@ -1,26 +1,17 @@
{
pkgs,
pkgs-unstable,
...
}: {
home.packages = with pkgs; [
waybar # the status bar
swaybg # the wallpaper
swayidle # the idle timeout
swaylock # locking the screen
wlogout # logout menu
wl-clipboard # copying and pasting
hyprpicker # color picker
pkgs-unstable.hyprshot # screen shot
grim # taking screenshots
slurp # selecting a region to screenshot
hyprshot # screen shot
wf-recorder # screen recording
mako # the notification daemon, the same as dunst
yad # a fork of zenity, for creating dialogs
# audio
alsa-utils # provides amixer/alsamixer/...
networkmanagerapplet # provide GUI app: nm-connection-editor