Better volume control

This commit is contained in:
Cyryl Płotnicki 2019-07-27 10:40:37 +01:00
parent bcf2fdcda3
commit a1d6ecf7ee
3 changed files with 5 additions and 10 deletions

View file

@ -20,7 +20,7 @@ in
unstable = import unstableTarball { unstable = import unstableTarball {
config = config.nixpkgs.config; config = config.nixpkgs.config;
}; };
cyplo = import ./nixpkgs { cyplo = import /home/cyryl/dev/nixpkgs {
config = config.nixpkgs.config; config = config.nixpkgs.config;
}; };
}; };

View file

@ -31,10 +31,6 @@ in
CM_LAUNCHER="rofi"; CM_LAUNCHER="rofi";
}; };
home.file = {
".disk-indicator".source = "${dotfiles}/disk-indicator";
};
imports = [ imports = [
./programs/tmux.nix ./programs/tmux.nix
./programs/zsh.nix ./programs/zsh.nix

View file

@ -26,7 +26,6 @@ in
{ command = "exec autorandr -c"; always = true; notification = false; } { command = "exec autorandr -c"; always = true; notification = false; }
{ command = "exec i3-sensible-terminal"; always = false; notification = false; } { command = "exec i3-sensible-terminal"; always = false; notification = false; }
{ command = "exec $HOME/dev/dotfiles/lock.sh"; always = false; notification = false; } { command = "exec $HOME/dev/dotfiles/lock.sh"; always = false; notification = false; }
{ command = "exec ${pkgs.disk_indicator}/bin/disk-indicator"; always = false; notification = false; }
]; ];
window = { window = {
hideEdgeBorders = "horizontal"; hideEdgeBorders = "horizontal";
@ -50,10 +49,10 @@ in
"${mod}+Shift+r" = "restart"; "${mod}+Shift+r" = "restart";
"${mod}+Shift+l" = "exec physlock -d"; "${mod}+Shift+l" = "exec physlock -d";
"XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume 0 +5%"; "XF86AudioRaiseVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume 0 -5%"; "XF86AudioLowerVolume" = "exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute 0 toggle"; "XF86AudioMute" = "exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle";
"XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute 2 toggle"; "XF86AudioMicMute" = "exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle";
"XF86MonBrightnessUp" = "exec light -s sysfs/backlight/intel_backlight -A 5"; "XF86MonBrightnessUp" = "exec light -s sysfs/backlight/intel_backlight -A 5";
"XF86MonBrightnessDown" = "exec light -s sysfs/backlight/intel_backlight -U 5"; "XF86MonBrightnessDown" = "exec light -s sysfs/backlight/intel_backlight -U 5";