change default browser

This commit is contained in:
speedie 2022-12-07 21:37:35 +01:00
parent 164d69f65f
commit 101efbfb70
4 changed files with 8 additions and 3 deletions

View file

@ -27,6 +27,7 @@ If you want to use an alternative, change it in options.h and/or keybinds.h and
- Required for dmenu desktop entries..
## Software
This build of speedwm comes with binds for software.
You can add, change and remove keybinds by editing 'keybinds.h' and running 'make clean install'.
@ -34,7 +35,7 @@ You can add, change and remove keybinds by editing 'keybinds.h' and running 'mak
- speedwm-extras
- Important metapackage containing extra scripts that speedwm makes use of. (https://codeberg.org/speedie/speedwm-extras)
- st (Terminal)
- qutebrowser (Web browser)
- Chromium (Web browser)
- htop (Status monitor)
- newsboat (RSS reader)
- zathura (PDF reader)

View file

@ -16,7 +16,7 @@ PAGEDIR = "/home/anon/Projects/speediegq/projects"
FREETYPELIBS = -lfontconfig -lXft
FREETYPEINC = /usr/include/freetype2
EXCFLAGS = -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-array-bounds
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Ofast -march=native ${INCS} ${CPPFLAGS} #${EXCFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Ofast -march=native ${INCS} ${CPPFLAGS} ${EXCFLAGS}
LDFLAGS = ${LIBS} -g
# OpenBSD support

View file

@ -52,7 +52,7 @@ static Key keys[] = {
{ MODIFIER1|SHIFT, -1, XK_Return, spawn, cmd( TERMINAL ) },
{ MODIFIER1|SHIFT, -1, XK_s, spawn, cmd( "speedwm-screenshotutil -s" ) },
{ MODIFIER1|SHIFT, -1, XK_f, spawn, cmd( TERMINAL "lf || lf" ) },
{ MODIFIER1|SHIFT, -1, XK_w, spawn, cmd( "qutebrowser" ) },
{ MODIFIER1|SHIFT, -1, XK_w, spawn, cmd( "chromium || chromium-bin" ) },
{ MODIFIER1|SHIFT, -1, XK_o, spawn, cmd( "speedwm-dfmpeg" ) },
{ MODIFIER1|SHIFT, -1, XK_d, spawn, cmd( TERMINAL "iron" ) },
{ MODIFIER1|SHIFT, -1, XK_t, spawn, cmd( TERMINAL "nvim" ) },

View file

@ -19,12 +19,16 @@
/* For terminal applications */
#define TERMINAL_CLASS "st"
/* Web browser */
#define BROWSER_CLASS "chromium-bin-browser-chromium" /* This is the class for chromium-bin on Gentoo. Use xprop to find out your class. */
static const Rule rules[] = {
/* class instance title tags mask isfloating ispermanent isterminal noswallow monitor unmanaged ignoretransient float x,y,w,h scratch key */
{ TERMINAL_CLASS, NULL, NULL, 0, 0, 0, 1, 0, -1, 0, 0, -1, 0 },
{ "Zathura", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0 },
{ "qutebrowser", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0 },
{ "Navigator", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0 },
{ BROWSER_CLASS, NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0 },
{ "mpv", NULL, NULL, 0, 0, 0, 0, 0, -1, 0, 0, -1, 0 },
{ "tabbed", NULL, NULL, 0, 0, 0, 0, 1, -1, 0, 0, -1, 0 },
{ "trayer", NULL, NULL, 0, 1, 1, 0, 1, -1, 1, 0, -1, 0 },