about summary refs log tree commit diff
path: root/users/fcuny/desktop/wm/launcher.nix
blob: bc69e0df990a19b8b0432e6559bf8e023b064cec (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{ pkgs, config, ... }:

{
  home.packages = with pkgs; [
    wofi
  ];

  xdg.configFile."wofi/config".text = ''
    xoffset=710
    yoffset=275
    show=drun
    width=500
    height=500
    always_parse_args=true
    show_all=true
    print_command=true
    layer=overlay
    insensitive=true
    prompt=
    term=${config.wayland.windowManager.sway.config.terminal}
  '';

  xdg.configFile."wofi/style.css".text = ''
    window {
      margin: 0px;
      border: 2px solid #414868;
      border-radius: 5px;
      background-color: #24283b;
      font-family: monospace;
      font-size: 12px;
    }

    #input {
      margin: 5px;
      border: 1px solid #24283b;
      color: #c0caf5;
      background-color: #24283b;
    }

    #input image {
      color: #c0caf5;
    }

    #inner-box {
      margin: 5px;
      border: none;
      background-color: #24283b;
    }

    #outer-box {
      margin: 5px;
      border: none;
      background-color: #24283b;
    }

    #scroll {
      margin: 0px;
      border: none;
    }

    #text {
      margin: 5px;
      border: none;
      color: #c0caf5;
    }

    #entry:selected {
    	background-color: #414868;
    	font-weight: normal;
    }

    #text:selected {
      background-color: #414868;
      font-weight: normal;
    }
  '';
}