Skip to content

Commit

Permalink
add peaclock
Browse files Browse the repository at this point in the history
  • Loading branch information
kiedtl committed Sep 28, 2019
1 parent ae85ce4 commit 926c1ed
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 0 deletions.
180 changes: 180 additions & 0 deletions .peaclock/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,180 @@
# peaclock
# default config
#
# The config file in the config directory must be named 'config'.
# It is a plain text file that can contain any of the commands listed
# in the 'Commands' section of the '--help' output.
# Each command must be on its own line.
# Lines that begin with the '#' character are treated as comments.
#
# For more information, refer to the 'Configuration' and 'Commands'
# sections of the programs help output with '--help' or '-h'.

# -----------------------------------------------------------------------------
# general
# -----------------------------------------------------------------------------

# set the x y block size, the width and height of an individual block composing
# the clock
block 2 1
# block-x 2
# block-y 1

# set the x y padding size, the width and height of the space between each
# individual block composing the clock
padding 2 1
# padding-x 2
# padding-y 1

# set the x y margin size, the space around the outside of the clock from the
# edge of the terminal
margin 0 0
# margin-x 0
# margin-y 0

# set the x y ratio size, auto adjust the clock to conform to a specific
# aspect ratio, keep in mind that a square ratio would be '2 1' due to a
# terminal character cell having a height around twice the size of its width
ratio 2 1
# ratio-x 2
# ratio-y 1

# set the padding size between the date and the clock
date-padding 1

# set the string value used to fill the active, inactive, and colon blocks of
# the clock, an empty string clears the value
fill ''
# fill-active ''
# fill-inactive ''
# fill-colon ''

# set the locale, for example 'en_CA.utf8', an empty string clears the value
locale ''

# set the timezone, for example 'America/Vancouver', an empty string clears the
# value
timezone ''

# set the date format string, an empty string clears the value
date '%a %b %d'

# set the mode type
# select one of:
# clock, timer, or stopwatch
mode clock

# set the view type
# select one of:
# date, ascii, digital, binary, or icon
view binary

# set the value to adjust with the hjkl;' keys
# select one of:
# block, padding, margin, ratio, active-fg, inactive-fg, colon-fg,
# active-bg, inactive-bg, colon-bg, background, or date
toggle active-bg

# set the stopwatch to start
# clear, stop, start, 00h:00m:00s
stopwatch start

# set the timers initial value
# clear, stop, start, 00h:00m:00s
timer 10m:0s

# set the string value to be executed by a shell upon timer completion,
# an empty string clears the value
timer-exec 'notify-send -a peaclock "timer complete"'

# set the duration in milliseconds between reading user input
rate-input 50

# set the duration in milliseconds between redrawing the output
rate-refresh 1000

# set the duration in milliseconds to display status messages
rate-status 5000

# -----------------------------------------------------------------------------
# toggles
#
# set <value> <on|off>
# -----------------------------------------------------------------------------

# use 24 hour time
set hour-24 on

# display seconds
set seconds on

# display the date
set date on

# auto size the clock to fill the screen, overrides the current x y block size
set auto-size off

# auto size the clock to use the aspect ratio set by the command 'ratio',
# overrides the current x y block size and auto-size
set auto-ratio off

# -----------------------------------------------------------------------------
# styles
#
# style <value> <#000-#fff|#000000-#ffffff|0-255|Colour|reverse|clear>
#
# 24-bit colour
# #000000-#ffffff
#
# 8-bit colour:
# 0-255
#
# 4-bit colour:
# black [bright]
# red [bright]
# green [bright]
# yellow [bright]
# blue [bright]
# magenta [bright]
# cyan [bright]
# white [bright]
# -----------------------------------------------------------------------------

# set the style of the text set by the command 'fill' used to draw active
# blocks in the clock
style active-fg red

# set the style of the text set by the command 'fill' used to draw inactive
# blocks in the clock
style inactive-fg clear

# set the style of the text set by the command 'fill-colon' used to draw colon
# blocks in the clock
style colon-fg clear

# set the style of the background used to draw active blocks in the clock
style active-bg reverse

# set the style of the background used to draw inactive blocks in the clock
style inactive-bg green

# set the style of the background used to draw colon blocks in the clock
style colon-bg clear

# set the style of the background used to draw colon blocks in the clock
style date clear

# set the style of the background
style background clear

# set the style of the date
style text clear

# set the style of the command prompt symbol shown at the start of the line
style prompt clear

# set the style of the prompt status on success
style success green

# set the style of the prompt status on error
style error red
28 changes: 28 additions & 0 deletions .peaclock/history/command
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
wq
set active-bg #cacbca
set active-fg #CACBCA
exit
style active-bg #3d6243
style active-bg clear
style active-fg clear
style active-fg #ffffff
style active-bg #FFFFFF
style active-bg 000000
style active-bg #fff
exit
style active-fg red
set inactive-fg red
style inactive-fg red
style inactive-bg red
style active-bg red
style inactive-bg blue
style inactive-bg green
style inactive-bg darkdarkgreen
style inactive-bg darkgreen
style inactive-bg green bright
style inactive-bg yello
style inactive-bg yellow
style inactive-bg magenta
style inactive-bg cyan
style inactive-bg green
style inactive-bg green

0 comments on commit 926c1ed

Please sign in to comment.