Advertisement
lukicdarkoo

My tool collection for Arch derivatives

Jan 16th, 2017
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.64 KB | None | 0 0
  1. # Power managment
  2. # https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html
  3. sudo pacman -S tlp tlp-rdw
  4. sudo systemctl enable tlp.service
  5. sudo systemctl enable tlp-sleep.service
  6. sudo systemctl enable NetworkManager-dispatcher.service
  7. sudo systemctl mask systemd-rfkill.service
  8. sudo systemctl mask systemd-rfkill.socket
  9.  
  10. # UI
  11. sudo pacman -S i3-wm network-manager-applet dmenu xorg-xbacklight slock arandr
  12. yaourt -S polybar gthumb escrotum-git python2-numpy xclip polybar ttf-font-awesome-4 indicator-sound-switcher --noconfirm
  13. rm -rf ~/.config/i3; git clone https://LukicDarkoo@bitbucket.org/LukicDarkoo/i3.git ~/.config/i3
  14.  
  15. # Development tools
  16. sudo pacman -S vim visual-studio-code-bin
  17. sudo pacman -S nodejs npm
  18. sudo pacman -S avr-binutils avr-gcc avr-libc avrdude
  19.  
  20. # Jupyter
  21. sudo pacman -S jupyterlab
  22. pip install --user jupyterlab_latex
  23. JUPYTERLAB_DIR=~/.jupyter/ jupyter labextension install @jupyterlab/latex jupyterlab-drawio @lckr/jupyterlab_variableinspector
  24. sudo chown $USER /usr/etc/jupyter/jupyter_notebook_config.json
  25. JUPYTERLAB_DIR=~/.jupyter/ jupyter serverextension enable --sys-prefix jupyterlab_latex
  26.  
  27. # Searchable Audio Files
  28. pip install --user deepspeech
  29. yaourt -S python-sox
  30.  
  31. # Searchable PDFs
  32. yaourt -S ocrmypdf
  33.  
  34. # Media editing
  35. sudo pacman -S audacity inkscape gimp blender obs-studio
  36. # Download from https://www.blackmagicdesign.com/products/davinciresolve/
  37. # yay -S davinci-resolve-beta
  38.  
  39. # Avahi
  40. sudo systemctl enable avahi-daemon.service
  41. sudo pacman -S python2-dbus
  42.  
  43. # General purpose
  44. yaourt -S ocrmypdf tesseract-data-eng --noconfirm
  45. sudo pacman -S chromium
  46. sudo pacman -S create_ap
  47. sudo pacman -S qt4 vlc
  48. sudo pacman -S blueman
  49.  
  50. # Download my playlist
  51. sudo pacman -S youtube-dl atomicparsley
  52. cd ~/Music
  53. youtube-dl -x --embed-thumbnail --add-metadata --ignore-errors --audio-format m4a https://www.youtube.com/playlist?list=PL7j_kHXkB08f_GZKN8FCKivoRmRWrwyND
  54.  
  55. # Configure .bashrc
  56. bash -c 'cat > ~/.bashrc' << EOF
  57. export PATH=/home/lukicdarkoo/.local/bin:$PATH
  58.  
  59. alias jlab='JUPYTERLAB_DIR=~/.jupyter/ jupyter lab --ip 0.0.0.0'
  60. alias dm='xrandr --auto --output DP2 --right-of eDP1'
  61.  
  62. function gg() {
  63.     git add -A
  64.     git commit -m "${1}"
  65.     git push
  66. }
  67.  
  68. ros_init() {
  69.   source /opt/ros/melodic/setup.bash
  70.   source devel/setup.bash
  71. }
  72.  
  73. function bth() {
  74.     bluetoothctl power on
  75.     bluetoothctl connect 17:12:19:C5:09:31
  76. }
  77.  
  78. function bts() {
  79.     bluetoothctl power on
  80.     bluetoothctl connect C0:28:8D:8E:0B:30
  81. }
  82.  
  83. function speech2text() {
  84.     deepspeech --model ~/.deepspeech/output_graph.pbmm --alphabet ~/.deepspeech/alphabet.txt --lm ~/.deepspeech/lm.binary --trie ~/.deepspeech/trie --audio "${1}"
  85. }
  86. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement