Go to file
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
docs Update gif for tag_preview docs 2021-10-31 01:22:51 -07:00
helpers More app launcher improvements (#132) 2021-11-05 05:38:54 +02:00
icons/layouts add deck layout 2021-08-19 10:40:47 -07:00
images added github banner 2021-03-12 17:17:21 +01:00
layout Auto: format source code 2021-08-27 18:01:22 +00:00
module Minor edits for the icon_theme and app_launcher PR 2021-11-03 14:44:03 -07:00
signal Auto: format source code 2021-08-27 18:01:22 +00:00
widget More app launcher improvements (#132) 2021-11-05 05:38:54 +02:00
.editorconfig Added a max line length to lua files 2021-09-09 00:42:28 -07:00
AUTHORS.md Add a window switcher widget (#84) 2021-09-07 22:40:55 +02:00
CODEOWNERS Figuring out CODEOWNERS 2021-08-04 16:48:42 +02:00
LICENSE Update copyright 2021-07-20 14:32:35 -07:00
README.md Add .editorconfig (#107) 2021-09-09 00:26:09 -07:00
bling-dev-1.rockspec chore: update rockspec 2021-10-24 12:42:16 +02:00
init.lua Auto: format source code 2021-08-27 18:01:22 +00:00
theme-var-template.lua Add theme vars to window switcher docs (#122) 2021-10-13 17:28:34 +02:00

README.md

All documentation, instructions, and previews are here.

Features

  • Layouts
    • mstab (master-slave tab layout)
    • centered
    • vertical
    • horizontal
    • equalarea
  • Modules
    • Flash Focus
    • Tabbed container
    • Tiled Wallpaper
    • Wallpaper Easy Setup
    • Window Swallowing
    • Scratchpad
  • Signals
    • Playerctl
  • Widgets
    • Tag Preview
    • Task Preview

All naming credit goes to JavaCafe01.

Dependencies

In order to use the tabbed modules pick function, you need to install xwininfo.

Contributing

Contributions are welcome 💛

Before requesting changes, makes sure that your editor has an "editorconfig" extension installed, this will use our code style everytime when you edit in the bling folder.

When adding a layout/module/signal/widget, please add theme variables for customization and add the according documentation under docs.