From 6a823e8216713ba92994ffcd9c0a98019a9632d0 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Sat, 1 Feb 2025 17:22:56 -0800 Subject: [PATCH] Adds some audio utilities --- home-manager/drew.nix | 2 ++ home-manager/features/audio.nix | 7 +++++++ home-manager/features/hyprland.nix | 5 +++-- 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 home-manager/features/audio.nix diff --git a/home-manager/drew.nix b/home-manager/drew.nix index 95838f7..baab660 100644 --- a/home-manager/drew.nix +++ b/home-manager/drew.nix @@ -1,6 +1,7 @@ { pkgs, inputs, ... }: { imports = [ + ./features/audio.nix ./features/shell.nix ./features/terminal.nix ./features/hyprland.nix @@ -32,6 +33,7 @@ killall ranger + # Networking dnsutils socat diff --git a/home-manager/features/audio.nix b/home-manager/features/audio.nix new file mode 100644 index 0000000..8f06d87 --- /dev/null +++ b/home-manager/features/audio.nix @@ -0,0 +1,7 @@ +{ pkgs, ... }: +{ + home.packages = with pkgs; [ + pulseaudio # for pactl and other tools + pavucontrol # GUI volume control with lots of options + ]; +} diff --git a/home-manager/features/hyprland.nix b/home-manager/features/hyprland.nix index f65f20f..17d9753 100644 --- a/home-manager/features/hyprland.nix +++ b/home-manager/features/hyprland.nix @@ -236,8 +236,9 @@ split-monitor-workspaces = { # Keep the focus when reloading. keep_focused = true; - # Don't pre-allocate workspaces. - enable_persistent_workspaces = false; + # Allocate persistent workspaces. If this is off there are some bugs + # when trying to move to a new workspace if it doesn't already exist. + enable_persistent_workspaces = true; }; };