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 | |
# this goes into /etc/initramfs-tools/scripts/init-premount/a_enable_wireless | |
PREREQ="" | |
prereqs() | |
{ | |
echo "$PREREQ" | |
} | |
case $1 in | |
prereqs) |
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
#!/usr/bin/env sh | |
# Removing pulseaudio means removing pacmd, so this is an attempt at switching the default via pactl instead. | |
# It successfully sets the default - but I'm unsure whether programs still respect that default or not. | |
# Cycles through all sources and sets whatever is the next one as the default. | |
# Pass -g to just print the current default source | |
CUR_DEFAULT="$(pactl info | grep 'Default Source' | cut -d':' -f 2)" | |
SOURCES="$(pactl list short sources | cut -d' ' -f 2)" |
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
#! /usr/bin/env sh | |
# Removing pulseaudio means removing pacmd, so this is an attempt at switching the default via pactl instead. | |
# It successfully sets the default - BUT it appears my programs don't go to that default for some reason? | |
# Unlike the other scripts where sinks are specified, this just switches between whatever sinks exist. | |
# Sinks can be specified by name or index. Index changes sometimes when you disconnect and reconnect, restart or whatever, so names are better. | |
# Annoyingly the command used to switch audio over to a new sink cannot take a name as its argument, otherwise I'd only need the name here. | |
# TODO: Trigger a zenity or dmenu dialog with entr that asks whether to switch monitor and/or sound to hdmi? Could do |
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
port: 1818 | |
commands: | |
# Join Push Text : Command to run | |
"eg=:=shutdown": "systemctl poweroff" |
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
machine github.com | |
login technoweenie | |
password SECRET | |
machine api.github.com | |
login technoweenie | |
password SECRET |