Commit Graph
30 Commits
Author SHA1 Message Date
sankalp 21cada4969 feat(src/common): replace errorf with LOG_ERROR and add verbose flag
New Features
- None

Enhancements
- Use LOG_ERROR for consistent error logging; add g_verbose flag.

Bug Fixes
- Remove deprecated errorf function.
2026-02-22 02:35:22 +05:45
sankalp 563ebdbbab feat(src): improve logging and refactor console output
Enhancements
- Replace printf and LOG_ERROR with LOG_INFO, LOG_WARN, LOG_PERROR throughout src/app/process.c, src/app/watch.c, and src/audio/config.c
- Use LOG_INFO for headings and formatted tables in sound‑pack listing
- Add missing includes and clean up header organization

Bug Fixes
- Use LOG_PERROR for pipe, fork, and execl failures to log errno correctly
- Ensure proper newline handling in config‑watcher log messages

New Features
- Introduce structured logging for configuration file changes and reload notifications
- Provide clearer usage guidance via LOG_INFO
2026-02-22 02:35:17 +05:45
sankalp 95255580b1 feat(src/common): add write_runtime_system_volume_following_file
The new function writes a runtime state file to track the system volume following setting.

- New Features
  - Added `write_runtime_system_volume_following_file` to persist system volume following state.
2026-02-22 02:08:51 +05:45
sankalp c44ae01226 feat(src/audio): add system volume following and mute handling
New Features:
- Added command-line option for system volume following and a background thread that polls the default audio sink volume
- Integrated the polled volume multiplier into playback volume calculations
- Introduced new runtime states and flags for system volume tracking

Enhancements:
- Replaced scattered printf debugging with standardized LOG_ERROR/DEBUG/WARN macros
- Pre‑read all runtime states before spawning threads, simplifying the main loop
- Detached the poller thread to run continuously without blocking the main loop

Bug Fixes:
- Extended argument count validation to accommodate the new flag
- Updated thread creation error logging to use LOG_ERROR instead of fprintf
- Fixed potential race by initializing the volume multiplier before playback threads start
2026-02-22 02:08:42 +05:45
sankalp 6658d6561b feat(src): Add comprehensive logging and parameterize system volume following
Replace numerous printf statements with LOG_* macros, introduce system_volume_following parameter, and improve error handling throughout the daemon.

New Features
- Introduce LOG_INFO, LOG_ERROR, LOG_WARN for unified diagnostics.
- Add support for system_volume_following when spawning child processes.
- Log detailed startup information instead of raw printf.

Enhancements
- Refactor start_children signature to accept the new parameter.
- Use strerror(errno) in error logs for clearer messages.
- Improve signal handling output and reload request logging.

Bug Fixes
- Correct error formatting for pipe, fork, chdir, and execl failures.
- Ensure proper handling of system_volume_following_str initialization.
- Replace daemon‑specific prints with appropriate log levels.
2026-02-22 02:08:31 +05:45
sankalp 652d14c923 refactor(cli): rename KeyVibe to VBX and add mouse support 2025-10-18 14:41:46 +05:45
sankalp d388b0aec0 style(main): apply minor code formatting and readability improvements 2025-10-18 14:35:46 +05:45
sankalp 52ae286c43 refactor(cli): improve CLI UX with clearer messages and usage instructions 2025-10-18 14:32:04 +05:45
sankalp 1e9f5c784b rebranding 2025-10-18 14:17:52 +05:45
sankalp ce28dc2fde oops many changes, DRY Principle applied other i dont know 2025-10-15 17:04:01 +05:45
sankalp 65dc7da800 oops many changes 2025-10-14 23:32:58 +05:45
sankalp 347d3048f0 feat: add enable/disable keyboard and mouse sounds with CLI options and config file 2025-10-13 23:43:50 +05:45
sankalp 7c10a7a5e3 style(soundpacks): improve sound pack listing format for readability 2025-10-13 23:10:02 +05:45
sankalp c9460d54a4 style(ui): improve sound pack listing output formatting 2025-10-13 23:08:08 +05:45
sankalp 52a7629834 docs: improve CLI usage instructions and error messages 2025-10-13 23:05:37 +05:45
sankalp 4343cf56bf oops many changes 2025-10-13 23:03:22 +05:45
sankalp 028785ac27 oops many changes 2025-10-13 21:35:35 +05:45
sankalp 2e3b870efe oops many changes i forgot to push lol 2025-10-13 09:32:42 +05:45
sankalp b9531d7c53 refactor: remove override-config option and always apply CLI arguments to config 2025-10-13 08:15:25 +05:45
sankalp 868456f025 fix(input): handle EINTR signal and detach input thread 2025-10-08 14:15:02 +05:45
sankalp 872cb30721 refactor: centralize and improve error handling and path construction 2025-10-08 14:11:45 +05:45
sankalp 3650ad254a docs: remove redundant config and examples from usage message 2025-10-08 13:27:27 +05:45
sankalp 2e167e60d9 fix(cli): prevent abbreviated options from being passed via -- parameters 2025-10-08 13:25:54 +05:45
sankalp 446d60dfce fix(cli): correct command-line option parsing and handling 2025-10-08 13:25:06 +05:45
sankalp 7f41bcf0ad refactor: remove reload functionality and enforce exact long option matching 2025-10-08 13:17:46 +05:45
sankalp 5ef12ff2ec fix(audio, cli): handle file read errors and free allocated sound name 2025-10-08 13:05:26 +05:45
sankalp 884c09b607 refactor(audio): remove sound_pack from PlaybackData and add verbose mode 2025-10-08 12:55:44 +05:45
sankalp 59f258a028 fix: prevent buffer overflows when handling long file paths 2025-10-08 12:45:28 +05:45
sankalp 5902bf3ebb feat: add mute functionality via command-line option and runtime file check 2025-10-08 12:35:18 +05:45
sankalp 02c63fae2c feat: implement keyvibe daemon with sound selection and configuration reloading 2025-10-07 22:55:19 +05:45