dwm

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4564e94f31f2c825b710e38e0c918e820d51b387
parent 18365f70b94cef75c88a0443405923010ece0658
Author: AndrewLockVI <andrew@laack.co>
Date:   Wed, 19 Feb 2025 20:28:53 -0600

Updated dwm config to open/copy bookmarks, add bookmarks with verification, and rebind zoom to Mod+T (top)

Diffstat:
Mconfig.h | 31++++++++++++++++++++-----------
Mdwm.c | 9---------
2 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/config.h b/config.h @@ -58,14 +58,11 @@ static const Rule rules[] = { static const float mfact = 0.66; /* factor of master area size [0.05..0.95] */ static const int nmaster = 2; /* number of clients in master area */ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ -static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ +static const int lockfullscreen = 1; static const Layout layouts[] = { - /* symbol arrange function */ { "|||", col}, - { "[]=", tile }, /* first entry is default */ - //{ "><>", NULL }, /* no layout function means floating behavior */ - //{ "[M]", monocle }, + { "[]=", tile }, }; /* key definitions */ @@ -93,14 +90,16 @@ static const char *passcmd[] = {"/home/andrew/bin/pass.sh", background, foregrou static const char *tmuxcmd[] = {"/home/andrew/bin/tmux.sh", background, foreground, highlight, NULL}; //static const char *attachcmd[] = {"/home/andrew/bin/attach.sh", background, foreground, highlight, NULL}; //static const char *tabbedcmd[] = {"/home/andrew/bin/tabbed.sh", background, foreground, highlight, NULL}; -//static const char *dvtmcmd[] = {"/home/andrew/bin/dvtm.sh", background, foreground, highlight, NULL}; +static const char *dvtmcmd[] = {"/home/andrew/bin/dvtm.sh", background, foreground, highlight, NULL}; //static const char *searchcmd[] = {"/home/andrew/bin/search.sh", background, foreground, highlight, NULL}; static const char *zathuracmd[] = {"/home/andrew/bin/zathura.sh", background, foreground, highlight, NULL}; static const char *musiccmd[] = {"/home/andrew/bin/find-music.sh", "/home/serverBackup/fileSharing/music/" , background, foreground, highlight, NULL}; -//static const char *rangercmd[] = {"/home/andrew/bin/ranger.sh", "/home/" , background, foreground, highlight, NULL}; +static const char *rangercmd[] = {"/home/andrew/bin/ranger.sh", "/home/" , background, foreground, highlight, NULL}; static const char *workspacecmd[] = {"/home/andrew/bin/init-screen.sh", NULL}; +// copying bookmarks static const char *bookmarkscmd[] = {"/home/andrew/bin/bookmarks.sh", NULL}; static const char *addbookmarkcmd[] = {"/home/andrew/bin/add-bookmark.sh", NULL}; +static const char *openbookmarkcmd[] = {"/home/andrew/bin/open-bookmark.sh", NULL}; static const char *screenshotcmd[] = {"/home/andrew/bin/screenshot.sh", NULL}; @@ -117,7 +116,7 @@ static const Key keys[] = { { MODKEY, XK_o, spawn, {.v = dmenucmd } }, { MODKEY, XK_e, spawn, {.v = endcmd } }, { MODKEY, XK_p, spawn, {.v = passcmd } }, - //{ MODKEY, XK_d, spawn, {.v = dvtmcmd } }, + { MODKEY, XK_d, spawn, {.v = dvtmcmd } }, { MODKEY, XK_t, spawn, {.v = tmuxcmd } }, // I didn't really use this. @@ -126,10 +125,19 @@ static const Key keys[] = { { MODKEY, XK_z, spawn, {.v = zathuracmd } }, { MODKEY, XK_m, spawn, {.v = musiccmd } }, //{ MODKEY, XK_t, spawn, {.v = tabbedcmd } }, - //{ MODKEY, XK_r, spawn, {.v = rangercmd } }, + { MODKEY, XK_r, spawn, {.v = rangercmd } }, { MODKEY, XK_w, spawn, {.v = workspacecmd} }, + + // copy bookmark { MODKEY, XK_b, spawn, {.v = bookmarkscmd} }, + + // add bookmark { MODKEY, XK_a, spawn, {.v = addbookmarkcmd} }, + + // search the web/open bookmark + { MODKEY, XK_s, spawn, {.v = openbookmarkcmd} }, + + // hide bar { MODKEY, XK_h, togglebar, {0} }, @@ -151,7 +159,8 @@ static const Key keys[] = { { MODKEY, XK_Left, setmfact, {.f = -0.05} }, { MODKEY, XK_Right, setmfact, {.f = +0.05} }, - { MODKEY|ShiftMask, XK_Return, zoom, {0} }, + // send to top of stack + { MODKEY|ShiftMask, XK_t, zoom, {0} }, //{ MODKEY, XK_Tab, view, {0} }, @@ -182,7 +191,7 @@ static const Key keys[] = { // columnar mode (awesome for odyssey g9) { MODKEY|ShiftMask, XK_h, setlayout, {.v = &layouts[0]} }, - { MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, + //{ MODKEY|ShiftMask, XK_f, togglefullscr, {0} }, //{ MODKEY, XK_space, setlayout, {0} }, diff --git a/dwm.c b/dwm.c @@ -157,7 +157,6 @@ static void cleanup(void); static void cleanupmon(Monitor *mon); static void clientmessage(XEvent *e); static void col(Monitor *); -static void togglefullscr(const Arg *arg); static void configure(Client *c); static void configurenotify(XEvent *e); static void configurerequest(XEvent *e); @@ -1758,14 +1757,6 @@ togglefloating(const Arg *arg) void -togglefullscr(const Arg *arg) -{ - if(selmon->sel) - setfullscreen(selmon->sel, !selmon->sel->isfullscreen); -} - - -void toggletag(const Arg *arg) { unsigned int newtags;