diff options
author | Baitinq <30861839+Baitinq@users.noreply.github.com> | 2019-11-06 14:33:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-06 14:33:21 +0000 |
commit | f1478e37ac793c753fc12e855fd6766d0a1097dc (patch) | |
tree | 63e395fc374cb74ee34df64efa5df1f242afee6f | |
parent | 13168d33d4064f75787b4644de8a727f8b303875 (diff) | |
parent | a996ced4ef101a72a5c3a11cd1ea2b77fc8a05a4 (diff) |
Merge pull request #13 from thytom/readme
Readme
-rw-r--r-- | README.md | 62 | ||||
-rwxr-xr-x | dwmbar | 5 |
2 files changed, 43 insertions, 24 deletions
@@ -21,7 +21,7 @@ See [module prerequisites][Module Prerequisites] ## Arch Linux -There is an [AUR package](https://aur.archlinux.org/packages/dwmbar) for +There is an [AUR package](https://aur.archlinux.org/packages/dwmbar-git) for dwmbar, which can be installed with your favourite aur helper, or manually. Please see the [archwiki @@ -91,29 +91,37 @@ Modules can be written in any language, so long as they are executable and print their output to stdout. Currently available default modules are: -- archupdates - Gets the number of updates available **Arch Linux Only** -- backlight - Shows the brightness of the screen -- battery - Gets battery percentage -- bluetooth - Shows bluetooth status -- cpuload - Shows the CPU load in % -- date - Shows the calendar date -- daypercentage - Shows how far through the day you are, in % -- disksize - Shows the disk usage -- ethernet - Shows ethernet connection -- internet - Shows whether internet is available (TODO) -- mail - Shows how much mail you have -- mpd - Shows MPD status -- ram - Shows RAM usage -- redshift - Shows current screen temperature from Redshift -- sunmoon - Displays a sun or moon for time of day -- temperature - Displays the temperature of the CPU -- time - Displays time -- todo - Prints the number of todos for the "t" todo manager -- tor - Prints if the tor service is enabled -- volume - Prints volume in % -- volumebar - Displays a volume bar -- weather - Shows weather info -- wifi - Shows wifi connection +- archupdates - Gets the number of updates available **Arch Linux Only** +- backlight - Shows the brightness of the screen +- battery - Gets battery percentage +- bluetooth - Shows bluetooth status +- cpuload - Shows the CPU load in % +- date - Shows the calendar date +- daypercentage - Shows how far through the day you are, in % +- disksize - Shows the disk usage +- ethernet - Shows ethernet connection +- fanspeed - Shows the rpm of your main fan +- hostname - Shows your current user and hostname +- internet - Shows whether internet is available (TODO) +- kernel - Shows the kernel version +- localip - Shows your local IP address +- mail - Shows how much mail you have +- mpd - Shows MPD status +- networkdowntraffic - Gets the download traffic in Kb/s +- networkuptraffic - Gets the upload traffic in Kb/s +- publicip - Shows your public IP address +- ram - Shows RAM usage +- redshift - Shows current screen temperature from Redshift +- sunmoon - Displays a sun or moon for time of day +- temperature - Displays the temperature of the CPU +- time - Displays time +- todo - Prints the number of todos for the "t" todo manager +- tor - Prints if the tor service is enabled +- voidupdates - Gets the number of updates available **Void Linux Only** +- volumebar - Displays a volume bar +- volume - Prints volume in % +- weather - Shows weather info +- wifi - Shows wifi connection ## Module Prerequisites @@ -126,11 +134,15 @@ See Module Dependencies - light * bluetooth - bluez +* fanspeed + - lmsensors * mail - mutt/neomutt (We recommend [Luke Smith's Mutt-Wizard](https://github.com/LukeSmithxyz/mutt-wizard)) for configuration. * mpd - mpd - mpc +* publicip + - curl * redshift - redshift * sunmoon @@ -141,6 +153,8 @@ See Module Dependencies - [t todo manager](https://github.com/sjl/t) * tor - tor +* voidupdates + - xbps package manager * volume - pulseaudio * volumebar @@ -53,6 +53,11 @@ check_files(){ exit 1 fi + if [[ ! -d $CACHE_DIR ]]; then + echo "$CACHE_DIR does not exist." > /dev/stderr + exit 1 + fi + if [[ ! -f $DEFAULT_BAR_LOCATION ]]; then echo "$DEFAULT_BAR_LOCATION does not exist." > /dev/stderr exit 1 |