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