qtile-desktop: use playerctl for all media keys
This commit is contained in:
parent
d71a35031c
commit
b7117efd37
2 changed files with 8 additions and 6 deletions
|
@ -106,7 +106,7 @@ key_alt = "mod1"
|
||||||
key_control = "control"
|
key_control = "control"
|
||||||
|
|
||||||
keys = [
|
keys = [
|
||||||
# https://github.com/qtile/qtile/blob/master/libqtile/xkeysyms.py
|
# https://github.com/qtile/qtile/blob/master/libqtile/backend/x11/xkeysyms.py
|
||||||
Key([key_super], "Return", lazy.spawn("${terminalCommand}")),
|
Key([key_super], "Return", lazy.spawn("${terminalCommand}")),
|
||||||
Key([key_super], "r", lazy.spawncmd()),
|
Key([key_super], "r", lazy.spawncmd()),
|
||||||
Key([key_super], "w", lazy.window.kill()),
|
Key([key_super], "w", lazy.window.kill()),
|
||||||
|
@ -168,11 +168,11 @@ keys = [
|
||||||
|
|
||||||
# Multimedia Keys
|
# Multimedia Keys
|
||||||
Key([], "XF86AudioPlay", lazy.spawn("${pkgs.playerctl}/bin/playerctl play-pause")),
|
Key([], "XF86AudioPlay", lazy.spawn("${pkgs.playerctl}/bin/playerctl play-pause")),
|
||||||
Key([], "XF86AudioPrev", lazy.spawn("${pkgs.dbus}/bin/dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous")),
|
Key([], "XF86AudioPrev", lazy.spawn("${pkgs.playerctl}/bin/playerctl previous")),
|
||||||
Key([], "XF86AudioNext", lazy.spawn("${pkgs.dbus}/bin/dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next")),
|
Key([], "XF86AudioNext", lazy.spawn("${pkgs.playerctl}/bin/playerctl next")),
|
||||||
## Microsoft Comfort Curve specific
|
# TODO: the next two don't work yet
|
||||||
Key([key_super, "shift"], "XF86TouchpadToggle", lazy.spawn("${pkgs.dbus}/bin/dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous")),
|
Key([], "XF86AudioRewind", lazy.spawn("${pkgs.playerctl}/bin/playerctl offset 10-")),
|
||||||
Key([key_alt, key_super], "XF86TouchpadToggle", lazy.spawn("${pkgs.dbus}/bin/dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next")),
|
Key([], "XF86BackForward", lazy.spawn("${pkgs.playerctl}/bin/playerctl offset 10+")),
|
||||||
Key([], "XF86AudioMute", lazy.spawn("${audio} mute")),
|
Key([], "XF86AudioMute", lazy.spawn("${audio} mute")),
|
||||||
Key([], "XF86AudioLowerVolume", lazy.spawn("${audio} lower")),
|
Key([], "XF86AudioLowerVolume", lazy.spawn("${audio} lower")),
|
||||||
Key([], "XF86AudioRaiseVolume", lazy.spawn("${audio} raise")),
|
Key([], "XF86AudioRaiseVolume", lazy.spawn("${audio} raise")),
|
||||||
|
|
|
@ -43,6 +43,8 @@ pkgs.stdenv.mkDerivation {
|
||||||
glxinfo
|
glxinfo
|
||||||
|
|
||||||
ntfy
|
ntfy
|
||||||
|
|
||||||
|
playerctl
|
||||||
]);
|
]);
|
||||||
|
|
||||||
# Set Environment Variables
|
# Set Environment Variables
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue