Commit Graph

  • 00e6bf811a Cron support wayland Konstantin Pereiaslov 2026-01-05 02:05:54 -06:00
  • 6be2b875bf Experimental Wayland support Konstantin Pereiaslov 2026-01-02 03:10:57 -06:00
  • 3ab0abf113 Update README.md main Konstantin Pereiaslov 2024-06-25 08:43:53 +03:00
  • 76bb5b9ac1 Update README.md Konstantin Pereiaslov 2024-02-12 21:25:47 +03:00
  • 7a32df8f53 Update README.md Konstantin Pereiaslov 2024-02-12 21:25:35 +03:00
  • 29e1961e3e Fix wrong number in example in README.md Konstantin Pereiaslov 2024-02-12 21:24:59 +03:00
  • 8287735913 Update README.md Konstantin Pereiaslov 2024-01-14 22:28:43 +03:00
  • e9792203a8 Make errors bold Konstantin Pereiaslov 2024-01-08 00:32:31 -06:00
  • 72eca0b87e Update spacing in usage 0.5.0 Konstantin Pereiaslov 2024-01-07 13:05:07 -06:00
  • 92ab534704 Use comma instead of pipe for separating argument name variations Konstantin Pereiaslov 2024-01-07 02:41:18 -06:00
  • ee3840bf9c Fix error messages when non-numeric value is passed to numeric arguments Konstantin Pereiaslov 2024-01-07 02:39:27 -06:00
  • 94e8b6d248 Improve output in case of user errors Konstantin Pereiaslov 2024-01-07 02:22:46 -06:00
  • 5cc78ac4d4 Make getopt error messages red and add binary name to other argument parsing errors Konstantin Pereiaslov 2024-01-07 02:08:10 -06:00
  • a06837530e Improve formatting of usage Konstantin Pereiaslov 2024-01-07 01:15:54 -06:00
  • ae47d9dfdc Mirror changes from readme in --help Konstantin Pereiaslov 2024-01-07 01:06:59 -06:00
  • 37ab18d310 Update README.md Konstantin Pereiaslov 2024-01-07 01:03:29 -06:00
  • 1b7c092444 Update README.md Konstantin Pereiaslov 2024-01-07 09:54:08 +03:00
  • 86011052aa README.md improvements Konstantin Pereiaslov 2024-01-07 09:50:32 +03:00
  • 5055d4f949 Update README.md Konstantin Pereiaslov 2024-01-07 09:22:49 +03:00
  • fffe7f31a6 Simplify logic in fprintf_error Konstantin Pereiaslov 2024-01-05 03:23:26 -06:00
  • b858c7c4a7 Turn polling_interval_ms into a constant Konstantin Pereiaslov 2024-01-05 03:15:46 -06:00
  • b2c8e2f20b Fix copy-paste error Konstantin Pereiaslov 2024-01-05 03:10:10 -06:00
  • 941d8fd046 Output fopen errors other than file not found even when debug is not on Konstantin Pereiaslov 2024-01-05 02:58:14 -06:00
  • b2ed78225a Additional debug messages Konstantin Pereiaslov 2024-01-05 02:49:44 -06:00
  • 9b53b0f696 Add missing fclose() on proc stat file Konstantin Pereiaslov 2024-01-05 02:49:30 -06:00
  • bb6d1690fd Fix that SIGINT and SIGTERM received by runwhenindle were sent to the process even in PID mode. Konstantin Pereiaslov 2024-01-05 02:37:26 -06:00
  • 395d43dc05 Check if PID is running before starting to monitor Konstantin Pereiaslov 2024-01-05 02:23:45 -06:00
  • 411463b319 Remove unused header Konstantin Pereiaslov 2024-01-05 02:11:10 -06:00
  • 76794c2c1a Update README to account for recent updates Konstantin Pereiaslov 2024-01-05 01:56:42 -06:00
  • 629515652e Rework get_child_processes to use array instead of linked list Konstantin Pereiaslov 2024-01-04 01:39:38 -06:00
  • 264da8d4c7 Update sizeof syntax Konstantin Pereiaslov 2024-01-04 00:34:23 -06:00
  • 475350b05f Change default pause method to SIGSTOP for compatibility with more programs out of the box. Konstantin Pereiaslov 2024-01-04 00:07:04 -06:00
  • dc61e18ba4 Add support of managing an external pid Konstantin Pereiaslov 2024-01-04 00:03:55 -06:00
  • 26925400bd Improve parsing of /proc/[pid]/stat to better support the format and account for command names with spaces Konstantin Pereiaslov 2024-01-03 23:03:04 -06:00
  • fd450f8079 Fix failed to parse message Konstantin Pereiaslov 2024-01-03 14:51:30 -06:00
  • f964e64751 Automated code formatting Konstantin Pereiaslov 2024-01-01 22:13:00 -06:00
  • e833f1645f Handle fscanf error Konstantin Pereiaslov 2024-01-01 22:05:40 -06:00
  • c60145da54 Make pausing fully recursive, even with multiple levels of processes. Konstantin Pereiaslov 2024-01-01 22:02:31 -06:00
  • a94e9e0ad5 Update switch syntax to delineate blocks with variable declarations in them Konstantin Pereiaslov 2024-01-01 17:51:47 -06:00
  • 7b0294558c Fix passing invalid value to pause-method argument not causing an error Konstantin Pereiaslov 2024-01-01 17:50:54 -06:00
  • a983cb2490 First version of pausing/resuming recursively Konstantin Pereiaslov 2023-10-01 22:53:47 -05:00
  • 77b26a4cdf Remove unused include Konstantin Pereiaslov 2023-09-21 01:53:26 -05:00
  • de8b698545 Pass errno to handle_kill_error rather than reading it there and use strerror() rather than parsing error manually. 0.4.1 Konstantin Pereiaslov 2023-09-21 01:44:07 -05:00
  • 3228448b64 Fix typo in help text 0.4.0 Konstantin Pereiaslov 2023-09-21 00:29:25 -05:00
  • 3d489a39a3 Improve help text Konstantin Pereiaslov 2023-09-21 00:20:45 -05:00
  • c3f5ac2f2c Better help text formatting Konstantin Pereiaslov 2023-09-21 00:19:28 -05:00
  • 7ca7a439d0 Fail compilation on gcc warnings Konstantin Pereiaslov 2023-09-21 00:13:44 -05:00
  • c629c302ad Fix incorrect variable types in debug message strings Konstantin Pereiaslov 2023-09-21 00:13:29 -05:00
  • 2372b47522 Update README.md - fix typo Konstantin Pereiaslov 2023-09-21 08:04:24 +03:00
  • 77606972ab Add "Known issues" section to README Konstantin Pereiaslov 2023-09-08 11:40:49 +03:00
  • c647c18fcd Newline in README Konstantin Pereiaslov 2023-09-06 04:52:50 +03:00
  • ff867ea9cf README minor improvements Konstantin Pereiaslov 2023-09-05 20:52:10 -05:00
  • 62225b1de7 Update README and TODO as AUR package now exists. Konstantin Pereiaslov 2023-09-05 20:51:57 -05:00
  • c0ca488f4e Fix that default pause method was undefined Konstantin Pereiaslov 2023-09-05 03:38:08 -05:00
  • 468dba6985 Fix typo and lack of new line Konstantin Pereiaslov 2023-09-05 03:37:47 -05:00
  • 0d0f5c81ef Add missing include Konstantin Pereiaslov 2023-09-05 03:37:04 -05:00
  • 55b16873c2 Consistent spaces in README Konstantin Pereiaslov 2023-09-05 05:13:17 +03:00
  • a44f030b6b Synchronize option description between --help and README Konstantin Pereiaslov 2023-09-04 21:09:20 -05:00
  • 34f502fb2c Add pause method argument and support SIGSTOP Konstantin Pereiaslov 2023-09-04 21:01:30 -05:00
  • d61c15ab0f Remove unnecessary extra braces Konstantin Pereiaslov 2023-09-04 20:55:19 -05:00
  • dfb2e8aec0 Move newline from fprintf_error to the error messages Konstantin Pereiaslov 2023-09-04 20:38:28 -05:00
  • 731b3f791d Remove unreachable break Konstantin Pereiaslov 2023-09-04 19:35:43 -05:00
  • 6d7471e17e Fix typo Konstantin Pereiaslov 2023-09-04 01:50:59 -05:00
  • b00fce8538 Move argument parsing to a separate file Konstantin Pereiaslov 2023-09-04 01:50:54 -05:00
  • 7e2725aad1 Move wait_for_pid_to_exit_synchronously and exit_if_pid_has_finished to process_handling.c Konstantin Pereiaslov 2023-09-04 01:37:51 -05:00
  • f32da29ab9 Move process handling to a separate source file Konstantin Pereiaslov 2023-09-04 01:19:21 -05:00
  • 8ba84e47ec Move command line arguments parsing into a separate function Konstantin Pereiaslov 2023-09-04 00:57:28 -05:00
  • 7c5370ba03 Add start-monitoring-after option, move main check to pause_or_resume_command_depending_on_user_activity, improve help. Konstantin Pereiaslov 2023-09-04 00:51:09 -05:00
  • fbebf378e7 Move code comment Konstantin Pereiaslov 2023-09-03 23:48:04 -05:00
  • 26460aaafa Make command_paused volatile sig_atomic_t Konstantin Pereiaslov 2023-09-03 23:46:50 -05:00
  • c6343fe721 Fix error message when using --quiet and --debug Konstantin Pereiaslov 2023-09-03 22:24:12 -05:00
  • d29b649b07 Implement handling the interruption signals: pass them to the underlying command and stop the idle checks 0.3.0 Konstantin Pereiaslov 2023-09-03 21:26:40 -05:00
  • d85a6c3e11 More debug output Konstantin Pereiaslov 2023-09-03 20:29:13 -05:00
  • 4c7e4b5c80 Fix typo Konstantin Pereiaslov 2023-09-03 19:31:19 -05:00
  • 3d62c26f8f Add debug output Konstantin Pereiaslov 2023-09-03 18:54:43 -05:00
  • 42556a508a Fix default values not being defined for verbose and quiet variables. Konstantin Pereiaslov 2023-08-31 04:55:40 -05:00
  • a9604fce1f Rework error messages printing function and make more error messages red Konstantin Pereiaslov 2023-06-29 00:21:45 -05:00
  • 8421817c82 Make error messages red Konstantin Pereiaslov 2023-06-28 23:55:42 -05:00
  • 75d1a2135f Check that X and XScreensaver are available and if not, run the command without pausing it. Konstantin Pereiaslov 2023-06-28 23:44:08 -05:00
  • 5182506638 Add TODO item Konstantin Pereiaslov 2023-06-03 06:15:53 +03:00
  • 465efe02ad Fix type of sleep_time_ms in fprintf Konstantin Pereiaslov 2023-05-28 20:03:10 -05:00
  • afc9928d35 Remove .idea directory and add it to .gitignore instead Konstantin Pereiaslov 2023-05-28 19:27:40 -05:00
  • fc39ce1407 declare a scope around "t" argument handling to have declared constants and variables work properly. Konstantin Pereiaslov 2023-05-28 19:24:50 -05:00
  • 1d57e216ec Remove unnecessary code for removing quotes, getopt already removes the quotes. Konstantin Pereiaslov 2023-05-28 19:19:59 -05:00
  • 9344aa4e4e Add --version argument Konstantin Pereiaslov 2023-05-28 18:54:06 -05:00
  • c62dc47f68 Free memory used for storing shell command string once it's no longer needed. 0.2.0 Konstantin Pereiaslov 2023-05-28 02:53:02 -05:00
  • e3e90723b1 After encountering first unknown argument start treating the remaining arguments as command to be run. Konstantin Pereiaslov 2023-05-28 02:30:53 -05:00
  • 9b34d7392b Add a TODO item. Konstantin Pereiaslov 2023-05-20 09:44:11 +03:00
  • 56d6a6e7f4 Fix possible overflow in timeout parameter Konstantin Pereiaslov 2023-05-20 01:36:54 -05:00
  • 91671c0cfb Add a TODO item. Konstantin Pereiaslov 2023-05-20 01:36:02 -05:00
  • 592c4e239f Account for the time it took to pause the command when calculating how long to sleep for. Konstantin Pereiaslov 2023-05-20 00:40:08 -05:00
  • 07b6f83543 Add header include to sleep_utils.c Konstantin Pereiaslov 2023-05-20 00:17:29 -05:00
  • 367bc6636c Add TODO Konstantin Pereiaslov 2023-05-19 23:43:57 -05:00
  • 6347fe4ca3 Remove trailing dots in messages Konstantin Pereiaslov 2023-05-19 23:43:13 -05:00
  • 55bdd5c625 Automated code formatting Konstantin Pereiaslov 2023-05-19 23:40:54 -05:00
  • 79296a81f0 Change idle time comparison to >= instead of > to avoid an extra sleep when idle time matches the timeout exactly. Konstantin Pereiaslov 2023-05-19 23:40:30 -05:00
  • 8b76c78cce Change polling to use nanosleep and calculate sleep times in ms. Konstantin Pereiaslov 2023-05-19 23:39:16 -05:00
  • 482fb66e54 Make commands that fail, fail faster and move first idle check before first sleep, but after an initial 300ms sleep Konstantin Pereiaslov 2023-05-19 22:56:22 -05:00
  • 83c82b352e Display the command that was started Konstantin Pereiaslov 2023-05-19 21:24:40 -05:00
  • 3fff3d3cab Handle all kill errors Konstantin Pereiaslov 2023-05-19 21:06:28 -05:00