Commit Graph

283 Commits

Author SHA1 Message Date
PeteE 19ccfc0daf
chore(luarocks): add app_launcher (#223)
* add app_launcher and bump version

* Revert version bump

---------

Co-authored-by: Peter Erickson <pete.perickson+foobar@gmail.com>
2024-06-02 14:48:52 +02:00
contribuewwt 14a9988567
tabbed_misc: remove goto to keep compat. with lua5.1 2024-03-09 22:26:28 +05:30
PassiveLemon c42d64222a
Configurable app Launcher layout (#221) 2024-02-21 14:47:02 +02:00
Woynert 1f6bd0d5ef
Use master window factor in offset calculation deck layout (#216) 2023-09-03 17:34:28 +02:00
dharmx 01944af235
Update bling-dev-1.rockspec (#213)
Added `bling.helpers.icon_theme` to rock_spec.
2023-08-08 19:20:14 +02:00
Camille Le Bon 401985a327
Improve tabbar's layout with modern style (#209)
* Change the title expansion setting to allow buttons to be displayed

* Add padding between the icon and the title of the focused client

---------

Co-authored-by: Camille Le Bon <camille.le-bon@inria.fr>
2023-05-22 10:52:30 +02:00
Maryll Castelino 677917056d
Replaced get_num_clients functions with one liner (#152)
removed the get_num_clients function from window_switcher widget
which returned the total number of clients on the selected tag
and replaced it with the one line "#awful.screen.focused().selected_tag:clients()"
which also returns the total number of clients on the selected tag
to reduce the complexity of the code
2023-03-07 07:20:32 +02:00
David Kosorin 31d78f8777
Playerctl lib minor bug fixes (#202)
* Fix `get_player_of_name`

* Fix `update_on_activity` initialization
2023-03-07 07:19:41 +02:00
Kasper 4fc68f7c24
Centered layout for ultrawide screens (#200) 2023-02-22 08:52:34 +01:00
Paul Davis affc165bda
escape < and > in titlebars for tab widgets (#175)
* escape < and > in titlebars for tab widgets

* Use gears.string.xml_escape

---------

Co-authored-by: Gokul Swaminathan <gokulswamilive@gmail.com>
2023-02-09 16:47:58 -08:00
Stardust-kyun 57786e08f4
Readability edits for docs (#197) 2023-01-28 15:27:21 +01:00
Stardust-kyun af90ae42a9
Clean up docs grammar and consistency (#196) 2023-01-23 19:20:23 +01:00
Nooo37 d670537bea
Update link for tiled wallpaper preview image (#195) 2023-01-22 17:39:32 +01:00
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
Emily 5995a7f4b1
tabbar: Fixed tabbar_disable var (#184) 2022-11-05 20:05:38 +01:00
Nooo37 70c894e58b
fix(helpers.shape): add local (closes #180) 2022-07-23 10:36:44 +02:00
Simon B e384951c32
Removed unnecessary c:raise() call in flash_focus (#169) 2022-06-16 22:38:39 +02:00
Alexandru Ionut Tripon c405103262
Add filterClients and cycleClientsByIdx configuration for window_switcher widget (#162) 2022-06-16 21:40:11 +02:00
HeavyRain266 4d2d8e5e27
Fix syntax highligtning and missing newlines in playerctl docs (#168) 2022-06-08 21:38:13 -07:00
Kasper 6e4ecb334c
Improved icon theme helper (#144)
* Small refactor for the get_client_icon_path function

* Try to match first by icon name and then by class

* Formatting

* It's dashes

* Use methods

* Why check it every loop?

* Try to get icon by the retriving the command from the pid

* Split into multiple functions

* No newline at eof

* Remove empty line

* Gets only the process name instead of the full command

* Double quotes everywhere

* I don't need pattern matching

* I want the executable

* Check if pid is nil

* Use client icon if not found

* Class can be nil for some clients too?

* Check for nil values

* Lgi doesn't work with gtk 4.0

* Fix class being nil

* client.icon can be nil as well
2022-05-11 18:28:32 +03:00
Nooo37 c20aa6daea
fix adjust_visibility (#166) 2022-05-10 17:47:38 +02:00
Emily bc980b7dfe
Made layout icons changeable via theme.lua file (#165) 2022-04-24 18:25:09 +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
Nooo37 3164486da0
docs(wallpaper): fix example issue 2022-03-30 21:34:23 +02:00
tuwuna 5b3bc36b70
docs: Missing comma (#159) 2022-03-13 10:49:36 +01:00
heinebold 4d88068dda
Honor master_fill_policy in 'centered' layout (#157) 2022-03-05 10:12:27 +01:00
gokul 718ac6da7a
Update Docs (#154)
Add in docs for the new playerctl PR.
2022-01-23 16:06:44 -08: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
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
SystematicError 9b88048ce9
Update repository urls (#155)
Co-authored-by: SystematicError <systematicerror@users.noreply.github.com>
2022-01-16 18:26:40 -08:00
Kasper 338dba6292
Add playerctl v2 backends (#142)
* Add playerctl v2 backends

* Player should be the last arguement as it's optional

* Make v2 backwards compatible with v1

* Make cli v2 backwards compatible as well

* Delete playerctl and rename playerctl_v2 to playerctl

* Add deprecation for global signals

* Update the docs

* Player should be optional

* Fix image downloading failing on some cases
2022-01-07 21:33:24 -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
Cezary Drożak bc26b9ff89
feat: allow disabling tabbar in mstab layout (#145)
closes #143
2021-11-28 10:13:12 +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
contribuewwt 0da8b7b7f0
Merge pull request #135 from undefinedDarkness/fixes
[3/3] Fixes to titlebar indicator and tasklist tabbed indicator
2021-11-16 17:48:28 +05:30
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
Nooo37 92dabc890e
Refactor layout icon path search and also search in package.path (#137, closes #136) 2021-11-06 19:33:58 +01: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