Create AC target (/etc/systemd/system/ac.target
):
[Unit]
Description=On AC power
DefaultDependencies=no
StopWhenUnneeded=yes
#Configuration for the Windows Media Center Transceivers/Remotes (all) remote: MCEUSB | |
#HP MODEL OVU422000/06 HP P/N 5070-2584 | |
#HK 03 50703 G 017733 | |
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb" | |
begin remote | |
name lircd.conf | |
bits 8 |
#!/bin/bash | |
#### pianobar fifo control script | |
PIPE=`cat ${HOME}/.config/pianobar/config | grep -v "#" | grep fifo | tr -d "\ " | cut -d"=" -f2` | |
if [[ ! -p ${PIPE} ]]; then | |
if [[ -z ${PIPE} ]]; then | |
printf "\npianobar fifo not specified in config.\nExiting...\n" | |
exit 1 | |
fi |
""" | |
Small script that syncs the current now playing (MPD) with Icecast | |
By Melan | |
""" | |
import time | |
import os | |
import requests | |
from mpd import MPDClient |
#!/bin/sh | |
notify () { | |
echo "$(gdbus call --session \ | |
--dest org.freedesktop.Notifications \ | |
--object-path /org/freedesktop/Notifications \ | |
--method org.freedesktop.Notifications.Notify \ | |
MPD \ | |
$1 \ | |
"" \ | |
"Now Playing:" \ |
#!/bin/bash | |
# Requirements: go-mtpfs, rsync, fuse2 | |
MUSICDIR="/home/<USER>/Music/" | |
DEVICEMUSICDIR="/mnt/ak70/Internal storage/Music/" | |
MOUNTPOINT="/mnt/ak70/" | |
print_usage() { | |
echo "Usage: $0 mount|umount|drysync|fullsync|hardsync|sync" |
#!/usr/bin/python3 | |
import csv | |
import beets.library | |
from termcolor import colored | |
import beets.ui | |
LIBRARYDB = '/home/MYUSER/.config/beets/library.db' | |
EXPORTIFY_CSV = './spotify.csv' |
blueprint: | |
name: Auto Fan Temperature Control for 3-Speed Fan | |
author: WillCodeForCats | |
description: | |
"This sets the fan speed for a 3-speed fan based on aroom temperature | |
sensor entity. Any fan entity with 3 speeds will work with this blueprint. | |
There are action selectors for both the cycle loop and the shutdown loop for adding | |
control of heating / cooling sources, or anything else you want Home Assistant | |
to do. |
#!/bin/sh | |
# | |
# Update alsa config file with new BD_ADDR | |
# Backup original | |
# Create a new config file if one doesn't exist | |
usage() { | |
echo "Usage: $0 xx:xx:xx:xx:xx:xx" | |
} |
#!/bin/bash | |
sink_name="bluez_sink.00_42_1B_AD_FA_CE" | |
if [ -z "$1" ]; then | |
dbus-monitor --system "path=/org/bluez/777/hci0/dev_00_42_1B_AD_FA_CE, interface=org.bluez.AudioSink, member=Connected" | while read line; do | |
echo $line | |
$0 1 | |
done | |
else |