Skip to content

Instantly share code, notes, and snippets.

View reneroboter's full-sized avatar
🐘

René Backhaus reneroboter

🐘
View GitHub Profile
#!/bin/bash
cd "/home/rs/.config/i3/"
import -silent -window root lock.png;
convert lock.png -scale 10% -scale 1000% lock.png
i3lock -i lock.png --textcolor=eee8d5ff --ringcolor=07364295 --keyhlcolor=268bd295 --bshlcolor=dc322f95 --insidecolor=002b3695 --insidevercolor=268bd295 --ringvercolor=268bd295 --insidewrongcolor=dc322f95 --ringwrongcolor=dc322f95 --linecolor=07364295 --separatorcolor=07364295;
@reneroboter
reneroboter / pronunciation.js
Created August 11, 2022 09:41
A little poc for creating an pronunciation trainer
let counter = 0;
let pronunciationTrainer = setInterval(() => {
if(counter > 10) {
clearInterval(pronunciationTrainer);
}
let words = ['whom', 'authenticity', 'thus'];
let selectWord = Math.floor(Math.random() * words.length)
let utterance = new SpeechSynthesisUtterance(words[selectWord]);
utterance.lang = 'en';
speechSynthesis.speak(utterance);