Tweak to change opacity of dock. Includes experimental “classic” dock setting for botched devices. I intend to make this a more full fledged dock-customization tweak in the future.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TDPRootListController.m 459B

4 년 전
1234567891011121314151617181920212223
  1. #include "TDPRootListController.h"
  2. #import <spawn.h>
  3. @implementation TDPRootListController
  4. - (NSArray *)specifiers {
  5. if (!_specifiers) {
  6. _specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
  7. }
  8. return _specifiers;
  9. }
  10. - (void)respring
  11. {
  12. pid_t pid;
  13. int status;
  14. const char* args[] = {"killall", "-9", "backboardd", NULL};
  15. posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
  16. waitpid(pid, &status, WEXITED);
  17. }
  18. @end