Skip to content

Instantly share code, notes, and snippets.

View NuxRo's full-sized avatar

NuxRo NuxRo

  • Delta Quadrant
View GitHub Profile
@NuxRo
NuxRo / msteams.lua
Created March 13, 2020 13:46
Apply Windows Decorations to Microsoft Teams
-- MS Teams on Linux doesn't show the window decorations, let's fix that
-- drop this in your devilspie2 folder, typically ~/.config/devilspie2 and start devilspie2
if string.match(get_window_name(), "Microsoft Teams") then
decorate_window();
end
@NuxRo
NuxRo / MATEScreensaverMutesAudio.sh
Last active December 11, 2019 13:51
Detect if MATE screen saver is running and mute audio
#!/bin/bash
# run this in the background once you log in
while true;
do mate-screensaver-command -q|grep -wq active && amixer -q -D pulse sset Master off || amixer -q -D pulse sset Master on; sleep 10; done
done
@NuxRo
NuxRo / newalpinemail.sh
Created November 20, 2019 13:42
Alpine mail client new email notifications
#!/bin/bash
# set alpine to
# newmail-fifo-path=~/tmp/alpine.fifo
# then
fifofile=~/tmp/alpine.fifo
while true; do
@NuxRo
NuxRo / convertwhatsapp.sh
Created August 16, 2019 13:19
Convert video files to be whatsapp compatible
#!/bin/bash
# drop it in ~/bin and install ffmpeg
# usage: convertwhatsapp.sh video.file
ffmpeg -i "$1" -strict -2 -c:v libx264 -c:a aac "whatsapp-$1.mp4"