swaywm / swayidle

Idle management daemon for Wayland
MIT License
550 stars 50 forks source link

Add support for OpenBSD / make wordexp optional #154

Open landryb opened 11 months ago

landryb commented 11 months ago

like done in swaywm/swaylock#325, replace wordexp() usage by handrolled C equivalents - i've been testing it working file with this in ~.config/swayidle/config:

timeout 10 'swaylock -f -c 00ff00'
timeout 20 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"'

and it behaves as expected.

The handrolled line parser might be improved, but i've tested it with lines having extra spaces between keywords or trailing spaces.

Feedback welcome !