-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig
192 lines (158 loc) · 6.51 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard
#
# fake one big output
#fake-outputs 3360x1080+0+0
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
#font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
#font -*-fixed-medium-r-*-*-*-120-75-75-c-60-iso10646-*
font xft:Sans 8
# colors
# colorclass border bg text indicator
client.focused #850049 #853c00 #ffffff #ff0000
client.unfocused #523344 #523335 #ffffff #ff0000
client.focused_inactive #786870 #786868 #ffffff #aa0000
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
# font pango:DejaVu Sans Mono 10
# use Mouse+Mod4 to drag floating windows to their wanted position
floating_modifier Mod4
# start a terminal
bindsym Mod4+Return exec gnome-terminal --hide-menubar
# kill focused window
bindsym Mod4+Shift+c kill
# start dmenu (a program launcher)
bindsym Mod4+x exec dmenu_run
bindsym Mod4+p exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym Mod4+j focus down
bindsym Mod4+k focus up
bindsym Mod4+l focus right
bindsym Mod4+h focus left
#bindsym Mod4+semicolon focus right
# alternatively, you can use the cursor keys:
bindsym Mod4+Left focus left
bindsym Mod4+Down focus down
bindsym Mod4+Up focus up
bindsym Mod4+Right focus right
# move focused window
bindsym Mod4+Shift+j move down
bindsym Mod4+Shift+k move up
bindsym Mod4+Shift+l move right
bindsym Mod4+Shift+h move left
#bindsym Mod4+Shift+semicolon move right
# alternatively, you can use the cursor keys:
bindsym Mod4+Shift+Left move left
bindsym Mod4+Shift+Down move down
bindsym Mod4+Shift+Up move up
bindsym Mod4+Shift+Right move right
# split in horizontal orientation
bindsym Mod4+shift+v split h
# split in vertical orientation
bindsym Mod4+v split v
# enter fullscreen mode for the focused container
bindsym Mod4+f fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym Mod4+s layout stacking
bindsym Mod4+w layout tabbed
bindsym Mod4+e layout toggle split
# toggle tiling / floating
bindsym Mod4+Shift+space floating toggle
# toggle stickyness
bindsym Mod4+y sticky toggle
# change focus between tiling / floating windows
bindsym Mod4+space focus mode_toggle
# focus the parent container
bindsym Mod4+a focus parent
bindsym Mod4+shift+a focus child
# reload the configuration file
#bindsym Mod4+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod4+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym Mod4+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym h resize shrink width 5 px or 5 ppt
bindsym j resize grow height 5 px or 5 ppt
bindsym k resize shrink height 5 px or 5 ppt
bindsym l resize grow width 5 px or 5 ppt
bindsym shift+h resize shrink width 1 px or 1 ppt
bindsym shift+j resize grow height 1 px or 1 ppt
bindsym shift+k resize shrink height 1 px or 1 ppt
bindsym shift+l resize grow width 1 px or 1 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 5 px or 5 ppt
bindsym Down resize grow height 5 px or 5 ppt
bindsym Up resize shrink height 5 px or 5 ppt
bindsym Right resize grow width 5 px or 5 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym Mod4+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command ~/i3blocks/i3blocks
tray_output VGA-0
font xft:Sans 10
}
# dynamic tagging feature
bindsym Mod4+t exec i3-msg workspace $(~/.i3/get_workspace_options.sh | dmenu -b)
bindsym Mod4+Shift+t exec i3-msg move container to workspace $(~/.i3/get_workspace_options.sh | dmenu -b)
# toggle screen of workspace
bindsym Mod4+d move container to output right
bindsym Mod4+shift+d move workspace to output right
# toggle workspace
bindsym Mod4+z workspace back_and_forth
# marks
bindsym Mod4+m exec i3-input -F 'mark %s' -P 'Mark name: '
bindsym Mod4+g exec i3-input -F '[con_mark=%s] focus' -P 'Go to mark: '
# programs
bindsym mod4+n exec nautilus --no-desktop
bindsym XF86AudioLowerVolume exec amixer -D pulse set Master 5%- && pkill -RTMIN+10 i3blocks
bindsym XF86AudioRaiseVolume exec amixer -D pulse set Master 5%+ && pkill -RTMIN+10 i3blocks
bindsym Shift+XF86AudioLowerVolume exec amixer -D pulse set Master 1%- && pkill -RTMIN+10 i3blocks
bindsym Shift+XF86AudioRaiseVolume exec amixer -D pulse set Master 1%+ && pkill -RTMIN+10 i3blocks
bindsym XF86AudioMute exec amixer -D pulse set Master toggle && pkill -RTMIN+10 i3blocks
bindsym XF86MonBrightnessUp exec sudo /usr/local/bin/brightness +10
bindsym XF86MonBrightnessDown exec sudo /usr/local/bin/brightness /2
bindsym XF86AudioPlay exec mocp -G
bindsym XF86AudioNext exec mocp -f
bindsym XF86AudioPrev exec mocp -r
bindsym XF86Mail exec ~/bin/tv
bindsym XF86Calculator exec suspend
bindsym Mod4+i exec i3-input
bindsym Mod4+u border toggle
bindsym mod4+c exec unity-control-center
# auto floating windows
for_window [class="Gnome-control-center"] floating enable
for_window [class="main.py"] floating enable
for_window [class="python2.7"] floating enable
for_window [class="display2.py"] floating enable
for_window [class="kviewer"] floating enable
for_window [class="mplayer"] floating enable
for_window [class="vlc"] floating enable
# autostart apps
exec keynav
exec nm-applet
exec unity-settings-daemon
exec eval $(cat ~/.fehbg)
exec mpd
exec update-notifier