Skip to content

sentriz/wlr-sunclock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

(demo gif, in reality it updates in real time)

wlr-sunclock

wayland desktop widget to show to the sun's shadows on earth.
uses gtk-layer-shell and the layer shell protocol to render on your desktop, behind your windows

Spring Equinox Summer Solstice
Autumn Equinox Winter Solstice

Installation

From source

pacman -S gtk4-layer-shell gtk4 wayland librsvg

meson build
sudo ninja -C build install

From AUR

please see wlr-sunclock-git

From OBS

please see X11:Wayland/wlr-sunclock for the openSUSE package

From Fedora Copr

please see wef/wlr-sunclock for a Fedora package

CLI args

  -i, --monitor-index=INDEX  monitor to show window on (starts at 0)
  -l, --layer=LAYER          layer (background, bottom, top, overlay)
  -a, --anchors=ANCHORS      string of window anchors (see readme)
  -m, --margins=MARGINS      comma separated margins for window (left, right, top, bottom)
  -w, --width=SIZE           width of the window in pixels
  -n, --colour-land=COLOUR   colour of the land
  -o, --colour-ocean=COLOUR  colour of the ocean
  -?, --help                 Give this help list
      --usage                Give a short usage message
  -v, --version              print version

Anchors

-a tl   -a tr   -a br   -a bl   -a ''   -a tblr
┌─┬───┐ ┌───┬─┐ ┌─────┐ ┌─────┐ ┌─────┐ ╔═════╗
├─┘   │ │   └─┤ │     │ │     │ │ ┌─┐ │ ║     ║
│     │ │     │ │   ┌─┤ ├─┐   │ │ └─┘ │ ║     ║
└─────┘ └─────┘ └───┴─┘ └─┴───┘ └─────┘ ╚═════╝

Start on boot with sway example

# ~/.config/sway/config

exec wlr-sunclock \
   --margins "0,16,0,16" \
   --width 800 \
   --layer bottom \
   --anchors br \
   --border-width 2 \
   --colour-ocean "#C4B5FD" \
   --colour-land "#6D28D9"

About

wayland desktop widget to show to the sun's shadows on earth

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •