alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
wayland/starter: delete dead code
author
lassulus
date
3 years ago
(Oct 28, 2023, 3:11 PM CEST)
commit
63b4cbc1
63b4cbc1f27bbd1297e67e7f90d65f8e1a79e560
parent
48db6a83
48db6a83edebf90778d695980b299948a92205c4
-35
1 changed file
Expand all
Collapse all
Unified
Split
2configs
wayland
starter
-35
2configs/wayland/starter
Reviewed
···
1
1
-
#!/usr/bin/env bash
2
2
-
3
3
-
set -efo pipefail
4
4
-
5
5
-
SWAY_FLAGS=()
6
6
-
7
7
-
while [[ "$#" -gt 0 ]]; do
8
8
-
case $1 in
9
9
-
--)
10
10
-
shift
11
11
-
break
12
12
-
;;
13
13
-
*)
14
14
-
SWAY_FLAGS+=($1)
15
15
-
;;
16
16
-
esac
17
17
-
shift
18
18
-
done
19
19
-
20
20
-
$@ &
21
21
-
pid=$!
22
22
-
23
23
-
swaymsg -t subscribe -m '[ "window" ]' \
24
24
-
| jq --unbuffered --argjson pid "$pid" '.container | select(.pid == $pid) | .id' \
25
25
-
| xargs -I '@' -- swaymsg "[ con_id=@ ] ${SWAY_FLAGS[@]}" &
26
26
-
27
27
-
subscription=$!
28
28
-
29
29
-
echo Going into wait state
30
30
-
31
31
-
# Wait for our process to close
32
32
-
tail --pid=$pid -f /dev/null
33
33
-
34
34
-
echo Killing subscription
35
35
-
kill $subscription