Skip to content

Commit 52bda06

Browse files
authored
feat: add herbstluftwm (#25)
1 parent 0ae4529 commit 52bda06

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,29 @@ jobs:
3535
3636
- `qt` (default `false`): set to `true` to install libraries required for Qt
3737
on Linux, e.g.:
38+
3839
```yml
3940
- uses: pyvista/setup-headless-display-action@v3
4041
with:
4142
qt: true
4243
```
44+
4345
- `pyvista` (default `true`): set to `false` if you don't want to set env
4446
vars to use PyVista in offscreen mode.
4547

48+
- `wm` (default `herbstluftwm`): Installs window manager on Linux.
49+
set to `false` if you don't want to install a window manager.
50+
4651
- `mesa3d-release` (default `24.3.0`): set to a specific release to install
4752
that version of Mesa3D. This is only applicable for Windows. For example,
4853
to install Mesa3D 21.2.5:
54+
4955
```yml
5056
- uses: pyvista/setup-headless-display-action@v3
5157
with:
5258
mesa3d-release: 21.2.5
5359
```
60+
5461
You can also use `latest` to use the latest release version.
5562

5663
### 🖼️ PyVista Example

action.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,15 @@ inputs:
55
pyvista:
66
description: "Set PyVista env vars for headless mode"
77
required: false
8-
default: true
8+
default: "true"
99
qt:
1010
description: "Install libraries required for Qt on Linux"
1111
required: false
12-
default: false
12+
default: "false"
13+
wm:
14+
description: "Install window manager on Linux"
15+
required: false
16+
default: "herbstluftwm"
1317
mesa3d-release:
1418
description: |
1519
Mesa3D release to install (by default, the latest release is installed).
@@ -38,6 +42,11 @@ runs:
3842
xvfb \
3943
x11-xserver-utils
4044
45+
- name: Install Linux Window manager
46+
shell: bash
47+
if: runner.os == 'Linux' && inputs.wm == 'herbstluftwm'
48+
run: sudo apt-get install -y herbstluftwm
49+
4150
- name: Install Linux Qt dependencies
4251
if: runner.os == 'Linux' && inputs.qt != 'false'
4352
shell: bash
@@ -88,6 +97,13 @@ runs:
8897
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
8998
sleep 3
9099
100+
- name: Start window manager on Linux
101+
if: runner.os == 'Linux' && inputs.wm == 'herbstluftwm'
102+
shell: bash
103+
run: |
104+
herbstluftwm &
105+
sleep 3
106+
91107
- name: Configure for PyVista
92108
if: inputs.pyvista != 'false'
93109
shell: bash

0 commit comments

Comments
 (0)