Skip to content

dzen-dhall/plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dzen-dhall plugins

Build Status

A curated set of plugins for dzen-dhall.

Refer to the docs for instructions on how to install plugins.

You are welcome to contribute yours via pull requests. The advantage of doing so is that your plugins will be updated by maintainer(s) in case of a breaking API change, and other users will be able to easily discover your code. See CONTRIBUTING.md for instructions.

Catalogue

A list of all available plugins.

amixer-volume

Prints current volume. The output becomes red when the volume is off.

Run dzen-dhall plug amixer-volume to install.

Show usage

let amixer-volume = (./plugins/amixer-volume.dhall)

in  plug (amixer-volume.main amixer-volume.defaults) : Bar

Settings:

let Settings
	: Type
	= { device : Text -- `-D` flag (amixer)
	  , card : Optional Text -- `-c` flag (amixer)
	  , onColor : Color
	  , offColor : Color
	  , scoped : Bool -- whether to wrap the plugin into a separate scope.
	  , updateInterval : Natural
	  }

date

A wrapper over date binary, prints current date formatted according to a given format string.

Run dzen-dhall plug date to install.

Show usage

let date = (./plugins/date.dhall).main

in plug (date "%d.%m.%Y %A - %H:%M:%S")

icons

A pack of XBM icons.

Preview

Show detailed previews

Name Preview
ac_01 icons/previews/ac_01.png
ac icons/previews/ac.png
alert icons/previews/alert.png
arch_10x10 icons/previews/arch_10x10.png
arch icons/previews/arch.png
ball icons/previews/ball.png
bat_empty_01 icons/previews/bat_empty_01.png
bat_empty_02 icons/previews/bat_empty_02.png
bat_full_01 icons/previews/bat_full_01.png
bat_full_02 icons/previews/bat_full_02.png
bat_low_01 icons/previews/bat_low_01.png
bat_low_02 icons/previews/bat_low_02.png
battery icons/previews/battery.png
bluetooth icons/previews/bluetooth.png
bug_01 icons/previews/bug_01.png
bug_02 icons/previews/bug_02.png
cat icons/previews/cat.png
clock icons/previews/clock.png
cpu icons/previews/cpu.png
dish icons/previews/dish.png
diskette icons/previews/diskette.png
empty icons/previews/empty.png
envelope icons/previews/envelope.png
eye_l icons/previews/eye_l.png
eye_r icons/previews/eye_r.png
fox icons/previews/fox.png
fs_01 icons/previews/fs_01.png
fs_02 icons/previews/fs_02.png
full icons/previews/full.png
fwd icons/previews/fwd.png
half icons/previews/half.png
info_01 icons/previews/info_01.png
info_02 icons/previews/info_02.png
info_03 icons/previews/info_03.png
mail icons/previews/mail.png
mem icons/previews/mem.png
mouse_01 icons/previews/mouse_01.png
music icons/previews/music.png
net_down_01 icons/previews/net_down_01.png
net_down_02 icons/previews/net_down_02.png
net_down_03 icons/previews/net_down_03.png
net_up_01 icons/previews/net_up_01.png
net_up_02 icons/previews/net_up_02.png
net_up_03 icons/previews/net_up_03.png
net_wired icons/previews/net_wired.png
next icons/previews/next.png
note icons/previews/note.png
pacman icons/previews/pacman.png
pause icons/previews/pause.png
phones icons/previews/phones.png
play icons/previews/play.png
plug icons/previews/plug.png
prev icons/previews/prev.png
rwd icons/previews/rwd.png
scorpio icons/previews/scorpio.png
shroom icons/previews/shroom.png
spkr_01 icons/previews/spkr_01.png
spkr_02 icons/previews/spkr_02.png
spkr_03 icons/previews/spkr_03.png
stop icons/previews/stop.png
temp icons/previews/temp.png
test icons/previews/test.png
usb_02 icons/previews/usb_02.png
usb icons/previews/usb.png
volume icons/previews/volume.png
wifi_01 icons/previews/wifi_01.png
wifi_02 icons/previews/wifi_02.png

Run dzen-dhall plug icons to install.

Show usage

let icons = (./plugins/icons.dhall).main

in	join
  [ plug icons.ac_01
  , plug icons.ac
  , plug icons.alert
  , plug icons.arch_10x10
  , plug icons.arch
  , plug icons.ball
  , plug icons.bat_empty_01
  , plug icons.bat_empty_02
  , plug icons.bat_full_01
  , plug icons.bat_full_02
  , plug icons.bat_low_01
  , plug icons.bat_low_02
  , plug icons.battery
  , plug icons.bluetooth
  , plug icons.bug_01
  , plug icons.bug_02
  , plug icons.cat
  , plug icons.clock
  , plug icons.cpu
  , plug icons.dish
  , plug icons.diskette
  , plug icons.empty
  , plug icons.envelope
  , plug icons.eye_l
  , plug icons.eye_r
  , plug icons.fox
  , plug icons.fs_01
  , plug icons.fs_02
  , plug icons.full
  , plug icons.fwd
  , plug icons.half
  , plug icons.info_01
  , plug icons.info_02
  , plug icons.info_03
  , plug icons.mail
  , plug icons.mem
  , plug icons.mouse_01
  , plug icons.music
  , plug icons.net_down_01
  , plug icons.net_down_02
  , plug icons.net_down_03
  , plug icons.net_up_01
  , plug icons.net_up_02
  , plug icons.net_up_03
  , plug icons.net_wired
  , plug icons.next
  , plug icons.note
  , plug icons.pacman
  , plug icons.pause
  , plug icons.phones
  , plug icons.play
  , plug icons.plug
  , plug icons.prev
  , plug icons.rwd
  , plug icons.scorpio
  , plug icons.shroom
  , plug icons.spkr_01
  , plug icons.spkr_02
  , plug icons.spkr_03
  , plug icons.stop
  , plug icons.temp
  , plug icons.test
  , plug icons.usb_02
  , plug icons.usb
  , plug icons.volume
  , plug icons.wifi_01
  , plug icons.wifi_02
  ]

mpc

MPD integration using MPC. A higher-order plugin with reasonable defaults.

mpc

Text fades out when music is paused.

Show usage

let mpc = (./plugins/mpc.dhall)

in	plug (mpc.main mpc.defaults) : Bar

Settings provide ability to customize appearance in three modes:

  • music is playing

  • music is paused

  • the player is off (no tracks)

Inside three Bars that are accepted by the plugin (one for each mode), some events and variables are available (see mpc/demo.dhall for usage example):

let Settings
	: Type
	= { playing : Bar
	  , off : Bar
	  , paused : Bar
	  , events : { Resume : Event, Pause : Event, TurnOff : Event }
	  , variables : { Album : Variable, Artist : Variable, Title : Variable }
	  , updateInterval : Natural
	  , scoped : Bool
	  }

mpc-simple

A minimal mpd status viewer that uses mpc. Prints artist, title and album.

Clicking the output copies it to clipboard (using xclip).

To disable clipboard feature, override the default settings:

(mpc-simple.defaults // { useXClip = False })

Run dzen-dhall plug mpc-simple to install.

Show usage

let mpc-simple = (./plugins/mpc-simple.dhall)

in	plug (mpc-simple.main mpc-simple.defaults) : Bar

plugin-template

A template for new plugins. See plugin development section.

tomato

tomato

A digital tomato-timer to increase your productivity.

Allows to set a countdown for some period of time, and run arbitrary shell command when the time is up.

waiting

active

ringing

Run dzen-dhall plug tomato to install.

Show usage

let tomato = (./plugins/tomato.dhall).main

in	plug
  ( tomato
	''
	notify-send --urgency critical " *** Time is up! *** "
	''
  )

Releases

No releases published

Packages

No packages published