Skip to content

Instantly share code, notes, and snippets.

958590
958620
958622
958623
958646
958648
958657
958659
958700
958701
#! /bin/sh
# With icon indicating the state of the mic
state=`amixer set Capture toggle | gawk 'match($0, /Front Left.*\[(.*)\]/, a) {print a[1]}'`
if [ $state = "off" ]; then
icon="audio-input-microphone-muted-symbolic"
else
icon="audio-input-microphone-symbolic"
fi
notify-send --hint=int:transient:1 -i $icon "Mic switched: $state"
@JosephCastro
JosephCastro / lenovo-touchpad.sh
Created June 18, 2020 18:21
Lenovo touchpad works like a mac (something like that)
#!/bin/sh
# this script sets some parameters to get a useable configuration
# these changes are not persistent, you may want to include this in your autostart
# 1 finger = left click, 2 finger = right click, 3 finger = middle click
synclient TapButton2=3
synclient TapButton3=2
synclient ClickFinger2=3
synclient ClickFinger3=2
import tempfile
import boto3
import sys
class S3TempFile(object):
def __init__(self, bucket, key):
self.bucket = bucket
self.key = key