![]() |
Display XFCE shorcut keys cheat sheat on desktop - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Tutorials (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=21) +--- Thread: Display XFCE shorcut keys cheat sheat on desktop (/showthread.php?tid=6718) |
Display XFCE shorcut keys cheat sheat on desktop - Moltke - 01-17-2020 Hi everyone! Hope you're all having a nice life and a wonderful 2020! ![]() We all love having shortcut keys for launching our most used apps, open directories or execute certain tasks, but sometimes it might be hard to remember each and every single one of them, even more if like me, you hardly ever use the mouse but rely on the keyboard most of the times. Once I had this idea of having a wallpaper with all the SCKs, but eventually I realized how inconvenient that was, besides the fact that it wasn't the prettiest background to look at day after day ![]() 1.- Create an image cointaining the shortcut keys you want to have at hand. You can do this by taking some screenshots at Settings >> Keyboard >> Application Shortcuts and Settings >> Window Manager >> Keyboard Then use something like GIMP and put those images together thus creating a new one, with the resolution of your screen i.e 1920x1080 or another size of your choice, name it whatever you like (I named mine sheet) and save it to your home directory or any other location of your choice. If you have the skiils, the time and the will to do so - I didn't - , you could also create your own custom image by tipying and/or copying and pasting them using GIMP or whatever it is you use. 2.- You need feh, https://feh.finalrewind.org/ Quote:an X11 image viewer aimed mostly at console users. Unlike most other viewers, it does not have a fancy GUI, but simply displays images. It is controlled via commandline arguments and configurable key/mouse actions.This will be the app responsible for displaying your cheat sheet, to install it just open a terminal and type Code: sudo apt-get install feh ![]() 3.- Once feh's installed type Code: nano sc_cheat.sh Code: #!/bin/bash press Ctrl+o and then Enter to save the file, then press Ctrl+x to close nano. Don't close the terminal, you need to make the file executable, for that type Code: chmod 755 sc_cheat.sh Code: ./sc_cheat.sh ![]() 4.- Open the terminal and type nano or use another text editor i.e mousepad, then copy and paste the following Code: [Desktop Entry] Save it and name it whatever you like with the .desktop extension in /home/your_user/.local/share/applications (I named mine Sheet.desktop) now the script will be available in whisker menu. ![]() 5.- We want this to be available with a shorcut; it will run and stop the action when pressing the keys you assigned, so go to Settings >> Keyboard >> Application Shortcut click on the "+ Add" button and in the window that pops up where it reads command type /home/your_user/sc_cheat.sh or click on the open button and navigate to the script's location and select it, then click on OK and when asked press the keys you want to assign for launching it as well as stopping it and that's it. ![]() ![]() ![]() ![]() ![]() You can also make the window borderless by passing the -x flag to feh, for that our script should look like this. Code: #!/bin/bash ![]() Now you won't have to remember every single one of your shortcut keys but just one, instead you can use that space in your memory you just gained for something else. ;D Re: Display XFCE shorcut keys cheat sheat on desktop - Valtam - 01-18-2020 Very nice ![]() Re: Display XFCE shorcut keys cheat sheat on desktop - Moltke - 01-18-2020 (01-18-2020, 02:06 AM)Jerry link Wrote: Very nice I just added a few ![]() Re: Display XFCE shorcut keys cheat sheat on desktop - Moltke - 01-18-2020 I knew posting this tutorial here wil pay off and indeed it did ![]() ![]() ![]() ![]() ![]() By the way, while playing around with this and reading here and ![]() ![]() ![]() By the way, while playing around with this I learnt that you can use imagemagick to manipulate the image and in fact use it in the script by passing something like this Code: display -colorspace CMY -raise 5 sheet.png & Re: Display XFCE shorcut keys cheat sheat on desktop - Moltke - 01-19-2020 Making progress ;D [member=2]Jerry[/member] How do you like these ones? ![]() ![]() ![]() Still far from perfect cause I'm not artist nor is graphical design my area of expertise but definitely getting better and better ;D |