This website requires JavaScript.
Explore
Help
Sign in
ryuslash
/
dotfiles
Watch
1
Star
0
Fork
You've already forked dotfiles
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
d8094dbd63
dotfiles
/
redshift
/
.config
/
X11
/
Xsession.d
/
redshift-gtk.sh
6 lines
109 B
Bash
Raw
Normal View
History
Unescape
Escape
Reorganize xsession and Xresources - Add xsession. Instead of requiring each of my machines to setup their own ‘.xsession’ add one that should work for all of them. - Use M4 for the Xresources database. I didn’t want the X11 project to be aware of all the configuration files that could be added in there and I was able to figure out how to have it load all of the configuration files in the ‘Xresources.d’ directory. Now each configuration can inject properties into the X resources database. - Have ‘.xsession’ load all of the scripts in ‘.config/X11/Xsession.d’. Each configuration can now inject some script to run when X starts. - Have ‘.xsession’ load a machine-specific script so that each machine can override what it does when X starts.
2020-04-27 06:01:48 +02:00
#!/usr/bin/env sh
Check if redshift-gtk exists before trying to run it
2020-12-27 08:13:49 +01:00
command
-v redshift-gtk
\
&&
(
pgrep redshift-gtk
\
||
{
redshift-gtk
&
}
)
Reference in a new issue
Copy permalink