aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2017-04-10 10:30:59 +0200
committerKarel Kočí <cynerd@email.cz>2017-04-10 10:30:59 +0200
commit33fd0875249b867dffd256d4a3eeb41475511647 (patch)
treee925faa0864c85cb2e547d0c3aa0680c2ea6508a
parent3b15d8dcd8912825281367ed959d7ad212e6a0ab (diff)
downloadmyconfigs-33fd0875249b867dffd256d4a3eeb41475511647.tar.gz
myconfigs-33fd0875249b867dffd256d4a3eeb41475511647.tar.bz2
myconfigs-33fd0875249b867dffd256d4a3eeb41475511647.zip
Small fix of email-unread
-rw-r--r--config/i3/config6
-rwxr-xr-xconfig/i3blocks/scripts/email5
-rwxr-xr-xlocal/bin/email-unread2
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;