Compare commits
5 Commits
three-colu
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
061578bd73 | ||
|
|
c3f392644c | ||
|
|
56b069739b | ||
|
|
699c7bd99c | ||
|
|
f7ee3c4d2a |
48
config.h
48
config.h
@@ -5,6 +5,8 @@ static const unsigned int gappx = 6; /* gap pixel between windows */
|
|||||||
|
|
||||||
// three column patch include
|
// three column patch include
|
||||||
#include "tcl.c"
|
#include "tcl.c"
|
||||||
|
// to use x keysymbols (eg xev button produces XF86AudioraiseVolume = XF86XK_AudioRaisevolume)
|
||||||
|
#include <X11/XF86keysym.h>
|
||||||
|
|
||||||
/* appearance */
|
/* appearance */
|
||||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||||
@@ -15,8 +17,8 @@ static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display
|
|||||||
static const int showsystray = 1; /* 0 means no systray */
|
static const int showsystray = 1; /* 0 means no systray */
|
||||||
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 char *fonts[] = { "monospace:size=10" };
|
static const char *fonts[] = { "Terminus:size=10" };
|
||||||
static const char dmenufont[] = "monospace:size=10";
|
static const char dmenufont[] = "Terminus: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";
|
||||||
@@ -27,7 +29,9 @@ static const char col_norm_fg[] = "#bbbbbb";
|
|||||||
static const char col_norm_bg[] = "#222222";
|
static const char col_norm_bg[] = "#222222";
|
||||||
static const char col_sel_fg[] = "#eeeeee";
|
static const char col_sel_fg[] = "#eeeeee";
|
||||||
static const char col_sel_bg[] = "#222222";
|
static const char col_sel_bg[] = "#222222";
|
||||||
static const char col_norm_bdr[] = "#555555";
|
//static const char col_norm_bdr[] = "#555555";
|
||||||
|
// this is to remove the border from non-selected windows
|
||||||
|
static const char col_norm_bdr[] = "#222222";
|
||||||
static const char col_sel_bdr[] = "#444444";
|
static const char col_sel_bdr[] = "#444444";
|
||||||
/* end my colors */
|
/* end my colors */
|
||||||
static const char *colors[][3] = {
|
static const char *colors[][3] = {
|
||||||
@@ -49,8 +53,18 @@ 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 },
|
||||||
{ "firefox", NULL, NULL, 2, 0, -1 },
|
// { "firefox", NULL, NULL, 2, 0, -1 },
|
||||||
{ "URxvt", "cal", NULL, 0, 1, -1 },
|
// make calculator floating
|
||||||
|
{ "SpeedCrunch", NULL, NULL, 0, 1, -1 },
|
||||||
|
{ "URxvt", NULL, "urxvt-f", 0, 1, -1 },
|
||||||
|
{ "mpv", NULL, NULL, 0, 1, -1 },
|
||||||
|
{ "vlc", NULL, NULL, 0, 1, -1 },
|
||||||
|
// didnt work
|
||||||
|
{ "org.gnome.Nautilus", NULL, NULL, 0, 1, -1 },
|
||||||
|
// $ xprop WM_CLASS #working below!
|
||||||
|
{ "Org.gnome.Nautilus", NULL, NULL, 0, 1, -1 },
|
||||||
|
{ "anki", NULL, NULL, 0, 1, -1 },
|
||||||
|
// { "Firefox", NULL, NULL, 1 << 8, 0, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
@@ -81,12 +95,14 @@ static const Layout layouts[] = {
|
|||||||
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_norm_bg, "-nf", col_norm_fg, "-sb", col_sel_bg, "-sf", col_sel_fg, NULL };
|
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_norm_bg, "-nf", col_norm_fg, "-sb", col_sel_bg, "-sf", col_sel_fg, NULL };
|
||||||
static const char *termcmd[] = { "urxvt256c", NULL };
|
static const char *termcmd[] = { "urxvt256c", NULL };
|
||||||
|
static const char *floattermcmd[] = { "urxvt256c", "-name", "urxvt-f", NULL };
|
||||||
static const char *lockcmd[] = { "slock", NULL };
|
static const char *lockcmd[] = { "slock", NULL };
|
||||||
static const char *prtscrcmd[] = { "flameshot", "gui", NULL};
|
static const char *prtscrcmd[] = { "flameshot", "gui", NULL};
|
||||||
static const char *vol_up[] = { "volume_up.sh", NULL};
|
static const char *vol_up[] = { "volume_up.sh", NULL};
|
||||||
static const char *vol_down[] = { "volume_down.sh", NULL};
|
static const char *vol_down[] = { "volume_down.sh", NULL};
|
||||||
static const char *mpc_play[] = { "mpc_play", NULL};
|
static const char *playerctl_play_pause[] = { "playerctl_play_pause", NULL};
|
||||||
static const char *mpc_pause[] = { "mpc_pause", NULL};
|
static const char *playerctl_previous[] = { "playerctl_previous", NULL};
|
||||||
|
static const char *playerctl_next[] = { "playerctl_next", NULL};
|
||||||
static const char *calccmd[] = { "speedcrunch", NULL};
|
static const char *calccmd[] = { "speedcrunch", NULL};
|
||||||
static const char *jmenu[] = {"jmenu", NULL};
|
static const char *jmenu[] = {"jmenu", NULL};
|
||||||
|
|
||||||
@@ -94,6 +110,7 @@ static Key keys[] = {
|
|||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||||
|
{ MODKEY|ControlMask, XK_Return, spawn, {.v = floattermcmd } },
|
||||||
{ 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 } },
|
||||||
@@ -132,12 +149,23 @@ static Key keys[] = {
|
|||||||
TAGKEYS( XK_8, 7)
|
TAGKEYS( XK_8, 7)
|
||||||
TAGKEYS( XK_9, 8)
|
TAGKEYS( XK_9, 8)
|
||||||
//{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
//{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||||
{ MODKEY|ControlMask, XK_q, quit, {0} },
|
// modified to alternative kill window
|
||||||
|
{ MODKEY|ShiftMask, XK_q, killclient, {0} },
|
||||||
|
{ MODKEY|ControlMask, XK_q, quit, {0} },
|
||||||
{ 0, XK_Print, spawn, {.v = prtscrcmd } },
|
{ 0, XK_Print, spawn, {.v = prtscrcmd } },
|
||||||
{ MODKEY, XK_F9, spawn, {.v = mpc_pause } },
|
{ MODKEY, XK_F8, spawn, {.v = playerctl_play_pause } },
|
||||||
{ MODKEY, XK_F10, spawn, {.v = mpc_play } },
|
{ MODKEY, XK_F9, spawn, {.v = playerctl_previous } },
|
||||||
|
{ MODKEY, XK_F10, spawn, {.v = playerctl_next } },
|
||||||
{ MODKEY, XK_F11, spawn, {.v = vol_down } },
|
{ MODKEY, XK_F11, spawn, {.v = vol_down } },
|
||||||
{ MODKEY, XK_F12, spawn, {.v = vol_up } },
|
{ MODKEY, XK_F12, spawn, {.v = vol_up } },
|
||||||
|
// trying to get volume knob working - trying symbols from XF86keysym.h and the keysym printed from xev
|
||||||
|
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = vol_up } },
|
||||||
|
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = vol_down } },
|
||||||
|
{ 0, XF86XK_AudioMute, spawn, {.v = playerctl_play_pause } },
|
||||||
|
//{ MODKEY, 0x1008ff13, spawn, {.v = vol_up} },
|
||||||
|
//{ 0, 0x1008ff12, spawn, {.v = playerctl_play_pause } },
|
||||||
|
//{ MODKEY, 0x1008ff11, spawn, {.v = vol_down } },
|
||||||
|
// end volume knob
|
||||||
{ MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } },
|
{ MODKEY|ControlMask, XK_l, spawn, {.v = lockcmd } },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user