mirror of
https://github.com/neoromantique/dotfiles.git
synced 2026-04-12 22:18:15 +03:00
- 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
17 lines
501 B
Bash
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
|