Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#51 Le 11/04/2013, à 10:36

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Didier-T a écrit :

le fichier ~/.scripts/Wall/fond n’existe pas.
il y aura peut être d'autre soucis

oops j'avais pas mis la majuscule W...
ça ne marche quand-même pas :

 └─> '/home/climatix/.scripts/bureau.py' 

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE
sh: 1: f: not found
sh: 1: f: not found
sh: 1: f: not found
sh: 1: f: not found
sh: 1: f: not found

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(bureau.py:20351): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

 

Hors ligne

#52 Le 11/04/2013, à 11:53

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ragamatrix donne le retour de

ls -l ~/.scripts/Wall/
cat ~/.scripts/Wall/*

ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#53 Le 11/04/2013, à 12:15

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ljere a écrit :

ragamatrix donne le retour de

ls -l ~/.scripts/Wall/
cat ~/.scripts/Wall/*

Merci !
retour:

 ┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> ls -l ~/.scripts/Wall/
total 40
-rw-rw-r-- 1 climatix climatix   1 avril 11 12:47 changement_dash
-rw-rw-r-- 1 climatix climatix 263 avril 11 09:10 fond
-rwxrwxr-x 1 climatix climatix 400 avril 11 09:21 wall1
-rwxrwxr-x 1 climatix climatix 411 avril 10 12:39 wall1~
-rwxrwxr-x 1 climatix climatix 424 avril 11 09:22 wall2
-rwxrwxr-x 1 climatix climatix 435 avril 10 12:39 wall2~
-rwxrwxr-x 1 climatix climatix 408 avril 11 09:22 wall3
-rwxrwxr-x 1 climatix climatix 419 avril 10 14:39 wall3~
-rwxrwxr-x 1 climatix climatix 432 avril 11 09:23 wall4
-rwxrwxr-x 1 climatix climatix 443 avril 10 12:40 wall4~
┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> cat ~/.scripts/Wall/*
0feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing1.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_22.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time3.jpg
#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/fond
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/fond
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/fond
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/fond
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0


┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> 
 

Hors ligne

#54 Le 11/04/2013, à 15:02

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

1 déjà dans le script changement_dash tu as mis un 0 devant feh

0feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg

ça doit être

feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg

2 le script fond et changement_dash ne sont pas exécutable il me semble
3 ensuite dans les scripts tu cherches si je ne me trompe pas le script ~/.scripts/Wall/Voyager_Wall

feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"

or d’après le ls que je t'ai demandé ce script n'existe pas
tu peux aussi donner le retour de

ls ~/Images/fondsdebureaux/

et

ls~/Images/fondsdebureaux/WallByDesk

ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#55 Le 11/04/2013, à 15:31

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

J'ai fais plusieurs essais...
D'abord avec ce script là:
bureau.py:

  #! /usr/bin/python
# -*- coding: utf-8 -*-

import wnck
import gtk
import os


##Fonction qui modifie les fonds d'écrans au changement
def changement_de_bureau(screen, previous):
    homedir = os.path.expanduser('~')
    ## on récupère le bureau actif
    actif = screen.get_active_workspace()
    ## on récupère son index
    index = screen.get_workspace_index(actif)

    fichier = open(homedir+"/.scripts/Wall/changement_dash", "r")
    info = fichier.readline()
    fichier.close()
    os.system(info[0])

    if info == "0":
        if index == 0:
            os.system("~/.scripts/Wall/wall1")
        elif index == 1:
            os.system("~/.scripts/Wall/wall2")
        elif index == 2:
            os.system("~/.scripts/Wall/wall3")
        elif index == 3:
            os.system("~/.scripts/Wall/wall4")

    fichier = open(homedir+"/.scripts/Wall/changement_dash", "w")
    fichier.write("0")
    fichier.close()
    os.system(info[0])


##Lancement du daemon d'écoute
bureau = wnck.screen_get_default()
bureau.connect('active-workspace-changed', changement_de_bureau)
gtk.main()

Qui doit apparemment lancer 3 script bash :
wall1

 #!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 0 1 "$1"
fi
exit 0

 

wall2

 #!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 1 2 "$1"
fi
exit 0

 

wall3:

 #!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 2 3 "$1"
fi
exit 0

 

wall4

 #!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg &
if [ ! -z "$1" ];then
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg & "$1"
    ~/.scripts/Wall/Voyager_Wall 3 4 "$1"
fi
exit 0

Après j'ai utilisé le script modifié de  Didier-T
bureau2.0.py

 #! /usr/bin/python
# -*- coding: utf-8 -*-

import wnck
import gtk
import os


##Fonction qui modifie les fonds d'écrans au changement
def changement_de_bureau(screen, previous):
    homedir = os.path.expanduser('~')
    ## on récupère le bureau actif
    actif = screen.get_active_workspace()
    ## on récupère son index
    index = screen.get_workspace_index(actif)

    fichier = open(homedir+"/.scripts/Wall/fond", "r")
    info = fichier.readline()
    fichier.close()
    os.system(info[0])

##Lancement du daemon d'écoute
bureau = wnck.screen_get_default()
bureau.connect('active-workspace-changed', changement_de_bureau)
gtk.main()

Avec ça dans le fichier texte
fond:

 feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing1.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_22.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time3.jpg 

les ls que tu me demande:

 ┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> ls ~/Images/fondsdebureaux/
148761-openbox-v2.0-1366x768.png
150212-fractWS7.jpg
Anciens_fonds
anewfantasyworld1920x1080wallpaper4143.jpg
Angling.jpg
Anneaux_space.jpg
A_Redim
Asteroid1920x1080.jpg
Asteroid Wallpaper
astro_mountains2.jpg
Azenis2_1600.jpg
best_hq_wallpapers_collection_zemir_22_915083.jpeg
black_clouds.jpg
board.jpg
by_the_fire.jpg
citylight.jpg
city_post.jpg
colors.png
cosmos_xvii.jpg
crunchwithabang_1680x1050.png
curiosity2.jpg
curiosity.jpg
curiosity_mars_sand.jpg
curiosity_mars_sand_land1920.jpg
curiosity_mars_sand_land.jpg
curiosity_mars_sand_land_wide1080.jpg
curiosity_mars_sand_land_wide.jpg
Dark Alien Clan Wall.png
Dark_Skies-1920x1200.jpg
Dark_Skies.jpg
deepRedSpace.jpg
distant_shores.jpg
distant_shoresL.jpg
envi_final.jpg
éolienne.jpg
eve_of_the_end.jpg
fils-elec2.jpg
fils-elecL.jpg
from_within.jpg
from_within_red_fire.jpg
from_within_red.jpg
giants_graveyard.jpg
gray.jpg
great_lakes.jpg
greey.jpg
ice2.jpg
Ice_storm.jpg
Infinitys_End2.jpg
isobar3d.jpg
jupiter_station2.jpg
jupiter_station.jpg
landing_field.jpg
linux2.png
lion1bw2.jpg
matrix_crunchbang_2.png
may_the_stars_shine1920.jpg
may_the_stars_shine.jpg
mystic_green.jpg
NASA_2
Nebulosa.jpg
No icon holder.jpg
phraxis2.jpg
Pi1920.jpg
Plug_It_In_by_boss019.jpg
rainbow.jpeg
rainbow.png
redgalaxy.jpg
rosared_cosmos.jpg
rouge_foncé.jpg
Scarlet
Secret_Plan_by_barmin.jpg
SF_rise.jpg
Simple_Star_Field1920.jpg
space123.jpg
space23.jpg
space_aurore.jpg
spaceblue1920x1200.jpg
space_blue_3.jpg
spaceblue51600x1200.jpg
spacecalm1920x1080.jpg
spacecalm1920x1080.png
spaceQSD.jpg
spires_of_space_dust2.jpg
spires_of_space_dust.png
spires_of_space_dust_RED_DARK.jpg
spires_of_space_dust_RED.jpg
star_crossed.jpg
Stop_by_Somniculosis.png
Stormy_Seattle.jpg
sumatrantiger2.jpg
System Force Japan Gold.jpg
System Force Japan Metal Blue.jpg
SystemRed.jpg
SystemRed.png
the_burning_one.jpg
The_Burning_Zone.jpg
the_dunes.jpg
twenty_percent.png
WallByDesk
wallpaper_12.png
Wallpapers gnome
Wallpapers xp
wave1920x1200.jpg
we_walked_wth_giants1920.jpg
we_walked_wth_giants.jpg
┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> 
 
 ┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> ls ~/Images/fondsdebureaux/WallByDesk
20.png			  dunes_3.jpg	      Simple_Star_Field1920.jpg
board_sys_mail_time.jpg   Eol.jpg	      space_rosa.jpg
Burning_Zone_xp_nasa.jpg  Infinitys_End2.jpg  Time.jpg
DesertStation.jpg	  musical_Dunes.jpg   Weather_Landing.jpg
dunes_2.jpg		  Secret_Plan.jpg
┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> 
 

Dernière modification par ragamatrix (Le 11/04/2013, à 15:39)

Hors ligne

#56 Le 11/04/2013, à 16:29

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

encore des erreurs dans ton fichier fond

 feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing1.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_22.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time3.jpg 

change le ainsi

feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg 

ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#57 Le 11/04/2013, à 17:24

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ljere a écrit :

encore des erreurs dans ton fichier fond

 feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing1.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_22.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time3.jpg 

change le ainsi

feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg 

Merci pour ton aide mais je pense qu'il doit manquer un astuce...
Lorsque je change de bureau j'ai

 sh: 1: f: not found

dans le terminal.

Hors ligne

#58 Le 11/04/2013, à 17:43

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

dans chaque script wall il y a ~/.scripts/Wall/Voyager_Wall
ce script n'existe pas c'est sûrement la cause de ton message d'erreur


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#59 Le 11/04/2013, à 18:05

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ljere a écrit :

dans chaque script wall il y a ~/.scripts/Wall/Voyager_Wall
ce script n'existe pas c'est sûrement la cause de ton message d'erreur

Merci beaucoup de t'être penché sur cette idée de changement de fond d'écran sur chaque bureau.
Pour ce script manquant je crois qu'il faut voir ça avec Didier-T smile

Hors ligne

#60 Le 11/04/2013, à 18:48

metalux

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonjour,
Sauf erreur de ma part (et en ce moment j'en fais pas mal roll), Voyager_Wall n'est pas en cause, le script étant appelé que si $1 est non vide, c'est à dire qu'il sert dans Voyager quand on change les fonds par glisser/déposer sur les applets du panel, du coup cette partie peut-être supprimée sans soucis.
Par contre le changement de fond est initié avec wmctrl et tous tes scripts utilisent le bureau 1. Il faut changer wmctrl -s0 par wmctrl -s1 pour wall2, wmctrl -s2 pour wall3, etc...
Edit:

if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]

De même, cette ligne contrôle si on est pas sur le bureau courant, du coup il faut également l'adapter. Voici les scripts modifiés
Wall1

#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 0 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s0 &
fi
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
exit 0

Wall2

#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 1 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s1 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg
exit 0

Wall3

 #!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 2 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s2 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg
exit 0

Wall4

#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
if [[ ! $(wmctrl -d | grep '*' | cut -d " " -f1) -eq 3 ]]; then
    echo "1" > ~/.scripts/Wall/changement_dash
    wmctrl -s3 &
fi
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg
exit 0

Pour le script python, il faudrait voir avec Didier-T mais l'original me semble correct.

#! /usr/bin/python
# -*- coding: utf-8 -*-

import wnck
import gtk
import os


##Fonction qui modifie les fonds d'écrans au changement
def changement_de_bureau(screen, previous):
    homedir = os.path.expanduser('~')
    ## on récupère le bureau actif
    actif = screen.get_active_workspace()
    ## on récupère son index
    index = screen.get_workspace_index(actif)

    fichier = open(homedir+"/.scripts/Wall/changement_dash", "r")
    info = fichier.readline()
    fichier.close()

    if info == "0":
        if index == 0:
            os.system("~/.scripts/Wall/wall1")
        elif index == 1:
            os.system("~/.scripts/Wall/wall2")
        elif index == 2:
            os.system("~/.scripts/Wall/wall3")
        elif index == 3:
            os.system("~/.scripts/Wall/wall4")

    fichier = open(homedir+"/.scripts/Wall/changement_dash", "w")
    fichier.write("0")
    fichier.close()
    


##Lancement du daemon d'écoute
bureau = wnck.screen_get_default()
bureau.connect('active-workspace-changed', changement_de_bureau)
gtk.main()

Poste le retour de

cat ~/.scripts/Wall/fond 

et 

cat ~/.scripts/Wall/changement_dash 

Si changement_dash contient autre chose que 0 ou 1, renommes le changement_dash.old pour tester et relance le script. Si tu utilises le script modifié, attend l'intervention de Didier-T, le python et moi faisant 2.

Dernière modification par metalux (Le 11/04/2013, à 19:21)

Hors ligne

#61 Le 11/04/2013, à 19:34

Didier-T

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Bonsoir tous les trois,
et bien vous vous êtes déchaînés big_smile

ragamatrix, test ceci, et retourne les message du terminal, s'il te plait.
sa ne regleras rien, mais au moins sa donnera une idée de ce qui se passe.

#! /usr/bin/python
# -*- coding: utf-8 -*-

import wnck
import gtk
import os


##Fonction qui modifie les fonds d'écrans au changement
def changement_de_bureau(screen, previous):
    homedir = os.path.expanduser('~')
    ## on récupère le bureau actif
    actif = screen.get_active_workspace()
    ## on récupère son index
    index = screen.get_workspace_index(actif)

    fichier = open(homedir+"/.scripts/Wall/fond", "r")
    info = fichier.readlines()
    fichier.close()
    print info+" "+str(index)
    print info[index]
    os.system(info[index])

##Lancement du daemon d'écoute
bureau = wnck.screen_get_default()
bureau.connect('active-workspace-changed', changement_de_bureau)
gtk.main()

Dernière modification par Didier-T (Le 11/04/2013, à 20:48)

Hors ligne

#62 Le 11/04/2013, à 20:01

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

@Didier-T
Quand j'ai testé ce script mon curseur de souris a fait une croix et ma session a planté...
hmm
et cette erreur:

┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> '/home/climatix/.scripts/bureau.py' 
/home/climatix/.scripts/bureau.py: ligne 10: Erreur de syntaxe près du symbole inattendu « ( »
/home/climatix/.scripts/bureau.py: ligne 10: `def changement_de_bureau(screen, previous):'
┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─ 

Dernière modification par ragamatrix (Le 11/04/2013, à 20:04)

Hors ligne

#63 Le 11/04/2013, à 20:14

Didier-T

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ragamatrix a écrit :

@Didier-T
Quand j'ai testé ce script mon curseur de souris a fait une croix et ma session a planté...
hmm
et cette erreur:

┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> '/home/climatix/.scripts/bureau.py' 
/home/climatix/.scripts/bureau.py: ligne 10: Erreur de syntaxe près du symbole inattendu « ( »
/home/climatix/.scripts/bureau.py: ligne 10: `def changement_de_bureau(screen, previous):'
┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─ 

retire l'espace a la première ligne dans le script (la je rame)

Hors ligne

#64 Le 12/04/2013, à 05:23

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

pour le script python tu dois avoir ça

#! /usr/bin/python
# -*- coding: utf-8 -*-

import wnck
import gtk
import os


##Fonction qui modifie les fonds d'écrans au changement
def changement_de_bureau(screen, previous):
    homedir = os.path.expanduser('~')
    ## on récupère le bureau actif
    actif = screen.get_active_workspace()
    ## on récupère son index
    index = screen.get_workspace_index(actif)

    fichier = open(homedir+"/.scripts/Wall/changement_dash", "r")
    info = fichier.readline()
    fichier.close()
    print info+" "+str(index)
    
    if info == "0":
        if index == 0:
            os.system("~/.scripts/Wall/wall1")
        elif index == 1:
            os.system("~/.scripts/Wall/wall2")
        elif index == 2:
            os.system("~/.scripts/Wall/wall3")
        elif index == 3:
            os.system("~/.scripts/Wall/wall4")

    fichier = open(homedir+"/.scripts/Wall/changement_dash", "w")
    fichier.write("0")
    fichier.close()
    


##Lancement du daemon d'écoute
bureau = wnck.screen_get_default()
bureau.connect('active-workspace-changed', changement_de_bureau)
gtk.main()

avant de lancer ton script fait

echo '0' > ~/.scripts/Wall/changement_dash

puis lance proprement

cd ~/.scripts/ && python bureau.py

ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#65 Le 12/04/2013, à 09:13

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Merci les gars; je crois que je vais mettre ce script de coté (pas moyen d'avoir un résultat correct sur ma vieille machine) en attendant les modifs du script meteo de jpdipsy qui permettra je l'espère ce genre de resultat.

Hors ligne

#66 Le 12/04/2013, à 09:24

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ragamatrix si tu ne nous donnes pas les retour on va avoir du mal à t'aider
on sait que le script plante, c'est pour cela qu'on a ajouté un print dedans pour nous aiguiller mais sans retour ça va être difficile


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#67 Le 12/04/2013, à 09:37

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

ljere a écrit :

ragamatrix si tu ne nous donnes pas les retour on va avoir du mal à t'aider
on sait que le script plante, c'est pour cela qu'on a ajouté un print dedans pour nous aiguiller mais sans retour ça va être difficile

Désolé j'avais pas compris ça ... big_smile

retour:

 ┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> echo '0' > ~/.scripts/Wall/changement_dash
┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> cd ~/.scripts/ && python xdesk.py

(xdesk.py:16216): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:16216): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:16216): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:16216): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:16216): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE
0
 0
0 1
0 0
0 2
0 0
0 3
0 0
0 1
0 0

 

On dirait que les fonds changent lorsque je clique sur chaque bureau mais jamais de la même manière...
Lorsque je change de bureau je retourne automatiquement sur le premier avec une image différente.

Hors ligne

#68 Le 12/04/2013, à 09:43

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

alors on voit bien que le daemon en python fonctionne d’après ton retour

0 1
0 0
0 2
0 0
0 3
0 0
0 1
0 0

donc on sait maintenant que le problème vient des scripts bash wall* la commande de changement de fond ne doit pas être correct


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#69 Le 12/04/2013, à 09:57

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

on va faire simple remplace wall1
avec

#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
wmctrl -s0 &
feh --bg-fill ~/Images/fondsdebureaux/rosared_cosmos.jpg
exit 0

wall2

#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
wmctrl -s1 &
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/Weather_Landing.jpg
exit 0

wall3

#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
wmctrl -s2 &
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/dunes_2.jpg
exit 0

wall4

#!/bin/bash
# License GPL
# by rodofr Live Voyager
# Display the action selector
wmctrl -s3 &
feh --bg-fill ~/Images/fondsdebureaux/WallByDesk/board_sys_mail_time.jpg
exit 0

ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#70 Le 12/04/2013, à 10:17

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

Je crois qu'il n'y a plus d'erreurs:

 ┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> echo '0' > ~/.scripts/Wall/changement_dash
┌─( climatix ) - ( 3.2.0-40-generic ) - ( ~ )
└─> cd ~/.scripts/ && python xdesk.py

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE
0
 0
0 1
0 2
0 3
0 0

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE
0 1
0 2
0 3
0 0

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

(xdesk.py:22994): Wnck-WARNING **: Unhandled action type _OB_WM_ACTION_UNDECORATE

 

ça donne ça:
video_fonds
MERCI wink

Dernière modification par ragamatrix (Le 12/04/2013, à 10:17)

Hors ligne

#71 Le 12/04/2013, à 10:23

ljere

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

de rien comme je le dis toujours il faut simplifier wink
pour le script python plus besoin du print donc tu peux ajouter un #

#    print info+" "+str(index)

ou le laisser comme ça ce n'est pas gênant


ancien PC Toshiba satellite_c670d-11 / Linux Mint 21 Vanessa
Nouveau PC ASUS TUF GAMING A17 GPU RTX 4070 CPU AMD Ryzen 9 7940HS w/ Radeon 780M Graphics / Linux Mint 21.2 Victoria / Kernel: 6.4.8-1-liquorix / Desktop: Cinnamon

Hors ligne

#72 Le 13/04/2013, à 19:13

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

@golgot200
Cette idée m'a beaucoup intéressée il y a quelque temps; malheureusement un problème de consomation excessive de ressource était l'abandon de ce projet.
Un script lua réagissant au son du player genre equalizer années 80 smile  Il est nécessaire d'utiliser les "libs" impulse et libimpusle voir le "read-me" dans le pack que je te laisse découvrir (celles-ci y sont incluses dans le pack).
Je crois qu'il s'agissait de wlourf qui s'était investit dans ce projet ...
Pack_Conky_Equalizer
Bon test !

Dernière modification par ragamatrix (Le 13/04/2013, à 19:14)

Hors ligne

#73 Le 15/04/2013, à 22:37

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

J'aime bien les conky horizontaux; et je rencontre quelques difficultés pour tester celui-ci:
conky_horizontal
Si quelqu'un est interessé je poste l'archive

Hors ligne

#74 Le 16/04/2013, à 20:48

ragamatrix

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

J'ai fais un "mix" de mes deux scripts pour ne plus avoir d'erreur et de fuites de "ram".Ma machine ne peut pas afficher les températures même avec lm-sensors.
simplehorizon
plus_grand

Dernière modification par ragamatrix (Le 16/04/2013, à 20:51)

Hors ligne

#75 Le 17/04/2013, à 06:14

Didier-T

Re : [5] Conky : Postez vos conkyrc ou certaines parties intéressantes

bonjour golgot200,

je viens de regarder la vidéo de ton horloge.
pourrait tu me fournir tous les les scripts employés (conky, ring, etc...).
ainsi qu'un descriptif de ton pc (processeur vitesse quantité de ram).
je crois qu'il vas falloir ruser.

par contre, je ne comprend pas comment la trotteuse des secondes peut être en avance sur ton horloge, mais bon, sa doit pouvoir se synchroniser.

Hors ligne