dotfiles/nixos/i3/x.nix

74 lines
2.5 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 = {
2020-01-03 12:56:16 +00:00
"restart-compton" = "systemctl --user restart compton";
"restart-i3" = "i3-msg restart";
"restart-services" = "systemctl --user restart kdeconnect-indicator.service kdeconnect.service network-manager-applet.service pasystray.service polybar.service";
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-12-29 20:45:52 +00:00
"foureighty-docked" = {
fingerprint = {
eDP1 = "00ffffffffffff0006af362300000000001b0104a51f117802f4f5a4544d9c270f505400000001010101010101010101010101010101e65f00a0a0a040503020350035ae100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343051414e30322e33200a00b2";
DP1 ="00ffffffffffff0026cd4d66f3030000271d0103803c22782ef6d5a7544b9e250d5054bfef80714f8140818081c09500b300d1c001014dd000a0f0703e8030203500544f2100001a000000ff0031313636333933393031303131000000fd00184c1fa03c000a202020202020000000fc00504c3237393255480a2020202001bd020340f35410050403020716011f12131420151106615d5e5f23090707830100006d030c001000387820006001020367d85dc40178c000e3050301e40f000001023a801871382d40582c4500544f2100001e565e00a0a0a0295030203500544f2100001af45100a0f070198030203500544f2100001e000000000000000000d6";
};
config = {
DP1 = {
enable = true;
primary = true;
position = "0x0";
mode = "3840x2160";
2020-01-03 12:56:16 +00:00
dpi = 192;
};
eDP1 = {
enable = false;
primary = false;
position = "3840x0";
mode = "2560x1440";
2019-12-29 20:45:52 +00:00
};
};
};
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 = [
2020-01-03 17:22:12 +00:00
./polybar/polybar.nix
./i3.nix
2019-08-24 09:55:51 +01:00
];
}