summaryrefslogtreecommitdiff
path: root/src/parser.c
AgeCommit message (Collapse)Author
2025-07-19update master_previous -> master_prevAbhinav
2025-07-17add start_fullscreenAbhinav
now windows specifed can by default start fullscreened.
2025-06-26Refactor keybinding configuration and parsing logicelbachir-one
- Added MAX_BINDS macro to replace magic number (256) in alloc_bind - Fixed potential null dereference in strip() on empty strings - Corrected redundant KeySym assignment in parse_combo() - Improved clarity and maintainability of call_table and helper functions - Ensured safe string handling with proper bounds and terminators - Added fallback logic for unknown key symbols using parse_keysym() - Proper bounds checks on buffers and allocations
2025-06-25Fix memory leaks in config parserelbachir-one
Ensure all dynamically allocated memory (e.g., should_float, can_swallow, open_in_workspace) is freed on error or cleanup
2025-06-24add window centeringAbhinav
the user can now center any floating window with default bind centre_window
2025-06-24add open_in_workspaceAbhinav
user can now open specific windows in specific workspaces
2025-06-24add scratchpadsAbhinav
there are now i3 like scratchpads. all default binds added, mans updated
2025-06-23add XF86 key supportAbhinav
now other misc keys will work eg vol up etc
2025-06-23add new_win_masterAbhinav
new windows spawned can now be set as master window
2025-06-20add window swallowingAbhinav
the user can now specify which windows can swallow / can be swallowed.
2025-06-14use custom build_argv for non-linux systemsAbhinav
BSD users dont have wordexp so i made a custom splitter for those systems
2025-06-11remove old lowercasing logicAbhinav
no longer doing lowercase for all the rokens. this was old logic and now omitted. this also allows support for using characters such as BackSpace which requires capitalisation
2025-06-10add move and focus mon functions to call_tableRick Console
2025-06-07Fix memory leaks, buffer overflows, and add resource cleanup in parser()elbachir-one
- Fixed potential memory leaks in `should_float` allocation and exec command duplication. - Prevented buffer overflows by using `snprintf` and properly bounded copies. - Ensured all allocated memory is freed on parser failure for robust cleanup.
2025-06-06clean up exec commandAbhinav
sxwm.c: before, some of the parsing logic of the exec command was located in setup, but i have relocated it to a seperate function called startup_exec. i have also replaced the manual spawning of windows with the spawn function parser.c: added the missing parsing logic of exec and simplified it
2025-06-04formatting and remove warningAbhinav
2025-06-04Merge pull request #58 from werdl/mainAbhinav Prasai
add exec config file keyword
2025-06-04clean up code, add contributions help, v1.6Abhinav
2025-06-04fixed parser not parsing quotes properlyAbhinav
2025-06-03added vertical stack resizingAbhinav
2025-06-02allow shift and control as modifiersAbhinav
2025-06-02added cursor warpingAbhinav
2025-06-01remove DEBUG messagesuint23
2025-06-01adjust syntax of exec config keywordwerdl
2025-05-31add exec config file keywordwerdl
2025-05-31fixed comma spetated should_float options.Abhinav
2025-05-31Merge pull request #56 from elbachir-one/mainuint23
Improved function logic for clarity and maintainability
2025-05-31added option for new windows to take focusAbhinav
2025-05-30Improved function logic for clarity and maintainabilityelbachir-one
Fixed - Corrected double increment bug in `should_floatn` - Ensured `should_float` entries are properly parsed and quoted strings handled - Prevented out-of-bounds access in float parsing - Added fallback error if no config file is found - Improved error messages for better diagnostics - Replaced unnecessary heap allocation with stack-safe operations
2025-05-29removed if (0) {} in favour of just a semi-colonAbhinav
2025-05-29Merge branch 'main' into mainuint23
2025-05-29allow mod + altAbhinav
2025-05-29added proper multi-monitor support.Abhinav
2025-05-28improve should_float parsing (make comments and trailing spaces work),werdl
ensure segfaults are no longer a problem
2025-05-28Add OpenBSD installation instructionswerdl
2025-05-20Merge pull request #32 from werdl/mainuint23
Multiple should_float entries
2025-05-19search /usr/local/share/sxwmrcwerdl
2025-05-19add multiple should_float optionswerdl
2025-05-19multiple should_float entries preliminary workwerdl
2025-05-18it works nowwerdl
2025-05-17use xdg config dirswerdl
2025-05-03update spawn function && binds now work with multiple atgsuint23
2025-05-03update parser so binds will not overlap from pervious binds + parser is more ↵uint23
simple
2025-04-29bruh bruh forgot to set master_width to motion throttle bruh.... also ↵uint23
updated tile function!
2025-04-29discard use of macorsuint23
2025-04-28update formatting (using proper formatting) + WM_TAKE_FOCUSuint23
2025-04-28parseruint23
2025-04-28parser not stable, testinguint23