From 3ee2601309c472bcc8ed9d58bb7ddd53ece7f3b7 Mon Sep 17 00:00:00 2001 From: Aleksa Vučković Date: Wed, 14 Jul 2021 17:42:02 +0200 Subject: Adding keyboard music controls --- config.def.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index e313252..e9b7f98 100644 --- a/config.def.h +++ b/config.def.h @@ -19,7 +19,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 32; /* snap pixel */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Inconsolata Nerd Font Mono:size=11:autohint=true:antialias=true", "JoyPixels:pixelsize=10:autohint=true:antialias=true", }; +static const char *fonts[] = { "monospace:size=10:autohint=true:antialias=true", "JoyPixels:pixelsize=10:autohint=true:antialias=true", }; static const char dmenufont[] = "monospace:size=10"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; @@ -115,8 +115,11 @@ static const Key keys[] = { { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("/usr/bin/pamixer -i 5;kill -44 $(pidof dwmblocks)") }, { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("/usr/bin/xbacklight -inc 5;kill -40 $(pidof dwmblocks)") }, { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("/usr/bin/xbacklight -dec 5;kill -40 $(pidof dwmblocks)") }, + { 0, XF86XK_AudioPrev, spawn, SHCMD("/usr/bin/mpc --port=6601 prev") }, + { 0, XF86XK_AudioPlay, spawn, SHCMD("/usr/bin/mpc --port=6601 toggle") }, + { 0, XF86XK_AudioNext, spawn, SHCMD("/usr/bin/mpc --port=6601 next") }, { 0, XF86XK_Search, spawn, SHCMD("$BROWSER") }, - { 0, XK_Print, spawn, SHCMD("scrot -e 'mv $f ~/Pictures/Screenshots/'") }, + { 0, XK_Print, spawn, SHCMD("/usr/bin/scrot -e 'mv $f ~/Pictures/Screenshots/'") }, }; -- cgit v1.2.3