zenix: cosmic add audio control hotkeys

This commit is contained in:
tristan 2024-11-24 22:18:55 +00:00
parent 34fa25d463
commit c4bd5f1cf8
3 changed files with 22 additions and 3 deletions

View file

@ -5,6 +5,8 @@
...
}: let
inherit (config.lib.cosmic) Actions mapBinds;
SpawnTerminal = name: pkg:
Actions.Spawn (pkgs.writeShellScriptBin name "${lib.getExe pkgs.alacritty} -e ${lib.getExe pkg}");
in {
programs.cosmic = {
enable = true;
@ -42,8 +44,14 @@ in {
# System
Super. "d" = Actions.Spawn config.programs.menu.drunCommand;
Super. "Return" = Actions.Spawn pkgs.alacritty;
Super. "e" = SpawnTerminal "aerc" config.programs.aerc.package;
Super. "o" = Actions.System "HomeFolder";
Super.Shift. "s" = Actions.System "Screenshot";
"XF86AudioRaiseVolume" = Actions.System "VolumeRaise";
"XF86AudioLowerVolume" = Actions.System "VolumeLower";
"XF86AudioPlay" = Actions.System "PlayPause";
"XF86AudioNext" = Actions.System "PlayNext";
"XF86AudioPrev" = Actions.System "PlayPrev";
};
background = {
displays = {

View file

@ -1,7 +1,4 @@
{pkgs, ...}: {
imports = [
# ./kodi.nix
];
roles.email = {
enable = true;
email = "tristan@tristans.cloud";