summaryrefslogtreecommitdiffstats
path: root/hjem.nix
blob: 1c43cb34a0f3de8730e194ca84c13214ffa3cdb1 (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
{ config, pkgs, ... }:
{
  imports = [
  ];

  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.users.andrew = {
    isNormalUser = true;

    extraGroups = [
      "networkmanager"
      "wheel"
    ];
    packages = with pkgs; [ ];
  };

  hjem.users.andrew = {
    directory = "/home/andrew";
    files = {

      ".config/sxhkd/sxhkdrc".text = ''
super + space
	${pkgs.dmenu}/bin/dmenu_run

super + Return
	${pkgs.st}/bin/st	

super + b
	${pkgs.librewolf}/bin/librewolf

XF86AudioRaiseVolume
    ${pkgs.pamixer}/bin/pamixer -i 5

XF86AudioLowerVolume
    ${pkgs.pamixer}/bin/pamixer -d 5

XF86AudioMute
    ${pkgs.pamixer}/bin/pamixer -t

super + s
    ${pkgs.maim}/bin/maim -i $(${pkgs.xdotool}/bin/xdotool getactivewindow) | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png

super + shift + s
	${pkgs.maim}/bin/maim -s | ${pkgs.xclip}/bin/xclip -selection clipboard -t image/png

super + l
	${pkgs.lock-screen}/bin/lock-screen 

      '';
    };
    packages = with pkgs; [
      discord
lazygit
    ];
  };

}