This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

wayland/starter: delete dead code

-35
-35
2configs/wayland/starter
··· 1 - #!/usr/bin/env bash 2 - 3 - set -efo pipefail 4 - 5 - SWAY_FLAGS=() 6 - 7 - while [[ "$#" -gt 0 ]]; do 8 - case $1 in 9 - --) 10 - shift 11 - break 12 - ;; 13 - *) 14 - SWAY_FLAGS+=($1) 15 - ;; 16 - esac 17 - shift 18 - done 19 - 20 - $@ & 21 - pid=$! 22 - 23 - swaymsg -t subscribe -m '[ "window" ]' \ 24 - | jq --unbuffered --argjson pid "$pid" '.container | select(.pid == $pid) | .id' \ 25 - | xargs -I '@' -- swaymsg "[ con_id=@ ] ${SWAY_FLAGS[@]}" & 26 - 27 - subscription=$! 28 - 29 - echo Going into wait state 30 - 31 - # Wait for our process to close 32 - tail --pid=$pid -f /dev/null 33 - 34 - echo Killing subscription 35 - kill $subscription