Commit Graph

11 Commits

Author SHA1 Message Date
Stephen Bolton e0423796b0
Fix handling of signals in scratchpad when client is nil (#148; closes #146) 2021-12-14 20:29:32 +01:00
Kasper 2413bd50a7
Scratchpad stop un and re subscribing (#141)
* Formatting and small improvements

* Refactor to stop resubscribing each time

* Remove prints

* This is less error prone

* Fix abort when tag is switched for the new changes

* Fix animation_turn_off not getting called when only 1 animation is used
2021-11-23 17:43:33 -08:00
Kasper 7277f57730
More scratchpad fixes (#109)
* :reset() calls :abort() anyways

* This is no longer needed

* Reduce code duplication

* A more sane name for 'current_tag_on_toggled_scratchpad'

* Don't redefine the functions on every call

* Set stickly to false

* Fix client turning on despite already being on when sticky = true

* Don't set sticky to false when the animation starts, otherwise the client in some cases will immediately disappear

* Set client.sticky = false in helpers.client.turn_off instead

* Remove unused parameter

* Better comment

* Only turn off the client when both animations have ended + stop calling :reset() on the animations

* Correctly animate non floating clients

* Fix scratchpad animations for setups with more than 1 screen

* Try to fix turn off when using multiple screens
2021-09-13 17:22:34 -07:00
github-actions[bot] 3fc80c7dfd Auto: format source code 2021-08-27 18:01:22 +00:00
Kasper 0fb8534191
Scratchpad improvements (#96)
* Make scratchpads work with rubato

* Set floating to true when animating

* Fix for clients becoming invisible after toggling off on other tags

* Fixes for animations not getting played when opening/closing scratchpad on multiple tags

* Remove old debug code

* Fix for edge case when launching an app (not via a scratchpad) and then toggle it off via a scratchpad

* Handle changing tag mid turn off animation

* Remove disable_floating_on_close

* Reorder some stuff

* Use the new ended event

* Refactor to reduce code duplication

* Fix an issue caused by not unsubscribing when switching tag mid animation

* Animate also when launching the client

* also for 4.3

* Emit the inital_apply signal on unstable

* Rename awestore to animation

* Consistency

* No need for this anymore as we are recalling :apply anyway

* Can't have scratchpads opened up as fullscreen / maximized

* Floating must be true for animations

* Rename awestore to animation

* Fix clients teleporting on turn_off when the position was changed from the initial scratchpad position

* Rename animation to rubato and notify that awestore is no longer supported

* Update documentation

* Update scratchpad.lua

Co-authored-by: gokul <33443763+JavaCafe01@users.noreply.github.com>
2021-08-26 10:31:27 -07:00
Kasper 5531371501
fix scratchpad rules not being applied when an existing client is not found (#83) 2021-08-22 13:23:38 +02:00
Nooo37 d81b15399e
Add scratchpad signals (#82)
fixes #82
2021-08-04 11:56:25 +02:00
Kasper 75ff07a47e
fix scratchpad closeing issue (#63)
* Add an option to disable client floating state when closing the scratchpad

* Fix an issue where a scratchpad can't be toggled with dont_focus_before_close unless doing so from the first tag
2021-06-18 14:49:45 +02:00
gokul swaminathan 5b6cab4099
Awestore support for scratchpads (#40)
* remove deprecated code

* Anims

Added awestore support for scratchpad

* add checks and fixed bugs

* Fixed Bug

This fixes the weird behaviour where toggling in the middle of an
animation breaks everything.

* Tag Preview Edit (Not related to this PR)

This makes it so that hidden and minimized windows don't show up on the preview.

* add some more checks

* added docs
2021-04-16 12:46:42 -07:00
Gokul Swami ce03607975 Added multimonitor support to scratchpad 2021-04-08 17:44:03 -07:00
Nooo37 da886cb1c4
Scratchpad feature (#35) 2021-04-08 20:17:10 +02:00