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; jack.enable = true;
}; };
}; };
programs = {
light.enable = true;
};
boot.kernelParams = [ "i915.force_probe=9a49" ]; boot.kernelParams = [ "i915.force_probe=9a49" ];
hardware = { hardware = {
opengl = { opengl = {

View File

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

View File

@ -1,5 +1,8 @@
{ config, pkgs, ... }: { config, pkgs, options, lib, ... }:
let
modifierKey = config.wayland.windowManager.sway.config.modifier;
in
{ {
# Wofi # Wofi
programs.wofi = { programs.wofi = {
@ -131,6 +134,12 @@
{command = "swaybg -i /etc/nixos/Assets/background.svg";} {command = "swaybg -i /etc/nixos/Assets/background.svg";}
{command = "keepassxc /home/hertog/Documents/Belangrijk/Wachtwoorden.kdbx";} {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 = { colors = {
background = "#242424"; background = "#242424";
focused = { focused = {