summaryrefslogtreecommitdiff
path: root/config
blob: db89941f0a18870b7c730f9df171fb7e26f8ec06 (plain)
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

# load xrdb
exec xrdb ~/.Xresources ; i3-msg reload

# force_xinerama yes
# fake-outputs 3840x1080+0+0

# we basically want to configure our font with ~/.config/fontconfig/*
# font pango:FuraCode Nerd Font Mono Retina 9
# font pango:Code New Roman Nerd Font 9
font pango:FuraCode Nerd Font Mono Medium 11

# hide_edge_borders both

set $mod Mod4

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# screenshots
bindsym --release Print       exec scrot -s

# start a terminal
# bindsym $mod+Return         exec i3-sensible-terminal
# bindsym $mod+Return           exec --no-startup-id xfce4-appfinder
bindsym $mod+Return           exec --no-startup-id  dmenu_run -nb '#e0e0e0' -nf '#000' -sb '#ffffff' -sf '#4271ae'
bindsym Mod1+F2               exec --no-startup-id rofi -show run -bg #222222 -fg #888888 -hlbg #285577 -hlfg #ffffff
# bindsym $mod+t                exec --no-startup-id dbus-launch terminology 
# bindsym $mod+t                exec --no-startup-id dbus-launch gnome-terminal
bindsym $mod+t                exec --no-startup-id dbus-launch xfce4-terminal
# bindsym $mod+t                exec --no-startup-id dbus-launch sakura
# bindsym $mod+t              exec termite
# bindsym $mod+t              exec urxvt
bindsym $mod+e                exec --no-startup-id xdg-open $HOME
bindsym $mod+l                exec --no-startup-id i3lock -f -i "/usr/share/backgrounds/xfce/xfce-blue.jpg"

bindsym $mod+F10              exec pactl set-sink-mute 0 toggle
bindsym $mod+F11              exec pactl set-sink-volume 0 -5%
bindsym $mod+F12              exec pactl set-sink-volume 0 +5%

# Pulse Audio controls
bindsym XF86AudioRaiseVolume  exec pactl set-sink-volume 0 +5%                                                                                # increase sound volume
bindsym XF86AudioLowerVolume  exec pactl set-sink-volume 0 -5%                                                                                # decrease sound volume
bindsym XF86AudioMute         exec pactl set-sink-mute 0 toggle                                                                               # mute sound

# bindcode 156                  exec xrandr --output LVDS-1 --mode 1024x768 && xrandr --output LVDS-1 --mode 1280x800

# kill focused window
bindsym $mod+Shift+q          kill
bindsym Mod1+F4               kill

# start dmenu (a program launcher)
# bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop


bindsym $mod+Prior                             focus parent
bindsym $mod+Next                              focus child
bindsym $mod+Left                              [workspace="__focused__"] focus left
bindsym $mod+Right                             [workspace="__focused__"] focus right
bindsym $mod+Down                              [workspace="__focused__"] focus down
bindsym $mod+Up                                [workspace="__focused__"] focus up
bindsym $mod+Tab                               focus output right
bindsym $mod+Shift+Tab                         focus output left
bindsym mod1+Tab                               focus right
bindsym mod1+Shift+Tab                         focus left

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left              ; exec pkill -SIGRTMIN+11 i3blocks
bindsym $mod+Shift+Down move down              ; exec pkill -SIGRTMIN+11 i3blocks
bindsym $mod+Shift+Up move up                  ; exec pkill -SIGRTMIN+11 i3blocks
bindsym $mod+Shift+Right move right            ; exec pkill -SIGRTMIN+11 i3blocks

# split in horizontal orientation
# bindsym $mod+h split h

# split in vertical orientation
# bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
bindsym $mod+g fullscreen toggle global

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+q layout toggle split
bindsym $mod+x layout toggle all

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

# 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

workspace 1 output VGA1
workspace_layout tabbed

# customize workspace names
set $WS1 1:❶
set $WS2 2:❷
set $WS3 3:❸
set $WS4 4:❹
set $WS5 5:❺
set $WS6 6:❻
set $WS7 7:❼
set $WS8 8:❽
set $WS9 9:❾
set $WS10 10:⓿

assign [class="^Thunderbird$"] → $WS10

# switch to workspace
bindsym Mod4+1 workspace $WS1
bindsym Mod4+2 workspace $WS2
bindsym Mod4+3 workspace $WS3
bindsym Mod4+4 workspace $WS4
bindsym Mod4+5 workspace $WS5
bindsym Mod4+6 workspace $WS6
bindsym Mod4+7 workspace $WS7
bindsym Mod4+8 workspace $WS8
bindsym Mod4+9 workspace $WS9
bindsym Mod4+0 workspace $WS10

# move focused container to workspace
bindsym Mod4+Shift+1 move container to workspace $WS1
bindsym Mod4+Shift+2 move container to workspace $WS2
bindsym Mod4+Shift+3 move container to workspace $WS3
bindsym Mod4+Shift+4 move container to workspace $WS4
bindsym Mod4+Shift+5 move container to workspace $WS5
bindsym Mod4+Shift+6 move container to workspace $WS6
bindsym Mod4+Shift+7 move container to workspace $WS7
bindsym Mod4+Shift+8 move container to workspace $WS8
bindsym Mod4+Shift+9 move container to workspace $WS9
bindsym Mod4+Shift+0 move container to workspace $WS10

workspace 1 output DP-1
workspace 2 output DP-1
workspace 3 output DP-1
workspace 4 output DP-1
workspace 5 output HDMI-1
workspace 6 output HDMI-1
workspace 7 output HDMI-1
workspace 8 output HDMI-1
workspace "music" output HDMI-1
workspace "background" output HDMI-1

# 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'"


bindsym $mod+m move scratchpad
bindsym $mod+Shift+m scratchpad show ; resize set 1920 920 ; move position center



bindsym $mod+F2 exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
bindsym Control+Mod1+Left workspace prev_on_output
bindsym Control+Mod1+Right workspace next_on_output

# 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+Shift+v split h

# split in vertical orientation
# bindsym $mod+v split v
bindsym $mod+v split toggle
bindsym $mod+space split toggle


# win+backspace
bindsym $mod+BackSpace  move workspace to output right

bindsym $mod+r mode "resize"
# 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 $mod+h resize shrink width 4 px or 4 ppt
    bindsym $mod+j resize grow height 4 px or 4 ppt
    bindsym $mod+k resize shrink height 4 px or 4 ppt
    bindsym $mod+l resize grow width 4 px or 4 ppt

    # same bindings, but for the arrow keys
    bindsym Left resize shrink width 4 px or 4 ppt
    bindsym Up resize grow height 4 px or 4 ppt
    bindsym Down resize shrink height 4 px or 4 ppt
    bindsym Right resize grow width 4 px or 4 ppt

    # back to normal: Enter or Escape
    bindsym Return mode "default"
    bindsym Escape mode "default"
}






# exec xrandr --output HDMI-1 --right-of DP-1
# exec xrandr --output HDMI-1 --right-of VGA-1
# exec /usr/bin/xrandr-reset.sh
# exec setxkbmap -option caps:escape 
# exec setxkbmap -layout en_US -variant altgr-intl


exec xrandr --output HDMI1 --left-of eDP1 
exec xset r rate 330 40
# exec xinput --set-prop 'Xornet gaming mouse' 'libinput Accel Speed' 0.1
exec ibus-daemon -xd
exec gpg-agent --daemon
exec gnome-keyring-daemon --start --components=secrets
# start compositor...
exec compton -b --config ~/.config/i3/compton.conf
exec nitrogen --restore
exec nm-applet
exec kaze
exec /home/cpohle/.local/bin/vdirsyncer_sync
exec owncloud

# clipboard manger, so that the clipboard survives when a program exits
exec setsid parcellite
# deactivate thinkpad touchpad
exec synclient TouchpadOff=1






# exec setsid dbus-launch hexchat --minimize=2


# ==============================================
# base16 Xressource depenend color configuration
# with default values from base16-tomorrow-night
# ==============================================

# main variables   variable     Xressource         default
set_from_resource  $base00      base16.color0      #1d1f21
set_from_resource  $base01      base16.color10     #282a2e
set_from_resource  $base02      base16.color11     #373b41
set_from_resource  $base03      base16.color8      #969896
set_from_resource  $base04      base16.color12     #b4b7b4
set_from_resource  $base05      base16.color7      #c5c8c6
set_from_resource  $base06      base16.color13     #e0e0e0
set_from_resource  $base07      base16.color15     #ffffff
set_from_resource  $base08      base16.color1      #cc6666
set_from_resource  $base09      base16.color9      #de935f
set_from_resource  $base0A      base16.color3      #f0c674
set_from_resource  $base0B      base16.color2      #b5bd68
set_from_resource  $base0C      base16.color6      #8abeb7
set_from_resource  $base0D      base16.color4      #81a2be
set_from_resource  $base0E      base16.color5      #b294bb
set_from_resource  $base0F      base16.color14     #a3685a
# derived vars...  variable     Xressource         default
set_from_resource  $background  base16.background  $background
set_from_resource  $foreground  base16.color13     $base05
set_from_resource  $foreground  base16.cursor      $cursorColor
# set_from_resource  $foreground  base16.cursor      $base05

# Basic bar configuration using the Base16 variables.
bar {
    # status_command i3status --config ~/.config/i3/i3status.conf
    status_command i3status --config ~/.config/i3/i3status.conf

    tray_padding 2
    mode dock
    strip_workspace_numbers yes
    separator_symbol " "

    colors {
        background          $base00
        separator           $base05
        statusline          $base05

        focused_workspace   $background $background $base05
        active_workspace    $background $background $base05
        inactive_workspace  $background $background $base03
        urgent_workspace    $background $background $base08
        binding_mode        $background $background $base00
}
}

# Basic color configuration using the Base16 variables for windows and borders.
# Property Name          Border       BG       Text     Indicator  Child Border
client.focused           $base05      $base0D  $base00  $base0D    $base0D
client.focused_inactive  $base01      $base01  $base05  $base03    $base01
client.unfocused         $base01      $base00  $base05  $base01    $base01
client.urgent            $base08      $base08  $base00  $base08    $base08
client.placeholder       $base00      $base00  $base05  $base00    $base00
client.background        $background


# for_window [class="^.*"] border normal 3
# for_window [title="^.*Thunderbird"] border pixel 0
# for_window [title="^.*Chromium"] border pixel 0
for_window [title="^.*Firefox"]  border pixel 5
# for_window [class="Gvim"] border pixel 0
# for_window [class="(?i)xfce4-terminal"] border pixel 0
# for_window [class="(?i)xfce4-appfinder"] border pixel 0
# # for_window [title="^.*\|"] border pixel 4
# for_window [title="^HexChat.*"] border pixel 0
# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
# for_window [title="^.*"] exec pkill -SIGRTMIN+11 i3blocks
# for_window [title="cairo-dock"] floating enable ; border none
# for_window[class="Plank"] floating enable,move absolute center
# for_window [class=".*"] title_format "┋ %title"
# for_window [con_id="__focused__"] title_format "<u>%title</u>"


# vim: iskeyword+=\$,\-,\# nospell ft=tcl
..