fix(nixos): volume keys in swaywm
This commit is contained in:
parent
a3325b372a
commit
ca7ad57690
|
@ -82,20 +82,20 @@ in
|
|||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
hardware.pulseaudio.enable = true;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
#jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
# services.pipewire = {
|
||||
# enable = true;
|
||||
# alsa.enable = true;
|
||||
# alsa.support32Bit = true;
|
||||
# pulse.enable = true;
|
||||
# # If you want to use JACK applications, uncomment this
|
||||
# #jack.enable = true;
|
||||
#
|
||||
# # use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# # no need to redefine it in your config for now)
|
||||
# #media-session.enable = true;
|
||||
# };
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
|
|
@ -124,8 +124,12 @@
|
|||
bindswitch --reload --locked lid:on output $laptop disable
|
||||
bindswitch --reload --locked lid:off output $laptop enable
|
||||
|
||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
|
||||
bindsym XF86AudioRaiseVolume exec pamixer -ui 2 && pamixer --get-volume
|
||||
bindsym XF86AudioLowerVolume exec pamixer -ud 2 && pamixer --get-volume
|
||||
bindsym XF86AudioMute exec pamixer --toggle-mute
|
||||
|
||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 10%-
|
||||
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 10%+
|
||||
|
||||
exec alacritty
|
||||
exec firefox
|
||||
|
|
|
@ -11,6 +11,7 @@ in
|
|||
home.packages = shared-packages ++ pkgs.lib.optionals desktop [
|
||||
pkgs.discord
|
||||
pkgs.meslo-lg
|
||||
pkgs.pamixer
|
||||
pkgs.pass
|
||||
pkgs.pinentry
|
||||
pkgs.postman
|
||||
|
|
Loading…
Reference in a new issue