aboutsummaryrefslogtreecommitdiff
path: root/.config/i3/config
diff options
context:
space:
mode:
Diffstat (limited to '.config/i3/config')
-rw-r--r--.config/i3/config7
1 files changed, 5 insertions, 2 deletions
diff --git a/.config/i3/config b/.config/i3/config
index de6d630..e85826a 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -14,7 +14,7 @@ exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio and display it in Volnoti
-set $show_volume volnoti-show $(amixer get Master | grep -Po '[0-9]+(?=%)' | head -1)
+set $show_volume volnoti-show $(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ +5% && $show_volume"
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-volume @DEFAULT_SINK@ -5% && $show_volume"
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute @DEFAULT_SINK@ toggle && if amixer get Master | grep -Fq '[off]'; then volnoti-show -m; else $show_volume; fi"
@@ -203,9 +203,12 @@ gaps inner 12
# i3blocks
bar {
- status_command i3blocks -c ~/.config/i3blocks.conf
+ status_command i3blocks -c ~/.config/i3blocks/i3blocks.conf
+ font pango:DejaVuSansMono Nerd Font 9
+ height 26
position top
colors {
+ background #111111
focused_workspace $yellow $yellow #000000
active_workspace #333333 #333333 $purple
inactive_workspace #CECECE #333333 #f1f1f1