nix-config/home/modules/graphical/mouse-actions/actions/flick.nix

12 lines
335 B
Nix

{ pkgs, ... }:
{
package = pkgs.writeShellScriptBin "flick-action" ''
if ! command -v ydotool >/dev/null 2>&1; then
${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
'';
}