Skip to content

Commit

Permalink
feat: add notion and slack shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
rgomezcasas committed May 13, 2024
1 parent 188311f commit 0ea4fe8
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/dotly
73 changes: 73 additions & 0 deletions os/mac/karabiner-elements/karabiner.json
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,25 @@
} ],
"type" : "basic"
} ]
}, {
"description" : "[arc] CMD e show open tabs thanks to Arc Raycast extension",
"manipulators" : [ {
"from" : {
"key_code" : "e",
"modifiers" : {
"mandatory" : [ "left_command" ]
}
},
"to" : [ {
"key_code" : "l",
"modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ]
} ],
"conditions" : [ {
"type" : "frontmost_application_if",
"bundle_identifiers" : [ "company.thebrowser.Browser" ]
} ],
"type" : "basic"
} ]
}, {
"description" : "[chatgpt] Toggle sidebar",
"manipulators" : [ {
Expand Down Expand Up @@ -935,6 +954,25 @@
} ],
"type" : "basic"
} ]
}, {
"description" : "[notion] Copy current url",
"manipulators" : [ {
"from" : {
"modifiers" : {
"mandatory" : [ "left_command", "left_shift" ]
},
"key_code" : "c"
},
"to" : [ {
"key_code" : "l",
"modifiers" : [ "left_command" ]
} ],
"conditions" : [ {
"type" : "frontmost_application_if",
"bundle_identifiers" : [ "notion.id" ]
} ],
"type" : "basic"
} ]
}, {
"description" : "[notion] Extend selection",
"manipulators" : [ {
Expand Down Expand Up @@ -1027,6 +1065,41 @@
} ],
"type" : "basic"
} ]
}, {
"description" : "[slack] Move in history",
"manipulators" : [ {
"from" : {
"key_code" : "tab",
"modifiers" : {
"mandatory" : [ "left_control" ]
}
},
"to" : [ {
"key_code" : "open_bracket",
"modifiers" : [ "left_command" ]
} ],
"conditions" : [ {
"type" : "frontmost_application_if",
"bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ]
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "tab",
"modifiers" : {
"mandatory" : [ "left_control", "left_shift" ]
}
},
"to" : [ {
"key_code" : "close_bracket",
"modifiers" : [ "left_command" ]
} ],
"conditions" : [ {
"type" : "frontmost_application_if",
"bundle_identifiers" : [ "com.tinyspeck.slackmacgap" ]
} ],
"type" : "basic"
} ]
}, {
"description" : "[slack] Navigate between channels",
"manipulators" : [ {
Expand Down
8 changes: 8 additions & 0 deletions os/mac/karabiner-goku/karabiner.edn
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
:create-folder {:modi [:left_control :left_option :left_command] :key :p}
:create-new {:modi [:left_command] :key :n}
:create-new-window {:modi [:left_command :left_shift] :key :n}
:copy-current-url {:modi [:left_command :left_shift] :key :c}
:line-delete {:modi :left_command :key :delete_or_backspace}
:line-duplicate {:modi :left_command :key :d}
:move-next-screen {:modi [:left_command :left_shift :left_option] :key :right_arrow}
Expand Down Expand Up @@ -130,6 +131,8 @@
:rules [:Arc [:switch-account-esc :!COright_arrow]]}
{:des "[arc] CMD P also to show url menu"
:rules [:Arc [:!Cp :!Cl]]}
{:des "[arc] CMD e show open tabs thanks to Arc Raycast extension"
:rules [:Arc [:!Ce :!TOCSl]]}

{:des "[chatgpt] Toggle sidebar"
:rules [:ChatGPT [:sidebar-primary-toggle :!CSs]]}
Expand Down Expand Up @@ -172,10 +175,13 @@
:rules [:Notion [:show-recent :!Cp]]}
{:des "[notion] Toggle sidebar"
:rules [:Notion [:sidebar-primary-toggle :!Cbackslash]]}
{:des "[notion] Copy current url"
:rules [:Notion [:copy-current-url :!Cl]]}
{:des "[notion] Extend selection"
:rules [:Notion
[:selection-extend :!Sup_arrow]
[:selection-shrink :!Sdown_arrow]]}

{:des "[PersonalNotion] Show recent pages"
:rules [:PersonalNotion [:show-recent :!Cp]]}
{:des "[PersonalNotion] Toggle sidebar"
Expand All @@ -184,6 +190,8 @@
{:des "[safari] Toggle sidebar"
:rules [:Safari [:sidebar-primary-toggle :!CSl]]}

{:des "[slack] Move in history"
:rules [:Slack [:!Ttab :!Copen_bracket] [:!TStab :!Cclose_bracket]]}
{:des "[slack] Navigate between channels"
:rules [:Slack [:!Cp :!Ck] [:!Ce :!Ck]]}
{:des "[slack] Toggle sidebars"
Expand Down
10 changes: 5 additions & 5 deletions shell/exports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Codely theme config
# ------------------------------------------------------------------------------
export CODELY_THEME_MODE="dark"
export CODELY_THEME_PWD_MODE="short" # full, short, home_relative
export CODELY_THEME_STATUS_ICON_OK="" #  ﭧ ﯓ ﬦ          
export CODELY_THEME_STATUS_ICON_KO="" #
export CODELY_THEME_PROMPT_IN_NEW_LINE=false
export CODELY_THEME_PWD_MODE="short" # full, short, home_relative
export CODELY_THEME_STATUS_ICON_OK="" #  ﭧ ﯓ ﬦ          
export CODELY_THEME_STATUS_ICON_KO="" #
export CODELY_THEME_PROMPT_IN_NEW_LINE=true

if [[ $__CFBundleIdentifier == "com.jetbrains."* ]]; then
export CODELY_THEME_MINIMAL=true
Expand All @@ -19,7 +19,7 @@ fi
# ------------------------------------------------------------------------------
# Languages
# ------------------------------------------------------------------------------
export JAVA_HOME='/Users/rafa.gomez/Library/Java/JavaVirtualMachines/corretto-18.0.2/Contents/Home'
export JAVA_HOME='/Users/rafa.gomez/Library/Java/JavaVirtualMachines/openjdk-21.0.2/Contents/Home'
export GEM_HOME="$HOME/.gem"
export GOPATH="$HOME/.go"
export PYTORCH_ENABLE_MPS_FALLBACK=1
Expand Down

0 comments on commit 0ea4fe8

Please sign in to comment.