Get multimedia controls on my keyboard working - mainly for spotify

This commit is contained in:
Warren Hood 2022-11-27 18:52:59 +02:00
parent 5b18591e53
commit 1d7f433483
2 changed files with 7 additions and 1 deletions

View file

@ -258,6 +258,12 @@ root.buttons(gears.table.join(
-- {{{ Key bindings
globalkeys = gears.table.join(
-- Make multimedia keys work properly - mainly for spotify
awful.key({}, "XF86AudioPlay", function() awful.util.spawn("playerctl play-pause") end),
awful.key({}, "XF86AudioStop", function() awful.util.spawn("playerctl play-pause") end),
awful.key({}, "XF86AudioPrev", function() awful.util.spawn("playerctl previous") end),
awful.key({}, "XF86AudioNext", function() awful.util.spawn("playerctl next") end),
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{ description = "show help", group = "awesome" }),
awful.key({ modkey, }, "Left", awful.tag.viewprev,

2
setup
View file

@ -12,7 +12,7 @@ else
echo "Updating Arch"
sudo pacman -Syyu
echo "Installing tools/utils"
sudo pacman -S ripgrep fd neovim make stow tmux awesome dmenu arandr autorandr volumeicon picom nitrogen network-manager-applet lxsession thunar lxappearance-gtk3 power-profiles-daemon thermald acpi arc-icon-theme
sudo pacman -S ripgrep fd neovim make stow tmux awesome dmenu arandr autorandr volumeicon picom nitrogen network-manager-applet lxsession thunar lxappearance-gtk3 power-profiles-daemon thermald acpi arc-icon-theme playerctl
sudo systemctl enable --now power-profiles-daemon
sudo thermald --systemd