Code Monkey home page Code Monkey logo

Comments (4)

worron avatar worron commented on August 20, 2024

Yes, it is. Most of floating widgets can use custom position function. I use one to fix tray in right bottom corner. Just fix theme file by removing this function and tray will follow mouse then.

theme.widget.minitray = {
	border_width = 0,
	geometry     = { height = 40 },
	screen_gap   = 2 * theme.useless_gap,
	color        = { wibox = theme.color.wibox, border = theme.color.wibox },
	set_position = function() -- remove this for position by mouse
		return { x = mouse.screen.workarea.x + mouse.screen.workarea.width,
		         y = mouse.screen.workarea.y + mouse.screen.workarea.height }
	end,
}

from redflat.

iddm avatar iddm commented on August 20, 2024

Nice point, thanks. However, don't you think it is better to spawn the minitray right under the mouse all the time? For example, if you click the tray icon widget the mouse is above it anyway, so the minitray widget will be spawned correctly all the time.

from redflat.

worron avatar worron commented on August 20, 2024

However, don't you think it is better to spawn the minitray right under the mouse all the time?

No, I don't. There is a possibility to show tray by hotkey just to check apps. Anyway I moved this function to theme (read like individual settings) for better flexibility.

from redflat.

iddm avatar iddm commented on August 20, 2024

Thanks!

from redflat.

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.