mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-12-10 03:49:44 +00:00
refactor(mouse-actions): use absolute paths
This commit is contained in:
parent
1c99f9d063
commit
e9f087deed
6 changed files with 42 additions and 72 deletions
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue