mirror of
https://github.com/kmein/niveum
synced 2026-03-19 11:31:09 +01:00
feat(manakish): prompt color green, automatically set xrandr and pulseaudio profiles
This commit is contained in:
@@ -12,13 +12,24 @@
|
|||||||
programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
nixpkgs.config.steam.java = true;
|
nixpkgs.config.steam.java = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
services.xserver.displayManager.sessionCommands =
|
||||||
|
let
|
||||||
|
intern = "LVDS-1";
|
||||||
|
extern = "HDMI-1";
|
||||||
|
pulseaudioCard = "alsa_card.pci-0000_00_1b.0";
|
||||||
|
pulseaudioProfile = "output:hdmi-stereo+input:analog-stereo";
|
||||||
|
in toString (pkgs.writers.writeDash "hdmi-on" ''
|
||||||
|
${pkgs.xorg.xrandr}/bin/xrandr --output ${intern} --primary --auto --output ${extern} --above ${intern} --auto
|
||||||
|
${pkgs.pulseaudio}/bin/pactl set-card-profile ${pulseaudioCard} ${pulseaudioProfile}
|
||||||
|
'');
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
niveum = {
|
niveum = {
|
||||||
batteryName = "BAT0";
|
batteryName = "BAT0";
|
||||||
wirelessInterface = "wlp3s0";
|
wirelessInterface = "wlp3s0";
|
||||||
promptColours.success = "cyan";
|
promptColours.success = "green";
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user