Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 6.84 KB | None | 0 0
  1. # Full Goblocks config example with all available block types and options.
  2.  
  3. # The global section contains global config options.
  4.  
  5. global:
  6.    # debug is a boolean indicating whether or not to pretty print the json
  7.     # output. Note that this setting requires a restart in order to take
  8.     # effect.
  9.     debug: False
  10.     # refresh_interval is a floating point number indicating the time interval
  11.     # in seconds between when Goblocks sends an updated status line to i3bar.
  12.     # Basically, it controls Goblocks' "frame rate". This value defaults to 1.
  13.     # Note that this value also serves as the default update_interval value for
  14.     # each block.
  15.     refresh_interval: 1
  16.  
  17. # Below is the per-block configuration. The blocks are defined in a YAML array.
  18.  
  19. # Each block must have a type field indicating which status indicator to use for
  20. # that block. Different status indicators can have different configuration
  21. # fields.
  22.  
  23. # Each block may optionally have an update_interval field indicating the time
  24. # interval in seconds between block updates. This is a floating point number,
  25. # allowing for fractions of a second. Note that this interval does not affect
  26. # the refresh rate of Goblocks' output; it only impacts the timing in which a
  27. # block's info gets updated. If update_interval is omitted, then the
  28. # refresh_interval value in the global section is used as the update_interval.
  29.  
  30. # Each block may optionally have a label field indicating a prefix string to
  31. # prepend to the block's status text.
  32.  
  33. # If a block has an update_signal field, then that block will be updated and
  34. # Goblocks refreshed when Goblocks receives an RTMIN signal offset by the given
  35. # signal number. See the volume block config.
  36. # For example, if update_signal is 1, then running 'pkill -RTMIN+1 goblocks'
  37. # will cause Goblocks to update the block and refresh.
  38. # The update_signal value must be 1 or greater.
  39.  
  40. # Blocks may optionally have a color field that specifies the default color of
  41. # the block text, using the 6 digit hex RGB format (e.g. #00ff00 for green).
  42.  
  43. blocks:
  44.    # The key block shows statuses of various toggled keys (caps lock, num lock,
  45.     # etc.)
  46.     #    - type: key
  47.     #      update_interval: 60
  48.     #      update_signal: 1
  49.     #      # The key field is the key name to search for in the "xset q" output.
  50.     #      key: Caps Lock
  51.     #      # The key-text field is the text to display in the block.
  52.     #      key-text: Caps
  53.     #      # on-color and off-color indicate which colors to use when the given key
  54.     #      # is on or off, respectively.
  55.     #      on-color: "#ff0000"
  56.     #      off-color: "#222222"
  57.  
  58.     # This block requires a passwordless sudoers entry for the user running
  59.     # goblocks.
  60.     # E.g. ALL ALL = (root) NOPASSWD: /sbin/zpool
  61.     # Also, the zpool utility must be installed and in your $PATH.
  62.     #    - type: zfs
  63.     #      label: "Z: "
  64.     #      zpool_name: "boot"
  65.     #      update_interval: 60
  66.     #
  67.     #    # Only linux mdraid is supported.
  68.     #    - type: raid
  69.     #      label: "R: "
  70.     #      color: "#00ff00"
  71.  
  72.     - type: command
  73.       label: "msc " # "📻" #""
  74.       command: sh /home/luca/.config/goblocks/musicdisplay.sh
  75.  
  76.     # The disk block is an aggregate status of overall filesystem usage.
  77.     #    - type: disk
  78.     #      label: "D: "
  79.     #      # filesystems is a map of strings to floating point numbers. The strings
  80.     #      # are the filesystems you want to check, and the numbers are the
  81.     #      # critical usage percentages for those filesystems.
  82.     #      filesystems:
  83.     #          /: 90
  84.     #          /home: 90
  85.  
  86.     #    - type: load
  87.     #      label: ""
  88.     #      crit_load: 4
  89.  
  90.     # The memory block displays available memory.
  91.     - type: memory
  92.       label: "mem " # "💾" #""
  93.       crit_mem: 1
  94.  
  95.     - type: temperature
  96.       # cpu_temp_path is the path to the "hwmon" directory of the CPU
  97.       # temperature info.
  98.       label: "temp " # "🌡️  #""
  99.       cpu_temp_path: /sys/devices/platform/coretemp.0/hwmon
  100.       crit_temp: 60
  101.  
  102.       #    - type: interface
  103.       #      label: "E: "
  104.       #      interface_name: enp3s0
  105.       #      # interface_format is a format string that allows you to specify which
  106.       #      # interface info to display. The syntax for this string is described here:
  107.       #      # https://golang.org/pkg/text/template/
  108.       #      # These are the supported values:
  109.       #      # * Status        - whether the interface is up or down
  110.       #      # * Ipv4Addr      - IPv4 address
  111.       #      # * Ipv4Cidr      - IPv4 address in CIDR notation
  112.       #      # * Ipv4LocalAddr - link local IPv4 address
  113.       #      # * Ipv4LocalCidr - link local IPv4 address in CIDR notation
  114.       #      # * Ipv6Addr      - IPv6 address
  115.       #      # * Ipv6Cidr      - IPv6 address in CIDR notation
  116.       #      # * Ipv6LocalAddr - link local IPv6 address
  117.       #      # * Ipv6LocalCidr - link local IPv6 address in CIDR notation
  118.       #      # The default value for interface_format is "{{.Status}}"
  119.       #      interface_format: "{{.Status}}, {{.Ipv4Cidr}}"
  120.  
  121.     - type: interface
  122.       label: "int " # "🏠" #""
  123.       interface_name: wlp3s0
  124.       interface_format: "{{.Status}}, {{.Ipv4Cidr}}"
  125.  
  126.     - type: wifi
  127.       label: "wifi " # "📡" #""
  128.       interface_name: wlp3s0
  129.       crit_quality: 40
  130.  
  131.     - type: battery
  132.       label: "bat " # "🔋" #""
  133.       # The battery number can be found in /sys/class/power_supply/
  134.       battery_number: 0
  135.       crit_battery: 20
  136.  
  137.     # The volume block currently supports Pulse or ALSA channels through amixer.
  138.     # The amixer utility must be installed and in your $PATH.
  139.     - type: volume
  140.       update_interval: 60
  141.       label: "vol " # "🔊" #""
  142.       update_signal: 1
  143.       # mixer_device defines the device name to use. If omitted, the default
  144.       # value is "default". Other possible values include "pulse".
  145.       mixer_device: default
  146.       # channel defines the volume channel to monitor. If omitted, the default
  147.       # value is "Master".
  148.       channel: Master
  149.  
  150.     - type: uptime
  151.       update_interval: 0.5
  152.       label: "upt " # "🙋🏻‍♀️" #""
  153.       # duration_format is a format string whose syntax is defined here:
  154.       # https://github.com/davidscholberg/go-durationfmt#duration-format
  155.       duration_format: "%d-%0h:%0m:%0s"
  156.  
  157.     - type: time
  158.       label: "tim " # "🕔" #""
  159.       update_interval: 0.5
  160.       # The time_format value must be a string in Go's standard time format
  161.       # (see https://golang.org/pkg/time/#pkg-constants).
  162.       time_format: 2006-01-02 15:04:05
  163.  
  164.       # Specify a shell command to display output from.
  165.       # Command flags are supported, complex commands with quotes or pipe
  166.       # characters should be executed from a script file.
  167.       #    - type: command
  168.       #      label: "$ "
  169.       #      command: 'date -u'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement