Manage Unity windows with Ruby [closed] - ruby

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am using Ubuntu with the Unity desktop and I would like to write a Ruby script that minimizes all of my Chrome windows and opens my LibreOffice Calc window. I'm sure there is an API for this, but whenever I Google "Ruby Unity API", "Ruby Unity Window Management" or "manage Unity from CLI", I get erroneous results. Could someone please point me in the direction of which Gem I should be using or alternatively what shell commands I should be investigating?

What I should have been Googling is "AutoIt for Linux", where I would have discovered the scripting too called "AutoKey", which includes functions for windows manipulation. I'm going to leave this post up for posterity.
Actually, if you're feeling keen on using the command line, you can actually use wmctrl.

Related

Can be created Firefox addon 'always on top' for inspector? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I'm web developer on mac os and I need a feature that allow's to pin web inspector in separate window always on top of current page. I'm trying to create addon with this feature, never did it before. Researched developer.mozilla.org but can't find any ability to do it. Any suggestions how to do it?
You'll have to use this addon - https://addons.mozilla.org/en-US/firefox/addon/topick/
You can set any hotkey you want. On Windows and Linux it supports toggling "always on top"-ness for all system windows (not just Firefox). On Mac it currently is limited to just Firefox windows, but hopefully soon it will be system wide on Mac as well.

Is there a way to convert a Bash script into a GUI Application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have written a fully functioning bash script performing a proxy switching within a Local Area Network based on relative speeds.
Can I convert this directly into a GUI application for Ubuntu? If not where should I start (I am completely new to GUI App development)?
Can this script be converted into any other language?
Yes, you need only create a "desktop" file for it, and place it in ~/.local/share/applications/.
The easiest way to do that is using MenuLibre. Incidentally, there's nothing Ubuntu-specific about this. The same trick will work with most distros.
If you want your script to have a task-bar icon, or open dialog windows, or show a desktop notification bubble, you might like to look at Zenity.
Of course you can rewrite your script in any other language you choose, but I'm not aware of an easy way to convert it automatically.

Mac-like text rendering on Windows? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to figure out how to render text on Windows with the same display as Mac rendered text, e.g: http://igadgetlife.com/wp-content/uploads/2009/09/11.png (That picture is not perfect, but it showcases the neat anti aliasing that Mac has)
I've looked at GDI++/Freetype, and it seems too unstable and it has a lack of documentation. If anyone has any suggestions, that'd be great.
The reason I am asking is because I am trying to make a writing program where text readability and text display are two important factors.
Thanks
The solution lies in using gdipp to override the default font-rendering engine in Windows. Just download the latest package from their Google project page and double click to install it.
It will automatically get installed as a service. If you don't notice any change in the way fonts render, open Run -> Type services.msc -> Right click gdipp -> Click Start.
You may need to restart your computer once for all programs to start respecting gdipp's rendering engine.
EDIT: Alternatively, look at MacType. It's a user-space application that won't require being run as a service. It works with Chrome as well.

Gedit in Windows creates multiple instances [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I installed the latest version (2.30.1) of Gedit for Windows. And whenever I open files from explorer with gedit, it won't open as tabs in the current instance, instead it opens a new window for each file, like a notepad. I do not like this behavior. Is there any way to configure gedit to open files in the same window as tabs?
Judging from this askubuntu.org post, this is not only an issue on windows. Making the suggested changes and building gedit for windows might yield some result.
This may not be the best answer, but you can try Notepad++ instead of Gedit for Windows. It has basically the same features (and I actually find Notepad++ better - a friend of mine uses Wine with Notepad++ on Ubuntu).
http://notepad-plus-plus.org/

Can I manipulate a window(process) that I have not created? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have this application that I haven't created and I don't have the source for. But it's really handy in handling and recording the time I've used on different projects. But it has this annoying pop-up that comes up that contains a window and some debug text I believe. It wasn't done by a professional, it was just a hobby project. Everything is working even though this window appear. So I was wondering if it's possible to "hijack" a window and minimizing or closing it somehow?
Yes. You could hide the window if you have its title. There are other ways to do it, but..
The following application does a few tweaks on another window, check it out:
Window manipulation using window-handle from different process on MS Windows(XP)

Resources