Commit Graph

53 Commits

Author SHA1 Message Date
Momin Barlas 8543dd1a3c
Added new funtionality to flash_focus
- flash_focus now accepts a table so that each window can have its own ending opacity
2023-05-09 17:51:49 -04:00
Emily 5995a7f4b1
tabbar: Fixed tabbar_disable var (#184) 2022-11-05 20:05:38 +01:00
Simon B e384951c32
Removed unnecessary c:raise() call in flash_focus (#169) 2022-06-16 22:38:39 +02:00
Nooo37 fbb914a572
fix(wallpaper): awesome version check
As I understand it, the string in `awesome.version` depends on the package manager / build settings. Thus this is still not a end solution.
2022-04-11 18:38:23 +02:00
SystematicError 5000d9237b
Prevent flashing client when only one is present (#156)
* Prevent flashing client when only one is present

* Account for hidden clients and clients across multiple tags

Co-authored-by: SystematicError <systematicerror@users.noreply.github.com>
2022-01-18 23:13:50 -08:00
Anirudh Haritas Murali 298a6e6c8d
Add support to wallpaper module for multiple screens (#125)
* Add support for multiple screens

* Add documentation

* Update wallpaper module to use single argument for screen

* Update docs for wallpaper module

* Fix arguments
2022-01-04 11:51:44 +01:00
eylles 7542251b72
Improved swallowing (#140)
* Make swallowing more robust

Changed the flags for the pstree command so it is a single line with all
ancestors.
Removed usage of sed, grep and tr so the iopopen call should be faster.
Find and match of parent pid in the ancestors string is done in lua so
should be faster.

* Improved swallow filter

Now you cna filter window swallowing with 2 tables, one for clients that
cannot be swallowed (dont_swallow_classname_list) and one for clients
that cannot swallow their parents (cant_swallow_classname_list).

* remove occurences of res var

* renamed functions and theme vars more descriptive

* updated module documentation

* check functions combined, is_in_table  1 return

* add old theme vars for compatibility

* short swallow logic and robust filter assignment

* ignore splash and dialog parents

this prevents krita and similar missbehaving programs from swallowing their
splash window.

* consistent docs formatting

* convert module to use an async function

* removed undefined error() function call
this was probably an error handling/logging on the code i used as template for
the async function and it's callback.

* deal with corner case: parent exits before client

if the parent is destroyed "on background" then awesome will show a warning.

* added meself to authors

i don't see my additions as substantial enough to justify this but... ¯\_(ツ)_/¯
2022-01-04 11:14:12 +01:00
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
Gokul Swaminathan 274df77bba Minor edits for the icon_theme and app_launcher PR 2021-11-03 14:44:03 -07:00
Kasper d1277c10fc
Add a new 'icon-theme' module (#129)
* Add a new 'icon-theme' module

* Chcek for nil on get_gicon_path
2021-11-03 14:38:36 -07:00
Nooo37 abfd5b8ddd
Add tabbar_{fg,bg}_{normal, focus}_inactive theme vars (#114); closes #112 2021-10-03 16:19:17 +02: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] 1727f1d9f3 Auto: format source code 2021-09-07 20:41:10 +00: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 bda2e55643
return to previous version for window swallowing; closes #65 (#92)
Window swallowing is still very unreliable (probably by the nature of the task at hand) but at least that makes the module useable again
2021-08-19 12:16:21 +02:00
contribuewwt bdc025fb63
+titlbar tabbed group indicator +tasklist tabbed group indicator (#88)
* +titlbar tabbed group indicator +tasklist tabbed group indicator

* fixup! +titlbar tabbed group indicator +tasklist tabbed group indicator

* fixup! fixup! +titlbar tabbed group indicator +tasklist tabbed group indicator

* fixup! fixup! fixup! +titlbar tabbed group indicator +tasklist tabbed group indicator

* Import bling

* reeeeeeeeeee

* stuff

* fixup! stuff

* fixup! fixup! stuff

* fixup! fixup! fixup! stuff

* fixup! fixup! fixup! fixup! stuff

* fixup! fixup! fixup! fixup! fixup! stuff

* fixup! fixup! fixup! fixup! fixup! fixup! stuff

* fixup! fixup! fixup! fixup! fixup! fixup! fixup! stuff

Co-authored-by: gokul <33443763+JavaCafe01@users.noreply.github.com>
2021-08-18 11:39:33 -07:00
Nooo37 d81b15399e
Add scratchpad signals (#82)
fixes #82
2021-08-04 11:56:25 +02:00
Nooo37 9941797638
make wallpaper module 4.3 compatible (#70) 2021-08-03 19:56:37 +02:00
Nooo37 3da4906748
tab pick by direction (#78)
Adding a new way to pick a client for the tabbing groups
2021-07-27 19:54:29 +02:00
contribuewwt 039d48ee22
tabbed: added a signal and a way to disable the titlebar (#79)
The signals allows for further customization on the user end such as integrating the tabbar into ones titlebar. The option to disable the titlebar was overdue.
2021-07-27 16:36:20 +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
Kasper c72ff05760
fixed some issues with the tabbed module; closes #62 2021-06-07 22:37:18 +02:00
Denis Efremov 3c86c2ca98
[tabbar] change PID to windowID + add for both directions of pick/focus (#55)
tabbed mouse picker through window id instead of pid and allow for reverse pick
2021-05-09 23:10:11 +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
Nooo37 142b452eb2 moved sync functions to helpers 2021-03-18 15:45:37 +01:00
gokul swaminathan 26198dd8f2
add chrome in the backup dont swallow list 2021-02-14 00:24:07 -08:00
Gokul Swami 2cb0c54ebe Focused clients are brought to the top 2021-02-03 17:50:18 -08:00
Grumph d41e202b43 Move helpers to one single place 2021-01-24 03:51:08 +01:00
Grumph 2ffdfc918c Add the wallpaper module 2021-01-24 03:50:44 +01:00
Nooo37 1f6cd7374c added dmenu picker for tabbed 2020-12-20 20:38:13 +01:00
Nooo37 66a20aa11b no error messages when no client focused 2020-11-29 10:37:22 +01:00
Gokul Swaminathan 6b608cd75a Removed unused import 2020-11-25 15:53:20 -08:00
Gokul Swaminathan f62ad60388 Edited `tabbed.pick`
Replaced `io.popen` with `awful.spawn.easy_async_with_shell` to avoid
freezing.
2020-11-25 15:43:31 -08:00
Nooo37 b2c8adc23c killing a client faster while tabbed 2020-11-25 10:28:17 +01:00
Gokul Swaminathan 13188187d0 Fixes #4 2020-11-24 22:55:19 -08:00
Gokul Swaminathan 429fcd26fe Tabbar fixes
changed modern theme size

changed tabbar bg, as focused doesnt really matter
2020-11-23 16:43:05 -08:00
Gokul Swaminathan 66d5b17f10 Added rounding shapes to helpers 2020-11-23 16:13:34 -08:00
Nooo37 eaecd80859 refactored path again :( 2020-11-22 10:18:39 +01:00
Nooo37 cc58cad968 Spawn into tab, minor fixes 2020-11-15 10:05:56 +01:00
Nooo37 abfaf8f941 refactored widget path 2020-11-09 16:14:15 +01:00
Nooo37 bc55769a16 added tabbed module 2020-11-09 15:59:36 +01:00
Nooo37 31f56fae7f WIP tabbed module 2020-11-07 18:16:16 +01:00
Nooo37 c374a5b513 swallowed clients are removed from all tags 2020-11-02 08:37:39 +01:00
Nooo37 24d85c5107 cleaned imports 2020-10-29 21:22:37 +01:00
Gokul Swaminathan 6223336b94 added function call activation 2020-10-28 15:32:24 -07:00