Files
2026-10-30 11:02:49 +01:00

84 lines
3.0 KiB
Plaintext

#hugogogo#
# ---------------------------------------------------------------------
# reglages generaux
# ---------------------------------------------------------------------
# ne pas afficher le message d'accueil au lancement
startup_message off
# pour augmenter le scrollback de l'ecran
defscrollback 10000
# ---------------------------------------------------------------------
# raccourcis clavier (prefix C-a)
# ---------------------------------------------------------------------
# permet de copier dans le clipboard, en faisant 'C-a Y' apres une copie avec space
# essaye d'abord wl-copy (wayland), puis xclip, puis xsel (X11) :
# le premier outil installe sur la machine gagne
bind Y eval "writebuf" "exec ... sh -c 'wl-copy < /tmp/screen-exchange 2>/dev/null || xclip -selection clipboard < /tmp/screen-exchange 2>/dev/null || xsel --clipboard --input < /tmp/screen-exchange'"
# trick to force a full window repaint (press C-a r), fixes display glitches (e.g. with vibe)
# NOTE : ecrase le 'C-a r' par defaut (toggle du wrap)
bind r eval "hardstatus ignore" "hardstatus alwayslastline"
# ---------------------------------------------------------------------
# barre de statut (hardstatus)
# ---------------------------------------------------------------------
# pour afficher une ligne avec des infos
hardstatus on
# pour qu'elle s'affiche en bas
hardstatus alwayslastline
# tout ce qui n'est pas precede de % s'affiche tel quel
# tout ce qui est entre {} formate le texte
# = format texte inchange
# KW couleur arriere bright black, couleur texte bright white
# %n numero de windows
# %t title de windows
# %= remplis les espaces vides
# %c current time
# %D nom du jour (ex : Mon)
# %d numero du jour
# %m month
# %y year
hardstatus string "%{= KW}%n %t %=%c %D %d-%m-%y"
# ---------------------------------------------------------------------
# fenetres ouvertes au demarrage
# ---------------------------------------------------------------------
# screen open a new windows
# -t assign a title
# vim calls vim with the option -n to avoid the .swp
# the scheme 'screen -t <name> vim -n file.txt' will
# associate the window to the action 'vim', so it
# close as soon as you finish it. you can avoid that :
# https://stackoverflow.com/questions/7585069/run-commands-in-gnu-screen-windows-from-screenrc
# screen -t <name>
# stuff "vim file.txt^M"
# premiere fenetre : un shell dans le dossier de config
chdir $HOME/huhuhu_config
screen
# une fenetre par fichier de config et par tuto
screen -t .vimrc vim -n ./config_files/.vimrc
screen -t .screenrc vim -n ./config_files/.screenrc
screen -t .zshrc vim -n ./config_files/.zshrc
screen -t tuto_vim vim -n ./tutos/vim.txt
screen -t tuto_screen vim -n ./tutos/screen.txt
screen -t tuto_git vim -n ./tutos/git.txt
screen -t tuto_sites vim -n ./tutos/sites.txt
screen -t tuto_computer vim -n ./tutos/computer.txt
screen -t tuto_server vim -n ./tutos/server.md
# derniere fenetre : un shell dans le dossier personnel
chdir $HOME
screen
#hugogogo#