~abcdw/rde-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
2 2

add option screenshot-key

Details
Message ID
<87fsgyup2t.fsf@ngraves.fr>
DKIM signature
missing
Download raw message
On my current main machine, the screenshot key returns F10 instead of
Print in wev. Just adding a quick option to allow customization of the
screenshot key.

-- 
Best regards,
Nicolas Graves

[PATCH] rde: wm: add option to change screenshot key.

Details
Message ID
<87a676up02.fsf@ngraves.fr>
In-Reply-To
<87fsgyup2t.fsf@ngraves.fr> (view parent)
DKIM signature
missing
Download raw message
Patch: +8 -4
---
 rde/features/wm.scm | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/rde/features/wm.scm b/rde/features/wm.scm
index 19afa5c..a215fc5 100644
--- a/rde/features/wm.scm
+++ b/rde/features/wm.scm
@@ -2,6 +2,7 @@
;;;
;;; Copyright © 2021, 2022 Andrew Tropin <andrew@trop.in>
;;; Copyright © 2022 Samuel Culpepper <samuel@samuelculpepper.com>
;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
;;;
;;; This file is part of rde.
;;;
@@ -333,7 +334,8 @@ automatically switch to SWAY-TTY-NUMBER on boot."

;; TODO: Add saving to file https://github.com/jtheoof/swappy

(define* (feature-sway-screenshot)
(define* (feature-sway-screenshot
          #:key (screenshot-key 'Print))
  "Configure slurp, grim and other tools for screenshot capabilities.  Feature
is sway dependent, because it relies on swaymsg."

@@ -385,9 +387,11 @@ is sway dependent, because it relies on swaymsg."
     (simple-service
      'sway-screenshot
      home-sway-service-type
      `((bindsym $mod+Print exec ,shot-output)
        (bindsym $mod+Alt+Print exec ,swappy-clipboard)
        (bindsym $mod+Shift+Print exec ,shot-window-or-selection)))))
      `((bindsym ,(symbol-append '$mod+ screenshot-key) exec ,shot-output)
        (bindsym ,(symbol-append '$mod+Alt+ screenshot-key)
                 exec ,swappy-clipboard)
        (bindsym ,(symbol-append '$mod+Shift+ screenshot-key)
                 exec ,shot-window-or-selection)))))

  (feature
   (name f-name)
--
2.37.3

--
Best regards,
Nicolas Graves

Re: add option screenshot-key

Details
Message ID
<87y1up8b56.fsf@trop.in>
In-Reply-To
<87fsgyup2t.fsf@ngraves.fr> (view parent)
DKIM signature
pass
Download raw message
On 2022-09-11 13:29, Nicolas Graves wrote:

> On my current main machine, the screenshot key returns F10 instead of
> Print in wev. Just adding a quick option to allow customization of the
> screenshot key.

Thank you for the patch, applied :)

-- 
Best regards,
Andrew Tropin
Reply to thread Export thread (mbox)