From ca8b969484f7434a9bcb9cabefda949bda005da0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Thu, 7 Nov 2019 09:55:58 +0100 Subject: [PATCH] [i3] Added calendar to date --- i3/Makefile | 6 ++++-- i3/config | 1 + i3/i3blocks/blocks/date | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/i3/Makefile b/i3/Makefile index a573621..97089a8 100644 --- a/i3/Makefile +++ b/i3/Makefile @@ -7,7 +7,8 @@ REQUIRED_BINS=\ /usr/bin/compton \ /usr/bin/numlockx \ /usr/bin/gedit \ - /usr/lib/policykit-1/polkit-gnome-authentication-agent-1 + /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 \ + /usr/bin/gsimplecal PACKAGES=\ i3 \ @@ -18,7 +19,8 @@ PACKAGES=\ numlockx \ gedit \ xautolock \ - policykit-1-gnome + policykit-1-gnome \ + gsimplecal I3_CONFIG=config I3_CONFIG_OUT=$(HOME)/.config/i3/config diff --git a/i3/config b/i3/config index 36d64c8..c4981e9 100644 --- a/i3/config +++ b/i3/config @@ -242,3 +242,4 @@ for_window [class="Steam" title="Friends List"] floating enable for_window [class="Steam" title="^Steam - News.+"] floating enable for_window [class="Steam" title="Steam - Self Updater"] floating enable for_window [class="org.remmina.Remmina"] border pixel 0 +for_window [class="Gsimplecal"] floating enable, move position mouse, move down 25 px diff --git a/i3/i3blocks/blocks/date b/i3/i3blocks/blocks/date index 3bbae79..df965f4 100755 --- a/i3/i3blocks/blocks/date +++ b/i3/i3blocks/blocks/date @@ -3,3 +3,10 @@ FORMAT=+%Y.%m.%d\ %H:%M date "$FORMAT" + +case $BLOCK_BUTTON in + 1) gsimplecal ;; # left click? + 3) ;; # right click + 4) ;; # scroll up + 5) ;; # scroll down +esac