Update various bits and bobs

This commit is contained in:
Lauren Lagarde 2024-12-31 22:52:27 -06:00
parent 833d7e689f
commit 6b35ee1fea
3 changed files with 52 additions and 11 deletions

19
i3.nix
View File

@ -1,4 +1,4 @@
{ ... }: {
{ pkgs, ... }: {
imports = [
./firefox.nix
./polybar.nix
@ -15,6 +15,23 @@
};
};
# Dell Precision Nonsense
home.packages = with pkgs; [
alsa-utils
];
home.file."precision/fixmicrophone" = {
executable = true;
text = ''
# https://github.com/NixOS/nixpkgs/issues/294170
sudo ln -s /run/current-system/sw/bin/rm /bin
sudo ln -s /run/current-system/sw/bin/mkdir /bin
# https://discourse.nixos.org/t/dell-xps-13-9320-microphone-not-working/40932/3
sudo alsactl init
systemctl --user restart pipewire
'';
};
programs.browserpass.enable = true;
programs.chromium = {
enable = true;

View File

@ -1,5 +1,39 @@
{ home-manager, ... }: {
home.file = {
"xps/standalone" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --mode 1920x1200 --primary \
--output DP-1-1 --off \
--output DP-1-2 --off \
--output DP-1-3 --off
i3-msg restart
'';
};
"xps/desk" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --off \
--output DP-1-1 --mode 1920x1080 --rate 30 --left-of DP-1-2 \
--output DP-1-2 --mode 3840x2160 --rate 30 --primary \
--output DP-1-3 --mode 3840x2160 --rate 30 --right-of DP-1-2
i3-msg restart
'';
};
"xps/workbench" = {
executable = true;
text = ''
xrandr \
--output eDP-1 --off \
--output DP-1-1 --mode 3840x2160 --rate 30 --left-of DP-1-2 \
--output DP-1-2 --mode 3840x2160 --rate 30 --primary \
--output DP-1-3 --mode 1920x1080 --rate 30 --right-of DP-1-2
i3-msg restart
'';
};
"precision/tv" = {
executable = true;
text = ''
@ -19,16 +53,6 @@
i3-msg restart
'';
};
"xps/desk" = {
executable = true;
text = ''
xrandr \
--output DP-1-2 --mode 3840x2160 --rate 30 --primary \
--output DP-1-1 --mode 3840x2160 --rate 30 --right-of DP-1-2 \
--output eDP-1 --off
i3-msg restart
'';
};
"precision/work" = {
executable = true;
text = ''

Binary file not shown.