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.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

24 lines
459B

  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