guest@dotshare [~/groups/wms/i3] $ ls Powerline-I3/ | cat

Powerline I3 (scrot, raw, dl) (+7 likes)

electro7 Aug 15, 2015 (wms/i3)

SCROT

  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
# i3 config file (v4.8)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
# 22 jul 2015 - E7

#.......
# Font
#.......

#set $ft xft:DroidSans:size=8
#set $ft pango:Inconsolata:size=8
#set $ft -xos4-terminesspowerline-medium-r-normal--12-120-72-72-c-60-iso10646-1
font pango:Terminus 8
set $ft terminus12
#font $ft

#..........
# Look
#..........

new_window pixel 2
new_float pixel 2

# Hybrid colors
set $back               #1d1F21
set $black              #282A2E
set $grey               #373B41
set $lightgrey          #707880
set $white              #C5C8C6
set $yellow             #F0C674
set $red                #CC6666
set $darkred            #A54242
set $green              #B5BD56

#class                  border      backgr.     text        split
client.focused          $green     $green       $black      $red
client.focused_inactive $grey       $grey       $lightgrey  $grey
client.unfocused        $grey       $grey       $lightgrey  $grey
client.urgent           $red        $red        $black      $red
client.background       $back

#..........
# Applications
#..........

# Using bindcode for compatibility

# Principal mod key (Super = Win key)
# mod1 = Alt (xmodmap to show)
# mod4 = Winkey (xmodmap to show)
set $mod Mod4

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

# Terminal (mod+Enter)
bindcode $mod+36 exec urxvt
# GTK Theme sector (mod+winkey+a)
bindcode $mod+Mod1+38 exec lxappearance 
# Color picker (mod+winkey+g)
bindcode $mod+Mod1+42 exec gcolor2
# htop (mod+winkey+h)
bindcode $mod+Mod1+43 exec ~/.i3/i3_focus_or_run.sh -t htop ~/bin/terminal htop
# weechat (mod+winkey+i)
bindcode $mod+Mod1+31 exec ~/.i3/i3_focus_or_run.sh -t weechat ~/bin/terminal weechat
# iceweasel (mod+winkey+m)
bindcode $mod+Mod1+58 exec ~/.i3/i3_focus_or_run.sh -c iceweasel iceweasel
# virtualbox (mod+winkey+v)
bindcode $mod+Mod1+55 exec ~/.i3/i3_focus_or_run.sh -c VirtualBox VirtualBox
# mldonky (mod+winkey+t)
bindcode $mod+Mod1+28 exec ~/.i3/i3_focus_or_run.sh -t mldonkey ~/bin/terminal mldonkey
# start dmenu (mod+x)
bindcode $mod+53 exec dmenu_run -fn "$ft" -nb "$back" -nf "$white" -sb "$yellow" -sf "$black"

# Media keys
# En Manzanita ya lo hace solo el pbbuttons
#bindcode 123 exec --no-startud-id "amixer sset Master 5%+"
#bindcode 122 exec --no-startud-id "amixer sset Master 5%-"
#bindcode 121 exec --no-startud-id "amixer -q sset Master toggle"
#bindcode XF86AudioPlay exec ncmpcpp toggle
#bindcode XF86AudioStop exec ncmpcpp stop
#bindcode XF86AudioPrev exec ncmpcpp prev
#bindcode XF86AudioNext exec ncmpcpp next

#assign application to workspace
assign [class="Iceweasel"] 2:www
assign [class="(i)VirtualBox"] 3:vbox
assign [instance="(?i)TeamViewer.exe"] 4:vnc
#assign [class="Firefox"] → 2
#assign [class="Google-chrome"] → 2
#assign [class="vlc"] → 4
#assign [class="xv/mplayer"] → 4
#assign [class="Gimp"] → 3
#assign [class="Zathura"] → 5

# Layout
for_window [class="(?i)feh"] floating enable
for_window [class="(?i)gcolor2"] floating enable
for_window [class="(?i)gbdfed"] floating enable
for_window [class="(?i)lxappearance"] floating enable
for_window [instance="(?i)TeamViewer.exe"] floating enable
for_window [class="(?i)VirtualBox"] floating enable

#...........
# Keybinds i3
#...........

# kill focused window (mod+q)
bindcode $mod+24 kill

# Cursor key for focus
bindcode $mod+113 focus left
bindcode $mod+116 focus down
bindcode $mod+111 focus up
bindcode $mod+114 focus right

# Shitf+cursor for move windows
bindcode $mod+Shift+113 move left
bindcode $mod+Shift+116 move down
bindcode $mod+Shift+111 move up
bindcode $mod+Shift+114 move right

# split in horizontal orientation (mod+h)
bindcode $mod+43 split h
bindcode $mod+Mod1+113 split h
bindcode $mod+Mod1+114 split h

# split in vertical orientation (mod+v)
bindcode $mod+55 split v
bindcode $mod+Mod1+116 split v
bindcode $mod+Mod1+111 split v

# enter fullscreen mode for the focused container (mod+f)
bindcode $mod+41 fullscreen

# change container layout (stacked (mod+s), tabbed (mod+t), default(mod+e))
bindcode $mod+39 layout stacking
bindcode $mod+28 layout tabbed
bindcode $mod+40 layout default
bindcode $mod+25 layout toggle split

# toggle tiling / floating (mod+shitf+space)
bindcode $mod+Shift+65 floating toggle
bindcode $mod+Mod1+65 floating toggle

# change focus between tiling / floating windows (mod+space)
bindcode $mod+65 focus mode_toggle

# focus the parent container (mod+a)
bindcode $mod+38 focus parent

# focus the child container (mod+z)
bindcode $mod+52 focus child

# switch to workspace
bindcode $mod+10 workspace 1:term
bindcode $mod+11 workspace 2:www
bindcode $mod+12 workspace 3:vbox
bindcode $mod+13 workspace 4:vnc
bindcode $mod+14 workspace 5:doc
bindcode $mod+15 workspace 6:img
bindcode $mod+16 workspace 7:misc
bindcode $mod+17 workspace 8
bindcode $mod+18 workspace 9
bindcode $mod+19 workspace 10

# move focused container to workspace
bindcode $mod+Shift+10 move container to workspace 1:term
bindcode $mod+Shift+11 move container to workspace 2:www
bindcode $mod+Shift+12 move container to workspace 3:vbox
bindcode $mod+Shift+13 move container to workspace 4:vnc
bindcode $mod+Shift+14 move container to workspace 5:doc
bindcode $mod+Shift+15 move container to workspace 6:img
bindcode $mod+Shift+16 move container to workspace 7:misc
bindcode $mod+Shift+17 move container to workspace 8
bindcode $mod+Shift+18 move container to workspace 9
bindcode $mod+Shift+19 move container to workspace 10

# reload the configuration file (mod+shitf+c)
bindcode $mod+Shift+54 reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) (mod+shitf+r)
bindcode $mod+Shift+27 restart
# exit i3 (logs you out of your X session) (mod+shitf+e)
#bindcode $mod+Shift+26 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) (mod+r)
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.
  bindcode 44 resize shrink width 10 px or 10 ppt
  bindcode 45 resize grow height 10 px or 10 ppt
  bindcode 46 resize shrink height 10 px or 10 ppt
  bindcode 47 resize grow width 10 px or 10 ppt

  # same bindings, but for the arrow keys
  bindcode 113 resize shrink width 1 px or 1 ppt
  bindcode 116 resize grow height 1 px or 1 ppt
  bindcode 111 resize shrink height 1 px or 1 ppt
  bindcode 114 resize grow width 1 px or 1 ppt

  # back to normal: Enter or Escape
  bindcode 36 mode "default"
  bindcode 9 mode "default"
}
bindcode $mod+27 mode "resize"

# My bar
bar {
  i3bar_command ~/.i3/lemonbar/i3_lemonbar.sh
}

CLICK TO VIEW

x

Notes

Simple gray i3wm desktop with powerline symbols.

  • i3wm.
  • Lemonbar with my own parser.
  • Rxvt & bash.
  • Weechat & bitlbee.
  • ncmpcpp & mpd.
  • vim & git.

Lemonbar config and help here

Full dotfiles here

Comments

tukoz said about 8 years ago

Nice powerline-like design. Likes it but really sharing the status would be cool!