2021-01-14 01:56:32 +01:00
|
|
|
{ config, pkgs, ... }:
|
2021-05-07 21:28:52 +02:00
|
|
|
|
2019-09-15 23:12:08 +02:00
|
|
|
{
|
|
|
|
config = {
|
2021-05-07 21:28:52 +02:00
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
windowManager.command = "";
|
|
|
|
};
|
|
|
|
|
2019-09-15 23:12:08 +02:00
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
2021-07-18 23:34:50 +02:00
|
|
|
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // {
|
|
|
|
outPath = "@sxhkd@";
|
|
|
|
};
|
2021-01-14 01:56:32 +01:00
|
|
|
extraOptions = [ "-m 1" ];
|
2019-09-15 23:12:08 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2021-05-07 21:28:52 +02:00
|
|
|
xsessionFile=home-files/.xsession
|
2019-09-15 23:12:08 +02:00
|
|
|
|
2021-05-07 21:28:52 +02:00
|
|
|
assertFileExists $xsessionFile
|
2019-09-15 23:12:08 +02:00
|
|
|
|
2021-06-17 00:16:17 +02:00
|
|
|
assertFileContains $xsessionFile \
|
|
|
|
'systemctl --user stop sxhkd.scope 2> /dev/null || true'
|
|
|
|
|
|
|
|
assertFileContains $xsessionFile \
|
|
|
|
'systemd-cat -t sxhkd systemd-run --user --scope -u sxhkd @sxhkd@/bin/sxhkd -m 1 &'
|
2019-09-15 23:12:08 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|