moved settings to each system configuration added per system volume increments

This commit is contained in:
ISnortPennies 2023-02-01 13:38:24 -05:00
parent c525bfa78e
commit c4079791b5
5 changed files with 271 additions and 17 deletions

View file

@ -1,4 +1,10 @@
{
{lib, settings, ...}:
with lib; let
volInc =
if (settings.hostname == "gerg-desktop")
then "40"
else "400";
in {
services.sxhkd = {
enable = true;
keybindings = {
@ -8,8 +14,8 @@
"XF86AudioStop" = "playerctl stop";
"XF86AudioNext" = "playerctl next";
"XF86AudioPrev" = "playerctl previous";
"XF86AudioRaiseVolume" = "amixer sset Master 40+";
"XF86AudioLowerVolume" = "amixer sset Master 40-";
"XF86AudioRaiseVolume" = "amixer sset Master ${volInc}+";
"XF86AudioLowerVolume" = "amixer sset Master ${volInc}-";
"XF86AudioMute" = "amixer sset Master toggle ";
"XF86MonBrightnessUp" = "brightnessctl s 20+";
"XF86MonBrightnessDown" = "brightnessctl s 20-";