commit f5532452291b6deabc51b75ac2ad86f3b2a4aee6
parent 5e15306e77ad52992f18e494771a6027b96dab86
Author: AndrewLockVI <andrew@laack.co>
Date: Tue, 18 Feb 2025 15:18:19 -0600
Added patch for full screen and added back in ranger
Diffstat:
2 files changed, 23 insertions(+), 10 deletions(-)
diff --git a/config.h b/config.h
@@ -71,7 +71,6 @@ static const Layout layouts[] = {
/* commands */
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
-
// nice green color.
static const char background[] = "#282828";
static const char foreground[] = "#ebdbb2";
@@ -80,18 +79,20 @@ static const char highlight[] = "#967762";
static const char *dmenucmd[] = {"/home/andrew/bin/dmenu.sh", background, foreground, highlight, NULL};
static const char *endcmd[] = {"/home/andrew/bin/power.sh", background, foreground, highlight, NULL};
static const char *passcmd[] = {"/home/andrew/bin/pass.sh", background, foreground, highlight, NULL};
-//static const char *tmuxcmd[] = {"/home/andrew/bin/tmux.sh", background, foreground, highlight, NULL};
-static const char *tabbedcmd[] = {"/home/andrew/bin/tabbed.sh", background, foreground, highlight, NULL};
+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 *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/andrew/" , background, foreground, highlight, NULL};
+static const char *rangercmd[] = {"/home/andrew/bin/ranger.sh", "/home/andrew/" , background, foreground, highlight, NULL};
static const char *screenshotcmd[] = {"/home/andrew/bin/screenshot.sh", NULL};
//static const char *suspendcmd[] = {"/home/andrew/bin/suspend.sh" , NULL};
-static const char *termcmd[] = { "tabbed" ,"-r" , "2" , "st" ,"-w" ,"''", NULL };
+static const char *termcmd[] = {"st", NULL};
#include "movestack.c"
@@ -100,15 +101,15 @@ 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 } },
- // don't need this anymore. I will be using tabbed because it is simpler
- // and I don't need persistence when the terminal closes
- //{ MODKEY, XK_t, spawn, {.v = tmuxcmd } },
+ { MODKEY, XK_t, spawn, {.v = tmuxcmd } },
+ { MODKEY, XK_a, spawn, {.v = attachcmd} },
{ MODKEY, XK_s, spawn, {.v = searchcmd } },
{ 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_t, spawn, {.v = tabbedcmd } },
+ { MODKEY, XK_r, spawn, {.v = rangercmd } },
{ MODKEY|ShiftMask, XK_s, spawn, {.v = screenshotcmd } },
@@ -159,6 +160,8 @@ 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, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
diff --git a/dwm.c b/dwm.c
@@ -157,6 +157,7 @@ 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);
@@ -1755,6 +1756,15 @@ togglefloating(const Arg *arg)
arrange(selmon);
}
+
+void
+togglefullscr(const Arg *arg)
+{
+ if(selmon->sel)
+ setfullscreen(selmon->sel, !selmon->sel->isfullscreen);
+}
+
+
void
toggletag(const Arg *arg)
{