From c6c12f4a0d68bb4b91efae3f8daa56361684f051 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 23 Jan 2016 18:33:51 +0000 Subject: [PATCH] Update URL to 9wm --- install | 2 +- misc/twatch-config/fonts.html | 48 +++++++++++++++++++++++ misc/twatch-config/twatch.js | 17 ++++++--- papers/setup.mdwn | 71 ++++++++++++++++------------------- src/9wm/index.mdwn | 6 +-- 5 files changed, 97 insertions(+), 47 deletions(-) create mode 100644 misc/twatch-config/fonts.html diff --git a/install b/install index 9feff43..f107d9c 100755 --- a/install +++ b/install @@ -6,7 +6,7 @@ cd $(dirname $0) older () { tgt=$1 - [ -f "$tgt" ] || exit 0 + [ -f "$tgt" ] || return 0 for src in "$@"; do [ "$src" -nt "$tgt" ] && return 0 diff --git a/misc/twatch-config/fonts.html b/misc/twatch-config/fonts.html new file mode 100644 index 0000000..88383e1 --- /dev/null +++ b/misc/twatch-config/fonts.html @@ -0,0 +1,48 @@ + + + + + + + + + + + +
+
+
Appearance
+
+
+ + + + +
+
+
+ +
+
+ +
+
+
+ + diff --git a/misc/twatch-config/twatch.js b/misc/twatch-config/twatch.js index c0aecaa..cf08bc3 100644 --- a/misc/twatch-config/twatch.js +++ b/misc/twatch-config/twatch.js @@ -13,21 +13,25 @@ function submit() { var form = document.getElementById("main-form"); var inputs = form.getElementsByTagName("input"); + var selects = form.getElementsByTagName("select"); var return_to = getQueryParam('return_to', 'pebblejs://close#'); var options = {}; console.log("Submitting"); - for (var i = 0; i < inputs.length; i += 1) { - var input = inputs[i]; + for (var i = 0; i < (inputs.length + selects.length); i += 1) { + var input = inputs[i] || selects[i - inputs.length]; var k = input.name; var t = input.type; var v; + console.log(k, t, v); if (t == "checkbox") { v = input.checked; } else if (t == "text") { v = Number(input.value); + } else if (t == "select-one") { + v = input.value; } else { continue; } @@ -42,15 +46,18 @@ function submit() { function restore() { var form = document.getElementById("main-form"); var inputs = form.getElementsByTagName("input"); - for (var i = 0; i < inputs.length; i += 1) { - var input = inputs[i]; + var selects = form.getElementsByTagName("select"); + for (var i = 0; i < (inputs.length + selects.length); i += 1) { + var input = inputs[i] || selects[i - inputs.length]; var k = input.name; var t = input.type; var v = localStorage[k]; - console.log(k); + console.log(k, t, v); if (v != undefined) { if (t == "checkbox") { input.checked = (v=="true")?true:false; + } else if (t == "select-one") { + input.value = v; } else if (k.slice(0, 6) == "color-") { var val = ("000000" + Number(v).toString(16)).slice(-6); var hex = "0x" + val; diff --git a/papers/setup.mdwn b/papers/setup.mdwn index c4a3edf..4dfafa5 100644 --- a/papers/setup.mdwn +++ b/papers/setup.mdwn @@ -3,13 +3,14 @@ Title: The Setup / Neale Pickett After reading [Russ Cox's setup](http://russ.cox.usesthis.com/) I thought it might be interesting to write up my own. -September 18, 2014 +29 December, 2015 Who are you, and what do you do? -------------------------------- -I write software. +I am a system administrater at Canonical (the people who make Ubuntu). + Mostly I hack around the periphery of free software projects, occasionally tossing patches to projects that capture my interest. A partial portfolio is on my [source code page](src/). @@ -28,56 +29,50 @@ Hardware I've decided to be very energy conscious. This means my hardware is low-power and not high-performance. -At home, I have a Thinkpad X200. -My wife uses a Chromebook, and we have a FitPC that gets turned on -when we need to print on our HP LaserJet CM2320. -My pre-teen daughter has a Nexus 7 tablet, -and my wife and I both use Nexus 4 phones. +I use a Thinkpad X220. +My wife uses a Chromebook from 2011, which she loves, +and my daughter has an X220 that she doesn't turn on much. + +We have a brother printer that connects wirelessly and speakes Google Cloud Print. +I can no longer print natively from Linux, +which has mattered exactly once in the last two years. + +The family shares a Nexus 7 tablet, +my wife and daughter have Nexus 5x phones, +and I have a Nexus 6. + We also have a Chromecast that's mostly used for Netflix, and a Wii. -At work, I use an Intel NUC. - Software -------- -I run Arch Linux, with a shell script PID 1 that I maintain because I enjoy tinkering with early userspace. -It uses runit from busybox to manage starting and stopping daemons. -Runit is a lot like systemd or upstart at core: daemons don't do the double-fork trick, and log to stdout. +I run Ubuntu with the Gnome 3 desktop, +which is the first Linux desktop environment I actually like. +I think this is mostly because it doesn't try to do many tricks. -On the desktop, I run Google Chrome, xterm, and acme from plan9port. -My window manager varies a lot. -Most times it's Openbox plus tint2, but sometimes I go back to 9wm (which I maintain). -I'm starting to make overtures at Wayland. +Inside Emacs I run Gnus for work email, +and a comint-mode derivative I created for bouncing around work machines with SSH. +I don't run any sort of terminal emulator: +everything is `TERM=dumb` inside my emacs SSH sessions. -Occasionally I kick up inkscape or gimp, and mixxx for my DJ work. -Most of my non-work computer use is through Chrome, which ties me strongly -to Linux, for better or worse. +My other main program is Google Chrome. -My non-development stuff is almost entirely in the cloud. -It's very frustrating to have to go to work where people are still emailing -Excel spreadsheets and hand-merging edits. - -My FitPC print server runs Ubuntu and some kind of Chromium Cloud Print server thing. -All my home printing is through Google Cloud Print. +Occasionally I will run Gimp and Inkscape, too. What would be your dream setup? ------------------------------- -I'm actually not too far away right now. -I like working in the cloud, and for my development stuff, -acme is pretty great. +I'm pretty happy with what I have now, +although I wish I had time to get Acme working for me as nicely as Emacs, +since I am not an Emacs fan. -I spend a lot of time fretting about window managers. -Hopefully I can move to Wayland soon, and port 9wm to it. -Or maybe I can get Chrome to expose its window manager. +It bothers me that X11 is such a horrible mess, +but now that I'm not maintaining my own window manager, +it's less of an issue. -I kind of wish I didn't need a gazillion packages in order to run my 3 main programs -(chrome, acme, and xterm). -But I don't know how I can fix that, and I'm not sure I really even want to. - -I would also like to do away with the FitPC print server. -I'd love to be able to buy a little box that will hop on our wireless network -and connect our printer to Google Cloud Print. +I'd like to get my daughter off her X220 and onto a Chromebook, +because I feel like desktop system administration is a skill she will never need as an adult. +But it's not enough of a concern to make me actually do anything about it. diff --git a/src/9wm/index.mdwn b/src/9wm/index.mdwn index e4802a1..32a16e2 100644 --- a/src/9wm/index.mdwn +++ b/src/9wm/index.mdwn @@ -13,8 +13,8 @@ It does not allocate any colors, and only requires Xlib, both of which will be great news if you are in 1993. -9wm is distributed under [an MIT License](https://woozle.org/neale/g.cgi/x11/9wm/about/LICENSE), -at . +9wm is distributed under [an MIT License](https://github.com/nealey/9wm/blob/master/LICENSE.md), +at . How do I use it? @@ -51,4 +51,4 @@ More Information ================ More information can be found in the -[README](https://woozle.org/neale/g.cgi/x11/9wm/about/) file. +[README](https://github.com/nealey/9wm/blob/master/README.md).