summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-11-19 00:42:14 +0100
committeryuzu-eva <stevenhu@web.de>2022-11-19 00:42:14 +0100
commit38ff8aa1f2c752c9471a7fc64c6c5681f0e9179d (patch)
tree6ebe83f46beb610f7d8f08a5df6ff30867bc88c8
parente8e4ed434cca4d8f33a82ee6116f277eca5162ae (diff)
fixed lyrics command
-rwxr-xr-xconfig.h11
-rwxr-xr-xdwmbin75272 -> 75272 bytes
-rw-r--r--dwm.obin64568 -> 64600 bytes
3 files changed, 7 insertions, 4 deletions
diff --git a/config.h b/config.h
index efc3218..eb69c73 100755
--- a/config.h
+++ b/config.h
@@ -1,5 +1,8 @@
/* See LICENSE file for copyright and license details. */
+#define TERMINAL "st"
+#define TERMCLASS "st-256color"
+
/* appearance */
static const unsigned int borderpx = 2; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
@@ -37,7 +40,7 @@ static const Rule rules[] = {
{ "Gimp", NULL, NULL, 0, 1, 0, 0, -1 },
{ "Firefox", NULL, NULL, 1 << 8, 0, 0, -1, -1 },
{ "kitty", NULL, NULL, 0, 0, 1, 0, -1 },
- { "st-256color", NULL, NULL, 0, 0, 1, 0, -1 },
+ { TERMCLASS, NULL, NULL, 0, 0, 1, 0, -1 },
{ NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, /* xev */
};
@@ -71,7 +74,7 @@ static const Layout layouts[] = {
/* commands */
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 *termcmd[] = { "kitty", NULL };
+static const char *termcmd[] = { TERMINAL, NULL };
static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "+5%", NULL };
static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "@DEFAULT_SINK@", "-5%", NULL };
static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "@DEFAULT_SINK@", "toggle", NULL };
@@ -108,8 +111,8 @@ static Key keys[] = {
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- { MODKEY|ControlMask, XK_b, spawn, SHCMD("xdotool type $( grep -v '^#' ~/Documents/random/bookmarks.txt | dmenu -i -l 50 | cut -d' ' -f1)")},
- { MODKEY|ControlMask, XK_l, spawn, SHCMD("cat $( /usr/bin/ls -d ~/Documents/lyrics/* | dmenu -i -l 50)")},
+ { MODKEY|ControlMask, XK_b, spawn, SHCMD("xdotool type $( grep -v '^#' ~/Documents/random/bookmarks.txt | dmenu -i -l 50 | cut -d' ' -f1 )") },
+ { MODKEY|ControlMask, XK_l, spawn, SHCMD("xdotool type \"cat $( /usr/bin/ls -d ~/Documents/lyrics/* | dmenu -i -l 50)\"") },
{ MODKEY, XK_b, spawn, SHCMD("firefox") },
{ MODKEY, XK_Print, spawn, SHCMD("sleep 0.3s; scrot -s -e 'mv $f ~/Pictures/'") },
{ 0, XK_Print, spawn, SHCMD("scrot -u -e 'mv $f ~/Pictures/'") },
diff --git a/dwm b/dwm
index 46d2e85..07b5b54 100755
--- a/dwm
+++ b/dwm
Binary files differ
diff --git a/dwm.o b/dwm.o
index b380bd4..c117218 100644
--- a/dwm.o
+++ b/dwm.o
Binary files differ