diff options
Diffstat (limited to 'xpybar')
| -rw-r--r-- | xpybar/config/Makefile | 5 | ||||
| -rw-r--r-- | xpybar/config/xmonad-monitor.gpp | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/xpybar/config/Makefile b/xpybar/config/Makefile index b5ce07a..13b97c8 100644 --- a/xpybar/config/Makefile +++ b/xpybar/config/Makefile @@ -2,10 +2,13 @@ all: xmonad-monitor -xmonad-monitor: xmonad-monitor.gpp +.gpp: @touch -- $@ @chmod -- +w $@ gpp -s '%%' < $@.gpp > $@ @chmod -- a-w $@ +.SUFFIXES: +.SUFFIXES: .gpp + .PHONY: all diff --git a/xpybar/config/xmonad-monitor.gpp b/xpybar/config/xmonad-monitor.gpp index df42701..92843bb 100644 --- a/xpybar/config/xmonad-monitor.gpp +++ b/xpybar/config/xmonad-monitor.gpp @@ -89,6 +89,8 @@ with open('/proc/cpuinfo', 'r') as f: isvm = [line.replace('\n', ' ').replace('\t', ' ').split(':') for line in isvm if line] isvm = any('hypervisor' in ':'.join(line[1:]).split(' ') for line in isvm if line[0].strip().startswith('flags')) card1 = 'Ensoniq AudioPCI' if isvm else 'HDA Intel PCH' +%%>elif test $hostname = hades; then +card1 = 'HDA Intel PCH' %%>else card1 = 'HD-Audio Generic' %%>fi @@ -194,7 +196,7 @@ functions = [ [ myxmonad #, myii , None , MyStat (lambda f : Clocked(f, 10)) -%%>if test ! "$hostname" = zenith; then +%%>if test ! "$hostname" = zenith && test ! "$hostname" = north; then ## TODO how about east and hyperion? , MyCGNegative() %%>fi , MyBrilliance(None) |
