Skip to content

Instantly share code, notes, and snippets.

View Monsterovich's full-sized avatar
🌴
On vacation

Monsterovich

🌴
On vacation
View GitHub Profile
@Monsterovich
Monsterovich / .asoundrc
Last active June 26, 2018 13:37
Set different volume levels for each app in ALSA (fuck pulseaudio) + you can record sound from soundcard
#
# Defaults
#
# Step 1: Put this file to $HOME
# Step 2: Configure your application http://www.zimagez.com/zimage/2017-03-1121-55-45.php
# Have fun! http://www.zimagez.com/zimage/2017-03-1121-56-31.php
#
# Defaults
#
@Monsterovich
Monsterovich / scgb_launcher.sh
Last active July 8, 2017 15:31
This script runs scgb groups (v4)
#!/bin/bash
scgbdir='/mnt/srvdata/server/scgb-hosts/'
botexe=$scgbdir'main/scgb.py'
config='/config.py'
groupsfile='groups.txt'
time=120
txtpath=$scgbdir''$groupsfile
#!/usr/bin/env bash
# A pop-up dictionary based on translate-shell and notifications
# Bind this script to a hotkey and select a word to get its dictionary entry.
# https://github.com/soimort/translate-shell
# ' and " are removed
text=$(xsel -o | sed "s/[\"']//g")
path=$(dirname "$0")
output=$(sh ${path}/translate --no-ansi ${text})