Browse Source

Add default config file

tags/v3.2.13
Peter Munch-Ellingsen 2 years ago
parent
commit
f8b4af38dd
3 changed files with 66 additions and 4 deletions
  1. +5
    -2
      Makefile
  2. +60
    -0
      default.conf
  3. +1
    -2
      xlunch.c

+ 5
- 2
Makefile View File

@@ -15,15 +15,18 @@ install: xlunch
cp docs/logo.png $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/xlunch.png
cp xlunch $(DESTDIR)/usr/bin/
cp extra/genentries $(DESTDIR)/usr/bin
cp extra/updateentries $(DESTDIR)/usr/bin
cp extra/genentries.desktop $(DESTDIR)/usr/share/applications/
cp extra/default.conf $(DESTDIR)/etc/xlunch/default.conf
bash extra/genentries --path $(DESTDIR)/usr/share/xlunch/svgicons/ > $(DESTDIR)/etc/xlunch/entries.dsv
cp -r svgicons/ $(DESTDIR)/usr/share/xlunch/ 2>/dev/null || :

remove:
rm -r $(DESTDIR)/etc/xlunch
rm -r $(DESTDIR)/usr/share/xlunch
rm -r $(DESTDIR)/usr/bin/xlunch
rm -r $(DESTDIR)/usr/bin/genentries
rm $(DESTDIR)/usr/bin/xlunch
rm $(DESTDIR)/usr/bin/genentries
rm $(DESTDIR)/usr/bin/updateentries
rm $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/xlunch_ghost.png
rm $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/xlunch.png
rm $(DESTDIR)/usr/share/applications/genentries.desktop


+ 60
- 0
default.conf View File

@@ -0,0 +1,60 @@
## This file is never implicitly used, it just serves as a reference to the
## available configuration options. Copy this file to e.g.
## ~/.config/xlunch/xlunch.conf and make your own changes. Options that are
## commented out are either switches that are turned on by the presence of an
## option, or options that takes a value but defaults to empty or has special
## meaning when no option is given. Simply uncomment the options you want and
## set them to the required value. Note that strings are not delimited by
## quotes, all values are read until the end of the line but whitespace is
## trunkcated from the front. To see what the options do, refer to
## `xlunch --help` or see http://xlunch.org

# desktop
# noprompt
# outputonly
# selectonly
# multiple
# voidclickterminate
# focuslostterminate
# dontquit
# reverse
# windowed
# clearmemory
# shortcuts: <list of characters>
# button: <list of buttons definitions>
# scroll

# xposition: 0
# yposition: 0
# width: 0
# height: 0
prompt: Run:
# font: OpenSans-Regular/10
# promptfont: OpenSans-Regular/10
# rootwindowbackground
# background: file.png/jpg
# bgfill
# highlight: file.png/jpg
iconpadding: 10
# iconvpadding: 10
textpadding: 10
# columns: 1
# rows: 1
# border: 0
# sideborder: 0
borderratio: 50
# sideborderratio: 50
# center
promptspacing: 48
iconsize: 48
# textafter
# textotherside
# upsidedown
# paddingswap
# leastmargin: 0
# leastvmargin: 0
# hidemissing
textcolor: ffffffff
promptcolor: ffffffff
backgroundcolor: 2e3440ff
highlightcolor: ffffff32

+ 1
- 2
xlunch.c View File

@@ -1449,7 +1449,7 @@ void parse_config(FILE *input) {
if(readstatus <= 0){
break;
}
if(b == ':' || b == '\n') {
if((b == ':' && optarg == NULL) || b == '\n') {
if (b == '\n') eol = 1;
b = '\0';
}
@@ -1958,7 +1958,6 @@ void init(int argc, char **argv)

if (least_v_margin == -1) least_v_margin = least_margin;
if (icon_v_padding == -1) icon_v_padding = icon_padding;
//parse_config(fopen("/home/peter/.xlunchrc", "rb"));

/* connect to X */
disp = XOpenDisplay(NULL);


Loading…
Cancel
Save