intégrer un arrière-plan personnalisé dans nemo

Bureaux,conky et autres personnalisations esthétiques.
Répondre
Avatar du membre
toryx
Messages : 194
Enregistré le : dim. 11 sept. 2016 21:57

intégrer un arrière-plan personnalisé dans nemo

Message par toryx »

salut tous
je partage une petite manip pour ceux qui sont intéressé d’intégrer un arrière-plan personnalisé dans nemo ( testé sur la version 4.8.2)
du scrolling est aussi possible, test effectué avec un *.png.
cette manip n'est opérationnelle que sur les thèmes généré par Themix/Oomox theme designer

-copiez votre image dans:
/home/xxxx/.themes/votre theme/gtk-3.20/assets

-ajoutez cette ligne vers la fin du fichier gtk.gresource.xml (pensez a modifier "votre fichier.png")

Code : Tout sélectionner

<file preprocess='to-pixdata'>assets/votre fichier.png</file>
-editez le fichier gtk.css, qui doit normalement ne contenir qu'une seule ligne du genre:
@import url("resource:///org/numixproject/gtk-3.20/dist/gtk.css");

-rajoutez y ces lignes: (pensez a modifier "votre fichier.png")

Code : Tout sélectionner

.nemo-window .nemo-window-pane notebook scrolledwindow.view, window.thunar notebook scrolledwindow.frame.standard-view,
.nautilus-window,
.nautilus-window notebook,
.nautilus-window notebook > stack {
        background-image: url("assets/votre fichier.png");
        background-size: 512px 166px, 512px 166px;
        background-position: center;
        background-repeat: no-repeat;
	animation: backAnimation 80s linear infinite;
}
à adapter a vos soins notamment background-size: et background-position:

-le script suivant fera du scrolling horizontal (lent et très fluide):

Code : Tout sélectionner

.nemo-window .nemo-window-pane notebook scrolledwindow.view, window.thunar notebook scrolledwindow.frame.standard-view,
.nautilus-window,
.nautilus-window notebook,
.nautilus-window notebook > stack {
        background-image: url("assets/linux-mint-banniere.png");
        background-size: 512px 166px, 512px 166px;
        background-position: center;
        background-repeat: no-repeat;
	animation: backAnimation 80s linear infinite;
}
@keyframes backAnimation {
	from { background-position: 0 0; }
	to { background-position: 100% 0; }
}
voila, je sait que le choix est restreins et impose au pire d'installer Themix/Oomox theme designer

Image
dual-boot: archlinux-cinnamon - windows11
CPU: i5 10600k - CM: MPG Z490 GP - RAM: Corsair Vengeance LPX DDR4 3200 MHz CL16 (4X 8GO)
GPU: NVIDIA GeForce RTX 3060 LH
NVIDIA GeForce GTX 1050 Ti (pasthrough vers qemu/kvm)
KVM: Windows 11 - MacOS Monterey

Avatar du membre
toryx
Messages : 194
Enregistré le : dim. 11 sept. 2016 21:57

Re: intégrer un arrière-plan personnalisé dans nemo

Message par toryx »

Méthode avec un fichier gtk.css non vide
la structure du thème diffère de ceux de themix/oomox
dans le répertoire /gtk-3.22/assets ou /gtk-3.20/assets
-y coller votre png

il faut maintenant éditer le fichier /gtk-3.22/gtk.css ou /gtk-3.20/gtk.css et chercher la section:

Code : Tout sélectionner

/********
 ! Nemo *
*********/
à la fin de cette section vous pourrez y coller les lignes suivantes:

Code : Tout sélectionner

.nemo-window .nemo-window-pane notebook scrolledwindow.view, window.thunar notebook scrolledwindow.frame.standard-view,
.nautilus-window,
.nautilus-window notebook,
.nautilus-window notebook > stack {
        background-image: url("assets/votre fichier.png");
        background-size: 300px 300px, 300px 300px;
        background-position: center;
        background-repeat: no-repeat;
	animation: backAnimation 80s linear infinite;
}
Image
dual-boot: archlinux-cinnamon - windows11
CPU: i5 10600k - CM: MPG Z490 GP - RAM: Corsair Vengeance LPX DDR4 3200 MHz CL16 (4X 8GO)
GPU: NVIDIA GeForce RTX 3060 LH
NVIDIA GeForce GTX 1050 Ti (pasthrough vers qemu/kvm)
KVM: Windows 11 - MacOS Monterey

Répondre