DWM: only display workspaces with windows in them (in the status bar)

I was wondering if anyone either had a patch or had a few hints about the source in order to accomplish displaying only those workspaces with windows on them. I am willing to edit the source (dwm.c) but have no idea where to start.

Look at drawbar(), in this code block (line 664 in the current hg tip version of the file):
for(i = 0; i < LENGTH(tags); i++) {
dc.w = TEXTW(tags[i]);
col = m->tagset[m->seltags] & 1 << i ? dc.sel : dc.norm;
drawtext(tags[i], col, urg & 1 << i);
drawsquare(m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
occ & 1 << i, urg & 1 << i, col);
dc.x += dc.w;
The drawtext() and drawsquare() calls are what write the names. The variable "occ", which is computed in the block right above, tells which tags are occupied, in the format of one bit per tag. It shouldn't be too hard to skip the appropriate ones.
What looks harder is keeping the width of the tag display correct - if you just skip some names, there will be a gap big enough to fit the missing ones between the tag name list and the layout indicator.
The other thing worth mentioning is that the names of empty tags are useful if you want to retag windows, or switch tags, with the mouse.

Similar Messages

  • ITunes store shows "accessing iTunes store..." for few seconds and after that its blank with an apple logo inside the status bar.

    Hi,
        I have recently installed iTunes latest version (10.5.1.42) on Win XP SP3.
    The problem is, when accessing iTunes, It connects to the internet, I can sign in (It shows my username in sign in bar), But nothing is shown in the iTunes store window in iTunes. It shows "accessing iTunes store..." for few seconds and after that its blank with an apple logo inside the status bar.
    ANU SUGGESSION???

    Sorry, no. The screen image you see is specifically saying you need to connect it to a computer. You could take it to an Apple retailer for help.

  • The only thing on my iPad 2 screen is the status bar

    I was updating GarageBand clicked on another app and then the screen went completely black. When I pressed the wake button I open my iPad back up an then the screen was completely black. I tried to shut it down with the red slider but it wouldn't turn off. Now the screen is black and the only this on the screen is the status bar items. And when this happened it only had 10% left and they was yesterday! Now it doesn't turn off and the apps don't show up on the screen (it's still black with only the status bar) I can't get the red slider to appear and the screen won't rotate

    You have to hold down on the sleep AND the home buttons until the Apple logo appears on the screen. this may not work, but it's worth a try. There other things to try if that doesn't help. You will probably need to restore via recovery mode.
    Does iTunes recognize your iPad when connected to the PC?

  • I recently updated to Firefox (desktop) 6.0.2 & love it but please can you tell me an EASY way HOW I can I get the status bar to display at the bottom so I can see the status of my downloads, safe sites & that sync is either in progress or finished.

    Windows 7 64-bit
    Firefox v. 6.0.2
    Norton 360 v.5

    Firefox has a status panel that shows you what is happening during page loading, and also shows the destinations of links when you mouse over them. The status bar showed that as well. You really do not lose that information. I found that I like the addons bar better than the status bar because I could put more buttons on it.

  • "Allow pages to choose their own fonts, and not my selection above" only shows squares with numbers in them for all english characters

    When ever I select this option firefox only shows characters that appear when you do not have foreign fonts installed, except for English. The characters are squares with numbers in them at the bottom of the character.

    Try to set the Boolean pref <b>gfx.font_rendering.directwrite.use_gdi_table_loading</b> to <i>false</i> on the <b>about:config</b> page.
    *http://kb.mozillazine.org/about:config

  • How can we show only display name with out showing email adress

    Guys
    Can you please tell me as to How we can show only display name with out showing email adress
    Thks&Rgds
    --Venkat                                                                                                                                                                                                                                                   

    http://java.sun.com/products/javamail/javadocs/javax/mail/internet/InternetAddress.html#getPersonal()<<<<<<<<<<<<<<<<
    could you please elobarate it. I could not understand it properly
    Thank you
    --Venkat                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can I run the Photoshop CC and Lightroom with Windows XP professional as the operating system?

    Can I run the Photoshop CC and Lightroom with Windows XP professional as the operating system?

    The tech specs for Phtoshop CC and Lightroom indicate Windows 7 with SP 1 is required as a minimum, so XP would not be sufficient to run them.   Here's the Photoshop specs:
    Windows
    Intel® Pentium® 4 or AMD Athlon® 64 processor (2GHz or faster)
    Windows 7 with Service Pack 1, Windows 8, or Windows 8.1*
    1GB of RAM
    2.5GB of available hard-disk space for installation; additional free space required during installation (cannot install on removable flash storage devices)
    1024x768 display (1280x800 recommended) with OpenGL® 2.0, 16-bit color, and 512MB of VRAM (1GB recommended)†
    Internet connection and registration are necessary for required software activation, membership validation, and access to online services.‡

  • My itunes in pc fails to secure link with itunes store it shows the process bar it automatically quits the process it also does not shows any on the screen. i am using windows xp service pack 3. what shoul i do?

    my itunes in pc fails to secure link with itunes store it shows the process bar it automatically quits the process it also does not shows any on the screen. i am using windows xp service pack 3. what shoul i do?
    Diagnostics test
    Microsoft Windows XP Professional Service Pack 3 (Build 2600)
    ECS G31T-M7
    iTunes 10.5.2.11
    QuickTime 7.6.9
    FairPlay 1.13.37
    Apple Application Support 2.1.6
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 4.0.0.97
    Apple Mobile Device Driver 1.57.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.5.502
    Gracenote MusicID 1.9.5.115
    Gracenote Submit 1.9.5.143
    Gracenote DSP 1.9.5.45
    iTunes Serial Number 0012ABAC07F3CCB0
    Current user is an administrator.
    The current local date and time is 2011-12-31 14:06:21.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is not supported. (16005)
    Video Display Information
    Intel(R) G33/G31 Express Chipset Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    **** Network Connectivity Tests ****
    Network Adapter Information
    Adapter Name:        {7599FAD1-1BB9-4AC6-80AF-404253DC519E}
    Description:            Atheros L2 Fast Ethernet 10/100 Base-T Controller - Packet Scheduler Miniport
    IP Address:             192.168.1.5
    Subnet Mask:          255.255.255.0
    Default Gateway:    192.168.1.1
    DHCP Enabled:      Yes
    DHCP Server:         192.168.1.1
    Lease Obtained:     Sat Dec 31 13:46:09 2011
    Lease Expires:       Tue Jan 03 13:46:09 2012
    DNS Servers:         192.168.1.1
    Active Connection: LAN Connection
    Connected:             Yes
    Online:                    Yes
    Using Modem:        No
    Using LAN:             Yes
    Using Proxy:           No
    SSL 3.0 Support:     Enabled
    TLS 1.0 Support:     Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was unsuccessful.
    The network connection timed out.
    Connection attempt to firmware update server was unsuccessful.
    The network connection timed out.
    Connection attempt to Gracenote server was successful.
    Last successful iTunes Store access was 2011-12-31 14:00:02.
    **** Device Connectivity Tests ****
    iPodService 10.5.2.11 is currently running.
    iTunesHelper 10.5.2.11 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    Universal Serial Bus Controllers:
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27C8.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27C9.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27CA.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB Universal Host Controller - 27CB.  Device is working properly.
    Intel(R) 82801G (ICH7 Family) USB2 Enhanced Host Controller - 27CC.  Device is working properly.
    No FireWire (IEEE 1394) Host Controller found.
    Connected Device Information:
    rawkiss’s iPhone, iPhone 3G running firmware version 4.0
    Serial Number:       86931UEAY7H
    **** Device Sync Tests ****
    Sync tests completed successfully.

    I have found a fix after doing additional research through this forum. Tech Note #328730 addresses this problem and it works for Photoshop Album 3.2 even though it was written for release 1.0.
    Here is a link that will take you directly to the Tech Note:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=328730
    When using this fix the Tech Note indicates:
    "Imported image data and tags are lost when you re-create the My Catalog.psa file, so you need to reimport images and reapply any tags"
    however it did retain the captions (at least it did for me).

  • To connect my ipod to itunes with windows 8 not see the option to add to add songs from itunes library. As I can solve this?

    To connect my ipod to itunes with windows 8 not see the option to add to add songs from itunes library. As I can solve this?

    Since you can only sync your iPod with one computer at a time, you'll need to copy the contents currently on your iPod to your new iTunes library first.  See this older post from another forum member Zevoneer covering the different ways to accomplish this task.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • I am running Premier Elements 11 with Windows 8.1. The font size is so small Elements is unusable.

    I am running Premier Elements 11 with Windows 8.1. The font size is so small Elements is unusable. Is there a fix or workaround for this problem? My computer is Dell XPS13.

    lloyddawes
    Thanks for the reply.
    Sorry that the display is not better. You are correct - in Windows 8.1 64 bit
    Control Panel
    Appearance and Personalization
    Display
    the choices are 100% and 125%.
    There are some user "Custom Sizing Options" and other under that. But, if you have all the settings maximized, it would seem that you have
    the best viewing situation for your particular setup.
    I do not see the opportunity for improving your situation in this matter moving to Premiere Elements 12/12.1 or 13/13.1.
    Any questions or need clarification, please do not hesitate to ask.
    ATR

  • I had an early version of photoshop (2.0 I think) that worked perfect on windows vista. I bought a new laptop with windows 8.1 and the photoshop won't install. Which version of Photoshop compatible with Windows 8.1 is closest to the older photoshop?

    I had an early version of Photoshop (2.0 I think) that worked perfect on windows vista. I bought a new laptop with windows 8.1 and the Photoshop won't install. Which version of Photoshop compatible with Windows 8.1 is closest to the older Photoshop?

    I think you mean Photoshop CS2.  Photoshop 2 is from around 1992.  The old Adobe activation servers were taken down. CS2 is about a decade old Adobe made a new download for old customers that legal customers can download and install. Download Acrobat 7 and CS2 products

  • I have Acrobat pro on an old pc with windows 7, and now want to download it on a new pc with windows 8. i found the serial number, but I don't know how to download it.

    I have Acrobat pro on an old pc with windows 7, and now want to download it on a new pc with windows 8. i found the serial number, but I don't know how to download it.

    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5 | 1
    Contribute:  CS5 | CS4, CS3 | 3,2
    FrameMaker:  12, 11, 10, 9, 8, 7.2
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • I have Dreamweaver CS3 on a PC with Windows Vista SP2. The program recently began to hang when opening previously created HTML files. How do I fix this?

    I have Dreamweaver CS3 on a PC with Windows Vista SP2. The program recently began to hang when opening previously created HTML files. How do I fix this?

    Hi rmarchione,
    Can you try restoring preferences and let us know if it helps?
    Restore preferences | Dreamweaver CS4, CS5, CS5.5, CS6
    Thanks,
    Preran

  • TS4062 hi can somebody help me... itunes does not accept the iphone 4s but i already have the version 64 bit to work with windows 7 64 bit,  the computer recognizes the phone but itunes sais i need 64 bit itunes.... please is there something im missing...

    hi can somebody help me... itunes does not accept the iphone 4s but i already have the version 64 bit to work with windows 7 64 bit,  the computer recognizes the phone but itunes sais i need 64 bit itunes. please is there something im missing... thanks

    Let's try a standalone Apple Mobile Device Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of why it's not installing under normal conditions.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleMobileDeviceSupport.msi (or AppleMobileDeviceSupport64.msi) to do a standalone AMDS install.
    (If it offers you the choice to remove or repair, choose "Remove", and if the uninstall goes through successfully, see if you can reinstall by doubleclicking the AppleMobileDeviceSupport.msi again.)
    Does it install (or uninstall and then reinstall) properly for you? If so, can you get a normal iTunes install to go through properly now?
    If instead you get an error message during the install (or uninstall), let us know what it says. (Precise text, please.)

  • In 1 applications, e.g. Norton Virus Scan, and Macware DiskToolsPro, the status bar shows 100% but task is still running. Where it says x of y items complete, x is y. This also happens in Windows 7 with Bootcamp. Please explain.

    In >1 applications, e.g. Norton Virus Scan, and Macware DiskToolsPro, the status bar sometimes shows 100% complete but task is still running. Under the status bar, where it says something like "x of y items complete," x is greater than y. This also happens in Windows 7 with Bootcamp. Why does this happen?

    In >1 applications, e.g. Norton Virus Scan, and Macware DiskToolsPro, the status bar sometimes shows 100% complete but task is still running. Under the status bar, where it says something like "x of y items complete," x is greater than y. This also happens in Windows 7 with Bootcamp. Why does this happen?

Maybe you are looking for

  • How Can I do an export that from Final Cut Pro 7 that is specific to these settings?

    Hi I am current trying to export out a movie from Final Cut Pro 7 but the settings that are required are very specific and I was going to try it through compressor as well but I wasn't sure if that would work either. Here are the settings: HD: 1 Vide

  • Can no longer open Fabric Manager Web Client 4.7(2b)

    Hello I have recently upgraded from Fabric Manager 3.3(2b) to 4.2(7b). I followed the correct path, so went from 3.3 to 4.1 and then from 4.1 to 4.2. The application opens but I can not browse to the localhost address on either http or https and ther

  • Can't make changes in vendor master fields

    hi i am trying ot make changes in vendor master but most of fields are grayed out donno know to make them writeable and changeable can someone help me plz thanks

  • Media manager in Desktop manager not working

    Hi for some reason my Media Manager is not highlighted so I can't select it in my Blackberry Desktop Manager. Any ideas? Cheers Solved! Go to Solution.

  • Color issues with cc

    I have noticed that if I save a picture out of lightroom and then save the same picture out of photoshop the colors are quite different when I email them to myself.  Even if I havent actually edited it in Photoshop.  Has anyone else experienced this?