Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to screen shot?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Sun Mar 20, 2016 8:22 am    Post subject: How to screen shot? Reply with quote

I guess it is a stupid question but I did not find out how to do screen shot?
I do not remember if I already had done it in the past ...
I am using LXDE Desk Top (also have KDE)
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8933

PostPosted: Sun Mar 20, 2016 9:48 am    Post subject: Reply with quote

You can use e.g. spectacle (from KDE Applications) and configure a global shortcut for it (don't know how you do that in LXDE).
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Mar 20, 2016 11:16 am    Post subject: Reply with quote

taken from my i3.confg for i3wm

Quote:
bindsym Print exec "scrot '%d-%m-%Y_%H:%M:%S_screenshot.png' -e 'mv $f ~/Screenshots/'"



You need to define a key for this command line.
Code:
scrot '%d-%m-%Y_%H:%M:%S_screenshot.png' -e 'mv $f ~/Screenshots/'


for i3wm i use the acpi keyevent Print to execute teh command of scrot '%d-%m-%Y_%H:%M:%S_screenshot.png' -e 'mv $f ~/Screenshots/'

There are other ways of course also
Back to top
View user's profile Send private message
pmam
Veteran
Veteran


Joined: 30 Dec 2013
Posts: 1145

PostPosted: Sun Mar 20, 2016 12:05 pm    Post subject: Reply with quote

genstorm,

I did not find 'spectacle' but found KSnapshot in KDE and it works ok!
Hope there is any application for LXDE as well...


tw04l124,

This command should be ok for LXDE? I will install scrot and see...

Thanks
_________________
“You can take our property, our sweet homes, even our cloths...
But don't touch the streets, Ah, That's NO, NO, NO!
The streets are our @world's compilable kernel ...”
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Mar 20, 2016 1:17 pm    Post subject: Reply with quote

Yes it should be.

I think every desctop environment allows to define custom keycombinations.

You need to define a custom key combination and than add that command.

It is a very small program which does it jobs. I use a very small memory footprint X-server, very minimalistic.

LXDE is much too big for my demands and requirements, memory and cpu cycles wise
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Sun Mar 20, 2016 1:19 pm    Post subject: Reply with quote

tw04l124 wrote:



You need to define a key for this command line.
Code:
scrot '%d-%m-%Y_%H:%M:%S_screenshot.png' -e 'mv $f ~/Screenshots/'




You need to create a folder named Screenshots in your home-folder or Change ~/Screenshots/ to a folder to your liking.

the %... thingies are for date and time. i have my reason why i use it like that way. (% thingies ... are bash internals)

you can check the manpage and adapt it to your needs.
Back to top
View user's profile Send private message
pgu
l33t
l33t


Joined: 30 Jul 2009
Posts: 719
Location: Oslo, Norway

PostPosted: Wed Mar 23, 2016 3:34 pm    Post subject: Reply with quote

Code:
sleep 3 ; xwd -root | convert xwd:- /tmp/screen-dump.png
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3664

PostPosted: Wed Mar 23, 2016 3:51 pm    Post subject: Reply with quote

tw04l124 wrote:
You need to define a key for this command line.
Code:
scrot '%d-%m-%Y_%H:%M:%S_screenshot.png' -e 'mv $f ~/Screenshots/'

Or like these as taken from fluxbox where 107 is the printkey and Mod1 is Alt.
Code:
None 107 :Exec tm=$(date +%F,%T) && import -window root /tmp/screenshot$tm.png && display /tmp/screenshot$tm.png
Mod1 107 :Exec tm=$(date +%F,%T) && import -frame -window $(xprop _NET_ACTIVE_WINDOW -root | awk '{print $5}') /tmp/screenshot$tm.png && display /tmp/screenshot$tm.png
But you need imagemagick installed for having "import" and "display".
Back to top
View user's profile Send private message
peje
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jan 2003
Posts: 100

PostPosted: Wed Mar 23, 2016 5:07 pm    Post subject: Reply with quote

I can recomand shutter - has its own editor....
cu peje
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8933

PostPosted: Wed Mar 23, 2016 5:52 pm    Post subject: Reply with quote

pmam wrote:
I did not find 'spectacle'

It's there, but it isn't yet stable keyworded.
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Wed Mar 23, 2016 7:29 pm    Post subject: Reply with quote

genstorm wrote:
It's there, but it isn't yet stable keyworded.


Yup sounds like OP's on KDE 4 / LXDE (rather than Plasma 5 / LXQt)... ksnapshot is nice though. 8)
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Proinsias
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2014
Posts: 133
Location: Scotland

PostPosted: Wed Mar 23, 2016 10:59 pm    Post subject: Reply with quote

I just alt+f2 then scrot -d 1, the one second delay avoids capturing the run pop up box.
Back to top
View user's profile Send private message
arackhaen
n00b
n00b


Joined: 04 Jan 2013
Posts: 29
Location: Turku, Finland

PostPosted: Tue Feb 07, 2017 9:01 am    Post subject: Reply with quote

BobWya wrote:
genstorm wrote:
It's there, but it isn't yet stable keyworded.


Yup sounds like OP's on KDE 4 / LXDE (rather than Plasma 5 / LXQt)... ksnapshot is nice though. 8)


Do you mean, that there is no ksnapshot for Plasma 5?
As I was looking for good olde ksnapshot (and tried prtscrn button, which was by default opening ksnapshot before) and was surprised to see that "emerge -s" did not find it. Also couldn't find it from packages.gentoo.org either as its own package.

But well, that spectacle does look good! Just have to bind it to prtscrn button...
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30837
Location: here

PostPosted: Tue Feb 07, 2017 9:06 am    Post subject: Reply with quote

arackhaen wrote:
Do you mean, that there is no ksnapshot for Plasma 5?
As I was looking for good olde ksnapshot (and tried prtscrn button, which was by default opening ksnapshot before) and was surprised to see that "emerge -s" did not find it. Also couldn't find it from packages.gentoo.org either as its own package.

spectacle is replacement of ksnapshot for plasma 5
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Tue Feb 07, 2017 6:18 pm    Post subject: Reply with quote

There is a generic (command line) tool, part of imagemagick

/usr/bin/import

Can take individual windows or the root window.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum