diff options
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/dmscrot | 3 | ||||
| -rwxr-xr-x | .local/bin/kb | 2 | ||||
| -rwxr-xr-x | .local/bin/mic | 8 | ||||
| -rwxr-xr-x | .local/bin/mixer-set | 6 | ||||
| -rwxr-xr-x | .local/bin/setwp | 4 |
5 files changed, 11 insertions, 12 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/kb b/.local/bin/kb index dd77f11..32cf2a2 100755 --- a/.local/bin/kb +++ b/.local/bin/kb @@ -57,7 +57,7 @@ config_keyboard() { xmodmap -e 'keycode 23 = Escape' xmodmap -e 'keycode 37 =' fi - herbe ' kb set' & + herbe 'kb set' & } config_keyboard 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; } diff --git a/.local/bin/setwp b/.local/bin/setwp index 647a332..fa0d255 100755 --- a/.local/bin/setwp +++ b/.local/bin/setwp @@ -95,8 +95,8 @@ sub main if (@ARGV == 0 || (@ARGV != 0 && $ARGV[0] ne '-nw')) { my $arg = fork(); if (not $arg) { - exec('herbe', ' wp set') if ($ret == 0); - exec('herbe', ' wp is not a valid file') if ($ret != 0); + exec('herbe', 'wp set') if ($ret == 0); + exec('herbe', 'wp is not a valid file') if ($ret != 0); } } return; |
