oscar3x39 / settings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phpstorm

Tools > Create Command-Line-Launcher
/usr/local/bin/phpstorm

vim color

mkdir -p ~/.vim/colors/
git clone https://github.com/flazz/vim-colorschemes
mv ~/vim-colorschemes/colors/molokai.vim ~/.vim/colors/

vim ~/.vimrc

syntax on
colo molokai
set nu

spotlight

disable

Input keyboard

cmd+space

Alfred

ctrl+space install chatgpt workflow

hammerspoon

---------------------
-- Config for https://www.hammerspoon.org/
-- Based on https://gist.github.com/philc/ed70ae4e60062c2d494fae97d5da43ce
-- see above for more advanced config including multiple display support
---------------------
-- make animations fast
hs.window.animationDuration = 0.1

---------------------
-- Window positioning
---------------------

function moveTopHalf()
  local win = hs.window.focusedWindow()
  local f = win:frame()
  local screen = win:screen()
  local max = screen:frame()
  f.x = max.x
  f.y = max.y
  f.w = max.w
  f.h = max.h / 2
  win:setFrame(f)
end

function moveBottomHalf()
  local win = hs.window.focusedWindow()
  local f = win:frame()
  local screen = win:screen()
  local max = screen:frame()
  f.x = max.x
  f.y = max.y + (max.h / 2)
  f.w = max.w
  f.h = max.h / 2
  win:setFrame(f)
end

function moveLeftHalf()
  local win = hs.window.focusedWindow()
  local f = win:frame()
  local screen = win:screen()
  local max = screen:frame()
  f.x = max.x
  f.y = max.y
  f.w = max.w / 2
  f.h = max.h
  win:setFrame(f)
end

function moveRightHalf()
  local win = hs.window.focusedWindow()
  local f = win:frame()
  local screen = win:screen()
  local max = screen:frame()
  f.x = max.x + (max.w / 2)
  f.y = max.y
  f.w = max.w / 2
  f.h = max.h
  win:setFrame(f)
end

function maximize()
  local win = hs.window.focusedWindow()
  local f = win:frame()
  local screen = win:screen()
  local max = screen:frame()
  f.x = max.x
  f.y = max.y
  f.w = max.w
  f.h = max.h
  win:setFrame(f)
end

hs.hotkey.bind({cmd}, "left", function() moveLeftHalf() end)
hs.hotkey.bind({cmd}, "right", function() moveRightHalf() end)
hs.hotkey.bind({"cmd"}, "up", maximize)

vscode keybindings.json

[
    { "key": "cmd+shift+1",          "command": "workbench.action.focusSecondEditorGroup" },
    { "key": "cmd+1",                "command": "workbench.action.openEditorAtIndex1" },
    { "key": "cmd+2",                "command": "workbench.action.openEditorAtIndex2" },
    { "key": "cmd+3",                "command": "workbench.action.openEditorAtIndex3" },
    { "key": "cmd+4",                "command": "workbench.action.openEditorAtIndex4" },
    { "key": "cmd+5",                "command": "workbench.action.openEditorAtIndex5" },
    { "key": "cmd+6",                "command": "workbench.action.openEditorAtIndex6" },
    { "key": "cmd+7",                "command": "workbench.action.openEditorAtIndex7" },
    { "key": "cmd+8",                "command": "workbench.action.openEditorAtIndex8" },
    { "key": "cmd+9",                "command": "workbench.action.openEditorAtIndex9" },
]

About