Skip to content

Instantly share code, notes, and snippets.

@THS-on
THS-on / auto_attach_filter.lua
Last active May 28, 2021
WirePlumber script to automatically attach a filter to a device
View auto_attach_filter.lua
#!/usr/bin/wpexec
local mic_name = "alsa_input.usb-C-Media_Electronics_Inc._USB_Audio_Device-00.mono-fallback"
local filter_name = "rnnoise_source"
local link_props = {
["link.output.port"] = nil,
["link.input.port"] = nil,
["link.output.node"] = nil,
["link.input.node"] = nil
View gist:3faf92fe850eb1a075b73697751f9c9f
fsview & export PID=$(echo $!) && xdotool windowsize $(xdotool search --sync --pid $PID | tail -1) 100% 100%
@THS-on
THS-on / libinput.conf
Created Jul 11, 2017
libinput.conf for Lernstick
View libinput.conf
# This enables to-to-click and disables naturalscrolling in Mate, LXDE, XFCE and Enlightment
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "on"
Option "NaturalScrolling" "false"
EndSection
@THS-on
THS-on / README.md
Last active May 14, 2017
README for lernstickWelcome
View README.md

lernstickWelcome

HOWTO import this project into Netbeans

The best way to build lernstickWelcome is on the Lernstick itself, because all dependencies are already installed.

Install Netbeans on Lernstick

Go into the Welcome program and install Netbeans.

Import lernstickWelcome into Netbeans

View firefox-private.desktop
[Desktop Entry]
Version=1.0
Name= Firefox Privat
Exec=/usr/lib/firefox/firefox --private-window %u
Icon=firefox
Terminal=false
Type=Application
@THS-on
THS-on / panel
Last active Feb 27, 2017
Lernstick Tweaks
View panel
# Please copy to /home/user/.config/lxpanel/LXDE/panels/panel
# lxpanel <profile> config file. Manually editing is not recommended.
# Use preference dialog in lxpanel to adjust config when you can.
Global {
edge=bottom
allign=left
margin=0
widthtype=percent
width=100
View install-arc.sh
#!/bin/sh
# Created by THS
# Support for LXDE, Mate, Gnome, Cinnamon and XFCE
# Uses https://github.com/horst3180/arc-theme and https://github.com/dglava/arc-openbox
# Install arc-theme will be replaced in Debian 9
echo "Install Arc Theme"
echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/Debian_8.0/ /' | sudo tee /etc/apt/sources.list.d/arc-theme.list
wget http://download.opensuse.org/repositories/home:Horst3180/Debian_8.0/Release.key
sudo apt-key add - < Release.key
@THS-on
THS-on / connect-epoptes.py
Last active Oct 2, 2016
Helper scripts for Epoptes and BYOD
View connect-epoptes.py
#!/usr/bin/python2
#Connect to an Epoptes server
import Tkinter
import subprocess
import netifaces
class connect_tk(Tkinter.Tk):
def __init__(self,parent):
Tkinter.Tk.__init__(self,parent)
@THS-on
THS-on / playercorefactory.xml
Last active Feb 22, 2016
Fix for Firetv - Audioplayback over smb-share
View playercorefactory.xml
<playercorefactory>
<rules action="prepend">
<rule name="audio" audio="true" player="DVDPlayer" />
</rules>
</playercorefactory>