GithubHelp home page GithubHelp logo

aesophor / displayctl Goto Github PK

View Code? Open in Web Editor NEW
59.0 4.0 2.0 9.96 MB

๐Ÿ’ก Resolution, brightness, wallpaper, lockscreen manager

Home Page: https://www.reddit.com/r/unixporn/comments/7l6o3a/i3lock_displayctl_a_utility_to_handle_various/

License: MIT License

Shell 100.00%
brightness lockscreen wallpaper resolution i3lock display-resolution xrandr

displayctl's Introduction

DISPLAYCTL

Wallpapers (Desktop/Lockscreen) with Effects (Normal/Dim/Blur) Resolution Brightness Lockscreen

Why Do I Need This?

Are you running a Window Manager without a DE? Ever experienced the inconvenience of running xrandr to set resolution, feh for wallpaper, light for brightness, and i3lock for lockscreen? (I use these tools, in my case)

I wrote displayctl to eradicate these problems. Now you can handle these tasks with a single script!

Dependencies

Installation

Currently it only supports manual installation, sorry! Supports for several common distributions will be added later!

  • Manual Installation
$ git clone https://github.com/aesophor/displayctl.git
$ cd displayctl && cp displayctl ~/.local/bin/displayctl

Configuration

Add this line to your ~/.Xresources

! displayctl
#include "/home/aesophor/.x/displayctlrc"

Then create the configuration file in ~/.x/displayctlrc

! displayctlrc
! ===================================================================================
Display.monitor:         eDP1
Display.dpi:             112
Display.resolution:      1680x1050
Display.brightness:      30
Display.wallpaper:       /home/aesophor/Pictures/Wallpapers/Nature/Rainy.jpeg
Display.lockscreen:      /home/aesophor/Pictures/Wallpapers/Landscape/Pebble.jpeg

Each time after modifying displayctlrc, run

xrdb -merge ~/.Xresources

Usage

Lockscreen cache can be located at /tmp/lock_cache.png. It will be stored there for faster lockscreen invocation.

To use the lockscreen with another effect, run displayctl -c to clear the cache first.

$ displayctl                  # Restore resolution, brightness, and wallpaper to last session 
$ displayctl -d               # Restore resolution and brightness to last session
$ displayctl -l               # Invoke lockscreen (i3lock-color required)
$ displayctl -l -d -b         # Invoke lockscreen with dim + blur effect
$ displayctl -w -d -b         # Set wallpaper with dim + blur effect
$ displayctl -e 1280x800      # Mirrors display to an external monitor
$ displayctl -c               # Clears lockscreen cache

Gallery

The effects demonstrated below can be applied to Desktop Wallpapers as well.

  • Lockscreen (Normal) None

  • Lockscreen (Dim) None

  • Lockscreen (Blur) None

  • Lockscreen (Dim + Blur) None

License

Available under the MIT License.

displayctl's People

Contributors

aesophor avatar pavanjadhaw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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