aboutsummaryrefslogtreecommitdiff
path: root/gui/rofi.nix
blob: 9d4b3cce3f27456e17ee9344cc62229297a23e0d (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
{ config, pkgs, ... }:

let
  hidpiExtraConfig = if config.custom.hidpi then {
    dpi = 160;
  } else { };

in {
  programs.rofi = {
    enable = true;
    location = "top";
    font = "Iosevka 12";

    theme = let
      inherit (config.lib.formats.rasi) mkLiteral;
    in {
      " @import" = "default";
      "*" = {
        background = mkLiteral "#222222";
        foreground = mkLiteral "#F2F2F2";
        lightbg = mkLiteral "#161616";
        lightfg = mkLiteral "#F2F2F2";
        blue = mkLiteral "#aadb0f";
      };
      window = {
        border   =  6;
        y-offset = -6;
        border-color = mkLiteral "#aadb0f";
      };
    };

    extraConfig = {
      modi       = "combi";
      combi-modi = "windowcd,drun,ssh";
      terminal = "kitty";
      ssh-command = "{terminal} {ssh-client} {host}";
    } // hidpiExtraConfig;
  };
}