Take the first.
At some point, there was an urgent need to get hold of the English-Russian dictionary in the console,
during the 2-minute search for packages of happiness was not found.
Well, you have to make your own dictionary, remembering that in chromium there is a plugin for the dictionary, it was decided to gut its contents, and screw the dictionary from google to the console.
Well, then the code for zsh.
In the comments resources that were viewed during the search for a solution.
gdictionary () (
Regulars were selected quickly and thoughtlessly; after solving the original problem, they were not subject to editing.
Well, in the end:
limbo ~ $ gdictionary hello
acclamation
greeting
exclamation of surprise
')
Take the second.
It took to record a voice, a quick search brought to arecord.
In order not to return to this issue in the future, I decided to record the voice on a hot track.
As a result, the next monster was born:
run_microphone () { ps au | grep -v grep | grep -q arecord && killall arecord || arecord -F 5 -D hw:1,0 -t wav -f dat -c 1 | lame - > ~/microphone/`date +%F-%R`.mp3 & } zle -N run_microphone run_microphone bindkey "^[[24~" run_microphone
As a result, the first time you press F12, the computer writes sound from the microphone to ~ / microphone /
The next time you press F12, the recording stops.
hw: 1.0 for arecord is the following shamanism:
limbo ~ $ cat / proc / asound / pcm
00-00: ALC662 rev1 Analog: ALC662 rev1 Analog:
00-01: ALC662 rev1 Digital: ALC662 rev1 Digital
00-03: NVIDIA HDMI: NVIDIA HDMI: Playback 1
0
1-0 0: USB Audio: USB Audio:
capture 1 <- watch movies.
Take third
I've been using yakuake for a long time. For those who do not know, leaving the console, such as in the quake.
Well, as she stopped, I like her, why I do not know.
As a result, a replacement was made from the usual konsole.
konsole-on () ( qdbus `qdbus | grep konsole` /konsole/MainWindow_1 setVisible 1 qdbus `qdbus | grep konsole` /konsole/MainWindow_1 showFullScreen qdbus `qdbus | grep konsole` /konsole/MainWindow_1 setFocus ) konsole-off () ( qdbus `qdbus | grep konsole` /konsole/MainWindow_1 setVisible 0 ) konsole-full () ( ps -C konsole --no-heading || /usr/bin/konsole qdbus `qdbus | grep konsole` /konsole/MainWindow_1 Get com.trolltech.Qt.QWidget visible \ | grep -q true && konsole-off || konsole-on )
Well, then konsole-full zabindenna button.
When you first press the console is displayed, the second hides.
Part last, final
In the final, KDE went into oblivion, and dwm reigned in its place.
As it turned out terribly handy thing.
But the story of how to live with a DE of 20 kilobytes will continue the series.
Behind this otklanivayus.