Steps:
Code:
#!/bin/bash xgamma -ggamma 0.9 -bgamma -0.75
There are many other ways to run programs at "startup", but you don't really want that - it is important to wait until login to run this, since X/Windows may not be ruing previously and well there are 50 other reasons NOT to do it elsewhere. Linux is a multi-user OS and logins don't just happen on the machine directly. Remote coections are also used by many people, plus a ruing system may not have any end-users logged in for days, weeks, months ....
BTW, we call "bat files" "shell scripts" in the Unix world. There are 20+ different scripting languages commonly used for this stuff, but bash is fine for something this tiny and for most things like this. "How to make a script that runs a command after X11 login" is what I would have asked. Not really THAT different, but technically, extremely different. ![]()
Anyway, hope this helps. If the script doesn't seem to work, change the first line to #/bin/bash -x to see what isn't working.
- - , .
برچسب:
نویسنده: استخدام کار