fix(Hyprland): fix wlr-which-key and hyprpaper scripts

This commit is contained in:
2025-11-07 02:26:13 +01:00
parent ba9a3c7168
commit 823d8b9bb6
7 changed files with 14 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
...
}:
with lib; let
@@ -43,7 +44,7 @@ in {
};
Service = {
Type = "oneshot";
ExecCondition = "pidof Hyprland";
ExecCondition = "${pkgs.procps}/bin/pidof Hyprland";
ExecStart = "${config.home.homeDirectory}/.config/hypr/hyprpaper-rotate.sh";
};
};
@@ -79,7 +80,7 @@ in {
echo "Setting wallpaper to: $WP"
# Load and set the wallpaper
hyprctl hyprpaper preload "$WP" && hyprctl hyprpaper wallpaper ",$WP"
${pkgs.hyprland}/bin/hyprctl hyprpaper preload "$WP" && ${pkgs.hyprland}/bin/hyprctl hyprpaper wallpaper ",$WP"
'';
executable = true;
};

View File

@@ -1,4 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "center-window" ''
pidof -x Hyprland && hyprctl dispatch centerwindow
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch centerwindow
''

View File

@@ -1,4 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "close-window" ''
pidof -x Hyprland && hyprctl dispatch killactive
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch killactive
''

View File

@@ -74,6 +74,11 @@
desc = "Bluetooth";
cmd = "${pkgs.rofi-bluetooth}/bin/rofi-bluetooth";
}
{
key = "c";
desc = "calc";
cmd = "rofi -show calc";
}
{
key = "e";
desc = "Emoji";
@@ -82,7 +87,7 @@
{
key = "r";
desc = "App Menu";
cmd = "rofi -combi-modi drun,calc -show combi";
cmd = "rofi -show drun";
}
{
key = "s";

View File

@@ -1,5 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "float" ''
pidof -x Hyprland && hyprctl dispatch togglefloating
echo test
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch togglefloating
''

View File

@@ -1,4 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "focus-urgent" ''
pidof -x Hyprland && hyprctl dispatch focusurgentorlast
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch focusurgentorlast
''

View File

@@ -1,4 +1,4 @@
{pkgs, ...}:
pkgs.writeShellScriptBin "fullscreen" ''
pidof -x Hyprland && hyprctl dispatch fullscreen
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch fullscreen
''