Giter VIP home page Giter VIP logo

Comments (3)

geommer avatar geommer commented on August 15, 2024

@Lindenk thank you for this. I think I just made what you want but I really would like to see what tools would benefit from this (I tried to test it using a tool named maim but it was just a meaningless test). I added $YABAR_BLOCK_X, $YABAR_BLOCK_Y, $YABAR_BLOCK_WIDTH because $YABAR_BLOCK_HEIGHT is the same as the bar height. X and Y env variables are currently the absolute values on the screen.

from yabar.

geommer avatar geommer commented on August 15, 2024

I changed YABAR_BLOCK_X to be always the start absolute x of the block instead of the exact press position. Also YABAR_BLOCK_Y is the absolute y position just below the block in case of top bar or just above the block in case of bottom bar. This, I guess, makes more sense to draw your window-on-button-press just below or above the bar and consequently not drawing it inside yabar area.

from yabar.

Lindenk avatar Lindenk commented on August 15, 2024

Sweet. That looks like exactly what I was thinking. Some of the inspiration for the idea came from configurations for calendars or volume sliders that appeared when a block was clicked on (for example, this calendar made with dzen2)

from yabar.

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.