Giter Site home page Giter Site logo

i3statusbear's Introduction

StatusBear

Go code for talking with i3 bar using i3 protocol and creating usefull and fast bars.

Also works with Sway!

Set sway or i3 as 2nd argument, or set wmclient attribute on config.json. (argument will override attribute)

Example

Modules

  • activewindow
  • command (run bash scripts etc)
  • cpu (usage)
  • datetime
  • memory (usage)
  • pulseaudio (volume bar)
  • readfile (read arbitrary file)

Example usage

bar {
	id main_bar
	position bottom
	status_command exec ~/go/bin/i3statusbear ~/go/src/github.com/afreakk/i3statusbear/exampleConfigs/mainbar.json i3 2>> ~/log/statusbear.main_bar.log
	output $primaryScreen
	tray_output none
	bindsym button3 exec "rofi -modi combi -show combi -combi-modi run,drun,window"
	separator_symbol " "
	colors {
		background #282828
		inactive_workspace	#282828 #282828	#685d52
		focused_workspace	#282828 #d79921	#282828
		active_workspace	#282828 #685d52	#282828
		urgent_workspace	#282828 #fb4934	#282828
	}
}

bar {
	id off_bar_top
	position top
	status_command exec ~/go/bin/i3statusbear ~/go/src/github.com/afreakk/i3statusbear/exampleConfigs/offscreenbartop.json i3 2>> ~/log/statusbear.off_bar_top.log
	output $offScreen
	tray_output none
	bindsym button4 exec ~/bin/setSinkVolumeDefault.sh +5%
	bindsym button5 exec ~/bin/setSinkVolumeDefault.sh -5%
	separator_symbol " "
	colors {
		background #282828
		inactive_workspace	#282828 #282828	#685d52
		focused_workspace	#282828 #d79921	#282828
		active_workspace	#282828 #685d52	#282828
		urgent_workspace	#282828 #fb4934	#282828
	}
	workspace_buttons no
}

bar {
	id off_bar_bottom
	position bottom
	status_command exec ~/go/bin/i3statusbear ~/go/src/github.com/afreakk/i3statusbear/exampleConfigs/offscreenbarbottom.json i3 2>> ~/log/statusbear.off_bar_bottom.log
	output $offScreen
	tray_output $offScreen
	bindsym button3 exec "rofi -modi combi -show combi -combi-modi run,drun,window"
	separator_symbol " "
	colors {
		background #282828
		inactive_workspace	#282828 #282828	#685d52
		focused_workspace	#282828 #d79921	#282828
		active_workspace	#282828 #685d52	#282828
		urgent_workspace	#282828 #fb4934	#282828
	}
}

i3statusbear's People

Contributors

afreakk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.