Compare commits

...

5 Commits

  1. 34
      config.h
  2. 3
      config.mk
  3. BIN
      drw.o
  4. BIN
      dwm
  5. BIN
      dwm.o
  6. BIN
      util.o

34
config.h

@ -186,8 +186,6 @@ static const Rule rules[] = {
RULE(.wintype = WTYPE "UTILITY", .isfloating = 1) RULE(.wintype = WTYPE "UTILITY", .isfloating = 1)
RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1) RULE(.wintype = WTYPE "TOOLBAR", .isfloating = 1)
RULE(.wintype = WTYPE "SPLASH", .isfloating = 1) RULE(.wintype = WTYPE "SPLASH", .isfloating = 1)
RULE(.instance= "main", .class = "Psi+", .tags = 1 << 3)
RULE(.instance= "tabs", .class = "Psi+", .tags = 1 << 3)
RULE(.class = "Claws-mail", .tags = 1 << 3) RULE(.class = "Claws-mail", .tags = 1 << 3)
RULE(.class = "Zoiper", .tags = 1 << 3) RULE(.class = "Zoiper", .tags = 1 << 3)
RULE(.class = "linphone", .tags = 1 << 3) RULE(.class = "linphone", .tags = 1 << 3)
@ -197,6 +195,7 @@ static const Rule rules[] = {
RULE(.class = "pinentry-qt", .isfloating = 1) RULE(.class = "pinentry-qt", .isfloating = 1)
RULE(.class = "pinentry-qt5", .isfloating = 1) RULE(.class = "pinentry-qt5", .isfloating = 1)
RULE(.class = "Nm-connection-editor", .isfloating = 1) RULE(.class = "Nm-connection-editor", .isfloating = 1)
RULE(.class = "blueman-manager", .isfloating = 1)
RULE(.class = "pavucontrol-qt", .isfloating = 0) RULE(.class = "pavucontrol-qt", .isfloating = 0)
RULE(.class = "Firefox", .wintype = WTYPE "NORMAL", .tags = 1 << 2) RULE(.class = "Firefox", .wintype = WTYPE "NORMAL", .tags = 1 << 2)
@ -266,7 +265,7 @@ static const Layout layouts[] = {
/* helper for spawning shell commands in the pre dwm-5.0 fashion */ /* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } #define SHCMD(cmd) { .v = (const char*[]){ "/usr/bin/env", "sh", "-c", cmd, NULL } }
/* commands */ /* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
@ -280,16 +279,18 @@ static const char *dmenucmd[] = {
"-sf", selfgcolor, "-sf", selfgcolor,
NULL NULL
}; };
static const char *termcmd[] = { "st", NULL }; //static const char *termcmd[] = { "st", NULL };
static const char *tmuxcmd[] = { "st", "-c", "st-tmux", "-e", "/home/wiebel/sync/bin/tmux-spawn.sh", NULL }; //static const char *tmuxcmd[] = { "st", "-c", "st-tmux", "-e", "/home/wiebel/sync/bin/tmux-spawn.sh", NULL };
static const char *termcmd[] = { "kitty", NULL };
static const char *tmuxcmd[] = { "kitty", "-e", "/home/wiebel/sync/bin/tmux-spawn.sh", NULL };
// static const char scratchpadname[] = "tilda"; // static const char scratchpadname[] = "tilda";
/* static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; */ /* static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; */
// static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-c", "st-tilda", "-g", "180x18", "-e", "tmux", "new-session", "-A", "-s", "tilda", NULL }; // static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-c", "st-tilda", "-g", "180x18", "-e", "tmux", "new-session", "-A", "-s", "tilda", NULL };
static const char *volup[] = { "/opt/pavolume/pavolume", "volup", "10", NULL }; static const char *volup[] = { "pavolume", "volup", "10", NULL };
static const char *voldn[] = { "/opt/pavolume/pavolume", "voldown", "10", NULL }; static const char *voldn[] = { "pavolume", "voldown", "10", NULL };
static const char *volmute[] = { "/opt/pavolume/pavolume", "mutetoggle", NULL }; static const char *volmute[] = { "pavolume", "mutetoggle", NULL };
static const char *playpause[] = { "/usr/bin/playerctl", "play-pause", NULL }; static const char *playpause[] = { "playerctl", "play-pause", NULL };
#include <X11/XF86keysym.h> #include <X11/XF86keysym.h>
/* This defines the name of the executable that handles the bar (used for signalling purposes) */ /* This defines the name of the executable that handles the bar (used for signalling purposes) */
@ -308,13 +309,14 @@ static Key keys[] = {
{ MODKEY, XK_n, spawn, SHCMD("networkmanager_dmenu") }, { MODKEY, XK_n, spawn, SHCMD("networkmanager_dmenu") },
// { MODKEY, XK_grave, spawn, SHCMD("/home/wiebel/sync/bin/st-tilda.sh") }, // { MODKEY, XK_grave, spawn, SHCMD("/home/wiebel/sync/bin/st-tilda.sh") },
{ ALTKEY|ControlMask, XK_l, spawn, SHCMD("/usr/local/bin/lock.me") }, { ALTKEY|ControlMask, XK_l, spawn, SHCMD("/usr/local/bin/lock.me") },
/* Media Keys */ { 0, XK_Print, spawn, SHCMD("/usr/bin/spectacle") },
{ 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 5") }, /* Media Keys */
{ 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 5") }, { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("brightnessctl s +5%") },
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } }, { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("brightnwssctl s 5%-") },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = voldn } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = volup } },
{ 0, XF86XK_AudioMute, spawn, {.v = volmute } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = voldn } },
{ 0, XF86XK_AudioPlay, spawn, {.v = playpause } }, { 0, XF86XK_AudioMute, spawn, {.v = volmute } },
{ 0, XF86XK_AudioPlay, spawn, {.v = playpause } },
{ MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, inplacerotate, {.i = +1} }, { MODKEY|ShiftMask, XK_j, inplacerotate, {.i = +1} },

3
config.mk

@ -67,4 +67,5 @@ LDFLAGS = -flto ${LIBS}
#LDFLAGS = ${LIBS} #LDFLAGS = ${LIBS}
# compiler and linker # compiler and linker
CC = cc #CC = cc
CC = clang

BIN
drw.o

Binary file not shown.

BIN
dwm

Binary file not shown.

BIN
dwm.o

Binary file not shown.

BIN
util.o

Binary file not shown.
Loading…
Cancel
Save