From 03ba0e17b24789806174baccbcf28b4c1a992b82 Mon Sep 17 00:00:00 2001 From: horhik Date: Mon, 3 May 2021 00:12:50 +0300 Subject: [PATCH] add eww-toggle --- home/scripts/.local/scripts/bin/eww-toggl | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 home/scripts/.local/scripts/bin/eww-toggl diff --git a/home/scripts/.local/scripts/bin/eww-toggl b/home/scripts/.local/scripts/bin/eww-toggl new file mode 100755 index 0000000..9ee3a38 --- /dev/null +++ b/home/scripts/.local/scripts/bin/eww-toggl @@ -0,0 +1,11 @@ +#!/bin/sh +eww + +mon=$(~/.config/eww/scripts/checkmonitor); +if [ $(cat /tmp/eww_open) ]; then eww open redshift --monitor $mon; + eww open player --monitor $mon; + # eww open calendar_full --monitor $mon; + rm /tmp/eww_open; +else eww close-all; + echo true > /tmp/eww_open; +fi;