Skip to content

Commit

Permalink
feat: wlsunset
Browse files Browse the repository at this point in the history
  • Loading branch information
sioodmy committed Aug 6, 2024
1 parent ea511a2 commit 797c936
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/wayland/desktop/wrapped/river/init.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
...
}: let
init-binds = import ./binds.nix {inherit pkgs;};
e = pkg: pkgs.lib.getExe pkgs.${pkg};
in
pkgs.writeShellScript "river-init" ''
#!/bin/sh
Expand Down Expand Up @@ -42,10 +43,13 @@ in
signal-desktop &
kanshi &
swayidle \
${e "swayidle"} \
timeout 130 "brightnessctl s 5%" \
timeout 135 "gtklock" \
timeout 600 "systemctl suspend" \
before-sleep "gtklock" \
lock "gtklock" &
# your eyes and your sleep schedule will thank you
${e "wlsunset"} -l 50.2597 -L 19.0211 &
''

0 comments on commit 797c936

Please sign in to comment.