first push of my config files
[my-dotfiles.git] / i3 / config
CommitLineData
fdd76fc5 1# This file has been auto-generated by i3-config-wizard(1).
2# It will not be overwritten, so edit it as you like.
3#
4# Should you change your keyboard layout some time, delete
5# this file and re-run i3-config-wizard(1).
6#
7
8###########################
9# xbindkeys -k #
10# xprop | grep -i 'class' #
11###########################
12
13# i3 config file (v4)
14#
15# Please see http://i3wm.org/docs/userguide.html for a complete reference!
16
17# set modifiers
18##
19## Win to be used to issue commands application related, like launching programs
20## Alt to be used to issue commands desktop related, like modifying layout of windows
21## Ctrl in combination with the other two, to issue special commands.
22set $win Mod4
23set $alt Mod1
24set $ctrl Ctrl
25
26# title alignment
27#title_align center
28
29#set $rofi "rofi -show run -font 'Droid Sans Mono 10' -theme Monokai -width 40 -location 2 -lines 7 -bw 2 -yoffset -2"
30#set $rofissh "rofi -show ssh -font 'Droid Sans Mono 10' -theme Monokai"
31
32# Workspace names
33# # to display names or symbols instead of plain workspace numbers you can use
34# # something like: set $ws1 1:mail
35# # set $ws2 2:x
36#
37set $ws1 "1:web"
38set $ws2 "2:editor"
39set $ws3 "3:console"
40set $ws4 "4:ssh"
41set $ws5 "5:graphic"
42set $ws6 "6:unused"
43set $ws7 "7:unused"
44set $ws8 "8:music"
45
46# per workspace gaps
47workspace $ws1 gaps inner 0
48workspace $ws1 gaps outer 0
49workspace $ws2 gaps inner 0
50workspace $ws2 gaps outer 0
51
52
53# Font for window titles. Will also be used by the bar unless a different font
54# is used in the bar {} block below.
55font pango:"Droid Sans 10"
56
57# Use Mouse+$win to drag floating windows to their wanted position
58floating_modifier $win
59
60# start a terminal
61bindsym $alt+Return exec urxvt
62
63# custom binding
64bindsym Print exec --no-startup-id blackpearl-scrotmenu.sh
65bindsym $alt+Menu exec --no-startup-id blackpearl-utilsmenu.sh
66bindsym $alt+Escape --release exec xkill
67bindsym $win+e exec pcmanfm-qt
68#bindsym $win+x exec --no-startup-id i3-exit
69bindsym $win+l exec --no-startup-id i3lock-fancy
70bindsym $win+w exec chromium-browser
71bindsym XF86Calculator exec kcalc
72bindsym XF86Sleep exec i3suspend
73bindsym $win+Shift+w exec "chromium-browser --incognito"
74bindsym $win+h exec --no-startup-id blackpearl-sshmenu.sh
75bindsym $win+r exec sublime_text
76bindsym XF86HomePage exec --no-startup-id blackpearl-appsmenu.sh
77bindsym $win+p exec uxterm -T "spt" -geometry 90x30+800+30 -e spt
78
79# window switching bindings
80bindsym $alt+Tab exec --no-startup-id "blackpearl-window.sh desktop"
81bindsym $alt+Ctrl+Tab exec --no-startup-id "blackpearl-window.sh all"
82
83# volume binding
84bindsym XF86AudioMute exec --no-startup-id pamixer -t
85bindsym XF86AudioLowerVolume exec --no-startup-id pamixer -d 5
86bindsym XF86AudioRaiseVolume exec --no-startup-id pamixer -i 5
87
88# kill focused window
89#bindsym $ctrl+Shift+q kill
90
91# start dmenu (a program launcher)
92bindsym $alt+F2 exec --no-startup-id blackpearl-runner.sh
93
94# change focus
95bindsym $alt+j focus left
96bindsym $alt+k focus down
97bindsym $alt+l focus up
98bindsym $alt+ograve focus right
99
100# alternatively, you can use the cursor keys:
101bindsym $alt+Left focus left
102bindsym $alt+Down focus down
103bindsym $alt+Up focus up
104bindsym $alt+Right focus right
105
106# move focused window
107bindsym $alt+Shift+j move left
108bindsym $alt+Shift+k move down
109bindsym $alt+Shift+l move up
110bindsym $alt+Shift+ograve move right
111
112# alternatively, you can use the cursor keys:
113bindsym $alt+Shift+Left move left
114bindsym $alt+Shift+Down move down
115bindsym $alt+Shift+Up move up
116bindsym $alt+Shift+Right move right
117
118# split in horizontal orientation
119bindsym $alt+h split h;exec notify-send 'split horizontally'
120# split in vertical orientation
121bindsym $alt+v split v;exec notify-send 'split vertically'
122
123# enter fullscreen mode for the focused container
124bindsym $alt+f fullscreen toggle
125
126# change container layout (stacked, tabbed, toggle split)
127bindsym $alt+s layout stacking;exec notify-send 'layout stacking'
128bindsym $alt+w layout tabbed;exec notify-send 'layout tabbed'
129bindsym $alt+e layout toggle split;exec notify-send 'layout split'
130
131# toggle tiling / floating
132bindsym $alt+Shift+space floating toggle
133
134# change focus between tiling / floating windows
135bindsym $alt+space focus mode_toggle
136
137# focus the parent container
138bindsym $alt+a focus parent
139
140# focus the child container
141#bindsym $win+d focus child
142
143# switch to workspace
144bindsym Ctrl+F1 workspace $ws1
145bindsym Ctrl+F2 workspace $ws2
146bindsym Ctrl+F3 workspace $ws3
147bindsym Ctrl+F4 workspace $ws4
148bindsym Ctrl+F5 workspace $ws5
149bindsym Ctrl+F6 workspace $ws6
150bindsym Ctrl+F7 workspace $ws7
151bindsym Ctrl+F8 workspace $ws8
152
153# move focused container to workspace
154bindsym $win+Shift+1 move container to workspace $ws1
155bindsym $win+Shift+2 move container to workspace $ws2
156bindsym $win+Shift+3 move container to workspace $ws3
157bindsym $win+Shift+4 move container to workspace $ws4
158bindsym $win+Shift+5 move container to workspace $ws5
159bindsym $win+Shift+6 move container to workspace $ws6
160bindsym $win+Shift+7 move container to workspace $ws7
161bindsym $win+Shift+8 move container to workspace $ws8
162
163# navigate workspaces
164#bindsym $win+Home workspace $ws1
165#bindsym $win+End workspace $ws8
166bindsym $win+Prior workspace prev
167bindsym $win+Next workspace next
168
169# navigate workspaces next / previous
170#bindsym $win+Ctrl+j workspace prev
171#bindsym $win+Ctrl+ograve workspace next
172#bindsym $win+Ctrl+Right workspace next
173#bindsym $win+Ctrl+Left workspace prev
174
175# assign programs to specific workspaces
176assign [title="ssh"] $ws4
177assign [class="URxvt"] $ws3
178assign [class="Sublime_text"] $ws2
179assign [class="Chromium"] $ws1
180assign [class="gimp-2.10"] $ws5
181assign [title="^spt$"] $ws8
182
183# open specific apps in floating mode
184for_window [class="kcalc"] floating enable border pixel 1
185for_window [class="lxsudo"] floating enable border pixel 1
186for_window [title="^spt$"] floating enable border pixel 1
187
188# switch to workspace with urgent window automatically
189for_window [urgent=latest] focus
190
191client.focused #349f86 #349f85 #000088 #00C1FF
192client.focused_inactive #2C2C2C #2C2C2C #ffffff #2C2C2C
193client.unfocused #2C2C2C #2C2C2C #ffffff #2C2C2C
194client.urgent #00C1FF #00C1FF #000088 #00C1FF
195
196# window borders
197hide_edge_borders both
198for_window [class="^.*"] border pixel 0
199
200gaps outer 0
201gaps inner 10
202workspace $ws1 gaps inner 0
203workspace $ws2 gaps inner 0
204workspace $ws5 gaps inner 0
205
206# reload the configuration file
207bindsym $alt+Shift+c reload
208
209# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
210bindsym $alt+Shift+r restart
211
212# exit i3 (logs you out of your X session)
213#bindsym $win+Shift+e exec "i3-nagbar -t warning -m 'Exit i3? This will end your session.' -b 'Yes, exit i3' 'i3-msg exit'"
214
215# Set shut down, restart and locking features
216bindsym $win+x exec --no-startup-id blackpearl-powermenu.sh
217
218# resize window (you can also use the mouse for that)
219mode "resize" {
220 # These bindings trigger as soon as you enter the resize mode
221
222 bindsym j resize shrink width 10 px or 10 ppt
223 bindsym k resize grow height 10 px or 10 ppt
224 bindsym l resize shrink height 10 px or 10 ppt
225 bindsym ograve resize grow width 10 px or 10 ppt
226
227 # same bindings, but for the arrow keys
228 bindsym Left resize shrink width 10 px or 10 ppt
229 bindsym Down resize grow height 10 px or 10 ppt
230 bindsym Up resize shrink height 10 px or 10 ppt
231 bindsym Right resize grow width 10 px or 10 ppt
232
233 # back to normal: Enter or Escape
234 bindsym Return mode "default"
235 bindsym Escape mode "default"
236}
237
238bindsym $win+Ctrl+r mode "resize"
239
240set $wine_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
241set $wine_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
242bindsym $win+Shift+g mode "$wine_gaps"
243
244mode "$wine_gaps" {
245 bindsym o mode "$wine_gaps_outer"
246 bindsym i mode "$wine_gaps_inner"
247 bindsym Return mode "$wine_gaps"
248 bindsym Escape mode "default"
249}
250
251
252mode "$wine_gaps_outer" {
253 bindsym plus gaps outer current plus 5
254 bindsym minus gaps outer current minus 5
255 bindsym 0 gaps outer current set 0
256
257 bindsym Shift+plus gaps outer all plus 5
258 bindsym Shift+minus gaps outer all minus 5
259 bindsym Shift+0 gaps outer all set 0
260
261 bindsym Return mode "$wine_gaps"
262 bindsym Escape mode "default"
263}
264mode "$wine_gaps_inner" {
265 bindsym plus gaps inner current plus 5
266 bindsym minus gaps inner current minus 5
267 bindsym 0 gaps inner current set 0
268
269 bindsym Shift+plus gaps inner all plus 5
270 bindsym Shift+minus gaps inner all minus 5
271 bindsym Shift+0 gaps inner all set 0
272
273 bindsym Return mode "$wine_gaps"
274 bindsym Escape mode "default"
275}
276
277
278# Start i3bar to display a workspace bar (plus the system information i3status
279# finds out, if available)
280# bar {
281# tray_output none
282# workspace_buttons no
283
284# status_command i3status
285# status_command exec /home/danix/bin/i3-netspeed.sh
286# position top
287# font pango:Droid Sans Mono 9
288# colors {
289# background #1f1f1f
290# }
291# }
292
293# start tint2 i3status
294exec --no-startup-id tint2 -c ~/.config/tint2/i3status.tint2rc
295
296# start tint2 bar
297exec --no-startup-id tint2 -c ~/.config/tint2/minima.tint2rc
298
299# start pulseaudio daemon
300exec --no-startup-id start-pulseaudio-x11
301
302# start networkmanager applet
303exec --no-startup-id nm-applet
304
305# start lxqt-powermanager
306# exec --no-startup-id lxqt-powermanagement
307
308# start lxqt-notificationd
309#exec --no-startup-id lxqt-notificationd
310exec --no-startup-id dunst
311
312# start keepassxc
313exec --no-startup-id keepassxc
314
315# start audio icon
316exec --no-startup-id pnmixer