aboutsummaryrefslogtreecommitdiff
path: root/i3-config
blob: 0266926fea471d9d3631e6b8df0713c3cd171e90 (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
set $mod Mod4
floating_modifier $mod

bindsym Ctrl+grave [instance="dropdown"] scratchpad show

# Main hotkeys
bindsym $mod+Return          exec urxvtc
bindsym $mod+r               exec dmenu_run
bindsym $mod+c               kill
bindsym Mod1+Shift+r         reload
bindsym $mod+Shift+r         restart
bindsym $mod+Ctrl+Shift+q    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+l               exec lock
bindsym --release Print exec "scrot -m '/home/zar/%s_%H%M_%d.%m.%Y_$wx$h.png'"
bindsym --release Shift+Print exec "scrot -s '/home/zar/%s_%H%M_%d%m%Y_$wx$h.png'"
bindsym XF86AudioRaiseVolume exec "amixer sset Master '5%+'"
bindsym XF86AudioLowerVolume exec "amixer sset Master '5%-'"
bindsym XF86AudioMute exec "amixer set Master toggle"

# Workspaces
bindsym $mod+1               workspace 1
bindsym $mod+2               workspace 2
bindsym $mod+3               workspace 3
bindsym $mod+4               workspace 4
bindsym $mod+5               workspace 5
bindsym $mod+6               workspace 6
bindsym $mod+7               workspace 7
bindsym $mod+8               workspace 8
bindsym $mod+9               workspace 9
bindsym $mod+0               workspace 10
bindsym $mod+Left            workspace prev
bindsym $mod+Right           workspace next

bindsym $mod+Mod1+1          move container to workspace 1
bindsym $mod+Mod1+2          move container to workspace 2
bindsym $mod+Mod1+3          move container to workspace 3
bindsym $mod+Mod1+4          move container to workspace 4
bindsym $mod+Mod1+5          move container to workspace 5
bindsym $mod+Mod1+6          move container to workspace 6
bindsym $mod+Mod1+7          move container to workspace 7
bindsym $mod+Mod1+8          move container to workspace 8
bindsym $mod+Mod1+9          move container to workspace 9
bindsym $mod+Mod1+0          move container to workspace 10

# Layout
bindsym $mod+s               layout stacking
#bindsym $mod+t               layout tabbed
bindsym $mod+e               layout toggle split
bindsym $mod+h               split h
bindsym $mod+v               split v
bindsym $mod+f               fullscreen

# Focus
bindsym Mod1+Up              focus up
bindsym Mod1+Down            focus down
bindsym Mod1+Left            focus left
bindsym Mod1+Right           focus right
bindsym $mod+Up              focus up
bindsym $mod+Down            focus down
bindsym $mod+a               focus parent
bindsym $mod+space           floating toggle

# Moving
bindsym $mod+Shift+Left      move left
bindsym $mod+Shift+Down      move down
bindsym $mod+Shift+Up        move up
bindsym $mod+Shift+Right     move right

# Resize
mode "resize" {
  bindsym Left               resize shrink width 1 px or 1 ppt
  bindsym Down               resize grow height 1 px or 1 ppt
  bindsym Up                 resize shrink height 1 px or 1 ppt
  bindsym Right              resize grow width 1 px or 1 ppt

  bindsym Return             mode "default"
  bindsym Escape             mode "default"
}

mode "focus" {
  bindsym Left               focus left; mode "default"
  bindsym Down               focus down; mode "default"
  bindsym Up                 focus up; mode "default"
  bindsym Right              focus right; mode "default"
}

bindsym $mod+x               mode "resize"
bindsym Control+b            mode "focus"

bar {
  font pango: FontAwesome:style=Regular 10
  colors {
    background         #000000
    separator          #000000
    focused_workspace  #000000 #000000 #ffffff
    active_workspace   #000000 #000000 #ffffff
    inactive_workspace #000000 #000000 #444444
    urgent_workspace   #000000 #000000 #ffffff
  }
  status_command i3status
}

# Style
# class                 border  backgr. text    indicator child_border
client.focused          #222222 #222222 #ffffff #2e9ef4   #285577
client.focused_inactive #222222 #222222 #ffffff #484e50   #5f676a
client.unfocused        #222222 #222222 #888888 #292d2e   #222222
client.urgent           #222222 #222222 #ffffff #900000   #900000
client.background       #ffffff
new_window              none
font pango:Monaco 7