Code: Select all
--maxtextlength 18 --column 8
Code: Select all
--maxtextlength 18 --column 8
Code: Select all
xlunch --scroll --dontquit -W --border 6% --sideborder 6% --borderratio 50 --sideborderratio 50 \
--background /usr/share/wallpapers/xlunch.jpg \
--iconpadding 1 --leastmargin 80 --leastvmargin 1 --maxtextlength 18 \
--paddingswap --iconsize 48 --textpadding 1 \
--highlight /usr/share/icons/hicolor/48x48/apps/highlight.png
Code: Select all
imlib_add_path_to_font_path("/usr/share/fonts");
imlib_add_path_to_font_path("/usr/local/share/fonts");
imlib_add_path_to_font_path("/usr/share/fonts/truetype");
imlib_add_path_to_font_path("/usr/share/fonts/truetype/dejavu");
imlib_add_path_to_font_path("/usr/share/fonts/TTF");
imlib_add_path_to_font_path("/usr/share/fonts/default/TTF");
I'm running Fatdog with cwm, so the default desktop is nothing but a mouse pointer (+ whatever wallpaper you might like to add). More often my 'wallpaper' is a video (music) i.e. maximised window - cwm adds no window decorations). Can't get much cleaner than that Exec key + first few letters of a program name usually filters down to a single program.musher0 wrote:I asked out of curiosity. My own esthetics for a desktop is for it to be as clean as possible. I was wondering what the fascination was with Xlunch.
Code: Select all
#!/bin/sh
# Retreive screen height
SCREEN_HEIGHT=`xwininfo -root|sed '/Height/!d;s/.* //'`
# subtract 1 as 0..899 for 900 xwininfo height screen
SCREEN_HEIGHT=`expr ${SCREEN_HEIGHT} - 1`
BOTTOM_LEFT="0x${SCREEN_HEIGHT}"
TOP_LEFT="0x0"
while : ;do
CURRENT_MOUSE_POSITION=`xdotool getmouselocation | sed 's/ sc.*//; s/.://g; s/ /x/'`
if [ "$CURRENT_MOUSE_POSITION" = "$BOTTOM_LEFT" ]; then
skippy-xd
else
if [ "$CURRENT_MOUSE_POSITION" = "$TOP_LEFT" ]; then
# Assumes bind-key M-w "~/xlunch.sh" ... is set in .cwmrc
xdotool mousemove 120 160 # move mouse away from corner so doesn't retrigger
xdotool key alt+w space # key combination to launch xlunch
fi
fi
sleep 0.2
done
Code: Select all
#!/bin/sh
# xlunch.sh
~/xlunch --input /root/.config/xlunch/entries.dsv --scroll --columns 5 --font /usr/share/fonts/X11/TTF/DejaVuSerif.ttf/14
Code: Select all
# .cwmrc
#
gap 2 0 0 0
ignore xclock
ignore xload
color inactiveborder Black
color activeborder "#494949"
color groupborder "#01a252"
color urgencyborder "#3d9751"
color selfont "#0034A9"
color font "#FFFFFF"
color menufg "#49F6F6"
color menubg "#333333"
#fontname "DejaVu Sans:size=11:antialias=true"
fontname "News10:size=11:antialias=true"
bind-key CM-comma "mixerctl outputs.master=-5"
bind-key CM-period "mixerctl outputs.master=+5"
#bind-key M-w menu-cmd
bind-key M-w "/root/xlunch.sh"
bind-key M-s "skippy-xd"
command " xkill " "xkill"
command " xterm " "xterm"
command " seamonkey-spot " "seamonkey-spot"
command " seamonkey-root " "seamonkey"
command " geany " "geany"
command " rox " "rox"
command " mc " "xterm mc"
command " mtpaint " "mtpaint"
command " htop " "xterm htop"
command " galculator " "galculator"
command " scalc " "soffice --calc"
command " writer " "soffice --writer"
command " control panel " "fatdog-control-panel.sh"
command " isomaster " "isomaster"
command " pburn " "pburn"
command " peasy disc " "peasydisc"
command " mount sr0 " "/bin/mount /dev/sr0 /mnt/sr0"
command " umount sr0 " "/bin/umount /mnt/sr0"
command " exit " "pkill cwm"
It sort of works except I get a dark grey background and lots of ghost(...)
Could not load icon /mnt/ram1/Xlunch-scottman/usr/share/xlunch/svgicons//package_compressed.png, Imlib failed with: IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST
Could not load icon /mnt/ram1/Xlunch-scottman/usr/share/xlunch/svgicons//file_compare.png, Imlib failed with: IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST
Could not load icon /mnt/ram1/Xlunch-scottman/usr/share/xlunch/svgicons//xkill.png, Imlib failed with: IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST
Could not load icon /mnt/ram1/Xlunch-scottman/usr/share/xlunch/svgicons//screen_lock.png, Imlib failed with: IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST
Could not load icon /mnt/ram1/Xlunch-scottman/usr/share/xlunch/svgicons//graphics.png, Imlib failed with: IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST
Could not load icon /mnt/ram1/Xlunch-scottman/usr/share/xlunch/svgicons//xpdf.png, Imlib failed with: IMLIB_LOAD_ERROR_FILE_DOES_NOT_EXIST
Running command: sqlite3.sh
Code: Select all
[~]>ls /usr/share/xlunch/svgicons/
book_dictionary.png firewall.png pgprs.png
book.png floppy.png photocamera.png
card_pci.png font.png power.png
cd_burn.png go.png preferences.png
cd_rip.png graphics.png print.png
cdrom.png harddisk.png puppy_config.png
clipit-trayicon.png install.png puppy_increase.png
clock_countdown.png internet_connect.png puppy_remaster.png
clock_interval.png internet_connect_yes.png screen_lock.png
copy_disk.png listdd.png screen_resolution.png
country_language.png menu.png sound_mixer.png
country_timezone.png mouse_keyboard.png sound.png
date_time.png network.png speaker_2.png
dialog_stop.png open.png startup_app.png
directory_execute.png package_add.png startup.png
execute_inspect.png package_compressed.png terminal.png
execute.png package_inspect.png touchpad.png
file_compare.png package_remove.png user_login.png
file_lock.png partition.png xkill.png
find.png pdf.png xpdf.png
Sounds like xlunch isn't filling the screen in your case (I have no panel or other desktop items, so have no reference in my case). I see that the xlunch web site does have some text about screensmusher0 wrote:@rufwoof: this xlunch was run with echinus as the WM; the line on top is the ourico panel/bar, which is part of echinus. (As shown in screen cap.)/ And xlunch has a title bar in echinus (it should not, right?).
Multi monitor setup
xlunch does not know how to detect your output monitors, it sees your monitors as a big single screen. If you run it, your window manager positions the window and makes it fullscreen, so it is up to your window manager to decide what monitor xlunch runs on. If you, however configure your WM to make xlunch floating, start xlunch in Desktop mode (which bypasses your window manager) or if you do not have any WM at all, you can customize the size and position of the window manually by providing the top/left coordinates and width/height of your monitor screen, which effectively positions xlunch on the desired place/monitor. Use the following
-x, --xposition The x coordinate of the launcher window
-y, --yposition The y coordinate of the launcher window
-w, --width The width of the launcher window
-h, --height The height of the launcher window
For example, if you have two 800x600 monitors side by side, xlunch sees it as 1600x800. You can put it to first monitor by: -x 0 -y 0 -w 800 -h 600, or to second monitor by using -x 800 -y 0 -w 800 -h 600. Remember that all these settings might be overridden by your window manager unless you start xlunch in Desktop mode. Another thing that is helpful is that xlunch sets three distinct WM_CLASS values, "xlunch-fullscreen" for it's default mode, "xlunch-desktop" for the desktop mode, and "xlunch-windowed" for it's windowed mode. This makes it easy to tell your window manager to treat each of the different kinds properly. Alternatively you can use the --name option or the environment variable RESOURCE_NAME to set the first part of WM_CLASS, note however that this value is also the program called by :recur.