mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
update hyprland config
This commit is contained in:
parent
bb62416c69
commit
951e5c5a7d
2 changed files with 47 additions and 21 deletions
13
hypr/scripts/focus-or-start.sh
Executable file
13
hypr/scripts/focus-or-start.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue