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/perl | |
use warnings; | |
use strict; | |
use v5.010; | |
$_ = qx/pacmd list-sinks/; | |
my ($sink, $vol) = /(?:^|\n)\h*\* index: (\S+).*?\n\h*volume:[^\n]*?(\d+)%/s; | |
if (scalar @ARGV == 1 and $ARGV[0] =~ /^ (-|\+)? (\d+)% | (toggle) $/x) { | |
if ($3) { | |
system "pactl set-sink-mute $sink toggle"; |
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 | |
# This script is intended to control the fan speeds on an ASRock X470 Taichi | |
# motherboard, while also using a GPU's temperatures as input. | |
# | |
# ------------------------------ | |
# ASRock X470 Taichi Motherboard | |
# ------------------------------ | |
# | |
# This board's sensors are at /sys/devices/platform/nct6775.656/ |
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 | |
## | |
## Description: | |
## Track system log for error messages and show desktop notifications. | |
## | |
## filter messages that shouldn't show a notification | |
filter() { | |
grep --line-buffered -vE \ | |
-e ': gkr-pam: unable to locate daemon control file$' \ |