Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated

  • Loading branch information...
commit 93171e0f334b6e587484619591b0440115b508fe 1 parent 931a2b9
ok100 authored
Showing with 43 additions and 37 deletions.
  1. +5 −0 .gitignore
  2. +38 −37 config.h
View
5 .gitignore
@@ -0,0 +1,5 @@
+*.tar.*
+recompile.sh
+pkg
+src
+*.swp
View
75 config.h
@@ -10,27 +10,27 @@ static const char font[] = "-*-tamsyn-medium-*-*-*-14-*-*-*-*-*-*-*";
#define NUMCOLORS 20
static const char colors[NUMCOLORS][ColLast][20] = {
/* border fg bg */
- { "#242323", "#94928F", "#140C0B" }, /* 01 - normal */
+ { "#403F3E", "#94928F", "#140C0B" }, /* 01 - normal */
{ "#666362", "#CDCDCD", "#140C0B" }, /* 02 - selected */
{ "#91444D", "#91444D", "#140C0B" }, /* 03 - urgent */
- { "#0A1724", "#0A1724", "#140C0B" }, /* 04 - black */
- { "#701726", "#701726", "#140C0B" }, /* 05 - red */
- { "#286332", "#286332", "#140C0B" }, /* 06 - green */
- { "#706A2D", "#706A2D", "#140C0B" }, /* 07 - yellow */
- { "#00508A", "#00508A", "#140C0B" }, /* 08 - blue */
- { "#454E7D", "#454E7D", "#140C0B" }, /* 09 - magenta */
+ { "#403F3E", "#403F3E", "#140C0B" }, /* 04 - black */
+ { "#91444D", "#91444D", "#140C0B" }, /* 05 - red */
+ { "#6B853D", "#6B853D", "#140C0B" }, /* 06 - green */
+ { "#916949", "#916949", "#140C0B" }, /* 07 - yellow */
+ { "#557282", "#557282", "#140C0B" }, /* 08 - blue */
+ { "#78516D", "#78516D", "#140C0B" }, /* 09 - magenta */
{ "#000000", "#000000", "#140C0B" }, /* unusable */
- { "#007070", "#007070", "#140C0B" }, /* 0B - cyan */
- { "#5E687D", "#5E687D", "#140C0B" }, /* 0C - light gray */
- { "#303B4A", "#303B4A", "#140C0B" }, /* 0D - gray */
- { "#A33144", "#A33144", "#140C0B" }, /* 0E - light red */
- { "#449652", "#449652", "#140C0B" }, /* 0F - light green */
- { "#A38262", "#A38262", "#140C0B" }, /* 10 - light yellow */
- { "#357CB0", "#357CB0", "#140C0B" }, /* 11 - light blue */
- { "#963576", "#963576", "#140C0B" }, /* 12 - light magenta */
- { "#2C9696", "#2C9696", "#140C0B" }, /* 13 - light cyan */
- { "#878F96", "#878F96", "#140C0B" }, /* 14 - white */
+ { "#58756C", "#58756C", "#140C0B" }, /* 0B - cyan */
+ { "#94928F", "#94928F", "#140C0B" }, /* 0C - light gray */
+ { "#666362", "#666362", "#140C0B" }, /* 0D - gray */
+ { "#C78186", "#C78186", "#140C0B" }, /* 0E - light red */
+ { "#ABBD80", "#ABBD80", "#140C0B" }, /* 0F - light green */
+ { "#CCA88B", "#CCA88B", "#140C0B" }, /* 10 - light yellow */
+ { "#8EABBD", "#8EABBD", "#140C0B" }, /* 11 - light blue */
+ { "#A8879F", "#A8879F", "#140C0B" }, /* 12 - light magenta */
+ { "#8CA8A2", "#8CA8A2", "#140C0B" }, /* 13 - light cyan */
+ { "#CDCDCD", "#CDCDCD", "#140C0B" }, /* 14 - white */
};
static const unsigned int borderpx = 1; /* border pixel of windows */
@@ -57,32 +57,34 @@ static const char *tags[] = { "base", "web", "term", "docs", "media", "down", "g
static const Rule rules[] = {
/* class instance title tags mask isfloating iscentred monitor */
+ { NULL, NULL, "swifer", 0, True, -1 },
+ { NULL, NULL, "music", 1 << 4, False, -1 },
{ NULL, NULL, "tmux", 1 << 2, False, -1 },
{ NULL, NULL, "wget", 1 << 5, False, -1 },
- { NULL, NULL, "wifi-menu", 0, True, -1 },
{ "Dwb", NULL, NULL, 1 << 1, False, -1 },
{ "Firefox", "Download", NULL, 1 << 5, False, -1 },
{ "Firefox", "Navigator", NULL, 1 << 1, False, -1 },
{ "Gimp", NULL, NULL, 1 << 6, False, -1 },
{ "Gpick", NULL, NULL, 0, True, -1 },
- { "Gsimplecal", NULL, NULL, 0, True, False, -1 },
+ { "Gtick", NULL, NULL, 1 << 4, True, -1 },
{ "GuitarPro", NULL, NULL, 1 << 4, False, -1 },
{ "Lazarus", NULL, NULL, 1 << 0, True, False, -1 },
+ { "libreoffice-calc", NULL, NULL, 1 << 3, False, -1 },
+ { "libreoffice-impress", NULL, NULL, 1 << 3, False, -1 },
+ { "libreoffice-writer", NULL, NULL, 1 << 3, False, -1 },
{ "Lingot", NULL, NULL, 1 << 4, True, -1 },
{ "Lxappearance", NULL, NULL, 0, True, -1 },
+ { "Minitube", NULL, NULL, 1 << 4, False, -1 },
+ { "mplayer2", NULL, NULL, 0, True, -1 },
{ "Qalculate", NULL, NULL, 0, True, -1 },
{ "Qalculate-gtk", NULL, NULL, 0, True, -1 },
{ "Qjackctl", NULL, NULL, 1 << 4, True, -1 },
{ "Qpass", NULL, NULL, 0, True, -1 },
- { "Skype", NULL, NULL, 0, True, -1 },
+ { "SkypeTab", NULL, NULL, 1 << 0, False, -1 },
{ "Stardict", NULL, NULL, 0, True, -1 },
- { "Transmission-gtk", NULL, NULL, 1 << 5, False, -1 },
+ { "Transmission-qt", NULL, NULL, 1 << 5, False, -1 },
+ { "Xdialog", NULL, NULL, 0, True, -1 },
{ "Xsane", NULL, NULL, 1 << 6, True, False, -1 },
- { "Zenity", NULL, NULL, 0, True, -1 },
- { "libreoffice-calc", NULL, NULL, 1 << 3, False, -1 },
- { "libreoffice-impress", NULL, NULL, 1 << 3, False, -1 },
- { "libreoffice-writer", NULL, NULL, 1 << 3, False, -1 },
- { "mplayer2", NULL, NULL, 0, True, -1 },
};
/* key definitions */
@@ -97,42 +99,41 @@ static const Rule rules[] = {
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
-static const char *address[] = { "urxvtc", "-title", "abook", "-e", "/home/ok/bin/abook-autoexport", NULL };
static const char *browser[] = { "dwb", NULL, "Dwb" };
-static const char *calendar[] = { "gsimplecal", NULL };
+static const char *calendar[] = { "dcal.sh", "-fn", font, "-bg", colors[0][ColBG], "-bd", colors[1][ColBorder],
+ "-cf", colors[0][ColFG], "-of", colors[3][ColFG], "-y", "16", NULL };
static const char *cliphist[] = { "lolictrl", NULL };
static const char *clipsync[] = { "lolictrl", "-spc", NULL };
static const char *dict[] = { "stardict", NULL };
static const char *dmenu[] = { "dmenu_run", "-i", "-fn", font, "-nb", colors[0][ColBG], "-nf", colors[0][ColFG],
"-sb", colors[1][ColBG], "-sf", colors[1][ColFG], NULL };
-static const char *logout[] = { "sudo", "killall", "X", NULL };
static const char *menu[] = { "mygtkmenu", "/home/ok/.menu", NULL };
+static const char *music[] = { "urxvtc", "-title", "music", "-e", "/home/ok/bin/music", NULL };
static const char *pass[] = { "qpass", NULL };
-static const char *reload[] = { "killall", "dwm", NULL };
+static const char *reload[] = { "systemctl", "--user", "restart", "dwm", NULL };
static const char *scratchpad[] = { "urxvtc", "-title", scratchpadname, "-geometry", "70x9+400+10", NULL };
static const char *screenoff[] = { "xset", "dpms", "force", "off", NULL };
static const char *shutdown[] = { "/home/ok/bin/dmenu-powerbutton", NULL };
static const char *term[] = { "urxvtc", NULL };
-static const char *tmux[] = { "urxvtc", "-title", "tmux", "-e", "tmux", "-2", "attach", NULL };
+static const char *tmux[] = { "urxvtc", "-title", "tmux", "-e", "tmux", "attach", NULL };
static const char *voldown[] = { "amixer", "-q", "set", "Master", "2dB-", NULL };
static const char *voltoggle[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
static const char *volup[] = { "amixer", "-q", "set", "Master", "2dB+", NULL };
-static const char *wifi[] = { "urxvtc", "-title", "wifi-menu", "-e", "sudo", "wifi-menu", NULL };
+static const char *wifi[] = { "urxvtc", "-title", "swifer", "-e", "sudo", "swifer", NULL };
-static const char *next[] = { "mpc", "next", NULL };
-static const char *play[] = { "mpc", "toggle", NULL };
-static const char *prev[] = { "mpc", "prev", NULL };
+static const char *next[] = { "mpc", "-h", "/home/ok/.mpd/socket", "next", NULL };
+static const char *play[] = { "mpc", "-h", "/home/ok/.mpd/socket", "toggle", NULL };
+static const char *prev[] = { "mpc", "-h", "/home/ok/.mpd/socket", "prev", NULL };
static Key keys[] = {
/* modifier key function argument */
- { Mod4Mask, XK_a, spawn, {.v = address } },
{ Mod4Mask, XK_b, runorraise, {.v = browser } },
{ Mod4Mask, XK_c, spawn, {.v = cliphist } },
{ Mod4Mask, XK_s, spawn, {.v = clipsync } },
{ Mod4Mask, XK_d, runorraise, {.v = dict } },
{ 0, XK_Menu, spawn, {.v = dmenu } },
- { MODKEY|ShiftMask, XK_e, spawn, {.v = logout } },
{ Mod4Mask, XK_space, spawn, {.v = menu } },
+ { Mod4Mask, XK_m, spawn, {.v = music } },
{ Mod4Mask, XK_h, spawn, {.v = pass } },
{ MODKEY|ShiftMask, XK_r, spawn, {.v = reload } },
{ 0, XK_F12, togglescratch, {.v = scratchpad } },
Please sign in to comment.
Something went wrong with that request. Please try again.