VSIDO Community

VSIDO Support => WM Designs and Discussions => Topic started by: dizzie on January 14, 2013, 09:31:46 PM

Title: i3 (tiling WM)
Post by: dizzie on January 14, 2013, 09:31:46 PM
Hey guys (girls will follow soon)

Since i am not that much a fan of icons or desktops, i use a tiling wm called i3

Heres a shiny scrot :

(http://ompldr.org/taDJybA) (http://ompldr.org/vaDJybA)

It's very dynamic and customizeable, and as you can see i like stuff simple, therefore no "bling"
Title: Re: i3 (tiling WM)
Post by: VastOne on January 14, 2013, 09:34:45 PM
^ Very nice dizzie!

I am thinking of adding i3 as a WM on the next ISO's
Title: Re: i3 (tiling WM)
Post by: jedi on January 14, 2013, 11:33:47 PM
Awesome look dizzie.  Gonna have to try this out...
Title: Re: i3 (tiling WM)
Post by: dizzie on January 15, 2013, 12:07:58 AM
Quote from: jedi on January 14, 2013, 11:33:47 PM
Awesome look dizzie.  Gonna have to try this out...

If needed i'll share my .i3status.conf (the bottom right thingie) and thank you!
Title: Re: i3 (tiling WM)
Post by: dizzie on January 16, 2013, 08:33:04 AM
Put this in/as ~/.i3status.conf :




general {
#        output_format = "dzen2"
#        colors = true
         interval = 5
}


order += "disk /home"
order += "load"
order += "cpu_usage"
order += "ethernet eth0"
order += "time"


ethernet eth0 {
        # if you use %speed, i3status requires the cap_net_admin capability
        format_up = " E: %ip @ %speed "
        format_down = " E: down "
}


time {
        format = "%d-%m-%Y %H:%M:%S"
}


cpu_usage {
        format = " CPU Usage: %usage "
}


load {
        format = " CPU Load: %5min "
}


disk "/home" {
        format = "Home - Used: %used / Free: %free "
}



Re: time/date = You goody americans gotta change it to month/day/year :)
Title: Re: i3 (tiling WM)
Post by: dizzie on January 20, 2013, 07:56:33 PM
Some tweaking...  8)

(http://ompldr.org/taDVsOA) (http://ompldr.org/vaDVsOA)
Title: Re: i3 (tiling WM)
Post by: VastOne on January 20, 2013, 07:59:55 PM
Nice!

I see you have no issues running inxi (without sudo).  Did you have to adjust anything?
Title: Re: i3 (tiling WM)
Post by: dizzie on January 20, 2013, 08:01:16 PM
Quote from: VastOne on January 20, 2013, 07:59:55 PM
Nice!

I see you have no issues running inxi (without sudo).  Did you have to adjust anything?

Not at all, could be a xfce bug (didnt have it it OB either)
Title: Re: i3 (tiling WM)
Post by: Digit on January 26, 2013, 06:52:38 PM
mmmmmm mmm mmMMMmm!


* rolls around in i3's niceness *

mmm *lick lick*  nice wm!


i3 is an inspiration.  no, literally, it inspires me.  i've taken many cues from it for my "tabular boonad", and still have many more ideas from i3 i'd like to implement yet.
Title: Re: i3 (tiling WM)
Post by: dizzie on January 28, 2013, 11:42:53 AM
Update :


(http://en.zimagez.com/miniature/2013-01-28-1228491920x1080scrot.png) (http://en.zimagez.com/zimage/2013-01-28-1228491920x1080scrot.php)


Using conky :)


Config here https://www.dropbox.com/s/78i1tpotor6any2/i3config.tar.gz (https://www.dropbox.com/s/78i1tpotor6any2/i3config.tar.gz)


i use urxvt as terminal, so my .Xdefaults is here http://pastie.org/5896844 (http://pastie.org/5896844)


- Questions? Let me have 'em  ;)
Title: Re: i3 (tiling WM)
Post by: jedi on January 29, 2013, 08:28:22 PM
Basking in my i3 accomplishment today!  Got a lot figured out last night and am really enjoying the WM!!!  Not "all figured out" mind you, but well on the way!

(http://en.zimagez.com/miniature/2013-01-29-1520581920x1080scrot.png) (http://en.zimagez.com/zimage/2013-01-29-1520581920x1080scrot.php)

It's  8)
Title: Re: i3 (tiling WM)
Post by: jedi on January 30, 2013, 10:17:35 AM
Another shot from 5:15 am!  No sleep, but sleep is highly overrated.  I'll sleep when I'm dead.  i3 is too fun to sleep!!!  You should all be giving it a try... ;D

(http://en.zimagez.com/miniature/2013-01-30-0514341920x1080scrot.png) (http://en.zimagez.com/zimage/2013-01-30-0514341920x1080scrot.php)
Title: Re: i3 (tiling WM)
Post by: dizzie on February 02, 2013, 10:50:06 AM
Yes! new sys is up and running !


(http://en.zimagez.com/miniature/2013-02-02-1136561920x1080scrot.png) (http://en.zimagez.com/zimage/2013-02-02-1136561920x1080scrot.php)


6 cores makes a hell of a lot of a difference  8)
Title: Re: i3 (tiling WM)
Post by: PackRat on March 11, 2013, 03:08:33 AM
Some more i3 -
Tabbing is so much better than tiling  :)

(http://t.imgbox.com/adpNirN2.jpg) (http://imgbox.com/adpNirN2) (http://t.imgbox.com/adfYme0f.jpg) (http://imgbox.com/adfYme0f)
Title: Re: i3 (tiling WM)
Post by: PackRat on March 11, 2013, 03:35:31 AM
For vastone - well, anyone really.

pretty much stock i3 config file - the documentation on the i3 site is awesome. Some changes to the default keybindings; I use a fluxbox-fvwm baseline for my key bindings to save on my aging memory.

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4
set $ALT Mod1

default_orientation horizontal
workspace_layout tabbed
new_window 1pixel

# window colours: border background text
client.focused        #0F0F0F #FFA252 #0A0A0A
client.focused_inactive    #0F0F0F #5697B2 #E5E5EE
client.unfocused    #0F0F0F #5697B2 #E5E5EE
client.urgent        #E1696E #E1696E #E5E5EE

# font for window titles. ISO 10646 = Unicode
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font -xos4-terminus-medium-r-normal-*-12-120-72-72-c-60-iso10646-1
# font pango:Droid Sans Mono, Terminus Regular 10

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

exec xrdb -l /home/doug/.Xdefaults
exec xmodmap /home/doug/.Xmodmap
exec xsetroot -mod 1 1 -fg mediumslateblue -bg lightslategray
exec urxvtd -q -f -o
exec update-notifier
exec nm-applet
exec fbsetbg -t -r "$HOME/pixmaps/"

# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
bindsym $ALT+F1 exec urxvtc

# kill focused window
bindsym $ALT+F4 kill

# start dmenu (a program launcher)
bindsym $ALT+F2 exec dmenu_run -nb rgb:01/01/01 -nf rgb:f6/f6/ff -sf rgb:01/01/01 -sb rgb:00/CD/7B

bindsym XF86HomePage exec firefox
bindsym $mod+F14 exec thunderbird
bindsym $mod+Control+l exec medit
bindsym Menu exec spacefm
bindsym $mod+Control+g exec gimp
bindsym $ALT+F3 exec uxterm -geom 80x24+32+32
bindsym $mod+Shift+F3 exec urxvt -e tmux

bindsym XF86AudioRaiseVolume exec "$HOME/bin/volup.sh"
bindsym XF86AudioLowerVolume exec "$HOME/bin/voldwn.sh"
bindsym XF86AudioMute exec "$HOME/bin/volmute.sh"

assign [class="Navigator"] 2
for_window [class="Navigator"] border 1pixel
assign [class="Firefox"] 2
for_window [class="Firefox"] border 1pixel
assign [class="Thunderbird"] 2
for_window [class="Thunderbird"] border 1pixel
assign [class="Gimp"] 3
for_window [class="Gimp"] border normal
assign [class="Gnome-mplayer"] 4
for_window [class="Gnome-mplayer"] floating enable
for_window [class="XFontsel"] floating enable
for_window [title="Event Tester"] floating enable
for_window [class="Gcolor2"] floating enable
for_window [class="UXTerm"] floating enable
for_window [class="UXTerm"] border 1pixel

# change focus
#bindsym $mod+j focus left
#bindsym $mod+k focus down
#bindsym $mod+l focus up
#bindsym $mod+semicolon focus right

bindsym $ALT+Tab focus right
bindsym $ALT+Shift+Tab focus left

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
#bindsym $mod+Shift+J move left
#bindsym $mod+Shift+K move down
#bindsym $mod+Shift+L move up
#bindsym $mod+Shift+colon move right

# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right

# 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

# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+d layout default

# 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+p focus parent

# focus the child container
# bindcode $mod+c focus child

# switch to workspace
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

# move focused container to workspace
bindsym $mod+Shift+exclam move container to workspace 1
bindsym $mod+Shift+at move container to workspace 2
bindsym $mod+Shift+numbersign move container to workspace 3
bindsym $mod+Shift+dollar move container to workspace 4
bindsym $mod+Shift+percent move container to workspace 5
bindsym $mod+Shift+asciicircum move container to workspace 6
bindsym $mod+Shift+ampersand move container to workspace 7
bindsym $mod+Shift+asterisk move container to workspace 8
bindsym $mod+Shift+parenleft move container to workspace 9
bindsym $mod+Shift+parenright move container to workspace 10

# reload the configuration file
bindsym $mod+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+q restart
# exit i3 (logs you out of your X session)
bindsym $mod+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

        # 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 j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym semicolon resize grow width 10 px or 10 ppt

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

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

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
       position top
       workspace_buttons yes
       colors {
          background #0F0F0F
          statusline #E5E5EE
          focused_workspace #FFA252 #FFA252 #0A0A0A
          active_workspace #7FB256 #0F0F0F #E5E5E5
          inactive_workspace #5697B2 #5697B2 #E5E5E5
          urgent_workspace #E1696E #E16963 #E5E5E5
              }
       status_command /home/doug/bin/conky_i3bar.sh
#      status_command conky
}


the script for conky; colorized using JSON - also documented on i3 site; many thanks to #! BBQer jkeg for this one:

################################################
# Pass colors to i3 status bar conky with JSON #
################################################

## Create a script in ~/bin and name it conky_i3bar.sh. 

#!/bin/sh

# Send the header so that i3bar knows we want to use JSON:
echo '{ "version": 1 }'

# Begin the endless array.
echo '['

# We send an empty first array of blocks to make the loop simpler:
echo '[],'

# Now send blocks with information forever:
exec conky -c /home/doug/.i3/.conkyrc


and the .conkyrc

out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
update_interval 1.0
total_run_times 0
short_units yes
cpu_avg_samples 4
use_spacer none

TEXT
# JSON for i3bar

[

{ "full_text" : "  Up: ${uptime_short}  " , "color" : "\#E5E5EE" },

        { "full_text" : "  CPU: ${cpu}%  " , "color" :
                ${if_match ${cpu}>33}"\#FF2828"${else}"\#E5E5EE"${endif} },

        { "full_text" : "  CORE0: ${execpi 60 /home/doug/conky/TCore0.sh}°C  " , "color" :
                ${if_match ${execpi 60 /home/doug/conky/TCore0.sh}>=80}"\#FF2828"${else}${if_match ${execpi 60 /home/doug/conky/TCore0.sh}>=50}"\#FAFA10"${else}"\#E5E5EE"${endif}${endif} },

        { "full_text" : "  CORE1: ${execpi 60 /home/doug/conky/TCore1.sh}°C  " , "color" :
                ${if_match ${execpi 60 /home/doug/conky/TCore1.sh}>=80}"\#FF2828"${else}${if_match ${execpi 60 /home/doug/conky/TCore1.sh}>=50}"\#FAFA10"${else}"\#E5E5EE"${endif}${endif} },

        { "full_text" : "  RAM  ${memperc}%  " , "color" :
                ${if_match ${memperc}>20}"\#FF2828"${else}"\#E5E5EE"${endif} } ,

        { "full_text" : "  WLAN:  ${wireless_link_qual_perc wlan0}% " , "color" :
                ${if_match ${wireless_link_qual_perc wlan0}<50}"\#FF2828"${else}"\#E5E5EE"${endif} },

{ "full_text" : "  U:  ${upspeedf wlan0} " , "color" :
                ${if_match ${upspeedf wlan0}<=500}"\#E5E5EE"${else}"\#00EEEE"${endif} },

{ "full_text" : "  D:  ${downspeedf wlan0} " , "color" :
                ${if_match ${downspeedf wlan0}<=500}"\#E5E5EE"${else}"\#00EEEE"${endif} },

        { "full_text" : "  BATT:  ${battery_percent BAT0}%  " , "color" :
                ${if_match ${battery_percent BAT0}<=15}"\#FF2828"${else}${if_match ${battery_percent BAT0}<=33}"\#FAFA10"${else}"\#E5E5EE"${endif}${endif} } ,

{ "full_text" : "  ${time %a %e %b  %k:%M}  " , "color" : "\#E5E5EE" }

],


a non-colored conky that doesn't require the JSON formatting works just fine.

The TCore0.sh for CPU temp - based on output from lm-sensors:

#!/bin/sh
sensors | awk '/Core 0/ {gsub(/\+/,"",$3); gsub(/\..+/,"",$3); print $3}'
Title: Re: i3 (tiling WM)
Post by: ozitraveller on March 17, 2013, 02:42:11 AM
I thought this was quite interesting too. ;)

i3 - An Improved Tiling Window Manager
i3 - An Improved Tiling Window Manager (http://www.youtube.com/watch?v=QnYN2CTb1hM#ws)
Title: Re: i3 (tiling WM)
Post by: dizzie on September 28, 2013, 04:07:13 PM
For the impatient, I compiled a tgz for you


https://www.dropbox.com/s/278y3u9gdsg69kb/dizzies-i3-package.tar.gz (https://www.dropbox.com/s/278y3u9gdsg69kb/dizzies-i3-package.tar.gz)


1. I use CHROMIUM, don't like that browser, fix it using your favorite editor (mine is vim, but nano or medit works too)
2. My terminal of choice is URXVT, don't like that terminal, fix it using your favorite editor (mine is vim, but nano or medit works too)
3. My COLOURS are set in .Xdefaults, don't like? Don't use :)
4. My font of choice is INCONSOLATA, don't like, don't use :)
5. Added my .conkyrc as a bonus, because that's how I roll  8)

and the "Screenshot or it didn't happen is below"


(http://s16.postimg.org/hnjz0nrg1/2013_09_28_180506_1920x1080_scrot.jpg) (http://postimg.org/image/hnjz0nrg1/)
Title: Re: i3 (tiling WM)
Post by: ozitraveller on September 29, 2013, 02:26:33 PM
Hi Dizzie

Thanks for the tgz I'll give it a try when I get back home. ;)

Cheers
Ozi
Title: Re: i3 (tiling WM)
Post by: dizzie on September 29, 2013, 03:22:49 PM
Quote from: ozitraveller on September 29, 2013, 02:26:33 PM
Hi Dizzie

Thanks for the tgz I'll give it a try when I get back home. ;)

Cheers
Ozi


Common problem: Conky refuse to start because of my temp/fan readouts, So disable those lines with '#' if conky wont start.


And fix accordingly to your own system (run sensors-detect & sensorts in a terminal to see what needs to be changed)


Let me know if that becomes a problem and I will help with a fix :)
Title: Re: i3 (tiling WM)
Post by: ozitraveller on October 02, 2013, 12:10:20 AM
Hi Dizzie

I have a number of boxes and so tend to have the same conky everywhere which is fairly minimal and don't setup the sensors.

:)
Ozi
Title: Re: i3 (tiling WM)
Post by: dizzie on October 16, 2013, 06:29:43 PM
git clone https://github.com/dizzie/git-home


I made it easier :)
Title: Re: i3 (tiling WM)
Post by: ozitraveller on October 16, 2013, 10:57:36 PM
Ok dizzie  you've convinced me. I'll create a vm to try out i3, a nice clean debian. ;)

Is there any difference between i3 in stable, testing and sid?
Title: Re: i3 (tiling WM)
Post by: dizzie on October 17, 2013, 02:31:14 AM
Not to my knowledge
Title: Re: i3 (tiling WM)
Post by: ozitraveller on October 17, 2013, 05:45:10 AM
Interesting. :)
Title: Re: i3 (tiling WM)
Post by: dizzie on October 17, 2013, 05:53:34 AM
What is ?
Title: Re: i3 (tiling WM)
Post by: PackRat on October 17, 2013, 01:08:00 PM
@ozitraveller

the i3 version in debian stable is 4.2.x, testing and sid have 4.6.x - there were several changes between those versions; xft font support being one as well as some feature enhancements for container management.

if you want to live on the edge, there is a debian repo you can add to get the latest development release -> http://i3wm.org/docs/repositories.html (http://i3wm.org/docs/repositories.html)
Title: Re: i3 (tiling WM)
Post by: dizzie on March 09, 2016, 01:32:36 PM
As promised in the screenshot thread (and yes I know this is a VERY old thread, and I don't care)


In the xz file is :


- conkyrc's (top and bottom) for a single screen system
- stuff that runs the conkyrc's (~/bin)
- My .Xdefaults for colors and fonts for use with most terminals (I use rxvt)
- My .vimrc cause I am nice
- My mc (midnight commander) colors (that matches the rest)


You're welcome :)


The file:
https://www.dropbox.com/s/6o7myqe96sqdjgv/dizzie-i3-single-monitor.tar.xz (https://www.dropbox.com/s/6o7myqe96sqdjgv/dizzie-i3-single-monitor.tar.xz)


The screenshot(s)


Idle:
(http://s18.postimg.org/bj9urydyt/2016_03_09_135421_1440x900_scrot.jpg) (http://postimg.org/image/bj9urydyt/)
Busy:
(http://s10.postimg.org/n2mkfbtd1/2016_03_09_143009_1440x900_scrot.jpg) (http://postimg.org/image/n2mkfbtd1/)


Wallpaper:
(http://s9.postimg.org/yjlp0j6tn/anime_girl_glasses_1440x900.jpg) (http://postimg.org/image/yjlp0j6tn/)
Title: Re: i3 (tiling WM)
Post by: ozitraveller on March 16, 2016, 02:43:04 AM
Has anyone tried swaywm and i3 alternative?
Title: Re: i3 (tiling WM)
Post by: dizzie on March 16, 2016, 08:25:00 AM
I've heard about it, but I like my i3 like i like my coffee, strong and compact  :D
Title: Re: i3 (tiling WM)
Post by: PackRat on March 16, 2016, 10:30:07 AM
I couldn't get the wlc dependency to build on my system- comolained about some other missing dependencies as I recall.
I don't think wlc is in the debian repos either, unless it's packaged under a different name.
Title: Re: i3 (tiling WM)
Post by: ozitraveller on March 16, 2016, 11:24:43 PM
I don't think I would switch over either, there's not a significant enough difference to change and wayland is still green.
Title: Re: i3 (tiling WM)
Post by: PackRat on March 17, 2016, 01:46:38 AM
I wouldn't switch either; I was just looking for a window manager to run in wayland to see if i could actually accomplish anything.
Title: Re: i3 (tiling WM)
Post by: ozitraveller on March 17, 2016, 04:22:23 AM
Did you have any joy with that?
Title: Re: i3 (tiling WM)
Post by: PackRat on March 17, 2016, 10:37:47 AM
Minimal.

Enlightenment runs on wayland so I was using that, and weston will be a decent wm when it's finished.

X-apps don't work to well, and I had issues with the mouse and/or keyboard locking up all the time.

There may be some reconfigurations I could have tried, but I didn't dig too deep into setting up wayland. I just wanted a preview.

I suspect waykand and Xorg will coexist for quite a while even after wayland is released for production.
Title: Re: i3 (tiling WM)
Post by: ozitraveller on March 17, 2016, 07:11:45 PM
I've seen other comments lately with locking issues too, but interesting to see where they are at and a feel for how things work. :)
Title: Re: i3 (tiling WM)
Post by: PackRat on April 28, 2016, 05:18:45 PM
dropping my current config here (Because this forum's bb codes work!)

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4
set $ALT Mod1

default_orientation horizontal
workspace_layout tabbed
new_window 1pixel
focus_follows_mouse no

# window colours: border background text
client.focused #0F0F0F #B39B6B #E5E5E5
client.focused_inactive #0F0F0F #322E3D #BBBBBB
client.unfocused #0F0F0F #54595C #E5E5E5
client.urgent #0F0F0F #FF2200 #FFFFFF

# font for window titles. ISO 10646 = Unicode
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
font -xos4-terminus-medium-r-normal-*-12-120-72-72-c-60-iso10646-1
# font pango: Dina 10

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

# exec syndaemon -i 1.0 -d
exec xsetroot -mod 1 1 -fg mediumslateblue -bg lightslategray
exec xrdb -l "$HOME/.Xresources"
exec xmodmap "$HOME/.Xmodmap"
exec xset s 300 -dpms

# load urxvtd
# exec urxvtd -q -o -f &

# turn off touchpad
exec /home/doug/bin/ktouchpad.sh

exec fbsetbg -c -r "$HOME/wallpaper/"

# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
bindsym $ALT+F1 exec urxvt

# kill focused window
bindsym $ALT+F4 kill

# start dmenu (a program launcher)
bindsym $ALT+F2 exec dmenu_run -nb rgb:01/01/01 -nf rgb:B5/B5/B5 -sf rgb:F7/F7/CB -sb rgb:7F/82/99

# touchpad
bindsym $mod+Control+t exec "$HOME/bin/ktouchpad.sh"

bindsym XF86HomePage exec firefox
bindsym $mod+F14 exec thunderbird
bindsym $mod+Control+l exec medit
bindsym Menu exec thunar
bindsym $mod+Control+g exec gimp
bindsym $ALT+F3 exec xterm -geom 80x24+32+32
bindsym $ALT+Shift+F3 exec urxvt -e tmux
bindsym $mod+Control+Print exec "$HOME/bin/scrot_delay.sh"

bindsym XF86AudioRaiseVolume exec "$HOME/bin/volup.sh"
bindsym XF86AudioLowerVolume exec "$HOME/bin/voldwn.sh"
bindsym XF86AudioMute exec "$HOME/bin/volmute.sh"
bindsym $mod+Control+p exec "libreoffice --calc"
bindsym $mod+Control+o exec "libreoffice --writer"

# assign [class="Navigator"] 2
for_window [class="Navigator"] border 1pixel
# assign [class="Firefox"] 2
for_window [class="Firefox"] border 1pixel
assign [class="Chromium"] 2
for_window [class="Chromium"] border 1pixel
# assign [class="Thunderbird"] 2
for_window [class="Thunderbird"] border 1pixel
assign [class="Gimp"] 3
for_window [class="Gimp"] border normal
assign [class="Gnome-mplayer"] 4
for_window [class="Gnome-mplayer"] floating enable
for_window [class="XFontsel"] floating enable
for_window [title="Event Tester"] floating enable
for_window [class="Gcolor2"] floating enable
for_window [class="UXTerm"] floating enable
for_window [class="UXTerm"] border 1pixel
for_window [class="XTerm"] border 1pixel
for_window [class="XTerm"] floating enable
for_window [class="XCalc"] floating enable
for_window [class="XCalc"] border 1pixel
for_window [class="XFontSel"] floating enable
for_window [class="XFontSel"] border 1pixel
for_window [class="Event Tester"] floating enable
for_window [class="Event Tester"] border 1pixel
for_window [class="Gxine"] floating enable
for_window [class="Gxine"] border 1pixel
for_window [class="Sakura"] border 1pixel
for_window [class="Sakura"] floating enable
for_window [class="Lxterminal"] border 1pixel
for_window [class="Lxterminal"] floating enable
for_window [class="wm-exit"] border 1pixel
for_window [class="wm-exit"] floating enable

# change focus
#bindsym $mod+j focus left
#bindsym $mod+k focus down
#bindsym $mod+l focus up
#bindsym $mod+semicolon focus right

bindsym $ALT+Tab focus right
bindsym $ALT+Shift+Tab focus left

# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# move focused window
#bindsym $mod+Shift+J move left
#bindsym $mod+Shift+K move down
#bindsym $mod+Shift+L move up
#bindsym $mod+Shift+colon move right

# alternatively, you can use the cursor keys:
bindsym $ALT+Shift+Left move left
bindsym $ALT+Shift+Down move down
bindsym $ALT+Shift+Up move up
bindsym $ALT+Shift+Right move right

# 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+shift+f fullscreen
bindsym $ALT+F11 fullscreen

# change container layout (stacked, tabbed, default)
bindsym $mod+s layout stacking
bindsym $mod+t layout tabbed
bindsym $mod+d layout default

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

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle

# focus the parent container
bindsym $mod+p focus parent

# focus the child container
bindcode $mod+c focus child

# switch to workspace
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

# move focused container to workspace - note it is mod+shift+1 etc.
bindsym $mod+Shift+exclam move container to workspace 1
bindsym $mod+Shift+at move container to workspace 2
bindsym $mod+Shift+numbersign move container to workspace 3
bindsym $mod+Shift+dollar move container to workspace 4
bindsym $mod+Shift+percent move container to workspace 5
bindsym $mod+Shift+asciicircum move container to workspace 6
bindsym $mod+Shift+ampersand move container to workspace 7
bindsym $mod+Shift+asterisk move container to workspace 8
bindsym $mod+Shift+parenleft move container to workspace 9
bindsym $mod+Shift+parenright move container to workspace 10

# reload the configuration file
bindsym $mod+Shift+C reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+q restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+Q exec wm-exit
bindsym $mod+Shift+e exit

# 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 j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym h resize grow width 10 px or 10 ppt

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

        # same bindings, but for the arrow keys
        bindsym $mod+Shift+Left resize shrink width 10 px or 10 ppt
        bindsym $mod+Shift+Down resize grow height 10 px or 10 ppt
        bindsym $mod+Shift+Up resize shrink height 10 px or 10 ppt
        bindsym $mod+Shift+Right resize grow width 10 px or 10 ppt

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

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
       position top
       workspace_buttons yes
       colors {
          background #140A0A
          statusline #777777
          focused_workspace #3D3D3D #3D3D3D #FFFFFF
          active_workspace #3D3D3D #3D3D3D #CCCCCC
          inactive_workspace #140A0A #140A0A #777777
          urgent_workspace #FF2200 #FF2200 #FFFFFF
     }
       status_command "$HOME/.config/i3/i3conkybar.sh"
#      status_command conky
}