diff --git a/editors/code/settings.json b/editors/code/settings.json index 3aa3d01..7e8d5dc 100644 --- a/editors/code/settings.json +++ b/editors/code/settings.json @@ -68,4 +68,4 @@ "editor.inlineSuggest.enabled": true, "aws.telemetry": false, "symbols.hidesExplorerArrows": false -} \ No newline at end of file +} diff --git a/modules/private b/modules/private index b8a7e4f..16b917a 160000 --- a/modules/private +++ b/modules/private @@ -1 +1 @@ -Subproject commit b8a7e4f3f684514dc4ccf08a2c7ae2ecd7e1201a +Subproject commit 16b917ac1d3e5cd5a565f44d10ad0137a44122cf diff --git a/os/mac/iTerm/com.googlecode.iterm2.plist b/os/mac/iTerm/com.googlecode.iterm2.plist index 4bd6a47..6eea9fa 100644 --- a/os/mac/iTerm/com.googlecode.iterm2.plist +++ b/os/mac/iTerm/com.googlecode.iterm2.plist @@ -31,6 +31,10 @@ AutoHideTmuxClientSession + BadgeRightMargin + 20 + BadgeTopMargin + 20 CheckTestRelease ClosingHotkeySwitchesSpaces @@ -2375,7 +2379,7 @@ Blur Blur Radius - 20.445611702127664 + 24.963572140957449 Bold Color Alpha Component @@ -2970,7 +2974,7 @@ Title Components 512 Transparency - 0.050465425531914937 + 0.15461657801418438 Triggers Underline Color @@ -3600,1431 +3604,6 @@ Working Directory /Users/rafael.antonio - - ASCII Anti Aliased - - AWDS Pane Directory - - AWDS Pane Option - Recycle - AWDS Tab Directory - - AWDS Tab Option - No - AWDS Window Directory - - AWDS Window Option - No - Allow Title Reporting - - Allow Title Setting - - Ambiguous Double Width - - Ansi 0 Color - - Alpha Component - 1 - Blue Component - 0.15686274509803921 - Color Space - sRGB - Green Component - 0.15686274509803921 - Red Component - 0.15686274509803921 - - Ansi 0 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.15686275064945221 - Color Space - sRGB - Green Component - 0.15686275064945221 - Red Component - 0.15686275064945221 - - Ansi 0 Color (Light) - - Alpha Component - 1 - Blue Component - 0.15686275064945221 - Color Space - sRGB - Green Component - 0.15686275064945221 - Red Component - 0.15686275064945221 - - Ansi 1 Color - - Alpha Component - 1 - Blue Component - 0.40756040252745152 - Color Space - sRGB - Green Component - 0.4664244349896543 - Red Component - 0.968170166015625 - - Ansi 1 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.40756040811538696 - Color Space - sRGB - Green Component - 0.46642443537712097 - Red Component - 0.968170166015625 - - Ansi 1 Color (Light) - - Alpha Component - 1 - Blue Component - 0.40756040811538696 - Color Space - sRGB - Green Component - 0.46642443537712097 - Red Component - 0.968170166015625 - - Ansi 10 Color - - Alpha Component - 1 - Blue Component - 0.21576434373855591 - Color Space - sRGB - Green Component - 0.7080078125 - Red Component - 0.69809702182517264 - - Ansi 10 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.21576434373855591 - Color Space - sRGB - Green Component - 0.7080078125 - Red Component - 0.69809705018997192 - - Ansi 10 Color (Light) - - Alpha Component - 1 - Blue Component - 0.21576434373855591 - Color Space - sRGB - Green Component - 0.7080078125 - Red Component - 0.69809705018997192 - - Ansi 11 Color - - Alpha Component - 1 - Blue Component - 0.29365861415863037 - Color Space - sRGB - Green Component - 0.74970880619633185 - Red Component - 0.94561767578125 - - Ansi 11 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.29365861415863037 - Color Space - sRGB - Green Component - 0.74970883131027222 - Red Component - 0.94561767578125 - - Ansi 11 Color (Light) - - Alpha Component - 1 - Blue Component - 0.29365861415863037 - Color Space - sRGB - Green Component - 0.74970883131027222 - Red Component - 0.94561767578125 - - Ansi 12 Color - - Alpha Component - 1 - Blue Component - 0.61650518805254251 - Color Space - sRGB - Green Component - 0.63397216796875 - Red Component - 0.58739355485886335 - - Ansi 12 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.6165052056312561 - Color Space - sRGB - Green Component - 0.63397216796875 - Red Component - 0.58739358186721802 - - Ansi 12 Color (Light) - - Alpha Component - 1 - Blue Component - 0.6165052056312561 - Color Space - sRGB - Green Component - 0.63397216796875 - Red Component - 0.58739358186721802 - - Ansi 13 Color - - Alpha Component - 1 - Blue Component - 0.65460144969349665 - Color Space - sRGB - Green Component - 0.59857095591723919 - Red Component - 0.80401611328125 - - Ansi 13 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.65460145473480225 - Color Space - sRGB - Green Component - 0.59857094287872314 - Red Component - 0.80401611328125 - - Ansi 13 Color (Light) - - Alpha Component - 1 - Blue Component - 0.65460145473480225 - Color Space - sRGB - Green Component - 0.59857094287872314 - Red Component - 0.80401611328125 - - Ansi 14 Color - - Alpha Component - 1 - Blue Component - 0.57698732241988182 - Color Space - sRGB - Green Component - 0.744476318359375 - Red Component - 0.62132267240144012 - - Ansi 14 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.57698732614517212 - Color Space - sRGB - Green Component - 0.744476318359375 - Red Component - 0.62132269144058228 - - Ansi 14 Color (Light) - - Alpha Component - 1 - Blue Component - 0.57698732614517212 - Color Space - sRGB - Green Component - 0.744476318359375 - Red Component - 0.62132269144058228 - - Ansi 15 Color - - Alpha Component - 1 - Blue Component - 0.78061337023973465 - Color Space - sRGB - Green Component - 0.86738357418461842 - Red Component - 0.9012451171875 - - Ansi 15 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.78061336278915405 - Color Space - sRGB - Green Component - 0.86738359928131104 - Red Component - 0.9012451171875 - - Ansi 15 Color (Light) - - Alpha Component - 1 - Blue Component - 0.78061336278915405 - Color Space - sRGB - Green Component - 0.86738359928131104 - Red Component - 0.9012451171875 - - Ansi 2 Color - - Alpha Component - 1 - Blue Component - 0.14901960784313725 - Color Space - sRGB - Green Component - 0.73333333333333328 - Red Component - 0.72156862745098038 - - Ansi 2 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.14901961386203766 - Color Space - sRGB - Green Component - 0.73333334922790527 - Red Component - 0.72156864404678345 - - Ansi 2 Color (Light) - - Alpha Component - 1 - Blue Component - 0.14901961386203766 - Color Space - sRGB - Green Component - 0.73333334922790527 - Red Component - 0.72156864404678345 - - Ansi 3 Color - - Alpha Component - 1 - Blue Component - 0.18431372549019609 - Color Space - sRGB - Green Component - 0.74117647058823533 - Red Component - 0.98039215686274506 - - Ansi 3 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.18431372940540314 - Color Space - sRGB - Green Component - 0.74117648601531982 - Red Component - 0.98039215803146362 - - Ansi 3 Color (Light) - - Alpha Component - 1 - Blue Component - 0.18431372940540314 - Color Space - sRGB - Green Component - 0.74117648601531982 - Red Component - 0.98039215803146362 - - Ansi 4 Color - - Alpha Component - 1 - Blue Component - 0.59607843137254901 - Color Space - sRGB - Green Component - 0.64313725490196083 - Red Component - 0.51764705882352946 - - Ansi 4 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.59607845544815063 - Color Space - sRGB - Green Component - 0.64313727617263794 - Red Component - 0.51764708757400513 - - Ansi 4 Color (Light) - - Alpha Component - 1 - Blue Component - 0.59607845544815063 - Color Space - sRGB - Green Component - 0.64313727617263794 - Red Component - 0.51764708757400513 - - Ansi 5 Color - - Alpha Component - 1 - Blue Component - 0.60392156862745094 - Color Space - sRGB - Green Component - 0.52156862745098043 - Red Component - 0.82745098039215681 - - Ansi 5 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.60392159223556519 - Color Space - sRGB - Green Component - 0.5215686559677124 - Red Component - 0.82745099067687988 - - Ansi 5 Color (Light) - - Alpha Component - 1 - Blue Component - 0.60392159223556519 - Color Space - sRGB - Green Component - 0.5215686559677124 - Red Component - 0.82745099067687988 - - Ansi 6 Color - - Alpha Component - 1 - Blue Component - 0.4823529411764706 - Color Space - sRGB - Green Component - 0.75294117647058822 - Red Component - 0.55686274509803924 - - Ansi 6 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.48235294222831726 - Color Space - sRGB - Green Component - 0.75294119119644165 - Red Component - 0.55686277151107788 - - Ansi 6 Color (Light) - - Alpha Component - 1 - Blue Component - 0.48235294222831726 - Color Space - sRGB - Green Component - 0.75294119119644165 - Red Component - 0.55686277151107788 - - Ansi 7 Color - - Alpha Component - 1 - Blue Component - 0.69803921568627447 - Color Space - sRGB - Green Component - 0.85882352941176465 - Red Component - 0.92156862745098034 - - Ansi 7 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Ansi 7 Color (Light) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Ansi 8 Color - - Alpha Component - 1 - Blue Component - 0.37962067127227783 - Color Space - Calibrated - Green Component - 0.43934443593025208 - Red Component - 0.49889594316482544 - - Ansi 8 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.45490187406539917 - Color Space - sRGB - Green Component - 0.51372551918029785 - Red Component - 0.57254910469055176 - - Ansi 8 Color (Light) - - Alpha Component - 1 - Blue Component - 0.45490187406539917 - Color Space - sRGB - Green Component - 0.51372551918029785 - Red Component - 0.57254910469055176 - - Ansi 9 Color - - Alpha Component - 1 - Blue Component - 0.51264901412650943 - Color Space - sRGB - Green Component - 0.55849746182248305 - Red Component - 0.949737548828125 - - Ansi 9 Color (Dark) - - Alpha Component - 1 - Blue Component - 0.51264899969100952 - Color Space - sRGB - Green Component - 0.55849748849868774 - Red Component - 0.949737548828125 - - Ansi 9 Color (Light) - - Alpha Component - 1 - Blue Component - 0.51264899969100952 - Color Space - sRGB - Green Component - 0.55849748849868774 - Red Component - 0.949737548828125 - - Automatically Log - - BM Growl - - Background Color - - Alpha Component - 1 - Blue Component - 0.11764705882352941 - Color Space - sRGB - Green Component - 0.11764705882352941 - Red Component - 0.11764705882352941 - - Background Color (Dark) - - Alpha Component - 1 - Blue Component - 0.11764705926179886 - Color Space - sRGB - Green Component - 0.11764705926179886 - Red Component - 0.11764705926179886 - - Background Color (Light) - - Alpha Component - 1 - Blue Component - 0.11764705926179886 - Color Space - sRGB - Green Component - 0.11764705926179886 - Red Component - 0.11764705926179886 - - Background Image Is Tiled - - Background Image Location - - Badge Color - - Alpha Component - 0.5 - Blue Component - 0.056549370288848877 - Color Space - Calibrated - Green Component - 0.28100395202636719 - Red Component - 0.7928692102432251 - - Badge Color (Dark) - - Alpha Component - 0.5 - Blue Component - 0.054901950061321259 - Color Space - sRGB - Green Component - 0.36470580101013184 - Red Component - 0.83921569585800171 - - Badge Color (Light) - - Alpha Component - 0.5 - Blue Component - 0.054901950061321259 - Color Space - sRGB - Green Component - 0.36470580101013184 - Red Component - 0.83921569585800171 - - Blend - 0.30000001192092896 - Blink Allowed - - Blinking Cursor - - Blur - - Blur Radius - 20.445611702127664 - Bold Color - - Alpha Component - 1 - Blue Component - 0.56362819671630859 - Color Space - sRGB - Green Component - 0.87750965960984739 - Red Component - 1 - - Bold Color (Dark) - - Alpha Component - 1 - Blue Component - 0.56362819671630859 - Color Space - sRGB - Green Component - 0.87750965356826782 - Red Component - 1 - - Bold Color (Light) - - Alpha Component - 1 - Blue Component - 0.56362819671630859 - Color Space - sRGB - Green Component - 0.87750965356826782 - Red Component - 1 - - Bound Hosts - - Brighten Bold Text - - Brighten Bold Text (Dark) - - Brighten Bold Text (Light) - - Character Encoding - 4 - Close Sessions On End - 1 - Columns - 120 - Command - /bin/zsh - Cursor Boost - 0.0 - Cursor Boost (Dark) - 0.0 - Cursor Boost (Light) - 0.0 - Cursor Color - - Alpha Component - 1 - Blue Component - 0.63873869180679321 - Color Space - Calibrated - Green Component - 0.82989895343780518 - Red Component - 0.90061241388320923 - - Cursor Color (Dark) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Cursor Color (Light) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Cursor Guide Color - - Alpha Component - 1 - Blue Component - 0.15993706881999969 - Color Space - Calibrated - Green Component - 0.16613791882991791 - Red Component - 0.17867125570774078 - - Cursor Guide Color (Dark) - - Alpha Component - 1 - Blue Component - 0.21176469326019287 - Color Space - sRGB - Green Component - 0.21960783004760742 - Red Component - 0.23529419302940369 - - Cursor Guide Color (Light) - - Alpha Component - 1 - Blue Component - 0.21176469326019287 - Color Space - sRGB - Green Component - 0.21960783004760742 - Red Component - 0.23529419302940369 - - Cursor Shadow - - Cursor Text Color - - Alpha Component - 1 - Blue Component - 0.11759774386882782 - Color Space - Calibrated - Green Component - 0.11759573966264725 - Red Component - 0.11759927868843079 - - Cursor Text Color (Dark) - - Alpha Component - 1 - Blue Component - 0.15686270594596863 - Color Space - sRGB - Green Component - 0.15686270594596863 - Red Component - 0.15686273574829102 - - Cursor Text Color (Light) - - Alpha Component - 1 - Blue Component - 0.15686270594596863 - Color Space - sRGB - Green Component - 0.15686270594596863 - Red Component - 0.15686273574829102 - - Cursor Type - 1 - Custom Command - Yes - Custom Directory - Advanced - Default Bookmark - No - Disable Printing - - Disable Smcup Rmcup - - Disable Window Resizing - - Draw Powerline Glyphs - - Flashing Bell - - Foreground Color - - Alpha Component - 1 - Blue Component - 0.63873869180679321 - Color Space - Calibrated - Green Component - 0.82989895343780518 - Red Component - 0.90061241388320923 - - Foreground Color (Dark) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Foreground Color (Light) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Guid - 73097297-D224-42BD-9D76-14FCD795993B - Has Hotkey - - Hide After Opening - - Horizontal Spacing - 1 - Icon - 0 - Idle Code - 0 - Initial Text - - Initial Use Transparency - - Jobs to Ignore - - rlogin - ssh - slogin - telnet - - Keyboard Map - - 0x56-0x120000 - - Action - 42 - Text - {"ConvertUnicodePunctuation":true,"WaitForPrompts":false,"Substitution":"","EscapeForShell":false,"Base64":false,"TabStopSize":4,"Delay":0.01,"RemoveNewlines":false,"Regex":"","ConvertNewlines":true,"TabTransform":0,"BracketAllowed":true,"UseRegexSubstitution":false,"ChunkSize":1024,"RemoveControls":true} - - - Link Color - - Alpha Component - 1 - Blue Component - 0.49803921568627452 - Color Space - sRGB - Green Component - 0.74901960784313726 - Red Component - 0.5607843137254902 - - Link Color (Dark) - - Alpha Component - 1 - Blue Component - 0.49803921580314636 - Color Space - sRGB - Green Component - 0.74901962280273438 - Red Component - 0.56078433990478516 - - Link Color (Light) - - Alpha Component - 1 - Blue Component - 0.49803921580314636 - Color Space - sRGB - Green Component - 0.74901962280273438 - Red Component - 0.56078433990478516 - - Log Directory - - Minimum Contrast - 0.0 - Minimum Contrast (Dark) - 0.0 - Minimum Contrast (Light) - 0.0 - Mouse Reporting - - Name - tmux - Non Ascii Font - DankMonoNerdFontCompleteM-Regular 18 - Non-ASCII Anti Aliased - - Normal Font - DankMonoNerdFontCompleteM-Regular 19 - Only The Default BG Color Uses Transparency - - Open Toolbelt - - Option Key Sends - 0 - Place Prompt at First Column - - Prompt Before Closing 2 - 2 - Right Option Key Sends - 0 - Rows - 34 - Screen - -2 - Scrollback Lines - 1000 - Selected Text Color - - Alpha Component - 1 - Blue Component - 0.26041668653488159 - Color Space - Calibrated - Green Component - 0.2891082763671875 - Red Component - 0.32501408457756042 - - Selected Text Color (Dark) - - Alpha Component - 1 - Blue Component - 0.32941171526908875 - Color Space - sRGB - Green Component - 0.36078426241874695 - Red Component - 0.39999997615814209 - - Selected Text Color (Light) - - Alpha Component - 1 - Blue Component - 0.32941171526908875 - Color Space - sRGB - Green Component - 0.36078426241874695 - Red Component - 0.39999997615814209 - - Selection Color - - Alpha Component - 1 - Blue Component - 0.63873869180679321 - Color Space - Calibrated - Green Component - 0.82989895343780518 - Red Component - 0.90061241388320923 - - Selection Color (Dark) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Selection Color (Light) - - Alpha Component - 1 - Blue Component - 0.69803923368453979 - Color Space - sRGB - Green Component - 0.85882353782653809 - Red Component - 0.92156863212585449 - - Semantic History - - action - command - editor - com.github.atom - text - /Users/rafa.gomez/.dotfiles/bin/idea --line \2 \1 - - Send Code When Idle - - Set Local Environment Vars - - Shortcut - - Show Mark Indicators - - Silence Bell - - Smart Cursor Color - - Smart Cursor Color (Dark) - - Smart Cursor Color (Light) - - Smart Selection Rules - - - notes - Word bounded by whitespace - precision - low - regex - \S+ - - - notes - C++ namespace::identifier - precision - normal - regex - ([a-zA-Z0-9_]+::)+[a-zA-Z0-9_]+ - - - notes - Paths - precision - normal - regex - \~?/?([[:letter:][:number:]._-]+/+)+[[:letter:][:number:]._-]+/? - - - notes - Quoted string - precision - normal - regex - @?"(?:[^"\\]|\\.)*" - - - notes - Java/Python include paths - precision - normal - regex - ([[:letter:][:number:]._]+\.)+[[:letter:][:number:]._]+ - - - notes - mailto URL - precision - normal - regex - \bmailto:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b - - - notes - Obj-C selector - precision - high - regex - @selector\([^)]+\) - - - notes - email address - precision - high - regex - \b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}\b - - - notes - HTTP URL - precision - very_high - regex - https?://([a-z0-9A-Z]+(:[a-zA-Z0-9]+)?@)?[a-z0-9A-Z]+(\.[a-z0-9A-Z]+)*((:[0-9]+)?)(/[a-zA-Z0-9;/\.\-_+%~?&@=#\(\)]*)? - - - notes - SSH URL - precision - very_high - regex - \bssh:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b - - - notes - Telnet URL - precision - very_high - regex - \btelnet:([a-z0-9A-Z_]+@)?([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\b - - - Space - 0 - Sync Title - - Tab Color - - Alpha Component - 1 - Blue Component - 0.15682341158390045 - Color Space - sRGB - Green Component - 0.15682341158390045 - Red Component - 0.75537109375 - - Tab Color (Dark) - - Alpha Component - 1 - Blue Component - 0.15682341158390045 - Color Space - sRGB - Green Component - 0.15682341158390045 - Red Component - 0.75537109375 - - Tab Color (Light) - - Alpha Component - 1 - Blue Component - 0.15682341158390045 - Color Space - sRGB - Green Component - 0.15682341158390045 - Red Component - 0.75537109375 - - Tags - - Terminal Type - xterm-256color - Thin Strokes - 0 - Title Components - 512 - Transparency - 0.0 - Triggers - - Underline Color - - Alpha Component - 1 - Blue Component - 0.044522678945213556 - Color Space - sRGB - Green Component - 0.044522678945213556 - Red Component - 0.820770263671875 - - Underline Color (Dark) - - Alpha Component - 1 - Blue Component - 0.044522680342197418 - Color Space - sRGB - Green Component - 0.044522680342197418 - Red Component - 0.820770263671875 - - Underline Color (Light) - - Alpha Component - 1 - Blue Component - 0.044522680342197418 - Color Space - sRGB - Green Component - 0.044522680342197418 - Red Component - 0.820770263671875 - - Unicode Version - 9 - Unlimited Scrollback - - Use Bold Font - - Use Bright Bold - - Use Bright Bold (Dark) - - Use Bright Bold (Light) - - Use Canonical Parser - - Use Cursor Guide - - Use Cursor Guide (Dark) - - Use Cursor Guide (Light) - - Use Custom Tab Title - - Use HFS Plus Mapping - - Use Italic Font - - Use Non-ASCII Font - - Use Separate Colors for Light and Dark Mode - - Use Tab Color - - Use Tab Color (Dark) - - Use Tab Color (Light) - - Use Underline Color - - Use Underline Color (Dark) - - Use Underline Color (Light) - - Vertical Spacing - 1.03 - Visual Bell - - Window Type - 12 - Working Directory - /Users/rafael.antonio - OnlyWhenMoreTabs @@ -5114,9 +3693,9 @@ TabsHaveCloseButton TerminalMargin - 7 + 15 TerminalVMargin - 7 + 15 ThreeFingerEmulates TmuxDashboardLimit diff --git a/os/mac/karabiner-elements/karabiner.json b/os/mac/karabiner-elements/karabiner.json index fcd9107..fa3eeda 100644 --- a/os/mac/karabiner-elements/karabiner.json +++ b/os/mac/karabiner-elements/karabiner.json @@ -543,6 +543,42 @@ } ], "type" : "basic" } ] + }, { + "description" : "Apple Music utilities", + "manipulators" : [ { + "from" : { + "key_code" : "9", + "modifiers" : { + "mandatory" : [ "left_command", "left_control", "left_option" ] + } + }, + "to" : [ { + "shell_command" : "$HOME/.dotfiles/bin/sdot apple music increase-volume" + } ], + "type" : "basic" + }, { + "from" : { + "key_code" : "8", + "modifiers" : { + "mandatory" : [ "left_command", "left_control", "left_option" ] + } + }, + "to" : [ { + "shell_command" : "$HOME/.dotfiles/bin/sdot apple music decrease-volume" + } ], + "type" : "basic" + }, { + "from" : { + "key_code" : "7", + "modifiers" : { + "mandatory" : [ "left_command", "left_control", "left_option" ] + } + }, + "to" : [ { + "shell_command" : "$HOME/.dotfiles/bin/sdot apple music toggle-play" + } ], + "type" : "basic" + } ] }, { "description" : "[chatgpt] Toggle sidebar", "manipulators" : [ { @@ -680,6 +716,39 @@ } ], "type" : "basic" } ] + }, { + "description" : "[safari] Switch profile", + "manipulators" : [ { + "from" : { + "modifiers" : { + "mandatory" : [ "left_command" ] + }, + "key_code" : "caps_lock" + }, + "to" : [ { + "shell_command" : "$HOME/.dotfiles/bin/sdot safari switch_profile" + } ], + "conditions" : [ { + "type" : "frontmost_application_if", + "bundle_identifiers" : [ "com.apple.Safari" ] + } ], + "type" : "basic" + }, { + "from" : { + "modifiers" : { + "mandatory" : [ "left_command" ] + }, + "key_code" : "escape" + }, + "to" : [ { + "shell_command" : "$HOME/.dotfiles/bin/sdot safari switch_profile" + } ], + "conditions" : [ { + "type" : "frontmost_application_if", + "bundle_identifiers" : [ "com.apple.Safari" ] + } ], + "type" : "basic" + } ] }, { "description" : "[finder] Create folder", "manipulators" : [ { @@ -1665,6 +1734,13 @@ "ignore" : false, "manipulate_caps_lock_led" : false, "simple_modifications" : [ { + "from" : { + "key_code" : "caps_lock" + }, + "to" : [ { + "key_code" : "escape" + } ] + }, { "from" : { "key_code" : "end" }, @@ -1995,7 +2071,7 @@ "product_id" : 45108, "vendor_id" : 1133 }, - "ignore" : false, + "ignore" : true, "manipulate_caps_lock_led" : false, "simple_modifications" : [ ], "treat_as_built_in_keyboard" : false diff --git a/os/mac/karabiner-goku/karabiner.edn b/os/mac/karabiner-goku/karabiner.edn index 03111de..5a8ce2e 100644 --- a/os/mac/karabiner-goku/karabiner.edn +++ b/os/mac/karabiner-goku/karabiner.edn @@ -131,6 +131,14 @@ {:des "[script] Open CodelyTV Repo" :rules [[:!CTOr "$HOME/.dotfiles/bin/sdot github open_codely_repo"]]} +;; ------------ Shortcuts to use from other applications ------------ + {:des "Apple Music utilities" + :rules [ + [:!TOC9 "$HOME/.dotfiles/bin/sdot apple music increase-volume"] + [:!TOC8 "$HOME/.dotfiles/bin/sdot apple music decrease-volume"] + [:!TOC7 "$HOME/.dotfiles/bin/sdot apple music toggle-play"] + ]} + ;; ------------ Application specific ------------ {:des "[chatgpt] Toggle sidebar" :rules [:ChatGPT [:sidebar-primary-toggle :!CSs]]} @@ -146,6 +154,11 @@ {:des "[chrome] Switch profile with escape" :rules [:Chrome [:switch-account-esc [:!CSm :return_or_enter]]]} + {:des "[safari] Switch profile" + :rules [:Safari [:switch-account "$HOME/.dotfiles/bin/sdot safari switch_profile"]]} + {:des "[safari] Switch profile" + :rules [:Safari [:switch-account-esc "$HOME/.dotfiles/bin/sdot safari switch_profile"]]} + {:des "[finder] Create folder" :rules [:Finder [:create-folder :!CSn]]} diff --git a/scripts/apple/music b/scripts/apple/music new file mode 100755 index 0000000..7094b32 --- /dev/null +++ b/scripts/apple/music @@ -0,0 +1,79 @@ +#!/usr/bin/env bash + +set -euo pipefail + +source "$DOTLY_PATH/scripts/core/_main.sh" +source "$DOTFILES_PATH/scripts/core/selector.sh" + +##? Apple Music utilities +#?? 1.0.0 +##? +##? Usage: +##? music +##? +##? Example: +##? music increase-volume +##? music decrease-volume +##? music toggle-play +docs::parse "$@" + +function increase() { + osascript <