![]() I guess that list can be easily extended, but I actually don't know which schemes Windows supports. It ensures that a scheme is present and is one of http(s), ftp, ssh. The largest parts of the python script are to avoid infinite loops among other dangers - in case someone gets funny ideas and puts a file name in a. I really really didn't want to use python, but doing unchecked parsing on something like this didn't suit me. This requires xdg-utils package (for xdg-open, it's likely there if you have a desktop-environment) and python 3. In my case Gnome immediately bound *.url files to them. Put that into a file in ~/.local/share/applications/.desktop. desktop specification to handle them: Įxec=bash -c "set -e P=$(python3 -c 'import configparser,sys,urllib.parse c=configparser.ConfigParser() c.read(sys.argv)\ntry:\n u=c\n if not (u).scheme in : raise Exception(\"Invalid scheme in URI\")\n print(u)\nexcept Exception as e: print(e,file=sys.stderr) exit(3) ' %f) xdg-open \"$P\"" (I read that the trailing line break is important, and probably should be \r\n for Windows compatibility)Īnd created a. url files, which are easily constructed and look like this: And they wouldn't be cross-platform compatible either.Įventually I turned to Microsoft's. If you would like to know more about Flameshot, you can take a look at the article that was once written on this blog.I needed something like this, but Gnome (now?) requires *.desktop files to be in specific locations, so using those directly wouldn't solve my problem, as I wanted web-links for reference mostly in project folders. Installing this tool is simple, we will only have to open a terminal (Ctrl + Alt + T) and write in it: sudo apt install flameshot Scrot -help Take screenshots using dedicated screenshot tools FLAME SHOTĪ good option to take our screenshots is use flameshot in Ubuntu. ![]() To withdraw from your see all options of this tool, write: If you are interested capture only one area of your choice, writes: scrot -s captura.png To withdraw from your take a full screen shot, write something like: scrot captura.png If you don't have it, it can be installed using the command: This is another tool for the terminal, which also is usually present in most distributions by default. We will be able take a look at all the options that this tool will provide us by typing in the terminal: The capture that the previous command will perform it will be saved in the "Images" folder. To take a screenshot, type the following command in the terminal (Ctrl + Alt + T): gnome-screenshot This tool exists in all distributions that have a gnome desk. The tools that we are going to see next are for those users who like to use the terminal and its command-driven interface. Then use Nautilus bookmarks to go faster in your favorite directories, and just right click on an empty space and select Open in Terminal. On Nautilus 3.6., youll have to go into the gear menu and select Bookmark this Location. Take screenshots using command line tools First install the package nautilus-open-terminal and bookmarks your favorite folders with Nautilus. All the keyboard shortcuts we just looked at make use of the default Gnu / Linux screenshot tool. If you use the laptop keyboard, these key combinations should be added the «Fn» key. Shift + Ctrl + Print screen: This combination will copy the screenshot of a specific region that we select to the clipboard.Ctrl + Print screen: With this key combination, the entire screen capture will be copied directly to the system clipboard.Ctrl + Alt + Print screen: With this keyboard shortcut the screenshot of the current window in which we are working will be copied to the clipboard of the System.As in the previous cases, the captured capture is also saved in the 'Images' directory. Alt + Print screen: This option will allow us take a screenshot of the current window in which we are working.The image taken will be saved in the directory 'Images'. Shift + Print screen: This key combination will give us the possibility to capture a specific region that we can select at will.In case you have two screens, the capture will be made from the desktop of both monitors. Print Screen: Press on this key takes a full screen capture as is. ![]() ![]() Almost all Gnu / Linux distributions, including Ubuntu, support these keyboard shortcuts. These are a quick fix when you don't have to make any action or change on your captures. If you want to capture an image of the content on your desktop and not have to use any extra program, you can use a few very useful keyboard shortcuts. Keyboard shortcuts for taking screenshots in Ubuntu 3 Take screenshots using dedicated screenshot tools.2 Take screenshots using command line tools. ![]() 1 Keyboard shortcuts for taking screenshots in Ubuntu. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |