place-cursor-at (hackage):   Package maintainers  For package maintainers and hackage trustees  Candidates      A utility for X11 that moves the mouse cursor using the keyboard. Written in Haskell.  This utility only gives you an ability to quickly move your mouse cursor to one of 9 common spots of the screen. Itâs intended to reduce the use of the mouse, but not to replace it completely. It doesnât provide you accurate aiming, only approximate.  You bind a hotkey (in your WM configuration or by using xbindkeys) to run place-cursor-at (say Super+M) and when you press it you see 9 windows on current screen with letters shown on them. When you press a letter on your keyboard that is associated with one of those windows your mouse cursor appear at the center of that window and the application closes. Thus you can quickly move your mouse cursor to one of 9 different spots by two-step combo.  Other key bindings:  Press Escape to close the application (when one of the letter windows is focused)  Move focus to a letter window where you want your mouse cursor to be and press Enter (this is the same as pressing that letter on your keyboard)  I originally created this tool it for myself to use it with xmonad and i3.    Either one:  Nix Package Manager  The Haskell Tool Stack and:  See Nix Package Manager.  You can run this application like this:  See also shell.nixâs arguments for available options. For instance if you want to enter a nix-shell with cabal available:  You can add this application into your NixOS configuration.nix like this:  See The Haskell Tool Stack.  You could install place-cursor-at binary to ~/.local/bin directory (make sure you have this directory in your PATH environment variable):  If you need to work with Stack under NixOS for whatever reason you would have to use --system-ghc in order to make it work. You can manually add --system-ghc to each call of stack or define this alias for your convenience:  You also can run this application as a script (nix-shell script, so you have to install Nix Package Manager first):  But this application is intended to be used very often (to be run again and again many times) and to be very responsive, so itâs better to precompile it to reduce startup time.  By default it appears and do its stuff on display where your mouse cursor is. But you can specify which display where it should appear on:  Or on third display:  You can immediately jump to specific position of a screen without showing any GUI, like this:  Itâs case-insensitive, this also would work:  And you also can specify a display you want to jump to:  In any order of the arguments:  Viacheslav Lotsmanov  The logo is created by psikoz and some technical adjustments are made by Viacheslav Lotsmanov.  place-cursor-at â GNU/GPLv3  The logo â Creative Commons â Attribution 4.0 International (CC BY 4.0)  These files in artwork/logo directory in particular:
Keywords: desktop|desktop-environment|gpl|gui|program|utility|x11|cursor|haskell|haskell-stack|i3|i3wm|keyboard|linux|mouse|nix|stack|tiling-window-manager|xlib|xmonad