From 33fd0875249b867dffd256d4a3eeb41475511647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 10 Apr 2017 10:30:59 +0200 Subject: Small fix of email-unread --- config/i3/config | 6 +++--- config/i3blocks/scripts/email | 5 +++-- local/bin/email-unread | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/config/i3/config b/config/i3/config index 3900eb5..db74e37 100644 --- a/config/i3/config +++ b/config/i3/config @@ -154,9 +154,9 @@ bindsym $mod+Shift+q mode "$mode_system" set $displays (d)efault, toggle: 1:eDP 2:HDMI 3:VGA mode "$displays" { bindsym d exec --no-startup-id mxrandr, mode "default" - bindsym 1 exec --no-startup-id mxrandr toggle eDP-1, mode "default" - bindsym 2 exec --no-startup-id mxrandr toggle HDMI-1, mode "default" - bindsym 3 exec --no-startup-id mxrandr toggle VGA-1, mode "default" + bindsym 1 exec --no-startup-id mxrandr toggle eDP1, mode "default" + bindsym 2 exec --no-startup-id mxrandr toggle HDMI1, mode "default" + bindsym 3 exec --no-startup-id mxrandr toggle VGA1, mode "default" # back to normal: Enter or Escape bindsym Return mode "default" diff --git a/config/i3blocks/scripts/email b/config/i3blocks/scripts/email index 3c1fb1f..db2dd29 100755 --- a/config/i3blocks/scripts/email +++ b/config/i3blocks/scripts/email @@ -1,4 +1,5 @@ #!/bin/bash -echo $(email-unread -s | tr "\n" " ") -echo +OUT="$(email-unread -s | tr "\n" " ")" +echo "$OUT" +echo "$OUT" echo "#ffff00" diff --git a/local/bin/email-unread b/local/bin/email-unread index 3956f3b..a17c9b4 100755 --- a/local/bin/email-unread +++ b/local/bin/email-unread @@ -1,4 +1,4 @@ -#!/bin/perl +#!/usr/bin/env perl use strict; use warnings; use File::Find; -- cgit v1.2.3