-
Notifications
You must be signed in to change notification settings - Fork 0
/
i3.conf
139 lines (112 loc) · 3.83 KB
/
i3.conf
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
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
##################################
# Startup
##################################
exec xcompmgr -n
exec dropbox start
exec feh --bg-fill ~/git/dotfiles/not-just-a-soldier.jpg
exec setxkbmap -layout fi -option caps:escape,compose:menu,nbsp:none
exec xmodmap -e 'keycode 134 = Super_R'
exec xset -b
exec xset m 0 0 # mouse acceleration off. Linear all the way :)
exec --no-startup-id xrdb .Xresources
exec --no-startup-id python .i3alternate.py
##################################
# Appearance
##################################
# pretty font
#font pango:DejaVu Sans Mono 10
font pango:DejaVu Sans Mono for Powerline 10
# TODO: make use of color variables everywhere
set $warmgrey #272822
set $darkgrey #222222
set $brightgreen #60aa00
# class border backgr. text indicator
client.focused $darkgrey $darkgrey #ffffff $brightgreen
client.focused_inactive $darkgrey $darkgrey #888888 $darkgrey
client.unfocused $darkgrey $darkgrey #888888 $darkgrey
client.urgent $darkgrey #fd971f #ffffff #fd971f
# no titlebar
new_window pixel 0
# legacy syntax
#border 1pixel
gaps inner 10
gaps outer 10
# i3 status bar
bar {
colors {
background $warmgrey
statusline #ffffff
focused_workspace $darkgrey $darkgrey #ffffff
active_workspace $darkgrey $darkgrey #888888
inactive_workspace $darkgrey $darkgrey #888888
urgent_workspace $darkgrey #fd971f #ffffff
}
position bottom
mode dock
status_command i3status -c ~/.i3/statusbar
}
##################################
# Key bindings
##################################
# set modifier key to win/super
set $mod Mod4
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+R restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+E exit
# set lockscreen
# TODO: color variables
bindsym $mod+l exec "i3lock -d -n -c '#272822'"
# focus on click only
focus_follows_mouse no
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec urxvt -e "zsh"
# floating terminal magic for one-offs
for_window [title=".*floatme$"] floating enable
bindsym 0xa7 exec urxvt -title urxvt-floatme -e "zsh"
# start dmenu (a program launcher)
# TODO: use color variables - needs some escaping
#bindsym $mod+space exec dmenu_run -b -nb '#272822' -nf '#80ff00' -sb '#80ff00' -sf '#272822' -fn "DejaVu Sans Mono-22"
bindsym $mod+space exec rofi -show run
# mod+arrows move focus between windows
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# mod+shift+arrows move windows
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# toggle tiling / floating
#keysym 23 = tab
bind $mod+23 floating toggle
# toggle sticky
bindsym $mod+s sticky toggle
# switch to workspace
bindsym F1 workspace 1
bindsym F2 workspace 2
bindsym F3 workspace 3
bindsym F4 workspace 4
bindsym F9 workspace 9
bindsym F10 workspace 10
bindsym F11 workspace 11
bindsym F12 workspace 12
# move focused container to workspace
bindsym $mod+F1 move container to workspace 1; workspace 1
bindsym $mod+F2 move container to workspace 2; workspace 2
bindsym $mod+F3 move container to workspace 3; workspace 3
bindsym $mod+F4 move container to workspace 4; workspace 4
bindsym $mod+F9 move container to workspace 9; workspace 9
bindsym $mod+F10 move container to workspace 10; workspace 10
bindsym $mod+F11 move container to workspace 11; workspace 11
bindsym $mod+F12 move container to workspace 12; workspace 12