Skip to content

Instantly share code, notes, and snippets.

View DavBoot01's full-sized avatar

Davide Cardillo DavBoot01

  • SECO SpA
  • Arezzo, Italy
View GitHub Profile
@Diaoul
Diaoul / monitors.sh
Last active June 19, 2025 19:53
Arrange workspace on multiple monitors (Hyprland)
#!/usr/bin/env bash
# IMPORTANT: this script is now part of my dotfiles and maintained there
# see https://github.com/Diaoul/dotfiles/blob/main/.config/hypr/scripts/workspaces.sh
set -e
declare -i last_called=0
declare -i throttle_by=4
@throttle() {
local -i now=$(date +%s)