fix(Hyprland): fix wlr-which-key and hyprpaper scripts
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
@@ -43,7 +44,7 @@ in {
|
|||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecCondition = "pidof Hyprland";
|
ExecCondition = "${pkgs.procps}/bin/pidof Hyprland";
|
||||||
ExecStart = "${config.home.homeDirectory}/.config/hypr/hyprpaper-rotate.sh";
|
ExecStart = "${config.home.homeDirectory}/.config/hypr/hyprpaper-rotate.sh";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -79,7 +80,7 @@ in {
|
|||||||
echo "Setting wallpaper to: $WP"
|
echo "Setting wallpaper to: $WP"
|
||||||
|
|
||||||
# Load and set the wallpaper
|
# 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;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
pkgs.writeShellScriptBin "center-window" ''
|
pkgs.writeShellScriptBin "center-window" ''
|
||||||
pidof -x Hyprland && hyprctl dispatch centerwindow
|
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch centerwindow
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
pkgs.writeShellScriptBin "close-window" ''
|
pkgs.writeShellScriptBin "close-window" ''
|
||||||
pidof -x Hyprland && hyprctl dispatch killactive
|
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch killactive
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -74,6 +74,11 @@
|
|||||||
desc = "Bluetooth";
|
desc = "Bluetooth";
|
||||||
cmd = "${pkgs.rofi-bluetooth}/bin/rofi-bluetooth";
|
cmd = "${pkgs.rofi-bluetooth}/bin/rofi-bluetooth";
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
key = "c";
|
||||||
|
desc = "calc";
|
||||||
|
cmd = "rofi -show calc";
|
||||||
|
}
|
||||||
{
|
{
|
||||||
key = "e";
|
key = "e";
|
||||||
desc = "Emoji";
|
desc = "Emoji";
|
||||||
@@ -82,7 +87,7 @@
|
|||||||
{
|
{
|
||||||
key = "r";
|
key = "r";
|
||||||
desc = "App Menu";
|
desc = "App Menu";
|
||||||
cmd = "rofi -combi-modi drun,calc -show combi";
|
cmd = "rofi -show drun";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
key = "s";
|
key = "s";
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
pkgs.writeShellScriptBin "float" ''
|
pkgs.writeShellScriptBin "float" ''
|
||||||
pidof -x Hyprland && hyprctl dispatch togglefloating
|
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch togglefloating
|
||||||
echo test
|
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
pkgs.writeShellScriptBin "focus-urgent" ''
|
pkgs.writeShellScriptBin "focus-urgent" ''
|
||||||
pidof -x Hyprland && hyprctl dispatch focusurgentorlast
|
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch focusurgentorlast
|
||||||
''
|
''
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{pkgs, ...}:
|
{pkgs, ...}:
|
||||||
pkgs.writeShellScriptBin "fullscreen" ''
|
pkgs.writeShellScriptBin "fullscreen" ''
|
||||||
pidof -x Hyprland && hyprctl dispatch fullscreen
|
${pkgs.procps}/bin/pidof -x Hyprland && ${pkgs.hyprland}/bin/hyprctl dispatch fullscreen
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user