From 59046662886fa870bd6086ebe22026a4ff0237f4 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Wed, 20 Apr 2022 10:38:58 +0100 Subject: add delayed screenshot --- components/bindings/Extra-Keybindings | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bindings/Extra-Keybindings b/components/bindings/Extra-Keybindings index 5939f44..8520b22 100644 --- a/components/bindings/Extra-Keybindings +++ b/components/bindings/Extra-Keybindings @@ -30,3 +30,4 @@ Key E A $[Mod1]2 - Key Print A $[Mod] - # use maim instead Key S A $[Mod1]S Exec maim -s | xclip -sel clip -t image/png +Key S A $[Mod1]SC Exec urxvt -geometry 20x1-0-0 +sb -b 0 -w 0 -title 'maim+xclip' -bl -e /bin/bash -c 'maim -d 5 -s | xclip -sel clip -t image/png' -- cgit v1.2.3 From e99beaf92a45d9f9d74b8f5ee7e880e798f8a172 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Wed, 20 Apr 2022 10:39:06 +0100 Subject: enable FvwmAuto optimisation for raise/lower from the manpage: The special Raise/Lower support is enabled only when either EnterCommand or LeaveCommand contain substring "Raise" or "Lower". --- recipes/Dakkar | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/recipes/Dakkar b/recipes/Dakkar index d579a88..3052e9f 100644 --- a/recipes/Dakkar +++ b/recipes/Dakkar @@ -29,15 +29,15 @@ Style * StickyIcon Module FvwmAuto 300 -passid -menterleave \ - "Silent raise_pager" \ - "Silent lower_pager" + "Silent Raise_Pager" \ + "Silent Lower_Pager" -DestroyFunc lower_pager -AddToFunc lower_pager +DestroyFunc Lower_Pager +AddToFunc Lower_Pager + I WindowId $0 (FvwmPager|mwatch) Layer 0 2 -DestroyFunc raise_pager -AddToFunc raise_pager +DestroyFunc Raise_Pager +AddToFunc Raise_Pager + I WindowId $0 (FvwmPager|mwatch) Layer 0 7 DestroyFunc FvwmPagerWindow -- cgit v1.2.3 From 69a8a1f84a068c0af5e680d4e03037d8f018096f Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Wed, 20 Apr 2022 10:39:53 +0100 Subject: add `gather` function --- components/functions/Gather | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 components/functions/Gather diff --git a/components/functions/Gather b/components/functions/Gather new file mode 100644 index 0000000..ed13afe --- /dev/null +++ b/components/functions/Gather @@ -0,0 +1,4 @@ +DestroyFunc gather +AddToFunc gather ++ I All (!PlacedByFvwm) MoveToScreen + -- cgit v1.2.3 From e36221e6f977bcb370a4c869557df17e974a2332 Mon Sep 17 00:00:00 2001 From: Gianni Ceccarelli Date: Tue, 26 Apr 2022 15:26:50 +0100 Subject: fix delayed snapshot --- components/bindings/Extra-Keybindings | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/bindings/Extra-Keybindings b/components/bindings/Extra-Keybindings index 8520b22..631ae29 100644 --- a/components/bindings/Extra-Keybindings +++ b/components/bindings/Extra-Keybindings @@ -30,4 +30,6 @@ Key E A $[Mod1]2 - Key Print A $[Mod] - # use maim instead Key S A $[Mod1]S Exec maim -s | xclip -sel clip -t image/png -Key S A $[Mod1]SC Exec urxvt -geometry 20x1-0-0 +sb -b 0 -w 0 -title 'maim+xclip' -bl -e /bin/bash -c 'maim -d 5 -s | xclip -sel clip -t image/png' +# delayed snapshot; we need that `nohup` otherwise urxvt/bash will +# take xclip down when they exit +Key S A $[Mod1]SC Exec urxvt -geometry 20x1-0-0 +sb -b 0 -w 0 -title 'maim+xclip' -bl -e /bin/bash -c 'maim -d 5 -s | nohup xclip -sel clip -t image/png > /dev/null' -- cgit v1.2.3