All Projects → grandchild → autohidewibox

grandchild / autohidewibox

Licence: CC0-1.0 license
Execute awesome wm commands on ModKey press/release

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to autohidewibox

dotfiles
My awesomewm dotfiles for awesome people! ✨
Stars: ✭ 1,764 (+9700%)
Mutual labels:  awesomewm, awesome-wm
dots
Use chezmoi to install my dotfiles easily on Gentoo, Arch, Void and Debian.
Stars: ✭ 70 (+288.89%)
Mutual labels:  awesomewm, awesome-wm
awesome-pro
Awesome WM 4.x themes configs
Stars: ✭ 91 (+405.56%)
Mutual labels:  awesomewm, awesome-wm
The Glorious Dotfiles
A glorified personal dot files
Stars: ✭ 1,850 (+10177.78%)
Mutual labels:  awesomewm, awesome-wm
Awesome Ban
Awesome WM 4.x theme configs
Stars: ✭ 122 (+577.78%)
Mutual labels:  awesomewm
Lain
Awesome WM complements
Stars: ✭ 716 (+3877.78%)
Mutual labels:  awesomewm
Material Awesome
Material and Mouse driven config for AwesomeWM 4.3
Stars: ✭ 588 (+3166.67%)
Mutual labels:  awesomewm
Awesome
awesome window manager
Stars: ✭ 4,351 (+24072.22%)
Mutual labels:  awesomewm
Vicious
Vicious is a modular widget library for the "awesome" window manager.
Stars: ✭ 242 (+1244.44%)
Mutual labels:  awesomewm
Tyrannical
Dynamic tagging configuration system for awesomeWM
Stars: ✭ 173 (+861.11%)
Mutual labels:  awesomewm
Awesome Configs
My AwesomeWM configuration
Stars: ✭ 111 (+516.67%)
Mutual labels:  awesomewm
Awesome Wm Widgets
Widgets for Awesome Window Manager
Stars: ✭ 856 (+4655.56%)
Mutual labels:  awesomewm
Dotfiles
Config for vim sublime awesome xmonad etc.
Stars: ✭ 140 (+677.78%)
Mutual labels:  awesomewm
Dotfiles
Dotfiles for unix, managed by GNU stow.
Stars: ✭ 617 (+3327.78%)
Mutual labels:  awesomewm
Bling
Utilities for the awesome window manager
Stars: ✭ 188 (+944.44%)
Mutual labels:  awesomewm
Awesome Dotfiles
Dotfiles for awesome people using the awesomewm linux environment
Stars: ✭ 409 (+2172.22%)
Mutual labels:  awesomewm
Net widgets
Network widgets for Awesome WM
Stars: ✭ 103 (+472.22%)
Mutual labels:  awesomewm
Radical
An extensible menu subsystem for Awesome WM
Stars: ✭ 174 (+866.67%)
Mutual labels:  awesomewm
Collision
A window management module for AwesomeWM
Stars: ✭ 96 (+433.33%)
Mutual labels:  awesomewm
Dotfiles
~!Dotfiles
Stars: ✭ 63 (+250%)
Mutual labels:  awesomewm

Auto-hide the awesome-wibox/taskbar

If you ever wanted to squeeze out that last bit of screen real estate in awesome and only show the wibox when needed (i.e when pressing the ModKey), this is for you.

Since awesome doesn't allow easy access to the states of the Super/Mod-Key itself in rc.lua, one cannot simply show the wibox while the ModKey is pressed and hide it again on release. This little python daemon will sit in the background and do just that.

Extending away from what the name suggests it can also execute any custom lua code on hide or show, specified in the config file.

Installation

Install the xinput binary. The package is named xinput in Debian/Ubuntu and xorg-xinput in Arch. (Some other popular distros don't seem to readily provide this package, according to pkgs.org).

Download the python script directly and put it somewhere nice–~/.config/awesome/ seems fitting–and make it executable.

Arch Linux users can also install the AUR package autohidewibox.

Usage

autohidewibox.py [configfile.conf]

Config files will be tried in the order

  • commandline parameter
  • ~/.config/awesome/autohidewibox.conf
  • ~/.config/autohidewibox.conf
  • /etc/autohidewibox.conf

Otherwise settings default to SuperL and SuperR toggling mywibox.

You can simply add autohidewibox.py to your autostart list in rc.lua. It doesn't require special permissions to run.

To terminate the script, simply killall xinput and the script will restore the wibox and shut down.

Note that if, for autostarting programs, you use that little run_once-script that floats around, the safeguard doesn't work and you should therefore add killall xinput to the autostart list before autohidewibox.py so the old script instance will shutdown before awesome restarts.

Dependencies

  • xorg-xinput

TODO

  • independence from xinput
  • leave wibox visible on run/lua_exec etc.
  • show wibox when mouse hits bottom of the screen
  • ???

Credits

Inspired by the first idea in http://stackoverflow.com/a/21837280 . Thanks :)

License

License

You may use this code without attribution, that is without mentioning where it's from or who wrote it. I would actually prefer if you didn't mention me. You may even claim it's your own.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].