|
Post by thewaiter on Jan 18, 2021 19:01:46 GMT
Hello there Enigma9o7's request has been answered, lol. He was asking for a shelf module, mirroring the window border controls for minimize, maximize and close. What is this actually good for? Let me explain...1. For small laptop screens the windows borders could be a waste of the desktop space. So why not to set windows as borderless? It is possible in Border settings. But how to control the borderless window? With key shortcuts? Yes, possible. But not always effective. From task module? Yes, also possible but you need to press right mouse button, go up to the close item and click. Despite the several other ways, there could be a room for using the wincontrol module. 2. For laptops with touch screen. It could be pretty annoying to use border control windows with thumbs. Maybe wincontrol gadget on the shelf could be a solution. 3. In tablet mode. In the past in e17 was a tablet mode profile with illume modules. There was not the app close possibility. Maybe one day the Bodhi team will bring back these modules although it needs lots of hard work. Who knows.... The wincontrol gadget is ready, though, lol. OK, now the usageI wanted something more than just a simple button click action for closing apps. What about adding the iconify and toggle max/normal window controls? Yes, it is possible with mouse or touchpad scroll gestures. Scroll down means the win iconify. Scroll up one wheel position means toggle max/normal. Takes practice to get the hang of this. How to installsudo apt install moksha-module-wincontrol menu->settings->modules->wincontrol load Place the gadget on the shelf or desktop to you liking. Thx Ylee for the packaging work. Any feedback appreciated to this very first module version Štefan
|
|
|
Post by ylee on Jan 18, 2021 20:56:22 GMT
In ways this module is a part of our project to resurrect old e17 modules. Bodhi used to have a module called I believe Bodhi-close, created by Stephen "okra" Houston ... if memory serves me right. Okra never had the code for this in git or e-git and over the years it got lost/deleted. When Illume disappeared from e source code we stopped using it and packaging it.
Štefan recreated it with additional functionality. We had talked about months ago but at instance of Enigma9o7, Štefan decided it wasn't too hard to implement.
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Jan 19, 2021 18:15:00 GMT
Enigma9o7's request has been answered, lol. He was asking for a shelf module, mirroring the window border controls for minimize, maximize and close. What is this actually good for? To be fair, this module is cool, and maybe a step toward my idea, but isn't exactly my idea! But since you mentioned my idea I'll hijack your thread a bit to discuss it. My idea was a title bar module, replaces the entire window border title bar (icon, title, and min/max/close buttons) when app is maximized, inspired by behavior I saw in some other desktops like unity. "Just" need to add the icon & title (likes task module but wider) and minimize/maximize max buttons - and since I've come up with that idea and started discussing and looking into I've learned is not easy so I do not it to be done for me til I learn to do it myself, which I expect to take many years.
Since then I have figured out a way to almost do what I proposed with invisible overlapping shelves that I use on my primary desktop and wrote tutorial about. But there are still limitations to this method, the main one being, I can't move the title text next to the icon and cannot control where it truncates, so it can end up underlapping other items when title text is super long (like some websites). Additionally because systray cant go on invisible shelf, this method cannot be used for systray icons. Also this method I'm using is more difficult to control relative positions when when using several layers of invisible shelves, so a title bar module would still be much better.
But since I initially started thinking about my idea and trying things, I've decided, I dont like left corner close. I've tried it and under linux it jus't isnt consitent enough, I could get myself used to left corner click if it was like that always, but its frustration when 1/4 of the windows are different so muscle memory can't figure out which way to go. So because of that, I no longer think I want a title bar module that includes min/max/close buttons anyway - I want two separate modules, one of tthem with icon/title and another with min/max/close. So! Your module is a step toward that! So awesome!
|
|
|
Post by thewaiter on Jan 19, 2021 18:39:30 GMT
Yea, the idea was your, but the project design mine, lol. Yea, I know what you wanted. A full border mirror with icon, title, controls. Everything doable of course. But I realized it will take too much space on shelf. 200 px wide gadcon? I did not like that idea. Almost all shelf gadgets are in the one icon shape and I wanted to respect this approach. App icon? Why? The user is going to control the focused app. So, the only problem I had was how to fullfil your needs with min/max/normal controls on one icon gadget. As you can see I solved it my way. Using the mouse/touchpad wheel Try to install, play with the module and let me know after some testing. Maybe you will adapt to it. Stefan
|
|
enigma9o7
Crew Member
Posts: 1,427
Likes: 1,336
|
Post by enigma9o7 on Jan 19, 2021 18:47:37 GMT
Yea, the idea was your, but the project design mine, lol. Yea, I know what you wanted. A full border mirror with icon, title, controls. Everything doable of course. But I realized it will take too much space on shelf. 200 px wide gadcon? I did not like that idea. Almost all shelf gadgets are in the one icon shape and I wanted to respect this approach. App icon? Why? The user is going to control the focused app. So, the only problem I had was how to fullfil your needs with min/max/normal controls on one icon gadget. As you can see I solved it my way. Using the mouse/touchpad wheel Try to install, play with the module and let me know after some testing. Maybe you will adapt to it. Stefan Ya, 200 pixels not wide enough for my idea. Right now window border takes the entire width. So if I were designing it, it'd ideally be user set width, but default would be half the total width. So on my desktop for example I'd use about 1000 pixels wide to show maximized windows title. That still leaves half the shelf for systray, clock, and indicator gadgets, which is plenty. So now my idea would be title bar module to put on the far left, and a the min/max/close to put on the far right, with some room inbetween for timestring,systray, volume control and other indicators. And when no window focused, that close button behaves same as syscontrol(shutdown) button. And ideally the min/max/close buttons should use the ones from your current window border theme so things match better. Anyway I have lots of ideas on this stuff lately, but realized not easy to implement so had stopped suggesting them til I knew I could do more myself!
|
|