ソースを参照

Make config and todo list changes

master
= 3年前
コミット
8987b1fd25
7個のファイルの変更64行の追加8行の削除
  1. +1
    -0
      .gitignore
  2. +0
    -0
      .pc/dwm-centeredmaster-6.1.diff
  3. +0
    -0
      .pc/dwm-pertag-20200914-61bb8b2.diff
  4. +26
    -0
      TODO
  5. +8
    -8
      config.h
  6. バイナリ
      dwm
  7. +29
    -0
      dwm-removeborder-20200520-f09418b.diff

+ 1
- 0
.gitignore ファイルの表示

@@ -4,3 +4,4 @@
*.rej
*.orig
ses
dwm

dwm-centeredmaster-6.1.diff → .pc/dwm-centeredmaster-6.1.diff ファイルの表示


dwm-pertag-20200914-61bb8b2.diff → .pc/dwm-pertag-20200914-61bb8b2.diff ファイルの表示


+ 26
- 0
TODO ファイルの表示

@@ -2,3 +2,29 @@
affecting the keyboard grab, see scrot -s for example)
- add updategeom() hook for external tools like dzen
- consider onscreenkeyboard hooks for tablet deployment

bugs in this build:
fullgaps (might be shortcuts)
awesomebar: hidewindow() function crashes dwm and tag background color is weird
maybe manage hidden windows with dmenu
use dmenu for selecting and focusing window
undo fullgaps and add useless gaps instead for more generality
add patch for moving slave windows
correct tag colors

hide border of nonfocused windows or make transparent
hide borders in monocle
make rules change default/sel border color for certain titles: green for multiplexer
add tabs
correct st border colors
make tile layout slaves equal sizes
figure out window shadows like in kdk image
add patch for moving selected client to master area
modify centered master using removeborder patch
make mru indexer script that stores files and their last known mod times in a
.cache file sorted by time. Should have commands for updating infor for the
whole directory, pointing it at only a specific directory (which can be
specified from known directories and used in dmenu), and pointing to specific
file to update it's position (ctrlp hook script should be possible)
add shortcut for focusing master
add scratchpad that opens in a special session

+ 8
- 8
config.h ファイルの表示

@@ -4,17 +4,17 @@
static const char *fonts[] = {
"SauceCodePro NF:size=10"
};
static const char dmenufont[] = "monospace:size=10";
static const char dmenufont[] = "SauceCodePro NF:size=10";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#005577";
static const char selbordercolor[] = "#333544";
static const char selbgcolor[] = "#005577";
static const char selfgcolor[] = "#eeeeee";
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int borderpx = 5; /* border pixel of windows */
static const Gap default_gap = {.isgap = 1, .realgap = 10, .gappx = 10};
static const unsigned int snap = 32; /* snap pixel */
static const int showbar = 1; /* 0 means no bar */
static const int showbar = 0; /* 0 means no bar */
static const int topbar = 1; /* 0 means bottom bar */

/* tagging */
@@ -59,7 +59,7 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "x-terminal-emulator", NULL };
static const char *termcmd[] = { "st", NULL };

static Key keys[] = {
/* modifier key function argument */
@@ -91,9 +91,9 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_s, show, {0} },
{ MODKEY|ShiftMask, XK_h, hide, {0} },
{ MODKEY|ShiftMask, XK_b, toggleAttachBelow, {0} },
{ MODKEY, XK_minus, setgaps, {.i = -5 } },
{ MODKEY|ShiftMask, XK_h, hide, {0} },
{ MODKEY|ShiftMask, XK_b, toggleAttachBelow, {0} },
{ MODKEY, XK_minus, setgaps, {.i = -5 } },
{ MODKEY, XK_equal, setgaps, {.i = +5 } },
{ MODKEY|ShiftMask, XK_minus, setgaps, {.i = GAP_RESET } },
{ MODKEY|ShiftMask, XK_equal, setgaps, {.i = GAP_TOGGLE} },


バイナリ
dwm ファイルの表示


+ 29
- 0
dwm-removeborder-20200520-f09418b.diff ファイルの表示

@@ -0,0 +1,29 @@
diff --git a/dwm.c b/dwm.c
index 9fd0286..dcdbc38 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1277,12 +1277,24 @@ void
resizeclient(Client *c, int x, int y, int w, int h)
{
XWindowChanges wc;
+ unsigned int n;
+ Client *nbc;
c->oldx = c->x; c->x = wc.x = x;
c->oldy = c->y; c->y = wc.y = y;
c->oldw = c->w; c->w = wc.width = w;
c->oldh = c->h; c->h = wc.height = h;
wc.border_width = c->bw;
+
+ for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = nexttiled(nbc->next), n++);
+
+ if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) {
+ } else {
+ if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) {
+ wc.border_width = 0;
+ }
+ }
+
XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
configure(c);
XSync(dpy, False);

読み込み中…
キャンセル
保存