I am trying to open an image with the terminal and set the image viewer to fullscreen and diaporama mode.
I am currently using xdg-open which allow me to open the image but the window is not in fullscreen mode. I tried force the fullscreen mode using F11 and F5 for diaporama mode but I am working on a computer that doesn't allow the installation of external tools.
Is there a way to force the fullscreen and diaporama mode without external tools ?
Thanks.
What does it mean external tools ? If you can select a different image viewer, which you can setup to start full screen, then xdg-open will use it.
Alternatively you can try something like feh instead of xdg-open, feh reads the fehrc file where you can define the starting options.
You can try to use gnome-open to open your file. It also has full screen mode(F11) and slideshow mode.
'eog'(Eye of GNOME) is also a good option.
In Ubuntu you can use the image viewer that comes by default with it, using the command:
$ eog my_pic.jpg
And that's it, if you do not have that image viewer then you can just download whatever you like and open it from the terminal in the same way. To exit you can close the opened window or by typing ctrl + c in your terminal to close the process.
Easy way!
$gio open simpleImageFile.png
Related
I have been able to successfully add and configure uncrustify as an external tool to vs2019.
The problem I have is that the console window flashes each time uncrustify is executed (via keyboard shortcut).
Is there a way to hide the console window or prevent it from appearing?
Thank you all.
You can enable the Use Output window option for the tool.
I re-compiled the Tor Browser on Windows with minGW, and after I launch Tor, the console window opens too- he shows me all the details from the begging of launching Tor.
There is a way to hide this console window?
by the way i did the same thing in Linux with Terminal and it did not open the console window.
The way that you can hide the console window is to add to your "main" file this line
ShowWindow(GetConsoleWindow(), SW_HIDE);
and re-compile again.
it will open your tor.exe console window for less then 1 second, and will close him self automatically.
if any one else knows how to completely avoid the opening of the console window ill be glad to hear the way to do that.
I often have a need to grab a screen shot of something on my screen (Since I am using OSX, I use the Command+Control+Shift+4 combination, which puts the screenshot into the clipboard). This works well, and allows me to paste into MS Word and other programs.
At some point I had an issue pasting into MS One Note (still on OSX), (I was not able to, when doing Command+V, nothing would paste), which I was able to solve researching online, by changing the default image type for screenshots (I think it was from JPG to PNG, using a command in the OSX terminal).
While this worked for MS One Note, it never helped with pasting into Gmail in Safari (note that I have no issues doing this in Google Chrome).
Can anyone help with how to get pasting images from the clipboard into Gmail when using the Safari Browser? (note I am using the latest OSX and Safari versions available).
Thanks!
I have never tried using the Command+Control+Shift+4 combination but this is what I usually use and it works perfectly for me.
Task 1;
to copy the screen capture to the clipboard so you can use Command+V to paste in any program of your choice
Open your terminal
Type this "screencapture -c" in the terminal without the quotes e.g.: screencapture -c
open any program of your choice and press Command+V to paste.
Task 2;
To screen capture your computer screen and save the file directly to a png or jpg and later insert or attach it to any program of your choice
Open your terminal
type this "screencapture ./Location/filename.ext" in the terminal without the quotes e.g.: screencapture ./Desktop/myCapture.jpg This will save the capture file on the desktop with the jpg format.
to get more information about the command, type "screencapture --h" in your terminal without the quotes.
I am looking for a tool that can 'stick' the OS X terminal app to the desktop background. I want it to be below the desktop icons, on top or instead of the background image.
I am using the terminal through out the day, from time to time. But I don't really need it for ongoing tasks, only to check something very fast. So having an active corner that shows the desktop would be the ideal guesture to reveal the terminal.
GeekTool has the ability to present the output of a terminal command on a desktop, however, I haven't been able to type something into the terminal overlay, GeekTool is showing. Is there any other tool, that could achieve that?
You can use the stock Script Editor app to save the following script as an application (.app file):
tell application "Terminal"
do script "cd ~/Desktop"
end tell
You can edit the script above to specify the directory you want the new window to use by default.
Once you've created your .app file you can put it on your desktop and conveniently double click it to open a new terminal window.
I'm building an app that needs to be able to take intermittent screen captures of a target window while running in the background. That is, it needs to be able to screenshot a specific window without user interaction.
Say for example I have Photoshop open, I'd like to capture a screenshot of my open Photoshop document every few minutes and save the capture to a file, essentially building a visual history of how the document has changed over time.
Currently I'm searching for a Unix/Mac solution but Window's suggestions are warmly welcomed.
Screencapture & Scrot both require mouse interaction to target a window & from what I've researched Imagemagick requires xwd to launch to get the id of the target window.
I'm looking for a lightweight solution (that I can bundle with my software) or ideally a solution already built into the OS to accomplish this.
Any suggestions would be very much appreciated. Cheers.
xwd utility can dump particular X11 window content. It accepts window ID to dump as an argument and can be used in non-interactive mode.
To capture the whole X-desktop on any unix/linux non-interactively you can call:
xwd -root > file
To display the dump:
xwud -in file