From e68154fa331c9bbdc0e8db13d6a22eed4edfe6cc Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Mon, 21 Oct 2024 11:28:46 +0200 Subject: [PATCH] Change modkey and update bindings --- config.def.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index 42f04d7..b6322cc 100644 --- a/config.def.h +++ b/config.def.h @@ -129,10 +129,15 @@ static const Layout layouts[] = { /* key definitions */ #ifdef LAPTOP +//#ifndef THINKPAD #define MODKEY Mod4Mask +//#else +//#define MODKEY Mod1Mask +//#endif #else #define MODKEY Mod1Mask #endif + #define TAGKEYS(KEY,TAG) \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ @@ -249,7 +254,8 @@ static Key keys[] = { { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("$HOME/.local/bin/volume sink -0.01; sigdwmblocks 2") }, { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("$HOME/.local/bin/volume sink +0.01; sigdwmblocks 2") }, { 0, XF86XK_AudioMute, spawn, SHCMD("$HOME/.local/bin/volume sink mute; sigdwmblocks 2") }, - { 0, XF86XK_AudioMicMute, spawn, SHCMD("$HOME/.local/bin/volume source mute; sigdwmblocks 2") }, + //{ 0, XF86XK_AudioMicMute, spawn, SHCMD("$HOME/.local/bin/volume source mute; sigdwmblocks 2") }, + { 0, XF86XK_AudioMicMute, spawn, SHCMD("$HOME/.local/bin/mic-mute") }, #endif #ifndef THINKPAD { 0, XF86XK_AudioPlay, spawn, SHCMD("$HOME/.local/bin/player play-pause") }, @@ -280,8 +286,10 @@ static Key keys[] = { { 0, XF86XK_AudioStop, spawn, SHCMD("dunstctl set-paused toggle; sigdwmblocks 6") }, { 0, XK_Print, spawn, SHCMD("$HOME/.local/bin/screenshot") }, #ifdef THINKPAD - { 0, XF86XK_Messenger, spawn, SHCMD("systemctl suspend") }, - { MODKEY, XF86XK_Messenger, spawn, SHCMD("xset s activate") }, + { 0, XF86XK_Messenger, spawn, SHCMD("xset s activate") }, + { MODKEY, XF86XK_Messenger, spawn, SHCMD("systemctl suspend") }, + //{ 0, XF86XK_Messenger, spawn, SHCMD("systemctl suspend") }, + //{ MODKEY, XF86XK_Messenger, spawn, SHCMD("xset s activate") }, { 0, XF86XK_Display, spawn, SHCMD("$HOME/.local/bin/multi-monitor") }, { MODKEY, XF86XK_Display, spawn, SHCMD("$HOME/.local/bin/fix-monitor") }, { 0, XF86XK_Favorites, spawn, SHCMD("$HOME/.local/bin/autolock") }, @@ -292,7 +300,7 @@ static Key keys[] = { //{ MODKEY|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copyNoNewline") }, { MODKEY|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copy") }, { MODKEY|ShiftMask|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copyRaw") }, - { MODKEY, XK_w, spawn, SHCMD("$HOME/.local/bin/paste") }, + { MODKEY|ControlMask, XK_v, spawn, SHCMD("$HOME/.local/bin/paste") }, }; /* button definitions */