Compare commits

...

10 Commits

@ -5,10 +5,10 @@ static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "Iosevka:size=12" };
static const char *fonts[] = { "Terminus:size=12" };
static const char col_green[] = "#00FF00";
static const char col_lightgray[] = "#eeeeee";
static const char col_black[] = "#000000";
static const char col_black[] = "#000000";
static const char *colors[][3] = {
/* fg bg border */
[SchemeNorm] = { col_green, col_black, col_black },
@ -23,11 +23,12 @@ static const Rule rules[] = {
* WM_CLASS(STRING) = instance, class
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Nextcloud", NULL, NULL, 1 << 8, 1, -1 },
{ "st", "floating", NULL, NULL, 1, -1 },
/* class instance title tags mask isfloating monitor */
{ "Nextcloud", NULL, NULL, 1 << 8, 1, -1 },
{ "st", "floating", NULL, 0, 1, -1 },
{ "Qemu-system-i386", NULL, NULL, 1 << 1, 0, -1 },
{ "alacritty_floating", NULL, NULL, 0, 1, -1 },
{ "odin-term", NULL, NULL, 1 << 1, 1, -1 },
};
/* layout(s) */
@ -56,27 +57,26 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", NULL };
static const char *termcmd[] = { "st", NULL };
static const char *ftermcmd[] = { "st", "-n", "floating", NULL };
static const char *webcmd[] = { "firefox", NULL };
static const char *xcmd[] = { "pkill", "x", NULL };
static const char *mutecmd[] = { "pulsemixer", "--toggle-mute", NULL };
static const char *volcmd[] = { "st", "-e", "pulsemixer", NULL };
static const char *lockcmd[] = { "slock", NULL };
static const char *filecmd[] = { "st", "-e", "nnn", "-Rd", NULL };
static const char *ffilecmd[] = { "st", "-n", "floating", "-e", "nnn" "-Rd", NULL };
static const char *musiccmd[] = { "st", "-e", "ncmpcpp", NULL };
static const char *ssacmd[] = { "ssall", NULL };
static const char *ssscmd[] = { "ssselection", NULL };
static const char *passcmd[] = { "keepassxc", NULL };
static const char *mailcmd[] = { "st", "-e", "neomutt", NULL };
static const char *tmuxcmd[] = { "st", "-e", "tmux", "a", NULL };
static const char *htopcmd[] = { "st", "-e", "top", NULL };
static const char *nmcmd[] = { "st", "-e", "nmtui", NULL };
static const char *newscmd[] = { "st", "-e", "newsboat", NULL };
static const char *ytpcmd[] = { "st", "-n", "floating", "-e", "ytp", NULL };
static const char *clipmenucmd[] = { "clipmenu", NULL };
static const char *termcmd[] = { "ghostty", NULL };
static const char *ftermcmd[] = { "alacritty", "--class", "alacritty_floating", NULL };
static const char *webcmd[] = { "firefox", NULL };
static const char *privwebcmd[] = { "firefox", "--private-window", NULL };
static const char *webcmd2[] = { "chromium", NULL };
static const char *privwebcmd2[] = { "chromium", "--incognito", NULL };
static const char *xcmd[] = { "pkill", "x", NULL };
static const char *mutecmd[] = { "pulsemixer", "--toggle-mute", NULL };
static const char *volcmd[] = { "ghostty", "--command", "pulsemixer", NULL };
static const char *lockcmd[] = { "slock", NULL };
static const char *filecmd[] = { "ghostty", "--command", "nnn", "-Rd", NULL };
static const char *ffilecmd[] = { "alacritty", "--class", "alacritty_floating", "--command", "nnn", "-Rd", NULL };
static const char *musiccmd[] = { "alacritty", "--command", "musikcube", NULL };
static const char *ssacmd[] = { "ssall", NULL };
static const char *ssscmd[] = { "ssselection", NULL };
static const char *passcmd[] = { "keepassxc", NULL };
static const char *vncviewercmd[] = { "vncviewer", NULL };
static const char *clipmenucmd[] = { "clipmenu", NULL };
static Key keys[] = {
/* modifier key function argument */
@ -113,24 +113,31 @@ static Key keys[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY, XK_x, quit, {0} },
{ MODKEY, XK_x, quit, {0} },
{ MODKEY|ShiftMask, XK_x, spawn, {.v = xcmd } },
{ MODKEY, XK_z, spawn, {.v = lockcmd } },
{ MODKEY, XK_z, spawn, {.v = lockcmd } },
{ MODKEY, XK_q, spawn, {.v = webcmd } },
{ MODKEY, XK_v, spawn, {.v = volcmd } },
{ MODKEY, XK_r, spawn, {.v = filecmd } },
{ MODKEY|ShiftMask, XK_p, spawn, {.v = privwebcmd } },
{ MODKEY, XK_w, spawn, {.v = webcmd2 } },
{ MODKEY|ShiftMask, XK_w, spawn, {.v = privwebcmd2 } },
{ MODKEY, XK_r, spawn, {.v = filecmd } },
{ MODKEY|ShiftMask, XK_r, spawn, {.v = ffilecmd } },
{ MODKEY, XK_c, spawn, {.v = mutecmd } },
{ MODKEY, XK_v, spawn, {.v = volcmd } },
{ MODKEY|ShiftMask, XK_v, spawn, {.v = musiccmd } },
{ MODKEY, XK_s, spawn, {.v = ssacmd } },
{ MODKEY, XK_s, spawn, {.v = ssacmd } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = ssscmd } },
{ MODKEY, XK_y, spawn, {.v = ytpcmd } },
{ MODKEY, XK_u, spawn, {.v = htopcmd } },
{ MODKEY|ShiftMask, XK_u, spawn, {.v = tmuxcmd } },
{ MODKEY, XK_p, spawn, {.v = passcmd } },
{ MODKEY|ShiftMask, XK_m, spawn, {.v = mailcmd } },
{ MODKEY, XK_n, spawn, {.v = nmcmd } },
{ MODKEY|ShiftMask, XK_n, spawn, {.v = newscmd } },
{ MODKEY, XK_c, spawn, {.v = mutecmd } },
{ MODKEY, XK_y, spawn, {.v = vncviewercmd } },
{ MODKEY, XK_p, spawn, {.v = passcmd } },
{ MODKEY|ShiftMask, XK_d, spawn, {.v = clipmenucmd } },
};

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

@ -1,38 +0,0 @@
# dwm version
VERSION = 6.2
# Customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/local/include
X11LIB = /usr/local/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
# freetype
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/local/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
# includes and libs
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
CC = cc

@ -1,38 +0,0 @@
# dwm version
VERSION = 6.2
# Customize below to fit your system
# paths
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
XINERAMAFLAGS = -DXINERAMA
# freetype
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
# includes and libs
INCS = -I${X11INC} -I${FREETYPEINC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS}
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
LDFLAGS = ${LIBS}
# Solaris
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
#LDFLAGS = ${LIBS}
# compiler and linker
CC = tcc
Loading…
Cancel
Save