diff options
author | Guangxiong Lin <[email protected]> | 2022-02-24 22:51:21 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-02-24 22:57:22 +0800 |
commit | da069cf91b08d1a76a005f0ad89159430c1b5f92 (patch) | |
tree | 1f27fb52797f38103eb3b08909a95c28434a0de1 /.config/i3/config | |
parent | fedb63716e2aa4fc58665bc039cfcdcd77a9aec9 (diff) | |
download | dotfiles-da069cf91b08d1a76a005f0ad89159430c1b5f92.tar.gz dotfiles-da069cf91b08d1a76a005f0ad89159430c1b5f92.tar.bz2 dotfiles-da069cf91b08d1a76a005f0ad89159430c1b5f92.zip |
Add shortcuts in i3wm
Diffstat (limited to '.config/i3/config')
-rw-r--r-- | .config/i3/config | 20 |
1 files changed, 20 insertions, 0 deletions
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 |