Skip to content

Commit

Permalink
hdrop: fix $CLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
Schweber committed Dec 28, 2023
1 parent e0f9bc6 commit dafbf0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdrop
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if $INSENSITIVE && [[ $(hyprctl clients -j | jq -r ".[] | select((.class |test(\
fi

if [[ $(hyprctl clients -j | jq -r ".[] | select(.class==\"$CLASS\" and .workspace.id!=$ACTIVE_WORKSPACE)") ]]; then
hyprctl dispatch -- movetoworkspacesilent "$ACTIVE_WORKSPACE","(${CLASS})" || notify "hdrop: Error moving '$COMMANDLINE' to current workspace"
hyprctl dispatch -- movetoworkspacesilent "$ACTIVE_WORKSPACE","$CLASS" || notify "hdrop: Error moving '$COMMANDLINE' to current workspace"
hyprctl dispatch -- focuswindow "$CLASS" || notify "hdrop: Error focusing '$COMMANDLINE' on current workspace"
if $VERBOSE; then notify_low "hdrop: Matched class '$CLASS' on another workspace and moved it to current workspace"; fi
elif [[ $(hyprctl clients -j | jq -r ".[] | select(.class==\"$CLASS\" and .workspace.id==$ACTIVE_WORKSPACE)") ]]; then
Expand Down

0 comments on commit dafbf0a

Please sign in to comment.