14 lines
455 B
Bash
Executable File
14 lines
455 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# 1. Prüfen, ob der Discord-Prozess (egal ob groß/klein geschrieben) läuft
|
|
if ! pgrep -i "discord" > /dev/null; then
|
|
# Starten, falls nicht
|
|
discord > /dev/null 2>&1 &
|
|
exit 0
|
|
fi
|
|
|
|
# 2. Zuerst zwingend DP-2 fokussieren (angepasst an deine Lua-Syntax)
|
|
hyprctl dispatch 'hl.dsp.focus({ monitor = "DP-2" })'
|
|
|
|
# 3. Dein funktionierender Befehl zum Ein-/Ausklappen!
|
|
hyprctl dispatch 'hl.dsp.workspace.toggle_special("discord")' |