Compare commits

..
5 Commits
4 changed files with 19 additions and 6 deletions
+6 -3
View File
@@ -1,6 +1,9 @@
bindsym $mod+F7 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% #&& $refresh_i3status bindsym $mod+F7 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && ~/.config/i3/scripts/volume.sh
bindsym $mod+F8 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle #&& $refresh_i3status bindsym $mod+F8 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && ~/.config/i3/scripts/volume.sh
bindsym $mod+F9 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% #&& $refresh_i3status bindsym $mod+F9 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && ~/.config/i3/scripts/volume.sh
bindsym $mod+F10 exec --no-startup-id playerctl previous
bindsym $mod+F11 exec --no-startup-id playerctl play-pause
bindsym $mod+F12 exec --no-startup-id playerctl next
bindsym $mod+Return exec kitty bindsym $mod+Return exec kitty
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
bindsym $mod+d exec --no-startup-id "rofi -modi drun,run,window -show drun" bindsym $mod+d exec --no-startup-id "rofi -modi drun,run,window -show drun"
+3 -2
View File
@@ -6,7 +6,8 @@ bgcolor='#2d2d2dcc'
ubgcolor='#00afff' ubgcolor='#00afff'
textcolor='#ffffff' textcolor='#ffffff'
alertcolor='#ff5555' alertcolor='#ff5555'
insidecolor='#2d2d2d88' insidecolor='#2d2d2d88'
keycolor='#6b8e23'
i3lock -n \ i3lock -n \
--blur 5 \ --blur 5 \
@@ -30,7 +31,7 @@ i3lock -n \
--insidewrong-color=$insidecolor \ --insidewrong-color=$insidecolor \
--ringwrong-color=$alertcolor \ --ringwrong-color=$alertcolor \
\ \
--keyhl-color=$textcolor \ --keyhl-color=$keycolor \
--bshl-color=$alertcolor \ --bshl-color=$alertcolor \
\ \
--time-color=$textcolor \ --time-color=$textcolor \
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
volume=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po '\d+(?=%)' | head -1)
mute=$(pactl get-sink-mute @DEFAULT_SINK@ | grep -Po '(?<=Mute: )(yes|no)')
if [ "$mute" = "yes" ]; then
notify-send -a "System" -r 9993 -i audio-volume-muted "Muted" --urgency=LOW -t 1000
else
notify-send -a "System" -r 9993 -h int:value:"$volume" -i audio-volume-high "Volume: ${volume}%" --urgency=LOW -t 1000
fi
-1
View File
@@ -6,7 +6,6 @@ detect-client-opacity = true;
use-ewmh-active-win = true; use-ewmh-active-win = true;
unredir-if-possible = false; unredir-if-possible = false;
detect-transient = true; detect-transient = true;
detect-client-leader = true;
use-damage = false; use-damage = false;
window-shader-fg = "default"; window-shader-fg = "default";
transparent-clipping = false; transparent-clipping = false;