Compare commits

...

3 commits

Author SHA1 Message Date
Adam Gausmann
a86036ebfd also try wlopm when niri msg does not work, even if socket envvar exists 2025-07-29 11:00:31 -05:00
Adam Gausmann
b7060ee406 Fix lock screen display power timeout on niri 2025-07-29 10:56:55 -05:00
Adam Gausmann
8c70b2bd12 Add stockton photo backgrounds 2025-07-29 10:36:04 -05:00
7 changed files with 13 additions and 2 deletions

View file

@ -165,8 +165,8 @@ class HostConfig:
temperature_path: str | None = None
terminal: str = "alacritty"
lock_cmd: str = "swaylock -c 000000"
display_on_cmd: str = "wlopm --on *"
display_off_cmd: str = "wlopm --off *"
display_on_cmd: str = "jdisplays on"
display_off_cmd: str = "jdisplays off"
use_jump_host: bool = False
inputs: list[InputConfig] = field(factory=list)
outputs: list[OutputConfig] = field(factory=list)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 KiB

View file

@ -192,6 +192,7 @@ spawn-at-startup "wireplumber"
spawn-at-startup "waybar"
spawn-at-startup "xwayland-satellite" ":12"
spawn-at-startup "wpaperd"
spawn-at-startup "swayidle"
environment {
DISPLAY ":12"

10
templates/bin/jdisplays Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
case "$1" in
0|off) onoff=off ;;
1|on) onoff=on ;;
*) exit 1 ;;
esac
[ -e "$NIRI_SOCKET" ] && niri msg action power-$onoff-monitors \
|| wlopm --$onoff '*'