diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7a966fa..292b1a4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -76,24 +76,19 @@ # Enable sound. sound.enable = true; - hardware.pulseaudio.enable = true; - /* services.pipewire = { */ - /* enable = true; */ + hardware.pulseaudio.enable = false; + services.pipewire = { + enable = true; - /* # Sound card drivers */ - /* alsa = { */ - /* enable = true; */ - /* support32Bit = true; */ - /* }; */ + # Sound card drivers + alsa = { + enable = true; + support32Bit = true; + }; - /* # PulseAudio emulation */ - /* pulse.enable = true; */ - /* }; */ - - /* systemd.services.pavucontrol = { */ - /* wantedBy = [ "multi-user.target" ]; */ - /* script = "${pkgs.pavucontrol}/bin/pavucontrol"; */ - /* }; */ + # PulseAudio emulation + pulse.enable = true; + }; services.xserver.displayManager.setupCommands = '' ${pkgs.xorg.xrandr}/bin/xrandr --output DisplayPort-0 \ @@ -171,17 +166,13 @@ curl home-manager just + xclip + pamixer # Mouse config libratbag piper - # Audio - alsa-utils - - # Pulse Audio control utility - #pavucontrol - steam ]; diff --git a/nixos/rc.lua b/nixos/rc.lua index aef164c..177ed75 100644 --- a/nixos/rc.lua +++ b/nixos/rc.lua @@ -326,7 +326,15 @@ globalkeys = gears.table.join( {description = "lua execute prompt", group = "awesome"}), -- Menubar awful.key({ modkey }, "p", function() menubar.show() end, - {description = "show the menubar", group = "launcher"}) + {description = "show the menubar", group = "launcher"}), + + -- Volume + awful.key({}, "XF86AudioLowerVolume", function() + awful.spawn "pamixer -d 2" + end), + awful.key({}, "XF86AudioRaiseVolume", function() + awful.spawn "pamixer -i 2" + end) ) clientkeys = gears.table.join(