From 1b196370b3a478581f0fed9301d6dafc9ec61903 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 30 Sep 2024 20:30:23 -0400 Subject: [PATCH] music qutebrowser profile --- src/dot_config/qbprof/mus/private_config/config.py | 12 ++++++++++++ suckless/dwm/Makefile | 5 +---- suckless/dwm/config.def.h | 3 +-- suckless/dwm/dwm.c | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 src/dot_config/qbprof/mus/private_config/config.py diff --git a/src/dot_config/qbprof/mus/private_config/config.py b/src/dot_config/qbprof/mus/private_config/config.py new file mode 100644 index 0000000..d527e54 --- /dev/null +++ b/src/dot_config/qbprof/mus/private_config/config.py @@ -0,0 +1,12 @@ +config.load_autoconfig(False) + +c.input.mode_override = "passthrough" +c.statusbar.show = "never" +c.tabs.show = "multiple" +c.bindings.default["passthrough"] = {} +c.bindings.commands["passthrough"] = { + "": "mode-leave" +} + +c.auto_save.session = True +c.url.start_pages = "https://mus.dogeystamp.com" diff --git a/suckless/dwm/Makefile b/suckless/dwm/Makefile index 1dc12f6..c1a87e3 100644 --- a/suckless/dwm/Makefile +++ b/suckless/dwm/Makefile @@ -11,10 +11,7 @@ all: dwm .c.o: ${CC} -c ${CFLAGS} $< -${OBJ}: config.h config.mk - -config.h: - cp config.def.h $@ +${OBJ}: config.def.h config.mk dwm: ${OBJ} ${CC} -o $@ ${OBJ} ${LDFLAGS} diff --git a/suckless/dwm/config.def.h b/suckless/dwm/config.def.h index fbeb545..52f5505 100644 --- a/suckless/dwm/config.def.h +++ b/suckless/dwm/config.def.h @@ -105,7 +105,6 @@ static const char termcmd[] = "alacritty msg create-window || alacritty"; static const char *freshtermcmd[] = { "alacritty", NULL }; static const char *browsercmd[] = { "qutebrowser", NULL }; static const char *pwdcmd[] = { "keepassxc", NULL }; -static const char *musiccmd[] = { "sonixd", NULL }; static const char *upvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "+5%", NULL }; static const char *downvol[] = { "/usr/bin/pactl", "set-sink-volume", "0", "-5%", NULL }; static const char *mutevol[] = { "/usr/bin/pactl", "set-sink-mute", "0", "toggle", NULL }; @@ -124,7 +123,7 @@ static const Key keys[] = { { MODKEY|ShiftMask, XK_b, spawn, {.v = browsercmd } }, { MODKEY|ShiftMask, XK_k, spawn, {.v = pwdcmd } }, { MODKEY|ShiftMask, XK_d, spawn, SHCMD("qbprof dsc") }, - { MODKEY|ShiftMask, XK_m, spawn, {.v = musiccmd } }, + { MODKEY|ShiftMask, XK_m, spawn, SHCMD("qbprof mus") }, { MODKEY|ControlMask, XK_l, spawn, {.v = (const char*[]){ "/usr/local/bin/slock", NULL} } }, { MODKEY|ShiftMask, XK_s, spawn, SHCMD("~/.local/bin/deskutils/suspend.sh") }, { 0, XK_Print, spawn, SHCMD("~/.local/bin/deskutils/screenshot.sh") }, diff --git a/suckless/dwm/dwm.c b/suckless/dwm/dwm.c index 2557bd0..62839e5 100644 --- a/suckless/dwm/dwm.c +++ b/suckless/dwm/dwm.c @@ -324,7 +324,7 @@ static int depth; static Colormap cmap; /* configuration, allows nested code to access above variables */ -#include "config.h" +#include "config.def.h" /* compile-time check if all tags fit into an unsigned int bit array. */ struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; };