Minor changes

This commit is contained in:
Thomas Dehaeze 2020-04-06 00:11:57 +02:00
parent b5476dc0e6
commit 246f0e5f42
3 changed files with 21 additions and 18 deletions

View File

@ -1509,32 +1509,33 @@ https://nordvpn.com/fr/tutorials/linux/openvpn/
* Others
** Wallpaper: =xwallpaper=
** Reddit on terminal: rtv
#+begin_src bash
yay -S rtv
#+end_src
** Interact with API
- GUI: https://github.com/getinsomnia/insomnia
- CLI: https://github.com/jakubroztocil/httpie
** Take Screenshot
https://github.com/naelstrof/maim
#+begin_src bash
yay -S maim
#+end_src
- https://github.com/naelstrof/maim
- https://github.com/lupoDharkael/flameshot
#+begin_src bash
man maim
yay -S maim flameshot
#+end_src
** File transfer
https://github.com/schollz/croc
#+begin_src bash
yay -S croc
#+end_src
** Utilities
#+begin_src bash
yay -S fd ripgrep pdf2svg pdftk
#+end_src
- https://github.com/BurntSushi/ripgrep
- https://github.com/dawbarton/pdf2svg
- https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
- https://github.com/Airblader/unclutter-xfixes
#+begin_src bash
yay -S unclutter
yay -S fd ripgrep pdf2svg pdftk unclutter
#+end_src

View File

@ -575,12 +575,14 @@
:END:
#+BEGIN_SRC bash
yay -Sy > /dev/null 2>&1 && \
package_nb=`yay -Qu 2> /dev/null | wc -l`;
package_nb=`yay -Qu 2> /dev/null | wc -l` || \
package_nb=0
if [ "$package_nb" -eq "0" ]; then
echo "";
echo "";
else
echo "%{F#859900} $package_nb%{F-}";
echo "%{F#859900} $package_nb%{F-}";
fi
#+END_SRC

View File

@ -116,7 +116,7 @@ Finally, lock the screen using =i3lock=.
#+begin_src bash :tangle ~/scripts/torrent-add.sh
transmission-remote ***REMOVED***:9091 --auth tdehaeze:$(pass nas/transmission | sed -n 1p) -a $1 && \
dunstify 'Torrent' 'Successfully added' || \
dunstify 'Torrent' 'Error'
dunstify 'Torrent' 'Error'
#+end_src