autorandr: fix automatically switching when a

...monitor is plugged or unplugged
This commit is contained in:
Oliver Davies 2024-07-09 18:39:40 +01:00
parent 590cb3ab40
commit 97ac64195c

View file

@ -1,14 +1,4 @@
{ username, ... }:
{ {
# xdg.configFile."autorandr/postswitch" = {
# executable = true;
# text = ''
# #!/usr/bin/env bash
#
# feh --randomize --bg-scale /home/${username}/Pictures/Wallpaper/*;
# '';
# };
services.autorandr = { services.autorandr = {
enable = true; enable = true;
@ -49,5 +39,9 @@
}; };
}; };
}; };
hooks.postswitch = {
"reload-awesome" = ''echo 'awesome.restart()' | awesome-client'';
};
}; };
} }