From b09a284f020931b885a87aa645359f1c5ec175cf Mon Sep 17 00:00:00 2001 From: tuxliban Date: Wed, 23 Jun 2021 20:29:55 -0500 Subject: [PATCH] =?UTF-8?q?DWM:=20Actualizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se añaden nuevos atajos para administrar dispositivos extraibles y para activar antena externa de wifi --- paquetes/plantillas/dwm/files/config.h | 27 ++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/paquetes/plantillas/dwm/files/config.h b/paquetes/plantillas/dwm/files/config.h index ce1b465..982d67f 100644 --- a/paquetes/plantillas/dwm/files/config.h +++ b/paquetes/plantillas/dwm/files/config.h @@ -26,7 +26,8 @@ static const char *colors[][3] = { }; /* tagging */ -static const char *tags[] = { "", "", "", "", "", "" }; +//static const char *tags[] = { "", "", "", "", "", "", "" }; +static const char *tags[] = { "", "", "", "", "", "" }; static const Rule rules[] = { /* xprop(1): @@ -38,7 +39,7 @@ static const Rule rules[] = { { "Gimp", NULL, NULL, 1 << 3, 0, -1 }, { "IceCat", NULL, NULL, 1 << 1, 0, -1 }, { "Brave", NULL, NULL, 1 << 1, 0, -1 }, - { "Chromium", NULL, NULL, 0, 0, -1 }, + { "Google Chrome", NULL, NULL, 1 << 6, 0, -1 }, { "Galculator", NULL, NULL, 0, 1, -1 }, { "Openshot-qt", NULL, NULL, 1 << 3, 0, -1 }, // Editor de videos { "Telegram", NULL, NULL, 1 << 2, 0, -1 }, @@ -50,9 +51,9 @@ static const Rule rules[] = { }; /* layout(s) */ -static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ +static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ +static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ static const Layout layouts[] = { /* symbol arrange function */ @@ -79,20 +80,21 @@ static const char *termcmd[] = { "st", "-t", "Enter the Void", NULL }; /* Emula /* Comandos personalizados */ static const char *menucmd[] = { "menu-apagar.sh", NULL }; -static const char *gvideo[] = { "gvideo.sh", NULL }; -static const char *nnncmd[] = { "st", "-c", "nnn", "-t", "Gestor de archivos", "-e", "nnn", "-d", NULL }; +static const char *screencastcmd[] = { "gvideo.sh", NULL }; +static const char *nnncmd[] = { "st", "-T", "Administrador de archivos", "-e", "nnn", NULL }; static const char *icecatcmd[] = { "icecat", NULL }; static const char *bravecmd[] = { "glibc", "brave", NULL }; -static const char *chromium[] = { "glibc", "chromium", NULL }; +static const char *chrome[] = { "glibc", "google-chrome", NULL }; static const char *telegramcmd[] = { "glibc","telegram", NULL }; static const char *gimpcmd[] = { "gimp", NULL }; static const char *openshotcmd[] = { "glibc", "openshot-qt", NULL }; -static const char *mocpcmd[] = { "st", "-e", "mocp", "-T", "moca_theme", NULL }; +static const char *mocpcmd[] = { "st", "-e", "mocp", "-T", "yellow_red_theme", NULL }; static const char *mocp_play[] = { "mocp", "-p", "-t", "shuffle", NULL }; static const char scratchpadname[] = "scratchpad"; static const char *scratchpadcmd[] = { "st", "-t", "scratchpad", "-g", "140x40+400+220", NULL }; static const char *dropboxcmd[] = { "glibc", "dropbox", "start", NULL }; static const char *thunderbirdcmd[] = { "thunderbird", NULL }; +static const char *toggle_wificmd[] = { "wifi.sh", "-toggle", NULL }; /* Control de volumen ALSA */ static const char *volupcmd[] = { "amixer", "-q", "sset", "Master", "5%+", NULL }; @@ -131,8 +133,9 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, /* Atajos personalizados */ +// { MODKEY, XK_F1, spawn, {.v = nnncmd } }, { MODKEY, XK_F1, spawn, {.v = nnncmd } }, - { ControlMask, XK_F1, spawn, {.v = chromium } }, + { ControlMask, XK_F1, spawn, {.v = chrome } }, { MODKEY, XK_F2, spawn, {.v = icecatcmd } }, { ControlMask, XK_F2, spawn, {.v = bravecmd } }, { MODKEY, XK_F3, spawn, {.v = telegramcmd } }, @@ -140,10 +143,14 @@ static Key keys[] = { { MODKEY, XK_F4, spawn, {.v = gimpcmd } }, { ControlMask, XK_F4, spawn, {.v = openshotcmd } }, { MODKEY, XK_x, spawn, {.v = menucmd } }, // Atajo menú Apagar - { MODKEY, XK_v, spawn, {.v = gvideo } }, // Grabar pantalla + { MODKEY, XK_v, spawn, {.v = screencastcmd } }, // Grabar pantalla + { ControlMask, XK_m, spawn, SHCMD("usb.sh -m") }, // Montar usb + { ControlMask, XK_u, spawn, SHCMD("usb.sh -u") }, // Desmontar usb + { MODKEY|ShiftMask, XK_u, spawn, SHCMD("usb.sh -U") }, // Desmontar último usb { MODKEY, XK_F10, spawn, {.v = mocpcmd } }, { ControlMask, XK_F10, spawn, {.v = mocp_play } }, { MODKEY, XK_F11, spawn, {.v = dropboxcmd } }, + { ControlMask, XK_F12, spawn, {.v = toggle_wificmd } }, /* Modos de captura de pantalla */ { 0, XK_Print, spawn, SHCMD("ss_void.sh -P") }, // Captura de pantalla en el portapapeles