Comments (4)
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.
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.
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.
Thanks!
from redflat.
Related Issues (20)
- Process names with spaces not correctly recognized by system.lua HOT 2
- Task tooltip UX behavior for single clients HOT 4
- Hello how can I install it on arch? HOT 2
- Application launcher fails when program.Name is nil HOT 2
- menu.add_size should be positive HOT 2
- Modifying for HiDPI? HOT 4
- Minitray not drawing background HOT 4
- Mini tray double background
- The error popup is very small HOT 3
- readme or documentation HOT 2
- layout problem on the desktop HOT 1
- "User Map" layout breaks on toggling maximized window HOT 2
- sysmon widget usage HOT 1
- Pulse widget does not update default sink when headset is connected HOT 2
- Qlaunch does not accept any input (mouse and keyboard) HOT 4
- Borderless maximized windows HOT 3
- Initial key registered twice by keychain HOT 1
- Desktop widgets appearing on wrong screen.
- Grid layout multimonitor error popup message HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redflat.