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,18 +1,12 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
script = pkgs.writeShellScriptBin "flick-action" ''
|
||||
{
|
||||
package = pkgs.writeShellScriptBin "flick-action" ''
|
||||
if ! command -v ydotool >/dev/null 2>&1; then
|
||||
notify-send -r 120000 "Flick" "This tool requires ydotool to be installed on your system."
|
||||
${pkgs.libnotify}/bin/notify-send -r 120000 "Flick" "This tool requires ydotool to be installed on your system."
|
||||
fi
|
||||
ydotool mousemove -- 800 0
|
||||
sleep 0.03
|
||||
ydotool mousemove -- -800 0
|
||||
'';
|
||||
in
|
||||
{
|
||||
package = pkgs.symlinkJoin {
|
||||
name = "autoclick-action";
|
||||
paths = [ script pkgs.libnotify ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue