From 93a0489385f0af79d7ec399552f24826aea52ba6 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 10 Aug 2021 17:00:28 +0200 Subject: [PATCH] polybar: document IPC modules require 3.6+ --- dotfiles/polybar.conf | 49 ++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/dotfiles/polybar.conf b/dotfiles/polybar.conf index be14d56..27891b4 100644 --- a/dotfiles/polybar.conf +++ b/dotfiles/polybar.conf @@ -98,30 +98,6 @@ type = internal/memory interval = 5 label =  %percentage_used: 2%% -[module/network] -type = custom/ipc -hook-0 = cat $XDG_RUNTIME_DIR/i3/network.txt 2> /dev/null -initial = 1 - -[module/bluetooth] -type = custom/ipc -hook-0 = cat $XDG_RUNTIME_DIR/i3/bluetooth.txt 2> /dev/null -initial = 1 - -[module/weather] -type = custom/ipc -hook-0 = cat $XDG_RUNTIME_DIR/i3/weather.txt 2> /dev/null -initial = 1 -click-left = xdg-open https://www.meteoblue.com/en/weather/week - -[module/dunst] -type = custom/ipc -hook-0 = cat $XDG_RUNTIME_DIR/i3/dunst.txt 2> /dev/null -initial = 1 -click-left = dunstctl set-paused toggle -scroll-down = dunstctl close -scroll-up = dunstctl history-pop - [module/date] type = internal/date interval = 2 @@ -176,3 +152,28 @@ ramp-volume-4 =  ramp-volume-5 =  ramp-volume-6 =  ramp-volume-7 =  + +# All IPC modules require 3.6+ +[module/network] +type = custom/ipc +hook-0 = cat $XDG_RUNTIME_DIR/i3/network.txt 2> /dev/null +initial = 1 + +[module/bluetooth] +type = custom/ipc +hook-0 = cat $XDG_RUNTIME_DIR/i3/bluetooth.txt 2> /dev/null +initial = 1 + +[module/weather] +type = custom/ipc +hook-0 = cat $XDG_RUNTIME_DIR/i3/weather.txt 2> /dev/null +initial = 1 +click-left = xdg-open https://www.meteoblue.com/en/weather/week + +[module/dunst] +type = custom/ipc +hook-0 = cat $XDG_RUNTIME_DIR/i3/dunst.txt 2> /dev/null +initial = 1 +click-left = dunstctl set-paused toggle +scroll-down = dunstctl close +scroll-up = dunstctl history-pop