mirror of
				https://github.com/WarrenHood/dotfiles.git
				synced 2025-11-04 04:58:41 +00:00 
			
		
		
		
	Get multimedia controls on my keyboard working - mainly for spotify
This commit is contained in:
		
							parent
							
								
									5b18591e53
								
							
						
					
					
						commit
						1d7f433483
					
				| 
						 | 
					@ -258,6 +258,12 @@ root.buttons(gears.table.join(
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- {{{ Key bindings
 | 
					-- {{{ Key bindings
 | 
				
			||||||
globalkeys = gears.table.join(
 | 
					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,
 | 
					    awful.key({ modkey, }, "s", hotkeys_popup.show_help,
 | 
				
			||||||
        { description = "show help", group = "awesome" }),
 | 
					        { description = "show help", group = "awesome" }),
 | 
				
			||||||
    awful.key({ modkey, }, "Left", awful.tag.viewprev,
 | 
					    awful.key({ modkey, }, "Left", awful.tag.viewprev,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								setup
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup
									
									
									
									
									
								
							| 
						 | 
					@ -12,7 +12,7 @@ else
 | 
				
			||||||
    echo "Updating Arch"
 | 
					    echo "Updating Arch"
 | 
				
			||||||
    sudo pacman -Syyu
 | 
					    sudo pacman -Syyu
 | 
				
			||||||
    echo "Installing tools/utils"
 | 
					    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 systemctl enable --now power-profiles-daemon
 | 
				
			||||||
    sudo thermald --systemd
 | 
					    sudo thermald --systemd
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue