feat: add home manager hyprland module to enable hyprland plugins

This commit is contained in:
DACHXY 2024-12-30 18:15:09 +08:00
parent 6997c5a968
commit 64499a5e90
30 changed files with 456 additions and 365 deletions

15
home/user/hypr/exec.nix Normal file
View file

@ -0,0 +1,15 @@
{ pkgs, lib, inputs, system, ... }:
let
startupScript = pkgs.pkgs.writeShellScriptBin "start" ''
swaync -s ~/.config/swaync/style.css -c ~/.config/swaync/config.json &
dbus-update-activation-environment --systemd --all &
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
waybar -c ~/.config/waybar/config.json -s ~/.config/waybar/style.css &
swayidle -w &
sway-audio-idle-inhibit &
fcitx5 -d -r &
fcitx5-remote -r &
hyprsunset -t 3000k &
'';
in
''${startupScript}/bin/start''