bling/widget
Kasper e4fd438e3e
More app launcher improvements (#132)
* Make sure there is always a default icon

* Use get_example_icon_path to get the default icon

* Refactor scrolling to add support for left and right scrolling

* fixup! Make sure there is always a default icon

* Fix calculation happening at the wrong time

* Fix default icons again

* Where did that come from?

* Fix calculation happening at the wrong time for scroll_up as well

* Fix error on scroll right when scrolling to page where amount of rows is smaller than the selected row

* Sort search results by string similarity

* Don't sort by similarity when the search string is empty

* Add hover effects

* try_to_keep_index_after_searching should be false by default

* This should only trigger for lmb

* Add an option to hide the app launcher when clicked with lmb/rmb outside of it

* Use gtk-launch so terminal apps spawn correctly

* Use get_executable instead of get_commandline

* Add an option to set the hover colors

* Further improvements for the spawn function

* Fix scrolling/searching errors when there app list is empty

* This should never be nil anyway

* whitespace

* Refactor show, hide and toggle method + remove support for manually setting x an y (use placement)

* Add arguements for custom icon_theme (defaults to the selected system gtk theme) and icon_size (defaults to 48)

* Pass the app table instead of individual keys to create_app_widget

* Add an arguement to pass the default terminal for terminal apps as gtk-launch only uses xterm

* Reformating

* Rename 'mark_app' and 'unmark_app' to 'select_app' and 'unselect_app'

* Call :hide() from app.spawn() to avoid calling hide() twice on some cases

* Fix escape not closing the launcher after b7e44ec4

* Reduce code duplication and only reset the launcher when the animation is over (if not nil)

* Set active_widget to nil when the grid is empty to prevent from spawning the wrong app

* Override the default exe_callback

* Override the default behaviour for 'Return' via hooks instead because overriding only exe_callback still doesn't stop it from pausing the prompt keygrabber

* Set active_widget to nil on unselect

* Unselect previous app on search to avoid from spawning it when the grid is empty

* Use double quotes for everything
2021-11-05 05:38:54 +02:00
..
tabbar Add tabbar_{fg,bg}_{normal, focus}_inactive theme vars (#114); closes #112 2021-10-03 16:19:17 +02:00
tabbed_misc Auto: format source code 2021-08-27 18:01:22 +00:00
app_launcher.lua More app launcher improvements (#132) 2021-11-05 05:38:54 +02:00
init.lua App launcher ala rofi widget (#103) 2021-11-03 14:38:50 -07:00
tag_preview.lua Merge pull request #133 from undefinedDarkness/add_icon_fallback 2021-11-04 21:47:57 +05:30
task_preview.lua Fix some issue with the client preview for the tag and task preview widgets (#128) 2021-11-03 14:59:53 -07:00
window_switcher.lua Free ram for widgets with clients previews (#117) 2021-10-03 03:19:48 -07:00