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
Section "InputClass" | |
Identifier "touchpad" | |
Driver "libinput" | |
MatchIsTouchpad "on" | |
Option "NaturalScrolling" "true" | |
Option "ClickMethod" "clickfinger" | |
Option "Tapping" "on" | |
EndSection |
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
Section "InputClass" | |
Identifier "Wacom touch options" | |
MatchDriver "wacom" | |
MatchProduct "Finger" | |
Option "Gesture" "off" | |
EndSection |
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
// polyfill for Array.prototype.fill | |
if (!Array.prototype.fill) { | |
Object.defineProperty(Array.prototype, 'fill', { | |
value: function(value) { | |
if (this == null) { | |
throw new TypeError('this is null or not defined'); | |
} | |
var O = Object(this); |
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/bash | |
set -e | |
tripInfo=$(curl -s https://iceportal.de/api1/rs/tripInfo/trip|jq '.trip') | |
status=$(curl -s https://iceportal.de/api1/rs/status) | |
next=$(echo $tripInfo|jq '.stopInfo.actualNext as $next|.stops[]|select(.station.evaNr == $next)') | |
if [ -z "$next" ]; then | |
echo "Endstation" | |
exit 0 | |
fi |
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 python3 | |
# Send notifications for all mails with the "notify" tag via notify-send | |
# | |
# This is best used in combination with afew. To notify for all new messages just add | |
# the following filter to your ~/.config/afew/config just before [InboxFilter]: | |
# | |
# [Filter.0] | |
# message = notify | |
# query = tag:new AND NOT tag:killed AND NOT tag:spam |
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
function pandoc-md { | |
while true ;do | |
inotifywait -e modify $1 2>/dev/null | |
date | |
pandoc $1 -V geometry:margin=2cm -o $1.pdf | |
done | |
} |
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/bash | |
# install on central git repo as hooks/post-receive | |
# generates timestamp signatures for all commits | |
read oldrev newrev refname | |
mkdir -p timestamps | |
oldrev=$(git rev-parse $oldrev) | |
newrev=$(git rev-parse $newrev) | |
git rev-list "$oldrev..$newrev" | while read commit; do | |
echo "creating timestamp signature for $commit..." |
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
[Unit] | |
Description=<description> | |
# Start after network (network may still not be online on start, see http://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/) | |
#After=network.target | |
[Service] | |
# If the program forks to background | |
#Type=forking | |
ExecStart=<full path to program [with parameters and option]> | |
# Run as specific user |
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/bash | |
# choose pulseaudio sink via rofi or dmenu | |
# changes default sink and moves all streams to that sink | |
sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|rofi -dmenu -p 'pulseaudio sink:' -location 6 -width 100|grep -Po '[0-9]+(?=:)') && | |
# alternate version using dmenu: | |
# sink=$(ponymix -t sink list|awk '/^sink/ {s=$1" "$2;getline;gsub(/^ +/,"",$0);print s" "$0}'|dmenu -p 'pulseaudio sink:'|grep -Po '[0-9]+(?=:)') && | |
ponymix set-default -d $sink && | |
for input in $(ponymix list -t sink-input|grep -Po '[0-9]+(?=:)');do |
NewerOlder