diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2017-01-11 16:56:17 +0100 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2017-01-11 16:56:17 +0100 |
commit | e1a4319cf486c029fd88fb5000dfd56eb4e2d7d8 (patch) | |
tree | 758f44062b7fa119c0aac52d059af3c998339326 | |
parent | 9a5d4ba79de8e0e51ffb56b3dc3c2d9ee86400bf (diff) |
Updated battery thresholds, added trackpad lock to laptop config
-rw-r--r-- | config-laptop.h | 5 | ||||
-rwxr-xr-x | dwm-statusbar | 6 |
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" |