dotfiles/nixos/user-xsession.nix

52 lines
1.1 KiB
Nix
Raw Normal View History

2019-07-14 09:35:06 +01:00
{ config, pkgs, ... }:
2019-08-24 09:55:51 +01:00
{
services = {
compton = {
enable = true;
vSync = "opengl-oml";
2019-07-14 12:42:23 +01:00
};
2019-08-24 09:55:51 +01:00
kdeconnect = {
2019-07-14 12:42:23 +01:00
enable = true;
2019-08-24 09:55:51 +01:00
indicator = true;
};
network-manager-applet.enable = true;
pasystray.enable = true;
};
2019-07-14 19:24:40 +01:00
2019-08-24 09:55:51 +01:00
xsession = {
enable = true;
};
2019-07-14 19:24:40 +01:00
2019-08-24 09:55:51 +01:00
programs.autorandr = {
enable = true;
2019-07-14 16:09:41 +01:00
2019-08-24 09:55:51 +01:00
hooks = {
postswitch = {
"restart-polybar" = "systemctl --user restart polybar";
"restart-kde-connect-indicator" = "systemctl --user restart kdeconnect-indicator";
2019-07-14 09:35:06 +01:00
};
2019-07-14 12:42:23 +01:00
};
2019-07-14 14:45:41 +01:00
2019-08-24 09:55:51 +01:00
profiles = {
"foureighty-alone" = {
fingerprint = {
eDP1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2";
};
2019-08-24 09:55:51 +01:00
config = {
eDP1 = {
enable = true;
primary = true;
mode = "2560x1440";
dpi = 144;
2019-07-14 15:16:49 +01:00
};
};
};
};
2019-08-24 09:55:51 +01:00
};
2019-07-14 15:16:49 +01:00
2019-08-24 09:55:51 +01:00
imports = [
./polybar.nix
./i3.nix
];
}