I want to be able to do screen shots of the focused by pressing a button. Should be easy.
First try: scrot
Download ScreenFocus Mac 1.0 Working on a project on your computer usually comes with the drawback of having distractions just a mouse click away which could put you off the current task. ScreenFocus is a minimalist and unobtrusive macOS application designed with one purpose in mind: to dim out the image on any displays you're not currently. A turbocharged inline-3 displacing just 1.0 liters is the slowest, leanest model available, unless you opt for the plug-in Focus Electric. It comes with either a 6-speed automatic or manual. Runs on: Windows 10 32/64 bit Windows 8 32/64 bit Windows 7 32/64 bit Windows Vista 32/64 bit Windows XP 32/64 bit file size: 1.6 MB filename: Screenfocussetup.exe.
(since it seems to be the most recomended tool for screenshots in i3wm)
Whole screen
bindsym XF86Display exec 'scrot ~/Downloads/Screenshot%Y-%m-%d%H:%M:%S.png'
Works fine
![Screen Screen](https://app.teamsupport.com/dc/493740/images/2528a766-6c54-4efa-8a6c-b0c95f24e7aa.png)
Focussed Window
![Screen Screen](https://img4.bdbphotos.com/images/230x300/d/8/d8h6z2i0amvy02ai.jpg?skj2io4l)
Well... Some people in the internet seem to think there is a -u flag for scrot but in the yum-installed Fedora version (0.8) there definitely is not. Bad luck.
Second try: ImageMagick
(since many people tell me it can do anything I want)
Whole screen
bindsym XF86Display exec 'import -window root ~/Downloads/Screenshot$(date +%F%H:%M:%S).png'
The date is not as elegant as in scrot, works fine though.
Focussed window
Tricky. I don't know the id of the focused window. But there is a workaround:
Screen Focus 1 0 18 0
import -window
xwininfo | awk '/.*Window id:.*/ {print $4}'
~/Downloads/Screenshot$(date +%F%H:%M:%S).png
I can click on the window I want to screenshot and there we go. A bit of a hack (found here: http: //www .trueelena.org/computers/howto/screenshotswithimagemagick.html ), but anyway. Works in the console. But in i3config:
Screen Focus 1 0 18 Inch
bindsym XF86Display exec 'import -window
xwininfo | awk '/.*Window id:.*/ {print $4}'
~/Downloads/Screenshot$(date +%F%H:%M:%S).png'
Doesn't work. I am asked to click on a window, but no screenshot is saved. I am not sure why.
Screen Focus 1 0 18 Mm
Could someone give me a hand, please?
editretagflag offensiveclosemergedelete
Focus assist (also called quiet hours in earlier versions of Windows 10) allows you to avoid distracting notifications when you need to stay focused, and is set by default to activate automatically under certain conditions. Here's how to turn focus assist on or off:
Screen Focus 1 0 18 Volt
-
Select the action center icon on the taskbar.
-
Select Focus assist to cycle through the available settings: either Priority Only, Alarms Only, or Off. (If you don't see the Focus assist tile, you may need to select Expand first.)
-
Focus assist settings can also be edited by selecting Start > Settings > System > Focus assist, or type Focus assist into the search box on the taskbar, and then select Focus assist settings from the list of results.