Tuesday, April 16, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 647  / 2 Years ago, sat, january 8, 2022, 2:20:52

Is there a way to set a shortcut-key for copying a text format of current date and time of KDE environment's calender?


More From » 13.10

 Answers
1

Why do you intend to use KDE Calendar for such a simple task? Why not to define a global shortcut



System Setting › Shortcuts and Gestures › Custom Shortcuts › Edit › New › Global Shortcut › Command / URL


for



date | xsel -i -b


?



You may use any imaginable date format if default (Fri Dec 20 09:33:37 MSK 2013)
does not suite you, see date(1). E. g. date '+%F %T' will generate lexicographically sortable 2013-12-20 09:33:59.



Instead of xsel -i -b you also can use xclip -i -selection clipboard.



I assume you want to copy to CLIPBOARD. Use just xsel -i or xclip -i if you want to put date to PRIMARY selection.


[#28423] Sunday, January 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
urvedcaly

Total Points: 171
Total Questions: 118
Total Answers: 124

Location: Cape Verde
Member since Fri, Nov 27, 2020
3 Years ago
;