waybar: Use myxer as a graphical audio mixer

This commit is contained in:
PapaTutuWawa 2021-10-27 19:18:11 +02:00
parent 734a910a90
commit 34c1d0aadb
4 changed files with 37 additions and 1 deletions

View File

@ -6,7 +6,7 @@ in mkHost config {
userName = "alexander";
hostName = "miku";
primaryInterface = "enp6s0";
overlays = [ "nur" "unstable" "simple" "custom" "emacs" ];
overlays = [ "nur" "unstable" "stable" "simple" "custom" "emacs" ];
hardwareImports = [ "amdgpu" "amd" ];
programImports = [
"zsh" "git" "mpv" "tmux" "emacs" "firefox" "i18n" "gamemode" "gnome" #"gnome-terminal"
@ -112,6 +112,17 @@ in mkHost config {
gnome.gnome-keyring.enable = true;
};
environment.sessionVariables = {
# sway
#"_JAVA_AWT_NONREPARENTING" = 1;
# Wayland
"QT_QPA_PLATFORM" = "wayland-egl";
"ECORE_EVAS_ENGINE" = "wayland-egl";
"ELM_ENGINE" = "wayland-egl";
"SDL_VIDEODRIVER" = "wayland";
};
# TODO: Move into modules
systemd.user.services = {
scream = {

View File

@ -44,6 +44,9 @@
on-click = "${pkgs.wlogout}/bin/wlogout";
tooltip = "false";
};
"pulseaudio" = {
on-click = "${pkgs.stable.myxer}/bin/myxer";
};
};
}
];

View File

@ -16,6 +16,7 @@ in {
});
nur = import ./nur.nix pkgs;
unstable = importWrapper ./unstable.nix;
stable = importWrapper ./stable.nix;
custom = import ./custom.nix pkgs;
simple = import ./simple.nix;
surface = import ./surface.nix pkgs;

21
overlays/stable.nix Normal file
View File

@ -0,0 +1,21 @@
# NOTE: pkgs is unused but there for consistency with nur.nix
{
lib, ...
}: final: prev:
let
stableTarball =
fetchTarball
https://github.com/NixOS/nixpkgs/archive/nixos-21.05.tar.gz;
in {
stable = import stableTarball {
# TODO
config = {
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"firmwareLinuxNonfree" "microcodeAmd" "microcodeIntel"
"steam" "steam-original" "steam-runtime"
"discord"
];
};
};
}