From d681937c89b5cada0ba0cc013556fe450c2069a4 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Mon, 26 Aug 2024 08:52:25 -0400 Subject: [PATCH] Final touches on hyprland --- configs/nwg-bar/bar.json | 12 +++++++++++- modules/nixos/desktop/hyprland.nix | 5 ++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/configs/nwg-bar/bar.json b/configs/nwg-bar/bar.json index 6514de7..a874e8e 100644 --- a/configs/nwg-bar/bar.json +++ b/configs/nwg-bar/bar.json @@ -1,4 +1,14 @@ [ + { + "label": "Sleep", + "exec": "systemctl suspend", + "icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-suspend.svg" + }, + { + "label": "Hibernate", + "exec": "systemctl hibernate", + "icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-hibernate.svg" + }, { "label": "Logout", "exec": "hyprctl dispatch exit", @@ -14,4 +24,4 @@ "exec": "systemctl -i poweroff", "icon": "/nix/store/rwc6cn4dcv2simn3c4kmy2wgi0s9x3df-nwg-bar-0.1.6/share/nwg-bar/images/system-shutdown.svg" } -] +] \ No newline at end of file diff --git a/modules/nixos/desktop/hyprland.nix b/modules/nixos/desktop/hyprland.nix index 092588f..6d6d4b4 100644 --- a/modules/nixos/desktop/hyprland.nix +++ b/modules/nixos/desktop/hyprland.nix @@ -63,7 +63,10 @@ in ln -s "/home/${config.skyg.user.name}/nixos-setup/configs/hypr" "$HOME/.config/hypr" fi if [[ ! -h "$HOME/.config/waybar" ]]; then - ln -s "/home/${config.skyg.user.name}/nixos-setup/configs/waybar" "$HOME/.config/hypr" + ln -s "/home/${config.skyg.user.name}/nixos-setup/configs/waybar" "$HOME/.config/waybar" + fi + if [[ ! -h "$HOME/.config/nwg-bar" ]]; then + ln -s "/home/${config.skyg.user.name}/nixos-setup/configs/nwg-bar" "$HOME/.config/nwg-bar" fi ''; };