diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 70fad6d..ee80327 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -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, diff --git a/setup b/setup index 2dee35b..45bf749 100755 --- a/setup +++ b/setup @@ -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