diff --git a/dotfiles/applications.org b/dotfiles/applications.org index 8a30545..7fb65aa 100644 --- a/dotfiles/applications.org +++ b/dotfiles/applications.org @@ -62,7 +62,7 @@ [Desktop Entry] Name=Neomutt GenericName=Email client - Exec=/usr/bin/termite -e neomutt %u + Exec=$TERMINAL -e neomutt %u Type=Application Icon=/usr/share/icons/Papirus/64x64/apps/mutt.svg Categories=Network;Email; @@ -98,7 +98,7 @@ Encoding=UTF-8 MultipleArgs=false Terminal=false - Exec=termite --class=WeeChat -e 'weechat' + Exec=$TERMINAL --class=WeeChat -e 'weechat' StartupWMClass=WeeChat Icon=/usr/share/icons/Papirus/64x64/apps/weechat.svg Type=Application diff --git a/dotfiles/compositor.org b/dotfiles/compositor.org index 12e1c77..5ccf67d 100644 --- a/dotfiles/compositor.org +++ b/dotfiles/compositor.org @@ -32,7 +32,6 @@ "window_type = 'dock'", "window_type = 'dnd'", "class_g = 'VirtualBox'", - "class_g = 'Conky'", "class_g ?= 'Notify-osd'", "class_g = 'Tilda'", "class_g = 'Firefox'", diff --git a/dotfiles/i3.org b/dotfiles/i3.org index e7962b1..dfa164d 100644 --- a/dotfiles/i3.org +++ b/dotfiles/i3.org @@ -90,25 +90,6 @@ Colors are gathered based on the documentation https://i3wm.org/docs/userguide.h set $black #282828 set $darkblack #1d2021 set $transparent #00000000 - - # set_from_resource $term_background background - # set_from_resource $term_foreground foreground - # set_from_resource $term_color0 color0 - # set_from_resource $term_color1 color1 - # set_from_resource $term_color2 color2 - # set_from_resource $term_color3 color3 - # set_from_resource $term_color4 color4 - # set_from_resource $term_color5 color5 - # set_from_resource $term_color6 color6 - # set_from_resource $term_color7 color7 - # set_from_resource $term_color8 color8 - # set_from_resource $term_color9 color9 - # set_from_resource $term_color10 color10 - # set_from_resource $term_color11 color11 - # set_from_resource $term_color12 color12 - # set_from_resource $term_color13 color13 - # set_from_resource $term_color14 color14 - # set_from_resource $term_color15 color15 #+end_src ** Theme colors diff --git a/dotfiles/index.org b/dotfiles/index.org index 8bb7b46..c062309 100644 --- a/dotfiles/index.org +++ b/dotfiles/index.org @@ -67,31 +67,13 @@ Others: - [[file:gtk.org][GTK]] - [[file:config.org][Other Config]] -* Ressources -** Dotfiles -- https://github.com/LukeSmithxyz/voidrice -- https://github.com/wincent/wincent -- https://github.com/korolr/dotfiles -- https://github.com/Shougo/shougo-s-github -- https://github.com/addy-dclxvi/almighty-dotfiles - -** Linux Softwares -- [[https://github.com/k4m4/terminals-are-sexy][terminalare.sexy]] -- [[https://www.reddit.com/r/vim/comments/3tluqr/my_list_of_applications_with_vi_keybindings/][the big list of vim like software]] -- https://github.com/jlevy/the-art-of-command-line -- https://github.com/herrbischoff/awesome-command-line-apps -- https://github.com/luongvo209/Awesome-Linux-Software -- https://wiki.archlinux.org/index.php/List_of_applications -- https://ambrevar.xyz/power-apps/ -- https://enchiridion.red/2019/1/18/desktop-apps/ - * Package Manager: yay https://github.com/Jguer/yay ** Installation -#+BEGIN_SRC bash +#+begin_src bash sudo pacman -S yay -#+END_SRC +#+end_src ** CheatSheet | Command | Usage | @@ -110,12 +92,12 @@ To check all installed packages: https://git-scm.com/ ** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S git -#+END_SRC +#+end_src ** Configuration -[[file:dotfiles/git.org][dotfiles/git.org]] +[[file:git.org][Git]] Configuration: - =~/.gitconfig= - =~/.gitignore_global= @@ -138,9 +120,9 @@ This is explained in a further part: [[*Integration with Git][Integration of Pas https://github.com/thestinger/termite ** Termite *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S termite -#+END_SRC +#+end_src *** Configuration [[file:dotfiles/termite.org][termite.org]] @@ -160,68 +142,42 @@ https://github.com/thestinger/termite | =ctrl--= | decrease font size | | =ctrl-== | reset font size to default | -** TODO [#C] Unicode Rxvt +** Unicode Rxvt *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S rxvt-unicode -#+END_SRC +#+end_src *** Configuration Most of Urxvt configuration is done in =~/.Xresources= -* TODO [#B] Shell: Bash +* Shell: Bash and ZSH https://wiki.archlinux.org/index.php/Bash -** Bash Completion -#+BEGIN_SRC bash - yay -S bash-completion -#+END_SRC +** Installation +#+begin_src bash + yay -S bash bash-completion zsh +#+end_src -** TODO [#B] Configuration +** Configuration +[[file:bash.org][Bash]] configuration: - =~/.bashrc= - =~/.bash_profile= - =~/.config/bash/= - =~/.profile= -* TODO [#B] Terminal Multiplexer: Tmux +* Terminal Multiplexer: Tmux https://github.com/tmux/tmux ** Installation -#+BEGIN_SRC bash - yay -S tmux -#+END_SRC - -** Configuration -After configuration is generated. #+begin_src bash - tmux source-file ~/.tmux.conf + yay -S tmux #+end_src -** Session Manager - Tmuxinator -https://github.com/tmuxinator/tmuxinator +** Configuration +[[file:tmux.org][TMUX]] configuration -*** Installation -#+BEGIN_SRC bash - yay -S tmuxinator -#+END_SRC - -*** Special sessions -Sessions are created using =tmuxinator new session_name= and edited using =tmuxinator edit session_name=. - -*** Mux: run terminal and tmux session -=~/bin/mux= - -To open a terminal and run tmux session automatically, run =mux =. -This is used with rofi. - -** TODO [#A] Multiple Tmux configuration -- one with no line for neomutt -- one complete for coding - -** TODO [#B] Configuration: theme -https://github.com/seebi/tmux-colors-solarized - -** TODO [#A] To check +** Ressources - https://github.com/gpakosz/.tmux - https://gist.github.com/MohamedAlaa/2961058 - https://blog.bugsnag.com/tmux-and-vim/ @@ -229,29 +185,29 @@ https://github.com/seebi/tmux-colors-solarized - https://github.com/rothgar/awesome-tmux - https://thoughtbot.com/upcase/tmux -** TODO [#B] Cheatsheet -| Command | Usage | -|---------+-------| -| | | - -* TODO [#C] Fonts -** Installation -#+BEGIN_SRC bash - yay -S ttf-inconsolata nerd-fonts-complete ttf-linux-libertine ttf-emojione -#+END_SRC - -** TODO [#C] Default fonts -SauceCodePro Nerd Font Mono - -Maybe use: -- Monospace Font: Inconsolata -- Serif Font: Libertine -- Sans Font: Linux Biolinum - ** Cheatsheet -| Command | Usage | -|-----------+--------------------------| -| =fc-list= | List all fonts available | +| Command | Usage | +|----------------+-------------------------------| +| =ctrl-spc= | Prefix | +| =c= | New pane | +| =/=, =-= | Split Vertically/Horizontally | +| =s= | Change session | +| =p=, =n= | Previous/Next Pane | +| =ctrl-h,j,k,l= | Move between windows | + +* Fonts +** Installation +#+begin_src bash + yay -S ttf-inconsolata nerd-fonts-complete ttf-linux-libertine ttf-emojione +#+end_src + +** Default fonts +Default font used: +- Monospace Font: =Hack Nerd Font Mono= +- Serif Font: =Hack Nerd Font= +- Sans Font: =Hack Nerd Font= + +List all fonts available: =fc-list= ** Select font #+begin_src bash @@ -263,110 +219,79 @@ Maybe use: https://github.com/neovim/neovim *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S neovim -#+END_SRC +#+end_src *** Configuration -[[file:.vim/readme.org]] - -*** Vim Anywhere with i3 -https://github.com/cknadler/vim-anywhere - -#+BEGIN_SRC bash -yay -S vim-anywhere-git -#+END_SRC - -Then, add the following to the i3 config: =bindsym $mod+t exec vim-anywhere nvim termite= - -*** Matlab Setup -https://github.com/daeyun/vim-matlab/ - -*** Ressources -- https://thoughtbot.com/upcase/dive-into-neovim -- https://github.com/liuchengxu/vim-better-default -- https://github.com/liuchengxu/space-vim +[[file:vim.org][Vim]] configuration ** Emacs https://www.gnu.org/software/emacs/ *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S emacs -#+END_SRC - -*** TODO Emacs Client/Server - I removed the systemd service to just run it with i3 startup -Add a systemd service to automatically run Emacs deamon in the background on startup: -=~/.config/systemd/user/emacs.service= - -Then run: -#+BEGIN_SRC bash - systemctl enable --user emacs - systemctl start --user emacs -#+END_SRC - -In order to open the emacs client: =emacsclient -create-frame --alternate-editor=""= - -Then, add a shortcut to i3 config to open an emacsclient. +#+end_src *** Configuration -[[file:~/.spacemacs.d/spacemacs.org][file:~/.spacemacs.d/spacemacs.org]] +[[./doom.org][Doom Emacs]] configuration *** SpellCheck with Aspell -#+BEGIN_SRC bash +#+begin_src bash yay -S aspell aspell-en aspell-fr -#+END_SRC +#+end_src * SSH setup ** Generating a new SSH key -#+BEGIN_SRC bash -ssh-keygen -t rsa -b 4096 -C "dehaeze.thomas@gmail.com" -#+END_SRC +#+begin_src bash + ssh-keygen -t rsa -b 4096 -C "dehaeze.thomas@gmail.com" +#+end_src ** Start the ssh-agent in the background -#+BEGIN_SRC bash -eval "$(ssh-agent -s)" -#+END_SRC +#+begin_src bash + eval "$(ssh-agent -s)" +#+end_src ** Add the SSH key to the ssh-agent -#+BEGIN_SRC bash -ssh-add ~/.ssh/id_rsa -#+END_SRC +#+begin_src bash + ssh-add ~/.ssh/id_rsa +#+end_src * GnuPG https://gnupg.org/ ** Install the gnupg package: -#+BEGIN_SRC bash -yay -S gnupg -#+END_SRC +#+begin_src bash + yay -S gnupg +#+end_src ** Create a key pair -#+BEGIN_SRC bash -gpg --full-gen-key -#+END_SRC +#+begin_src bash + gpg --full-gen-key +#+end_src ** Configure the gpg-agent to cache the passphrase Edit the following file =~/.gnupg/gpg-agent.conf= -#+BEGIN_SRC -max-cache-ttl 60480000 -default-cache-ttl 60480000 -#+END_SRC +#+begin_src conf + max-cache-ttl 60480000 + default-cache-ttl 60480000 +#+end_src * Launcher - Rofi https://github.com/DaveDavenport/rofi ** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S rofi -#+END_SRC +#+end_src ** Setup rofi as a dmenu replacement Setup rofi as a dmenu replacement in =~/.i3/config=: -#+BEGIN_SRC +#+begin_src bindsym $mod+d exec --no-startup-id rofi -show run -#+END_SRC +#+end_src ** Run sudo commands with rofi https://github.com/DaveDavenport/rofi/issues/584#issuecomment-384555551 @@ -374,12 +299,12 @@ https://github.com/DaveDavenport/rofi/issues/584#issuecomment-384555551 Use ~sudo -A~, that will open a rofi prompt to ask for the password. For that to work, we need to add the following code to =~/.profile=: -#+BEGIN_SRC bash +#+begin_src bash export SUDO_ASKPASS=~/bin/askpass-rofi -#+END_SRC +#+end_src The =askpass= script is: -#+BEGIN_SRC bash +#+begin_src bash #!/bin/sh # Take password prompt from STDIN, print password to STDOUT @@ -389,36 +314,36 @@ The =askpass= script is: -password \ -no-fixed-num-lines \ -p "$(printf "$1" | sed s/://)" -#+END_SRC +#+end_src * Password Manager: Pass https://www.passwordstore.org/ ** Install the pass package -#+BEGIN_SRC bash +#+begin_src bash yay -S pass -#+END_SRC +#+end_src ** Initialize the password store as a git repository -#+BEGIN_SRC bash +#+begin_src bash pass git init pass git remote add origin https://github.com/tdehaeze/pass.git -#+END_SRC +#+end_src ** Gui Manager https://github.com/IJHack/qtpass -#+BEGIN_SRC bash +#+begin_src bash yay -S qtpass -#+END_SRC +#+end_src ** Integration with Rofi https://github.com/carnager/rofi-pass *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S rofi-pass -#+END_SRC +#+end_src Then we can add a shortcut to =rofi-pass= on i3 config. @@ -435,25 +360,25 @@ This is explained [[*Integration with Pass: the password manager][here]]. ** Integration with Git https://github.com/languitar/pass-git-helper *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S pass-git-helper -#+END_SRC +#+end_src *** Configuration First, add the relation between repository addresses and entries in =pass=. This is done in the following config file =.config/pass-git-helper/git-pass-mapping.ini=: -#+BEGIN_SRC +#+begin_src [github.com*] target=github.com/tdehaeze -#+END_SRC +#+end_src Then, add the credential helper on the git configuration file =~/.gitconfig= and add the default username for the repositories adresses. -#+BEGIN_SRC +#+begin_src [credential] helper = !pass-git-helper $@ [credential "https://github.com"] username = tdehaeze -#+END_SRC +#+end_src ** Integration with other programs Integrate pass in other programs is usually very easy, here are few examples: @@ -466,29 +391,22 @@ Integrate pass in other programs is usually very easy, here are few examples: https://github.com/jarun/Buku ** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S buku -#+END_SRC +#+end_src ** Integration with Rofi https://github.com/carnager/buku_run *** Installation -#+BEGIN_SRC bash +#+begin_src bash wget https://raw.githubusercontent.com/carnager/buku_run/master/buku_run -o ~/bin/buku_run chmod +x ~/bin/buku_run -#+END_SRC +#+end_src *** Configuration The configuration file is here: =~/.config/buku_run/config= -*** Key binding with i3 -Custom key binding in i3 config file =~/.i3/config=: - -#+BEGIN_SRC -bindsym $mod+Shift+f exec --no-startup-id buku_run -#+END_SRC - ** Integration with qutebrowser [[*Integration with Buku][Integration with Buku]] @@ -496,19 +414,19 @@ bindsym $mod+Shift+f exec --no-startup-id buku_run The database is stored in =~/.local/share/buku/bookmarks.db=. We initialize a git repository in this folder: -#+BEGIN_SRC bash +#+begin_src bash cd ~/.local/share/buku/bookmarks.db git init -#+END_SRC +#+end_src Then we create a script that will automatically add =bookmarks.db= and push to some repository: =~/scripts/buku_git_push.sh=. To automatically run the script every day, a systemd unit is used: =~/.config/systemd/user/bukugit.timer= and =~/.config/systemd/user/bukugit.service= -#+BEGIN_SRC bash +#+begin_src bash systemctl start --user bukugit.timer systemctl enable --user bukugit.timer -#+END_SRC +#+end_src ** Import Bookmarks from Firefox and Chrome From Firefox, export the bookmarks as html file. @@ -522,7 +440,7 @@ Run: bukuserver run --host 127.0.0.1 --port 5001 #+end_src -And then browse to =127.0.0.1:5001=. +And then browse to http://127.0.0.1:5001. ** Cheatsheet | Command | Usage | @@ -533,23 +451,23 @@ And then browse to =127.0.0.1:5001=. | =buku -d id= | Delete bookmark | | =buku -s <>= | Search bookmarks | -** TODO Alternatives +** Alternatives - https://github.com/RadhiFadlillah/shiori - https://karl-voit.at/2014/08/10/bookmarks-with-orgmode/ -* TODO Browser: qutebrowser +* Browser: qutebrowser https://github.com/qutebrowser/qutebrowser ** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S qutebrowser -#+END_SRC +#+end_src ** View Pdf inside qutebrowser with pdfjs *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S pdfjs -#+END_SRC +#+end_src *** Usage When opening a pdf file on qutebrowser, you'll be ask for options: @@ -560,53 +478,43 @@ When opening a pdf file on qutebrowser, you'll be ask for options: | =Ctrl-p= | Open with pdf.js | | =Alt-y= | Yank the url | -** TODO Make it default browser ** Integration with Pass: the password manager Add the key-binding on =~/.config/qutebrowser/config.py= -#+BEGIN_SRC +#+begin_src config.bind(',p', 'spawn --userscript password_fill') -#+END_SRC +#+end_src The =password_fill= script can be found on [[https://github.com/qutebrowser/qutebrowser/blob/master/misc/userscripts/password_fill][github.com]]. It is configured using the =~/.config/qutebrowser/password_fill_rc= file. -** TODO Integration with Buku +** Integration with Buku Custom key binding in =~/.config/qutebrowser/config.py= -#+BEGIN_SRC +#+begin_src # Add current page to Buku (Bookmark Manager) config.bind('B', 'spawn buku -a {url}') -#+END_SRC +#+end_src -*** TODO Add an option to specify title, modify url? add tags? - -** TODO Save Bookmarks to Emacs Org Mode -https://www.reddit.com/r/emacs/comments/9ze1ln/capture_orgmode_bookmarks_from_qutebrowser_with/ -** TODO Cast youtube to chromecast ** Spell Checking #+begin_src bash /usr/share/qutebrowser/scripts/dictcli.py install fr-FR /usr/share/qutebrowser/scripts/dictcli.py install en-US #+end_src -** TODO Adblocker -https://github.com/qutebrowser/qutebrowser/issues/29 -https://github.com/StevenBlack/hosts -** TODO Ressources -- [[https://github.com/qutebrowser/qutebrowser/tree/master/misc/userscripts][Userscript]] - * Monitors -https://github.com/Ventto/mons -https://wiki.archlinux.org/index.php/Xrandr -gui: https://christian.amsuess.com/tools/arandr/ +#+begin_src bash + yay -S xorg-xrandr arandr +#+end_src -** TODO cscreen script +[[https://wiki.archlinux.org/index.php/Xrandr][Xrandr]] is used in shell scripts ([[https://github.com/Ventto/mons][mons]] could be used as a layer on top of Xrandr). +[[https://christian.amsuess.com/tools/arandr/][Arandr]] is a GUI application to manage monitors. * Sound Setup #+begin_src bash yay -S pulseaudio pavucontrol #+end_src + * Music Setup ** Sound Server - Pulse Audio https://wiki.archlinux.org/index.php/PulseAudio @@ -626,15 +534,15 @@ https://wiki.archlinux.org/index.php/Music_Player_Daemon => Now Mopidy is used instead of MPD *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S mpd -#+END_SRC +#+end_src *** Automatic Startup -#+BEGIN_SRC bash +#+begin_src bash systemctl start --user mpd.service systemctl enable --user mpd.service -#+END_SRC +#+end_src *** Command line interface to MPD - MPC https://github.com/MusicPlayerDaemon/mpc @@ -646,7 +554,7 @@ To install mpc: =yay -S mpc=. | =mpc update= | Update the library | | =mpc rescan= | Rescan the library | -** TODO [#A] Audio Server with Spotify - Mopidy +** Audio Server with Spotify - Mopidy https://github.com/mopidy/mopidy https://medium.com/@theos.space/using-mopidy-with-spotify-and-ncmpcpp-44352f4a2ce8 @@ -660,16 +568,14 @@ To update local files: #+end_src If mopidy is used, MPD should be disabled. (=systemctl disable --user mpd.service=) -Also, when using mopidy, when pausing a song, playing it again does not work. -=> *is there a fix for that?* ** MPD Client - ncmpcpp https://wiki.archlinux.org/index.php/Ncmpcpp *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S ncmpcpp -#+END_SRC +#+end_src *** Config The main config is located here: =~/.ncmpcpp/config=. @@ -684,9 +590,9 @@ https://pkgbuild.com/~jelle/ncmpcpp/ https://github.com/beetbox/beets *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S beets -#+END_SRC +#+end_src *** Configuration Configuration folder: =~/.config/beets/= @@ -696,33 +602,21 @@ Configuration folder: =~/.config/beets/= |------------------------+-------------------------------| | =beet import = | Import folder to Music folder | -* TODO [#C] Movies +* Movies ** Media Player - MPV *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S mpv -#+END_SRC +#+end_src *** Key Bindings The configuration is set in =/.config/mpv/input.conf=. -*** TODO CheatSheet +*** CheatSheet | Command | Usage | |---------+-------| -** Chromecast with castnow - -*** Installation -#+begin_src bash - yay -Ss castnow-git -#+end_src - -The configuration is =~/.castnowrc=. - -*** TODO Configuration with Tmux/i3/polybar -Make nice shortcuts or polybar element for that - -** TODO Chromecast with CATT +** Chromecast with CATT https://github.com/skorokithakis/catt *** Installation @@ -757,61 +651,41 @@ https://github.com/skorokithakis/catt | volumedown | Turn down volume by a DELTA increment | | volumeup | Turn up volume by a DELTA increment | -** TODO Popcorn Time or similar -** TODO [#C] Movie Collection Manager - Filebot -https://github.com/filebot/filebot -*This is paid software, I should uninstall it and find alternative* -*** Installation -#+BEGIN_SRC bash -yay -S bilebot -#+END_SRC - -When runing =filebot=, if you obtain the following error: -=/usr/bin/filebot: line 22: /usr/lib/jvm/java-8-openjdk/bin/java: No such file or directory=. -You can simlink the java binary: -#+BEGIN_SRC bash -sudo ln -s /usr/lib/jvm/java-8-openjdk/jre/bin/java /usr/lib/jvm/java-8-openjdk/bin/java -#+END_SRC - -*** Usage -*** Configuration -Configuration folder: =~/.config/filebot/= - -*** Documentation -https://www.filebot.net/cli.html - -*** TODO Alternative -https://github.com/Sonarr/Sonarr -https://github.com/Radarr/Radarr -https://github.com/tinyMediaManager/tinyMediaManager - -** Subtitle Manager -*** subdl -** TODO Youtube -https://github.com/mps-youtube/mps-youtube -* TODO Contact Manager -** Khard +* Contact Manager +** Google Conctacts: Khard https://github.com/scheibler/khard +#+begin_src bash + yay -Ss khard +#+end_src + This is the command line interface for contact management. -** Contact synchronization +Contact synchronization: Vdirsyncer is used for contact synchronization with Google. +To search with Khard: =khard = + ** Mu +#+begin_src bash + yay -Ss mu +#+end_src + This looks for contacts in all indexed emails. =mu cfind = * Connect with Phone -kdeconnect +#+begin_src bash +yay -S kdeconnect +#+end_src -* TODO Chat Application -** Weechat + +* Chat Application - Weechat https://weechat.org/files/doc/stable/weechat_user.en.html https://wiki.archlinux.org/index.php/WeeChat https://gist.github.com/pascalpoitras/8406501 -*** Installation +** Installation #+begin_src bash yay -S weechat #+end_src @@ -821,12 +695,12 @@ Then we install some dependencies yay -S tcl lua ruby #+end_src -*** Enable mouse support +** Enable mouse support #+begin_src text /mouse enable #+end_src -*** Scripts +** Scripts | highmon.pl | | | colorize_nicks.py | | | go.py | | @@ -835,7 +709,7 @@ Then we install some dependencies | colorize_lines.pl | | | multiline.pl | | -*** Theme +** Theme https://www.bfoliver.com/technology/2017/07/15/weechat/ https://alexjj.com/blog/2016/9/setting-up-weechat/ @@ -862,13 +736,13 @@ https://alexjj.com/blog/2016/9/setting-up-weechat/ /set weechat.bar.title.color_bg 31 #Or white if 31 does nothing #+end_src -*** TODO Configuration +** Configuration https://hugo.md/post/the-perfect-weechat-setup-2/ https://robots.thoughtbot.com/weechat-for-slacks-irc-gateway Use the command =/fset= -*** Multi-line messages +** Multi-line messages Solution is provided here: https://github.com/wee-slack/wee-slack/issues/118 It uses [[https://weechat.org/scripts/source/multiline.pl.html/][multiline.pl]] script. Then alt-enter is bound to insert a new line: @@ -882,7 +756,7 @@ And enter is bound to =magic_enter= that directly sends the message if its one l /key bind ctrl-M /input magic_enter #+end_src -*** Send message using =$EDITOR= +** Send message using =$EDITOR= https://github.com/keith/edit-weechat #+begin_src bash mkdir -p ~/.weechat/python/autoload @@ -892,7 +766,7 @@ https://github.com/keith/edit-weechat Then, on weechat, type =/edit=. -*** CheatSheet +** CheatSheet | Command | Usage | |-----------+------------------| | =Ctlr-N= | Next channel | @@ -900,10 +774,10 @@ Then, on weechat, type =/edit=. | =Esc-n= | Toggle nicklist | | =alt-ent= | New line | -*** Slack Integration +** Slack Integration https://github.com/wee-slack/wee-slack -**** Installation +*** Installation #+begin_src bash yay -S python2-websocket-client #+end_src @@ -915,7 +789,7 @@ https://github.com/wee-slack/wee-slack ln -s ../wee_slack.py autoload #+end_src -**** Add your Slack API key(s) +*** Add your Slack API key(s) Log in to Slack: #+begin_src conf /slack register @@ -938,36 +812,36 @@ If you don't want to store your API token in plaintext you can use the secure fe /set plugins.var.python.slack.slack_api_token ${sec.data.slack_token} #+end_src -*** Aspell +** Aspell https://blog.qoba.lt/using_aspell_in_weechat.html -*** Notifications +** Notifications https://github.com/s3rvac/weechat-notify-send -*** Deamon and Client +** Deamon and Client Weechat is started with the systemd service =weechat=. It runs weechat inside tmux. -** TODO Using Emacs * Redshift http://jonls.dk/redshift/ -** Installation -#+BEGIN_SRC bash -yay -S redshift -#+END_SRC +#+begin_src bash + yay -S redshift +#+end_src -* TODO [#A] Mail Setup +* Mail Setup +[[file:mail.org][Link]] to the mail setup. + ** Synchronize Mailboxes - Mbsync http://isync.sourceforge.net/ https://wiki.archlinux.org/index.php/Isync *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S isync -#+END_SRC +#+end_src -*** TODO Configuration +*** Configuration =~/.mbsyncrc= *** Automation using systemd @@ -976,42 +850,40 @@ https://wiki.archlinux.org/index.php/Isync - =~/.config/systemd/user/checkmail.service= - =~/.config/systemd/user/checkmail.timer= -#+BEGIN_SRC bash +#+begin_src bash systemctl --user enable checkmail.timer systemctl --user start checkmail.timer -#+END_SRC +#+end_src **** Synchronize all the mailboxes - =~/.config/systemd/user/syncmail.service= - =~/.config/systemd/user/syncmail.timer= -#+BEGIN_SRC bash +#+begin_src bash systemctl --user enable syncmail.timer systemctl --user start syncmail.timer -#+END_SRC - -**** Alternative -https://github.com/rlue/little_red_flag +#+end_src *** Documentation https://bostonenginerd.com/posts/notmuch-of-a-mail-setup-part-1-mbsync-msmtp-and-systemd/ https://bostonenginerd.com/posts/notmuch-of-a-mail-setup-part-2-notmuch-and-emacs/ + ** Send Mails - Msmtp https://marlam.de/msmtp/ *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S msmtp -#+END_SRC +#+end_src ** Mail Indexer - Notmuch https://notmuchmail.org/ https://wiki.archlinux.org/index.php/Notmuch *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S notmuch -#+END_SRC +#+end_src *** Configuration Configuration file: =~/.notmuch-config= @@ -1022,85 +894,49 @@ Configuration file: =~/.notmuch-config= | =notmuch setup= | Initial Setup | | =notmuch new= | Incorporate new email into notmuch database | -** TODO [#B] Mail Index, Search and Tagging - Mu +** Mail Index, Search and Tagging - Mu https://github.com/djcb/mu -** TODO [#A] Mail Client - NeoMutt +** Mail Client - NeoMutt https://github.com/neomutt/neomutt *** Installation -#+BEGIN_SRC bash -yay -S neomutt -#+END_SRC +#+begin_src bash + yay -S neomutt +#+end_src -*** TODO Vim Bindings -Unding toutes les touches (https://github.com/iagox86/mutt/blob/master/keybindings.conf) et rebind tout pour faire un truc coherent et documenté -Rajouter les keybindings de vim https://github.com/neomutt/neomutt/issues/56#issuecomment-250780838 - -*** TODO Mailcap configuration *** Display html mails -#+BEGIN_SRC bash -yay -S w3m -#+END_SRC +#+begin_src bash + yay -S w3m +#+end_src *** Open PDF from mail =~/scripts/openfile.sh= -*** TODO [#B] Integrate with contact manager -*** TODO Integration with org-mode -https://www.donarmstrong.com/posts/org_mode_mutt_capture/ -https://upsilon.cc/~zack/blog/posts/2010/02/integrating_Mutt_with_Org-mode/ -*** TODO Send HTML mails using Markdown -https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt/424162 -https://github.com/Roguelazer/muttdown - -*** Attachments -**** Attach multiple files at once -First, tag the files you want to send using =t=, then =;= to apply the action on all tagged files and finally == to add them all -**** TODO Add attachment using GUI file manager -**** Cheatsheet -| Command | Usage | -|---------+---------------| -| == | Open the file | - *** Open Url from mail -#+BEGIN_SRC bash -yay -S urlview -#+END_SRC - -*** TODO View emails while composing -https://wiki.archlinux.org/index.php/Mutt#Display_another_email_while_composing - -*** TODO Searching mails with notmuch -https://github.com/tsto/notmuchfs - -*** TODO Cheatsheet -| Command | Usage | -|---------+-------| -| | | - -*** TODO Integration with calendar application -http://jasonwryan.com/blog/2014/04/05/calendar/ -https://gist.github.com/guiniol/5109c5bd953af950e0530b720507d704 - -=~/scripts/printics.sh= +#+begin_src bash + yay -S urlview +#+end_src *** Ressources - http://therandymon.com/woodnotes/mutt/using-mutt.html - https://ankursinha.in/2017/12/16/transitioning-to-neomutt-and-friends-for-e-mail.html - https://github.com/LukeSmithxyz/mutt-wizard -** TODO [#C] Mu4e -** TODO [#C] Notification system +** Notification system A script (=~/scripts/checkmail.sh=) is used to retreive new mails and use =notify=send= is there are new received mails. -* TODO [#A] File Manager -** TODO [#B] Ranger +* File Manager +Configuration files: +- GUI: [[file:pcmanfm.org][Pcmanfm]] +- Terminal based: [[file:ranger.org][Ranger]] + +** Ranger https://github.com/ranger/ranger *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S ranger -#+END_SRC +#+end_src *** Configuration The configuration file is =~/.config/ranger/rc.conf=. @@ -1112,38 +948,18 @@ It seems that Ranger is not working well with Termite. The screen is not refresh It works better with Urxvt. -*** TODO [#B] Cheatsheet -| Command | Usage | -|---------+-------------------------| -| =X= | Extract archive | -| =Z= | Compress file or folder | - -** TODO [#A] nnn -https://github.com/jarun/nnn -https://www.youtube.com/watch?v=U2n5aGqou9E - -*** Installation -#+BEGIN_SRC bash -yay -S nnn -#+END_SRC - -** TODO [#C] GUI File Manager: pcmanfm +** GUI File Manager: pcmanfm https://wiki.archlinux.org/index.php/PCManFM -* TODO [#B] Image viewer -** TODO Write a script to open any type of image using the corresponding program -| Filetype | pdf | svg | -|----------+---------+---------| -| Program | zathura | inkview | - +* Image viewer ** sxiv https://github.com/muennich/sxiv https://www.youtube.com/watch?v=GYW9i_u5PYs *** Installation -#+BEGIN_SRC bash -yay -S sxiv -#+END_SRC +#+begin_src bash + yay -S sxiv +#+end_src *** Open Gif #+begin_src bash @@ -1160,100 +976,83 @@ yay -S sxiv | =\vert=, =_= | Flip the image | | =n=, =p= | Next, Previous image | -* TODO HotKeyManager - SXHKD -* TODO [#B] Windows Manager - i3 -** TODO Installation -#+BEGIN_SRC bash +* HotKeyManager - SXHKD +#+begin_src bash + yay -S sxhkd +#+end_src + +Configuration file: [[file:sxhkd.org][SXHKD]]. + +* Windows Manager - i3 +[[file:i3.org][Link]] to the documentation + +** Installation +#+begin_src bash yay -S i3-gaps -#+END_SRC +#+end_src -** TODO Packages to install/understand -artwork-i3 -i3-wallpapers - -** TODO Configuration +** Configuration =~/.i3/config= -** TODO [#C] Specific config per workspace -https://github.com/i3/i3/blob/next/contrib/per-workspace-layout.pl -For instance, default to tabbed windows for workspace dealing with matlab figures. -*** Figures / Matlab - -** TODO [#B] CheatSheet -| Command | Usage | -|---------+-------| - -* TODO [#B] Custom bar - Polybar +* Polybar https://polybar.github.io/ +[[file:polybar.org][Link]] to the documentation. + ** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S polybar -#+END_SRC +#+end_src -** TODO [#C] Configuration -=~/.config/polybar/config= +* Compositor - Picom +https://wiki.archlinux.org/index.php/Picom -Polybar is launched automatically from i3 config. - -** TODO [#B] Add custom modules -- [ ] show passwords -- [ ] show bibliography -- [ ] show bookmarks -- [ ] switch theme (dark/light) -- [ ] suspend, restart, hibernate, lock - -** TODO [#C] Add Conky to polybar -* TODO [#C] Compositor - Compton -https://wiki.archlinux.org/index.php/Compton -https://github.com/chjj/compton +[[file:compositor.org][Link]] to the documentation. ** Installation #+begin_src bash - yay -S compton + yay -S picom #+end_src -** TODO [#B] Configuration -=~/.config/compton.conf= - -** TODO GUI Configuration -To install: -#+begin_src bash - yay -S compton-conf -#+end_src - -Then run =compton-conf= +** Configuration +=~/.config/picom/picom.conf= ** Automatic run as daemon -Compton is run from i3 config in the background (=-b= option) -#+BEGIN_SRC bash - exec --no-startup-id compton -b -#+END_SRC +Compton is run from =.xprofile= config in the background: +#+begin_src bash + picom --daemon +#+end_src -* TODO [#C] Notification Manager - Dunst +* Notification Manager - Dunst https://github.com/dunst-project/dunst https://wiki.archlinux.org/index.php/Dunst ** Installation -#+BEGIN_SRC bash -yay -S dunst -#+END_SRC +#+begin_src bash + yay -S dunst dunstify +#+end_src ** Configuration =~/.config/dunst/dunstrc= -** TODO [#C] Special notifications -- [ ] Mails -- [ ] New messages on slack +** Usage +#+begin_src bash + dunstify --replace=16549 "AppName" "Message" +#+end_src + +The number =--replace= can be used with an ID to merge notifications from the +same application for instance. -** TODO [#C] How to merge similar notifications like new mails? * Office Suite ** WPS Office #+begin_src bash yay -S wps-office wps-office-extension-french-dictionary ttf-wps-fonts #+end_src -* SpreadSheet - SC-IM +Alternatives are: +- open-office + +** Minimap SpreadSheet - SC-IM https://github.com/andmarti1424/sc-im https://www.youtube.com/watch?v=K_8_gazN7h0 @@ -1272,14 +1071,14 @@ Gtk2 themes are managed using the file =~/.gtkrc-2.0= while Gtk3 themes are mana To customize the look of the system using GUI application, run ~lxappearance~. Installation: -#+BEGIN_SRC bash +#+begin_src bash yay -S lxappearance -#+END_SRC +#+end_src *** Icons and themes -#+BEGIN_SRC bash +#+begin_src bash yay -S zukitwo-themes faenza-icon-theme -#+END_SRC +#+end_src #+begin_src bash yay -S arc-gtk-theme @@ -1291,8 +1090,8 @@ Run ~qt5ct~ to manage QT Themes. ** XFT Themes Some configuration are located in =~/.Xresources=. -* TODO [#A] Advanced config -** TODO [#C] Printer +* Advanced config +** Printer https://wiki.archlinux.org/index.php/CUPS Web based administration: http://localhost:631/ @@ -1325,128 +1124,106 @@ Stats about the printer lpstat -p printer_name #+end_src - -*** TODO CheatSheet -| Command | Usage | -|---------+-------| - -** TODO [#C] Kernel Management +** Kernel Management https://wiki.manjaro.org/index.php/Manjaro_Kernels -*** TODO Cheatsheet | Command | Usage | |-------------------+--------------------------------| | =mhwd-kernel -li= | Determine which kernel is used | | | Change current kernel | -** TODO [#C] Power Consumption +** Power Management Tool: Powertop +https://wiki.archlinux.org/index.php/Powertop https://wiki.manjaro.org/index.php?title=Power_Savings -** TODO [#C] Power Management Tool: TLP and Powertop -https://linrunner.de/en/tlp/docs/tlp-linux-advanced-power-management.html#commands -https://wiki.archlinux.org/index.php/Powertop - -Alternative: pm-utils - -** TODO [#A] Lid open/close -Should automatic show lock screen - -=/etc/systemd/logind.conf= - -** Automatically Mount devices - Udiskie -- udiskie - Mount and unmount disks (https://github.com/coldfix/udiskie) +=PowerTop= a diagnostic tool used to identify and report issues with power consumption and management. #+begin_src bash - yay -S udiskie + yay -S powertop #+end_src -And then, add that to =.xinitrc= -** TODO [#C] Format disks -https://gparted.org/ - -=sudo gparted= to format disks () - -Using command line: -- https://www.digitalocean.com/community/tutorials/how-to-partition-and-format-storage-devices-in-linux - -** TODO [#B] Bluetooth -Bluetooth: Gui: https://github.com/blueman-project/blueman - -** TODO [#A] Temperature and Fan control -#+BEGIN_SRC bash - # Enable Automated Power Regulation +=TLP= is used for Power Management. +#+begin_src bash yay -S tlp sudo systemctl enable tlp sudo systemctl start tlp sudo systemctl enable tlp-sleep sudo systemctl start tlp-sleep sudo tlp start +#+end_src - # Enable thermald (overheat shutoff) +=Thermald= is used to automatically handle CPU frequency scaling according to system load. +#+begin_src bash yay -S thermald sudo systemctl enable thermald sudo systemctl start thermald -#+END_SRC - -** TODO [#B] Lock Screen -https://github.com/pavanjadhaw/betterlockscreen - -*** Installation -#+begin_src bash - yay -S betterlockscreen #+end_src -* TODO [#C] LaTeX +** Lid open/close +https://wiki.archlinux.org/index.php/Power_management + +Should automatic show lock screen + +=/etc/systemd/logind.conf= + +** Automatically Mount devices - Udiskie +udiskie - Mount and unmount disks (https://github.com/coldfix/udiskie) + +#+begin_src bash + yay -S udiskie +#+end_src + +Automatically run =udiskie= on startup. + +** Format disks +https://gparted.org/ + +=sudo gparted= to format disks + +Using command line: +- https://www.digitalocean.com/community/tutorials/how-to-partition-and-format-storage-devices-in-linux + +** Bluetooth +Bluetooth manager: https://github.com/blueman-project/blueman +=blueman-manager= + +* LaTeX ** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S texlive-most -#+END_SRC +#+end_src Biber support for the bibliography: -#+BEGIN_SRC bash +#+begin_src bash yay -S biber -#+END_SRC +#+end_src Support for source code using minted: -#+BEGIN_SRC bash +#+begin_src bash yay -S minted -#+END_SRC +#+end_src ** Personnal classes/packages Every custom class or packages can be put under =~/texmf/tex/latex/local/= folder. In order for LaTeX to be aware of new packages/classes, run =sudo texhash= each time a new custom package is added. -** TODO [#C] From screenshot to latex math formula +** From screenshot to latex math formula https://mathpix.com/ *** Installation -#+BEGIN_SRC bash -yay -S mathpix-snipping-tool -#+END_SRC - -*** Usage -First, you have to run =mathpix-snipping-tool=. That will add something in the tray. - -Then, use =m= and then select a part of the screen to convert that area to latex formula. - -*** TODO [#C] Think of a better way to run that program. Maybe disable the tray icon and add some polybar script that automatically run the program, and ask for selection of the screen. - -** TODO [#B] Custom script to select latex symbol -https://github.com/superluserdo/Latex-picker -Maybe use that script for other things? - -** Awesome LaTeX -[[file:awesome/latex.org][file:~/.config/dotfiles/awesome/latex.org]] +#+begin_src bash + yay -S mathpix-snipping-tool +#+end_src * Mathematical Software ** Insect https://github.com/sharkdp/insect *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S insect -#+END_SRC +#+end_src *** Usage | Command | Usage | @@ -1457,9 +1234,9 @@ yay -S insect https://wiki.archlinux.org/index.php/MATLAB#Installation *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S matlab -#+END_SRC +#+end_src If there is a problem when opening a Simulink file, check the solution [[https://fr.mathworks.com/matlabcentral/answers/361053-can-t-reload-usr-local-matlab-r2017b-bin-glnxa64-libmwdastudio-so][here]]. @@ -1468,9 +1245,9 @@ http://www.sagemath.org/ https://wiki.archlinux.org/index.php/SageMath *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S sagemath -#+END_SRC +#+end_src *** Usage Run =sage -n jupyter= to run jupyter notebooks @@ -1480,59 +1257,15 @@ http://doc.sagemath.org/html/en/reference/plotting/sage/plot/plot.html#sage.plot http://doc.sagemath.org/html/en/reference/calculus/sage/symbolic/expression.html http://doc.sagemath.org/html/en/reference/calculus/sage/symbolic/assumptions.html -* TODO [#A] Cloud Backup / Sync - Rclone -https://github.com/ncw/rclone -https://rclone.org/docs/ -gui: https://martins.ninja/RcloneBrowser/ - -Rclone is used to manage the online drives like Google Drive and Dropbox. - -** Installation -#+BEGIN_SRC bash -yay -S rclone -#+END_SRC - -** Cheatsheet -| Command | Usage | -|-------------------------------------+------------------------------------------------------------| -| =rclone config= | Configuration | -| =rclone listremotes= | List configured remotes | -| =rclone about= | Informations about the remote | -| =rclone copy= | Copy files from source to dest | -| =rclone sync= | Make source and dest identical, modifying destination only | -| =rclone check= | Check if the files in the source and destination match | -| =rclone ls= | List all the objects in the path | -| =rclone size= | Return the total size and number of objects in remote:path | -| =rclone cleanup= | Clean up the remote if possible | - -** Usefull commands -| Command | Usage | -|---------------------------------------------------------+-----------------------------------------------| -| =rclone sync ~/gdrive/ gdrive:/ -P= | Make Google Drive files to same as local ones | -| =rclone copy gdrive:/directory/ ~/gdrive/directory/ -P= | Copy directory from Google Drive to local | -| =rclone lsf gdrive:/ --max-depth 1= | List files and directory | - -*** Progress bar for long synchronizations -Use =--progress --stats-one-line=. - -* TODO Download Manager -** TODO [#B] Torrent - Transmission -https://www.youtube.com/watch?v=fpYbJCqpPS4&list=WL&index=14&t=0s -** TODO CLI Download Manager - Aria2 -*** Installation -#+BEGIN_SRC bash -yay -S aria2 -#+END_SRC -*** Usage - -** TODO Torrent Client - deluge +* Download Manager +** Torrent Client - deluge https://github.com/deluge-torrent/deluge https://wiki.archlinux.org/index.php/Deluge *** Installation -#+BEGIN_SRC bash -yay -S deluge -#+END_SRC +#+begin_src bash + yay -S deluge +#+end_src *** Configuration =~/.config/deluge/= @@ -1543,16 +1276,11 @@ https://whatbox.ca/wiki/deluge_console_documentation Start the daemon using =deluge -d=. Then run the CLI client using =deluge-console=. -*** GUI Client -=deluge= - -** TODO CLI Torrent Client - btpd -https://github.com/btpd/btpd - -** TODO Youtube-dl +** Youtube-dl #+begin_src bash yay -S youtube-dl #+end_src + *** Download best audio #+begin_src bash youtube-dl -f bestaudio url @@ -1563,45 +1291,46 @@ yay -S youtube-dl youtube-dl -f best url #+end_src -*** Download playlist - -* TODO [#A] Default Applications +* Default Applications https://wiki.archlinux.org/index.php/Default_applications https://www.guyrutenberg.com/2018/01/20/set-default-application-using-xdg-mime/ ** Mailcap file -** TODO [#A] XDG-OPEN +** XDG-OPEN =~/.config/mimeapps.list= -** TODO Make QuteBrowser the default browser -* TODO Desktop files +* Desktop files +[[file:applications.org][Desktop Applications]] + =~/.local/share/applications/= -* TODO Bibliography Management +* Bibliography Management - https://github.com/JabRef/jabref - https://github.com/t-wissmann/rofi-bibbrowser -** TODO Biblatex -http://www.gerd-neugebauer.de/software/TeX/BibTool/en/ -** Papis -https://github.com/papis/papis +I am using a plain bibtex file with =org-ref= ([[https://github.com/jkitchin/org-ref][link]]). -*** Installation -#+BEGIN_SRC bash -sudo pip3 install papis -#+END_SRC +** Alternatives: +GUI: +- Zotero +- Mendeley + +Command line based: +- [[https://github.com/papis/papis][Papis]] + +* Calendar +[[file:calendar.org][Link]] to configuration -* TODO Calendar ** Vdirsyncer - Sync calendars https://github.com/pimutils/vdirsyncer *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S vdirsyncer -#+END_SRC +#+end_src -#+BEGIN_SRC bash +#+begin_src bash sudo pip install requests-oauthlib -#+END_SRC +#+end_src *** Cheatsheet | Command | Usage | @@ -1610,126 +1339,85 @@ https://github.com/pimutils/vdirsyncer *** Automation - Systemd First, run -#+BEGIN_SRC bash +#+begin_src bash vdirsyncer discover google_calendar -#+END_SRC +#+end_src -#+BEGIN_SRC bash +#+begin_src bash systemctl --user enable vdirsyncer.timer systemctl --user start vdirsyncer.timer -#+END_SRC +#+end_src To check the status of the service: -#+BEGIN_SRC bash +#+begin_src bash systemctl --user status vdirsyncer.service -#+END_SRC +#+end_src -** TODO Calendar Client - Khal +** Calendar Client - Khal https://github.com/pimutils/khal *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S khal -#+END_SRC +#+end_src -*** TODO Cheatsheet -| Command | Usage | -|---------+-------| +*** Import ICS files +#+begin_src bash + khal import even.ics +#+end_src -* TODO Presentation software -** Multi-monitor pdf presentation - pdfpc -https://github.com/pdfpc/pdfpc - -pdfpc is a great tool for showing pdf presentations. It support: -- screen splitting -- support for videos in pdf presentations -- support for notes -- support for annotations - -*** Installation -#+BEGIN_SRC bash - yay -S pdfpc -#+END_SRC - -*** Video support -#+BEGIN_SRC bash - yay -S gst-plugins-ugly gst-plugins-good gst-plugins-base-libs gst-plugins-base gst-plugins-bad gst-libav -#+END_SRC - -*** Usage -#+BEGIN_SRC bash - pdfpc filename.pdf -#+END_SRC - -** Beamer -** Org Mode -https://orgmode.org/worg/exporters/beamer/tutorial.html - -* TODO RSS Reader -GUI: +* RSS Reader +GUI Alternatives: - http://www.rssowl.org/ - https://github.com/jangernert/FeedReader With Emacs: - http://pragmaticemacs.com/emacs/read-your-rss-feeds-in-emacs-with-elfeed/ +On the phone: +- https://feedly.com/i/my ** Newsboat +[[file:newsboat.org][Link]] to configuration. + https://github.com/newsboat/newsboat https://wiki.archlinux.org/index.php/Newsboat *** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S newboat -#+END_SRC +#+end_src *** Configuration https://newsboat.org/releases/2.12/docs/newsboat.html =~/.newsboat/= -*** TODO Automatic Retrival of Feeds -Make a systemd service. - -*** TODO Add reddit personnal RSS -https://www.reddit.com/prefs/feeds/ - *** CheatSheet https://newsboat.org/releases/2.12/docs/newsboat.html#available-operations -| Command | Usage | -|---------+-------| -* Manager Drives -https://wiki.archlinux.org/index.php/NFS -=sudo nvim /etc/fstab= to auto-mount drives - -* TODO Task Manager +* Task Manager ** OrgMode and Emacs -** Wunderlist +** Wunderline https://itsfoss.com/linux-client-wunderlist/ -*** Wunderline http://wayneashleyberry.github.io/wunderline/ -**** Installation +*** Installation #+begin_src bash yay -S wunderline #+end_src -**** Cheatsheet -=wunderline list= -#+begin_src bash :results raw - wunderline inbox -#+end_src +*** Cheatsheet +Add a task with: +- =wunderline add = -#+RESULTS: -INBOX (5) -Appeler les impôts ☆ -Regarder les impôt Today ☆ -Remboursement abonnement tram ? ☆ -Prendre le Exploding Kittens / Seven Wonders Today ☆ -Appeler Maman Today ☆ +| Options | Usage | +|-----------------+-------| +| =--today= | | +| =--tomorrow= | | +| =--note = | | +Other commands: +- =wunderline inbox= +- =wunderline today= - -*** TODO Org-Wunderlist -https://github.com/myuhe/org-wunderlist.el?state=RANDOM&code=f03a4873e4fd70950641 * Background manager: nitrogen https://github.com/l3ib/nitrogen/ @@ -1742,14 +1430,14 @@ https://github.com/l3ib/nitrogen/ * PDF Reader: Zathura https://pwmt.org/projects/zathura/ ** Installation -#+BEGIN_SRC bash +#+begin_src bash yay -S zathura -#+END_SRC +#+end_src Then add dependecies to view specific files: -#+BEGIN_SRC bash +#+begin_src bash yay -S zathura-pdf-mupdf zathura-djvu zathura-ps zathura-cb -#+END_SRC +#+end_src It seems that mupdf is better that poppler to view pdf. @@ -1773,7 +1461,31 @@ It seems that mupdf is better that poppler to view pdf. | =mm= | Mark current location to m | | ='m= | Goto location m | -* TODO Theme manager +** Multi-monitor pdf presentation - pdfpc +https://github.com/pdfpc/pdfpc + +pdfpc is a great tool for showing pdf presentations. It support: +- screen splitting +- support for videos in pdf presentations +- support for notes +- support for annotations + +*** Installation +#+begin_src bash + yay -S pdfpc +#+end_src + +*** Video support +#+begin_src bash + yay -S gst-plugins-ugly gst-plugins-good gst-plugins-base-libs gst-plugins-base gst-plugins-bad gst-libav +#+end_src + +*** Usage +#+begin_src bash + pdfpc filename.pdf +#+end_src + +* Theme manager The idea would be to have a command that changes the theme of all the system. There would be at least one light and one dark theme. @@ -1781,12 +1493,12 @@ Applications that could change: - [ ] terminal: https://github.com/khamer/base16-termite. TODO: this does not seems to work. Some is takken from config of termite, some from xresources. Also when reload the terminal is does not make the colors well: https://github.com/thestinger/termite/issues/273 It seems the color is due to this part of the script. Should then source this file somehow. -#+BEGIN_SRC bash +#+begin_src bash BASE16_SHELL="$HOME/.base16-manager/chriskempson/base16-shell/" [ -n "$PS1" ] && \ [ -s "$BASE16_SHELL/profile_helper.sh" ] && \ eval "$("$BASE16_SHELL/profile_helper.sh")" -#+END_SRC +#+end_src - [X] shell: https://github.com/chriskempson/base16-shell - [X] ranger: uses colors of the shell @@ -1808,10 +1520,8 @@ BASE16_SHELL="$HOME/.base16-manager/chriskempson/base16-shell/" Possible theme managers: - https://github.com/mjswensen/themer - https://github.com/dylanaraps/pywal -** TODO Theme script -=~/bin/theme= -** TODO Base16 +** Base16 https://github.com/chriskempson/base16 http://chriskempson.com/projects/base16/ https://www.youtube.com/watch?v=QcOxU1sOOuw @@ -1824,58 +1534,39 @@ Then we can use these colors multiple applications. https://github.com/chriskempson/base16-shell This changes the shell colors. This should be added to =~/.bashrc=: -#+BEGIN_SRC bash +#+begin_src bash # Base16 Shell BASE16_SHELL="$HOME/.config/base16-shell/" [ -n "$PS1" ] && \ [ -s "$BASE16_SHELL/profile_helper.sh" ] && \ eval "$("$BASE16_SHELL/profile_helper.sh")" -#+END_SRC +#+end_src *** Base16-manager https://github.com/AuditeMarlow/base16-manager This help changes many applications colors at once. -* TODO Graphical Editor -- GIMP -- http://dia-installer.de/ +* Graphical Editor - https://inkscape.org/ -- https://krita.org/en/features/highlights/ - Tikz -* TODO [#B] System monitor: conky -https://github.com/brndnmtthws/conky -https://wiki.archlinux.org/index.php/Conky - -Integration with polybar: -- https://www.reddit.com/r/unixporn/comments/92guq6/i3polybar_animated_polybar_drop_down_menus/ -- https://github.com/ntcarlson/dotfiles - -* TODO Bugs -** TODO Why the cursor is turning when on the background image? -Because something is executing without the --no-startup-id option -* TODO Games on Linux -https://www.protondb.com/ -https://steamcommunity.com/games/221410/announcements/detail/1696055855739350561 - -* TODO VPN Setup -** NordVPN +* VPN Setup with NordVPN https://aur.archlinux.org/packages/nordvpn-bin/ https://wiki.archlinux.org/index.php/NordVPN -*** Installation +** Installation #+begin_src bash yay -S nordvpn-bin #+end_src -*** Configuration +** Configuration #+begin_src bash sudo systemctl enable nordvpnd.service sudo systemctl start nordvpnd.service #+end_src -*** Usage +** Usage | Command | Usage | |---------------------------+-------| | =nordvpn login= | | @@ -1884,20 +1575,16 @@ https://wiki.archlinux.org/index.php/NordVPN | =nordvpn status= | | | =nordvpn countries= | | -** TODO Maybe use NordVPM with openVPN Instead? +** Alternative: Use NordVPM with openVPN Instead https://github.com/nstinus/nordvpn https://github.com/jotyGill/openpyn-nordvpn https://nordvpn.com/fr/tutorials/linux/openvpn/ -* TODO NAS setup -Mount a shared drive -https://wiki.archlinux.org/index.php/NFS - * Others ** Reddit on terminal: rtv -#+BEGIN_SRC bash -yay -S rtv -#+END_SRC +#+begin_src bash + yay -S rtv +#+end_src ** Interact with API - GUI: https://github.com/getinsomnia/insomnia @@ -1923,7 +1610,7 @@ https://github.com/naelstrof/maim #+end_src -* TODO Usefull commands +* Usefull commands ** Find files or directories - https://github.com/sharkdp/fd - https://github.com/BurntSushi/ripgrep @@ -2044,17 +1731,13 @@ Use =apack= and =aunpack=: | =ethtooo eth0= | Tool to show ethernet status | | =netstat -tulp= | List all active listening ports | -* TODO Custom scripts -** TODO [#A] Password completion with fzf -Make a script to use FZF for autocompletion of password (with pass program) and then send to current line or copy. -Maybe use tmux pane for that. -* TODO Bash Snippets +* Bash Snippets ** For loop -#+BEGIN_SRC bash +#+begin_src bash for file in ./*; do command ${file}; done -#+END_SRC +#+end_src * Some notes To improve the startup time. @@ -2063,3 +1746,20 @@ sudo systemctl disable apparmor sudo systemctl disable snapd sudo systemctl disable systemd-backlight@backlight\:intel_backlight.service #+end_src +* Ressources +** Dotfiles +- https://github.com/LukeSmithxyz/voidrice +- https://github.com/wincent/wincent +- https://github.com/korolr/dotfiles +- https://github.com/Shougo/shougo-s-github +- https://github.com/addy-dclxvi/almighty-dotfiles + +** Linux Softwares +- [[https://github.com/k4m4/terminals-are-sexy][terminalare.sexy]] +- [[https://www.reddit.com/r/vim/comments/3tluqr/my_list_of_applications_with_vi_keybindings/][the big list of vim like software]] +- https://github.com/jlevy/the-art-of-command-line +- https://github.com/herrbischoff/awesome-command-line-apps +- https://github.com/luongvo209/Awesome-Linux-Software +- https://wiki.archlinux.org/index.php/List_of_applications +- https://ambrevar.xyz/power-apps/ +- https://enchiridion.red/2019/1/18/desktop-apps/ diff --git a/dotfiles/mail.org b/dotfiles/mail.org index 492ee4d..87154b0 100644 --- a/dotfiles/mail.org +++ b/dotfiles/mail.org @@ -18,10 +18,10 @@ :END: * Synchronize Mailboxes - Mbsync - :PROPERTIES: - :header-args:conf: :tangle ~/.mbsyncrc - :header-args:conf+: :comments both :mkdirp yes - :END: +:PROPERTIES: +:header-args:conf: :tangle ~/.mbsyncrc +:header-args:conf+: :comments both :mkdirp yes +:END: http://isync.sourceforge.net/ ** Global Defaults @@ -275,10 +275,10 @@ http://www.djcbsoftware.nl/code/mu/ http://www.djcbsoftware.nl/code/mu/cheatsheet.html * Mail Client - NeoMutt - :PROPERTIES: - :header-args:conf: :tangle ~/.config/neomutt/neomuttrc - :header-args:conf+: :comments both :mkdirp yes - :END: +:PROPERTIES: +:header-args:conf: :tangle ~/.config/neomutt/neomuttrc +:header-args:conf+: :comments both :mkdirp yes +:END: https://neomutt.org/ Documentation: @@ -700,6 +700,20 @@ Labels macro attach W ~/Downloads/y "Save entry" #+end_src +*** Compose +#+BEGIN_SRC conf + bind compose p postpone-message + + bind compose R rename-attachment + + bind compose a attach-file +#+END_SRC + +Open another instance of neomutt in readonly mode while composing +#+BEGIN_SRC conf + macro compose M "$TERMINAL -e \"neomutt -R\"" +#+END_SRC + Attach multiple files using ranger #+begin_src conf macro compose A "bash $HOME/.config/neomutt/bin/rangerpicksource /tmp/rangerpickbash $HOME/.config/neomutt/bin/rangerpick clean" "Attach with Ranger" @@ -720,30 +734,22 @@ Attach multiple files using ranger fi #+end_src -*** TODO Compose -#+BEGIN_SRC conf - bind compose p postpone-message - - bind compose R rename-attachment - - bind compose a attach-file -#+END_SRC +**** TODO Send HTML mails using Markdown +https://unix.stackexchange.com/questions/108485/send-email-written-in-markdown-using-mutt/424162 +https://github.com/Roguelazer/muttdown Write html emails using markdown #+BEGIN_SRC conf # macro compose M "F pandoc -s -f markdown -t html \ny^T^Utext/html; charset=us-ascii\n" #+END_SRC -Open another instance of neomutt in readonly mode while composing -#+BEGIN_SRC conf - macro compose M "termite -e \"neomutt -R\"" -#+END_SRC - *** Browser #+begin_src conf bind browser l select-entry - macro browser h "" + + bind browser t tag-entry + bind browser q exit #+end_src @@ -794,6 +800,9 @@ Use =urlview= to extract urls from the mail. #+end_src *** Link to Orgmode +https://www.donarmstrong.com/posts/org_mode_mutt_capture/ +https://upsilon.cc/~zack/blog/posts/2010/02/integrating_Mutt_with_Org-mode/ + #+begin_src conf macro index,pager S "$HOME/scripts/mutt-save-org-link.py\n" #+end_src @@ -1280,7 +1289,10 @@ Program to open is defined in the =mailcap= file. A script =openfile.sh= is used to open files with the default application using =xdg-open=. *** Attach multiple files at once -First, tag the files you want to send using =t=, then =;= to apply the action on all tagged files and finally == to add them all. +First, tag the files you want to send using =t=, then =;= to apply the action on +all tagged files and finally == to add them all. + +Of ranger can be used with the =A= keybinding. *** Forgotten Attachment #+begin_src conf diff --git a/dotfiles/polybar.org b/dotfiles/polybar.org index c6beaad..b800a83 100644 --- a/dotfiles/polybar.org +++ b/dotfiles/polybar.org @@ -88,7 +88,7 @@ border-size = 0 padding-left = 2 - padding-right = 16 + padding-right = 12 module-margin-left = 1 module-margin-right = 1 @@ -207,7 +207,7 @@ #+BEGIN_SRC conf [module/mpd] type = internal/mpd - format-online = %{A1:termite -e "ncmpcpp" &:}%{A} + format-online = %{A1:$TERMINAL -e "ncmpcpp" &:}%{A} format-online-spacing = 0 format-online-padding = 0 @@ -269,7 +269,7 @@ format-underline = ${colors.background} - label = %{A1:termite -e "htop" &:} ﬙ %percentage:2%% %{A} + label = %{A1:$TERMINAL -e "htop" &:} ﬙ %percentage:2%% %{A} #+END_SRC * Date @@ -279,8 +279,8 @@ interval = 1 # Open google calendar on left right - date = %{A1:termite -e "ikhal" &:} %d-%m%{A} - date-alt = "%{A1:termite -e \"ikhal\" &:} %d-%m-%Y%{A}" + date = %{A1:$TERMINAL -e "ikhal" &:} %d-%m%{A} + date-alt = "%{A1:$TERMINAL -e \"ikhal\" &:} %d-%m-%Y%{A}" time =  %H:%M time-alt =  %H:%M:%S @@ -375,7 +375,7 @@ ;; Temperature off one cpu core hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon1/temp1_input - format = %{A1:termite -e "watch sensors" &:}