From 8d8ff3f45978e31d67ed7e56826926203c759581 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sun, 22 Mar 2020 23:41:03 -0500 Subject: [PATCH] Working on dmenu --- .bashrc | 1 + .config/vifm/vifmrc | 4 ++-- .dwm/autostart.sh | 1 + dmenu/config.def.h | 27 +++++++++++++++++---------- dmenu/config.h | 18 ++++++++++++------ dmenu/dmenu | Bin 44312 -> 44264 bytes dmenu/dmenu.o | Bin 37176 -> 37160 bytes dmenu/drw.o | Bin 10488 -> 10472 bytes dmenu/stest | Bin 17736 -> 17688 bytes dmenu/stest.o | Bin 5312 -> 5296 bytes dmenu/util.o | Bin 2240 -> 2224 bytes 11 files changed, 33 insertions(+), 18 deletions(-) diff --git a/.bashrc b/.bashrc index bcca33c..f5c9328 100644 --- a/.bashrc +++ b/.bashrc @@ -140,6 +140,7 @@ ex () } ### ALIASES ### + # navigation alias ..='cd ..' \ ...='cd ../..' diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index ad39291..5c2cf22 100755 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -11,8 +11,8 @@ " Since emacs is a GUI app and not a terminal app like vim, append the command " with an ampersand (&). -set vicmd=emacsclient\ -c\ & -" set vicmd=vim +" set vicmd=emacsclient\ -c\ & +set vicmd=vim " This makes vifm perform file operations on its own instead of relying on " standard utilities like `cp`. While using `cp` and alike is a more universal diff --git a/.dwm/autostart.sh b/.dwm/autostart.sh index afc4ed4..73d0234 100755 --- a/.dwm/autostart.sh +++ b/.dwm/autostart.sh @@ -2,3 +2,4 @@ compton & nitrogen --restore & dwmblocks & +lxsession & diff --git a/dmenu/config.def.h b/dmenu/config.def.h index fcf051d..e7b0a0d 100644 --- a/dmenu/config.def.h +++ b/dmenu/config.def.h @@ -1,26 +1,32 @@ +/* ____ _____ */ +/* | _ \_ _| Derek Taylor (DistroTube) */ +/* | | | || | http://www.youtube.com/c/DistroTube */ +/* | |_| || | http://www.gitlab.com/dwt1/ */ +/* |____/ |_| */ + /* See LICENSE file for copyright and license details. */ /* Default settings; can be overriden by command line. */ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ static int centered = 0; /* -c option; centers dmenu on screen */ -static int min_width = 500; /* minimum width when centered */ +static int min_width = 600; /* minimum width when centered */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=10" + "Mononoki Nerd Font:size=9" }; -static const char *prompt = NULL; /* -p option; prompt to the left of input field */ +static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { /* fg bg */ - [SchemeNorm] = { "#bbbbbb", "#222222" }, - [SchemeSel] = { "#eeeeee", "#005577" }, - [SchemeSelHighlight] = { "#ffc978", "#005577" }, - [SchemeNormHighlight] = { "#ffc978", "#222222" }, + [SchemeNorm] = { "#cccccc", "#282a36" }, + [SchemeSel] = { "#ffffff", "#924441" }, + [SchemeSelHighlight] = { "#d7d7d7", "#000000" }, + [SchemeNormHighlight] = { "#e78481", "#000000" }, [SchemeOut] = { "#000000", "#00ffff" }, - [SchemeMid] = { "#eeeeee", "#770000" }, + [SchemeMid] = { "#d7d7d7", "#1f2026" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; -static unsigned int lineheight = 0; /* -h option; minimum height of a menu line */ +static unsigned int lineheight = 22; /* -h option; minimum height of a menu line */ /* * Characters not considered part of a word while deleting words @@ -29,4 +35,5 @@ static unsigned int lineheight = 0; /* -h option; minimum height of a me static const char worddelimiters[] = " "; /* Size of the window border */ -static unsigned int border_width = 0; +static unsigned int border_width = 0; /* -bw option; to add border width */ + diff --git a/dmenu/config.h b/dmenu/config.h index d6554c5..d59cd10 100644 --- a/dmenu/config.h +++ b/dmenu/config.h @@ -1,3 +1,9 @@ +/* ____ _____ */ +/* | _ \_ _| Derek Taylor (DistroTube) */ +/* | | | || | http://www.youtube.com/c/DistroTube */ +/* | |_| || | http://www.gitlab.com/dwt1/ */ +/* |____/ |_| */ + /* See LICENSE file for copyright and license details. */ /* Default settings; can be overriden by command line. */ @@ -6,17 +12,17 @@ static int centered = 0; /* -c option; centers dmenu on scree static int min_width = 600; /* minimum width when centered */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "Mononoki Nerd Font:size=10" + "Mononoki Nerd Font:size=9" }; static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { /* fg bg */ - [SchemeNorm] = { "#bbc5ff", "#282a36" }, - [SchemeSel] = { "#282a36", "#82aaff" }, - [SchemeSelHighlight] = { "#82aaff", "#000000" }, - [SchemeNormHighlight] = { "#f1fa8c", "#000000" }, + [SchemeNorm] = { "#cccccc", "#282a36" }, + [SchemeSel] = { "#ffffff", "#924441" }, + [SchemeSelHighlight] = { "#d7d7d7", "#000000" }, + [SchemeNormHighlight] = { "#e78481", "#000000" }, [SchemeOut] = { "#000000", "#00ffff" }, - [SchemeMid] = { "#eeeeee", "#770000" }, + [SchemeMid] = { "#d7d7d7", "#1f2026" }, }; /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; diff --git a/dmenu/dmenu b/dmenu/dmenu index cf9012681066cfef793f11dfc43eb523e75f4a4f..987e48ca223fc072c3e76ddbecba545a903bea3a 100755 GIT binary patch delta 780 zcmaJqboKoZRl<`X%dy;pe0jVBO6CC~{nPX+SZU=n|KL?D4dvmI0%G*u9M!u+rSnlK%0hP^l$ z)$3G+vC`6eA-)Z0MKgCGf{RfPG;=9-Re}P~9ywFB^HMEiTCubUjG3c{Lgwhu_R{m0 zLPT$@n7P0hLYG?}p`KFgwG}RDa}-OpyrrwE=5V51Ow~jBS$~kJ$#O9@tQ&@*F}1Z^ z7F!EU?Q07eAe3u5Om4Y!7N+lR39ep|5Hax2GD+Zo+;GsIMEhgwa8q=#a2R|j_mHM3ZHNJS7t zg|S1h8T1})P~4}WV55i#l+p_AZ9#CUH!(1ln$GOZV%QnJ`Of#9GxuKZob(D8|Hf$| zjX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_ E9}wGY0ssI2 diff --git a/dmenu/drw.o b/dmenu/drw.o index 622000761139598e51783f5f8042982d8ad43752..db93e5e92a628b3c0d2ed4735a7dbec3d34f07f0 100644 GIT binary patch delta 97 zcmewn_#$wE24luX&0t5BG6_b3&4Oy~jEstt4F!cK=cubN sc21tCZqGPj@5|QAds9fd7_3r=MNPIFem`4f1}C+03hrd6951J delta 113 zcmaD6_#<$F24lrW&0tt8$ B9Ap3h diff --git a/dmenu/stest b/dmenu/stest index 3ec07e4b602f583e119822059795c08c42791114..60c69a1991d444747aeebf013d5a8cf003844789 100755 GIT binary patch delta 115 zcmX@n#WtUFSA0Sbamzck>ITeY%p4MadZo zKACx?6$+Mm#(D<2hMEw@WJf01%{+!N!jnsw1tupLvrMjWQDHnVd7+CvqsQcjF7{lP OZ5Y6SnQ?NKog4t->n4f- delta 157 zcmbQy#dxBNae@XDhuuc4RZJqDcI>YtQht9_FmKkn<21W@Q`m}?n_n>P({*+C3)NJx z)HBjER4_6yGB7YSHehgfcD7Q`a4bsBQ1HpjE3JUYYs2JqjnH*Wc4SiAe8(V0n9*ml jqOtH~9~TwI50eXB>=`R2Z*;NeVzy-f17^m_R(5g#Dh4ba diff --git a/dmenu/stest.o b/dmenu/stest.o index 437b258f35ab1b26117979a5a5c7ccc82aed6ac4..f3d919245e6349c6d04b5a070963273e6939475b 100644 GIT binary patch delta 101 zcmX@0xj}P+2Ga+DjatF1e8zePx`vtxmU=)21Hc|dc5#^ihv){VLWta3(rhT293Mg|6k#s<1ZnhKVBKoJF)$mVX=zub%`Hg^iz zGcpQHJ}KnRXgpa^*qmt&>*S9DVv`euH5eC6?i99Xw3vJnNP0}>6tQRgFxgYYp0h!K M0Su}qUlf!F0AGI}Z2$lO diff --git a/dmenu/util.o b/dmenu/util.o index 336703cbf1323765dc7f95f5da4fd741c89cff42..59a07457a785bae0ce4bed63b5ac76e960595509 100644 GIT binary patch delta 94 zcmX>gxIu7&24lfSO&dl&V?6_1Lrn!sJs^XDVRJL%R2Ie;n!kZH-Y4d$&wuQj1wkDa@ccnurh!_#^gjcc>s197aITo delta 110 zcmdlWctCK124llUO&dlzBRxZHBLgD?14Cm2T_a5eOFf{70!(CcG2>Jg#vhwG+1MEw zjVBATn=`dAPA+5>o1DO|!Pqgmlii;2#pIJf^2TIN4tvH0lRY`?IVD&bz#wCCAe%e@ D;Ncp3