Range i3 (scrot) (+2 likes)
StylinGreymon Nov 21, 2013 (wms/i3)
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 | # fonts
# font for window titles. ISO 10646 = Unicode
font pango: cure 10
floating_modifier Ctrl
#new_window 1pixel
#new_float 1pixel
# colors
#class border backgr. text
client.focused #fff #495d6e #9e8a8e
client.focused_inactive #fff #3a485d #b4b4b4
client.unfocused #fff #3a485d #b4b4b4
client.urgent #fff #3a485d #9e8a8e
client.background #111111
# keybinds
# start a terminal
bindsym Mod4+t exec urxvt
# kill focused window
bindsym Mod4+x kill
# Browser
bindsym Mod4+f exec firefox
# File Manager
bindsym Mod4+e exec spacefm
# Launcher
bindsym Mod1+space exec gmrun
# change focus
#bindsym Mod4+j focus right
#bindsym Mod4+k focus down
#bindsym Mod4+i focus up
#bindsym Mod4+l focus left
#rotate monitor to the left
bindsym Mod4+Control+1 exec xrandr --output DVI-I-2 --rotate left --pos 0x0 --output DVI-I-3 --pos 1200x0
#rotate monitor to the right
bindsym Mod4+Control+2 exec xrandr --output DVI-I-2 --rotate normal --pos 0x360 --output DVI-I-3 --pos 1920x0
# alternatively, you can use the cursor keys:
bindsym Mod4+Left focus left
bindsym Mod4+Down focus down
bindsym Mod4+Up focus up
bindsym Mod4+Right focus right
# move focused window
bindsym Mod4+Shift+j move left
bindsym Mod4+Shift+k move down
bindsym Mod4+Shift+i move up
bindsym Mod4+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym Mod4+Shift+Left move left
bindsym Mod4+Shift+Down move down
bindsym Mod4+Shift+Up move up
bindsym Mod4+Shift+Right move right
# split in horizontal orientation
bindsym Mod4+h split h
# split in vertical orientation
bindsym Mod4+v split v
# enter fullscreen mode for the focused container
bindsym Mod4+Shift+f fullscreen
# change container layout (stacked, tabbed, default)
#bindsym Mod4+s layout stacking
#bindsym Mod4+w layout tabbed
#bindsym Mod4+e layout default
# toggle tiling / floating
bindsym Mod4+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym Mod4+space focus mode_toggle
# focus the parent container
bindsym Mod4+a focus parent
# focus the child container
#bindsym Mod1+Tab focus right
#bindsym Mod1+Shift+Tab focus left
# switch to workspace
bindsym Mod4+1 workspace ONE
bindsym Mod4+2 workspace TWO
bindsym Mod4+3 workspace THREE
bindsym Mod4+4 workspace FOUR
bindsym Mod4+5 workspace FIVE
bindsym Mod4+6 workspace SIX
bindsym Mod4+7 workspace SEVEN
bindsym Mod4+8 workspace EIGHT
bindsym Mod4+9 workspace NINE
bindsym Mod4+0 workspace TEN
#bindsym Mod1+Right workspace next_on_output
#bindsym Mod1+Left workspace prev_on_output
# move focused container to workspace
bindsym Mod4+Shift+1 move workspace ONE
bindsym Mod4+Shift+2 move workspace TWO
bindsym Mod4+Shift+3 move workspace THREE
bindsym Mod4+Shift+4 move workspace FOUR
bindsym Mod4+Shift+5 move workspace FIVE
bindsym Mod4+Shift+6 move workspace SIX
bindsym Mod4+Shift+7 move workspace SEVEN
bindsym Mod4+Shift+8 move workspace EIGHT
bindsym Mod4+Shift+9 move workspace NINE
bindsym Mod4+Shift+0 move workspace TEN
# move focused container to workspace and move to workspace
bindsym Mod4+Mod1+1 move workspace ONE; workspace ONE
bindsym Mod4+Mod1+2 move workspace TWO; workspace TWO
bindsym Mod4+Mod1+3 move workspace THREE; workspace THREE
bindsym Mod4+Mod1+4 move workspace FOUR; workspace FOUR
bindsym Mod4+Mod1+5 move workspace FIVE; workspace FIVE
bindsym Mod4+Mod1+6 move workspace SIX; workspace SIX
bindsym Mod4+Mod1+7 move workspace SEVEN; workspace SEVEN
bindsym Mod4+Mod1+8 move workspace EIGHT; workspace EIGHT
bindsym Mod4+Mod1+9 move workspace NINE; workspace NINE
bindsym Mod4+Mod1+0 move workspace TEN; workspace TEN
# reload the configuration file
bindsym Mod4+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod4+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym Control+Shift+q exit
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# They resize the border in the direction you pressed, e.g.
# when pressing left, the window is resized so that it has
# more space on its left
bindsym Shift+l resize shrink left 2 px or 2 ppt
bindsym l resize grow left 2 px or 2 ppt
bindsym Shift+k resize shrink down 2 px or 2 ppt
bindsym k resize grow down 2 px or 2 ppt
bindsym Shift+i resize shrink up 2 px or 2 ppt
bindsym i resize grow up 2 px or 2 ppt
bindsym Shift+j resize shrink right 2 px or 2 ppt
bindsym j resize grow right 2 px or 2 ppt
# same bindings, but for the arrow keys
bindsym Shift+Left resize shrink left 2 px or 2 ppt
bindsym Left resize grow left 2 px or 2 ppt
bindsym Shift+Down resize shrink down 2 px or 2 ppt
bindsym Down resize grow down 2 px or 2 ppt
bindsym Shift+Up resize shrink up 2 px or 2 ppt
bindsym Up resize grow up 2 px or 2 ppt
bindsym Shift+Right resize shrink right 2 px or 2 ppt
bindsym Right resize grow right 2 px or 2 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym Mod4+r mode "resize"
# Screenshot
bindsym Print exec "scrot -e 'mv $f ~/Pictures/Screenshots'"
# ncmpcpp
bindsym Mod4+XF86AudioPlay exec mpc play
bindsym Control+F9 exec mpc toggle
bindsym Mod4+XF86AudioStop exec mpc stop
bindsym Control+F10 exec mpc next
bindsym Control+F11 exec mpc prev
bindsym Mod4+XF86AudioRaiseVolume exec mpc volume +5
bindsym Mod4+XF86AudioLowerVolume exec mpc volume -5
bindsym Mod4+XF86AudioMute exec urxvtc -name ncmpcpp -e ncmpcpp
bindsym Mod4+Mod1+l exec i3lock -d
# Browser
bindsym XF86HomePage exec luakit
bindsym XF86Mail exec luakit -u myopera.com
force_xinerama yes
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
mode dock
position top
font pango: cure 10
workspace_buttons yes
tray_output none
status_command ~/.i3/conky.sh
#i3bar colours
colors {
background #191c23
statusline #b4b4b4
focused_workspace #a35b66 #a35b66 #ffffff
active_workspace #3a485d #3a485d #ffffff
inactive_workspace #3a485d #3a485d #ffffff
urgent_workspace #232730 #232730 #c7a551
}
}
#assign application to workspace
assign [class="Firefox"] → TWO
assign [class="Smplayer"] → ONE
assign [class="Gimp"] → ONE
assign [class="libreoffice-writer"] → FOUR
assign [class="Deluge"] → THREE
#for window control
for_window [class="[.]*"] border pixel 3
#for_window [class="Firefox"] border pixel 0
for_window [class="Gmrun"] floating enable
#for_window [class="Deluge"] border 1pixel
for_window [class="Gcalctool"] floating enable
#for_window [class="Mcomix"] border pixel 0
#for_window [class="Rxvt"] border pixel 5
#for_window [class="Gedit"] border 1pixel
for_window [class="Nitrogen"] floating enable
#for_window [class="Spacefm"] border 1pixel
for_window [class="Desmume"] floating enable
#for_window [class="Smplayer"] border pixel 1
#for_window [class="mplayer"] border pixel 1
exec --no-startup-id nitrogen --restore
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | total_run_times 0
use_spacer left
if_up_strictness address
out_to_console yes
out_to_x no
background no
update_interval 1
total_run_times 0
mpd_host localhost
mpd_port 6600
TEXT
^fg(\#687987)^i(/home/greymon/.scripts/dzen2/xbm8x8/note.xbm)^fg(\#b4b4b4) ${if_match "${mpd_status}" =="Playing"}$mpd_smart ${mpd_elapsed}-${mpd_length}$else${mpd_status}$endif ^fg(\#687987)^i(/home/greymon/.scripts/dzen2/xbm8x8/spkr_01.xbm) ^fg(\#b4b4b4)${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"}%^fg(\#687987) ^i(/home/greymon/.scripts/dzen2/xbm8x8/mem.xbm) ^fg(\#b4b4b4)$mem^fg(\#687987) ^i(/home/greymon/.scripts/dzen2/xbm8x8/clock.xbm)^fg(\#b4b4b4) ${time %A, %B %d %I:%M}^fg(\#040404)
|
x
Notes
Just an i3 config with conky and dzen.
There are a lot of cobwebs attached to this config, as I’m always changing things back and forth.
Icons here:
https://github.com/windelicato/dotfiles/tree/master/.xmonad/dzen2