Skip to content

Instantly share code, notes, and snippets.

View cesasol's full-sized avatar

César Valadez cesasol

View GitHub Profile
#!/usr/bin/env zsh
# Hyprland script
# Swaps all windows from one monitor with the relative next
monitors=("${(@f)$(hyprctl monitors -j | jq -r '.[].name')}")
count=${#monitors}
((count < 2)) && {
echo "Only one monitor detected." >&2
exit 1
@cesasol
cesasol / git-supergrab
Last active June 8, 2026 19:34
Script to grab all your repos from github, gitlab and codeberg
#!/usr/bin/env bash
set -Eeuo pipefail
# Dependencies:
# gh - GitHub CLI, authenticated with: gh auth login
# glab - GitLab CLI, authenticated with: glab auth login
# tea - Gitea/Forgejo CLI, configured for Codeberg
# jq
# fzf - only required for interactive selection
# git-grab - provides: git grab