aboutsummaryrefslogtreecommitdiff
path: root/gui/twmn.nix
blob: 5d266196a65e7283dc7bee69551363f64d5f481a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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=6
    in_animation_duration=500
    opacity=100
    out_animation=5
    out_animation_duration=500
    position=bottom_right
    screen=0
    [main]
    duration=5000
  '';
}