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:
parent
bbb67de630
commit
72e3d7e000
6 changed files with 360 additions and 0 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