Discussion:
Console Music poll: cmus/moc/mpd
Ross Palmer Mohn
2007-10-02 19:15:33 UTC
Permalink
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.

cmus
moc
mpd

-RPM
Thomas Menari
2007-10-02 19:23:33 UTC
Permalink
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I use cmus; it's fairly light, doesn't require a daemon, and has
a good tree view. It also has vi-like bindings and UTF-8
support, which may mean something to some people.

--spaceinvader
Marco Squarcina
2007-10-02 19:43:51 UTC
Permalink
Post by Thomas Menari
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I use cmus; it's fairly light, doesn't require a daemon, and has
a good tree view. It also has vi-like bindings and UTF-8
support, which may mean something to some people.
+1
--
Marco Squarcina >|< www.minimalblue.com >|< GPG key: 6E47BFC5
Grigorios Bouzakis
2007-10-02 19:55:44 UTC
Permalink
Post by Thomas Menari
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I use cmus; it's fairly light, doesn't require a daemon, and has
a good tree view. It also has vi-like bindings and UTF-8
support, which may mean something to some people.
--spaceinvader
+1 from me. for the same reasons
Jeremy O'Brien
2007-10-03 00:55:10 UTC
Permalink
Post by Thomas Menari
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I use cmus; it's fairly light, doesn't require a daemon, and has
a good tree view. It also has vi-like bindings and UTF-8
support, which may mean something to some people.
--spaceinvader
I tried the whole ncmpc/mpd setup, and moc, and mp3blaster. I've settled
on cmus because of its superior playlist support (If you clear a
playlist it continues playing. Mpd stops...), quick searching, and
lightning-fast library updating. And of course I get dwm status bar
output and keyboard bindings for everything on it ;)
--
Jeremy O'Brien aka neutral_insomniac
GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.asc
Linux ambelina 2.6.23-rc3 ppc 7447A, altivec supported PowerBook5,8 GNU/Linux
Ross Palmer Mohn
2007-10-03 01:02:20 UTC
Permalink
Post by Jeremy O'Brien
Post by Thomas Menari
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I use cmus; it's fairly light, doesn't require a daemon, and has
a good tree view. It also has vi-like bindings and UTF-8
support, which may mean something to some people.
--spaceinvader
I tried the whole ncmpc/mpd setup, and moc, and mp3blaster. I've settled
on cmus because of its superior playlist support (If you clear a
playlist it continues playing. Mpd stops...), quick searching, and
lightning-fast library updating. And of course I get dwm status bar
output and keyboard bindings for everything on it ;)
What's your status bar output look like (script &/or screenshot)?
Thanks! -RPM
Jeremy O'Brien
2007-10-03 13:06:40 UTC
Permalink
Post by Ross Palmer Mohn
Post by Jeremy O'Brien
Post by Thomas Menari
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I use cmus; it's fairly light, doesn't require a daemon, and has
a good tree view. It also has vi-like bindings and UTF-8
support, which may mean something to some people.
--spaceinvader
I tried the whole ncmpc/mpd setup, and moc, and mp3blaster. I've settled
on cmus because of its superior playlist support (If you clear a
playlist it continues playing. Mpd stops...), quick searching, and
lightning-fast library updating. And of course I get dwm status bar
output and keyboard bindings for everything on it ;)
What's your status bar output look like (script &/or screenshot)?
Thanks! -RPM
I'll go with the & ;)

Here's a screenshot: Loading Image...

I use a slightly changed script that comes with cmus called
cmus-status-display. Here it is:
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display

The instructions for using it (very simple) are in the file itself.
Before I send the status off to the status bar, I filter it to prevent
ridiculously long lines from taking over my status bar, by doing this:
`tail -n 1 /tmp/cmus-status |tail -c 50` (This can be seen in my
xinitrc, posted earlier)

Feel free to ask any questions. :) I love sharing desktop ideas.
Everyone's environment is their own, and it's nice to see what kind of
setups other people use. I love the freedom of open source software.
--
Jeremy O'Brien aka neutral_insomniac
GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.asc
Linux ambelina 2.6.23-rc3 ppc 7447A, altivec supported PowerBook5,8 GNU/Linux
Ross Palmer Mohn
2007-10-03 13:25:26 UTC
Permalink
Post by Jeremy O'Brien
I'll go with the & ;)
Here's a screenshot: http://pohl.ececs.uc.edu/~jeremy/cmus.png
I use a slightly changed script that comes with cmus called
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
The instructions for using it (very simple) are in the file itself.
Before I send the status off to the status bar, I filter it to prevent
`tail -n 1 /tmp/cmus-status |tail -c 50` (This can be seen in my
xinitrc, posted earlier)
Feel free to ask any questions. :) I love sharing desktop ideas.
Everyone's environment is their own, and it's nice to see what kind of
setups other people use. I love the freedom of open source software.
Nice. I just modified the output() function since I'm not always playing
something. Makes .xinitrc easier to code!
Cheers! -RPM

----
FSTAT="/tmp/cmus-status"
FPLAY="/tmp/cmus-playing"

output()
{
# write status to $FSTAT
echo "$*" >> $FSTAT 2>&1

# write what's playing to $FPLAY
if echo "$*" | grep "^\[playing] "
then
echo "$*" | sed "s/^\[playing] //" > $FPLAY 2>&1
else
rm -f $FPLAY
fi
}
----
Anselm R. Garbe
2007-10-03 14:21:25 UTC
Permalink
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.

Regards,
--
Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Antoni Grzymala
2007-10-03 14:23:52 UTC
Permalink
Post by Anselm R. Garbe
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.
It's pretty cool, however I have some major application shortcuts under
some of these keys which I'd need to redefine and get used to :).

[a]
--
. Antoni Grzymala - antoni (at) chopin.edu.pl -------------------.
| OpenPGP KeyID EB315583 available now from a keyserver near you |
| Fingerprint A819 6D2E D5EB D9E0 D2D9 7AF6 2FAF 4A11 EB31 5583 |
`----------------------------------------------------------------'
Evan Gates
2007-10-03 14:32:39 UTC
Permalink
I moved to a s d q w e for tags a while ago, and changed my caps lock
key into an alt key. Makes me like dwm that much more.

-emg
Post by Antoni Grzymala
Post by Anselm R. Garbe
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.
It's pretty cool, however I have some major application shortcuts under
some of these keys which I'd need to redefine and get used to :).
[a]
--
. Antoni Grzymala - antoni (at) chopin.edu.pl -------------------.
| OpenPGP KeyID EB315583 available now from a keyserver near you |
| Fingerprint A819 6D2E D5EB D9E0 D2D9 7AF6 2FAF 4A11 EB31 5583 |
`----------------------------------------------------------------'
Jeremy O'Brien
2007-10-03 14:45:41 UTC
Permalink
Post by Antoni Grzymala
Post by Anselm R. Garbe
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.
It's pretty cool, however I have some major application shortcuts under
some of these keys which I'd need to redefine and get used to :).
[a]
I'm on a mac, so I use the apple key (useless otherwise) for all my
window manager shortcuts. ;) If I'm on a windows machine I use the
win-key (mod4). So my shortcuts never interfere with alt-based shortcuts.
--
Jeremy O'Brien aka neutral_insomniac
GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.asc
Linux ambelina 2.6.23-rc3 ppc 7447A, altivec supported PowerBook5,8 GNU/Linux
Antoni Grzymala
2007-10-03 14:55:00 UTC
Permalink
Post by Jeremy O'Brien
Post by Antoni Grzymala
Post by Anselm R. Garbe
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.
It's pretty cool, however I have some major application shortcuts under
some of these keys which I'd need to redefine and get used to :).
[a]
I'm on a mac, so I use the apple key (useless otherwise) for all my
window manager shortcuts. ;) If I'm on a windows machine I use the
win-key (mod4). So my shortcuts never interfere with alt-based shortcuts.
Same here, I use the win-key for all things dwm, but by application I
meant dwm-application-launch shortcuts (ie e for terminal, w for web
browser and so on).

Best,

[a]
--
. Antoni Grzymala - antoni (at) chopin.edu.pl -------------------.
| OpenPGP KeyID EB315583 available now from a keyserver near you |
| Fingerprint A819 6D2E D5EB D9E0 D2D9 7AF6 2FAF 4A11 EB31 5583 |
`----------------------------------------------------------------'
Kai Grossjohann
2007-10-05 21:22:42 UTC
Permalink
Post by Antoni Grzymala
It's pretty cool, however I have some major application shortcuts under
some of these keys which I'd need to redefine and get used to :).
Use a distinct modifier for the WM. Such as the flag key on a 104/105
key keyboard being Super_L/Super_R, say.

Kai
Jeremy O'Brien
2007-10-03 14:43:03 UTC
Permalink
Post by Anselm R. Garbe
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.
I am honored. :-D
--
Jeremy O'Brien aka neutral_insomniac
GPG key: 0xB1140FDB http://pohl.ececs.uc.edu/~jeremy/jeremy.asc
Linux ambelina 2.6.23-rc3 ppc 7447A, altivec supported PowerBook5,8 GNU/Linux
Kai Grossjohann
2007-10-05 21:21:55 UTC
Permalink
Post by Anselm R. Garbe
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.
z x c v b n m

(Actually, my tags are 1-9 and I just set up keybindings Mod-z through
Mod-m to be aliases for Mod-1 through Mod-7.)

Kai
Anselm R. Garbe
2007-10-05 21:38:53 UTC
Permalink
Well the only reason I don't like with all those solutions are
the different keyboard layouts out there. Especially qwerty and
zxcvb are not ideal, because they differ in nearly all non-US layouts.

Actually I thought about using the Fn keys for tagging, but
dunno what people think about it?

Regards,
Anselm
Post by Kai Grossjohann
Post by Anselm R. Garbe
Post by Jeremy O'Brien
http://pohl.ececs.uc.edu/~jeremy/cmus-status-display
Totally offtopic, but I like your idea to have 1 2 3 4 5 q w e r
as tags instead of 1 - 9.
z x c v b n m
(Actually, my tags are 1-9 and I just set up keybindings Mod-z through
Mod-m to be aliases for Mod-1 through Mod-7.)
Kai
--
Anselm R. Garbe >< http://www.suckless.org/ >< GPG key: 0D73F361
Xavier
2007-10-05 22:30:47 UTC
Permalink
Post by Anselm R. Garbe
Well the only reason I don't like with all those solutions are
the different keyboard layouts out there. Especially qwerty and
zxcvb are not ideal, because they differ in nearly all non-US layouts.
Just fyi, the current bindings don't even work with this stupid azerty
(french) layout :
http://en.wikipedia.org/wiki/Image:Azerty_fr.svg

The numbers are not directly available, only via Shift.
Several applications are not usable at all (like dwm), because you simply
can't use the bindings using numbers, even when pressing shift.
Some others application are difficult to use, because you have to press shift
all the time.

Initially, I just made the following replacement in config.h (I saw a while
ago on this list that other azerty users had to do the same) :
XK_0 XK_agrave
XK_1 XK_ampersand
XK_2 XK_eacute
XK_3 XK_quotedbl
XK_4 XK_apostrophe
XK_5 XK_parenleft
XK_6 XK_minus
XK_7 XK_egrave
XK_8 XK_underscore
XK_9 XK_ccedilla

But recently, I decided to try switching to qwerty, instead of having to
customize the bindings of each application. And I've been using it since
then.
There are some not cool drawbacks though :
1) writing french (which requires accent) is more difficult
2) I regularly have to switch back to azerty on other box, and I still have
some difficulties when switching, I often mix both :)
3) it also makes my box unusable to others, mostly family :p using a layout
not matching the real keyboard is confusing.
Jonas Pfenniger
2007-10-09 16:59:54 UTC
Permalink
I recommend the us-intl keyboard, which is much better if you need the accents.
--
Cheers,
zimbatm
Xavier
2007-10-09 17:16:59 UTC
Permalink
Post by Jonas Pfenniger
I recommend the us-intl keyboard, which is much better if you need the accents.
Hm yes, actually that's what I first used for a while. It was alright for the
accents indeed.
But having accent keys act as dead keys is both an advantage and an inconvenient.
It's faster to type accents, but it's slower to type the actual ` and ^ keys,
which I use even more frequently.
So it started annoying me, and I switched to us + compose keys.
I already often missed the accents when writing in french previously, and now
it's even worse, since it's more difficult to write them, but well...

I wonder if it wouldn't be better if I just modified the X azerty layout, by
inverting the shift effect on the number keys.
Marek Bernat
2007-10-09 18:09:45 UTC
Permalink
Good way is to start with your default plain keymay ("us" usually, but I use
"usdvorak") and map (RAlt + $letter) to an accented $letter. I think it's
much better than any other way for using accented characters. ...especially
when you're writing in TeX in your native language. Dunno what idiot
invented putting accented letters on alphanumeric keys when putting it on
letters itself and using some modkey is so much more effective. And I
believe every keyboard has a RAlt (and usually completely unused, too...),
no?

Regards Marek
Post by Jonas Pfenniger
Post by Jonas Pfenniger
I recommend the us-intl keyboard, which is much better if you need the
accents.
I wonder if it wouldn't be better if I just modified the X azerty layout, by
inverting the shift effect on the number keys.
Xavier
2007-10-09 18:58:14 UTC
Permalink
Post by Marek Bernat
Good way is to start with your default plain keymay ("us" usually, but I use
"usdvorak") and map (RAlt + $letter) to an accented $letter. I think it's
much better than any other way for using accented characters. ...especially
when you're writing in TeX in your native language. Dunno what idiot
invented putting accented letters on alphanumeric keys when putting it on
letters itself and using some modkey is so much more effective. And I
believe every keyboard has a RAlt (and usually completely unused, too...),
no?
That might be an ideal solution. That's actually partly a bit how "us(intl)"
works, without the dead keys.
For example, RAlt + e = é and RAlt + , = ç.
I am afraid that's the only two I can write though, so it would indeed be
much better if I could just add similar shortcuts on top of "us".

Any pointers on how to do this?
Riccardo Murri
2007-10-09 19:29:50 UTC
Permalink
Post by Xavier
Post by Marek Bernat
Good way is to start with your default plain keymay ("us" usually, but I use
"usdvorak") and map (RAlt + $letter) to an accented $letter. I think it's
much better than any other way for using accented characters. ...especially
when you're writing in TeX in your native language.
[deletia]
That might be an ideal solution. That's actually partly a bit how "us(intl)"
works, without the dead keys.
For example, RAlt + e = é and RAlt + , = ç.
I am afraid that's the only two I can write though, so it would indeed be
much better if I could just add similar shortcuts on top of "us".
Any pointers on how to do this?
This is the relevant snippet from my `~/.Xmodmap` (look for key names
in `/usr/include/X11/Xkeysimdef.h`; they are case-sensitive)::

! ## key Shift Mode_switch Shift+Mode_switch
! -----------------------------------------------------------------------
keycode 10 = 1 exclam exclamdown
keycode 11 = 2 at twosuperior onehalf
keycode 12 = 3 numbersign threesuperior onethird
keycode 13 = 4 dollar EuroSign sterling
keycode 15 = 6 asciicircum dead_circumflex
keycode 19 = 0 parenright emptyset
keycode 25 = w W eacute Eacute
keycode 26 = e E egrave Egrave
keycode 30 = u U ugrave Ugrave
keycode 31 = i I igrave Igrave
keycode 32 = o O ograve Ograve
keycode 38 = a A agrave Agrave
keycode 48 = apostrophe quotedbl dead_acute dead_diaeresis
keycode 49 = grave asciitilde dead_grave dead_tilde
keycode 54 = c C ccedilla Ccedilla
keycode 59 = comma less dead_abovedot guillemotleft
keycode 60 = period greater dead_belowdot guillemotright
keycode 61 = slash question questiondown

The symbols in the third and fourth column are obtained by pressing
Mode_switch+key; `Mode_switch` is usually bound to RAlt, but I usually
rebind it to Apple/Windows keys (on *both* sides, since it's difficult
to press RWin+key_on_the_right_half_of_keybd)::

! 'Apple' keys are Mode_switch
remove mod1 = Meta_R
keycode 115 = Mode_switch
clear mod
Xavier
2007-10-09 21:22:32 UTC
Permalink
Post by Riccardo Murri
This is the relevant snippet from my `~/.Xmodmap` (look for key names
! ## key Shift Mode_switch Shift+Mode_switch
! -----------------------------------------------------------------------
keycode 10 = 1 exclam exclamdown
keycode 11 = 2 at twosuperior onehalf
keycode 12 = 3 numbersign threesuperior onethird
keycode 13 = 4 dollar EuroSign sterling
keycode 15 = 6 asciicircum dead_circumflex
keycode 19 = 0 parenright emptyset
keycode 25 = w W eacute Eacute
keycode 26 = e E egrave Egrave
keycode 30 = u U ugrave Ugrave
keycode 31 = i I igrave Igrave
keycode 32 = o O ograve Ograve
keycode 38 = a A agrave Agrave
keycode 48 = apostrophe quotedbl dead_acute dead_diaeresis
keycode 49 = grave asciitilde dead_grave dead_tilde
keycode 54 = c C ccedilla Ccedilla
keycode 59 = comma less dead_abovedot guillemotleft
keycode 60 = period greater dead_belowdot guillemotright
keycode 61 = slash question questiondown
The symbols in the third and fourth column are obtained by pressing
Mode_switch+key; `Mode_switch` is usually bound to RAlt, but I usually
rebind it to Apple/Windows keys (on *both* sides, since it's difficult
! 'Apple' keys are Mode_switch
remove mod1 = Meta_R
keycode 115 = Mode_switch
clear mod2
add mod2 = Mode_switch
Thanks a lot, that table looks perfect. I just removed the u/i/o that I don't
need, but I didn't have to edit / add anything else.

As for the mode_switch, I just added this line for using RAlt :
keycode 113 = Mode_switch

The layout seems perfectly usable now, all my issues are solved :)

Except maybe the fact that it's a custom layout. So for a family computer,
it's not ideal, and for a box at uni, it'll require doing the same setup again,
though that should just be a matter of copying my custom .Xmodmap.
But for my personal laptop, it's perfect :)
Marek Bernat
2007-10-09 19:33:55 UTC
Permalink
Attached is my skdvorak keymap. I store it as
/usr/share/X11/xkb/symbols/skdvorak.
You will have to change the keycodes (e.g. <AC01>) to the ones matching us
keymap (mine match "us(dvorak)"): look into /usr/share/X11/xkb/symbols/us,
or whatever, to learn them. Or more simply, just copy the us keymap and add
RAlt and RAlt + Shift symbols to it. Or use Xmodmap. Whatever you like more.

Regards
Post by Marek Bernat
Post by Marek Bernat
Good way is to start with your default plain keymay ("us" usually, but I
use
Post by Marek Bernat
"usdvorak") and map (RAlt + $letter) to an accented $letter. I think
it's
Post by Marek Bernat
much better than any other way for using accented characters.
...especially
Post by Marek Bernat
when you're writing in TeX in your native language. Dunno what idiot
invented putting accented letters on alphanumeric keys when putting it
on
Post by Marek Bernat
letters itself and using some modkey is so much more effective. And I
believe every keyboard has a RAlt (and usually completely unused,
too...),
Post by Marek Bernat
no?
That might be an ideal solution. That's actually partly a bit how "us(intl)"
works, without the dead keys.
For example, RAlt + e = é and RAlt + , = ç.
I am afraid that's the only two I can write though, so it would indeed be
much better if I could just add similar shortcuts on top of "us".
Any pointers on how to do this?
Marek Bernat
2007-10-09 19:35:38 UTC
Permalink
Of course I forget to attach the file :-)
Post by Marek Bernat
Attached is my skdvorak keymap. I store it as
/usr/share/X11/xkb/symbols/skdvorak.
You will have to change the keycodes (e.g. <AC01>) to the ones matching us
keymap (mine match "us(dvorak)"): look into /usr/share/X11/xkb/symbols/us,
or whatever, to learn them. Or more simply, just copy the us keymap and add
RAlt and RAlt + Shift symbols to it. Or use Xmodmap. Whatever you like more.
Regards
Post by Marek Bernat
Post by Marek Bernat
Good way is to start with your default plain keymay ("us" usually, but
I use
Post by Marek Bernat
"usdvorak") and map (RAlt + $letter) to an accented $letter. I think
it's
Post by Marek Bernat
much better than any other way for using accented characters.
...especially
Post by Marek Bernat
when you're writing in TeX in your native language. Dunno what idiot
invented putting accented letters on alphanumeric keys when putting it
on
Post by Marek Bernat
letters itself and using some modkey is so much more effective. And I
believe every keyboard has a RAlt (and usually completely unused,
too...),
Post by Marek Bernat
no?
That might be an ideal solution. That's actually partly a bit how "us(intl)"
works, without the dead keys.
For example, RAlt + e = é and RAlt + , = ç.
I am afraid that's the only two I can write though, so it would indeed be
much better if I could just add similar shortcuts on top of "us".
Any pointers on how to do this?
Xavier
2007-10-09 21:30:12 UTC
Permalink
Post by Marek Bernat
Attached is my skdvorak keymap. I store it as
/usr/share/X11/xkb/symbols/skdvorak.
You will have to change the keycodes (e.g. <AC01>) to the ones matching us
keymap (mine match "us(dvorak)"): look into /usr/share/X11/xkb/symbols/us,
or whatever, to learn them. Or more simply, just copy the us keymap and add
RAlt and RAlt + Shift symbols to it. Or use Xmodmap. Whatever you like more.
I see, thanks for the information, it's clearer now.
That's an interesting alternative, but Riccardo's Xmodmap already fit my
needs perfectly, so I just used that. I also like that it can be loaded as
simple user if I wanted to put it on other box.
Maybe that's also possible with a custom layout though, I don't know.
Adrien Barilly
2007-10-10 19:57:28 UTC
Permalink
You might also want to map the 'Multi_key' to a key of your keyboard (in
my case, RAlt, keycode 113); this would make the key a 'dead key': press
it, press the modifier and finally press the letter. Alright, that makes
3 keys for one character; but it allows you to make a lot of other
characters.

Examples:
Multi_key + ' + e = é
Multi_key + ` + e = è
Multi_key + , + c = ç
but also
Multi_key + c + c = č
Multi_key + o + u = ů
Multi_key + ~ + n = ñ
Multi_key + c + t = ť
or almost anything you can think of (useful if you want to write in
several languages).
Post by Xavier
Post by Marek Bernat
Attached is my skdvorak keymap. I store it as
/usr/share/X11/xkb/symbols/skdvorak.
You will have to change the keycodes (e.g. <AC01>) to the ones matching us
keymap (mine match "us(dvorak)"): look into /usr/share/X11/xkb/symbols/us,
or whatever, to learn them. Or more simply, just copy the us keymap and add
RAlt and RAlt + Shift symbols to it. Or use Xmodmap. Whatever you like more.
I see, thanks for the information, it's clearer now.
That's an interesting alternative, but Riccardo's Xmodmap already fit my
needs perfectly, so I just used that. I also like that it can be loaded as
simple user if I wanted to put it on other box.
Maybe that's also possible with a custom layout though, I don't know.
Xavier
2007-10-10 20:08:53 UTC
Permalink
Post by Adrien Barilly
You might also want to map the 'Multi_key' to a key of your keyboard (in
my case, RAlt, keycode 113); this would make the key a 'dead key': press
it, press the modifier and finally press the letter. Alright, that makes
3 keys for one character; but it allows you to make a lot of other
characters.
Multi_key + ' + e = é
Multi_key + ` + e = è
Multi_key + , + c = ç
but also
Multi_key + c + c = č
Multi_key + o + u = ů
Multi_key + ~ + n = ñ
Multi_key + c + t = ť
or almost anything you can think of (useful if you want to write in
several languages).
Yep, that's what I was using lately, us + compose key.
I just found 3 keys too painful : é à and ç are directly available on the
azerty layout, and are quite frequently needed.
Now I have them available with two keys : altgr+w, altgr+a, altgr+c, which is
still practical.

But indeed, the compose key would be very useful for writing a wide range of
characters that are not too frequent.
Ali Gholami Rudi
2007-10-11 16:35:57 UTC
Permalink
Post by Xavier
Post by Adrien Barilly
You might also want to map the 'Multi_key' to a key of your keyboard (in
my case, RAlt, keycode 113); this would make the key a 'dead key': press
it, press the modifier and finally press the letter. Alright, that makes
3 keys for one character; but it allows you to make a lot of other
characters.
Multi_key + ' + e = é
Multi_key + ` + e = Ú
Multi_key + , + c = ç
but also
Multi_key + c + c = č
Multi_key + o + u = ů
Multi_key + ~ + n = ñ
Multi_key + c + t = ť
or almost anything you can think of (useful if you want to write in
several languages).
Yep, that's what I was using lately, us + compose key.
I just found 3 keys too painful : é à and ç are directly available on the
azerty layout, and are quite frequently needed.
Now I have them available with two keys : altgr+w, altgr+a, altgr+c, which is
still practical.
But indeed, the compose key would be very useful for writing a wide range of
characters that are not too frequent.
If you use emacs, you can use its "C-x 8" prefix. Such as:

C-x 8 ` a iso-transl-a-grave
C-x 8 ' e iso-transl-e-acute
C-x 8 " u iso-transl-u-umlaut
C-x 8 ^ i iso-transl-i-caret
C-x 8 ~ n iso-transl-n-tilde

Use "C-x 8 C-h" to see all of them.
Marcin Cieslak
2007-10-12 14:00:06 UTC
Permalink
Post by Xavier
I see, thanks for the information, it's clearer now.
That's an interesting alternative, but Riccardo's Xmodmap already fit my
needs perfectly, so I just used that. I also like that it can be loaded as
simple user if I wanted to put it on other box.
Maybe that's also possible with a custom layout though, I don't know.
Attached there is a patch to XKB French layout (on my system it's in the
/usr/local/share/X11/xkb/symbols, your's probably different)

cd /usr/local/share/X11/xkb/symbols
patch < /attached/patch/file
xkbcomp fr :0

To turn it on "live" (without restarting X):

setxkbmap fr(altdigits)

To have it permament update your xorg.conf file in section "InputDevice":

Option "XkbLayout" "fr(altdigits)"

XKB is very powerful although not very good documented, here is example
what I use:

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc101"
Option "XkbLayout" "pl,de,ru,fr(altdigits)"
Option "XkbOptions"
"ctrl:swapcaps,grp:ctrls_toggle,grpled:scroll,altwin:left_meta_win,lv3:ralt"
EndSection

- I get Polish, German, Russian and your modified French
- Swapped Caps Lock and left Ctrl
- Two Ctrls (i.e. old CapsLock+right Ctrl) pressed at once switch the
layout to the next one
- Left windows key is Meta (I am using this as a switch for dwm)
- Right alt switches level 3 group (i.e. I get my Polish letters with
right alt+key)

This puts your alternative French layout as one of the standard layouts
in the system. Also you have nice possibility to switch layouts, not
that easy when using Xmodmap.

You may wish to submit this to X.org and see your layout default on your
system after the next X.org update :-)

--Marcin
Alexander Polakov
2007-10-06 17:59:10 UTC
Permalink
Post by Anselm R. Garbe
Actually I thought about using the Fn keys for tagging, but
dunno what people think about it?
It's fine! I've been using them for ages.
--
Alexander Polakov | http://polachok.livejournal.com
Russian DWM users | http://community.livejournal.com/ru_dwm/
René Wilhelm
2007-10-06 22:58:41 UTC
Permalink
Post by Anselm R. Garbe
Actually I thought about using the Fn keys for tagging, but
dunno what people think about it?
I wouldn't like it. On most keyboards the Fn keys are further away than
the number row (there is this small, about 1cm big gap between the
number row and the Fn keys) and I like to minimize my finger movement
when working. Beside that, Meta-[1-9] is not often used by other
programs, and if they are, it's not that important, afaik.
--
René Wilhelm
markus schnalke
2007-10-02 19:34:41 UTC
Permalink
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I started with `mpd/ncmpc' but didn't liked the client/server-approach

Then used `moc' (mocp on Debian) for a while, but it was quite unstable
with adding large music directories over samba.

So I switched to `cmus' which was smaller though more featureful than moc
... but as I realized, that I only used few of the features, I dropped it

Finally I got stuck with `cplay' which I guess is one of the smallest
music players with playlist support and so.
It is only a wrapper for mpg123/mpg321/ogg123/... It just uses whatever
player it finds.

I feel perfectly comfortable with it and don't see any need to change
again :-)
David Harris
2007-10-02 19:54:59 UTC
Permalink
I use to just use mpg123 and ogg123 directly.
Then I noticed that sometimes mpg123 had
problems with playlists, so I wrote a simple C
program that would list all the urls in a pls file.

The user chose the url and then called mpg123.
Yet mpg123 didn't have any caching or anything
of audio streams.

Enter mplayer.

This is one of the main reasons why I use mplayer.
Mplayer has caching which is excellent for
streaming internet radio.

That plus if you have any video files you can
still play the file from a tty and send
the video output to null.

As far as server-client programs go I tried icecast
and liked it between Slackware and Debian.
Yet I haven't used that situation much since I'm
a college student and don't have a lot of money
to be running an 'always-on' server that eats up
electricity.
Christoph Siegenthaler
2007-10-02 20:05:29 UTC
Permalink
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
cmus
moc
mpd
-RPM
I use mpd and ncmpc and like this combo a lot.
I have configured the most common mpc commands to keybindings to be able
to use them everywhere. (I assume that this is quite common under
console music player users ;)

Cheers Sigi
Ricardo Martins
2007-10-02 20:21:29 UTC
Permalink
Post by Christoph Siegenthaler
I use mpd and ncmpc and like this combo a lot.
I have configured the most common mpc commands to keybindings to be able to
use them everywhere. (I assume that this is quite common under console
music player users ;)
I do exactly the same thing. It's very nice being able to control mpd
with my laptop's multimedia keys.
--
Ricardo Martins * scarybox.net * GPG key: 0x1308F1B4

Q: Why is this email 5 sentences or less?
A: http://five.sentenc.es
Nagy Mate
2007-10-02 20:27:26 UTC
Permalink
greetings,
Post by Ricardo Martins
I do exactly the same thing. It's very nice being able to control mpd
with my laptop's multimedia keys.
i do this with moc, with which i also get a reasonable curses
interface, little track switching lag, and good streaming audio support
(i listen to net radios a lot, so this is important for me).
does cmus have good stream support?
(this means that if there's a net outage, the client doesn't hang...
i just hate badly written/optimistic socket code. although it's
admittedly isn't exactly trivial to get right.)

Mate
y i y u s
2007-10-02 20:32:56 UTC
Permalink
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
I was using this script. It probably has bugs, but should be
self-explanatory. I also used a modified dmenu version to show the
current song with 'mo current allways' and play next song or stop and
an xlib program to control the playlist with the mouse wheel. I have
the sources somewhere if you are interested.
Since I reinstalled everything in my new laptop, I just use mpg123 or
mplayer (I used to patch dwm to let some space for a second bar to
know the current song, but lately I'm too lazy...)

greets,
--
- yiyus || JGL .
Alpt
2007-10-03 11:57:56 UTC
Permalink
On Tue, Oct 02, 2007 at 03:15:33PM -0400, <Ross Palmer Mohn>:
~> I've been working with cmus lately and am beginning to like. I'd like
~> to take an informal poll of what console music people use and why.
~>
~> cmus
~> moc
~> mpd

xmplayer
http://www.freaknet.org/alpt/src/utils/xmplayer/readme

"""Xmplayer executes, only once, mplayer in background and controls it
through a FIFO. It supports all the (useful) features you'll find in XMMS and
it is easily extendible.
However, unlike XMMS, Xmplayer doesn't require any X server active. You can
even use it from a remote shell. Indeed, this was the main reason for its
development."""
--
:wq!
"I don't know nothing" The One Who reached the Thinking Matter '.'

[ Alpt --- Freaknet Medialab ]
[ GPG Key ID 441CF0EE ]
[ Key fingerprint = 8B02 26E8 831A 7BB9 81A9 5277 BFF8 037E 441C F0EE ]
Amit Uttamchandani
2007-10-04 05:01:55 UTC
Permalink
Post by Antoni Grzymala
Same here, I use the win-key for all things dwm, but by application I
meant dwm-application-launch shortcuts (ie e for terminal, w for web
browser and so on).
That is a great idea...how do you set dwm-application-launch in dwm?
--
Amit Uttamchandani <atu13439-***@public.gmane.org>
James Hoving
2007-10-04 16:10:11 UTC
Permalink
mpd/ncmpc FTW! :-)
I don't run mpd on my main machine but on an old Toshiba Portege 3010 so I
can reboot without losing my sweet sweet music.

/Jim
Tube
2007-10-24 11:02:02 UTC
Permalink
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
i used mocp a long time, switched over to cmus and then again back to
mocp. the cool thing about mocp that i need -- and why i switched back --
at the moment is that i can remotely control the player (mocp -P for
pausing and so on). cmus is very nice because of its vim-style but also
a little bit overfeatured IMHO.

tube
--
tube-8F0h4x2XkxOsTnJN9+***@public.gmane.org
http://count0.net
Tuncer Ayaz
2007-10-24 11:21:18 UTC
Permalink
Post by Tube
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
i used mocp a long time, switched over to cmus and then again back to
mocp. the cool thing about mocp that i need -- and why i switched back --
at the moment is that i can remotely control the player (mocp -P for
pausing and so on). cmus is very nice because of its vim-style but also
a little bit overfeatured IMHO.
use cmus-remote
http://repo.or.cz/w/cmus.git?a=blob_plain;f=Doc/cmus-remote.txt;hb=HEAD
Grigorios Bouzakis
2007-10-24 11:43:55 UTC
Permalink
Post by Tube
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
i used mocp a long time, switched over to cmus and then again back to
mocp. the cool thing about mocp that i need -- and why i switched back --
at the moment is that i can remotely control the player (mocp -P for
pausing and so on). cmus is very nice because of its vim-style but also
a little bit overfeatured IMHO.
tube
--
http://count0.net
cmus might be overfeatured as you say but imo mocp has an ugly bar on
bottom to display progress of currently playing track and most
importantly its VERY slow when loading the tracks into the playlist to
display total time etc which is very annoying

Greg
Ross Mohn
2007-10-24 12:55:50 UTC
Permalink
Post by Tube
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
i used mocp a long time, switched over to cmus and then again back to
mocp. the cool thing about mocp that i need -- and why i switched back --
at the moment is that i can remotely control the player (mocp -P for
pausing and so on). cmus is very nice because of its vim-style but also
a little bit overfeatured IMHO.
Here's what I use in dwm's config.h:

...
{MODKEY,XK_Home, spawn,"exec cmus-remote --pause" }, \
{MODKEY,XK_End, spawn,"exec cmus-remote --stop" }, \
{MODKEY,XK_Up, spawn,"exec cmus-remote --volume +1" }, \
{MODKEY,XK_Down, spawn,"exec cmus-remote --volume -1" }, \
{MODKEY,XK_Right,spawn,"exec cmus-remote --next" }, \
{MODKEY,XK_Left, spawn,"exec cmus-remote --prev" }, \
...

Cheers! -RPM
Sylvain Bertrand
2007-10-24 13:01:02 UTC
Permalink
Ario is a new GTK+/GCONF front-end for mpd:
http://linuxfr.org/redirect/54111.html
Tube
2007-10-24 13:41:56 UTC
Permalink
Post by Ross Mohn
...
{MODKEY,XK_Home, spawn,"exec cmus-remote --pause" }, \
{MODKEY,XK_End, spawn,"exec cmus-remote --stop" }, \
{MODKEY,XK_Up, spawn,"exec cmus-remote --volume +1" }, \
{MODKEY,XK_Down, spawn,"exec cmus-remote --volume -1" }, \
{MODKEY,XK_Right,spawn,"exec cmus-remote --next" }, \
{MODKEY,XK_Left, spawn,"exec cmus-remote --prev" }, \
...
ok, thx to all of you :) indeed, didnt know about cmus-remote
--
tube-8F0h4x2XkxOsTnJN9+***@public.gmane.org
http://count0.net
carmen
2007-10-25 02:27:02 UTC
Permalink
alias m=mplayer
mpl() { m -loop 0 -shuffle -playlist $*;}
mpo() { m -playlist $*;}
alias mp='mpl .pls'
alias 313='cd /m && ma
"\(dan.*\(curtin\|bell\)\|chicago\|r_and_s\|metroplex\|kms\|modell\|deepchord\|acid\|titonton\|tejada\|morgan\|dbx\|moody\|parrish\|ranelin\|red.planet\|martian\|dj.\(assault\|godfather\|bone\)\|suburban\|detroit\|313\)"'
ma() { grep -i "$*" .pls > .f && mpl .f;}
ms() { grep -i "$*" .pls > .f && mpo .f;}
ra() { m `s=^$*=;grep $s ~/.radio|sed -e s/$s//`;}
alias pl='find . -iregex ".*.flac" -o -iregex ".*.mp3" -o -iregex ".*.m4a"|sort> .pls'

run 'pl' in music dir after new files created..

mp is totally random, 'ma something' for shuffle keyword match, 'ms something' for match played in order..

~/.radio has entries like

k=http://sc1.abacast.com:8240
n=http://s1.streaming.novanet.fr:80/radionova
b=http://wbgo.streamguys.net:80/
m=http://headphones.mit.edu:8000/
j=http://netcast.kfjc.org:8976/
p=http://66.134.90.174:8080
z=http://amber.streamguys.com:4860/
f=http://216.118.106.243/
r=http://typhoon.exequo.org:8000/rinseradio
d=http://radio.dubstep.fm:8000
res=http://212.23.57.33:8010
s=http://scanner.irational.org:8000/scanner

'ra z' to play..

any good way to shorten that cray grep to something more readable w/o using a temp file?
Post by Tube
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
i used mocp a long time, switched over to cmus and then again back to
mocp. the cool thing about mocp that i need -- and why i switched back --
at the moment is that i can remotely control the player (mocp -P for
pausing and so on). cmus is very nice because of its vim-style but also
a little bit overfeatured IMHO.
tube
--
http://count0.net
Manny Calavera
2007-10-25 06:40:59 UTC
Permalink
Post by Tube
Post by Ross Palmer Mohn
I've been working with cmus lately and am beginning to like. I'd like
to take an informal poll of what console music people use and why.
i used mocp a long time, switched over to cmus and then again back to
mocp. the cool thing about mocp that i need -- and why i switched back --
at the moment is that i can remotely control the player (mocp -P for
pausing and so on). cmus is very nice because of its vim-style but also
a little bit overfeatured IMHO.
tube
I use mpd here without any problems. Actually its mpd + iceast because I
stream it from another machine to my laptop running dwm.

{ MODKEY, XK_p, spawn, "sh ~/misc/scripts/oggplay.sh" }, \
{ MODKEY, XK_q, spawn, "exec pkill ogg123" }, \
{ MODKEY, XK_period, spawn, "exec mpc next" }, \
{ MODKEY, XK_comma, spawn, "exec mpc prev" }, \

These are my keyboard shortcuts. oggplay.sh is a script i wrote that
runs ogg123 to connect to the streaming ogg that icecast uses.

Loading...