Added keybinds for light and audio control to sway

main
Johannes Hendrik Gerard van der Weide 2023-11-29 11:24:29 +01:00
parent 4f15c56a1b
commit 351d4321a4
3 changed files with 14 additions and 1 deletions

View File

@ -21,6 +21,9 @@
jack.enable = true;
};
};
programs = {
light.enable = true;
};
boot.kernelParams = [ "i915.force_probe=9a49" ];
hardware = {
opengl = {

View File

@ -24,6 +24,7 @@
gnome-text-editor
warp
tor-browser-bundle-bin
pamixer
# Utils
popsicle
];

View File

@ -1,5 +1,8 @@
{ config, pkgs, ... }:
{ config, pkgs, options, lib, ... }:
let
modifierKey = config.wayland.windowManager.sway.config.modifier;
in
{
# Wofi
programs.wofi = {
@ -131,6 +134,12 @@
{command = "swaybg -i /etc/nixos/Assets/background.svg";}
{command = "keepassxc /home/hertog/Documents/Belangrijk/Wachtwoorden.kdbx";}
];
keybindings = lib.mkOptionDefault {
"${modifierKey}+Shift+l+p" = "exec light -A 5";
"${modifierKey}+Shift+l+m" = "exec light -U 5";
"${modifierKey}+Shift+s+p" = "exec pamixer -i 5";
"${modifierKey}+Shift+s+m" = "exec pamixer -d 5";
};
colors = {
background = "#242424";
focused = {