From 07e036db8e467c5baca5ae7445fe80f3d4de943b Mon Sep 17 00:00:00 2001 From: Tim Deeb-Swihart Date: Tue, 12 Mar 2019 19:07:46 -0400 Subject: [PATCH] updates --- alacritty/colors.alacritty | 36 +- config/karabiner/karabiner.json | 434 +++++++++--------- .../local.timods.keepit.favreddit.plist | 21 + zsh/path.sh | 2 +- 4 files changed, 257 insertions(+), 236 deletions(-) create mode 100644 launchagents/local.timods.keepit.favreddit.plist diff --git a/alacritty/colors.alacritty b/alacritty/colors.alacritty index d2f4158..060faf4 100644 --- a/alacritty/colors.alacritty +++ b/alacritty/colors.alacritty @@ -3,28 +3,28 @@ colors: # Default colors primary: # hard contrast: background = '0x1d2021' - background: '0x282828' + background: '0xfffff8' # soft contrast: background = '0x32302f' - foreground: '0xebdbb2' + foreground: '0x111111' # Normal colors normal: - black: '0x282828' - red: '0xcc241d' - green: '0x98971a' - yellow: '0xd79921' - blue: '0x458588' - magenta: '0xb16286' - cyan: '0x689d6a' - white: '0xa89984' + black: '0x111111' + red: '0x111111' + green: '0x111111' + yellow: '0x111111' + blue: '0x187b99' + magenta: '0x111111' + cyan: '0x111111' + white: '0xfffff8' # Bright colors bright: - black: '0x928374' - red: '0xfb4934' - green: '0xb8bb26' - yellow: '0xfabd2f' - blue: '0x83a598' - magenta: '0xd3869b' - cyan: '0x8ec07c' - white: '0xebdbb2' + black: '0x111111' + red: '0x111111' + green: '0x111111' + yellow: '0x111111' + blue: '0x111111' + magenta: '0x111111' + cyan: '0x111111' + white: '0xfffff8' diff --git a/config/karabiner/karabiner.json b/config/karabiner/karabiner.json index 8181947..d810006 100644 --- a/config/karabiner/karabiner.json +++ b/config/karabiner/karabiner.json @@ -1,225 +1,225 @@ { - "global": { - "check_for_updates_on_startup": true, - "show_in_menu_bar": true, - "show_profile_name_in_menu_bar": false - }, - "profiles": [ - { - "complex_modifications": { - "parameters": { - "basic.simultaneous_threshold_milliseconds": 50, - "basic.to_delayed_action_delay_milliseconds": 500, - "basic.to_if_alone_timeout_milliseconds": 1000, - "basic.to_if_held_down_threshold_milliseconds": 500 - }, - "rules": [ - { - "manipulators": [ - { - "description": "Change Control+g to Escape when not in Emacs", - "from": { - "key_code": "g", - "modifiers": { - "mandatory": [ - "left_control" - ] - } + "global": { + "check_for_updates_on_startup": true, + "show_in_menu_bar": false, + "show_profile_name_in_menu_bar": false + }, + "profiles": [ + { + "complex_modifications": { + "parameters": { + "basic.simultaneous_threshold_milliseconds": 50, + "basic.to_delayed_action_delay_milliseconds": 500, + "basic.to_if_alone_timeout_milliseconds": 1000, + "basic.to_if_held_down_threshold_milliseconds": 500 }, - "to": [ - { - "key_code": "escape" - } - ], - "type": "basic", - "conditions": [ - { - "type": "frontmost_application_unless", - "bundle_identifiers": [ - "^org\\.gnu\\.Emacs$", - "^com.culturedcode.ThingsMac$" - ] - } + "rules": [ + { + "manipulators": [ + { + "conditions": [ + { + "bundle_identifiers": [ + "^org\\.gnu\\.Emacs$", + "^com.culturedcode.ThingsMac$" + ], + "type": "frontmost_application_unless" + } + ], + "description": "Change Control+g to Escape when not in Emacs", + "from": { + "key_code": "g", + "modifiers": { + "mandatory": [ + "left_control" + ] + } + }, + "to": [ + { + "key_code": "escape" + } + ], + "type": "basic" + } + ] + }, + { + "manipulators": [ + { + "description": "Change right_option to command+control+option+shift. Escape if no other key used.", + "from": { + "key_code": "right_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_shift", + "lazy": true, + "modifiers": [ + "left_command", + "left_control", + "left_option" + ] + } + ], + "to_if_alone": [ + { + "key_code": "escape", + "modifiers": { + "optional": [ + "any" + ] + } + } + ], + "type": "basic" + } + ] + } ] - } - ] - }, - { - "manipulators": [ - { - "description": "Change right_option to command+control+option+shift. Escape if no other key used.", - "from": { - "key_code": "right_option", - "modifiers": { - "optional": [ - "any" + }, + "devices": [ + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 257, + "vendor_id": 1204 + }, + "ignore": false, + "manipulate_caps_lock_led": false, + "simple_modifications": [ + { + "from": { + "key_code": "left_option" + }, + "to": { + "key_code": "left_command" + } + } ] - } + } + ], + "fn_function_keys": [ + { + "from": { + "key_code": "f1" + }, + "to": { + "consumer_key_code": "display_brightness_decrement" + } }, - "to": [ - { - "key_code": "left_shift", - "lazy": true, - "modifiers": [ - "left_command", - "left_control", - "left_option" - ] - } - ], - "to_if_alone": [ - { - "key_code": "escape", - "modifiers": { - "optional": [ - "any" - ] + { + "from": { + "key_code": "f2" + }, + "to": { + "consumer_key_code": "display_brightness_increment" } - } - ], - "type": "basic" - } - ] - } - ] - }, - "devices": [ - { - "disable_built_in_keyboard_if_exists": false, - "fn_function_keys": [], - "identifiers": { - "is_keyboard": true, - "is_pointing_device": false, - "product_id": 257, - "vendor_id": 1204 - }, - "ignore": false, - "manipulate_caps_lock_led": false, - "simple_modifications": [ - { - "from": { - "key_code": "left_option" - }, - "to": { - "key_code": "left_command" - } + }, + { + "from": { + "key_code": "f3" + }, + "to": { + "key_code": "mission_control" + } + }, + { + "from": { + "key_code": "f4" + }, + "to": { + "key_code": "launchpad" + } + }, + { + "from": { + "key_code": "f5" + }, + "to": { + "key_code": "illumination_decrement" + } + }, + { + "from": { + "key_code": "f6" + }, + "to": { + "key_code": "illumination_increment" + } + }, + { + "from": { + "key_code": "f7" + }, + "to": { + "consumer_key_code": "rewind" + } + }, + { + "from": { + "key_code": "f8" + }, + "to": { + "consumer_key_code": "play_or_pause" + } + }, + { + "from": { + "key_code": "f9" + }, + "to": { + "consumer_key_code": "fastforward" + } + }, + { + "from": { + "key_code": "f10" + }, + "to": { + "consumer_key_code": "mute" + } + }, + { + "from": { + "key_code": "f11" + }, + "to": { + "consumer_key_code": "volume_decrement" + } + }, + { + "from": { + "key_code": "f12" + }, + "to": { + "consumer_key_code": "volume_increment" + } + } + ], + "name": "Default profile", + "selected": true, + "simple_modifications": [ + { + "from": { + "key_code": "caps_lock" + }, + "to": { + "key_code": "left_control" + } + } + ], + "virtual_hid_keyboard": { + "country_code": 0 } - ] - } - ], - "fn_function_keys": [ - { - "from": { - "key_code": "f1" - }, - "to": { - "consumer_key_code": "display_brightness_decrement" - } - }, - { - "from": { - "key_code": "f2" - }, - "to": { - "consumer_key_code": "display_brightness_increment" - } - }, - { - "from": { - "key_code": "f3" - }, - "to": { - "key_code": "mission_control" - } - }, - { - "from": { - "key_code": "f4" - }, - "to": { - "key_code": "launchpad" - } - }, - { - "from": { - "key_code": "f5" - }, - "to": { - "key_code": "illumination_decrement" - } - }, - { - "from": { - "key_code": "f6" - }, - "to": { - "key_code": "illumination_increment" - } - }, - { - "from": { - "key_code": "f7" - }, - "to": { - "consumer_key_code": "rewind" - } - }, - { - "from": { - "key_code": "f8" - }, - "to": { - "consumer_key_code": "play_or_pause" - } - }, - { - "from": { - "key_code": "f9" - }, - "to": { - "consumer_key_code": "fastforward" - } - }, - { - "from": { - "key_code": "f10" - }, - "to": { - "consumer_key_code": "mute" - } - }, - { - "from": { - "key_code": "f11" - }, - "to": { - "consumer_key_code": "volume_decrement" - } - }, - { - "from": { - "key_code": "f12" - }, - "to": { - "consumer_key_code": "volume_increment" - } - } - ], - "name": "Default profile", - "selected": true, - "simple_modifications": [ - { - "from": { - "key_code": "caps_lock" - }, - "to": { - "key_code": "left_control" - } } - ], - "virtual_hid_keyboard": { - "country_code": 0 - } - } - ] -} + ] +} \ No newline at end of file diff --git a/launchagents/local.timods.keepit.favreddit.plist b/launchagents/local.timods.keepit.favreddit.plist new file mode 100644 index 0000000..93c7a2d --- /dev/null +++ b/launchagents/local.timods.keepit.favreddit.plist @@ -0,0 +1,21 @@ + + + + + Label + local.timods.keepit.redditfavs + ProgramArguments + + /usr/local/bin/python3 + /Users/timods/.local/bin/store-redditfavs-keepit.py + + StartInterval + 3600 + RunAtLoad + + StandardErrorPath + /Users/timods/Library/Logs/Local/keepit-redditfavs.stderr.log + StandardOutPath + /Users/timods/Library/Logs/Local/keepit-redditfavs.stdout.log + + diff --git a/zsh/path.sh b/zsh/path.sh index a696ef6..bab3ac1 100644 --- a/zsh/path.sh +++ b/zsh/path.sh @@ -24,7 +24,7 @@ case $(uname -s) in Darwin) # since /usr/local is managed by homebrew (and it complains about "unmanaged" pkgs, I use $HOME/.local BASEPATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:" - BASEPATH=$(__maybe_append "$BASEPATH" "/opt/X11/bin" "/Library/TeX/texbin" "$HOME/macports/bin") + BASEPATH=$(__maybe_append "$BASEPATH" "/opt/X11/bin" "/Library/TeX/texbin" "$HOME/macports/bin" "$HOME/Library/Python/3.7/bin") if [ -z "$JAVA_HOME" -a -d /System/Library/Frameworks/JavaVM.framework/Home ]; then export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"