.i3/config.d/20-binds

Fri, 15 Nov 2019 23:03:38 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 15 Nov 2019 23:03:38 -0500
changeset 822
63a61745e560
parent 820
9363e3a29dba
permissions
-rw-r--r--

keyboard exit ugh

378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 # Use Mouse+$mod to drag floating windows to their wanted position
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 floating_modifier $mod
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 # start a terminal
820
9363e3a29dba this is simpler
Meredith Howard <mhoward@roomag.org>
parents: 776
diff changeset
5 bindsym $mod+Return exec urxvtcd
649
a421fcbe4dd4 bring that new-vim shortcut to i3 too
Meredith Howard <mhoward@roomag.org>
parents: 611
diff changeset
6 bindsym $mod+Shift+Return exec gvim
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 # kill focused window
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 bindsym $mod+Shift+q kill
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 # start dmenu (a program launcher)
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12 #bindsym $mod+d exec dmenu_run
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
13
775
aa82db8862ab remove old dmenu-desktop hacks
Meredith Howard <mhoward@roomag.org>
parents: 772
diff changeset
14 bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -i -b -p ] -nf \#CCC -nb \#555 -fn 'Droid Sans-10'"
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
15
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
16 # change focus
776
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
17 bindsym $mod+h focus left
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
18 bindsym $mod+j focus down
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
19 bindsym $mod+k focus up
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
20 bindsym $mod+l focus right
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
22 # alternatively, you can use the cursor keys:
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
23 bindsym $mod+Left focus left
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
24 bindsym $mod+Down focus down
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
25 bindsym $mod+Up focus up
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
26 bindsym $mod+Right focus right
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
27
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
28 # move focused window
776
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
29 bindsym $mod+Shift+h move left
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
30 bindsym $mod+Shift+j move down
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
31 bindsym $mod+Shift+k move up
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
32 bindsym $mod+Shift+l move right
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
33
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
34 # alternatively, you can use the cursor keys:
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
35 bindsym $mod+Shift+Left move left
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
36 bindsym $mod+Shift+Down move down
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
37 bindsym $mod+Shift+Up move up
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
38 bindsym $mod+Shift+Right move right
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
39
776
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
40 # split s - below, v - right
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
41 bindsym $mod+s split v
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
42 bindsym $mod+v split s
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
43
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
44 # enter fullscreen mode for the focused container
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
45 bindsym $mod+f fullscreen
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
46
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
47 # change container layout (stacked, tabbed, toggle split)
776
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
48 #bindsym $mod+s layout stacking
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
49 bindsym $mod+w layout tabbed
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
50 bindsym $mod+e layout toggle split
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
51
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
52 # toggle tiling / floating
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
53 bindsym $mod+Shift+space floating toggle
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
54
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
55 # change focus between tiling / floating windows
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
56 bindsym $mod+space focus mode_toggle
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
57
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
58 # focus the parent container
611
f524f24b23dd i3 changes
Meredith Howard <mhoward@roomag.org>
parents: 378
diff changeset
59 bindsym $mod+Shift+a focus parent
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
60
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
61 # focus the child container
611
f524f24b23dd i3 changes
Meredith Howard <mhoward@roomag.org>
parents: 378
diff changeset
62 bindsym $mod+a focus child
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
63
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
64 bindsym $mod+b workspace back_and_forth
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
65 bindsym $mod+minus workspace prev
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
66 bindsym $mod+equal workspace next
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
67
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
68 # switch to workspace
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
69 bindsym $mod+1 workspace 1
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
70 bindsym $mod+2 workspace 2
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
71 bindsym $mod+3 workspace 3
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
72 bindsym $mod+4 workspace 4
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
73 bindsym $mod+5 workspace 5
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
74 bindsym $mod+6 workspace 6
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
75 bindsym $mod+7 workspace 7
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
76 bindsym $mod+8 workspace 8
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
77 bindsym $mod+9 workspace 9
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
78 bindsym $mod+0 workspace 10
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
79
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
80 # move focused container to workspace
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
81 bindsym $mod+Shift+1 move container to workspace 1
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
82 bindsym $mod+Shift+2 move container to workspace 2
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
83 bindsym $mod+Shift+3 move container to workspace 3
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
84 bindsym $mod+Shift+4 move container to workspace 4
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
85 bindsym $mod+Shift+5 move container to workspace 5
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
86 bindsym $mod+Shift+6 move container to workspace 6
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
87 bindsym $mod+Shift+7 move container to workspace 7
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
88 bindsym $mod+Shift+8 move container to workspace 8
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
89 bindsym $mod+Shift+9 move container to workspace 9
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
90 bindsym $mod+Shift+0 move container to workspace 10
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
91
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
92 # reload the configuration file
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
93 bindsym $mod+Shift+c reload
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
94
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
95 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
96 bindsym $mod+Shift+r restart
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
97
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
98 # exit i3 (logs you out of your X session)
822
63a61745e560 keyboard exit ugh
Meredith Howard <mhoward@roomag.org>
parents: 820
diff changeset
99 bindsym $mod+Shift+e exec sh -c '[ $(echo "NO\nYES" | dmenu -sb \#fa2 -i -p "Really Exit i3?") = "YES" ] && i3-msg exit'
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
100
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
101 # resize window (you can also use the mouse for that)
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
102 mode "resize" {
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
103 # These bindings trigger as soon as you enter the resize mode
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
104
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
105 # Pressing left will shrink the window’s width.
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
106 # Pressing right will grow the window’s width.
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
107 # Pressing up will shrink the window’s height.
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
108 # Pressing down will grow the window’s height.
776
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
109 bindsym h resize shrink width 10 px or 10 ppt
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
110 bindsym j resize grow height 10 px or 10 ppt
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
111 bindsym k resize shrink height 10 px or 10 ppt
6982ec9ba7c3 more vimlike
Meredith Howard <mhoward@roomag.org>
parents: 775
diff changeset
112 bindsym l resize grow width 10 px or 10 ppt
378
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
113
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
114 # same bindings, but for the arrow keys
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
115 bindsym Left resize shrink width 10 px or 10 ppt
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
116 bindsym Down resize grow height 10 px or 10 ppt
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
117 bindsym Up resize shrink height 10 px or 10 ppt
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
118 bindsym Right resize grow width 10 px or 10 ppt
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
119
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
120 # back to normal: Enter or Escape
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
121 bindsym Return mode "default"
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
122 bindsym Escape mode "default"
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
123 }
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
124
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
125 bindsym $mod+r mode "resize"
e13ba40f4533 Break i3 and i3status configs into component files, to make local mods easier maybe
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
126

mercurial