Software :: Command To Automatically Save Screenshot After Pressing Hotkey?

Aug 11, 2010

I've been pulling my teeth out trying to find out a way to automatically save a screenshot to a folder by pressing a hotkey, and append a counter or timestamp to the end of the filename. I found this which works well

import -window root ~/screenshot.png

but I need a way to add a counter so that it doesnt constantly override the same file when I press the hotkey, but will save a new screenshot in the same folder.

I've been looking at bash commands and scripts for the past 3 hours but haven't found it yet, and it seems like it should be an easy task to perform.

View 1 Replies


ADVERTISEMENT

Ubuntu :: Get A 'Save Screenshot" Popup That Is Using Most Likely 100% Of Cpu

Jun 26, 2010

I go to turn on my laptop this afternoon and it boots up fine, but then I get a 'Save Screenshot" Popup that is using, most likely, 100% of my cpu. So I can't do anything, mouse doesn't move, shortcut keys do nothing, all I can do is a hard shutdown.

View 4 Replies View Related

Software :: Save An LQ Page After Pressing Button 'Click Here To Find Similar Threads"

Jun 20, 2010

linux kernel 2.6, GNU, slackware 12.0
KDE 3.5.7

When I click it, a window opens but I loose the menu bar. I click on a post in this window, and the same happens. So, if I want to save the page, I have no way to do it.

View 14 Replies View Related

Ubuntu :: Change Hotkey In Command Line?

Dec 24, 2010

I just searching a way to modify a hotkey like in system->preference->keyboard shortcuts but in command line, because I want to make a configuration file and I need to delete a hotkey.

View 3 Replies View Related

General :: Use Command Line And Wmctrl To Make A Window Larger Than The Screen To Get A Huge Screenshot?

Jan 24, 2011

I use a program which makes a large image which I have to scroll to view. The program has no way to save the image, and I have no access to the source to modify it. The only way I have to get the image from the program is by screenshot. My goal is to save the full size image without having to piece together individual screenshots. I'm using this script to try taking a screenshot:

#!/bin/bash
window=$(wmctrl -l | grep "Program$" | awk '{print $1}')
wmctrl -v -i -r $window -e '0,0,0,6030,5828'
wmctrl -i -a $window
import -window $window ~/Desktop/screenshot.png

This uses wmctrl to get the window id ($window) for a window named "Program". It then tries to resize the window to the desired dimensions. It uses imagemagick (import) to save a screenshot.png on the user's Desktop. All of this works except the resize step. I can resize the window using wmctrl -r -e, but sizes greater than the screen size don't work. I'm using Ubuntu 10.04 and the Gnome Desktop. I run two monitors, but I've tried this with one of them disabled. Is there a way to resize the window larger than my screen to get a huge screenshot?

Part II: I tried using xrandr to set up screen panning, so as to have a bigger desktop than my monitor. xrandr --output LVDS --panning 2600x2500 This command makes the laptop screen pan over a 2600x2500 size desktop, even though it can only show 1440x900 at one time. To turn off the panning, I can use a similar command to set total size and with zeroes for the panning section. This gives me back my original laptop display behavior. xrandr --fb 1440x900 --output LVDS --panning 0x0 This is all done with xrandr, and does not require any Xorg.conf changes (my Ubuntu system doesn't even have an Xorg.conf).

My video card seems to only allow about 6.5 million pixels, even though the maximum dimensions are 8192x8192. That maximum seems to be the maximum for either dimension, but there is a limit to how many pixels can be drawn, which is the width multiplied by the height. Once I did the screen resize, I tried my script again and got a screenshot. The screenshot however is totally scrambled. I'm not sure if it's unable to take a screenshot of an off-screen window or if it is unable to handle the large dimensions of the window. With the panning display, the window should think it is visible, and the window manager should think it is on-screen. So there is a pixel buffer somewhere with those pixels in it, so there should be a way to get a screenshot.

View 1 Replies View Related

Ubuntu :: Automatically Save Terminal Sessions?

Nov 23, 2010

i'd like to ask how could I save my Terminal Sessions to a text file or something like the option we could do at Putty or Kitty?

View 1 Replies View Related

Ubuntu :: Setup System To Automatically Save Into Another Drive?

Apr 6, 2011

I am helping a friend to install ubuntu, and he has a small ssd hardrive that he wants the OS installed on, but everything else he wants to save to another drive!

Is it possible to setup ubuntu to automatically save into another drive?

View 9 Replies View Related

Fedora :: Save A Workspace To Automatically Opens Every Time You Boot?

Jul 10, 2009

Is it possible to save a workspace so that it automatically opens every time you boot Fedora?

I like having Pidgin, Evolution, VLC, and Transmission open in the 4th workspace all the time. Sorry if this has been asked, I searched and found nothing, and this is the first Linux OS I've ever used!

View 14 Replies View Related

Ubuntu :: Configure System To Automatically Save My Documents On An External Drive?

May 17, 2010

I have an external hard drive that I use to store the My Documents folder from my Windows partition. I want to be able to automatically have all of my saved documents from Ubuntu go there as well. How do I configure that?

View 2 Replies View Related

Hardware :: Automatically Powers Down The HDD After A While Of Inactivity To Save Electricity Or Disk Spinning?

May 29, 2011

I am curious about a particular matter. Recently I have purchased a small plug computer that I will use as a torrent server and networked file storage. The thing is I will attach an external HDD to this linux box. Now I am curious about something. The HDD is powered on while the box works, but once the work is done the disk seems to keep running and does not spin down automatically - even though there is no I/O happening.

My question is whether I should add a script that automatically powers down the HDD after a while of inactivity to save electricity or is it better to keep the disk spinning? How does spinning down a HDD affect its health?

View 3 Replies View Related

General :: ImageMagick's "import" Command Line Program Failing To Take A Screenshot From CRON Script

Feb 16, 2011

I wrote a simple command line script which is suppose to take my screenshot every 5 minutes.(using ImageMagick's "import" program)

Here is the script (shottr.sh):

This is working fine if I execute by hand i.e:

The script itself is being executed (I hear a voice saying: "Screenshot") but the actual screenshot is not taken.

Be assured that it is NOT permission issue (I placed a simple "touch" invocation and file was created)

May be if it's run from cron...it doesn't have a "window" so it can't take a screenshot from nowhere? If that is the case, then how can I workaround it?

View 1 Replies View Related

Server :: How To Save Command History

Jun 20, 2010

how to save command out put to another file. Ex: #ps -ef that particular cmd output i need to save another file. is it possible And how to save command history in Linux.

View 1 Replies View Related

Ubuntu :: Save The Changes And Go Back To The Main Command?

Feb 22, 2010

I had make changes on the following text in Ubuntu terminal, how can I save the changes and go back to the main command?

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/support/sohai

[code]....

View 1 Replies View Related

Programming :: Less Doesn't Save Command History

Aug 13, 2010

less doesn't save command history, i.e. file .lesshst isn't created. If I create it manually, nothing writes to it too.OS AIX 5.3 I think linux users can have the same issue, hardly this issue depends on OS.

View 9 Replies View Related

General :: Unix - Cat Command To Save Results Of Other Commands

Nov 26, 2010

This question may be silly and super easy for linux connaisseurs, but I was just wondering, for instance, I want to use the >find command to search for a file and send the results to a text file

View 5 Replies View Related

General :: Make A Save Command By Editing The .bashrc

Feb 19, 2011

I found this script [URL].. Basically this is a shortcut for cd-ing my file system..

I can type "save nm" where "nm" is any short name for the directory, like "blog" or "blg" Then whenever I want to go to nm I'll just use 'cd nm'

But it is not working out for me, I get this error every time I enter save:

bash: save: command not found
bash: parse_git_branch: command not found

So How can I make this command work?

View 1 Replies View Related

Ubuntu Multimedia :: How To Save A Web Image From Command Line

Jun 9, 2010

How do I save it as a jpg somewhere on my puter using a script? I can wget, but it gets saved as a .evif, which is totally useless. I can right-click on the image in a browser and use the context menu to save it as a jpg, but I want this process automated. How can I DL this image and save it as a jpg? GIMP's CL options don't include the capacity to save/convert this image, though it's possible from teh GUI. ImageMagick won't read this dynamic URL. What do I do?

View 3 Replies View Related

Networking :: Save A Rpm Downloaded & Installed By Yum Install Xxx.rpm Command?

Dec 25, 2009

I want to install net-snmp-utils-5.3.1-14.el5.i386.rpm rpm using the command "yum install net-snmp-utils-5.3.1-14.el5.i386.rpm

Now, once yum installs this rpm, how can i copy all these downloaded rpm (and dependencies rpm)? So that i can use these downloaded rpms if i want to install them as a fresh or to copy and install on another computer.

View 3 Replies View Related

Ubuntu Multimedia :: Terminal Command In Script To Save File

Sep 28, 2010

I use webcam with the streamer application. So, to record a video I have to put in terminal something like this:
Code:
streamer -q -c /dev/video0 -f rgb24 -r 24 -t 00:30:00 -o /home/shark/untitled.avi
I know I can use other applications but I have got problems with all except with this. This is really annoying because it is a delay job. So, I am wondering how can I make a script that the terminal will ask me to name the file or even better to ask where to put my file.

View 9 Replies View Related

General :: Wget Command - Download Only Html From The Url And Save It In A Directory

Jul 6, 2011

What is the Wget command to perform the following:

download only html from the url and save it in a directory

other file extentions like.doc,.xls etc should be excluded automatically

View 4 Replies View Related

CentOS 5 :: Can't Seem To Save Changes / Exit Screen To Get Back To Command Prompt

Dec 14, 2009

im following a tutorial to setup a dns server, after editing vi etc/sysconfig/syslog, i cant seem to save me changes or exit the screen to get back to a command prompt. have tried to google the answer to no avail, any ideas? also im using putty to ssh, is the answer the same as using the terminal directly?

View 2 Replies View Related

Debian Multimedia :: Save Image From Clipboard Into File Using Command Line?

Apr 28, 2011

Can save an image from clipboard into file using command line?
may be image magic?

View 3 Replies View Related

Fedora :: Command To Turn Off Broadcom Wireless Card To Save Power?

Aug 13, 2009

Is there a command to turn off my Broadcom wireless card to save power. In Apple, the have an Airport off listing under the airport menu, Is there something for Fedora?

View 3 Replies View Related

General :: Command For Appending A Text At The Start Of Every Line And Save It Another File?

Mar 10, 2011

I wish to append a text at the start of every line and save it to another file without changing the original file.know the command

For example:
Orignal.txt
a.txt

[code]...

View 5 Replies View Related

Ubuntu :: Automatically Execute Terminal Command?

May 13, 2010

I googled around and couldnt find what I was looking for. Maybe I used the wrong search terms, but whatever. I was wondering if there was a possibility to execute a series of terminal commands just by double-clicking an icon. For example, there would be an icon on my desktop, and if I were to doubleclick it, it would execute "cd ~/.wine2" and then "WINEPREFIX="$HOME/.wine2" wine program.exe".

I realise that most of you will probably go "duh, that's simple" or something similar, but I am extremely new to ubuntu, and dont know my way around yet.

View 3 Replies View Related

Ubuntu :: YES Command Starts Automatically At Startup?

Oct 12, 2010

Since a few weeks my PC have been working slow and the gnome system Monitor says that my cpu is working at 100% all the time. when I ran top command appears:

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
770 root 20 0 4060 308 240 R 76 0.0 8:41.05 yes
919 root 20 0 4060 312 240 R 49 0.0 8:23.39 yes

[code]...

View 5 Replies View Related

Ubuntu :: Setup To Run One Command Automatically At Startup?

Dec 30, 2010

I want to auto run
Code:
sudo updatedb at Ubuntu startup. Is this okay: [URL]...

View 5 Replies View Related

Ubuntu :: How To Execute Command Automatically After Login

Feb 2, 2011

I need to execute this command after login: gvfs-mount -d /dev/sda1.It works perfectly from terminal but it doesn't if I add it to "Startup Applications" or to rc.local.Is there another way?

View 2 Replies View Related

Ubuntu :: Make A Command Run Automatically On Start-up?

May 27, 2011

I have a lenovo thinkpad laptop, and it has both touch-pad (standard build in laptop mouse) and touch-point (in the middle of the keyboard) mouse options.

I almost invariably use the touch-point and the accompanied scroller and key-buttons.

HOWEVER, for the scroller to be recognized by ubuntu you must run two scripts as follows:

xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2

Restarting the computer resets these settings, and you must re-run them each time you start up ubuntu.

I am looking to write a script that will automatically run itself (which will execute the above commands), or to permanently change these settings so that it will not be necessary to run them at each start-up.

Thanks in advance, and if there is another thread on these forums that I should move to (or even just another thread that would be a more likely place to get a response). This seemed like the best forum (one which can certainly hold this post without violating any rules), but I may have missed something.

View 4 Replies View Related

Ubuntu :: Automatically Perfom Openapp Command?

Jul 17, 2011

I want that every time i click on a .app folder, the command openapp appname is run. Just by double clicking. I know this isnt the default, but archive manager doesnt automatically open .docx, which a really xip files. Even if i cant do this with a folder, how could i do this with a file, where the application is discerned via filet ending,. However, this should just be an option for a default for a specific file ending

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved