Files
neoromantique-dotfiles/home/dot_local/bin/executable_mouse-capture-reset
David Aizenberg 270b2edb61 multi-monitor setup, pinned workspaces, weather widget
- Switch from special workspaces to named pinned workspaces (pin-*)
  - Add dual-monitor layout with portrait secondary display
  - Add weather widget (wttr.in) with location management
  - Add workspace drag-and-drop improvements and debug overlay
  - Add SwayNC notification center config
  - Add mouse-capture-reset utility script
  - Fix DPMS resume by re-applying monitor settings after wake
2026-02-27 02:10:48 +01:00

17 lines
501 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Force Hyprland to re-evaluate pointer focus/capture state.
# "soft" avoids workspace churn; "hard" does a quick workspace flip-flop too.
mode="${1:-soft}"
hyprctl keyword input:follow_mouse 0 >/dev/null 2>&1 || true
sleep 0.04
hyprctl keyword input:follow_mouse 1 >/dev/null 2>&1 || true
if [ "$mode" = "hard" ]; then
hyprctl dispatch workspace previous >/dev/null 2>&1 || true
sleep 0.06
hyprctl dispatch workspace previous >/dev/null 2>&1 || true
fi