Skip to content

Instantly share code, notes, and snippets.

@dudelson
Created June 14, 2017 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dudelson/55009e755aa874b0661a63d1cc68121e to your computer and use it in GitHub Desktop.
Save dudelson/55009e755aa874b0661a63d1cc68121e to your computer and use it in GitHub Desktop.
Hook to update awesomewm battery widget
#!/usr/bin/env bash
export XAUTHORITY=/home/david/.Xauthority
export DISPLAY=:0
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus"
/usr/bin/awesome-client "local beautiful = require('beautiful'); beautiful.update_battery_widget()"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment