Open Settings
- Appearence -> Style -> Dark
- Appearence -> Desktop Icons -> Disable Show Personal folder
- Notifications -> Do not disturb
- Power -> Screen Blank -> Never
# Flash the image onto a USB stick. | |
# - Replace `/path/to/xubuntu.iso` with the appropriate ISO image. | |
# - Replace `sdX` with the appropriate device node. | |
sudo dd if=/path/to/xubuntu.iso of=/dev/sdX conv=fdatasync status=progress bs=1M | |
# Boot into the USB stick and run the installer. | |
# You might need to boot into the PC's UEFI settings to do so. | |
# Make sure the install medium is botted in UEFI mode! | |
# On the new installation, run the following installers. |
# The commands must be executed in the order bellow! Not doing this may break the installation! | |
# Install python-software-properties if you get a 'command not found' | |
# sudo apt-get install python-software-properties | |
# In case you need to install setuptools | |
# Keep in mind that doing this may destroy pip installation of setuptools | |
# Instead you can pip install setuptools ... :) | |
# wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python |
#!/bin/bash | |
output="<txt>" | |
next="ttttttttttttttttttttttttttt" | |
secondary_color="#5294e2" | |
warning_color="#fea962" | |
########################## |
# /etc/udev/rules.d/10-udev-disks.rules | |
# udev custom rule | |
# using # udevadm info -a -p $(udevadm info -q path -n /dev/sda1) | |
# I found the necessary information about my USB device | |
# and take the necessary ones to make it unique (idVendor, idProduct, serial here) | |
# when plugging the disk, nevermind the device name it gets (sda1, sdb1,...) udev creates /dev/mpd-disk and runs the script indicated | |
KERNEL=="sd?1",ATTRS{idVendor}=="xxxx",ATTRS{idProduct}=="yyyy",ATTRS{serial}=="zzzzzzzzzzzz",SYMLINK+="mpd-disk",RUN+="/root/bin/hdparm-mpd-disk.sh" |
[Unit] | |
Description=Start Chromium GUI | |
After=nginx.service php5-fpm.service mpd.service | |
[Service] | |
Type=simple | |
ExecStart=/opt/start-gui | |
User=pi | |
[Install] |
#!/bin/sh | |
# Usage: add-random [[NUMBER [FILTER]] | |
sels="${1:-10}" | |
filter="${2:-}" | |
mpc listall | grep "$filter" | shuf | head "-n" "$sels" | while read selected | |
do | |
echo "$selected" |
#!/bin/bash | |
# Alarm Playlist Controller Script | |
# ------------------------------- | |
# - Checks if the current playlist is the alarm playlist. | |
# - If not, stops current track, switches to the alarm playlist, and plays it on repeat. | |
# - Waits for 15 minutes. | |
# - If the alarm playlist is still playing, stops it and clears the queue, turning off repeat mode. | |
# - If the current playlist is the alarm playlist at the start, exits immediately. |
#!/usr/bin/env bash | |
# description: Update somafm stations in the stations.sh file | |
# original: https://github.com/rockymadden/somafm-cli/ | |
# deleted all non channel retrieval functionality and | |
# made it output the format expected by stations.sh | |
# and use sed to make the channel update to stations.sh | |
# Fetch channel names and format them for stations array | |
channels=$(curl -s -H 'Accept: application/json' https://somafm.com/channels.json | \ | |
jq -r '.channels | map(.id | @sh) | join(" ")') |
# Move this file to ~/.config/pianobar/config | |
# User | |
user = PANDORA_USERNAME | |
password = PANDORA_PASSWORD | |
# Change this to where your scrobble.py file is | |
event_command = ~/.config/pianobar/scrobble.py |