Last active
August 29, 2015 14:08
-
-
Save cirrusUK/8ff245ff61d2409624bc to your computer and use it in GitHub Desktop.
i3 config 2x 1920x1080 VDU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 some time, 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 | |
| # Font for window titles. Will also be used by the bar unless a different font | |
| # is used in the bar {} block below. | |
| # This font is widely installed, provides lots of unicode glyphs, right-to-left | |
| # text rendering and scalability on retina/hidpi displays (thanks to pango). | |
| font pango:Envy Code R 9 | |
| # Before i3 v4.8, we used to recommend this one as the default: | |
| # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
| # The font above is very space-efficient, that is, it looks good, sharp and | |
| # clear in small sizes. However, its unicode glyph coverage is limited, the old | |
| # X core fonts rendering does not support right-to-left and this being a bitmap | |
| # font, it doesn’t scale on retina/hidpi displays. | |
| # Use Mouse+$mod to drag floating windows to their wanted position | |
| floating_modifier $mod | |
| # start a terminal | |
| bindsym $mod+Return exec lxterminal -e tmux | |
| # kill focused window | |
| bindsym $mod+q kill | |
| # start dmenu (a program launcher) | |
| #bindsym $mod+d exec ~/i3dmenu.sh & mpg123 ~/sonar.mp3 | |
| #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 | |
| # change focus | |
| bindsym $mod+j focus left | |
| bindsym $mod+k focus down | |
| bindsym $mod+l focus up | |
| bindsym $mod+semicolon focus right | |
| # 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+semicolon 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, toggle split) | |
| bindsym $mod+s layout stacking | |
| bindsym $mod+w layout tabbed | |
| bindsym $mod+e layout toggle split | |
| # 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 | |
| # Follow mouse | |
| focus_follows_mouse no | |
| #popup windows | |
| popup_during_fullscreen smart | |
| # Workspace names | |
| workspace "✪:Web" output DVI-0 | |
| workspace "☣:IRC" output DVI-1 | |
| workspace "▣:Shell" output DVI-1 | |
| workspace "✉:Mail" output DVI-1 | |
| workspace "♬:Media" output DVI-1 | |
| workspace "◎:Scratch" output DVI-0 | |
| # switch to workspace | |
| bindsym $mod+1 workspace ✪:Web | |
| bindsym $mod+2 workspace ☣:IRC | |
| bindsym $mod+3 workspace ▣:Shell | |
| bindsym $mod+4 workspace ✉:Mail | |
| bindsym $mod+5 workspace ♬:Media | |
| bindsym $mod+6 workspace ◎:Scratch | |
| 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+1 move container to workspace ✪:Web | |
| bindsym $mod+Shift+2 move container to workspace ☣:IRC | |
| bindsym $mod+Shift+3 move container to workspace ▣:Shell | |
| bindsym $mod+Shift+4 move container to workspace ✉:Mail | |
| bindsym $mod+Shift+5 move container to workspace ♬:Media | |
| bindsym $mod+Shift+6 move container to workspace ◎:Scratch | |
| bindsym $mod+Shift+7 move container to workspace 7 | |
| bindsym $mod+Shift+8 move container to workspace 8 | |
| bindsym $mod+Shift+9 move container to workspace 9 | |
| bindsym $mod+Shift+0 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+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'" | |
| # 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 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 | |
| # 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 { | |
| output DVI-0 | |
| status_command i3blocks | |
| colors { | |
| separator #dc322f | |
| background #002b36 | |
| statusline #268bd2 | |
| focused_workspace #002b36 #002b36 #e7a70b | |
| active_workspace #002b36 #002b36 #a0db8e | |
| inactive_workspace #22ce84 #002b36 #7DD427 | |
| urgent_workspace #2f343a #900000 #ffffff | |
| } | |
| } | |
| bar { | |
| output DVI-1 | |
| tray_output DVI-1 | |
| status_command $HOME/.config/i3/startup_conky | |
| colors { | |
| separator #dc322f | |
| background #002b36 | |
| statusline #268bd2 | |
| focused_workspace #002b36 #002b36 #e7a70b | |
| active_workspace #002b36 #002b36 #a0db8e | |
| inactive_workspace #22ce84 #002b36 #7DD427 | |
| urgent_workspace #2f343a #900000 #ffffff | |
| } | |
| } | |
| # window border colours | |
| # class border backgr. text indicator | |
| client.focused #7DD427 #002833 #54ffbc #2e9ef4 | |
| client.focused_inactive #7DD427 #002B36 #5AC91E #126380 | |
| client.unfocused #F97E2A #002B36 #5AC91E #ffa500 | |
| client.urgent #da7f19 #900000 #ffffff #900000 | |
| # default applications | |
| set $editor leafpad | |
| set $browser dwb | |
| set $player mpv | |
| set $email mutt | |
| set $mp3 mpg123 | |
| # WINDOW CONTROL | |
| ## Float everything | |
| #for_window [class=""] floating enable | |
| ## 1pixel border everything | |
| for_window [class="[.]*"] border 1pixel | |
| #firefox floating | |
| #for_window [class="Firefox" instance="Browser"] floating enable; focus mode_toggle | |
| for_window [class="Navigator" instance="Firefox"] floating enable; focus mode_toggle | |
| #for_window [class="Firefox" instance="Dialog"] floating enable; focus mode_toggle | |
| for_window [class="Firefox" instance="Extension"] floating enable | |
| for_window [class="Firefox" instance="Abp"] floating enable | |
| for_window [class="Firefox" instance="Firefox preferences"] floating enable; focus mode_toggle | |
| for_window [title="Share a link on Twitter - Mozilla Firefox" class="Firefox"] floating enable | |
| for_window [title="Press This - Mozilla Firefox" class="Firefox"] floating enable | |
| for_window [title="About Mozilla Firefox" class="Navigator"] floating enable; focus mode_toggle | |
| # float the following | |
| for_window [class="Pcmanfm"] floating enable; | |
| for_window [class="Lxterminal"] floating enable; | |
| for_window [class="Simplescreenrecorder"] floating enable; border none; focus mode_toggle | |
| #for_window [class="Gimp"] floating enable | |
| #for_window [class="Mpv"] floating enable; border 1pixel | |
| for_window [class="Grun"] floating enable; border 1pixel | |
| for_window [class="MPlayer"] floating enable; border none | |
| for_window [class="Guake"] floating enable; border 1pixel; | |
| for_window [class="Shotwell"] floating enable; | |
| for_window [class="Sxiv"] floating enable; focus mode_toggle | |
| for_window [class="Audacious"] floating enable; focus mode_toggle; border none | |
| for_window [class="Spacefm"] floating enable; focus mode_toggle | |
| for_window [class="Xfce4-notifyd"] floating enable; border 1pixel; focus mode_toggle | |
| for_window [class="Torrent-search"] floating enable; border 1pixel; focus mode_toggle | |
| for_window [class="Transmission"] floating enable; border 1pixel; focus mode_toggle | |
| for_window [class="feh"] floating enable; border 1pixel; focus mode_toggle | |
| for_window [class="sublime-text"] floating enable; border 1pixel; focus mode_toggle | |
| for_window [class="Termite"] border none; floating enable; focus mode_toggle; | |
| for_window [class="Leafpad"] floating enable; | |
| for_window [class="XEyes"] floating enable; border 1pixel; | |
| for_window [class="Dclock"] floating enable; border 1pixel; | |
| for_window [class="Nitrogen"] floating enable | |
| for_window [class="Tickr"] floating enable; border none | |
| for_window [class="Lxappearance"] floating enable | |
| for_window [class="Pidgin"] floating enable | |
| for_window [class="File-roller|Arandr|Transmission-gtk"] floating enable | |
| for_window [title="Preferences"] floating enable | |
| for_window [title="Open Cubic Player"] floating enable; border 1pixel; | |
| #for_window [title="Mpv"] floating enable; border 1pixel; | |
| #for_window [title="---"] floating enable | |
| #misc | |
| #(( $+commands[espeak] )) && { notify-send -i ~/.icons/arch48.png "Pacman Notification" "Installing ESPEAK\!"; lxterminal -e sudo pacman -S espeak } | |
| #notify-send -i ~/.icons/arch48.png "Pacman Notification" "Updating Mirrorlists\!"; lxterminal -e sudo pacman -Syy } | |
| #notify-send -i ~/.icons/arch48.png "Pacman Notification" "Launching Firefox\!" && firefox | |
| #{ notify-send -i "~/.icons/$1.png" "Launching program" "$1" && espeak "Launching $1" && $* } | |
| # Assignment to a named workspace | |
| assign [class="Firefox"] ✪:Web | |
| assign [class="Chromium"] ✪:Web | |
| assign [class="Dwb"] ✪:Web | |
| assign [class="Termite"] ☣:IRC | |
| assign [class="Tickr"] ☣:IRC | |
| assign [class="Open Cubic Player"] ☣:IRC | |
| assign [class="Dclock"] ☣:IRC | |
| assign [class="Tilda"] ♬:Media | |
| assign [class="Terminator"] ✉:Mail | |
| assign [class="Sakura"] ▣:Shell | |
| #assign [class="Pcmanfm"] ◎:Scratch | |
| # autostarts | |
| exec --no-startup-id ~/.screenlayout/screens.sh | |
| exec --no-startup-id nitrogen --restore | |
| exec --no-startup-id tickr | |
| exec --no-startup-id compton --config ~/.compton.conf -b | |
| #exec --no-startup-id rm -rf ~/.config/mpdnotify/pid | |
| exec --no-startup-id xset s noblank | |
| exec --no-startup-id setterm -blank 0 -powerdown 0 | |
| exec --no-startup-id xset -dpms; xset s off | |
| exec --no-startup-id xcowsay --at 3100,20 --font=CaviarDreams --monitor=1 --image=/home/cirrus/arch.svg "Archlinux x86_64 ONLINE" "Welcome Back Commander" && espeak "Archlinux, X 86,64 ONLINE. Welcome Back Commander" | |
| #exec --no-startup-id (sleep 5) && xcowsay --at 3100,20 --font=CaviarDreams --time=5000 --monitor=1 --image=/home/cirrus/tux.png "OS- Archlinux x86_64" "Installed on Tue Jun 17 2014 at 04:36:52" | |
| exec --no-startup-id termite -e tmux | |
| exec --no-startup-id volumeicon | |
| #exec --no-startup-id sido | |
| exec --no-startup-id rss-notify | |
| #exec --no-startup-id xcowsay $(fortune all) | |
| exec --no-startup-id conky -c ~/.config/i3/.conkyrcbar | |
| exec --no-startup-id radiotray | |
| exec --no-startup-id firefox | |
| exec --no-startup-id gmail-notify | |
| exec --no-startup-id sakura | |
| exec --no-startup-id terminator -e mutt | |
| exec --no-startup-id dclock -bg black -fg turquoise -led_off black -geometry 114x49 | |
| #exec --no-startup-id xeyes -bg black -center green -fg blue -geometry 114x49 | |
| # custom keybinds | |
| bindsym Mod4+F11 exec pcmanfm & espeak "launching P Cman file manager" | |
| bindsym Mod1+l exec leafpad & espeak "launching leafpad text editor" | |
| bindsym Mod4+c exec dclock -bg black -fg turquoise -led_off black -geometry 114x49 | |
| bindsym Mod4+F12 exec lxterminal -e ranger & espeak "Activating Rainjer" | |
| bindsym Mod4+F10 exec subl & espeak "launching sublime text" | |
| bindsym Mod4+F9 exec i3-sensible-terminal -e finch & espeak "Activating Finch" | |
| bindsym Mod4+F8 exec lxterminal -e pms & espeak "launching poor mans spotify" | |
| bindsym Mod4+F7 exec lxterminal -e pmsyt & espeak "launching P M S Y T" | |
| bindsym Mod4+F6 exec lxterminal -e pyradio & espeak "launching Pie Radio" | |
| bindsym Mod4+F5 exec espeak "launching oh see pea" & ocp | |
| bindsym Mod1+d exec dwb & espeak "launching D W B" | |
| bindsym Mod1+f exec firefox & espeak "Launching Fire Fox Browser" | |
| bindsym Mod1+F2 exec grun |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment