summaryrefslogtreecommitdiff
path: root/i3wm.conf
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2018-03-05 21:40:56 +0100
committerjohannst <stoelp@eit.uni-kl.de>2018-03-05 21:40:56 +0100
commit3e93fe70bb4277868624cee1af5b771a1f279538 (patch)
treeb89e3f5ce9ce1f9dd3f235242d5dda8f446e66f1 /i3wm.conf
parent94895130d192859f0778db320b9834c5d35c6d46 (diff)
downloaddotfiles-3e93fe70bb4277868624cee1af5b771a1f279538.tar.gz
dotfiles-3e93fe70bb4277868624cee1af5b771a1f279538.zip
cleaned up i3wm config and i3status
Diffstat (limited to 'i3wm.conf')
-rw-r--r--i3wm.conf177
1 files changed, 99 insertions, 78 deletions
diff --git a/i3wm.conf b/i3wm.conf
index 9bcc491..6ca65a8 100644
--- a/i3wm.conf
+++ b/i3wm.conf
@@ -13,67 +13,52 @@ set $mod Mod1
#font pango:Terminus 12
font pango:xos4 Terminus 12
-# mouse+$mod to move/rezie window in floating mode
+# $mod+mouse to move/rezie window in floating mode
floating_modifier $mod
-# launch terminal
-bindsym $mod+Return exec i3-sensible-terminal
-# launch dmenu_run
-bindsym $mod+d exec dmenu_run
-# launch dmenu_run
-bindsym $mod+p exec passmenu
-# kill focused Window
+#
+# Basic Key Bindings
+#
+
bindsym $mod+Shift+c kill
-# reload the configuration file
bindsym $mod+Shift+s 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'"
+bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Kill X-Sessions' -b 'Kill!' 'i3-msg exit'"
+bindsym $mod+Return exec i3-sensible-terminal
+bindsym $mod+d exec "dmenu_run -nf '#bbbbbb' -nb '#222222' -sb '#ff8700' -sf '#ffffff' -p '>_'"
+bindsym $mod+p exec passmenu
-#{{{ basic layout hadling
+#
+# Layout Key Bindings
+#
-# container layout
bindsym $mod+q layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
-# fullscreen focused container
-bindsym $mod+f fullscreen
-
-# toggle tiling / floating
-bindsym $mod+Shift+space floating toggle
-
-# split vertical -> new window right to current one
bindsym $mod+v split h
-
-# split horizontal -> new window below current one
bindsym $mod+s split v
+bindsym $mod+f fullscreen
+bindsym $mod+Shift+space floating toggle
-#}}}
-#{{{ container focus
+#
+# Focus Key Bindings
+#
-# Change focus vim style
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
-# Change focus arrow keys
-bindsym $mod+Left focus left
-bindsym $mod+Down focus down
-bindsym $mod+Up focus up
-bindsym $mod+Right focus right
+
+bindsym $mod+a focus parent
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
-# focus the parent container
-bindsym $mod+a focus parent
-
-#}}}
-#{{{ navigate between workspaces
+#
+# Navigation Key Bindings
+#
-# switch to workspace
bindsym $mod+1 workspace 1
bindsym $mod+2 workspace 2
bindsym $mod+3 workspace 3
@@ -85,21 +70,15 @@ bindsym $mod+8 workspace 8
bindsym $mod+9 workspace 9
bindsym $mod+0 workspace 10
-#}}}
-#{{{ move focused container
+#
+# Move Container Key Bindings
+#
-# Move focused window vim style
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
-# Move focused window arrow 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
-# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+2 move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
@@ -111,37 +90,29 @@ 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
-#}}}
-#{{{ resize mode
+#
+# Resize Mode
+#
-bindsym $mod+r mode "resize"
+# arrow f047
+set $resize_mode 
+bindsym $mod+r mode $resize_mode
# bindings for resize mode
-mode "resize" {
+mode "$resize_mode" {
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
- 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"
}
-#}}}
-#{{{ Thinkpad T410 volume keys
-
-bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+"
-bindsym XF86AudioLowerVolume exec "amixer set Master 5%-"
-bindsym XF86AudioMute exec "amixer set Master toggle"
-
-#}}}
-#{{{ lock/suspend
+#
+# i3lock
+#
#set $lock_cmd i3lock --inactivity-timeout 30s -d --ignore-empty-password -c 455a64 -i ~/.i3/lock.png
set $lock_cmd i3lock \
@@ -161,11 +132,15 @@ set $lock_cmd i3lock \
--keyhlcolor=00ff0080 \
--bshlcolor=ff000080
-# lock screen
bindsym $mod+Control+l exec $lock_cmd
-# power mode
-set $power_mode (l) lock (s) suspend
+#
+# Power Mode
+#
+
+# lock f023
+# moon f186
+set $power_mode  (l)  (s)
bindsym $mod+Pause mode "$power_mode"
mode "$power_mode" {
@@ -176,10 +151,41 @@ mode "$power_mode" {
bindsym Return mode "default"
}
-#}}}
-#{{{ i3bar
+#
+# Color Definition
+#
+
+set $col_x_bla #000000
+set $col_x_whi #FFFFFF
+set $col_b_gra #5F676A
+set $col_m_gra #888888
+set $col_d_gra #333333
+set $col_d_red #900000
+set $col_b_blu #2E9EF4
+set $col_d_ora #ff8700
+set $col_d_tur #458588
+
+#
+# Colorscheme
+#
+
+# turn off window titles
+# makes title-{border, body} not viewable
+for_window [class="^.*"] border pixel 2
+
+# class title-border title-body title-text split-indicator window-border
+client.focused $col_b_gra $col_b_gra $col_x_whi $col_b_blu $col_b_gra
+client.focused_inactive $col_d_gra $col_d_gra $col_x_whi $col_b_blu $col_d_gra
+client.unfocused $col_d_gra $col_d_gra $col_m_gra $col_b_blu $col_d_gra
+client.urgent $col_d_gra $col_d_red $col_x_whi $col_d_red $col_d_red
+client.placeholder $col_x_bla $col_x_bla $col_x_whi $col_x_bla $col_x_bla
+
+client.background $col_x_whi
+
+#
+# i3bar
+#
-# Start i3bar
bar {
font pango: xos4 Terminus, FontAwesome 10
position top
@@ -187,22 +193,37 @@ bar {
status_command i3blocks -c ~/.i3/i3blocks.conf
#status_command i3status --config ~/.i3/i3status.conf
- #separator_symbol "■"
- #tray_output LVDS-1
- #tray_padding 0
+ colors {
+ background $col_x_bla
+ statusline $col_x_whi
+ #separator $col_m_gra
+
+ # class border background text
+ focused_workspace $col_x_bla $col_d_ora $col_x_whi
+ active_workspace $col_x_bla $col_x_bla $col_x_whi
+ inactive_workspace $col_x_bla $col_x_bla $col_m_gra
+ urgent_workspace $col_d_red $col_d_red $col_x_whi
+ binding_mode $col_d_tur $col_d_tur $col_x_whi
+ }
}
-#}}}
+#
+# Thinkpad T410 Volume Keys
+#
+
+bindsym XF86AudioRaiseVolume exec "amixer set Master 5%+"
+bindsym XF86AudioLowerVolume exec "amixer set Master 5%-"
+bindsym XF86AudioMute exec "amixer set Master toggle"
+
# PLAYGROUND
-gaps outer 0
-gaps inner 5
+gaps outer 2
+gaps inner 2
+
# pin applications to specific workspace
# helpfull to get name: 'xprop | grep WM_CLASS' (then click window)
#assign [class="Firefox"] 9
-#bindsym $mod+p exec "notify-send \\"Hello, i3; $USER\\""
-
#% vim:fen:fdm=marker:fmr={{{,}}}:fdl=0:fdc=1