1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

update hyprland config

This commit is contained in:
Henrik Hautakoski 2025-11-20 05:32:58 +01:00
parent bb62416c69
commit 951e5c5a7d
2 changed files with 47 additions and 21 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