This commit is contained in:
Kopatz
2023-12-11 17:05:10 +01:00
parent 7cec265f6d
commit d68721b710
4 changed files with 17 additions and 6 deletions

View File

@@ -103,6 +103,7 @@
./modules/graphical/hyprland.nix
./modules/graphical/emulators.nix
./modules/graphical/gamemode.nix
./modules/graphical/obs.nix
./modules/graphical/shared.nix
./modules/hardware/nvidia.nix
./modules/hardware/ssd.nix

View File

@@ -203,7 +203,7 @@ in
"$mainMod, E, exec, ${thunar}"
"$mainMod, V, togglefloating"
"$mainMod, I, exec, ${rofi} -show drun -show-icons"
"$mainMod, S, exec, cat ~/songs | shuf -n 0 | sed \"s/^/b\.p /g\" | ${wl-copy}"
"$mainMod, S, exec, cat ~/songs | shuf -n 1 | sed \"s/^/b\.p /g\" | ${wl-copy}"
"$mainMod, R, exec, ${swww} img $(ls -d ~/Nextcloud/dinge/Bg/* | shuf -n 1)"
" , Print, exec, ${grim} -g \"$(${slurp} -d)\" - | ${wl-copy}"
"ALT, SPACE, exec, ${rofi} -show combi"

15
modules/graphical/obs.nix Normal file
View File

@@ -0,0 +1,15 @@
{ config, pkgs, ...}:
{
boot = {
kernelModules = ["v4l2loopback"]; # Autostart kernel modules on boot
extraModulePackages = with config.boot.kernelPackages; [v4l2loopback]; # loopback module to make OBS virtual camera work
};
environment.systemPackages = with pkgs; [
(wrapOBS {
plugins = with obs-studio-plugins; [
obs-pipewire-audio-capture
];
})
];
}

View File

@@ -64,11 +64,6 @@ in
brightnessctl
wacomtablet
osu-lazer-bin
(wrapOBS {
plugins = with obs-studio-plugins; [
obs-pipewire-audio-capture
];
})
];
#environment.sessionVariables = {