summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2013-03-16 10:28:25 -0700
committerJesse Morgan <morganjm@amazon.com>2013-03-16 10:28:25 -0700
commit92d7f84ff96be417cd18f0af808599bf061f7e94 (patch)
tree43f7ff2f167f731a5b625c47b2e361eea45bab54 /base
parent017fcf08f838cedd3bf97590bead45c4894ecfa1 (diff)
Adding my i3 config.
Diffstat (limited to 'base')
-rw-r--r--base/config/.nolink0
-rw-r--r--base/config/i3/.nolink0
-rw-r--r--base/config/i3/autostart.d/.nolink0
-rw-r--r--base/config/i3/autostart.d/10_xautolock2
-rw-r--r--base/config/i3/autostart.d/20_gpg-agent2
-rw-r--r--base/config/i3/autostart.d/50_pidgin2
-rw-r--r--base/config/i3/config.d/.nolink0
-rw-r--r--base/config/i3/config.d/00_base_config134
-rw-r--r--base/xsession4
9 files changed, 144 insertions, 0 deletions
diff --git a/base/config/.nolink b/base/config/.nolink
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/base/config/.nolink
diff --git a/base/config/i3/.nolink b/base/config/i3/.nolink
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/base/config/i3/.nolink
diff --git a/base/config/i3/autostart.d/.nolink b/base/config/i3/autostart.d/.nolink
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/base/config/i3/autostart.d/.nolink
diff --git a/base/config/i3/autostart.d/10_xautolock b/base/config/i3/autostart.d/10_xautolock
new file mode 100644
index 0000000..29e7f8e
--- /dev/null
+++ b/base/config/i3/autostart.d/10_xautolock
@@ -0,0 +1,2 @@
+exec --no-startup-id xautolock -time 5 -locker lock -corners 0-00
+
diff --git a/base/config/i3/autostart.d/20_gpg-agent b/base/config/i3/autostart.d/20_gpg-agent
new file mode 100644
index 0000000..cec15e2
--- /dev/null
+++ b/base/config/i3/autostart.d/20_gpg-agent
@@ -0,0 +1,2 @@
+exec --no-startup-id gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info"
+
diff --git a/base/config/i3/autostart.d/50_pidgin b/base/config/i3/autostart.d/50_pidgin
new file mode 100644
index 0000000..3edf586
--- /dev/null
+++ b/base/config/i3/autostart.d/50_pidgin
@@ -0,0 +1,2 @@
+exec pidgin
+
diff --git a/base/config/i3/config.d/.nolink b/base/config/i3/config.d/.nolink
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/base/config/i3/config.d/.nolink
diff --git a/base/config/i3/config.d/00_base_config b/base/config/i3/config.d/00_base_config
new file mode 100644
index 0000000..582bf71
--- /dev/null
+++ b/base/config/i3/config.d/00_base_config
@@ -0,0 +1,134 @@
+#
+# This is my base i3 config which is shared between all hosts.
+#
+
+set $mod Mod4 # Use the windows key to control i3.
+floating_modifier $mod
+
+## Visual Settings
+font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
+hide_edge_borders both
+
+## Bindings to start programs
+bindsym $mod+space exec i3-dmenu-desktop
+bindsym $mod+Return exec i3-sensible-terminal
+
+# kill focused window
+bindsym $mod+Shift+Q kill
+
+
+## Bindings to control windows
+
+### Focus Commands
+bindsym $mod+h focus left
+bindsym $mod+j focus down
+bindsym $mod+k focus up
+bindsym $mod+l focus right
+bindsym Mod1+Tab focus right
+bindsym Mod1+Shift+Tab focus left
+bindsym $mod+a focus parent
+bindcode $mod+d focus child
+
+### Window Moving Commands
+bindsym $mod+Shift+H move left
+bindsym $mod+Shift+J move down
+bindsym $mod+Shift+K move up
+bindsym $mod+Shift+L move right
+
+### Floating Windows
+bindsym $mod+Shift+space floating toggle
+bindsym $mod+Tab focus mode_toggle
+
+## Layout Commands
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+e layout default
+bindsym $mod+v split v
+bindsym $mod+Shift+V split h
+bindsym $mod+f fullscreen
+
+
+## Bindings to control workspaces
+
+### Switch Workspaces
+bindsym $mod+1 workspace number 1
+bindsym $mod+2 workspace number 2
+bindsym $mod+3 workspace number 3
+bindsym $mod+4 workspace number 4
+bindsym $mod+5 workspace number 5
+bindsym $mod+6 workspace number 6
+bindsym $mod+7 workspace number 7
+bindsym $mod+8 workspace number 8
+bindsym $mod+9 workspace number 9
+bindsym $mod+0 workspace number 10
+bindsym $mod+Left workspace prev_on_output
+bindsym $mod+Right workspace next_on_output
+
+### Move container to workspace
+bindsym $mod+Shift+exclam move workspace number 1
+bindsym $mod+Shift+at move workspace number 2
+bindsym $mod+Shift+numbersign move workspace number 3
+bindsym $mod+Shift+dollar move workspace number 4
+bindsym $mod+Shift+percent move workspace number 5
+bindsym $mod+Shift+asciicircum move workspace number 6
+bindsym $mod+Shift+ampersand move workspace number 7
+bindsym $mod+Shift+asterisk move workspace number 8
+bindsym $mod+Shift+parenleft move workspace number 9
+bindsym $mod+Shift+parenright move workspace number 10
+bindsym $mod+Shift+Left move workspace prev
+bindsym $mod+Shift+Right move workspace next
+
+workspace_auto_back_and_forth yes
+
+### Scratchpad
+bindsym $mod+Shift+minus move scratchpad
+bindsym $mod+minus scratchpad show
+
+
+## Bindings to contorl the session
+bindsym $mod+Shift+C exec "make_i3_config > $HOME/.config/i3/config"; reload
+bindsym $mod+Shift+R restart
+bindsym $mod+Shift+E exit
+bindsym Control+mod1+l exec xautolock -locknow
+
+
+## Alternative modes
+
+### Resize Mode
+bindsym $mod+r mode "resize"
+mode "resize" {
+ bindsym h resize shrink left 10 px or 10 ppt
+ bindsym Shift+H resize grow left 10 px or 10 ppt
+ bindsym j resize shrink down 10 px or 10 ppt
+ bindsym Shift+j resize grow down 10 px or 10 ppt
+ bindsym k resize shrink up 10 px or 10 ppt
+ bindsym Shift+K resize grow up 10 px or 10 ppt
+ bindsym l resize shrink right 10 px or 10 ppt
+ bindsym Shift+L resize grow right 10 px or 10 ppt
+
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+}
+
+
+## i3bar Settings
+bar {
+ status_command conky-i3bar
+ position top
+ tray_output primary
+ font xft:UbuntuMono 10
+}
+
+
+## Misc. Bindings
+
+### Volume
+bindsym $mod+Prior exec pactl set-sink-volume -- 0 "+2%"
+bindsym $mod+Next exec pactl set-sink-volume -- 0 "-2%"
+
+
+## Specific Window Settings
+for_window [class="Gcalctool"] floating enable
+for_window [class="Gnome-calculator"] floating enable
+
+
diff --git a/base/xsession b/base/xsession
index d8db125..5145918 100644
--- a/base/xsession
+++ b/base/xsession
@@ -24,4 +24,8 @@ if [ -f ~/.host-specific/xession ]; then
source ~/.host-specific/xsession
fi
+# Make the i3 config
+
+make_i3_config > $HOME/.config/i3/config
+
exec i3