From 4a117ae1bad58141922fe3ca588db96644bfaf8d Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Fri, 6 Feb 2015 14:37:32 -0500 Subject: [PATCH] add moveworkspace and lock --- .i3/config | 28 ++++++++++++++++++++++++++++ .i3status.conf | 4 ++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/.i3/config b/.i3/config index ea242bc..0ab511c 100644 --- a/.i3/config +++ b/.i3/config @@ -47,6 +47,8 @@ bindsym $mod+Shift+c kill # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run + +bindsym $mod+F12 exec xscreensaver-command -lock # 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. @@ -157,10 +159,36 @@ mode "resize" { # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" + bindsym $mod+r mode "default" } bindsym $mod+r mode "resize" +mode "moveworkspace" { + # 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 h move workspace to output left + bindsym j move workspace to output down + bindsym k move workspace to output up + bindsym l move workspace to output right + + # 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+t mode "moveworkspace" + # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { diff --git a/.i3status.conf b/.i3status.conf index 7d93f03..63ab518 100644 --- a/.i3status.conf +++ b/.i3status.conf @@ -31,8 +31,8 @@ ethernet eth0 { battery 0 { format = "%status %remaining" - last_full_capacity = true - integer_battery_capacity = true + #last_full_capacity = true + #integer_battery_capacity = true } run_watch DHCP {