Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
fr:tools:linux:misc-tools [2023/09/30 14:41] crunchyslimefr:tools:linux:misc-tools [2024/01/28 12:44] (Version actuelle) – [Download youtube vidéo from clipboard] crunchyslime
Ligne 9: Ligne 9:
     * [[man>swappy]]     * [[man>swappy]]
     * [[man>flameshot]]     * [[man>flameshot]]
-  * [[fr:tools:linux:file-handling#trier_des_fichiers_rapidement_par_extention|tri de fichiers]]+  * [[fr:tools:linux:file-handling|Gestion de Fichiers]] 
 +  * 3D-2D 
 +    * [[man>cura]] 
 +    * [[man>openscad]] 
 +    * [[man>freecad]] 
 +    * [[man>gimp]] 
 +    * [[man>inkscape]] 
 +  * Dev 
 +    * [[man>base-devel]] 
 +    * [[man>git]] 
 +    * [[man>cmake]] 
 +  * Network 
 +    * [[man>nethogs]] 
 +    * [[man>nmap]] 
 +    * [[man>mosh]] 
 +    * [[man>mtr]] 
 +    * [[man>freerdp2-wayland]] - [[man>freerdp2-x11]] 
 +    * [[man>openvpn]] 
 +  * Communication 
 +    * [[man>thunderbird]] 
 +    * [[man>discord]] 
 +    * [[man>noto-fonts-emoji]] 
 +  * Utilitaires 
 +    * [[man>yt-dlp]] 
 +    * [[man>unrar]] 
 +    * [[man>ncdu]] 
 +    * [[man>btop]] 
 +    * [[man>obs-studio]] 
  
 ==== Captures ==== ==== Captures ====
Ligne 26: Ligne 54:
 </code> </code>
  
-**Update time and date from network clock**+====Update time and date from network clock====
  
 <code bash> <code bash>
Ligne 39: Ligne 67:
 </code> </code>
  
-**Update timezone** +====Update timezone====
- +
-`timedatectl list-timezones` +
-`timedatectl set-timezone Europe/Paris` +
- +
-**access grub2** +
- +
-appuyer sur `shift` pendant la phase de boot +
- +
-**install script** +
 <code bash> <code bash>
-#!/bin/bash +timedatectl list-timezones 
-## 3D +timedatectl set-timezone Europe/Paris
-sudo pacman -S cura openscad freecad +
-## base +
-sudo pacman -S base-devel git nethogs nmap mtr cmake noto-fonts-emoji unrar +
-## Utilitaires +
-sudo pacman -S conky flameshot audacity htop gimp +
-## productivity +
-sudo pacman -S thunderbird discord freerdp2-x11 openvpn +
-## freerdp2-wayland +
-## bonus +
-sudo pacman -S dolphin-emu signal-desktop obs-studio+
 </code> </code>
  
-**Signal** +====access grub2====
-</code> +
-# NOTE: These instructions only work for 64 bit Debian-based +
-# Linux distributions such as Ubuntu, Mint etc.+
  
-# 1. Install our official public software signing key +appuyer sur ''shift'' pendant la phase de boot
-wget -O- https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor > signal-desktop-keyring.gpg +
-cat signal-desktop-keyring.gpg | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null +
- +
-# 2. Add our repository to your list of repositories +
-echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main|\ +
-  sudo tee -a /etc/apt/sources.list.d/signal-xenial.list +
- +
-# 3. Update your package database and install signal +
-sudo apt update && sudo apt install signal-desktop +
-</code>+
  
-**[yaourt](https://wiki.archlinux.fr/yaourt)** 
  
 +====yaourt====
 +[[https://wiki.archlinux.fr/yaourt|ArchWiki]]
 <code bash> <code bash>
 #!/bin/bash #!/bin/bash
Ligne 98: Ligne 94:
 </code> </code>
  
-**Thèmes [Kvantum](https://github.com/tsujan/Kvantum/blob/master/Kvantum/INSTALL.md)** +====Thèmes Kvantum==== 
- +[[https://github.com/tsujan/Kvantum/blob/master/Kvantum/INSTALL.md|source]] 
-`sudo pacman -S kvantum-qt5`+''sudo pacman -S kvantum-qt5''
  
 - Select Kvantum from System Settings → Application Style → Widget Style and apply it. - Select Kvantum from System Settings → Application Style → Widget Style and apply it.
 - Select Kvantum from System Settings → Color → Scheme and click Apply. You could change the color scheme later if you choose another Kvantum theme with Kvantum Manager (see "Using Other Themes" below). - Select Kvantum from System Settings → Color → Scheme and click Apply. You could change the color scheme later if you choose another Kvantum theme with Kvantum Manager (see "Using Other Themes" below).
  
-pour installer un thème, télécharger l'archive et copier le dossier contenant le `.kvconfiget le `.svgdans `/usr/share/Kvantum/$THEME_NAME/`+pour installer un thème, télécharger l'archive et copier le dossier contenant le ''.kvconfig'' et le ''.svg'' dans ''/usr/share/Kvantum/$THEME_NAME/''
  
-[source sweet](https://store.kde.org/p/1294013/+[[https://store.kde.org/p/1294013/|source sweet]
-[source sweet ff](https://github.com/EliverLara/firefox-sweet-theme)+[[https://github.com/EliverLara/firefox-sweet-theme|source sweet ff]]
  
-**theme i3** 
-[arch based](https://github.com/unix121/i3wm-themer) 
-[other](https://github.com/cizordj/i3-themer) 
  
-**Kill process in 1 line**+====Kill process in 1 line====
  
 show the process : show the process :
  
-`ps axf | grep <process name> | grep -v grep | awk '{print "kill -9 " $1}'`+''ps axf | grep <process name> | grep -v grep | awk '{print "kill -9 " $1}'''
  
 pipe to sh to kill it pipe to sh to kill it
  
-`ps axf | grep <process name> | grep -v grep | awk '{print "kill -9 " $1}' | sh`+''ps axf | grep <process name> | grep -v grep | awk '{print "kill -9 " $1}' | sh''
  
-[source](https://stackoverflow.com/questions/17440585/how-to-get-pid-of-process-by-specifying-process-name-and-store-it-in-a-variable).+[[https://stackoverflow.com/questions/17440585/how-to-get-pid-of-process-by-specifying-process-name-and-store-it-in-a-variable|source]] 
 + 
 +====Bookmarks==== 
 + 
 +un outils de bookmark facile et rapide comme vu dans cette vidéo ([[https://invidious.fdn.fr/watch?v=d_11QaTlf1I|lien invidous]]). 
 +Notre objectif est de pouvoir stocker ce qui est surligné (en utilisant [[man>xclip]]) dans un fichier ''.bookmarks''. On vient ensuite lire ce fichier avec [[man>dmenu]] 
 + 
 +<code bash> 
 +#!/bin/bash 
 + 
 +bookmark=`xclip -o` 
 +file="$HOME/.bookmarks" 
 + 
 +if grep -q "^$bookmark" "$file"; then 
 + notify-send "already exists" 
 +else 
 + notify-send "Bookmark added !" "$bookmark" 
 + echo "$bookmark" >> "$file" 
 +fi 
 +</code> 
 +puis dans mon ''.config/i3/config'' j'ai les raccourcis suivants 
 +<code> 
 +bindsym $mod+Shift+b exec ~/s/add-bookmark 
 +bindsym $mod+b exec xdotool type "$(grep -v '^#' ~/.bookmarks | dmenu -i -l 50 | cut -f1)"  
 +bindsym $mod+n exec xdotool type "$(grep -v '^#' ~/.bookmarks-ssh | dmenu -i -l 50 | cut -f1)" 
 +</code> 
 + 
 +//⚠️ ce script a été rédigé pour i3 sous X, sous Wayland il conviendra de remplacer ''xdotool type'' par ''wtype'' et ''xclip -o'' par une commande basée sur [[https://github.com/bugaevc/wl-clipboard|wl-clipboard]]// 
 + 
 +====Download youtube vidéo from clipboard==== 
 +Avec X en utilisant [[man>xsel]] : ''yt-dlp --write-sub -f bestvideo+bestaudio `xsel -ob`''\\ 
 +Avec wayland en utilisant [[man>wl-paste]] (il semblerait que wl-paste ne reproduit pas exactement le comportement de [[man>xsel]], utilisation d'un fichier temporaire tampon) :  
 +<code bash> 
 +#!/bin/bash 
 +cd "/path/to/download/folder" 
 +wl-paste > /tmp/youtube-paste-to-dl 
 +#launching in a detached terminal to make it work with shortcuts 
 +xfce4-terminal -e 'yt-dlp --write-sub -f bestvideo+bestaudio -a /tmp/youtube-paste-to-dl' 
 +rm /tmp/youtube-paste-to-dl 
 +</code>
  
-**bash tools**+====bash tools====
  
 <code bash> <code bash>
  • fr/tools/linux/misc-tools.1696077719.txt.gz
  • Dernière modification : 2023/09/30 14:41
  • de crunchyslime