Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Last active February 22, 2016 11:16
Show Gist options
  • Select an option

  • Save cirrusUK/7508458 to your computer and use it in GitHub Desktop.

Select an option

Save cirrusUK/7508458 to your computer and use it in GitHub Desktop.
~/.i3/config dual DVI Desktop
# 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.
#Screenshot
bindsym $mod+ 0xff61 exec scrot ~/pictures/shots/screenshot_%Y_%m_%d_%H_%M_%S.png
bindsym $mod+p exec roxterm -e ~/shots
# 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+Shift+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
bindsym $mod+d exec --no-startup-id dmenu_run -nb "#100" -nf "#2aa198" -sb "#000" -sf "#cb4b16"
# 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 yes
#popup windows
popup_during_fullscreen smart
# Workspace names
workspace "💻:Web" output DVI-0
workspace "🐧:IRC" output DVI-1
workspace ":Shell" output DVI-1
workspace ":Code" output DVI-1
workspace "📺:Media" output DVI-0
workspace "📝:Scratch" output DVI-0
workspace "☣:SSH" output DVI-1
# switch to workspace
bindsym $mod+1 workspace 💻:Web
bindsym $mod+2 workspace 🐧:IRC
bindsym $mod+3 workspace :Shell
bindsym $mod+4 workspace :Code
bindsym $mod+5 workspace 📺:Media
bindsym $mod+6 workspace 📝:Scratch
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace ☣:SSH
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 :Code
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 ☣:SSH
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 #191919
statusline #a0db8e
focused_workspace #cb4b16 #002b36 #e7a70b
active_workspace #002b36 #002b36 #a0db8e
inactive_workspace #2aa198 #1e1e1e #cb4b16
urgent_workspace #2f343a #900000 #ffffff
}
}
bar {
output DVI-1
tray_output DVI-1
status_command $HOME/.config/i3/startup_conky
colors {
separator #00afaf
background #1e1e1e
statusline #cb4b16
focused_workspace #cb4b16 #002b36 #e7a70b
active_workspace #002b36 #002b36 #a0db8e
inactive_workspace #2aa198 #1e1e1e #cb4b16
urgent_workspace #2f343a #900000 #ffffff
}
}
# window border colours
# class border backgr. text indicator
client.focused #cb4b16 #002833 #54ffbc #cb4b16
client.focused_inactive #cb4b16 #002B36 #00afaf #126380
client.unfocused #cb4b16 #002B36 #00afaf #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="Dunst"] floating enable
for_window [class="ARC Welder"] floating enable
for_window [class="Show Box"] floating enable
for_window [class="crx_eijgacohmegconnajkflbadbodniodab"] floating enable
for_window [class="Pcmanfm"] floating enable; focus mode_toggle; border 1pixel
for_window [class="sublime_text"] floating enable
for_window [class="Lxterminal"] floating enable;
for_window [class="Simplescreenrecorder"] floating enable; border none; focus mode_toggle
for_window [class="Rss-Notify"] floating enable; border none; focus mode_toggle
for_window [class="Tint2"] floating enable
for_window [class="Grun"] floating enable; border 1pixel
for_window [class="MPlayer"] floating enable; 1pixel
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="Kodi"] border none; floating enable; focus mode_toggle
for_window [class="Orage"] border none; floating enable
for_window [class="Termite"] border none; floating enable
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="mpv"] floating enable; border 1pixel
for_window [title="Lutim"] floating enable; border 1pixel
#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="Roxterm"] :Shell
assign [class="Terminator"] :Shell
assign [class="sublime_text"] :Code
assign [class="Sakura"] ☣:SSH
#assign [class="dclock"] 📝:Scratch
#assign [class="Pcmanfm"] ◎:Scratch
# autostarts
#exec --no-startup-id ~/.screenlayout/screens.sh
exec --no-startup-id nitrogen --restore
#exec --no-startup-id ~/.fehbg
#exec --no-startup-id tickr
#exec --no-startup-id tint2
#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 notify-send -h string:bgcolor:#000000 -h string:fgcolor:#d8ff44 -i ~/.icons/arch48.png "Archlinux x86_64 ONLINE" "Welcome Back Commander" && espeak "Archlinux, X 86,64 ONLINE. Welcome Back Commander"
exec --no-startup-id sleep 3
#exec --no-startup-id notify-send -h string:bgcolor:#000000 -h string:fgcolor:#54ff44 -i ~/.icons/arch48.png "OS- Archlinux x86_64" "Installed on Tue June 4th 2014 at 01:42:12" &
#exec --no-startup-id termite
exec --no-startup-id pa-applet
exec --no-startup-id subl
exec --no-startup-id orage
#exec --no-startup-id rss-notify
#exec --no-startup-id xcowsay $(fortune all)
#exec --no-startup-id xbindkeys
#exec --no-startup-id firefox
#exec --no-startup-id roxterm
#exec --no-startup-id terminator
exec --no-startup-id dclock -bg black -fg orange -led_off black -geometry 114x49
#exec --no-startup-id xeyes -bg black -center green -fg blue -geometry 114x49
exec --no-startup-id conky -c ~/.config/i3/.conkyrcbar
# custom keybinds
bindsym Mod4+F11 exec pcmanfm"
bindsym Mod1+l exec leafpad "
bindsym Mod4+c exec dclock -bg black -fg turquoise -led_off black -geometry 114x49
bindsym Mod4+F10 exec subl & espeak "launching sublime text"
bindsym Mod4+F9 exec i3-sensible-terminal -e finch & espeak "Activating Finch"
# rofi
#bindsym Mod4+F1 exec teiler
#bindsym Mod4+F2 exec rofi -show ssh
#bindsym Mod4+F3 exec rofi -show run
#bindsym Mod4+F4 exec rofi -show window
#bindsym Mod1+F5 exec rofi-surfraw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment