Compare commits
No commits in common. "8e794ae50f4baf83cf1f9be3f742f4c7ecbe37f1" and "24acf99fe3b36ef735f02508e54b8002d75c7f26" have entirely different histories.
8e794ae50f
...
24acf99fe3
4 changed files with 14 additions and 31 deletions
|
|
@ -16,4 +16,6 @@ $(PROG): $(OBJS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS) parse.c
|
rm -f $(OBJS)
|
||||||
|
|
||||||
|
.PRECIOUS: parse.c
|
||||||
|
|
|
||||||
7
conf.c
7
conf.c
|
|
@ -283,7 +283,6 @@ void
|
||||||
conf_init(struct conf *c)
|
conf_init(struct conf *c)
|
||||||
{
|
{
|
||||||
const char *home;
|
const char *home;
|
||||||
char *xdg_config_home;
|
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
|
@ -327,11 +326,7 @@ conf_init(struct conf *c)
|
||||||
else
|
else
|
||||||
home = "/";
|
home = "/";
|
||||||
}
|
}
|
||||||
xdg_config_home = getenv("XDG_CONFIG_HOME");
|
xasprintf(&c->conf_file, "%s/%s", home, ".cwmrc");
|
||||||
if ((xdg_config_home == NULL) || (*xdg_config_home == '\0'))
|
|
||||||
xasprintf(&c->conf_file, "%s/%s", home, ".config/cwm/cwmrc");
|
|
||||||
else
|
|
||||||
xasprintf(&c->conf_file, "%s/%s", xdg_config_home, "cwm/cwmrc");
|
|
||||||
xasprintf(&c->known_hosts, "%s/%s", home, ".ssh/known_hosts");
|
xasprintf(&c->known_hosts, "%s/%s", home, ".ssh/known_hosts");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
20
cwm.1
20
cwm.1
|
|
@ -14,7 +14,7 @@
|
||||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: January 25 2026 $
|
.Dd $Mdocdate: July 20 2023 $
|
||||||
.Dt CWM 1
|
.Dt CWM 1
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
|
@ -39,7 +39,7 @@ Specify an alternative configuration file.
|
||||||
By default,
|
By default,
|
||||||
.Nm
|
.Nm
|
||||||
loads
|
loads
|
||||||
.Pa $XDG_CONFIG_HOME/cwm/cwmrc ,
|
.Pa ~/.cwmrc ,
|
||||||
if present.
|
if present.
|
||||||
Any error messages from lines in the configuration file will be sent to
|
Any error messages from lines in the configuration file will be sent to
|
||||||
.Em stderr ;
|
.Em stderr ;
|
||||||
|
|
@ -255,21 +255,16 @@ Show list of applications as defined in the configuration file.
|
||||||
Selecting an item will spawn that application.
|
Selecting an item will spawn that application.
|
||||||
.El
|
.El
|
||||||
.Sh ENVIRONMENT
|
.Sh ENVIRONMENT
|
||||||
.Bl -tag -width "XDG_CONFIG_HOME" -compact
|
.Bl -tag -width "DISPLAYXXX" -compact
|
||||||
.It Ev DISPLAY
|
.It DISPLAY
|
||||||
.Nm
|
.Nm
|
||||||
starts on this display unless the
|
starts on this display unless the
|
||||||
.Fl d
|
.Fl d
|
||||||
option is given.
|
option is given.
|
||||||
.It Ev XDG_CONFIG_HOME
|
|
||||||
determines the default location of the configuration file.
|
|
||||||
If unset or empty,
|
|
||||||
.Pa ~/.config/cwm/
|
|
||||||
is used as the value.
|
|
||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width "$XDG_CONFIG_HOME/cwm/cwmrc" -compact
|
.Bl -tag -width "~/.cwmrcXX" -compact
|
||||||
.It Pa $XDG_CONFIG_HOME/cwm/cwmrc
|
.It Pa ~/.cwmrc
|
||||||
Default
|
Default
|
||||||
.Nm
|
.Nm
|
||||||
configuration file.
|
configuration file.
|
||||||
|
|
@ -294,7 +289,6 @@ was developed by
|
||||||
with contributions from
|
with contributions from
|
||||||
.An Andy Adamson Aq dros@monkey.org ,
|
.An Andy Adamson Aq dros@monkey.org ,
|
||||||
.An Niels Provos Aq provos@monkey.org ,
|
.An Niels Provos Aq provos@monkey.org ,
|
||||||
.An Antti Nyk\(:anen Aq aon@iki.fi ,
|
|
||||||
and
|
and
|
||||||
.An Lilianna Smólska Aq afiw@linuxposting.xyz .
|
.An Antti Nyk\(:anen Aq aon@iki.fi .
|
||||||
Ideas, discussion with many others.
|
Ideas, discussion with many others.
|
||||||
|
|
|
||||||
14
cwmrc.5
14
cwmrc.5
|
|
@ -14,7 +14,7 @@
|
||||||
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: January 25 2026 $
|
.Dd $Mdocdate: August 20 2025 $
|
||||||
.Dt CWMRC 5
|
.Dt CWMRC 5
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
|
@ -452,17 +452,9 @@ Move pointer 10 times
|
||||||
.Ar moveamount
|
.Ar moveamount
|
||||||
pixels left.
|
pixels left.
|
||||||
.El
|
.El
|
||||||
.Sh ENVIRONMENT
|
|
||||||
.Bl -tag -width "XDG_CONFIG_HOME" -compact
|
|
||||||
.It Ev XDG_CONFIG_HOME
|
|
||||||
determines the default location of the configuration file.
|
|
||||||
If unset or empty,
|
|
||||||
.Pa ~/.config/cwm/
|
|
||||||
is used as the value.
|
|
||||||
.El
|
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width "$XDG_CONFIG_HOME/cwm/cwmrc" -compact
|
.Bl -tag -width "~/.cwmrcXXX" -compact
|
||||||
.It Pa $XDG_CONFIG_HOME/cwm/cwmrc
|
.It Pa ~/.cwmrc
|
||||||
Default
|
Default
|
||||||
.Xr cwm 1
|
.Xr cwm 1
|
||||||
configuration file.
|
configuration file.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue