task_boiler
This is an old revision of the document!
Table of Contents
task boiler
Place to cook the tasks. Once they are boiled enough, move them to a separate plate.
Start the first heading with “=====”
Take screenshots with win+shift+s
Spec
Take screenshots with win+shift+s
Requirements:
- Screenshot should be copied to clipboard so it can be pasted into other applications.
- Screenshot should be saved into a file so it can be referred to later.
Scope:
- KDE running on Debian stable
Solution
# Go to Custom Shortcuts K Menu -> System Settings -> Workspace -> Shortcuts -> Custom Shortcuts # Create a new custom group called Spectacle -> Edit -> New Group -> give it a name, say, "Spectacle" -> Click on the checkbox next to Spectacle # create new custom shortcut(s) -> Edit > New > Global Shortcut > Command/URL --> Give it a name, say, "PrintScreen Clipboard Rectangular" --> Comment: Copy the screenshot into clipboard and also save it to a file. --> Trigger: Meta+Shift+S # The output directory will be created if it does not already exist. --> Action: Command/URL: spectacle -bcr -o "$HOME/Pictures/Screenshots/Screenshot from $(date +'%Y-%m-%d %H:%M:%S').png" -> Apply
Tested on
% spectacle --version spectacle 20.12.3 % cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" % uname -a Linux hogwarts 5.10.0-17-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux
Ref
- https://forum.kde.org/viewtopic.php?t=140137 - found the solution here. I just aggregated it into a single post for easy reference.
May be useful later
After adding this, I have
rajulocal@hogwarts ~/.config % git grep -i --no-index "PrintScreen Clipboard Rectangular" kglobalshortcutsrc:{3d9c7702-3955-4696-a8d5-89bd46f488ac}=Meta+Shift+S,none,PrintScreen Clipboard Rectangular khotkeysrc:Name=PrintScreen Clipboard Rectangular
task_boiler.1682373787.txt.gz · Last modified: 2023/04/24 22:03 by admin