summaryrefslogtreecommitdiffstats
path: root/x11-misc
diff options
context:
space:
mode:
authorturret <turret@duck.com>2023-08-25 10:31:40 -0500
committerturret <turret@duck.com>2023-08-25 10:31:40 -0500
commit31c785d31ba25ab779171d045dd389f2982811d4 (patch)
treecf25e63da0ff9a4008e8aea183983f57268a0187 /x11-misc
downloadportage-savedconfig-31c785d31ba25ab779171d045dd389f2982811d4.tar.gz
portage-savedconfig-31c785d31ba25ab779171d045dd389f2982811d4.tar.bz2
portage-savedconfig-31c785d31ba25ab779171d045dd389f2982811d4.zip
add thinkpad configs
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/dmenu-5.023
-rw-r--r--x11-misc/sent-1-r156
-rw-r--r--x11-misc/slock-1.4-r112
3 files changed, 91 insertions, 0 deletions
diff --git a/x11-misc/dmenu-5.0 b/x11-misc/dmenu-5.0
new file mode 100644
index 0000000..1edb647
--- /dev/null
+++ b/x11-misc/dmenu-5.0
@@ -0,0 +1,23 @@
+/* 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 */
+/* -fn option overrides fonts[0]; default X11 font or font set */
+static const char *fonts[] = {
+ "monospace:size=10"
+};
+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" },
+ [SchemeOut] = { "#000000", "#00ffff" },
+};
+/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
+static unsigned int lines = 0;
+
+/*
+ * Characters not considered part of a word while deleting words
+ * for example: " /?\"&[]"
+ */
+static const char worddelimiters[] = " ";
diff --git a/x11-misc/sent-1-r1 b/x11-misc/sent-1-r1
new file mode 100644
index 0000000..60eb376
--- /dev/null
+++ b/x11-misc/sent-1-r1
@@ -0,0 +1,56 @@
+/* See LICENSE file for copyright and license details. */
+
+static char *fontfallbacks[] = {
+ "dejavu sans",
+ "roboto",
+ "ubuntu",
+};
+#define NUMFONTSCALES 42
+#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
+
+static const char *colors[] = {
+ "#000000", /* foreground color */
+ "#FFFFFF", /* background color */
+};
+
+static const float linespacing = 1.4;
+
+/* how much screen estate is to be used at max for the content */
+static const float usablewidth = 0.75;
+static const float usableheight = 0.75;
+
+static Mousekey mshortcuts[] = {
+ /* button function argument */
+ { Button1, advance, {.i = +1} },
+ { Button3, advance, {.i = -1} },
+ { Button4, advance, {.i = -1} },
+ { Button5, advance, {.i = +1} },
+};
+
+static Shortcut shortcuts[] = {
+ /* keysym function argument */
+ { XK_Escape, quit, {0} },
+ { XK_q, quit, {0} },
+ { XK_Right, advance, {.i = +1} },
+ { XK_Left, advance, {.i = -1} },
+ { XK_Return, advance, {.i = +1} },
+ { XK_space, advance, {.i = +1} },
+ { XK_BackSpace, advance, {.i = -1} },
+ { XK_l, advance, {.i = +1} },
+ { XK_h, advance, {.i = -1} },
+ { XK_j, advance, {.i = +1} },
+ { XK_k, advance, {.i = -1} },
+ { XK_Down, advance, {.i = +1} },
+ { XK_Up, advance, {.i = -1} },
+ { XK_Next, advance, {.i = +1} },
+ { XK_Prior, advance, {.i = -1} },
+ { XK_n, advance, {.i = +1} },
+ { XK_p, advance, {.i = -1} },
+ { XK_r, reload, {0} },
+};
+
+static Filter filters[] = {
+ { "\\.ff$", "cat" },
+ { "\\.ff.bz2$", "bunzip2" },
+ { "\\.[a-z0-9]+$", "2ff" },
+};
diff --git a/x11-misc/slock-1.4-r1 b/x11-misc/slock-1.4-r1
new file mode 100644
index 0000000..9855e21
--- /dev/null
+++ b/x11-misc/slock-1.4-r1
@@ -0,0 +1,12 @@
+/* user and group to drop privileges to */
+static const char *user = "nobody";
+static const char *group = "nogroup";
+
+static const char *colorname[NUMCOLS] = {
+ [INIT] = "black", /* after initialization */
+ [INPUT] = "#005577", /* during input */
+ [FAILED] = "#CC3333", /* wrong password */
+};
+
+/* treat a cleared input like a wrong password (color) */
+static const int failonclear = 1;