dwm config

This commit is contained in:
wt
2024-07-04 21:12:36 +07:00
parent bf01cd4759
commit 4b1833f54c
4 changed files with 35 additions and 1 deletions
+14
View File
@@ -84,6 +84,11 @@ static const char *brightnessupcmd[] = { "brightnessctl", "s", "10%+", NULL };
static const char *brightnessdowncmd[] = { "brightnessctl", "s", "10%-", NULL };
//-------------------------------------------------------------------
//------------------------------ keyboard brightness ----------------
static const char *keyboardbrightnessupcmd[] = { "brightnessctl", "--device", "smc::kbd_backlight", "s", "10%+", NULL };
static const char *keyboardbrightnessdowncmd[] = { "brightnessctl", "--device", "smc::kbd_backlight", "s", "10%-", NULL };
//-------------------------------------------------------------------
static const Key keys[] = {
/* modifier key function argument */
@@ -96,6 +101,8 @@ static const Key keys[] = {
{ MODKEY, 0x3d, spawn, {.v = pamixericmd } },
// minus
{ MODKEY, 0x2d, spawn, {.v = pamixerdcmd } },
// XF86AudioMute
{ 0, 0x1008ff12, spawn, {.v = pamixermutecmd } },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = pamixermutecmd } },
//----------------------------------------------------------------------------------
@@ -106,6 +113,13 @@ static const Key keys[] = {
{ 0, 0x1008ff03, spawn, {.v = brightnessdowncmd } },
//----------------------------------------------------------------------------------
//-------------------------------- keyboard brightness -----------------------------
// XF86KbdBrightnessUp
{ 0, 0x1008ff05, spawn, {.v = keyboardbrightnessupcmd } },
// XF86KbdBrightnessDown
{ 0, 0x1008ff06, spawn, {.v = keyboardbrightnessdowncmd } },
//----------------------------------------------------------------------------------
//--------------------------------- applications -----------------------------------
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockercmd } },
{ MODKEY, XK_p, spawn, {.v = roficmd } },
+21 -1
View File
@@ -61,8 +61,13 @@ static const Layout layouts[] = {
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
//------------------------------------------------- dmenu -------------------------------------------------
static char dmenumon[2] = "0"; // component of dmenucmd, manipulated in spawn()
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
//---------------------------------------------------------------------------------------------------------
//-------------------------- applications ---------------------------------------------------------
static const char *termcmd[] = { "kitty", NULL };
static const char *roficmd[] = { "/home/tola/dotfiles/rofi/launcher/launcher.sh", NULL };
static const char *powermenucmd[] = { "/home/tola/dotfiles/rofi/powermenu/powermenu.sh", NULL };
@@ -72,6 +77,7 @@ static const char *filemanagercmd[] = { "thunar", NULL };
static const char *telegramcmd[] = { "telegram-desktop", NULL };
static const char *googlecmd[] = { "google-chrome-stable", NULL };
static const char *lockercmd[] = { "i3lock", "-c", "000000", NULL };
//-------------------------------------------------------------------------------------------------
//---------------------------- pamixer ------------------------------
static const char *pamixericmd[] = { "pamixer", "-i", "10", NULL };
@@ -84,6 +90,11 @@ static const char *brightnessupcmd[] = { "brightnessctl", "s", "10%+", NULL };
static const char *brightnessdowncmd[] = { "brightnessctl", "s", "10%-", NULL };
//-------------------------------------------------------------------
//------------------------------ keyboard brightness ----------------
static const char *keyboardbrightnessupcmd[] = { "brightnessctl", "--device", "smc::kbd_backlight", "s", "10%+", NULL };
static const char *keyboardbrightnessdowncmd[] = { "brightnessctl", "--device", "smc::kbd_backlight", "s", "10%-", NULL };
//-------------------------------------------------------------------
static const Key keys[] = {
/* modifier key function argument */
@@ -96,6 +107,8 @@ static const Key keys[] = {
{ MODKEY, 0x3d, spawn, {.v = pamixericmd } },
// minus
{ MODKEY, 0x2d, spawn, {.v = pamixerdcmd } },
// XF86AudioMute
{ 0, 0x1008ff12, spawn, {.v = pamixermutecmd } },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = pamixermutecmd } },
//----------------------------------------------------------------------------------
@@ -106,6 +119,13 @@ static const Key keys[] = {
{ 0, 0x1008ff03, spawn, {.v = brightnessdowncmd } },
//----------------------------------------------------------------------------------
//-------------------------------- keyboard brightness -----------------------------
// XF86KbdBrightnessUp
{ 0, 0x1008ff05, spawn, {.v = keyboardbrightnessupcmd } },
// XF86KbdBrightnessDown
{ 0, 0x1008ff06, spawn, {.v = keyboardbrightnessdowncmd } },
//----------------------------------------------------------------------------------
//--------------------------------- applications -----------------------------------
{ MODKEY|ShiftMask, XK_l, spawn, {.v = lockercmd } },
{ MODKEY, XK_p, spawn, {.v = roficmd } },
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.