Skip to content

Instantly share code, notes, and snippets.

View iagoalonsomrf's full-sized avatar

Iago Alonso iagoalonsomrf

View GitHub Profile
@iagoalonsomrf
iagoalonsomrf / replace_screenshot_keybinding.sh
Created November 30, 2022 17:05 — forked from ibLeDy/replace_screenshot_keybinding.sh
Set Flameshot as the default screenshot tool
# Release default `window-screenshot` keybinding (Ubuntu 19.10)
gsettings set org.gnome.settings-daemon.plugins.media-keys window-screenshot '[]'
# Replace default `screenshot` binding with the default from `window-screenshot`
gsettings set org.gnome.settings-daemon.plugins.media-keys screenshot '<Alt>Print'
# Create a new custom keybinding (taking for granted that this would be the first created)
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']"
# Give it a name
@iagoalonsomrf
iagoalonsomrf / pyproject.toml
Created August 2, 2022 11:24 — forked from ibLeDy/pyproject.toml
Example configuration files for Python packages
[build-system]
requires = [
"setuptools",
"wheel",
]
build-backend = "setuptools.build_meta"
[tool.black]
line-length = 120
skip-string-normalization = true
@iagoalonsomrf
iagoalonsomrf / .pre-commit-config.yaml
Last active August 4, 2022 08:54 — forked from ibLeDy/.pre-commit-config.yaml
Example pre-commit config for Python projects
repos:
- repo: meta
hooks:
- id: check-useless-excludes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-added-large-files
- id: check-ast