From bb7a91410c20ab7fc4fb0362718a785d44c32115 Mon Sep 17 00:00:00 2001 From: Cian Bagshaw Date: Fri, 16 Jun 2023 00:51:51 +0100 Subject: [PATCH] Renamed volume script Renamed 'gvol' ("get volume") to, simply, 'vol' as it can now set volume as well. --- .config/i3/config | 12 ++++++------ .config/i3blocks/config | 4 ++-- .local/bin/{gvol => vol} | 0 3 files changed, 8 insertions(+), 8 deletions(-) rename .local/bin/{gvol => vol} (100%) diff --git a/.config/i3/config b/.config/i3/config index 212b951..6d95e78 100755 --- a/.config/i3/config +++ b/.config/i3/config @@ -12,12 +12,12 @@ exec_always picom floating_modifier $mod # volumes -bindsym $mod+plus exec amixer set Master 5%+ && notify-send " $(gvol) (+5%)" -bindsym $mod+minus exec amixer set Master 5%- && notify-send " $(gvol) (-5%)" -bindsym $mod+Shift+plus exec amixer set Capture 5%+ && notify-send " $(gvol Capture) (+5%)" -bindsym $mod+Shift+minus exec amixer set Capture 5%- && notify-send " $(gvol Capture) (-5%)" -bindsym $mod+backslash exec amixer set Master toggle && notify-send " $(gvol)" -bindsym $mod+Shift+backslash exec amixer set Capture toggle && notify-send " $(gvol Capture)" +bindsym $mod+plus exec notify-send " $(vol Master 5%+) (+5%)" +bindsym $mod+minus exec notify-send " $(vol Master 5%-) (-5%)" +bindsym $mod+backslash exec notify-send " $(vol Master toggle)" +bindsym $mod+Shift+plus exec notify-send " $(vol Capture 5%+) (+5%)" +bindsym $mod+Shift+minus exec notify-send " $(vol Capture 5%-) (-5%)" +bindsym $mod+Shift+backslash exec notify-send " $(vol Capture toggle)" # start a terminal bindsym $mod+Return exec alacritty diff --git a/.config/i3blocks/config b/.config/i3blocks/config index 34e4d05..0ae279d 100644 --- a/.config/i3blocks/config +++ b/.config/i3blocks/config @@ -8,12 +8,12 @@ command=uptime -p interval=60 [speaker volume] -command=gvol +command=vol label= interval=10 [mic volume] -command=gvol Capture +command=vol Capture label= interval=10 diff --git a/.local/bin/gvol b/.local/bin/vol similarity index 100% rename from .local/bin/gvol rename to .local/bin/vol -- 2.20.1