Added keybinds for light and audio control to sway
parent
4f15c56a1b
commit
351d4321a4
|
@ -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 = {
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue