Compare commits
12 Commits
cd33b0908e
...
abab8fa1e2
Author | SHA1 | Date |
---|---|---|
celso | abab8fa1e2 | |
celso | 499661db47 | |
celso | eca23672df | |
celso | 973d1c6803 | |
celso | ee929565e6 | |
celso | eafa3fc79d | |
celso | ded60de8b0 | |
celso | 47aa32edf1 | |
celso | fdaf006e5b | |
celso | 45d01dd210 | |
celso | a40870ab6e | |
celso | a479123361 |
53
config.def.h
53
config.def.h
|
@ -6,8 +6,8 @@ static const unsigned int snap = 32; /* snap pixel */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
static const int focusonwheel = 0;
|
static const int focusonwheel = 0;
|
||||||
static const char *fonts[] = { "monospace:size=10" };
|
static const char *fonts[] = { "Liberation Sans:style=regular:size=14:antialias=true:autohint=true", "Font Awesome 6 Free Regular:size=14:antialias=true:autohint=true", "Font Awesome 6 Brands:size=14:antialias=true:autohint=true", "Font Awesome 6 Free Solid:size=14:antialias=true:autohint=true" };
|
||||||
static const char dmenufont[] = "monospace:size=10";
|
static const char dmenufont[] = "Liberation Mono:size=14";
|
||||||
static const char col_gray1[] = "#222222";
|
static const char col_gray1[] = "#222222";
|
||||||
static const char col_gray2[] = "#444444";
|
static const char col_gray2[] = "#444444";
|
||||||
static const char col_gray3[] = "#bbbbbb";
|
static const char col_gray3[] = "#bbbbbb";
|
||||||
|
@ -20,7 +20,7 @@ static const char *colors[][3] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* tagging */
|
/* tagging */
|
||||||
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
|
static const char *tags[] = { "", "", "", "", "", "", "7", "8", "" };
|
||||||
|
|
||||||
static const Rule rules[] = {
|
static const Rule rules[] = {
|
||||||
/* xprop(1):
|
/* xprop(1):
|
||||||
|
@ -29,7 +29,21 @@ static const Rule rules[] = {
|
||||||
*/
|
*/
|
||||||
/* class instance title tags mask isfloating monitor */
|
/* class instance title tags mask isfloating monitor */
|
||||||
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
||||||
{ "Firefox", NULL, NULL, 1 << 8, 0, -1 },
|
{ "Pale moon", "Navigator", NULL, 2, 0, -1 },
|
||||||
|
{ "Pale moon", "Browser", NULL, 2, 1, -1 },
|
||||||
|
{ "Pale moon", "Places", NULL, 2, 1, -1 },
|
||||||
|
{ "Pale moon", "Toplevel", NULL, 2, 1, -1 },
|
||||||
|
{ "Pale moon", "Devtools", NULL, 2, 1, -1 },
|
||||||
|
{ "Pale moon", "DTA", NULL, 2, 1, -1 },
|
||||||
|
{ "Pale moon", "Global", NULL, 2, 1, -1 },
|
||||||
|
{ "Chromium-browser-chromium", "chromium-browser-chromium", NULL, 1<<5, 0, -1 },
|
||||||
|
{ "TelegramDesktop", "telegram-desktop", "Media viewer", 0, 1, -1 },
|
||||||
|
{ "TelegramDesktop", "telegram-desktop", NULL, 4, 0, -1 },
|
||||||
|
{ "keepassxc", "KeePassXC", NULL, 0, 1, -1 },
|
||||||
|
{ "mpv", NULL, NULL, 1<<3, 0, -1 },
|
||||||
|
{ "floatalsamxr", NULL, NULL, 0, 1, -1 },
|
||||||
|
{ "QjackCtl", "qjackctl", NULL, 0, 1, -1 },
|
||||||
|
{ "Nextcloud", "nextcloud", NULL, 0, 1, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "layouts.c"
|
#include "layouts.c"
|
||||||
|
@ -62,14 +76,24 @@ static const Layout layouts[] = {
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
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 *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL };
|
||||||
static const char *termcmd[] = { "st", NULL };
|
static const char *termcmd[] = { "st", NULL };
|
||||||
/* alsa volume control */
|
/* alsa volume control */
|
||||||
static const char *alsacmd[] = { "st", "-c", "floatalsamxr", "-e", "alsamixer", NULL };
|
static const char *alsacmd[] = { "st", "-c", "floatalsamxr", "-e", "alsamixer", NULL };
|
||||||
static const char *upvol[] = { "amixer", "set", "Master", "2+", NULL };
|
static const char *upvol[] = { "amixer", "set", "Master", "2+", NULL };
|
||||||
static const char *downvol[] = { "amixer", "set", "Master", "2-", NULL };
|
static const char *downvol[] = { "amixer", "set", "Master", "2-", NULL };
|
||||||
/* alsa muting/unmuting */
|
/* alsa muting/unmuting */
|
||||||
static const char *mute[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
|
static const char *mute[] = { "amixer", "-q", "set", "Master", "toggle", NULL };
|
||||||
|
/* screenshot tools */
|
||||||
|
static const char *scrallcmd[] = { "/home/kurk/sources/scripts/prtscr/prtscra.sh", NULL };
|
||||||
|
static const char *scrcurcmd[] = { "/home/kurk/sources/scripts/prtscr/prtscrcr.sh", NULL };
|
||||||
|
static const char *scrselcmd[] = { "/home/kurk/sources/scripts/prtscr/prtscrsel.sh", NULL };
|
||||||
|
/* browsers */
|
||||||
|
static const char *palemooncmd[] = { "palemoon", NULL };
|
||||||
|
static const char *chromiumcmd[] = { "chromium", NULL };
|
||||||
|
static const char *nextcloudcmd[] = { "nextcloud", NULL };
|
||||||
|
static const char *xfecmd[] = { "xfe", NULL };
|
||||||
|
static const char *keepassxccmd[] = { "keepassxc", NULL };
|
||||||
|
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
|
@ -78,6 +102,14 @@ static const Key keys[] = {
|
||||||
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
|
{ 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } },
|
||||||
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
|
{ 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } },
|
||||||
{ 0, XF86XK_AudioMute, spawn, {.v = mute } },
|
{ 0, XF86XK_AudioMute, spawn, {.v = mute } },
|
||||||
|
{ 0, XK_Print, spawn, {.v = scrallcmd } },
|
||||||
|
{ ShiftMask, XK_Print, spawn, {.v = scrcurcmd } },
|
||||||
|
{ ControlMask, XK_Print, spawn, {.v = scrselcmd } },
|
||||||
|
{ MODKEY, XK_s, spawn, {.v = palemooncmd } },
|
||||||
|
{ MODKEY, XK_n, spawn, {.v = nextcloudcmd } },
|
||||||
|
{ MODKEY, XK_c, spawn, {.v = chromiumcmd } },
|
||||||
|
{ MODKEY|ShiftMask, XK_x, spawn, {.v = xfecmd } },
|
||||||
|
{ MODKEY, XK_x, spawn, {.v = keepassxccmd } },
|
||||||
{ MODKEY, XK_b, togglebar, {0} },
|
{ MODKEY, XK_b, togglebar, {0} },
|
||||||
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
{ MODKEY, XK_j, focusstack, {.i = +1 } },
|
||||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||||
|
@ -94,6 +126,7 @@ static const Key keys[] = {
|
||||||
{ MODKEY, XK_g, setlayout, {.v = &layouts[3]} },
|
{ MODKEY, XK_g, setlayout, {.v = &layouts[3]} },
|
||||||
{ MODKEY, XK_space, setlayout, {0} },
|
{ MODKEY, XK_space, setlayout, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||||
|
{ MODKEY|ShiftMask, XK_f, togglefullscr, {0} },
|
||||||
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
{ MODKEY, XK_0, view, {.ui = ~0 } },
|
||||||
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
|
||||||
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
|
||||||
|
|
|
@ -4,11 +4,11 @@ VERSION = 6.5
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
# paths
|
# paths
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr
|
||||||
MANPREFIX = ${PREFIX}/share/man
|
MANPREFIX = ${PREFIX}/share/man
|
||||||
|
|
||||||
X11INC = /usr/X11R6/include
|
X11INC = /usr/include/X11
|
||||||
X11LIB = /usr/X11R6/lib
|
X11LIB = /usr/lib64
|
||||||
|
|
||||||
# Xinerama, comment if you don't want it
|
# Xinerama, comment if you don't want it
|
||||||
XINERAMALIBS = -lXinerama
|
XINERAMALIBS = -lXinerama
|
||||||
|
|
3
dwm.1
3
dwm.1
|
@ -116,6 +116,9 @@ Zooms/cycles focused window to/from master area (tiled layouts only).
|
||||||
.B Mod1\-Shift\-c
|
.B Mod1\-Shift\-c
|
||||||
Close focused window.
|
Close focused window.
|
||||||
.TP
|
.TP
|
||||||
|
.B Mod1\-Shift\-f
|
||||||
|
Toggle fullscreen for focused window.
|
||||||
|
.TP
|
||||||
.B Mod1\-Shift\-space
|
.B Mod1\-Shift\-space
|
||||||
Toggle focused window between tiled and floating state.
|
Toggle focused window between tiled and floating state.
|
||||||
.TP
|
.TP
|
||||||
|
|
8
dwm.c
8
dwm.c
|
@ -215,6 +215,7 @@ static void tagtoprev(const Arg *arg);
|
||||||
static void tile(Monitor *m);
|
static void tile(Monitor *m);
|
||||||
static void togglebar(const Arg *arg);
|
static void togglebar(const Arg *arg);
|
||||||
static void togglefloating(const Arg *arg);
|
static void togglefloating(const Arg *arg);
|
||||||
|
static void togglefullscr(const Arg *arg);
|
||||||
static void toggletag(const Arg *arg);
|
static void toggletag(const Arg *arg);
|
||||||
static void toggleview(const Arg *arg);
|
static void toggleview(const Arg *arg);
|
||||||
static void unfocus(Client *c, int setfocus);
|
static void unfocus(Client *c, int setfocus);
|
||||||
|
@ -1888,6 +1889,13 @@ togglefloating(const Arg *arg)
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
togglefullscr(const Arg *arg)
|
||||||
|
{
|
||||||
|
if(selmon->sel)
|
||||||
|
setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
toggletag(const Arg *arg)
|
toggletag(const Arg *arg)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue