Browse Source

brightness/sound controls

master
Juni Kim 3 years ago
parent
commit
b5dcebf960
  1. 6
      configuration.nix
  2. 8
      dotfiles/bspwm/sxhkdrc

6
configuration.nix

@ -36,7 +36,7 @@ in
# The global useDHCP flag is deprecated, therefore explicitly set to false here.
# Per-interface useDHCP will be mandatory in the future, so this generated config
# replicates the default behaviour.
networking.useDHCP = true;
#networking.useDHCP = true;
#networking.interfaces.enp1s0.useDHCP = true;
# Configure network proxy if necessary
@ -52,6 +52,7 @@ in
# Enable the X11 windowing system.
services.xserver.enable = true;
programs.slock.enable = true;
# use nix flakes
nix = {
@ -71,7 +72,7 @@ in
# Enable sound.
sound.enable = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true;
#services.blueman.enable = true;
services.pipewire.enable = true;
services.pipewire.alsa.enable = true;
services.pipewire.pulse.enable = true;
@ -118,6 +119,7 @@ in
nerdfonts
];
environment.systemPackages = with pkgs; [
xorg.xbacklight pamixer brightnessctl blueberry
vim neovim neofetch pfetch tmux
fff
nodejs shellcheck

8
dotfiles/bspwm/sxhkdrc

@ -145,17 +145,17 @@ super + {Left,Down,Up,Right}
# audio stuff
XF86AudioRaiseVolume
test "$(pamixer --get-volume)" -lt 100 && /usr/bin/pactl set-sink-volume 0 +5%
test "$(pamixer --get-volume)" -lt 100 && pamixer -i 5
XF86AudioLowerVolume
/usr/bin/pactl set-sink-volume 0 -5%
pamixer -d 5
XF86AudioMute
/usr/bin/pactl set-sink-mute 0 toggle
pamixer -t
# brightness stuff
{XF86MonBrightnessUp,XF86MonBrightnessDown}
xbacklight {+10,-10}
brightnessctl set {10%+,10%-}
# screenshot capability
super + shift + s

Loading…
Cancel
Save