This file contains 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 | |
# (C) 2008 Canonical Ltd. | |
# Author: Martin Pitt <[email protected]> | |
# License: GPL v2 or later | |
# modified by David D Lowe and Thomas Detoux | |
# Debian 7 support by pixline <[email protected]> | |
# Cinnamon support by hackerb9 <[email protected]> | |
# 2016 major cleanup by hackerb9: cinnamon, debian 8, default extra groups, etc. | |
# |
This file contains 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 | |
# lsix: like ls, but for images. | |
# Shows thumbnails of images with titles directly in terminal. | |
# Version 1.0 | |
# hackerb9, June 2017 | |
numcolors=16 # Number of colors in the palette, if TERM is not xterm |
This file contains 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 | |
# sixcat: Use sixel graphics to show an image inside a terminal. | |
# sixgif: Use sixel graphics to play an animation inside a terminal. | |
# Version 1.0 | |
# hackerb9, June 2017 | |
# Sixel graphics are supported by terminals such as the DEC VT340 and | |
# emulators, such as 'xterm -ti vt340'. |
This file contains 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
# Neep is the loveliest bitmap terminal font I've found so far with good Unicode coverage. | |
# Unfortunately, neep has no italics. | |
# | |
# As a quick workaround, one can use the terminus-oblique font as a replacement by using X fonts.alias. | |
sudo apt-get install xfonts-jmk xfonts-terminus-oblique | |
echo "-jmk-neep-medium-o-normal--20-180-75-75-c-100-iso10646-1 -xos4-terminus-bold-o-normal--20-200-72-72-c-100-iso10646-1" > local.alias | |
echo "-jmk-neep-medium-o-normal--15-140-75-75-c-80-iso10646-1 -xos4-terminus-bold-o-normal--14-140-72-72-c-80-iso10646-1" >> local.alias | |
sudo cp -i local.alias /etc/X11/fonts/misc/local.alias \ |
This file contains 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
Caption: -. point | |
Regular: -. point | |
Subhead: -. point | |
Display: -+ point | |
(For Adobe WarnockPro Opticals) |
This file contains 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
# Some handy informal duration functions in Bourne shell (bash is fine, too). | |
# duration(): given seconds, returns commonsense equivalent duration. | |
# ago(): given seconds from epoch, compares to current time. | |
# howlongago(): show how long ago a file or subdir was last modified. | |
# given a file, shows how long ago that file was updated. | |
# given a directory, recursively searches for most | |
# recently changed FILE (not directory) |
This file contains 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/sh | |
# nonraspbian - | |
# | |
# Find packages installed on my Pi which aren't from the official | |
# Raspberry Pi repositories. | |
aptitude search '?narrow(?installed,!?or(?origin("Raspberry Pi Foundation"),?origin("Raspbian")))' | |
This file contains 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 | |
# Watch files in the current working directory (or given argument) | |
# display how much a file has grown in the last second (or so) | |
# B9 2018 | |
if [ -d "$1" ]; then | |
cd "$1" | |
shift | |
fi |
This file contains 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
;;; -*- lisp -*- | |
;; Just for fun, playing around with making all my xterms lightly transparent. | |
;; NB: This makes titlebar and text transparent, too. | |
(if (is (window_class) "XTerm") | |
(spawn_async | |
(str "xprop -id " (window_xid) | |
" -f _NET_WM_WINDOW_OPACITY 32c" | |
" -set _NET_WM_WINDOW_OPACITY 0xf8000000"))) | |
;; Example: |
OlderNewer