about summary refs log tree commit diff
path: root/users/fcuny/i3.nix
blob: b3ac043b2455d4f7cb4db925a2d9cf31c88a21e9 (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
{ config, pkgs, lib, ... }:
let
  mod = "Mod4";
in
{
  xsession.enable = true;

  xsession.windowManager.i3 = {
    enable = true;
    config = {
      terminal = "${pkgs.alacritty}/bin/alacritty";
      keybindings = lib.mkOptionDefault {
        "${mod}+r" = "exec --no-startup-id ${pkgs.rofi}/bin/rofi -show drun";
      };
    };
  };

  programs.rofi = {
    enable = true;
    theme = "purple";
    terminal = "${pkgs.alacritty}/bin/alacritty";
    extraConfig = {
      modi = "drun";
      show-icons = true;
      combi-modi = "window,drun,ssh";
    };
  };

  services.polybar = {
    enable = true;
    package = pkgs.polybarFull;
    script = "";
    config =  {
      "bar/main" = {
        background = "#000000";
        foreground = "#fafafa";
      };
      "module/pulseaudio" = {
        type = "internal/pulseaudio";
        use-ui-max = false;
      };
    };
  };
}