Différences
Ci-dessous, les différences entre deux révisions de la page.
| 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:17] – [Liste] crunchyslime | fr:tools:linux:misc-tools [2024/01/28 12:44] (Version actuelle) – [Download youtube vidéo from clipboard] crunchyslime | ||
|---|---|---|---|
| Ligne 9: | Ligne 9: | ||
| * [[man> | * [[man> | ||
| * [[man> | * [[man> | ||
| - | * [[fr: | + | * [[fr: |
| + | * 3D-2D | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * Dev | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * Network | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * Communication | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * Utilitaires | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| + | * [[man> | ||
| ==== Captures ==== | ==== Captures ==== | ||
| Ligne 25: | Ligne 53: | ||
| swappy -f $IMG | swappy -f $IMG | ||
| </ | </ | ||
| + | |||
| + | ====Update time and date from network clock==== | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | curlinero=`curl https:// | ||
| + | heure=`echo $curlinero | grep -oE ' | ||
| + | date=`echo $curlinero | grep -oE ' | ||
| + | echo $date | ||
| + | echo $heure | ||
| + | sudo date +%F -s $date | ||
| + | sudo date -s $heure | ||
| + | </ | ||
| + | |||
| + | ====Update timezone==== | ||
| + | <code bash> | ||
| + | timedatectl list-timezones | ||
| + | timedatectl set-timezone Europe/ | ||
| + | </ | ||
| + | |||
| + | ====access grub2==== | ||
| + | |||
| + | appuyer sur '' | ||
| + | |||
| + | |||
| + | ====yaourt==== | ||
| + | [[https:// | ||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | git clone https:// | ||
| + | cd package-query | ||
| + | makepkg -si | ||
| + | cd .. | ||
| + | git clone https:// | ||
| + | cd yaourt | ||
| + | makepkg -si | ||
| + | cd .. | ||
| + | rm -rf package-query | ||
| + | rm -rf yaourt | ||
| + | </ | ||
| + | |||
| + | ====Thèmes Kvantum==== | ||
| + | [[https:// | ||
| + | '' | ||
| + | |||
| + | - 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" | ||
| + | |||
| + | pour installer un thème, télécharger l' | ||
| + | |||
| + | [[https:// | ||
| + | [[https:// | ||
| + | |||
| + | |||
| + | ====Kill process in 1 line==== | ||
| + | |||
| + | show the process : | ||
| + | |||
| + | '' | ||
| + | |||
| + | pipe to sh to kill it | ||
| + | |||
| + | '' | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ====Bookmarks==== | ||
| + | |||
| + | un outils de bookmark facile et rapide comme vu dans cette vidéo ([[https:// | ||
| + | Notre objectif est de pouvoir stocker ce qui est surligné (en utilisant [[man> | ||
| + | |||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | |||
| + | bookmark=`xclip -o` | ||
| + | file=" | ||
| + | |||
| + | if grep -q " | ||
| + | notify-send " | ||
| + | else | ||
| + | notify-send " | ||
| + | echo " | ||
| + | fi | ||
| + | </ | ||
| + | puis dans mon '' | ||
| + | < | ||
| + | bindsym $mod+Shift+b exec ~/ | ||
| + | bindsym $mod+b exec xdotool type " | ||
| + | bindsym $mod+n exec xdotool type " | ||
| + | </ | ||
| + | |||
| + | //⚠️ ce script a été rédigé pour i3 sous X, sous Wayland il conviendra de remplacer '' | ||
| + | |||
| + | ====Download youtube vidéo from clipboard==== | ||
| + | Avec X en utilisant [[man> | ||
| + | Avec wayland en utilisant [[man> | ||
| + | <code bash> | ||
| + | #!/bin/bash | ||
| + | cd "/ | ||
| + | wl-paste > / | ||
| + | #launching in a detached terminal to make it work with shortcuts | ||
| + | xfce4-terminal -e ' | ||
| + | rm / | ||
| + | </ | ||
| + | |||
| + | ====bash tools==== | ||
| + | |||
| + | <code bash> | ||
| + | # check for root access | ||
| + | SUDO= | ||
| + | if [ "$(id -u)" -ne 0 ]; then | ||
| + | # Si l' | ||
| + | SUDO=$(command -v sudo 2> /dev/null) | ||
| + | |||
| + | if [ ! -x " | ||
| + | echo " | ||
| + | exit 1 | ||
| + | fi | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | # check if command is available | ||
| + | check_cmd() { | ||
| + | command -v " | ||
| + | } | ||
| + | |||
| + | if check_cmd curl; then | ||
| + | echo "curl est accessible" | ||
| + | fi | ||
| + | |||
| + | if ! check_cmd curl; then | ||
| + | echo "Curl is needed to proceed with the installation" | ||
| + | exit 1 | ||
| + | fi | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | # execute script from URL | ||
| + | sh <(curl -sSf https:// | ||
| + | |||
| + | # if curl missing | ||
| + | sh <(wget -qO - https:// | ||
| + | </ | ||
| + | |||