Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Eseguire comandi all'avvio - .xsessionrc?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
pingoo
Guru
Guru


Joined: 11 Jul 2006
Posts: 324

PostPosted: Tue Mar 27, 2012 8:21 pm    Post subject: Eseguire comandi all'avvio - .xsessionrc? Reply with quote

Ciao, vorrei eseguire dei comandi ad ogni accesso grafico, al momento uso gdm/gnome 3 ma sarebbe preferibile una soluzione generica. Dalle ricerche avrebbe dovuto essere sufficiente creare il file .xsessionrc ma non pare eseguire nulla.
Code:

xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2
xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Axes" 8 6 7 4 5

Gli stessi comandi funzionano correttamente eseguite direttamente. Idee?
Back to top
View user's profile Send private message
Zizo
Apprentice
Apprentice


Joined: 04 Feb 2010
Posts: 200
Location: Padova, Italy

PostPosted: Tue Mar 27, 2012 8:52 pm    Post subject: Reply with quote

Per iniziare potrebbe essere d'aiuto
Code:
man xinit

anche se personalmente utilizzo la cartella "/etc/X11/xinit/xinitrc.d".
Back to top
View user's profile Send private message
ago
Developer
Developer


Joined: 01 Mar 2008
Posts: 1527
Location: Milan, Italy

PostPosted: Wed Mar 28, 2012 9:02 am    Post subject: Reply with quote

Puoi screare uno script bash, con i comandi che desideri e aggiungerlo ad avvio automatico(menu di gnome).
Back to top
View user's profile Send private message
pingoo
Guru
Guru


Joined: 11 Jul 2006
Posts: 324

PostPosted: Thu Mar 29, 2012 7:29 pm    Post subject: Reply with quote

@zizo: non ho individuato come usare xinit, in particolare dal manuale mi pare abbia senso quando non è in uso un display manager, nel mio caso gdm3. L'altra soluzione non mi piace molto, vorrei più una cosa per utente, ma per il momento mi sa che la userò ;)
@ago: in realtà ho gnome3 ma la versione dietetica :) e non ho trovato nulla a riguardo. Poi preferirei qualcosa che funzionasse anche se decidessi di avviare ad es. fluxbox o chi per lui
Back to top
View user's profile Send private message
cloc3
Advocate
Advocate


Joined: 13 Jan 2004
Posts: 4787
Location: http://www.gentoo-users.org/user/cloc3/

PostPosted: Thu Mar 29, 2012 7:38 pm    Post subject: Reply with quote

pam_exec ?
_________________
vu vu vu
gentù
mi piaci tu
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum