Compare commits

..

No commits in common. "a54e5195a40988681f5744f93cfda4fc305914d8" and "af3485a5de59d78fe7b2cabfc99e7b4ed006d72a" have entirely different histories.

2 changed files with 13 additions and 45 deletions

View File

@ -6,8 +6,8 @@ static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */ static const int showbar = 1; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */ static const int topbar = 1; /* 0 means bottom bar */
static const int focusonwheel = 0; static const int focusonwheel = 0;
static const char *fonts[] = { "Liberation Sans:style=regular:size=11:antialias=true:autohint=true", "Font Awesome 5 Free Regular:size=11:antialias=true:autohint=true", "Font Awesome 5 Brands:size=11:antialias=true:autohint=true", "Font Awesome 5 Free Solid:size=11:antialias=true:autohint=true" }; static const char *fonts[] = { "monospace:size=10" };
static const char dmenufont[] = "Liberation Mono:size=11"; static const char dmenufont[] = "monospace:size=10";
static const char col_gray1[] = "#222222"; static const char col_gray1[] = "#222222";
static const char col_gray2[] = "#444444"; static const char col_gray2[] = "#444444";
static const char col_gray3[] = "#bbbbbb"; static const char col_gray3[] = "#bbbbbb";
@ -20,7 +20,7 @@ static const char *colors[][3] = {
}; };
/* tagging */ /* tagging */
static const char *tags[] = { "", "", "", "", "", "", "7", "8", "" }; static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = { static const Rule rules[] = {
/* xprop(1): /* xprop(1):
@ -29,21 +29,7 @@ static const Rule rules[] = {
*/ */
/* class instance title tags mask isfloating monitor */ /* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 }, { "Gimp", NULL, NULL, 0, 1, -1 },
{ "Pale moon", "Navigator", NULL, 2, 0, -1 }, { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
{ "Pale moon", "Browser", NULL, 2, 1, -1 },
{ "Pale moon", "Places", NULL, 2, 1, -1 },
{ "Pale moon", "Toplevel", NULL, 2, 1, -1 },
{ "Pale moon", "Devtools", NULL, 2, 1, -1 },
{ "Pale moon", "DTA", NULL, 2, 1, -1 },
{ "Pale moon", "Global", NULL, 2, 1, -1 },
{ "Chromium-browser-chromium", "chromium-browser-chromium", NULL, 1<<5, 0, -1 },
{ "TelegramDesktop", "telegram-desktop", "Media viewer", 0, 1, -1 },
{ "TelegramDesktop", "telegram-desktop", NULL, 4, 0, -1 },
{ "keepassxc", "KeePassXC", NULL, 0, 1, -1 },
{ "mpv", NULL, NULL, 1<<3, 0, -1 },
{ "floatalsamxr", NULL, NULL, 0, 1, -1 },
{ "QjackCtl", "qjackctl", NULL, 0, 1, -1 },
{ "Nextcloud", "nextcloud", NULL, 0, 1, -1 },
}; };
#include "layouts.c" #include "layouts.c"
@ -76,24 +62,14 @@ static const Layout layouts[] = {
/* commands */ /* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ 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 }; static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
static const char *termcmd[] = { "st", NULL }; static const char *termcmd[] = { "st", NULL };
/* alsa volume control */ /* alsa volume control */
static const char *alsacmd[] = { "st", "-c", "floatalsamxr", "-e", "alsamixer", NULL }; static const char *alsacmd[] = { "st", "-c", "floatalsamxr", "-e", "alsamixer", NULL };
static const char *upvol[] = { "amixer", "-c", "1", "set", "Master", "2+", NULL }; static const char *upvol[] = { "amixer", "set", "Master", "2+", NULL };
static const char *downvol[] = { "amixer", "-c", "1", "set", "Master", "2-", NULL }; static const char *downvol[] = { "amixer", "set", "Master", "2-", NULL };
/* alsa muting/unmuting */ /* alsa muting/unmuting */
static const char *mute[] = { "amixer", "-c", "1", "-q", "set", "Master", "toggle", NULL }; static const char *mute[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
/* screenshot tools */
static const char *scrallcmd[] = { "/home/kurk/sources/scripts/prtscr/prtscra.sh", NULL };
static const char *scrcurcmd[] = { "/home/kurk/sources/scripts/prtscr/prtscrcr.sh", NULL };
static const char *scrselcmd[] = { "/home/kurk/sources/scripts/prtscr/prtscrsel.sh", NULL };
/* browsers */
static const char *palemooncmd[] = { "palemoon", NULL };
static const char *chromiumcmd[] = { "chromium", NULL };
static const char *nextcloudcmd[] = { "nextcloud", NULL };
static const char *xfecmd[] = { "xfe", NULL };
static const char *keepassxccmd[] = { "keepassxc", NULL };
static const Key keys[] = { static const Key keys[] = {
/* modifier key function argument */ /* modifier key function argument */
@ -102,14 +78,6 @@ static const Key keys[] = {
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
{ 0, XF86XK_AudioMute, spawn, {.v = mute } }, { 0, XF86XK_AudioMute, spawn, {.v = mute } },
{ 0, XK_Print, spawn, {.v = scrallcmd } },
{ ShiftMask, XK_Print, spawn, {.v = scrcurcmd } },
{ ControlMask, XK_Print, spawn, {.v = scrselcmd } },
{ MODKEY, XK_s, spawn, {.v = palemooncmd } },
{ MODKEY, XK_n, spawn, {.v = nextcloudcmd } },
{ MODKEY, XK_c, spawn, {.v = chromiumcmd } },
{ MODKEY|ShiftMask, XK_x, spawn, {.v = xfecmd } },
{ MODKEY, XK_x, spawn, {.v = keepassxccmd } },
{ MODKEY, XK_b, togglebar, {0} }, { MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } },

View File

@ -4,11 +4,11 @@ VERSION = 6.4
# Customize below to fit your system # Customize below to fit your system
# paths # paths
PREFIX = /usr PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/include/X11 X11INC = /usr/X11R6/include
X11LIB = /usr/lib64 X11LIB = /usr/X11R6/lib
# Xinerama, comment if you don't want it # Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama XINERAMALIBS = -lXinerama