Change modkey and update bindings

This commit is contained in:
Santiago Lo Coco 2024-10-21 11:28:46 +02:00
parent 75889d83f7
commit e68154fa33
Signed by: slococo-work
GPG Key ID: 0C378516959799F5
1 changed files with 12 additions and 4 deletions

View File

@ -129,10 +129,15 @@ static const Layout layouts[] = {
/* key definitions */ /* key definitions */
#ifdef LAPTOP #ifdef LAPTOP
//#ifndef THINKPAD
#define MODKEY Mod4Mask #define MODKEY Mod4Mask
//#else
//#define MODKEY Mod1Mask
//#endif
#else #else
#define MODKEY Mod1Mask #define MODKEY Mod1Mask
#endif #endif
#define TAGKEYS(KEY,TAG) \ #define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \ { MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.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_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_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_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 #endif
#ifndef THINKPAD #ifndef THINKPAD
{ 0, XF86XK_AudioPlay, spawn, SHCMD("$HOME/.local/bin/player play-pause") }, { 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, XF86XK_AudioStop, spawn, SHCMD("dunstctl set-paused toggle; sigdwmblocks 6") },
{ 0, XK_Print, spawn, SHCMD("$HOME/.local/bin/screenshot") }, { 0, XK_Print, spawn, SHCMD("$HOME/.local/bin/screenshot") },
#ifdef THINKPAD #ifdef THINKPAD
{ 0, XF86XK_Messenger, spawn, SHCMD("systemctl suspend") }, { 0, XF86XK_Messenger, spawn, SHCMD("xset s activate") },
{ MODKEY, 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") }, { 0, XF86XK_Display, spawn, SHCMD("$HOME/.local/bin/multi-monitor") },
{ MODKEY, XF86XK_Display, spawn, SHCMD("$HOME/.local/bin/fix-monitor") }, { MODKEY, XF86XK_Display, spawn, SHCMD("$HOME/.local/bin/fix-monitor") },
{ 0, XF86XK_Favorites, spawn, SHCMD("$HOME/.local/bin/autolock") }, { 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/copyNoNewline") },
{ MODKEY|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copy") }, { MODKEY|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copy") },
{ MODKEY|ShiftMask|ControlMask, XK_c, spawn, SHCMD("$HOME/.local/bin/copyRaw") }, { 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 */ /* button definitions */