Proposal: Advanced Scratchpad-Features

Hy, I recently found the Scratchpad on the Mailinglist (thanks, Braden for this). But, im missing two features: 1. Is it possible to hide the scratchpad (not close, only hide) with the same hotkey? So if I press the Hotkey once the scratchpad apears and another hit it disapears and I can recall it with the same hotkey. 2. Can the scratchpad made visible on all workspaces? So if I switch my workspace it stays visilbe and I can recall (with 1.) the same scratchpad everywhere? The reason for this is: I want to start a musicplayer (mocp or something like this) in the scratchpad and want to view it on every workspace im on. Is this possible? Thanks -- Dominik Bruhn mailto: dominik@dbruhn.de

On Thu, Feb 28, 2008 at 03:41:50PM +0100, Dominik Bruhn wrote:
Hy, I recently found the Scratchpad on the Mailinglist (thanks, Braden for this). But, im missing two features: 1. Is it possible to hide the scratchpad (not close, only hide) with the same hotkey? So if I press the Hotkey once the scratchpad apears and another hit it disapears and I can recall it with the same hotkey. 2. Can the scratchpad made visible on all workspaces? So if I switch my workspace it stays visilbe and I can recall (with 1.) the same scratchpad everywhere?
The reason for this is: I want to start a musicplayer (mocp or something like this) in the scratchpad and want to view it on every workspace im on.
This is orthagonal to your original question, but as a suggestion for music players and xmonad, I use mpd and have key bindings that control it through mpc. I use one key for pause and another for volume control. Finally I have included pertinent parts of the mpc output in my xmobar. It's all pretty simple and make a very nice simple music setup. .02 A

This is orthagonal to your original question, but as a suggestion for music players and xmonad, I use mpd and have key bindings that control it through mpc. I use one key for pause and another for volume control. Yeah, thanks for the tip, but I use this already. But sometimes you have to change the playlist or do other things where you cant use hotkeys.
Finally I have included pertinent parts of the mpc output in my xmobar. I already thought of this but I got a 12'' Screen (Lenovo X60s) and a 1024x768 Resolution and there is no space in the xmobar.
Thanks anyway -- Dominik Bruhn mailto: dominik@dbruhn.de

* Andrew Sackville-West
On Thu, Feb 28, 2008 at 03:41:50PM +0100, Dominik Bruhn wrote:
Hy, I recently found the Scratchpad on the Mailinglist (thanks, Braden for this). But, im missing two features: 1. Is it possible to hide the scratchpad (not close, only hide) with the same hotkey? So if I press the Hotkey once the scratchpad apears and another hit it disapears and I can recall it with the same hotkey. 2. Can the scratchpad made visible on all workspaces? So if I switch my workspace it stays visilbe and I can recall (with 1.) the same scratchpad everywhere?
The reason for this is: I want to start a musicplayer (mocp or something like this) in the scratchpad and want to view it on every workspace im on.
This is orthagonal to your original question, but as a suggestion for music players and xmonad, I use mpd and have key bindings that control it through mpc. I use one key for pause and another for volume control. Finally I have included pertinent parts of the mpc output in my xmobar. It's all pretty simple and make a very nice simple music setup.
Agree :) Also I've written a small extension for prompting song name, but I was going to push it after xmonad get locale support. However, if you need it and don't deal with non-Latin song names, I can push it earlier... -- Roman I. Cheplyaka (aka Feuerbach @ IRC)

On Thu, Feb 28, 2008 at 07:08:38PM +0200, Roman Cheplyaka wrote:
* Andrew Sackville-West
[2008-02-28 06:49:00-0800] On Thu, Feb 28, 2008 at 03:41:50PM +0100, Dominik Bruhn wrote:
Hy, I recently found the Scratchpad on the Mailinglist (thanks, Braden for this). But, im missing two features: 1. Is it possible to hide the scratchpad (not close, only hide) with the same hotkey? So if I press the Hotkey once the scratchpad apears and another hit it disapears and I can recall it with the same hotkey. 2. Can the scratchpad made visible on all workspaces? So if I switch my workspace it stays visilbe and I can recall (with 1.) the same scratchpad everywhere?
The reason for this is: I want to start a musicplayer (mocp or something like this) in the scratchpad and want to view it on every workspace im on.
This is orthagonal to your original question, but as a suggestion for music players and xmonad, I use mpd and have key bindings that control it through mpc. I use one key for pause and another for volume control. Finally I have included pertinent parts of the mpc output in my xmobar. It's all pretty simple and make a very nice simple music setup.
Agree :)
Also I've written a small extension for prompting song name, but I was going to push it after xmonad get locale support.
However, if you need it and don't deal with non-Latin song names, I can push it earlier...
-- Roman I. Cheplyaka (aka Feuerbach @ IRC)
I made a little script long time ago to play a song by inputting part of its name: mpc play `mpc playlist | grep -i $1 | tr -d \# | head -n 1 | awk -F\) '{print $1}'` Might find it useful as well.. Adrien
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

* Adrien Barilly
On Thu, Feb 28, 2008 at 07:08:38PM +0200, Roman Cheplyaka wrote:
* Andrew Sackville-West
[2008-02-28 06:49:00-0800] On Thu, Feb 28, 2008 at 03:41:50PM +0100, Dominik Bruhn wrote: This is orthagonal to your original question, but as a suggestion for music players and xmonad, I use mpd and have key bindings that control it through mpc. I use one key for pause and another for volume control. Finally I have included pertinent parts of the mpc output in my xmobar. It's all pretty simple and make a very nice simple music setup.
Agree :)
Also I've written a small extension for prompting song name, but I was going to push it after xmonad get locale support.
However, if you need it and don't deal with non-Latin song names, I can push it earlier...
I made a little script long time ago to play a song by inputting part of its name: mpc play `mpc playlist | grep -i $1 | tr -d \# | head -n 1 | awk -F\) '{print $1}'`
Might find it useful as well..
Haha. I have something very similar in spirit in my shell. However, this requires searching some free terminal (or opening a new one). Plus typing your command alias (I call it 'play'). Prompt extension makes things easier. -- Roman I. Cheplyaka (aka Feuerbach @ IRC)

dominik:
Hy, I recently found the Scratchpad on the Mailinglist (thanks, Braden for this). But, im missing two features: 1. Is it possible to hide the scratchpad (not close, only hide) with the same hotkey? So if I press the Hotkey once the scratchpad apears and another hit it disapears and I can recall it with the same hotkey. 2. Can the scratchpad made visible on all workspaces? So if I switch my workspace it stays visilbe and I can recall (with 1.) the same scratchpad everywhere?
The reason for this is: I want to start a musicplayer (mocp or something like this) in the scratchpad and want to view it on every workspace im on.
Is this possible?
Having it toggle should be entirely possible -- the status bar works like this already (mod-b).

Dominik Bruhn wrote:
Hy, I recently found the Scratchpad on the Mailinglist (thanks, Braden for this). But, im missing two features: 1. Is it possible to hide the scratchpad (not close, only hide) with the same hotkey? So if I press the Hotkey once the scratchpad apears and another hit it disapears and I can recall it with the same hotkey. 2. Can the scratchpad made visible on all workspaces? So if I switch my workspace it stays visilbe and I can recall (with 1.) the same scratchpad everywhere?
The reason for this is: I want to start a musicplayer (mocp or something like this) in the scratchpad and want to view it on every workspace im on.
Is this possible?
Thanks
First, glad to see it's appreciated! I'm going to start tonight on the first part. That's fairly straightforward, though I need to extract some primitive operations from WindowBringer first. mod+s (or whatever key you prefer) would work for all three actions: spawn if it doesn't exist, hide if visible, summon if hidden. The only question there is the precise semantics. If the scratchpad is on some other workspace, does mod+s hide it or summon? Summon, I think. If it's on the current workspace and not focused? Trickier. Thoughts? I'll probably lean towards hiding it unless many people say otherwise. It seems to me that if it's on-screen, mod+s means "Stop covering my windows!" This would all be with one, persistent scratchpad, which I think is a big win. The second part is more difficult. Both byorgey and I seem to recall a contrib module that did this appear-on-all-workspaces. One ugly solution is to unmanage it and have it exist as a form of status bar. Does anyone know that module? Is it an unapplied patch floating around somewhere? It seems odd that two people would think the same thing exists if it actually doesn't. Braden Shepherdson shepheb

On Thu, Feb 28, 2008 at 10:28:13PM -0500, Braden Shepherdson wrote:
The second part is more difficult. Both byorgey and I seem to recall a contrib module that did this appear-on-all-workspaces. One ugly solution is to unmanage it and have it exist as a form of status bar.
I haven't looked at the scratchpad code at all, but an obvious solution would seem (to me) to just be to use CopyWindow and put it in all the workspaces. But I can't help but wonder: wouldn't a scratch workspace be better than a scratch window? It ought to be pretty easy to make the workspace-navigation functions ignore a "scratch" workspace (and isn't strictly necessary, either), and then you could stick whatever you want in there. I can think of a number of possibilities to implement a scratch workspace, either as a special layout or a special screen (that sometimes disappears, or moves itself to inside another screen). In fact, a special screen seems like an extremely elegant (and easy!) approach. You just have a function to show/hide this screen. This also opens up the approach of making the scratchpad not overlap with other windows: the existing screen could optionally be shrunk to make room. -- David Roundy Department of Physics Oregon State University
participants (7)
-
Adrien Barilly
-
Andrew Sackville-West
-
Braden Shepherdson
-
David Roundy
-
Dominik Bruhn
-
Don Stewart
-
Roman Cheplyaka