Commit Graph

72 Commits

Author SHA1 Message Date
Jordan Callicoat 14196af7b5
Add popup border config in app_launcher (#190)
* fix(app_launcher): app_name_normal_color on initial entries

* use app_name_normal_color for initial entry names

* feat(app_launcher): allow configuring popup borders

* add border_color and border_width configuration args
2023-01-19 11:41:52 +01:00
Jimmy Cozza e6de047ced
docs(app_launcher): and basic options descriptions (#181)
* add app_launcher docs and basic options descriptions

* add examples for all options and fix typos in actual launcher
2022-11-20 22:36:43 +01:00
Alexandru Ionut Tripon c405103262
Add filterClients and cycleClientsByIdx configuration for window_switcher widget (#162) 2022-06-16 21:40:11 +02:00
Kasper 796845e1a1
App launcher 4 (#149)
* Make the wibox type customizable

* Not used

* No needs for a case insensitive pattern
2022-01-18 23:12:43 -08:00
contribuewwt 165a230b0a
Merge branch 'master' into fixes 2021-11-15 18:35:30 +05:30
Kasper 3c8b3b8cc0
Some more app launcher features (#138)
* Rename init() to reset()

* Regenerate app list when an app is installed/uninstalled

* Fix some issue with inside app content placement

* Add an option to show the generic_name of the app (used a lot in rofi text mode style)

* Set default spacing to 0

* Use a modified prompt to add methods such as :start() :stop() and some uncustomizable behaviour

* Move app_launcher into it's own folder

* Fix default values for various bools

* Why would anyone want to reverse sort alphabetically?

* Maybe someone will want that?

* Make has_value case insensitive

* Add an option to specify favorite apps (will appear first)

* Fix widget placement

* Add ctrl+v paste shortcut

* Add an option to not close the widget when launching an app

* Refactor page scrolling code to add support for wrap scrolling options

* Fix init for bool with false default values

* Fix app name halign not working

* This is padding and not margin

* Increase the height to make space for the new padding property

* Fix bg and fg setting not getting applied for the prompt

* Fix some scrolling bugs

* Add default template for text version

* Yet another scrolling issue

* This should be on by default

* Fix animation flickering
2021-11-08 12:42:38 -08:00
undefinedDarkness f51fbc5e63 export draw_widget from task_preview too 2021-11-05 21:08:29 +05:30
undefinedDarkness b68b95a1ce fixup! add more options to titlebar indicator 2021-11-05 13:23:25 +05:30
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
contribuewwt 0d8df18e02
Merge pull request #133 from undefinedDarkness/add_icon_fallback
make tag preview fallback to a awesomewm icon
2021-11-04 21:47:57 +05:30
undefinedDarkness a525299d4f add more options to titlebar indicator 2021-11-04 21:42:06 +05:30
undefinedDarkness 7261f0ba40 Use grid layout in custom_tasklist
Export draw_widget from tag_preview
2021-11-04 21:34:27 +05:30
undefinedDarkness 1f8c3bdcd7 add-create-callback to titlebar_indicator 2021-11-04 21:19:44 +05:30
undefinedDarkness 0a49f7ff43 make tag preview fallback to a awesomewm icon 2021-11-04 20:55:22 +05:30
Kasper ab1a25e676
Fix some issue with the client preview for the tag and task preview widgets (#128) 2021-11-03 14:59:53 -07:00
Gokul Swaminathan 274df77bba Minor edits for the icon_theme and app_launcher PR 2021-11-03 14:44:03 -07:00
Kasper bebb445de6
App launcher ala rofi widget (#103)
* Initial commit

* Fix missing dpi variable

* Add an option to search by command

* Add turn_on and turn_off signals

* Add options to skip apps by their names or commands

* Add an option to skip apps with no icons

* Fix looping over the wrong table

* Refactor to make it into a proper bling like widget

* Fix selecting the wrong app after a search

* Why was this in a seperate check?

* Fix various issues with toggle/show/hide

* Stop it from complaining

* Fix wrong app getting selected after scrolling up/down

* Add an option to spawn the app when pressing on it regardless if it was selected or not

* lol what?

* Don't add widgets that won't be visible after scrolling down

* Yap wasn't needed

* This is a little clearer

* Add an option 'try_to_keep_index_after_search' to mimic rofi behaviour

* Only add widgets that are visible after a search

* Fix search not adding the correct number of widgets

* Add proper customization options

* Add proper customizaiton options for the prompt

* Simplfy scroll down logic and fix possible bugs

* Add animation support

* Fix app list being empty on some occasions

* Default placement when x and y is nil

* Free up ram

* Add a default icon option

* style change

* Not needed and also hurts search peformance by a decent amount

* Fix error when trying to spawn an app when no app is currently marked

* Not needed

* Add a small debounce delay for the search to prevent it from lagging

* Formatting

* Replace menubar with app_info

* Fix the default icon option
2021-11-03 14:38:50 -07:00
gokul f2ec9d9920
Update tag_preview.lua 2021-10-31 00:16:43 -07:00
gokul 4e84a884d9
Added new feature for tag_preview widget (#127)
The tag preview widgets can have a wallpaper background.
2021-10-31 00:14:29 -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 394c3ceeb7
Free ram for widgets with clients previews (#117) 2021-10-03 03:19:48 -07:00
github-actions[bot] 1727f1d9f3 Auto: format source code 2021-09-07 20:41:10 +00:00
Kasper ae0a999e1b
Add a window switcher widget (#84) 2021-09-07 22:40:55 +02:00
github-actions[bot] 3fc80c7dfd Auto: format source code 2021-08-27 18:01:22 +00: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
Gokul Swaminathan 5ae63cd860 Code style improvements
Autoformatted code for task_preview
2021-08-11 13:58:19 -07:00
contribuewwt 46282edf72
Task preview: more flexible layout control (#85)
* Task preview: +much more flexible layout control

* Added awful import

* requested changes

* fixup! requested changes

* fixup! fixup! requested changes

* Fix nil error

Because what you are returning is a `wibox.widget`, instead of using `setup` you must set the `widget` property of the popup.

* fix docs

* fixup! fix docs

* task_preview docs update

Add lua support to code block

* task_preview docs update

Just some nit picky things

Co-authored-by: gokul <33443763+JavaCafe01@users.noreply.github.com>
2021-08-11 13:55:41 -07:00
Gokul Swaminathan 37edd6e1eb Converted tag_preview to `awful.popup` 2021-08-09 10:43:59 -07:00
Nooo37 ebe55b56f9
fix #86 (#87) 2021-08-09 09:37:07 -07:00
Gokul Swaminathan 22ee259c27 Merge branch 'master' of github.com:BlingCorp/bling 2021-08-03 11:28:46 -07:00
Gokul Swaminathan 0d156d84c6 Fixed color issue in tag preview that messed up blur 2021-08-03 11:28:27 -07:00
Denis Efremov 9a88eb1b2f
Add "pure" tabbar style (#58) 2021-08-03 19:44:04 +02:00
Gokul Swaminathan 00d94027e9 Make the client preview rounded 2021-08-01 22:24:36 -07:00
Jezer Mejía ac0427a737
Fixed tag_preview: shape_border_color and shape_border_width (#80) 2021-07-27 12:00:15 -07:00
Humberto fba32b4d5c
Adding Close, Minimize and Float buttons in tabbar (#75)
I remember this was in bling for quite some time, but I think they removed them. For that reason I make this pull request to see if they could add them back to bling when using the tabbar
2021-07-19 11:13:48 -07:00
gokul 9104455fff
Minor improvements to tag preview 2021-07-14 15:25:47 -07:00
gokul a77fdbc1be
Task Preview Widget (#72)
* Started on task_preview widget

* Finish task_preview widget

Finalized the code for the task_preview widget. Options and theme
variables should be allowed now.

* Changes according to review

* Improved opts
* Fixed vars to be backwards compat

* Update docs
2021-07-14 15:17:46 -07:00
contribuewwt 4f1022b83e
adds placement function support to tag preview (#66)
* + Placement Function Support for tag preview widget

* made a mistake

* Remove empty line (sorry it was annoying me lol)

Co-authored-by: undefinedDarkness <david@localhost.localdomain>
Co-authored-by: gokul <33443763+JavaCafe01@users.noreply.github.com>
2021-06-16 00:48:46 -07:00
Gokul Swaminathan 487cdb69a5 Added a type to the tag preview wibox 2021-05-30 13:20:32 -07: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 1f4b1094dc Revert back to screen param 2021-04-08 07:21:26 -07:00
Gokul Swami 9289ec4f75 Update docs and add more options 2021-04-08 06:50:16 -07:00
Gokul Swami 97c0177c1c try workarea to remove bar space 2021-04-08 06:18:29 -07:00
gokul swaminathan 3214c6ca6a
Fixes #38 (#39)
* Fixed x,y positioning on multi-screen setups

* Widget can now draw based on any screen
2021-04-08 03:23:51 -07:00
gokul swaminathan 23acaa9b59
Update tag_preview.lua 2021-04-07 22:04:58 -07:00
Gokul Swami 6302815518 Add like one comment 2021-04-07 15:01:16 -07:00
Gokul Swami 8013b8201f edit tag vars to make it less confusing 2021-04-06 04:04:23 -07:00
Gokul Swami 788f2ee23d Fix more revisions 2021-04-05 18:38:30 -07:00
Gokul Swami 950843f9a8 Fix reviews 2021-04-05 18:34:25 -07:00
Gokul Swami 7456184ca8 Add tag preview widget 2021-04-04 00:55:43 -07:00