Skip to content

Instantly share code, notes, and snippets.

View ig0rsky's full-sized avatar

ig0rsky

  • Lisbon
View GitHub Profile
@ig0rsky
ig0rsky / yabai_desktop.sh
Last active May 25, 2021 12:50
Custom logic implementations of Yabai for better UX.
#!/bin/bash
# The default logic for creating and destroying OS-level desktops is not user-friendly.
# We're implementing the following the logic:
# 1. Always create the new desktop next to the currently focused one.
# 2. When destroying the currently focused desktop, switch the focus to the nearest sibling.
index=$(jq -r '.[0].index ' < <(yabai -m query --spaces --window ))
prev_space=$(( index-1 ))
next_space=$(( index+1 ))
spaces=$(jq -r ' sort_by(.index) | .[-1].index + 1' < <(yabai -m query --spaces --display))
@ig0rsky
ig0rsky / update-all-asdf-plugins.sh
Last active April 22, 2024 02:06
Update all asdf plugins to latest
#!/usr/bin/env bash
function log () {
printf "%s %s\n" "->" "$1"
}
log "Updating all asdf-plugin remotes..."
asdf plugin update --all

Keybase proof

I hereby claim:

  • I am ig0rsky on github.
  • I am ig0rsky (https://keybase.io/ig0rsky) on keybase.
  • I have a public key ASCdx41qRLQocH0FWKUrvoc5IKwk_Tm4h0cIYtiin1FTgAo

To claim this, I am signing this object:

@ig0rsky
ig0rsky / bd3d4befe38185704bf0fc875e9deed6|configuration.json
Last active October 5, 2020 16:48
Visual Studio Code Settings Sync Gist
{"contents":{"python":{"linting":{"enabled":true,"pylintEnabled":false,"prospectorEnabled":true,"prospectorArgs":["--uses","django"]},"formatting":{"blackArgs":["--line-length=99","--fast"],"provider":"black"},"pythonPath":"${workspaceFolder}/.venv/bin/python","venvPath":".venv/"}},"overrides":[],"keys":["python.linting.enabled","python.linting.pylintEnabled","python.linting.prospectorEnabled","python.formatting.blackArgs","python.pythonPath","python.formatting.provider","python.linting.prospectorArgs","python.venvPath"]}