Commit Graph

244 Commits

Author SHA1 Message Date
Ksaper df2953fafe Formatting 2023-03-12 12:32:11 +02:00
Ksaper c6e87c11d0 Unbork the default template + fixes some beautiful.colors refs 2023-03-12 12:24:33 +02:00
Ksaper ba8071b13f Extract the scroller widget into it's own file + add scrollbar 2023-03-12 12:12:49 +02:00
Ksaper 4ba108df92 Fix typo 2023-03-12 12:12:31 +02:00
Ksaper 35e8152312 temp 2023-03-12 11:38:13 +02:00
Ksaper 0239710fdf Don't emit the signal here, this is called by the user 2023-03-12 10:29:11 +02:00
Ksaper 26a03aa23b Fix focusing the text input when releasing any mouse button 2023-03-11 04:40:22 +02:00
Ksaper 301d23e4cf Fix text_color not customizable 2023-03-11 00:47:04 +02:00
Ksaper 60089224d7 pass in the text for the unfocus signal 2023-03-11 00:13:31 +02:00
Ksaper e1c556e1cb Add unfocus on client focus prop 2023-03-10 05:51:15 +02:00
Ksaper a99eb3ffe0 Adjust some code + fix initial value not working 2023-03-10 05:38:32 +02:00
Ksaper 881895e200 Text filtering the right way 2023-03-10 05:27:00 +02:00
Ksaper f028caee47 Fix some text input issues 2023-03-10 04:53:17 +02:00
Ksaper 4873f1e9b6 Use simpler commands 2023-03-07 13:20:28 +02:00
Ksaper 4cdc4fb5f9 Replace the prompt with a proper text input widget 2023-03-07 13:13:22 +02:00
Ksaper 13d0f1c435 Add an option to lazy load widgets (worse peformance, but less ram on init) 2023-03-07 01:05:32 +02:00
Ksaper 2ad3c5dcc9 Make the table weak 2023-03-06 02:06:53 +02:00
Ksaper 216094d0d5 gears.cache didn't work this, make the cache manually to stop it from leaking 2023-03-06 00:24:18 +02:00
Ksaper 12b94b52a3 Typo 2023-03-04 02:47:21 +02:00
Ksaper 92b651b4c7 Make it select the first index at the new page when scrolling with the mouse in an horizontal orientaiton 2023-03-04 02:14:48 +02:00
Ksaper 436b8eb241 Use the correct methods for scrolling with the mouse wheel depending on the grid orientation 2023-03-04 02:01:56 +02:00
Ksaper b6518e6e17 Handle vertical orientation 2023-03-03 19:57:49 +02:00
Ksaper 68e6e7e2e5 Has no effect 2023-03-03 14:36:29 +02:00
Ksaper 6f5b50fb4f Break 2023-03-03 14:34:55 +02:00
Ksaper 297ea259bb Don't loop twice 2023-03-03 14:32:23 +02:00
Ksaper b8dc4fa424 Use gears cache for the app widgets 2023-03-03 04:25:50 +02:00
Ksaper 4e9f1d69c4 Use desktop app info search instead 2023-03-03 04:17:58 +02:00
Ksaper bf7db8a110 Fix search timer 2023-03-03 03:50:59 +02:00
Ksaper 468e4d9119 Rename active_widget for selected_app_widget and a public method to retrive it's value 2023-03-02 03:31:15 +02:00
Ksaper c6581734d8 Improve searching 2023-03-01 19:45:38 +02:00
Ksaper a33bb8f774 Try to collect garbage 2023-03-01 19:25:55 +02:00
Ksaper 051c84bd29 Fix run_or_select + some renaming 2023-03-01 19:25:55 +02:00
Ksaper 12478ebbc6 Clearer naming 2023-03-01 19:25:55 +02:00
Ksaper 8f7ce8fe1e Add more methods + don't connect the button::press signals for templates 2023-03-01 07:13:52 +02:00
Ksaper 93327aeccf Add a method to get the text + add a search signal 2023-02-27 11:21:47 +02:00
Ksaper 0982fd604e Add method to get pages count + pass the pages count in the page signals 2023-02-27 11:18:12 +02:00
Ksaper c084c9bb5d Add a method to get the current page + pass the current page in the page signals 2023-02-27 11:15:37 +02:00
Ksaper 49c815641c Simplify and fix scrolling logic 2023-02-25 04:17:52 +02:00
Ksaper 69c5653a4c Add a proper refresh method 2023-02-25 03:46:33 +02:00
Ksaper 6439e6d3d6 Fix not passing self 2023-02-25 03:30:33 +02:00
Ksaper b300def18c Formatting 2023-02-25 03:23:35 +02:00
Ksaper 86bef7a2d2 Add function to run app as root 2023-02-25 03:23:35 +02:00
Ksaper a992a526b0 Rename AWESOME_SENSIBLE_TERMINASL_PATH TO AWESOME_SENSIBLE_TERMINAL_SCRIPT_PATH 2023-02-25 03:23:35 +02:00
Ksaper 282ce35225 Rename spawn to run 2023-02-25 03:23:35 +02:00
Ksaper 47da489ba8 Change class for terminal apps 2023-02-25 03:23:35 +02:00
Ksaper 3c44c5c056 Use app_info:launch() for non terminal apps to fix issues with launching file managers 2023-02-25 03:23:35 +02:00
Ksaper 9e0c6fd96a Pass the app launcher to the app_template 2023-02-25 03:23:35 +02:00
Ksaper af15c9bc7a Add scroll signal 2023-02-25 03:23:35 +02:00
Ksaper c45e64b795 Rename selected and unselected to select and unselect + add 'page::forward' and 'page::backwards' signals 2023-02-25 03:23:35 +02:00
Ksaper f161aa2092 Expose every useful private local function as a public method + add sort_fn prop 2023-02-24 23:17:45 +02:00
Ksaper a4df7debbc Add more helper functions + remove useless comments 2023-02-24 23:11:53 +02:00
Ksaper c449681cbe Convert the reset function into a public method + fix not respecting the reset_on_hide prop 2023-02-24 23:08:56 +02:00
Ksaper 8c8d96702e Check if the returned table is nil 2023-02-24 22:27:06 +02:00
Ksaper 44af848a9c Define app once 2023-02-24 22:20:58 +02:00
Ksaper 87656129f7 ::press gets called consisntely when holding down a key and that will cause lag when scrolling 2023-02-24 22:20:58 +02:00
Ksaper 7e33e62486 Replace xclip dep using gtk clipboard 2023-02-24 21:24:18 +02:00
Ksaper 7207d9792a Get the text from self, no need to pass it as well 2023-02-24 20:43:10 +02:00
Ksaper 097f007a34 Refresh the app list when settings the favorites 2023-02-24 20:43:10 +02:00
Ksaper 7f34d48a97 Refactor the sorting function + split the sorting part into it's own function 2023-02-24 20:43:10 +02:00
Ksaper 24cdcb9385 No need for the case_insensitive function, can just :lower() the string + use plain matching 2023-02-24 20:43:10 +02:00
Ksaper d7f23096d4 This is a table-array like as well, use ipairs 2023-02-24 20:43:10 +02:00
Ksaper 0978c54321 This should have been ipairs 2023-02-24 20:43:10 +02:00
Ksaper 7f73fc3265 Expose these methods in a nicer way for the app_template 2023-02-24 20:43:10 +02:00
Ksaper 04d7af46b3 Fix prompt disabling other keygrabbers 2023-02-22 05:18:55 +02:00
Ksaper b9576250ee Add the desktop_app_info to the app table 2023-02-21 05:07:11 +02:00
Ksaper fd3ee7a786 Add more props to the app table 2023-02-21 05:01:16 +02:00
Ksaper 582b3c4db8 Adding more props to the app table that this is obslete now, it's better to just use the app.prop_name syntax 2023-02-21 04:55:47 +02:00
Ksaper 2649d0ea0c Rename entry/entries to app/apps 2023-02-21 04:30:38 +02:00
Ksaper e47fbd28d5 Just use set_text 2023-02-20 05:11:45 +02:00
Ksaper 9d5729cc03 Make it consistent with the rest of awesome API 2023-02-20 05:09:34 +02:00
Ksaper 0ae3c65501 Hard code it 2023-02-20 04:54:20 +02:00
Ksaper 3fb0836fc7 Not working 2023-02-20 04:53:41 +02:00
Ksaper 38e3d033cd Make use of the screen prop 2023-02-20 04:51:00 +02:00
Ksaper 87f50e7661 Always_on for default prompt 2023-02-20 04:33:23 +02:00
Ksaper 1a70455656 Remove animation support (can be done manually) + some very weird code? 2023-02-20 04:16:31 +02:00
Ksaper 33576c2b24 Fix scrolling and grid when using widget_template 2023-02-20 04:08:51 +02:00
Ksaper 8b60520536 Better defaults 2023-02-20 03:39:42 +02:00
Ksaper c01b5868d1 Support icon prop in table form or in regular form 2023-02-20 03:39:37 +02:00
Ksaper 5562030754 Use state to know when to show the cursor or not 2023-02-20 02:57:02 +02:00
Ksaper 594610a9f4 Better defaults 2023-02-20 02:29:05 +02:00
Ksaper 8812678c5a Use the new prompt widget and improve widget_template support 2023-02-20 02:29:05 +02:00
Ksaper 68482b16cd Just get it from helpers 2023-02-20 02:29:05 +02:00
Ksaper e5deb85ac3 Not used 2023-02-20 02:29:05 +02:00
Ksaper eb7c1aa409 It's the 1st widget in the layout, no need to search for it 2023-02-20 02:29:05 +02:00
Ksaper b8b3e8a712 Refactor the prompt widget 2023-02-20 02:29:05 +02:00
Ksaper 21f0bd2968 Improve templates support 2023-02-19 18:01:15 +02:00
Ksaper a6c3376694 Formatting 2023-02-19 18:01:15 +02:00
Ksaper 1f5cdbf129 Add a default_value function to improve the syntax of setting defaults 2023-02-19 18:01:15 +02:00
Ksaper 6e77e55d04 No need to recreate the timer 2023-02-19 18:01:15 +02:00
Ksaper d4911c99c2 set raw to true 2023-02-19 18:01:15 +02:00
Ksaper 7a20f91fb6 Rename prompt_color to prompt_bg_color 2023-02-19 18:01:15 +02:00
Ksaper c975a0de9a Reduce amount of configuration options 2023-02-19 18:01:15 +02:00
Ksaper eda3703635 Use the start_new func 2023-02-19 02:25:55 +02:00
Ksaper 85910592e1 Use get_id here, it's just suffixed with .desktop in the end 2023-02-14 03:14:50 +02:00
Ksaper 8de50aefb1 whoooopsi 2023-02-14 02:31:36 +02:00
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