More stuff for cranberry

This commit is contained in:
Geoffrey Frogeye 2024-06-20 16:47:58 +02:00
parent 93d55c8c5c
commit ac43ef6548
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
3 changed files with 12 additions and 7 deletions

View file

@ -6,10 +6,11 @@ let
{ command = "crepuscule"; specialisation = "dark"; } { command = "crepuscule"; specialisation = "dark"; }
{ command = "nuit"; specialisation = "dark"; } { command = "nuit"; specialisation = "dark"; }
]; ];
mod = config.xsession.windowManager.i3.config.modifier;
in in
{ {
config = { config = {
home.packages = map home.packages = (map
(phase: (pkgs.writeShellScriptBin phase.command '' (phase: (pkgs.writeShellScriptBin phase.command ''
switch="/nix/var/nix/profiles/system${lib.strings.optionalString (phase.specialisation != null) "/specialisation/${phase.specialisation}"}/bin/switch-to-configuration" switch="/nix/var/nix/profiles/system${lib.strings.optionalString (phase.specialisation != null) "/specialisation/${phase.specialisation}"}/bin/switch-to-configuration"
if [ -x "$switch" ] if [ -x "$switch" ]
@ -19,10 +20,14 @@ in
fi fi
${builtins.getAttr phase.command config.frogeye.desktop.phasesCommands} ${builtins.getAttr phase.command config.frogeye.desktop.phasesCommands}
'')) ''))
phases; phases) ++ (with pkgs; [
brightnessctl
]);
xsession.windowManager.i3.config.keybindings = { xsession.windowManager.i3.config.keybindings = {
"XF86MonBrightnessUp" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%"; XF86MonBrightnessUp = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +5%";
"XF86MonBrightnessDown" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-"; XF86MonBrightnessDown = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 5%-";
"${mod}+F6" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set 1%-";
"${mod}+F7" = "exec ${pkgs.brightnessctl}/bin/brightnessctl set +1%";
}; };
}; };
} }

View file

@ -29,7 +29,7 @@ in
"XF86AudioRaiseVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ +5%"; "XF86AudioRaiseVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
"XF86AudioLowerVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ -5%"; "XF86AudioLowerVolume" = "${pactl} set-sink-mute @DEFAULT_SINK@ false; ${pactl} set-sink-volume @DEFAULT_SINK@ -5%";
"XF86AudioMute" = "${pactl} set-sink-mute @DEFAULT_SINK@ true"; "XF86AudioMute" = "${pactl} set-sink-mute @DEFAULT_SINK@ true";
"${mod}+F7" = "${pactl} suspend-sink @DEFAULT_SINK@ 1; ${pactl} suspend-sink @DEFAULT_SINK@ 0"; # Re-synchronize bluetooth headset "${mod}+F8" = "${pactl} suspend-sink @DEFAULT_SINK@ 1; ${pactl} suspend-sink @DEFAULT_SINK@ 0"; # Re-synchronize bluetooth headset
"${mod}+F11" = "exec ${pkgs.pavucontrol}/bin/pavucontrol"; "${mod}+F11" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
"${mod}+F12" = "exec ${pkgs.pavucontrol}/bin/pavucontrol"; "${mod}+F12" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
# TODO Find pacmixer? # TODO Find pacmixer?

View file

@ -41,11 +41,11 @@
] ++ lib.optionals config.frogeye.desktop.xorg [ ] ++ lib.optionals config.frogeye.desktop.xorg [
# multimedia editors # multimedia editors
gimp
inkscape
darktable darktable
puddletag puddletag
audacity audacity
xournalpp
krita
# downloading # downloading
transmission-qt transmission-qt