Selaa lähdekoodia

~/.config/dwm: Add shortcut to put firefox into fullscreen

Useful for reading articles without any distractions, and for watching
video.

This shouldn't be necessary, but seems to be, because of using dwm *and*
Firefox with several addons.

The `windowfocus` command also doesn't seem to work when Firefox already
has focus, this might be another issue with dwm.  Instead, we pass
`--window` to the `key` command directly.
Lucas Stadler 9 vuotta sitten
vanhempi
commit
745844cc6d
1 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  1. 5 0
      .config/dwm/config.h

+ 5 - 0
.config/dwm/config.h

@ -66,6 +66,8 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn()
66 66
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
67 67
static const char *termcmd[]  = { "/usr/bin/sakura", NULL };
68 68
69
static const char *fullscreenbrowsercmd[] = { "toggle-fullscreen.sh", NULL };
70
69 71
static const char *editorcmd[] = { "emacsclient", "--alternate-editor=", "--create-frame", NULL };
70 72
static const char *writecmd[] = { "emacsclient", "--alternate-editor=", "--create-frame", "--eval", "(find-recent-notes)", NULL };
71 73
@ -113,6 +115,9 @@ static Key keys[] = {
113 115
	TAGKEYS(                        XK_9,                      8)
114 116
	{ MODKEY|ShiftMask,             XK_q,      quit,           {0} },
115 117
118
	{ MODKEY|ShiftMask,             XK_b,      togglebar,      {0} },
119
	{ MODKEY|ShiftMask,             XK_b,      spawn,          { .v = fullscreenbrowsercmd } },
120
116 121
	{ MODKEY,                       XK_e,      spawn,          { .v = editorcmd } },
117 122
	{ MODKEY,                       XK_w,      spawn,          { .v = writecmd } },
118 123