For many years my way of taking screenshots was pretty trivial. I would execute something like sleep 5 && import -window root screenshot.png, switch over to the virtual desktop I want to screenshot and get this png file. If I need to have only some part of it, I'd cut it in GIMP.
A couple of years back when I've started using macOS at work, I googled up it screenshotting shortcuts. They seemed pretty weird, e.g. Command-Control-Shift-3, where 3 means entire screen and 4 means a user-selected region. While I don't know if there's some logic in choosing 3 and 4 for that (why not any other numbers?), I found that it's extremely convenient to take a screenshot of part of the screen and save it to a clipboard. Moreover, I found that I use this feature almost every day to capture parts of terminal window, highlighting some interesting bits from websites for posting on IM and other stuff where image is better than text.
Of course, when I'm running Openbox, using Gimp to achieve the same things starts feeling extremely cumbersome, so I decided to configure Openbox to have similar keybindings for taking screenshots.
First, I wrote a shell script to make things a little easier: screenshot.sh. It uses the import tool from ImageMagick and xclip.
It just accepts two options:
- -r (stands for rootwindow) tells to capture entire screen, otherwise user has to select a region,
- -f (stands for file) tells to save a screenshot to a file (name will be auto-generated and include date), otherwise saves a screenshot into a clipboard.
And, finally, keybindings configuration for ~/.config/openbox/rc.xml:
<keybind key="A-S-3">
<action name="execute">
<execute>~/bin/screenshot.sh -r -f</execute>
</action>
</keybind>
<keybind key="A-S-W-3">
<action name="execute">
<execute>~/bin/screenshot.sh -r</execute>
</action>
</keybind>
<keybind key="A-S-4">
<action name="execute">
<execute>~/bin/screenshot.sh -f</execute>
</action>
</keybind>
<keybind key="A-S-W-4">
<action name="execute">
<execute>~/bin/screenshot.sh</execute>
</action>
</keybind>
Help on Openbox keybindings configuration is here.
> I don't know if there's some logic in choosing 3 and 4 for that (why not any other numbers?)
ReplyDeleteSome random trivia for you. These screenshot shortcuts have been around since around the time of the original Mac. On those machines Command-Shift-1 ejected floppy disk drive one, and you guessed it, Command-Shift-2 ejected floppy disk 2.
iso registration in delhi
ReplyDeleteiso 22000 certification cost
ISO 9001 Certification in Noida
website designing services
SEO Service Consultant
iso certification in noida
ReplyDeleteiso certification in delhi
ce certification in delhi
iso 14001 certification in delhi
iso 22000 certification in delhi
iso consultants in noida
we have provide the best fridge repair service.
ReplyDeletefridge repair in faridabad
Videocon Fridge Repair in Faridabad
Whirlpool Fridge Repair in Faridabad
Hitachi Fridge Repair In Faridabad
Washing Machine Repair in Noida
godrej washing machine repair in noida
whirlpool Washing Machine Repair in Noida
IFB washing Machine Repair in Noida
LG Washing Machine Repair in Noida
we have provide the best ppc service.
ReplyDeleteppc company in gurgaon
website designing company in Gurgaon
PPC company in Noida
seo company in gurgaon
PPC company in Mumbai
PPC company in Chandigarh
Digital Marketing Company
Rice Bags Manufacturers
ReplyDeletePouch Manufacturers
wall putty bag manufacturers
fertilizer bag manufacturers
seed bag manufacturers
gusseted bag manufacturers
bopp laminated bags manufacturer
Lyrics with music
This comment has been removed by the author.
ReplyDeleteThanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agian
ReplyDeletewe offer services delhi birth certificate which inculde name add in birth certificate and birth certificate correction complete process is online and we offer
birth certificate and we offer this birth certificate online same service offers at yourdoorstep at birth certificate in ghaziabad our dream to provide birth certificate in india and other staes like birth certificate in bengaluru and birth certificate in gurgaon book service with us birth certificate in noida also, service at yoursdoorstep only birth certificate in india or
Thanks for provide great informatic and looking beautiful blog, really nice required information & the things i never imagined and i would request, wright more blog and blog post like that for us. Thanks you once agian
ReplyDeletename change procedure in chandigarh
name change procedure in delhi
name change procedure mumbai
name change procedure in jaipur
name change in pune
name change procedure in gurgaon
name change in india
name change procedure in bangalore
name change procedure in rajasthan
name change procedure in maharashtra
Hi I read all about this which you explain on your site
ReplyDeleteAlso, I love the way to explain things. I really like your
Work keep it up dude you are doing good!
i also explain about Join Pak Navy
Let me know if you like my work too.
Mua vé tại đại lý vé máy bay Aivivu, tham khảo
ReplyDeletemua ve may bay di my
giá vé máy bay đi sài gòn
giá vé máy bay cần thơ hà nội
vé máy bay khứ hồi nha trang
vé máy bay đi Huế vietnam airline
taxi từ sân bay nội bài về hà nội
combo đà nẵng 3 ngày 2 đêm
Going through a hard time in life and need someone to poor your heart out to��♀ unsatisfied at home or work may be to much to handle��♀ Need some eye candy to show off or take to a fine dining event��♀ I can be the 1 u rely on��♀ BLM BUT NO AA
ReplyDeleteIf you are looking for escorts in new york then visit following page
escorts in New York
Đặt vé tại phòng vé Aivivu, tham khảo
ReplyDeletekinh nghiệm mua vé máy bay đi Mỹ giá rẻ
vé máy bay vinh đi hồ chí minh
vé máy bay hà nội khứ hồi
đi máy bay ra đà lạt
cách mua vé máy bay giá rẻ từ mỹ về việt nam
giá taxi sân bay nội bài
combo quy nhơn flc
Thanks for provide great informatic and looking beautiful blog.
ReplyDeleteBest Gaming Website
Best Tech Website
Best Health Website
Best Study Website
Tech Reviews Website