Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

pbos/i3-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

i3-scripts

A set of scripts to make i3 behave like I want it to.

workspace_switcher.pl

A workspace switcher inspired by how Awesome behaved with a slightly modified config back when I used it. Each output has its own set of numbered workspaces (output 1 gets 1 [1], 2 [1], etc. up to 10 [1]). It also implements a back-and-forth switching mechanism similar to workspace_back_and_forth yes, but uses separate histories per output.

The script runs in the background and grabs these keys separate from i3. Beware of conflicting keybindings inside ~/.i3/config (see below). To use it simply put the following at the bottom of your i3 config (depending on where you have the script):

exec ~/i3-scripts/workspace_switcher.pl

Keybindings

workspace_switcher.pl uses keys $mod (+ shift) + 0..9. By default $mod is Super_L, the left Windows key, because that's what I use. Feel free to change this keybinding inside the script.

By default however, $mod + 0..9 are taken by i3, causing the script to fail after doing GrabKey, eventually barfing an X11 error message. Make sure to comment out these keys inside your i3 config. (Comment rather than remove so you can easily get them back should anything fail unexpectedly.)

Dependencies

The workspace switcher needs at least Perl modules AnyEvent::I3 and X11::Protocol. I was able to install them using cpan, hopefully available on your distro.

About

My set of scripts for modifying i3 behavior. (i3wm.org)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages