sistema_progs

Programas para customizar o meu entorno de traballo nos meus equipos persoais
Log | Files | Refs

commit 54fbe95e9d80aba1b96f4cf93438a67c1bd31c99
parent 44f23b69cb06f6dd0ff1d4762800a41055f387c4
Author: x0tero <gxoelotero@gmail.com>
Date:   Mon,  9 Oct 2023 13:47:39 +0200

botones funcionando en dwm

Diffstat:
Mportatil/dwm/config.h | 11+++++++++++
Mportatil/dwm/dwm | 0
Mportatil/dwm/dwm.o | 0
3 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/portatil/dwm/config.h b/portatil/dwm/config.h @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include <gcolors.h> +#include <X11/XF86keysym.h> /* appearance */ static const unsigned int borderpx = 3; /* border pixel of windows */ @@ -26,6 +27,11 @@ static const char col_red[] = COL_VERMELL; static const char col_yellow[] = COL_GROC; static const char col_white[] = COL_BLANC; static const char col_granate[] = "#663338"; +//{ 0, XF86XK_AudioLowerVolume, spawn, {.v = "amixer sset Master 1%- | pkill -RTMIN+10 dwmblocks" } }, +static const char *decvol[] = { "/bin/bash", "-c", "amixer sset Master 1%- | pkill -RTMIN+10 dwmblocks", NULL }; +static const char *upvol[] = { "/bin/bash", "-c", "amixer sset Master 1%+ | kill -44 $(pidof dwmblocks)", NULL }; +static const char *decbrillo[] = { "/bin/bash", "-c", "brightnessctl -d \"intel_backlight\" set 5%-", NULL }; +static const char *upbrillo[] = { "/bin/bash", "-c", "brightnessctl -d \"intel_backlight\" set 5%+", NULL }; static const char *colors[][3] = { /* fg bg border */ @@ -127,6 +133,11 @@ static Key keys[] = { { MODKEY, XK_minus, setgaps, {.i = -1 } }, { MODKEY, XK_equal, setgaps, {.i = +1 } }, { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, + { 0, XF86XK_AudioLowerVolume, spawn, {.v = decvol } }, + { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, + { 0, XF86XK_MonBrightnessDown, spawn, {.v = decbrillo } }, + { 0, XF86XK_MonBrightnessUp, spawn, {.v = upbrillo } }, + //{ 0, XF86XK_AudioLowerVolume, spawn, {.v = "amixer sset Master 1%- | pkill -RTMIN+10 dwmblocks" } }, TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) diff --git a/portatil/dwm/dwm b/portatil/dwm/dwm Binary files differ. diff --git a/portatil/dwm/dwm.o b/portatil/dwm/dwm.o Binary files differ.