initial commit
This commit is contained in:
commit
90cff4f16a
59 changed files with 6855 additions and 0 deletions
31
KiCad/Scripts/kicad-show.sh
Normal file
31
KiCad/Scripts/kicad-show.sh
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env bash
|
||||
# Show KiCad tag on both monitors
|
||||
# Supports both Hyprland (Wayland) and dwm (X11)
|
||||
|
||||
# ==============================================================================
|
||||
# Environment Detection
|
||||
# ==============================================================================
|
||||
if [[ -n "${HYPRLAND_INSTANCE_SIGNATURE:-}" ]]; then
|
||||
WM="hyprland"
|
||||
else
|
||||
WM="dwm"
|
||||
fi
|
||||
|
||||
# ==============================================================================
|
||||
# Main
|
||||
# ==============================================================================
|
||||
if [[ "$WM" == "hyprland" ]]; then
|
||||
hyprctl dispatch workspace 101
|
||||
hyprctl dispatch workspace 102
|
||||
else
|
||||
if [[ $(autorandr --detected) != "mobile" ]]; then
|
||||
# Multi-monitor: set kicad tag on both monitors
|
||||
echo "mon-prim" > /tmp/dwm.fifo
|
||||
echo "kicad" > /tmp/dwm.fifo
|
||||
echo "mon-sec" > /tmp/dwm.fifo
|
||||
echo "kicad" > /tmp/dwm.fifo
|
||||
else
|
||||
# Single monitor: just switch to kicad tag
|
||||
echo "kicad" > /tmp/dwm.fifo
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue