Added keybinds for light and audio control to sway
parent
4f15c56a1b
commit
351d4321a4
|
@ -21,6 +21,9 @@
|
|||
jack.enable = true;
|
||||
};
|
||||
};
|
||||
programs = {
|
||||
light.enable = true;
|
||||
};
|
||||
boot.kernelParams = [ "i915.force_probe=9a49" ];
|
||||
hardware = {
|
||||
opengl = {
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
gnome-text-editor
|
||||
warp
|
||||
tor-browser-bundle-bin
|
||||
pamixer
|
||||
# Utils
|
||||
popsicle
|
||||
];
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue