zenix: cosmic add audio control hotkeys
This commit is contained in:
parent
34fa25d463
commit
c4bd5f1cf8
3 changed files with 22 additions and 3 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [
|
||||
# ./kodi.nix
|
||||
];
|
||||
roles.email = {
|
||||
enable = true;
|
||||
email = "tristan@tristans.cloud";
|
||||
|
|
|
|||
14
nixos/programs/kodi.nix
Normal file
14
nixos/programs/kodi.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{pkgs, ...}: {
|
||||
services.xserver.desktopManager.kodi = {
|
||||
enable = true;
|
||||
package =
|
||||
pkgs.kodi.withPackages
|
||||
(exts:
|
||||
with exts; [
|
||||
jellyfin
|
||||
steam-launcher
|
||||
joystick
|
||||
youtube
|
||||
]);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue