brightness key support, update flake

This commit is contained in:
LordGrimmauld 2024-04-01 18:32:12 +02:00
parent ea6b3c4d78
commit 71c041c920
3 changed files with 15 additions and 12 deletions

View file

@ -597,11 +597,11 @@
]
},
"locked": {
"lastModified": 1711965728,
"narHash": "sha256-WUULR/jCvfJB8K+wtiUMgBgBtgNvBhZyNXGNBJhd6DA=",
"lastModified": 1711985860,
"narHash": "sha256-clP8s7CYuUptC7CY8OrZOTRpYEust8XF/9XQujLuKKU=",
"ref": "refs/heads/main",
"rev": "b91314fad69a1f08baaf6f0489a3801feef3721b",
"revCount": 31,
"rev": "1c40627570b941dae9735ced05b7bf9d3ef380bc",
"revCount": 32,
"type": "git",
"url": "https://git.grimmauld.de/Grimmauld/swaymux"
},

View file

@ -81,13 +81,13 @@
"bat": "BAT2"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"on-click-right": "rmenu -r network"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float

View file

@ -6,6 +6,7 @@ in {
wmenu
grim
slurp
brightnessctl
wl-clipboard
])
++ [ swaymux_pkg ];
@ -120,13 +121,15 @@ in {
"$mod+r" = ''mode "resize"'';
"XF86AudioRaiseVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioLowerVolume" = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioMute" = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
"XF86AudioPlay" = "exec playerctl play-pause";
"XF86AudioNext" = "exec playerctl next";
"XF86AudioPrev" = "exec playerctl previous";
XF86AudioRaiseVolume = "exec pactl set-sink-volume @DEFAULT_SINK@ +5%";
XF86AudioLowerVolume = "exec pactl set-sink-volume @DEFAULT_SINK@ -5%";
XF86AudioMute = "exec pactl set-sink-mute @DEFAULT_SINK@ toggle";
XF86AudioPlay = "exec playerctl play-pause";
XF86AudioNext = "exec playerctl next";
XF86AudioPrev = "exec playerctl previous";
"$mod+c" = "exec swaymux";
XF86MonBrightnessUp = "exec brightnessctl s 10+%";
XF86MonBrightnessDown = "exec brightnessctl s 10-%";
};
autolaunch = [ # fixme: absolute paths
"blueman-applet"