From f9660904b319d55bc2e316b9e6edbb995061c920 Mon Sep 17 00:00:00 2001 From: David Todd Date: Wed, 25 Mar 2020 13:56:12 -0500 Subject: [PATCH] Add i3-dstatus --- i3/i3-dstatus.conf | 39 +++++++++++++++++++++++++++++++++++++++ i3/i3blocks.conf | 3 +++ i3/i3blocks/scratchpad | 3 +++ 3 files changed, 45 insertions(+) create mode 100644 i3/i3-dstatus.conf create mode 100755 i3/i3blocks/scratchpad diff --git a/i3/i3-dstatus.conf b/i3/i3-dstatus.conf new file mode 100644 index 0000000..1378d59 --- /dev/null +++ b/i3/i3-dstatus.conf @@ -0,0 +1,39 @@ +# vim: filetype=yaml +# This is an example configuration file for i3-dstatus. +# +# Make sure you are using a pango font by putting `pango:` before your i3 font +# string to use the markup features +--- +general: + generators: [ focused-window, scratchpad, playerctl, clipboard, netifaces, disk, battery, clock ] + separator-block-width: 25 +clock: + format: '%h %d %H:%M' +disk: + '/': + prefix: 'custom' + format: '%free' +clipboard: + format: ' %text' +focused-window: + truncate-length: 100 +netifaces: + enp3s0: + format-up: '%iface: %ip' + format-down: '%iface: down' +scratchpad: + format: 'scratchpad: %classes' +playerctl: + format: '{{artist}} - {{title}}' +check-http: + sites: [ 'http://i3wm.org' ] + interval: 600 + format-up: '' + format-down: '%site is down (status: %status, %reason)' +github-repos: + users: [ altdesktop ] + interval: 600 + format: '%stars ?%issues' +battery: + name: 'BAT0' # defaults to the first battery found + format: '%name %percentage%' diff --git a/i3/i3blocks.conf b/i3/i3blocks.conf index 11c78bf..7265652 100644 --- a/i3/i3blocks.conf +++ b/i3/i3blocks.conf @@ -29,6 +29,9 @@ command=~/bin/i3blocks/$BLOCK_NAME separator_block_width=15 markup=pango +[scratchpad] +interval=5 + [gpu-load] interval=15 label=⎚ diff --git a/i3/i3blocks/scratchpad b/i3/i3blocks/scratchpad new file mode 100755 index 0000000..dcaa337 --- /dev/null +++ b/i3/i3blocks/scratchpad @@ -0,0 +1,3 @@ +#!/bin/bash + +i3-dstatus scratchpad