refactor(mouse-actions): use absolute paths

This commit is contained in:
toast 2025-11-09 21:26:22 +09:00
parent 1c99f9d063
commit e9f087deed
6 changed files with 42 additions and 72 deletions

View file

@ -1,7 +1,7 @@
{ pkgs }:
let
script = pkgs.writeShellScriptBin "cycle-mouse-action" ''
{
package = pkgs.writeShellScriptBin "cycle-mouse-action" ''
STATE_FILE="$HOME/.config/mouse-actions/state"
mkdir -p "$(dirname "$STATE_FILE")"
@ -21,10 +21,4 @@ let
echo "$NEW_ACTION" > "$STATE_FILE.tmp"
mv "$STATE_FILE.tmp" "$STATE_FILE"
'';
in
{
package = pkgs.symlinkJoin {
name = "cycle-mouse-action";
paths = [ script pkgs.libnotify ];
};
}