From da069cf91b08d1a76a005f0ad89159430c1b5f92 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Thu, 24 Feb 2022 22:51:21 +0800 Subject: Add shortcuts in i3wm --- .config/i3/config | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to '.config') diff --git a/.config/i3/config b/.config/i3/config index ca6e0a0..abb77e9 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -10,6 +10,8 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 +set $Terminal urxvt +set $WebBrowser qutebrowser # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. @@ -205,6 +207,24 @@ mode "$mode_system" { bindsym $mod+Shift+c mode "$mode_system" +set $mode_launch Launch [a] org-agenda [c] org-capture [j] org-roam-dailies [w] webbrowser [m] mutt [n] newsboat +set $org_agenda emacs -f org-agenda -f delete-other-windows +set $org_capture emacs -f org-capture -f delete-other-windows +set $org_roam_dailies emacs -f org-roam-dailies-goto-today -f delete-other-windows +mode "$mode_launch" { + bindsym a exec $org_agenda, mode "default" + bindsym m exec $Terminal -e mutt, mode "default" + bindsym n exec $Terminal -e newsboat, mode "default" + bindsym w exec $WebBrowser, mode "default" + bindsym c exec $org_capture, mode "default" + bindsym j exec $org_roam_dailies, mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+Return mode "default" +} +bindsym $mod+Return mode "$mode_launch" + bindsym $mod+e layout toggle split bindsym $mod+s layout stacking bindsym $mod+w layout tabbed -- cgit v1.2.3