-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfig
280 lines (230 loc) · 8.57 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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
#
#====================== OLD COLOR SCHME
set $foreground #eceff1
set $background #263238
set $color0 #263238
set $color8 #37474f
set $color1 #ff9800
set $color9 #ffa74d
set $color2 #8bc34a
set $color10 #9ccc65
set $color3 #ffc107
set $color11 #ffa000
set $color4 #03a9f4
set $color12 #81d4fa
set $color5 #ea427b
set $color13 #ad1457
set $color6 #009688
set $color14 #26a69a
set $color7 #cfd8dc
set $color15 #eceff1
set $transparent #000000FF
set $FOCUS #18A4DB
set $UNFOCUS #127196
set $BORDERF #00c3FF
set $BORDERU #00245E
set $mod Mod4
font pango:FontAwesome 8, pango: Droid Sans Mono 8
floating_modifier $mod
workspace_auto_back_and_forth yes
force_display_urgency_hint 0 ms
focus_on_window_activation urgent
# autostart programs
exec --no-startup-id nitrogen --restore
exec dunst -config ~/.i3/dunstrc
exec --no-startup-id nm-applet
exec --no-startup-id pidgin
exec --no-startup-id volumeicon
exec --no-startup-id SpiderOakOne
exec --no-startup-id xfce4-clipman
exec --no-startup-id orage
# start programs
bindsym $mod+p exec --no-startup-id thunar /mnt/storo/GOLDO/
bindsym $mod+Shift+f exec --no-startup-id firefox
bindsym $mod+g exec --no-startup-id chromium
#Gaps
gaps inner 2
gaps outer 2
# borders
new_window normal
hide_edge_borders vertical
bindsym Control+Shift+x [class="^.*"]e
# Define borders
for_window [class="^.*"] border pixel 1
for_window [class="URxvt"] border normal
for_window [class="Leafpad"] border normal
for_window [class="Lxappearance"] border normal
for_window [class="Vlc"] border pixel 0
for_window [class="mpv"] border pixel 0
for_window [class="Pcmanfm"] border pixel 0
for_window [class="Firefox"] border pixel 0
for_window [class="Geary"] border pixel 0
for_window [class="Lmms"] border pixel 0
for_window [class="Feh"] border pixel 0
#FLOATING
# for_window [title="Sonata"] floating enable
for_window [title="SMPlayer"] floating enable
for_window [title="Gajim"] floating enable
for_window [title="Buddy List"] floating enable
for_window [title="xfce4-notifyd"] floating enable
for_window [class="(?i)(orage|globaltime)"] floating enable
#for_window [class="(?i)(gajim|pidgin)"] floating enable
for_window [class="(?i)lxappearance"] floating enable; resize shrink right 31px
for_window [class="(?i)pavucontrol"] floating enable; resize shrink right 31px
for_window [class="mpv"] floating enable
# start a terminal
# bindsym $mod+Return exec urxvt -sbg
bindsym $mod+Return exec termite
# kill focused window
bindsym $mod+q kill
# Menu
bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 100 -padding 150 -markup -opacity "85" -bw 0 -bc "#2f343f" -bg "#2f343f" -fg "#f3f4f5" -hlbg "#2f343f" -hlfg "#9575cd" -font "Droid Sans 18"
#bindsym $mod+d exec --no-startup-id i3-dmenu-desktop --dmenu='rofi -i -dmenu -font "snap 12" -bg "#222222" -fg "#888888" -hlbg "#285577" -hlfg "#ffffff" -opacity 90 -m 0 -location 2'
#bindsym $mod+d exec rofi -show run
#bindsym $mod+d exec dmenu_run
# change focus VIM KEYS
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
# alternatively, you can use the cursor keys:
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+Shift+v split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
#bindsym $mod+Shift+space $float
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
#
# Set Workspace names with icons
#
set $WS1
set $WS2
set $WS3
set $WS4
set $WS5
set $WS6
set $WS7
set $WS8
# switch to workspace
bindsym $mod+1 workspace $WS1
bindsym $mod+2 workspace $WS2
bindsym $mod+3 workspace $WS3
bindsym $mod+4 workspace $WS4
bindsym $mod+5 workspace $WS5
bindsym $mod+6 workspace $WS6
bindsym $mod+7 workspace $WS7
bindsym $mod+8 workspace $WS8
bindsym $mod+9 workspace S9
bindsym $mod+0 workspace 10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $WS1
bindsym $mod+Shift+2 move container to workspace number $WS2
bindsym $mod+Shift+3 move container to workspace number $WS3
bindsym $mod+Shift+4 move container to workspace number $WS4
bindsym $mod+Shift+5 move container to workspace number $WS5
bindsym $mod+Shift+6 move container to workspace number $WS6
bindsym $mod+Shift+7 move container to workspace number $WS7
bindsym $mod+Shift+8 move container to workspace number $WS8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
# MEDIA KEYS
bindsym --release $mod+p exec mpc toggle
bindsym --release $mod+Shift+period exec mpc next
bindsym --release $mod+Shift+comma exec mpc prev
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 -- +10% && killall -SIGUSR1 i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -- -10% && killall -SIGUSR1 i3status
# reload the configuration file
bindsym $mod+Shift+c reload
# 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 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 j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym semicolon resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
client.focused #81a2be #81a2be #1d1f21 #282a2e
client.focused_inactive #373b41 #373b41 #969896 #282a2e
client.unfocused #282a2e #282a2e #969896 #282a2e
client.urgent #373b41 #cc6666 #ffffff #cc6666
bar {
i3bar_command /usr/bin/i3bar
status_command /usr/bin/i3blocks -c ~/.i3/i3-blocks.conf
height 20
position top
mode dock
tray_output primary
tray_padding 1
separator_symbol
colors {
background #eceff1
statusline #263238
separator #556270
#colors outline background number
focused_workspace $color6 $color6 $color15
active_workspace $color6 $color6 $color15
inactive_workspace $color7 $color7 $color6
urgent_workspace $color13 $color13 $color15
}
}
set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
mode "$mode_system" {
bindsym l exec --no-startup-id lock, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id lock && systemctl suspend, mode "default"
bindsym h exec --no-startup-id lock && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
#xflux
# exec xflux -l 51.5333408
exec notify-send -a i3 "loaded" "Welcome to i3."