GithubHelp home page GithubHelp logo

i3scripts's Introduction

i3 Scripts

This repo contains a few scripts I've put together for i3. Below are the highlights, but see the script files themselves for more detailed info and instructions. Note that they function independently, so you can try out one in your workflow without committing to using the rest.

autorename_workspaces.py

This script dynamically updates the i3 bar to show icons for running programs next to the workspace names. It does this by listening for i3 window events and updating the workspace's "name".

In addition to showing program icons, it also (optionally) renumbers i3 workspaces in ascending order. This makes it easier to navigate.

Here's a demo.

new_workspace.py

Opens a new workspace on the current monitor, using the first available number.

rename_workspace.py

Presents a small modal window with a text box that allows for renaming the current workspace.

i3splat.py

This module provides a compact way to specify layouts for i3wm and launch the corresponding programs. Create a Workspace object containing the containers and apps you want, then call launch(). The specified layout will be loaded into i3, then the individual apps are launched in their places. See the file itself for more detailed documentation.

Here's an example program:

from i3splat import *

mydir = "~/src"
ws = Workspace("code", [
    (0.5, chrome(["stackoverflow.com"])),
    (0.5, Container(SPLITV, [
        (0.7, Container(TABBED, [
            (0.5, urxvt(wdir=mydir, command="vim file.txt")),
            (0.5, sublime([mydir])),
        ])),
        (0.3, urxvt(wdir=mydir)),
    ])
)])
ws.launch()

i3scripts's People

Contributors

justbuchanan avatar woofers avatar fredden avatar jcaw avatar jakobgm avatar mancellin avatar romern avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.