increment brightness by 1%

This commit is contained in:
Venelin Dechkov
2026-07-30 11:54:49 +03:00
parent 6799745b3c
commit a2f3875b9a
+23 -20
View File
@@ -27,13 +27,16 @@ static const char* colors[][3] = {
static const char* tags[] = { "1", "2", "3", "4", "5", "6", "7", "B", "E", "0" }; static const char* tags[] = { "1", "2", "3", "4", "5", "6", "7", "B", "E", "0" };
static const Rule rules[] = { static const Rule rules[] = {
/* xprop(1): /* xprop(1):
* WM_CLASS(STRING) = instance, class * WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title * WM_NAME(STRING) = title
*/ */
/* class instance title tags mask isfloating monitor */ /* class instance title tags mask isfloating monitor */
{ BROWSER, NULL, NULL, 1<<7, 0, -1 }, { BROWSER, NULL, NULL, 1<<7, 0, -1 },
{ NULL, "emacs", NULL, 1<<8, 0, -1 } { "LibreWolf", NULL, NULL, 1<<7, 0, -1 },
{ NULL, "emacs", NULL, 1<<8, 0, -1 },
{ "dlt-viewer", NULL, NULL, 1<<5, 0, -1 },
}; };
/* layout(s) */ /* layout(s) */
@@ -52,15 +55,15 @@ static const Layout layouts[] = {
/* key definitions */ /* key definitions */
#define MODKEY Mod4Mask #define MODKEY Mod4Mask
#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} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
#define TAGKEYS_NO_MOVE(KEY,TAG) \ #define TAGKEYS_NO_MOVE(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} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } */ /* #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } */
@@ -70,8 +73,8 @@ static const Layout layouts[] = {
static const char* dmenucmd[] = { "dmenu_run", "-fn", "monospace:size=14", NULL }; static const char* dmenucmd[] = { "dmenu_run", "-fn", "monospace:size=14", NULL };
static const char* termcmd[] = { "st", NULL }; static const char* termcmd[] = { "st", NULL };
#if HAS_SW_BACKLIGHT #if HAS_SW_BACKLIGHT
static const char* bright_up[] = { "brightnessctl", "s", "-q", "3%+", NULL }; static const char* bright_up[] = { "brightnessctl", "s", "-q", "1%+", NULL };
static const char* bright_down[] = { "brightnessctl", "s", "-q", "3%-", NULL }; static const char* bright_down[] = { "brightnessctl", "s", "-q", "1%-", NULL };
#endif #endif
static void webbookmark(const Arg* unused){ static void webbookmark(const Arg* unused){
@@ -120,9 +123,9 @@ static const Key keys[] = {
TAGKEYS( XK_5, 4) TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5) TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6) TAGKEYS( XK_7, 6)
{ MODKEY, XK_b, vene_browser, {.ui = 1 << 7} }, { MODKEY, XK_b, vene_browser, {.ui = 1 << 7} },
{ MODKEY|ControlMask, XK_b, toggleview, {.ui = 1 << 7} }, { MODKEY|ControlMask, XK_b, toggleview, {.ui = 1 << 7} },
{ MODKEY|ControlMask|ShiftMask, XK_b, toggletag, {.ui = 1 << 7} }, { MODKEY|ControlMask|ShiftMask, XK_b, toggletag, {.ui = 1 << 7} },
TAGKEYS_NO_MOVE( XK_e, 8) TAGKEYS_NO_MOVE( XK_e, 8)
TAGKEYS( XK_0, 9) // tag 0 TAGKEYS( XK_0, 9) // tag 0
}; };