Giter VIP home page Giter VIP logo

i3tmsg's Introduction

i3tmsg

To handle workspaces in i3 with eww widget.

Description

This is first project in Rust, I created because I like to use i3 and https://github.com/elkowar/eww. However, eww and i3 didn't work out of box together, I wanted to avoid using bash jq and start my journey into Rust.

Install Guide

The idea is to set all usable workspaces in eww and use the i3tmsg to print out with awk the focused window.

git clone [email protected]:Ifnir/i3tmsg.git
cd i3tsmg
cargo build --release
cd target/release
copy i3tmsg to your script folder

Eww Widget

Add this to your .config/eww/scripts folder

(deflisten workspace "scripts/i3tmsg") 
(defwidget _workspaces []
  (literal :content {replace(workspace, "sep", "
   ")})
)

i3tmsg can take arguments like icons

(deflisten workspace "scripts/i3tmsg ๎ช˜ s a") 

For the eww.scss file

.works {
  border-radius: 15px;
  margin-left: 5px;
  margin-top: 5px;
  padding-left: 10px;
  padding-right: 5px;
  font-size: 20px;
  margin-right: 20px; 
}
.focused {
  color: #61AAD6;
}
.urgent {
  color: #f00a0a;
}
.unoccupied {
  color: #ff00ea;
}
.occupied {
  color: #ffffff;
}

i3tmsg's People

Contributors

ifnir avatar

Watchers

 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.