From 75e41aaccaa79c48c38cfed849767ed05bac8b2f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Kalvoda?= <jirikalvoda@kam.mff.cuni.cz>
Date: Sat, 10 Oct 2020 10:06:41 +0200
Subject: [PATCH] I3 OSD alternative keys.

---
 i3/config | 18 ++++++++++++------
 1 file changed, 12 insertions(+), 6 deletions(-)

diff --git a/i3/config b/i3/config
index 76036a2..ada25e6 100644
--- a/i3/config
+++ b/i3/config
@@ -334,7 +334,8 @@ mode "System modifikator"
 	bindsym Shift+bracketright mode "default"; exec "gksudo -g gparted"
 	bindsym Ctrl+bracketright mode "default"; exec "gksudo -g gnome-disks"
 
-	bindcode 94 exec --no-startup-id "osdd-run & sleep 0.1;osdc --color=red RESTART"
+	bindcode      94 exec --no-startup-id "osdd-run & sleep 0.1;osdc --color=red RESTART"
+	bindcode $mod+51 exec --no-startup-id "osdd-run & sleep 0.1;osdc --color=red RESTART"
 }
  
 bindcode 121 exec "echo $(( 1 - $(cat ~/.config/micloop/mute) )) > ~/.config/micloop/mute;pacmd set-sink-input-mute $(cat ~/.config/micloop/id) $(cat ~/.config/micloop/mute) ; notify-send 'loopmic mute' $(cat ~/.config/micloop/mute) -h string:x-canonical-private-synchronous:anything"
@@ -379,10 +380,15 @@ bindsym $mod+Shift+o exec --no-startup-id killall -3 mate-session; exec --no-sta
 
 exec "setxkbmap us,cz -variant ,ucw -option grp:caps_switch"
 
-exec "osd-run"
+exec "sleep 2; osd-run & sleep 0.1;osdc --color=red START"
+
+bindcode      94 exec "osdc --duration=1 \\"\\""
+bindcode $mod+51 exec "osdc --duration=1 \\"\\""
+bindcode Shift+     94 exec "osdc --skip=1 --log=0 --duration=1 \\"\\""
+bindcode Shift+$mod+51 exec "osdc --skip=1 --log=0 --duration=1 \\"\\""
+bindcode Ctrl+     94 exec "osd-clock"
+bindcode Ctrl+$mod+51 exec "osd-clock"
+bindcode Ctrl+Shift     +94 exec "terminal -e bash -i -c \\"cat ~/.osdd_log;read\\""
+bindcode Ctrl+Shift+$mod+51 exec "terminal -e bash -i -c \\"cat ~/.osdd_log;read\\""
 
-bindcode 94 exec "osdc --duration=1 \\"\\""
-bindcode Shift+94 exec "osdc --skip=1 --log=0 --duration=1 \\"\\""
-bindcode Ctrl+94 exec "osd-clock"
-bindcode Ctrl+Shift+94 exec "terminal -e bash -i -c \\"cat ~/.osdd_log;read\\""
 bindcode $mod+94 exec "terminal"
-- 
GitLab