desktop: play/pause button
parent
47b8ac7798
commit
e8b79f68a2
|
@ -81,6 +81,8 @@ in {
|
||||||
"XF86AudioLowerVolume" = exec alsaUtils "amixer set Master 1%-";
|
"XF86AudioLowerVolume" = exec alsaUtils "amixer set Master 1%-";
|
||||||
"XF86AudioRaiseVolume" = exec alsaUtils "amixer set Master 1%+";
|
"XF86AudioRaiseVolume" = exec alsaUtils "amixer set Master 1%+";
|
||||||
"XF86AudioMute" = exec alsaUtils "amixer set Master toggle";
|
"XF86AudioMute" = exec alsaUtils "amixer set Master toggle";
|
||||||
|
"XF86AudioPause" = "exec playerctl pause";
|
||||||
|
"XF86AudioPlay" = "exec playerctl play";
|
||||||
"${mod}+Shift+s" = exec bin.screenshot_public "screenshot_public >> ~/screenshot-public.log";
|
"${mod}+Shift+s" = exec bin.screenshot_public "screenshot_public >> ~/screenshot-public.log";
|
||||||
"Print" = exec bin.screenshot_public "screenshot_public";
|
"Print" = exec bin.screenshot_public "screenshot_public";
|
||||||
"${mod}+Shift+t" =
|
"${mod}+Shift+t" =
|
||||||
|
|
|
@ -145,10 +145,15 @@ in {
|
||||||
player = mpv --cache 2048
|
player = mpv --cache 2048
|
||||||
default-stream = best
|
default-stream = best
|
||||||
'';
|
'';
|
||||||
|
programs.mpv = {
|
||||||
|
enable = true;
|
||||||
|
scripts = [ pkgs.mpvScripts.mpris ];
|
||||||
|
};
|
||||||
services.gpg-agent = {
|
services.gpg-agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSshSupport = true;
|
enableSshSupport = true;
|
||||||
};
|
};
|
||||||
|
services.playerctld.enable = true;
|
||||||
home.packages = (with pkgs; [
|
home.packages = (with pkgs; [
|
||||||
## utils
|
## utils
|
||||||
# afew
|
# afew
|
||||||
|
@ -196,7 +201,6 @@ in {
|
||||||
## media
|
## media
|
||||||
aria2
|
aria2
|
||||||
castnow
|
castnow
|
||||||
mpv
|
|
||||||
nodePackages.peerflix
|
nodePackages.peerflix
|
||||||
streamlink
|
streamlink
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
|
Loading…
Reference in New Issue