debian/0000755000000000000000000000000012234416456007175 5ustar debian/xmobarrc-example0000644000000000000000000000172512120361673012365 0ustar Config { font = "xft:Sans-9:bold" , bgColor = "black" , fgColor = "grey" , position = Top , lowerOnStart = False , commands = [ Run Weather "EGPF" ["-t",": C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000 , Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10 , Run Network "eth1" ["-L","0","-H","32","--normal","green","--high","red"] 10 , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 , Run Memory ["-t","Mem: %"] 10 , Run Swap [] 10 , Run Com "uname" ["-s","-r"] "" 36000 , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10 ] , sepChar = "%" , alignSep = "}{" , template = "%cpu% | %memory% * %swap% | %eth0% - %eth1% }{ %date%| %EGPF% | %uname%" } debian/xmobar.docs0000644000000000000000000000002212233425352011323 0ustar news.md readme.md debian/patches/0000755000000000000000000000000012234223200010603 5ustar debian/patches/series0000644000000000000000000000015512234206717012037 0ustar 0001-Fix-typo-in-src-Parsers.hs-fix-lintian-warning.patch 0001-Really-read-the-XDG-config-if-it-exists.patch debian/patches/0001-Really-read-the-XDG-config-if-it-exists.patch0000644000000000000000000000162012234206717021344 0ustar From 4e3119549e5123fc1f800530487ba5903f38ad40 Mon Sep 17 00:00:00 2001 From: Apollon Oikonomopoulos Date: Tue, 29 Oct 2013 16:33:14 +0200 Subject: [PATCH] Really read the XDG config if it exists Forwarded: yes Commit 7b0d6bff introduced support for configuration files under XDG_CONFIG_HOME. However, despite checking for existence of an XDG configuration file, the code would always try to read ~/.xmobarrc. --- src/Main.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main.hs b/src/Main.hs index e90a158..99ab3fa 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -110,7 +110,7 @@ readDefaultConfig = do home <- io $ getEnv "HOME" let path = home ++ "/.xmobarrc" f <- io $ fileExist path - if x then readConfig path + if x then readConfig xdgconf else if f then readConfig path else return (defaultConfig,[]) -- 1.7.10.4 debian/patches/0001-Fix-typo-in-src-Parsers.hs-fix-lintian-warning.patch0000644000000000000000000000140312156547211023037 0ustar From: Apollon Oikonomopoulos Date: Thu, 14 Mar 2013 17:29:36 +0200 Subject: Fix typo in src/Parsers.hs (fix lintian warning) --- src/Parsers.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parsers.hs b/src/Parsers.hs index 919ce68..26a817b 100644 --- a/src/Parsers.hs +++ b/src/Parsers.hs @@ -228,5 +228,5 @@ parseConfig = runParser parseConf fields "Config" . stripComments commandsErr :: String commandsErr = "commands: this usually means that a command could not" ++ "\nbe parsed." ++ - "\nThe error could be located at the begining of the command" ++ + "\nThe error could be located at the beginning of the command" ++ "\nwhich follows the offending one." debian/rules0000755000000000000000000000151012234224076010245 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS) CONFIGURE_OPTS = --ghc-options="-optl -Wl,-z,relro -optl -Wl,--as-needed" ifeq ($(DEB_HOST_ARCH_OS),linux) CONFIGURE_OPTS += --flags="with_xft with_inotify with_iwlib with_mpris with_dbus" else CONFIGURE_OPTS += --flags="with_xft" endif %: dh $@ override_dh_auto_configure: ghc --make Setup.*hs -o setup-ghc ./setup-ghc configure --ghc --prefix=/usr $(CONFIGURE_OPTS) override_dh_auto_build: ./setup-ghc build override_dh_auto_install: ./setup-ghc copy --destdir=debian/tmp/ override_dh_auto_clean: -./setup-ghc clean -rm -f Setup.o Setup.hi setup-ghc .PHONY: override_dh_auto_configure override_dh_auto_build \ override_dh_auto_install override_dh_auto_clean debian/source/0000755000000000000000000000000012120362374010466 5ustar debian/source/format0000644000000000000000000000001412120361673011675 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001055312234416311011041 0ustar xmobar (0.19-2) unstable; urgency=low * Really use $XDG_CONFIG_HOME/xmobar/xmobarrc if it exists (closes: #728205) * Pass -z,relro to the linker (fixes the hardening-no-relro lintian warning) * Pass --as-needed to the linker (avoid useless dependency on libxext6) -- Apollon Oikonomopoulos Tue, 29 Oct 2013 16:36:57 +0200 xmobar (0.19-1) unstable; urgency=low * New upstream version * Bump standards-version to 3.9.5 + No changes needed * debian/rules: use the dh sequencer -- Apollon Oikonomopoulos Mon, 28 Oct 2013 10:25:43 +0200 xmobar (0.18-2) unstable; urgency=low * Disable MPRIS & DBus plugins on non-linux platforms. They require haskell-dbus which currently works only on Linux. This should fix FTBFS on kfreebsd and hurd. (Closes: #718440) * Simplify and update README.Debian -- Apollon Oikonomopoulos Thu, 01 Aug 2013 02:56:39 +0300 xmobar (0.18-1) unstable; urgency=low * New upstream version * Convert debian/copyright format to version 1.0 * Build-Depend on libghc-regex-compat * Update the watch file to use github -- Apollon Oikonomopoulos Fri, 14 Jun 2013 10:40:25 +0300 xmobar (0.17-1) unstable; urgency=low * New upstream version (Closes: #703328) -- Apollon Oikonomopoulos Thu, 23 May 2013 18:41:34 +0300 xmobar (0.16-1) experimental; urgency=low * Imported Upstream version 0.16 * Drop debian/patches * Update build-depends and enable MPRIS & DBus plugins * Bump standards version to 3.9.4 and compat to 9 * Update manpage * Fix typo in src/Parsers.hs (lintian warning) -- Apollon Oikonomopoulos Thu, 14 Mar 2013 16:58:14 +0200 xmobar (0.14-4) unstable; urgency=low * Backport upstream commit 0b1132, fixing coretemp information parsing (Closes: #693025) * Fix manpage typos -- Apollon Oikonomopoulos Wed, 21 Nov 2012 22:13:55 +0200 xmobar (0.14-3) unstable; urgency=low * Backport upstream commit daf28d, fixing FTBFS with STM 2.3 (Closes: #674317) * Fix wrong location of battery status file in manpage (Closes: #660168) -- Apollon Oikonomopoulos Thu, 24 May 2012 14:55:45 +0300 xmobar (0.14-2) unstable; urgency=low * Backport upstream commit 0964f33. Fixes FTBFS on all non-x86/amd64 arches. (Closes: #654618) -- Apollon Oikonomopoulos Sun, 15 Jan 2012 10:50:56 +0200 xmobar (0.14-1) unstable; urgency=low * New upstream version (Closes: #649222, #652630) -- Apollon Oikonomopoulos Tue, 20 Dec 2011 09:24:10 +0200 xmobar (0.13-2) unstable; urgency=low * Disable Mail, MBox and Wireless plugins on non-Linux architectures -- Apollon Oikonomopoulos Tue, 19 Jul 2011 12:08:39 +0300 xmobar (0.13-1) unstable; urgency=low * New upstream release - Drop swap ratio patch, fixed upstream * Enable the inotify functionality (Closes: #607817) * Update homepage URL (Closes: #610038) * Enable the wireless plugin and build-depend on libiw-dev * Update the manpage (Closes: #610046) -- Apollon Oikonomopoulos Fri, 15 Jul 2011 15:46:01 +0300 xmobar (0.11-2) unstable; urgency=low * Fixed swap plugin's usedratio (Closes: #582155) -- Apollon Oikonomopoulos Wed, 19 May 2010 07:05:13 +0300 xmobar (0.11-1) unstable; urgency=low * New upstream version: monitor plugin improvements and new options regarding plugin output padding and numeric result representation -- Apollon Oikonomopoulos Mon, 17 May 2010 14:40:37 +0300 xmobar (0.10~20100212-1) unstable; urgency=low * Import upstream darcs tree (Closes: #571414, #571464, #544096) * Switch to dpkg-source 3.0 (quilt) format * Bumped standards version to 3.8.4 * Cleaned up debian/rules -- Apollon Oikonomopoulos Wed, 14 Apr 2010 10:57:40 +0300 xmobar (0.9.2-2) unstable; urgency=low * Imported patches from upstream to resolve high X CPU usage with xft + utf-8 See http://code.google.com/p/xmobar/issues/detail?id=11 * Added quilt build-depends for patch management -- Apollon Oikonomopoulos Thu, 26 Nov 2009 01:08:42 +0200 xmobar (0.9.2-1) unstable; urgency=low * Initial release (Closes: #501693) -- Apollon Oikonomopoulos Fri, 12 Jun 2009 10:36:22 +0300 debian/xmobar.manpages0000644000000000000000000000002012233425722012165 0ustar debian/xmobar.1 debian/xmobar.dirs0000644000000000000000000000001012233425044011327 0ustar usr/bin debian/examples0000644000000000000000000000006112120361673010725 0ustar samples/xmobar.config samples/xmonadpropwrite.hs debian/xmobar.install0000644000000000000000000000001712233425034012042 0ustar usr/bin/xmobar debian/xmobar.10000644000000000000000000001002112233421416010530 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH xmobar 1 "March 14, 2013" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME xmobar \- A configurable and extensible status bar for X11 desktops .SH SYNOPSIS .B xmobar .RI [ OPTIONS ]\ [ CONFIG_FILE ] .SH DESCRIPTION .PP xmobar is a minimalistic, text based, status bar. It was originally designed and implemented by Andrea Rossato to work with \fBxmonad\fP, but it's actually usable with any window-manager. .PP xmobar was inspired by the \fBIon3\fP (http://tuomov.iki.fi/software/) status bar, and supports similar features, like dynamic color management, output templates, and extensibility through plugins. .PP This page documents xmobar 0.16. .SH COMMAND LINE OPTIONS .PP xmobar can be either configured with a configuration file or with command line options. In the second case, the command line options will overwrite the corresponding options set in the configuration file. The configuration file is searched for in the following locations, in order: .RS .I $XDG_CONFIG_HOME/xmobar/xmobarrc (default: ~/.config/xmobar/xmobarrc) .br .I ~/.xmobarrc .RE The first configuration file found will be used. See /usr/share/doc/xmobar/examples for sample configuration files. .PP Usage: .PP \f[CR] xmobar \-B white \-a right \-F blue \-t \[aq]%LIPB%\[aq]\ \-c \[aq][Run Weather "LIPB" [] 36000]\[aq] \f[] .PP This is the list of command line options (the output of xmobar \[em]help): .PP \f[CR] Usage:\ xmobar\ [OPTION...]\ [FILE] Options: \-h, \-? \-\-help This help \-V \-\-version Show version information \-f font name \-\-font=font name The font name \-B bg color \-\-bgcolor=bg color The background color. Default black \-F fg color \-\-fgcolor=fg color The foreground color. Default grey \-o \-\-top Place xmobar at the top of the screen \-b \-\-bottom Place xmobar at the bottom of the screen \-a alignsep \-\-alignsep=alignsep Separators for left, center and right text alignment. Default: \[aq]}{\[aq] \-s char \-\-sepchar=char The character used to separate commands in the output template. Default \[aq]%\[aq] \-t template \-\-template=template The output template \-c commands \-\-commands=commands The list of commands to be executed \-C commands \-\-add-commands=commands Add commands to be executed after those of the config file \-x screen \-\-screen=screen On which X screen number to start Mail bug reports and suggestions to \f[] .SH CONFIGURATION For full details of the available configuration options, please refer to /usr/share/doc/xmobar/readme.md.gz. .SH AUTHOR .PP Andrea Rossato originally designed and implemented xmobar up to version 0.11.1. Since then, it is maintained by Jose Antonio Ortega Ruiz (http://hacks-galore.org/jao/). This manual page was written by Apollon Oikonomopoulos for the Debian project (but may be used by others). .SH LICENSE .PP This software is released under a BSD-style license. See /usr/share/doc/xmobar/copyright for more details. .PP Copyright © 2007\[en]2010 Andrea Rossato .br Copyright © 2010\[en]2013 Jose Antonio Ortega Ruiz debian/docs0000644000000000000000000000002212120367402010030 0ustar readme.md news.md debian/README.Debian0000644000000000000000000000130212176323557011236 0ustar xmobar for Debian ================= xmobar for Debian has been compiled with Xft and Unicode support, so it should work out of the box in unicode environments and you should be able to use every TrueType font available to the X Server via xft. Plugin notes ------------ - The weather plugin requires curl to be installed in your system to actually work. - The Mail, MBox and Wireless plugins are Linux-specific and have been disabled in non-Linux architectures (kFreeBSD, Hurd). - The MPRIS and DBus plugins require haskell-dbus, which is currently broken for non-linux platforms and so they are enabled only for Linux. - The mpd, alsa and datezone plugins are disabled to missing dependencies. debian/NEWS0000644000000000000000000000216512233423347007674 0ustar xmobar (0.19-1) unstable; urgency=low Beginning with 0.19, the Com configuration directive does not use a shell to run the commands specified anymore. If you're using shell expansion or pipes in your Com statements, you should change them to call a shell explicitly, e.g.: Run Com "/bin/bash" ["-c", "~/bin/script"] Run Com "/bin/bash" ["-c", "~/bin/other_script | head -n 1"] Also beginning with 0.19, xmobar supports an alternate configuration file location, $XDG_CONFIG_HOME/xmobar/xmobarrc (default: ~/.config/xmobar/xmobarrc). See the xmobar(1) manpage for more details. -- Apollon Oikonomopoulos Mon, 28 Oct 2013 10:25:45 +0200 xmobar (0.16-1) experimental; urgency=low If you used the Battery or BatteryP monitors, please note that after 0.15 they perform auto-discovery and so the "-c" argument is not needed anymore. Be sure to remove it from your .xmobarrc. Also, versions 0.15 and 0.16 introduced a number of new monitors, check out /usr/share/doc/xmobar/news.md.gz for more information. -- Apollon Oikonomopoulos Thu, 14 Mar 2013 17:46:46 +0200 debian/compat0000644000000000000000000000000212120367402010361 0ustar 9 debian/copyright0000644000000000000000000000601312171706741011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: xmobar Upstream-Contact: Jose Antonio Ortega Ruiz Source: https://github.com/jaor/xmobar Files: * Copyright: Copyright 2007-2010 Andrea Rossato Copyright 2010-2013 Jose Antonio Ortega Ruiz License: BSD-3-Clause Files: debian/* Copyright: Copyright 2008-2013 Apollon Oikonomopoulos License: BSD-3-Clause Files: src/Actions.hs src/Bitmap.hs Copyright: (c) Alexander Polakov License: BSD-3-Clause Files: src/IPC/DBus.hs src/Plugins/BufferedPipeReader.hs Copyright: (c) Jochen Keil License: BSD-3-Clause Files: src/Plugins/CommandReader.hs Copyright: (c) John Goerzen License: BSD-3-Clause Files: src/Plugins/EWMH.hs src/Plugins/Mail.hs src/Plugins/XMonadLog.hs Copyright: (c) Spencer Janssen License: BSD-3-Clause Files: src/Plugins/Locks.hs Copyright: (c) Patrick Chilton License: BSD-3-Clause Files: src/Localize.hsc Copyright: (c) 2011 Martin Perner License: BSD-3-Clause Files: src/Plugins/DateZone.hs src/Plugins/Kbd.hsc src/Plugins/Monitors/Bright.hs Copyright: (c) Martin Perner License: BSD-3-Clause Files: src/Plugins/Monitors/CoreCommon.hs src/Plugins/Monitors/CoreTemp.hs src/Plugins/Monitors/CpuFreq.hs src/Plugins/Monitors/Thermal.hs Copyright: (c) Juraj Hercek License: BSD-3-Clause Files: src/Plugins/Monitors/Mpris.hs Copyright: (c) Artem Tarasov License: BSD-3-Clause Files: src/Plugins/Monitors/Volume.hs Copyright: (c) 2011 Thomas Tuegel License: BSD-3-Clause License: BSD-3-Clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the author nor the names of his contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/watch0000644000000000000000000000011312156546713010224 0ustar version=3 http://github.com/jaor/xmobar/tags .*/archive/([\d.]+)\.tar\.gz debian/control0000644000000000000000000000172212233416663010601 0ustar Source: xmobar Section: x11 Priority: optional Maintainer: Apollon Oikonomopoulos Standards-Version: 3.9.5 Build-Depends: debhelper (>= 9), ghc, libghc-x11-xft-dev (>= 0.2), libghc-stm-dev (>= 2.3), libghc-parsec3-dev, libghc-mtl-dev, libghc-x11-dev (>= 1.6.0), libghc-hinotify-dev [linux-any], libiw-dev [linux-any], libghc-dbus-dev [linux-any], libghc-regex-compat-dev Homepage: http://projects.haskell.org/xmobar/ Package: xmobar Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Recommends: curl Suggests: xmonad Description: lightweight status bar for X11 window managers xmobar is a lightweight text-based status bar for X11 desktops written in Haskell and designed to work with (but not limited to) xmonad. It has a variety of plugins allowing the display of system-related data and an extensible architecture that makes it easy to write one's own plugins. xmobar supports displaying UTF-8 text and using TrueType fonts via Xft.