forked from ivyl/i3-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
181 lines (135 loc) · 4.9 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
exec xbacklight -set 40 &
exec xset -b
exec xrdb -merge ~/.i3/xresources
exec volnoti
exec unclutter -root -visible &
#exec autocutsel -fork &
exec autocutsel -selection PRIMARY -fork &
exec eval `dbus-launch --sh-syntax --exit-with-session`
#color temparature
#exec redshift -l 39.57:76.3 -m randr -t 5500:4500 -g 0.9:0.9:0.9 &
exec urxvtd &
#notification
exec dunst -config ~/.i3/dunstrc &
exec udiskie &
exec --no-startup-id nm-applet &
exec nitrogen --restore &
##############################################################################################################################
set $mod Mod4
font pango:Terminus 11px
new_window pixel 3
focus_follows_mouse no
#don't move to neighbouring screen with hjkl
force_focus_wrapping yes
set $gray1 #373d48
set $gray2 #29303a
client.focused $gray1 $gray1 #FFFFFF $gray1
client.focused_inactive $gray2 $gray2 #FFFFFF #000000
client.unfocused $gray2 $gray2 #FFFFFF #000000
# use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec urxvtc
# kill focused window
bindsym $mod+c kill
# start dmenu (a program launcher)
bindsym $mod+p exec "dmenu_run -nb black -p run"
bindsym $mod+Shift+p exec "~/.bin/pass-autotype-dmenu"
# screen lock
bindsym Control+$mod+l exec "i3lock-fancy -gpf Hack-Regular"
# change focus
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# split in horizontal orientation
bindsym $mod+v split h
# split in vertical orientation
bindsym $mod+g split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
# change container layout (tabbed, toggle split)
bindsym $mod+n layout tabbed
bindsym $mod+m layout toggle split
# container navigation
bindsym $mod+d focus parent
bindsym $mod+b focus child
# move container between displays
bindsym $mod+semicolon move workspace to output right
# toggle tiling / floating
bindsym $mod+Shift+f floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# switch to last workspace
bindsym $mod+6 workspace back_and_forth
# switch to workspace
bindsym $mod+a workspace 1: a
bindsym $mod+z workspace 2: z
bindsym $mod+e workspace 3: e
bindsym $mod+r workspace 4: r
bindsym $mod+t workspace 5: t
bindsym $mod+y workspace 6: y
bindsym $mod+u workspace 7: u
bindsym $mod+i workspace 8: i
bindsym $mod+o workspace 9: o
# move focused container to workspace
bindsym $mod+Shift+a move container to workspace 1: a
bindsym $mod+Shift+z move container to workspace 2: z
bindsym $mod+Shift+e move container to workspace 3: e
bindsym $mod+Shift+r move container to workspace 4: r
bindsym $mod+Shift+t move container to workspace 5: t
bindsym $mod+Shift+y move container to workspace 6: y
bindsym $mod+Shift+u move container to workspace 7: u
bindsym $mod+Shift+i move container to workspace 8: i
bindsym $mod+Shift+o move container to workspace 9: o
bindsym $mod+q reload
bindsym $mod+Shift+x restart
bindsym $mod+Shift+q exit
mode "resize" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or q or ^[
bindsym Return mode "default"
bindsym q mode "default"
bindsym Escape mode "default"
bindcode Control+34 mode "default"
}
bindsym $mod+s mode "resize"
# multimedia keys
bindsym XF86AudioRaiseVolume exec "~/.i3/bin/volume up"
bindsym XF86AudioLowerVolume exec "~/.i3/bin/volume down"
bindsym XF86AudioMute exec "~/.i3/bin/volume mute"
bindsym XF86AudioPlay exec --no-startup-id playcontrols toggle
bindsym XF86AudioStop exec --no-startup-id playcontrols stop
bindsym XF86AudioPrev exec --no-startup-id playcontrols prev
bindsym XF86AudioNext exec --no-startup-id playcontrols next
bindsym XF86MonBrightnessDown exec "~/.i3/bin/brightness down"
bindsym XF86MonBrightnessUp exec "~/.i3/bin/brightness up"
bindsym XF86KbdBrightnessDown exec "sudo /opt/kbdlight/bin/kbdlight -"
bindsym XF86KbdBrightnessUp exec "sudo /opt/kbdlight/bin/kbdlight +"
bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient | awk '/TouchpadOff/ {print ($3+1)%2}')"
bindsym XF86Display exec "arandr"
bindsym $mod+w exec "terminator -x alsamixer"
bindsym $mod+Shift+w exec "pavucontrol"
bar {
position top
status_command ~/.i3/bin/conky-wrapper
colors {
statusline #AAAAAA
background $gray2
focused_workspace $gray2 $gray2 #FFFFFF
inactive_workspace $gray1 $gray1 #AAAAAA
}
}
smart_borders on
gaps inner 10
#gaps outer 5
#
exec compton --config ~/.i3/compton.conf -b &