Git Product home page Git Product logo

Comments (4)

z3bra avatar z3bra commented on July 17, 2024

from core.

kanbara avatar kanbara commented on July 17, 2024

Cheers.

Yeah, I'll look into it... though it looks like `xmmv' was removed in 74badd. I come from i3 so I'm sure I'll manage, as I rarely use the mouse, but I was going through peoples' dotfiles when I noticed it.

from core.

z3bra avatar z3bra commented on July 17, 2024

Jay wrote:

Cheers.

Yeah, I'll look into it... though it looks like `xmmv' was removed in 74badd.
I come from i3 so I'm sure I'll manage, as I rarely use the mouse, but I was
going through peoples' dotfiles when I noticed it.

After reading a bit through sxhkd source code, it looks like you can make it
write the pointer's coordinates to a socket, using a formatted string ('X' and
'Y' will be replaced by the coordinates, like "%i %i" before the update).

That will be hard to use correctly with wmutils, but it is perfect for bspwm
which reads commands from a socket. The user only has to tell "start
executing commands from the socket" and "stop executing commands from the
socket" (namely, bspc -g/bspc -u).

There might be a solution working with wmutils, using a wrapper script;
something amongst those lines:

#!/bin/sh

MAGIC=0xdeadca7
SOCKET=/tmp/sxhkd.sock

tail -n0 -f $SOCKET | while read cmd; do
    test "$cmd" = "$MAGIC" && exit 0 || $cmd
done

Running the script will start moving/resizing (depending in the template given
to sxhkd). Stopping the movement would be as easy as:

echo 0xdeadca7 > /tmp/sxhkd.sock

Disclaimer: I didn't test anything, but I see no reason why it would fail.

from core.

z3bra avatar z3bra commented on July 17, 2024

Closed as not an issue.

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.