From 1cb6094dac854e543247a8cc605a1d882ba1c5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 12 Dec 2020 08:46:34 +0100 Subject: allsync: automatic synchronization --- config/i3/config | 2 +- config/i3blocks/config | 6 ++++++ config/i3blocks/scripts/allsync | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 config/i3blocks/scripts/allsync (limited to 'config') diff --git a/config/i3/config b/config/i3/config index 8bf7048..354722c 100644 --- a/config/i3/config +++ b/config/i3/config @@ -184,7 +184,7 @@ for_window [ title="Pulsemixer" ] resize set 50 ppt 50 ppt for_window [ title="Pulsemixer" ] move position center # Run and configure synchronization bindsym $mod+i exec alacritty -t "Synchronization" -e allsync -bindsym $mod+Shift+i exec alacritty -t "Synchronization" -e allsync toggle +bindsym $mod+Shift+i exec --no-startup-id allsync toggle for_window [ title="Synchronization" ] floating enable # Screen brightness controls diff --git a/config/i3blocks/config b/config/i3blocks/config index ab6cf62..50289c5 100644 --- a/config/i3blocks/config +++ b/config/i3blocks/config @@ -55,9 +55,15 @@ interval=10 markup=pango interval=30 +[allsync] +command=~/.config/i3blocks/scripts/allsync +interval=120 +signal=13 + [email] command=~/.config/i3blocks/scripts/email interval=30 +signal=13 [time] command=date '+%Y-%m-%d %H:%M:%S' diff --git a/config/i3blocks/scripts/allsync b/config/i3blocks/scripts/allsync new file mode 100755 index 0000000..211799d --- /dev/null +++ b/config/i3blocks/scripts/allsync @@ -0,0 +1,6 @@ +#!/bin/bash +if allsync enabled; then + echo "sync" + echo + echo "#ffff00" +fi -- cgit v1.2.3