diff options
Diffstat (limited to '')
| -rwxr-xr-x | .local/bin/dmscrot | 3 | ||||
| -rwxr-xr-x | .local/bin/mic | 8 | ||||
| -rwxr-xr-x | .local/bin/mixer-set | 6 | 
3 files changed, 8 insertions, 9 deletions
| diff --git a/.local/bin/dmscrot b/.local/bin/dmscrot index 2746cd7..b23d886 100755 --- a/.local/bin/dmscrot +++ b/.local/bin/dmscrot @@ -40,8 +40,7 @@ sub notify_img  	if (not $pid) {  		system(  			NOTIFY_PATH, -			'  screenshot captured to ' . "\n" . -			$file +			'screenshot captured to ' . "\n" . $file  		);  	}  	return; diff --git a/.local/bin/mic b/.local/bin/mic index 06597ff..67a9bfa 100755 --- a/.local/bin/mic +++ b/.local/bin/mic @@ -32,10 +32,10 @@ sub mic  		my $muted = `/usr/bin/pactl get-source-mute \@DEFAULT_SOURCE\@ | awk '{print \$2}'`;  		chomp $muted;  		if ($muted eq "yes") { -			notify('   muted'); +			notify('[mic] muted');  		}  		else { -			notify('  restored'); +			notify('[mic] restored');  		}  		exit;  	} @@ -45,12 +45,12 @@ sub mic  		capture {  			system(MIXER_PATH, 'rec', '100');  		}; -		notify('  microphone restored'); +		notify('[mic] microphone restored');  	}  	else {  		capture {  			system(MIXER_PATH, 'rec', '0'); -			notify('   microphone muted'); +			notify('[mic] microphone muted');  		};  	}  	return; diff --git a/.local/bin/mixer-set b/.local/bin/mixer-set index 3979ff2..2f905ca 100755 --- a/.local/bin/mixer-set +++ b/.local/bin/mixer-set @@ -62,7 +62,7 @@ sub main {  		}  		$curr_vol = `$curr_vol_cmd`;  		chomp $curr_vol; -		notify('  ' . $curr_vol); +		notify('[vol] ' . $curr_vol);  		exit;  	}  	elsif ($ARGV[0] eq "toggle") { @@ -85,7 +85,7 @@ sub main {  					);  				};  			} -			notify('   muted'); +			notify('[vol] muted');  		}  		else {  			open(my $fh, '<:encoding(UTF-8)', $tmp_file); @@ -104,7 +104,7 @@ sub main {  					);  				};  			} -			notify('  ' . $curr_vol); +			notify('[vol] ' . $curr_vol);  		}  		exit;  	} | 
