Commit Graph

297 Commits

Author SHA1 Message Date
Ksaper 3cfff61ca6 Refactor the icon theme helper 2023-02-14 02:26:18 +02:00
Ksaper 1e694218df Add method to dynamically update app launcher favorites 2023-02-12 18:16:43 +02:00
Ksaper ee9c8b1283 Better naming 2023-02-12 18:14:35 +02:00
Ksaper 400bd988a8 Fix accessing the wrong self 2023-02-07 14:42:17 +02:00
Ksaper ddd5b27ea9 It might be empty 2023-02-05 16:47:09 +02:00
Ksaper 4499ede6bd Templates 2023-02-05 16:36:31 +02:00
Ksaper 3d3529cddf More formatting 2023-02-05 16:15:14 +02:00
Ksaper 7a5585201e whoops 2023-02-05 15:58:18 +02:00
Ksaper 458cd3c8e7 No need for () 2023-02-05 15:48:13 +02:00
Ksaper f148d9278c hmm 2023-02-05 15:45:31 +02:00
Ksaper c822f16f14 Formatting 2023-02-05 15:45:13 +02:00
Ksaper 98fc2c9829 Not needed anymore 2023-02-05 15:44:21 +02:00
Ksaper cbf8960fe5 Formatting 2023-02-05 15:43:06 +02:00
Ksaper d272561ea1 Make the scroll function accesiable + DRY it 2023-02-05 15:41:51 +02:00
Ksaper 4cbedd6244 Make select and unselect part of the app_widget object 2023-02-05 15:33:55 +02:00
Ksaper 5b8282b82d Refactor scrolling 2023-02-05 15:03:02 +02:00
Ksaper 4cb5972fb4 Not used 2023-02-05 14:57:39 +02:00
Ksaper 281fc8953a Add support app launcher template 2023-02-05 02:36:16 +02:00
Ksaper d134719347 At last 2023-02-05 02:20:23 +02:00
Ksaper 6f1198e75d Add support for passing in a template for the app widget 2023-02-05 02:17:46 +02:00
Ksaper c6a245365b Use _role suffix 2023-02-05 01:35:00 +02:00
Ksaper 61a21a125a Small changes 2023-02-05 01:28:51 +02:00
Ksaper 6c575011cb Pull these out of the function 2023-02-05 00:53:50 +02:00
Ksaper a8a865b3fa Auto detect terminal 2023-02-05 00:49:48 +02:00
Ksaper 611e382ff9 I like page_forward being before backward 2023-02-05 00:44:24 +02:00
Ksaper 0790382524 Use forced_num_col so I don't need to do dumb shit to get the actual amount of rows 2023-02-05 00:42:18 +02:00
Ksaper 52acaf5d79 Some renaming and use _ for unused vars 2023-02-05 00:20:42 +02: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