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
ranger-cd() { | |
tempfile=$(mktemp) | |
ranger --choosedir="$tempfile" "${@:-$(pwd)}" < $TTY | |
test -f "$tempfile" && | |
if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then | |
cd -- "$(cat "$tempfile")" | |
fi | |
rm -f -- "$tempfile" | |
# hacky way of transferring over previous command and updating the screen | |
VISUAL=true zle edit-command-line |
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
Description='eduroam-monash' | |
Interface=wlp3s0 | |
Connection='wireless' | |
Security='wpa-configsection' | |
IP='dhcp' | |
WPAConfigSection=( | |
'ssid="eduroam"' | |
'key_mgmt=WPA-EAP' | |
'eap=PEAP' | |
'auth_alg=OPEN' |
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/python3 | |
# vim: tabstop=4 noexpandtab shiftwidth=4 softtabstop=0 | |
import json, string, subprocess, sys | |
def usage(mode=False): | |
if not mode: | |
suffix = '([--direction] {prev, next} | --name name | --num number)' | |
elif mode == 'name': | |
suffix = '--name name' |
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
SUBSYSTEM=="input", ENV{ID_BUS}=="usb", ENV{ID_INPUT_LEOPARD}=="?*", ACTION=="add", SYMLINK+="kbd%n", RUN+="/usr/local/bin/kbdctl m" | |
SUBSYSTEM=="input", ENV{ID_BUS}=="usb", ENV{ID_INPUT_LEOPARD}=="?*", ACTION=="remove", RUN+="/usr/local/bin/kbdctl a" |
NewerOlder