From 7696a056cb69649eae83eeea0bfa53575a1f405d Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 7 Jul 2018 17:31:10 +0200 Subject: Setup twmn for displaying notifications --- gui/twmn.nix | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 gui/twmn.nix (limited to 'gui/twmn.nix') diff --git a/gui/twmn.nix b/gui/twmn.nix new file mode 100644 index 0000000..9ae6848 --- /dev/null +++ b/gui/twmn.nix @@ -0,0 +1,46 @@ +{ pkgs, ... }: + +{ + home.packages = with pkgs; [ + twmn + libnotify + ]; + + systemd.user.services.twmnd = { + Unit = { + Description = "twmn notification deamon"; + After = [ "graphical-session-pre.target" ]; + PartOf = [ "graphical-session.target" ]; + }; + + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + + Service = { + Environment = "PATH=%h/.nix-profile/bin"; + ExecStart = "${pkgs.twmn}/bin/twmnd"; + Restart = "on-failure"; + }; + }; + + home.file.".config/twmn/twmn.conf".text = '' + [gui] + always_on_top=true + background_color=#909737 + bounce=true + font=Iosevka + font_size=15 + foreground_color=#111111 + height=20 + in_animation=5 + in_animation_duration=500 + opacity=100 + out_animation=6 + out_animation_duration=500 + position=bottom_right + screen=0 + [main] + duration=5000 + ''; +} -- cgit v1.2.3