Ceci est une ancienne révision du document !


Mon application favorite est flameshot sur X.

Flameshot est parfois buggé sur Wayland, on peut donc le remplacer avec le combo suivant grim, slurp, wl-copy et swappy :

#!/bin/bash
 
FILEDIR=~/Downloads/scrots/
IMG=$FILEDIR$(date +%F_%H-%M-%S).png
grim -g "$(slurp)" $IMG
wl-copy < $IMG
swappy -f $IMG

Update time and date from network clock

#!/bin/bash
curlinero=`curl https://savvytime.com/local/france 2>/dev/null | grep -i stLocationTimeM`
heure=`echo $curlinero | grep -oE '(([0-9]){2}:){2}([0-9]){2}'`
date=`echo $curlinero | grep -oE '([0-9]){4}-([0-9]){2}-([0-9]){2}'`
echo $date
echo $heure
sudo date +%F -s $date
sudo date -s $heure

Update timezone

`timedatectl list-timezones` `timedatectl set-timezone Europe/Paris`

access grub2

appuyer sur `shift` pendant la phase de boot

install script

#!/bin/bash
## 3D
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

Signal </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 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)

#!/bin/bash
git clone https://aur.archlinux.org/package-query.git
cd package-query
makepkg -si
cd ..
git clone https://aur.archlinux.org/yaourt.git
cd yaourt
makepkg -si
cd ..
rm -rf package-query
rm -rf yaourt

Thèmes [Kvantum](https://github.com/tsujan/Kvantum/blob/master/Kvantum/INSTALL.md)

`sudo pacman -S kvantum-qt5`

- 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).

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/) [source sweet ff](https://github.com/EliverLara/firefox-sweet-theme)

theme i3 [arch based](https://github.com/unix121/i3wm-themer) [other](https://github.com/cizordj/i3-themer)

Kill process in 1 line

show the process :

`ps axf | grep <process name> | grep -v grep | awk '{print “kill -9 ” $1}'`

pipe to sh to kill it

`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).

bash tools

# check for root access
SUDO=
if [ "$(id -u)" -ne 0 ]; then
# Si l'utilisateur est root, alors on utilise "SUDO" dans le script
    SUDO=$(command -v sudo 2> /dev/null)
 
    if [ ! -x "$SUDO" ]; then
        echo "Error: Run this script as root"
        exit 1
    fi
fi
# check if command is available
check_cmd() {
    command -v "$1" 2> /dev/null
}
 
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
# execute script from URL
sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh)
 
# if curl missing
sh <(wget -qO - https://downloads.nordcdn.com/apps/linux/install.sh)
  • fr/tools/linux/misc-tools.1696077719.txt.gz
  • Dernière modification : 2023/09/30 14:41
  • de crunchyslime