Transparency/brightness of inactive/unfocused windows in GNOME Shell - focus

Is it possible to make inactive windows (i.e., windows without focus) less opaque, more transparent, less bright or somehow shaded in GNOME Shell? I'd like to have stronger visual feedback on which window is currently active / focused.

AFAIK it's not possible by default. An easy way to implement it is to write a gnome extension. I already check if one of them is doing something similar for what you are looking for but it doesn't exist right now.
Available extensions can be found there : https://extensions.gnome.org
This one looks closer to your needs: https://extensions.gnome.org/extension/650/shade-inactive-windows/

Related

GIMP How to use python console (or make plugin) to navigate between images

Note: This applies to windows only, due to the inherent problems from using standard, free automation tools for (EDIT: GDK) applications on Windows. If there is a better way to work with automating GDK on Windows than AutoIt, please let me know)
I am trying to automate some tasks in GIMP using AutoIT mostly, which is mostly simple enough, however, moving from open image to open image is problematic. There are two ways I have done this (using AutoIt) so far: Automatically click on the arrows (in single window mode) to scroll from image to image, and 2) using right and left arrow KEYS to do same.
There are problems with both approaches. For the first approach I can not do anything else with my computer until the AutoIt script is done processing because it is occupying my mouse. And we are talking about 100 or so images each time.
For the second approach it requires, I do not know the proper word, but 'thumbnail bar' at the top, that the thumbnail bar be 'active' or else using arrow keys does not work. you CAN make it active by clicking on an image inside of it, once or twice depending on state, but then I have to do all sorts of gymnastics to know which ACTUAL image I am supposed to be on in order to proceed.
That brings me to conclude the best solution is to have some programmatic way, in a Python or Scheme plugin (or a simple command or two, that I can have AutoIt simply paste into the console) to allow me to move between images in a very reliable, non-obtrusive, simple way.
Thank you in advance.
Dev
Normally, you can't. By design, the script-fu and python-fu API deal with images processing and cannot interfere with the UI. You can just open windows (a.k.a. "displays") on images and delete them (and only those your script created).
But you can write Python/Scheme scripts to do the tasks directly instead of trying to do them by emulating a human...

How to prevent command key's default OS behavior using Love2d (LÖVE) or Lua

Is there a way to prevent the default OS behavior for a command key (i.e. prevent start menu opening and focus loss when the windows key is pressed) using Love2d (LÖVE) in particular, or Lua more generally. If I understand correctly, LÖVE uses LuaJIT, so it would be helpful if a Lua based approach did not involve Lua 5.2/5.3 functions that are not implemented in LuaJIT, but I could rebuild with the appropriate module or shim the LÖVE interpreter if necessary.
Having failed to find a simple solution on my own, I'm currently thinking I will have to create a Lua-C Module. If that is the case, any advice/links along those lines would be greatly appreciated. Thanks!
Lua certainly has no functionality for hijacking OS key functionality of this kind. Such things are too OS-specific for Lua to expose. And from its documentation, Love2D has no such functionality either.
While we're on the subject:
prevent start menu opening and focus loss when the windows key is pressed
It would be exceedingly rude to have your application prevent basic OS functionality like this from working. However good your game may be, it is not as important as the user being able to do what they actually want. If the user wants to switch to something else, that's their right, and you should not interfere. If the user accidentally pressed that button, that's their responsibility.
The only thing you should do is set up a love.focus callback, so that when the application loses focus you can automatically pause.

Binding a trackball to NPAPI

I want to use a second pointing device (the trackball) as a control for a specific function on a program. This means I would NOT want any mouse functionality from the trackball, I just want to get the movement data and somehow use the NPAPI to get that into our web app. Is there a way to bind a mouse/trackball to a specific program that it doesn't act as a mouse/trackball for the computer?
Thanks in advance!
UPDATED: actually ask a question
To the best of my knowledge and my understanding of how HID devices work, there is no way to do what you want to do. If you could do it at all, you could probably do it from an NPAPI plugin, but there is no way to tell the operating system not to take control of one specific pointing device as opposed to any others.
Now, if you had a special HID trackball that didn't show up as being a regular pointing device then you could possibly do it with that, but I have never heard of any way to take control of just one of potentially many HID pointing devices on windows, linux, or mac.
There may be a way to hack something together in Linux by changing the way the drivers work, etc, but I don't know of any.

Open file in new GVim window within a single session

I would like to have two windows opened while running a single GVim session. Just like tabs but placed in two separate windows. This kind of setup is handy for dual screen setup. I haven't found anything relevant in the manual. Is it possible?
I don't think this is possible I'm afraid. I'd suggest you send an email to the mailing list with a feature request. I can see that it would be useful, but you'd need to have a lot of extra keyboard commands equivalent to Ctrl-W h to switch between different windows.
It's also very GUI specific and most of the functionality in Vim is designed to work in both the GUI and the TUI.

free visual editor for graph (dot) files [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Is there a free (as in "cheers"), linux-compatible, interactive visual editor for graphviz or other graphs? aptitude seems to be drawing a blank.
edit: "cheers" means both "beer" and "speech". meta-edit: I guess it should be "free as in beach".
edit 2: Maybe a suitable svg editor would be a more realistic goal. I basically want something that can be used to conveniently create a collection of labeled shapes and lines which connect them. Actually it would probably make more theoretical sense to extract the graph from this data, since it includes both semantic data (the graph) and presentation data (the way it's arranged on the screen, the colours used, etc). Is there a way to lay out labeled shapes conveniently with inkscape or some other free vector graphics editor? I really need rearranging of the nodes, and (re)flowing of the text in them, to happen with maximum convenience.
I've also realized that this is really a superuser question. I was going to repost it over there when I found an existing question that seems likely to provide me with an answer: dia.
edit 3: dia seems useful except that it doesn't seem to be possible to get the textual contents of node objects to wrap in any useful manner (ie any way other than by inserting manual line breaks). This is kind of a dealbreaker, since it screws most of the convenience factor that's my incentive to do things this way rather than with a text editor or a pen and paper. But it supports some sort of event model and Python-based scripting, so I'm going to dig around a bit and see if I can use python to wrap the text in response to content changes. Unless one of you lovely people has a better idea..? Basically I want to have the option to explicitly set the node size via GUI interaction, and have the contents wrap and rescale (within a certain range of font sizes) to fit it. Rich text would be pretty useful.
In other words, this is actually a valid SO question at this point, since it appears to require coding.
To save time those eager to try existing programs handling DOT graphs:
dotty can display DOT graphs and with little luck you can move its nodes with a mouse, nothing more, and you can easily segfault as a bonus (I tried latest stable graphviz)
lefty is only a special-purpose language interpreter used by dotty, nothing to look at
KGraphEditor is an empty wishful project (a QT window and a few buttons)
gvedit is not really a graph editor: it provides a simple text editor and you hit F5 to run a layout tool and open a picture; you can actually get more functionality from configuring your own favourite text editor
grappa is an abandoned java applet, which I failed to run
interestingly, dia can export to DOT ("PyDia DOT Export"), but due to its buggy printing, you have to post-process the files to use them
graphedit can read in DOT a graph and you can move its nodes around and change their colors
Eclipse people started working on DOT support in GEF4, so it can display DOT graphs
GraphUI has a very interesting demonstration video, but beware: although it might seem that the graph is being created by clicking and dragging, in reality all editing happens through the keyboard, using shortcuts. On the plus side, contextual instructions are always available showing which shortcuts do what.
DotEditor claims a tree editor, modifying node attributes/color/shape with mouse.
The graph editors mentioned in other answers, yEd (a Java application) and JointJS/Rappid (a JaveScript thing) apparently have nothing to do with DOT (tried both).
I believe there exist no working DOT-handling graph editor out there at all.
JointJS is a Javascript graph editing library based on Backbone : http://www.jointjs.com/
The author also provides Rappid, an online graph editor which might suit your needs, I don't know about dot files import though.

Resources