1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-17 11:30:02 +02:00

add hyperland config again

This commit is contained in:
Henrik Hautakoski 2026-04-04 14:23:09 +02:00
parent bbb67de630
commit 72e3d7e000
6 changed files with 360 additions and 0 deletions

13
hypr/scripts/focus-or-start.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
execCommand=$1
className=$2
class=$(hyprctl -j clients | jq -r ".[] | select(.class | startswith(\"${className}\")) | .class")
if [[ $class != "" ]]
then
hyprctl dispatch focuswindow "class:${class}"
else
${execCommand} &
fi