aboutsummaryrefslogtreecommitdiff
path: root/wmstatus.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-11-07 20:41:36 +0100
committerPřemysl Eric Janouch <p@janouch.name>2020-11-07 20:41:36 +0100
commit5f1b504d7f39953c8898b1fb330f9fe53f9496d3 (patch)
tree1ed9df16286a76958c2227b1a2c7f3d3625527bd /wmstatus.c
parentaec905b2918913e12b2e12b63a43cb7551c7b2bd (diff)
downloaddesktop-tools-5f1b504d7f39953c8898b1fb330f9fe53f9496d3.tar.gz
desktop-tools-5f1b504d7f39953c8898b1fb330f9fe53f9496d3.tar.xz
desktop-tools-5f1b504d7f39953c8898b1fb330f9fe53f9496d3.zip
wmstatus: don't use AltGr for bindings
Unreachable key combinations for my Planck's layout.
Diffstat (limited to 'wmstatus.c')
-rw-r--r--wmstatus.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/wmstatus.c b/wmstatus.c
index 20c7689..00dfec1 100644
--- a/wmstatus.c
+++ b/wmstatus.c
@@ -2195,14 +2195,16 @@ g_keys[] =
// This key should be labeled L on normal Qwert[yz] layouts
{ Mod4Mask, XK_n, on_lock, 0 },
+ // xmodmap | grep -e Alt_R -e Meta_R -e ISO_Level3_Shift -e Mode_switch
+ // can be used to figure out which modifier is AltGr
+
// MPD
{ Mod4Mask, XK_Up, on_mpd_play, 0 },
{ Mod4Mask, XK_Down, on_mpd_stop, 0 },
{ Mod4Mask, XK_Left, on_mpd_prev, 0 },
{ Mod4Mask, XK_Right, on_mpd_next, 0 },
- /* xmodmap | grep -e Alt_R -e Meta_R -e ISO_Level3_Shift -e Mode_switch */
- { Mod4Mask | Mod5Mask, XK_Left, on_mpd_backward, 0 },
- { Mod4Mask | Mod5Mask, XK_Right, on_mpd_forward, 0 },
+ { Mod4Mask | ShiftMask, XK_Left, on_mpd_backward, 0 },
+ { Mod4Mask | ShiftMask, XK_Right, on_mpd_forward, 0 },
{ 0, XF86XK_AudioPlay, on_mpd_play, 0 },
{ 0, XF86XK_AudioPrev, on_mpd_prev, 0 },
{ 0, XF86XK_AudioNext, on_mpd_next, 0 },
@@ -2234,13 +2236,15 @@ g_keys[] =
{ Mod4Mask, XK_Insert, on_volume_switch, 0 },
{ Mod4Mask, XK_Delete, on_volume_mute, 0 },
{ Mod4Mask, XK_Page_Up, on_volume_set, 5 },
- { Mod4Mask | Mod5Mask, XK_Page_Up, on_volume_set, 1 },
+ { Mod4Mask | ShiftMask, XK_Page_Up, on_volume_set, 1 },
{ Mod4Mask, XK_Page_Down, on_volume_set, -5 },
- { Mod4Mask | Mod5Mask, XK_Page_Down, on_volume_set, -1 },
- { 0, XF86XK_AudioMicMute, on_volume_mic_mute, 0 },
- { 0, XF86XK_AudioMute, on_volume_mute, 0 },
+ { Mod4Mask | ShiftMask, XK_Page_Down, on_volume_set, -1 },
{ 0, XF86XK_AudioRaiseVolume, on_volume_set, 5 },
+ { ShiftMask, XF86XK_AudioRaiseVolume, on_volume_set, 1 },
{ 0, XF86XK_AudioLowerVolume, on_volume_set, -5 },
+ { ShiftMask, XF86XK_AudioLowerVolume, on_volume_set, -1 },
+ { 0, XF86XK_AudioMicMute, on_volume_mic_mute, 0 },
+ { 0, XF86XK_AudioMute, on_volume_mute, 0 },
};
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -