Move a bunch of things around
This commit is contained in:
parent
28d21046ef
commit
bfc89aff7f
39 changed files with 435 additions and 244 deletions
home/features/wayland
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue