aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config-laptop.h5
-rwxr-xr-xdwm-statusbar6
2 files changed, 7 insertions, 4 deletions
diff --git a/config-laptop.h b/config-laptop.h
index 8220296..54ad34b 100644
--- a/config-laptop.h
+++ b/config-laptop.h
@@ -6,7 +6,8 @@
#define VOLUP 0x1008FF13 /* Volume control up */
#define BLUP 0x1008FF02 /* Monitor brightness up */
#define BLDOWN 0x1008FF03 /* Monitor brightness down */
-#define SEARCH 0x1008FF1B
+#define SEARCH 0x1008FF1B /* Focus mode */
+#define TPAD 0x1008FF4A /* Trackpad lock */
/* appearance */
static const char font[] = "DVIcons:size=8";
@@ -116,6 +117,7 @@ static const char *raisevolumecmd[] = { "amixer", "-q", "set", "Master", "2dB+"
static const char *mutevolumecmd[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
static const char *raisebrightness[] = { "xbacklight", "-inc", "5", NULL };
static const char *lowerbrightness[] = { "xbacklight", "-dec", "5", NULL };
+static const char *toggletrackpad[] = { "toggle-trackpad", NULL };
static Key keys[] = {
@@ -130,6 +132,7 @@ static Key keys[] = {
{ 0, XK_Print, spawn, {.v = scrotcmd } },
{ 0, SEARCH, prodlock, {0} },
+ { 0, TPAD, toggletrackpad, {0} },
{ MODKEY, XK_h, focusstack, {.i = -1 } },
{ MODKEY, XK_l, focusstack, {.i = +1 } },
diff --git a/dwm-statusbar b/dwm-statusbar
index 9891a29..fd5b5f2 100755
--- a/dwm-statusbar
+++ b/dwm-statusbar
@@ -92,15 +92,15 @@ print_battery() {
bat_colour=$colour_critical
icon_colour=$colour_critical
icon="\uE20E"
- elif [ $bat_capacity -lt 25 ]; then
+ elif [ $bat_capacity -lt 35 ]; then
bat_colour=$colour_warning
icon_colour=$colour_warning
icon="\uE211"
- elif [ $bat_capacity -lt 50 ]; then
+ elif [ $bat_capacity -lt 65 ]; then
bat_colour=$colour_normal
icon_colour=$colour_neutral
icon="\uE1FB"
- elif [ $bat_capacity -lt 75 ]; then
+ elif [ $bat_capacity -lt 85 ]; then
bat_colour=$colour_normal
icon_colour=$colour_neutral
icon="\uE210"