This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local wezterm = require("wezterm") | |
| local config = {} | |
| if wezterm.config_builder then | |
| config = wezterm.config_builder() | |
| end | |
| config.use_fancy_tab_bar = false | |
| config.hide_tab_bar_if_only_one_tab = true | |
| config.font_size = 14.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| dry=0 | |
| if [[ $# -gt 0 && $1 == "-n" ]]; then | |
| dry=1 | |
| shift | |
| fi | |
| prefix="v" | |
| if [[ $# -gt 0 ]]; then | |
| if [[ $1 = -* || $# -gt 1 ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Compile with $ gcc -o lmutracker lmu.m -framework IOKit -framework CoreFoundation -framework Foundation | |
| // Usage: ./lmu [now] | |
| // Prints out the value from the ambient light sensor and the back light LED every 1/10 of a second. Optionally print just one value. | |
| // Inspired by the code found at | |
| // http://google-mac-qtz-patches.googlecode.com/svn-history/r5/trunk/AmbientLightSensor | |
| // and http://osxbook.com/book/bonus/chapter10/light/ | |
| // and http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/Archives/Computing/2010_February_10#Mac_OS_X_keyboard_backlight_drivers | |
| // http://forums.macrumors.com/showthread.php?t=1133446 | |
| #include <stdio.h> |