*
  Мысли   Галерея   Проекты   Тексты  
  Мысли   Галерея   Проекты   Тексты  
Giver: Multimedia keyboard  (2008-04-14 01:58:26)

Все видели многофункциональные мультимедия клавиатуры, многие даже хотели бы иметь себе такие, некоторые даже имеют. Предлагаю сделать мультимедиа клавиатуру из своей обычной: посмотрите, сколько лишних кнопок на ней, которые могут принести пользу, чего стоят только непонятные флажки около пробела. Мне больше приглянулись три кнопки управления питанием. На основе этих ненужных кнопок и будем делать нашу мультимедиа клавиатуру.

Для начала выясним при помощи утилиты xev, создают ли нужные нам кнопки какие-либо события, и имеются ли у них символика. На моем примере клавиша Wake посылала 223 код и не имела символа. Таким образом, собрав коды всех символов, можно сформировать ~/.Xmodmap примерно такого содержания:

keycode 227 = XF86AudioLowerVolume
keycode 223 = XF86AudioMute
keycode 222 = XF86AudioRaiseVolume

Некоторые среды, например XFCE, имеют предпрописанные действия к данным клавишам, так что дополнительных рукодвижений не потребуется. В остальных окружениях необходимо прописать их действия. Фрагмент файла сочетаний клавиш Enlightenment DR16 (~/.e16/bindings.cfg):

KeyDown - XF86AudioLowerVolume exec amixer sset PCM 2-
KeyDown - XF86AudioMute exec amixer sset PCM toggle
KeyDown - XF86AudioRaiseVolume exec amixer sset PCM 2+

Эти кнопки можно использовать с каким либо из модификаторов, например Control. Таким образом получаем не только изменение громкости, но и смену трека. Пример реализации в e16 с плеером sonata:

KeyDown C XF86AudioLowerVolume exec sonata prev
KeyDown C XF86AudioMute exec sonata pp
KeyDown C XF86AudioRaiseVolume exec sonata next

Winston от 2020-10-16 17:43:52:
I'd like to order some foreign currency best place to buy testosterone enanthate Archambault rates both stock as "buy," but sees stronger near-term catalysts for GM's share, including the rollout of profitable full-size pickup trucks boosting margins in the second half of 2013, and the possibility of a common dividend by year end.
Leonardo от 2020-10-16 17:43:52:
I'm only getting an answering machine amoxicillin and potassium clavulanate tablets dosage Islamic finance in Malaysia, which has seen regulatoryreforms boost its share of the country's total banking assets tomore than 20 percent, has seen major consolidation as banks seekto manage operational costs and win bigger deals.
Lillian от 2020-10-16 17:43:52:
I'd like a phonecard, please aciclovir pastiglie senza ricetta Song said South Korea, which built the fourth largest economy in Asia from the rubble of the 1950-53 Korean War, is synonymous with the good life that middle-class Chinese aspire to. South Korea's pop culture plays a big part in cultivating that image.
Danny от 2020-10-16 17:43:53:
I'm interested in depo medrol injection cpt code "Crane also committed not to close its proposed acquisitionof MEI before concluding a binding agreement for the sale of thedivestment businesses to a suitable purchaser approved by theCommission," the EU competition authority said.
Scott от 2020-10-16 17:43:53:
This is your employment contract suddenly slimmer body wrap Yes there are a number of options available, you can set your browser either to reject all cookies, to allow only "trusted" sites to set them, or to only accept them from the site you are currently on.
Chong от 2020-10-16 17:49:39:
We'd like to offer you the job tamarind fruit in hindi name Community leaders are embarrassed by our airport because it lacks the glitz of other airports. It doesn’t give you a sense of modernity, of large masses of people, and it leaves you with the impression this is a small, not-so-up-to-date Kansas City. But what a price to pay, to give up all that convenience for an image.
Granville от 2020-10-16 17:49:39:
I wanted to live abroad clomipramine obat generik Sir Edward Garnier QC, for Lord McAlpine, said on 2 November last year the then "managing editor of the Bureau of Investigative Journalism" tweeted: "If all goes well we've got a Newsnight out tonight about a very senior political figure who is a paedophile."
Shannon от 2020-10-16 17:49:40:
Can you hear me OK? mixing advil and naproxen The meeting of diplomats from the five permanent,veto-wielding powers of the Security Council came a day afterU.N. investigators confirmed the use of sarin nerve agent in theAug. 21 attack. The United States, Britain and France said thereport proved beyond any doubt that Assad's forces wereresponsible.
Roosevelt от 2020-10-16 17:49:40:
I'd like to send this to rogaine foam women's side effects Patel was not among the several MTN executives named in a.2 billion lawsuit by Turkish firm Turkcell lastyear. The suit, which Turkcell withdrew in May, alleged MTN usedbribery and other underhanded means to obtain a licence in Iranoriginally awarded to Turkcell.
Clement от 2020-10-16 17:49:41:
I've got a part-time job benadryl topical cream side effects No closet door seems to go unopened in the film, produced and directed by Pete Radovich Jr. and narrated by Jon Bon Jovi. Taylor saw the film for the first time Tuesday night in a special screening in New York, the city where football glory elevated Taylor to the heights of fame and fortune but also presented the temptations that nearly destroyed him.