From 74177490a41cb19bf9d2c9d22f04a778bc69cc17 Mon Sep 17 00:00:00 2001 From: speedie Date: Wed, 7 Dec 2022 21:02:28 +0100 Subject: [PATCH] add a few mouse binds such as scrolling, remove useless option --- docs/example.Xresources | 4 ---- mouse.h | 6 ++++-- options.h | 3 --- xresources.h | 1 - 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/docs/example.Xresources b/docs/example.Xresources index 5869b80..5b67c7a 100644 --- a/docs/example.Xresources +++ b/docs/example.Xresources @@ -198,10 +198,6 @@ speedwm.stack.snap: 20 ! Snap pixel () speedwm.status.defaultstatus: -!! Status bar script to run - -speedwm.status.statusallmons: 1 ! Display status text on all monitors (0/1) - !! Switcher options speedwm.switcher.maxheight: 200 ! Max height of the switcher in pixels () diff --git a/mouse.h b/mouse.h index c070b07..c0ac278 100644 --- a/mouse.h +++ b/mouse.h @@ -35,6 +35,8 @@ static const Button buttons[] = { { ClkWinTitle, 0, Button3, spawn, cmd( "speedwm-utils" ) }, { ClkRootWin, 0, Button3, spawn, cmd( "j4-dmenu-desktop --term=st --dmenu='dmenu -l 20 -p Open:'" ) }, { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button4, view, {0} }, - { ClkTagBar, 0, Button5, view, {0} }, + { ClkTagBar, 0, Button4, viewtoleft, {0} }, + { ClkTagBar, 0, Button5, viewtoright, {0} }, + { ClkTagBar, MODIFIER1, Button4, viewtoleft_vacant, {0} }, + { ClkTagBar, MODIFIER1, Button5, viewtoright_vacant, {0} }, }; diff --git a/options.h b/options.h index e820eea..e69e80c 100644 --- a/options.h +++ b/options.h @@ -129,9 +129,6 @@ static int hidefloating = 0; /* Hide floating indicator (1 static int hidesticky = 0; /* Hide sticky indicator (1) or show (0) */ static int hideclientindicator = 0; /* Hide client indicator (1) or show (0) */ -/* Status options */ -static int statusallmons = 1; /* Draw status bar on all monitors */ - /* Layout options * * Monocle layout */ diff --git a/xresources.h b/xresources.h index a573469..803af3d 100644 --- a/xresources.h +++ b/xresources.h @@ -102,7 +102,6 @@ ResourcePref resources[] = { { "client.hide.border", INTEGER, &hideborder }, { "client.hide.singleborder", INTEGER, &hidesingleborder }, { "client.allowurgent", INTEGER, &allowurgent }, - { "status.statusallmons", INTEGER, &statusallmons }, { "tag.resetlayout", INTEGER, &resetlayout }, { "tag.resetmfact", INTEGER, &resetmfact }, { "tag.resetgaps", INTEGER, &resetgaps },