forked from ivyl/i3-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config
147 lines (112 loc) · 4.13 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
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 slimlock
# 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+q workspace 1: q
bindsym $mod+w workspace 2: w
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+q move container to workspace 1: q
bindsym $mod+Shift+w move container to workspace 2: w
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+z reload
bindsym $mod+Shift+x restart
bindsym $mod+Shift+z 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 "amixer -D pulse sset Master '3%+'"
bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '1%-'"
bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
bindsym XF86AudioMicMute exec "amixer -D pulse sset Capture toggle"
bindsym XF86AudioPlay exec "~/.bin/player toggle"
bindsym XF86AudioStop exec "~/.bin/player stop"
bindsym XF86AudioNext exec "~/.bin/player next"
bindsym XF86AudioPrev exec "~/.bin/player previous"
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+a exec "urxvtc -e alsamixer"
bindsym $mod+Shift+a 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
}
}