nixos smh

This commit is contained in:
Zynh Ludwig 2024-06-27 20:46:23 -07:00
parent a850312fc4
commit fa52813d59
2 changed files with 21 additions and 4 deletions

View file

@ -1,3 +0,0 @@
while true; do
sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% xsetroot -name %
done

View file

@ -23,8 +23,28 @@ in
fade = false; fade = false;
}; };
systemd.user.services.screenlayout = {
script = ''
${pkgs.xorg.xrandr}/bin/xrandr \
--output DP-0 --primary --mode 1920x1080 --pos 1922x0 --rotate normal \
--output DP-1 --off \
--output HDMI-0 --mode 1920x1080 --pos 0x0 --rotate normal \
--output DP-2 --off \
--output DP-3 --off \
--output HDMI-1 --off \
--output DP-4 --off \
--output DP-5 --off
'';
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
};
systemd.user.services.xrootdatetime = { systemd.user.services.xrootdatetime = {
script = builtins.readFile ../home/scripts/x-root-datetime.sh; script = ''
while true; do
sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% ${pkgs.xorg.xsetroot}/bin/xsetroot -name %
done
'';
wantedBy = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ]; partOf = [ "graphical-session.target" ];
}; };