Create AC target (/etc/systemd/system/ac.target
):
[Unit]
Description=On AC power
DefaultDependencies=no
StopWhenUnneeded=yes
#!/bin/bash | |
#=============================================================================== | |
# | |
# FILE: install_mpd.sh | |
# USAGE: ./install_mpd.sh | |
# DESCRIPTION: This script installs MPD (Music Player Daemon) and its | |
# dependencies. It detects the distribution (Debian or Ubuntu) | |
# and installs the appropriate packages accordingly. | |
# | |
# OPTIONS: None |
#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 | |
# Compile and install pianobar on Debian | |
# Install needed apps and libraries | |
sudo apt install libgcrypt20-dev make libasound2-dev curl libjson-c6-dev git | |
# Git Clone pianobar repo | |
git clone https://github.com/PromyLOPh/pianobar.git | |
cd pianobar |
#!/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 |
#!/bin/bash | |
# Compile and install pianobar on Ubuntu | |
# Install needed apps and libraries | |
sudo apt install git libgcrypt20-dev make libasound2-dev curl libjson-c-dev | |
# Git Clone pianobar repo | |
git clone https://github.com/PromyLOPh/pianobar.git | |
cd pianobar |
""" | |
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' |