From 0685bbe005b140a98cce716e716168388ae09aae Mon Sep 17 00:00:00 2001 From: lenovo Date: Thu, 24 Nov 2022 11:26:16 +0100 Subject: [PATCH] some addings in computer tuto --- config_files/.vimrc | 4 +-- tutos/computer.txt | 61 ++++++++++++++++++++++++++++++++++++++++++--- tutos/vim.txt | 4 +++ 3 files changed, 64 insertions(+), 5 deletions(-) diff --git a/config_files/.vimrc b/config_files/.vimrc index 2952a2a..234b324 100644 --- a/config_files/.vimrc +++ b/config_files/.vimrc @@ -38,10 +38,10 @@ highlight Normal ctermbg=NONE highlight nonText ctermbg=NONE " show existing tab with 4 spaces width -set tabstop=4 +set tabstop=2 " when indenting with '>', use 4 spaces width -set shiftwidth=4 +set shiftwidth=2 " indent new line like the previous one set autoindent diff --git a/tutos/computer.txt b/tutos/computer.txt index f985cc9..4454047 100644 --- a/tutos/computer.txt +++ b/tutos/computer.txt @@ -1,7 +1,8 @@ **touchscreen :** - **sudo xinput --list** list all input + **xinput --list** list all input **xinput disable 12** disable the input 12, touchscreen for Lenovo-FLEX-3-1120 **load to start :** add "xinput disable 12" in application autostart + ADD FORMULA TO FIND 12 **appimage :** **chmod +x .appimage** make it executable @@ -12,6 +13,10 @@ Type=Application **( cd /usr/share/applications && chmod 644 .desktop )** maybe change permissions +**applications :** + **ln -s /path/to/executable /usr/bin** + add /usr/share/applications/.desktop as explained above for appimages + **firefox extension source code :** **right click on install** and select "copy link" **curl -L > /tmp/myextension.xpi** download the extension with curl inside a tmp file @@ -20,8 +25,34 @@ **enable accents on ubuntu :** **compose key = right alt** change in keyboard > layout > compose key + **sudo apt install gnome-tweaks** maybe install tweak to change compose key **r-alt ' e** é **r-alt ` e** è + **alternatively :** https://askubuntu.com/questions/1028957/how-to-set-a-compose-key-in-ubuntu-18-04 + **man xkeyboard-config** look for the compose options (shortcut: enter /compose:). You will find + compose:ralt Right Alt + compose:lwin Left Win + compose:lwin-altgr 3rd level of Left Win + compose:rwin Right Win + compose:rwin-altgr 3rd level of Right Win + compose:menu Menu + compose:menu-altgr 3rd level of Menu + compose:lctrl Left Ctrl + compose:lctrl-altgr 3rd level of Left Ctrl + compose:rctrl Right Ctrl + compose:rctrl-altgr 3rd level of Right Ctrl + compose:caps Caps Lock + compose:caps-altgr 3rd level of Caps Lock + compose:102 + compose:102-altgr 3rd level of + compose:paus Pause + compose:prsc PrtSc + compose:sclk Scroll Lock + **setxkbmap -option compose:paus** let us say you want to pick Pause as the compose key. Just issue + **XKBOPTIONS="terminate:ctrl_alt_bksp,compose:paus"** to make it reboot-persistent, + edit /etc/default/keyboard + if you had other options already, + separate them with commas **connect to planet hoster with ssh :** ssh hugugtzx@world-370.fr.planethoster.net -p 5022 @@ -81,7 +112,31 @@ - format partitions (re list before) : **sudo mkfs -t vfat -n "" /dev/sdb1** to format in fat32 (vfat) (MaKe FileSystem) + **list of automatic settings :** + - install screen, omyzsh, keepassxc, curl, make, firefox, signal, gnome-tweaks + - install or configure to avoid screen blue light + - install nextcloud client (apt ? or appimage ? appimage need fuse : https://github.com/AppImage/AppImageKit/wiki/FUSE), and launch at startup + - install these settings (connection with bitbucket ? ssh ? https ?) + - configure cursor speed, click with touch - change dns - - configure firefox addons - - + - configure firefox : + - default browser + - duckduckgo default search + - addons : + - keepassxc + - i dont care about cookies + - auto tab discard + - settings > barre d'outils action click gauche > desactiver tous les autres onglets + - ublock origin + - deepl/multitranslate + - youtube speed control, by toxblh + - download file + - password settings + - setting ctrl-tab to switch to last used tabs + - configure desktop bar with infos and stats + - configure git global email and name + +**todo !** + - re-add code to move cursor on wrap text in vimrc + - add vimrc, zshrc, and screenrc in default screen windows diff --git a/tutos/vim.txt b/tutos/vim.txt index 705eee4..c4e481b 100644 --- a/tutos/vim.txt +++ b/tutos/vim.txt @@ -1,3 +1,6 @@ +/MODE NORMAL/ +***** search the next occurence of the word under cursor + /MODE INSERTION/ **i** mode insertion avant le curseur **I** mode insertion au debut de la ligne @@ -10,6 +13,7 @@ /COMMANDES/ **:w** enregistrer +**:w !sudo tee %** trick to save a page with sudo **:q** quitter **:wq** ou **ZZ** enregister et quitter **:q!** force a quitter