Skip to content

raksooo/screenrotation

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Awesome WM screen rotation

This is a module for awesome wm which enables the user to rotate the screen. It saves the rotation per tag which means that the screen will reorient when switching tags.

Download

git clone https://github.com/raksooo/screenrotation.git ~/.config/awesome/screenrotation

Usage

Import:

local rotate = require('screenrotation')

Set globalkeys:

globalkeys = gears.table.join(
  ...

  awful.key({ super }, "Up", function() rotate("normal") end,
    {description = "Normal tag rotation", group = "tag"}),
  awful.key({ super }, "Down", function() rotate("inverted") end,
    {description = "Inverted tag rotation", group = "tag"}),
  awful.key({ super }, "Left", function() rotate("left") end,
    {description = "Counter-clockwise tag rotation", group = "tag"}),
  awful.key({ super }, "Right", function() rotate("right") end,
    {description = "Clockwise tag rotation", group = "tag"})
)

Dependencies

  • Awesome wm
  • xrandr
  • xinput

About

Awesome wm per tag screen rotation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages