1
Fork 0

Move a bunch of things around

This commit is contained in:
Matei Adriel 2023-12-02 00:46:56 +01:00
commit bfc89aff7f
No known key found for this signature in database
39 changed files with 435 additions and 244 deletions
home/features/wayland

View file

@ -1,16 +1,15 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
let
libnotify = lib.getExe pkgs.libnotify;
systemctl = "${pkgs.systemd}/bin/systemctl";
wlsunset-toggle = pkgs.writeShellScriptBin "wlsunset-toggle" ''
if [ "active" = "$(systemctl --user is-active wlsunset.service)" ]
then
${systemctl} --user stop wlsunset.service
${libnotify} "Stopped wlsunset"
echo "Stopped wlsunset"
else
${systemctl} --user start wlsunset.service
${libnotify} "Started wlsunset"
echo "Started wlsunset"
fi
'';
in