dwm

X window manager from suckless utilities
git clone git://git.thepablogq.xyz/dwm
Log | Files | Refs | README | LICENSE

commit 4099f3eb3362cd46fd42eed9637052f48b78836d
parent 63e3744038fcb06848c243cef833af3a389d4e31
Author: Pablo Garro <pablogq@thepablogq.xyz>
Date:   Thu, 11 Feb 2021 09:51:34 -0600

Unnecessary files removed

Diffstat:
Dconfig.h | 183-------------------------------------------------------------------------------
Ddrw.o | 0
Ddwm | 0
Ddwm.o | 0
Dutil.o | 0
5 files changed, 0 insertions(+), 183 deletions(-)

diff --git a/config.h b/config.h @@ -1,183 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -/* appearance */ -static const unsigned int borderpx = 2; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ -static const unsigned int gappx = 10; /* gap pixel between windows */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; -static const char dmenufont[] = "monospace:size=10"; -static const char col_gray1[] = "#222222"; -static const char col_gray2[] = "#444444"; -static const char col_gray3[] = "#bbbbbb"; -static const char col_gray4[] = "#000000"; -static const char col_cyan[] = "#50fa7b"; -static const char col1[] = "#ffffff"; -static const char col2[] = "#ffffff"; -static const char col3[] = "#ffffff"; -static const char col4[] = "#ffffff"; -static const char col5[] = "#ffffff"; -static const char col6[] = "#ffffff"; -static const char col7[] = "#ffffff"; -static const char col8[] = "#ffffff"; -static const char col9[] = "#ffffff"; -static const char col10[] = "#ffffff"; -static const char col11[] = "#ffffff"; -static const char col12[] = "#ffffff"; - -#include <X11/XF86keysym.h> - -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeCol1] = { col1, col_gray1, col_gray2 }, - [SchemeCol2] = { col2, col_gray1, col_gray2 }, - [SchemeCol3] = { col3, col_gray1, col_gray2 }, - [SchemeCol4] = { col4, col_gray1, col_gray2 }, - [SchemeCol5] = { col5, col_gray1, col_gray2 }, - [SchemeCol6] = { col6, col_gray1, col_gray2 }, - [SchemeCol7] = { col7, col_gray1, col_gray2 }, - [SchemeCol8] = { col8, col_gray1, col_gray2 }, - [SchemeCol9] = { col8, col_gray1, col_gray2 }, - [SchemeCol10] = { col10, col_gray1, col_gray2 }, - [SchemeCol11] = { col11, col_gray1, col_gray2 }, - [SchemeCol12] = { col12, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, - -}; - -/* tagging */ -static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; - -static const Rule rules[] = { - /* xprop(1): - * WM_CLASS(STRING) = instance, class - * WM_NAME(STRING) = title - */ - /* class instance title tags mask isfloating monitor */ - { "qjackctl", NULL, NULL, 1 << 8, 1, 0 }, - { "Gnome-pomodoro", NULL, "Pomodoro Timer",1 << 8, 1, 0 }, - { "Gnome-pomodoro", NULL, "Pomodoro", 0, 0, 0 }, - { "Microsoft Teams - Preview",NULL,NULL,1 << 7, 1, 0 }, - { "zoom", NULL, NULL, 1 << 7, 1, 0 }, - { "VirtualBox", NULL, NULL, 0, 1, -1 }, - { "discord", NULL, NULL, 1 << 7, 1, 0 }, - { "Firefox", NULL, NULL, 1 << 2, 0, -1 }, - { "Brave", NULL, NULL, 1 << 3, 0, -1 }, - { "Ardour", NULL, NULL, 1 << 6, 1, 1 }, - { "kdenlive", NULL, NULL, 1 << 6, 0, 0 }, - { "Gimp", NULL, NULL, 1 << 5, 0, 1 }, - { "Thunderbird",NULL, NULL, 1 << 1, 0, -1 }, -}; - -/* layout(s) */ -static const float mfact = 0.50; /* factor of master area size [0.05..0.95] */ -static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ - -static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, - { "|M|", centeredmaster }, - { ">M>", centeredfloatingmaster }, - -}; - -/* key definitions */ -#define MODKEY Mod4Mask -#define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, - -/* helper for spawning shell commands in the pre dwm-5.0 fashion */ -#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } - -/* 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[] = { "st", NULL }; -static const char *firefox[] = { "firefox", NULL }; -static const char *qjack[] = { "qjackctl", NULL }; -static const char *keylay[] = { "/home/plogtheg1/Source/bashScripts/keylay", NULL }; -static const char *upvol[] = { "/home/plogtheg1/Source/bashScripts/upvol", "u", NULL }; -static const char *downvol[] = { "/home/plogtheg1/Source/bashScripts/upvol", "d", NULL }; -static const char *mutevol[] = { "/home/plogtheg1/Source/bashScripts/upvol", "m", NULL }; -static const char *xflock[] = { "xflock4", NULL }; -static const char *mail[] = { "thunderbird", NULL }; - -static Key keys[] = { - /* modifier key function argument */ - { ControlMask, XK_Escape, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_w, spawn, {.v = firefox } }, - { MODKEY, XK_q, spawn, {.v = qjack } }, - { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, - { MODKEY|ShiftMask, XK_m, spawn, {.v = mail } }, - { Mod1Mask, XK_Caps_Lock,spawn, {.v = keylay } }, - { MODKEY, XK_b, togglebar, {0} }, - { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, - { MODKEY, XK_i, incnmaster, {.i = +1 } }, - { MODKEY, XK_d, incnmaster, {.i = -1 } }, - { MODKEY, XK_h, setmfact, {.f = -0.05} }, - { MODKEY, XK_l, setmfact, {.f = +0.05} }, - { MODKEY, XK_Return, zoom, {0} }, - { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_c, killclient, {0} }, - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, - { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, - { MODKEY, XK_u, setlayout, {.v = &layouts[3]} }, - { MODKEY, XK_o, setlayout, {.v = &layouts[4]} }, - { MODKEY, XK_space, setlayout, {0} }, - { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { MODKEY, XK_minus, setgaps, {.i = -1 } }, - { MODKEY, XK_plus, setgaps, {.i = +1 } }, - { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, - { ControlMask|Mod1Mask, XK_l, spawn, {.v = xflock } }, - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) - TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_q, quit, {0} }, - { 0, XF86XK_AudioLowerVolume, spawn, {.v = downvol } }, - { 0, XF86XK_AudioMute, spawn, {.v = mutevol } }, - { 0, XF86XK_AudioRaiseVolume, spawn, {.v = upvol } }, -}; - -/* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button1, sigdwmblocks, {.i = 1} }, - { ClkStatusText, 0, Button2, sigdwmblocks, {.i = 2} }, - { ClkStatusText, 0, Button3, sigdwmblocks, {.i = 3} }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, -}; - diff --git a/drw.o b/drw.o Binary files differ. diff --git a/dwm b/dwm Binary files differ. diff --git a/dwm.o b/dwm.o Binary files differ. diff --git a/util.o b/util.o Binary files differ.