Help with eclipse Qt4 pkgbuild [solved]
Hello!
I want to use qt integration with eclipse.
I looked in Aur and found a pkgbuild but he is out of date so I decided to modify it and
I would like to ask someone to look at it to be sure I did a right job.
I always fear to kill permission when I play with abs
The pkgbuild:
# Contributor: Alex Rodin <[email protected]>
# Contributor: Shaika-Dzari <[email protected]>
pkgname=eclipse-qt4
pkgver=1.0.1
pkgrel=1
pkgdesc="Qt4 integration for Eclipse"
arch=('i686')
url="http://trolltech.com/company/newsroom/announcements/press.2007-05-24.8884335791"
license=('custom')
depends=('eclipse>=3.2.1' 'eclipse-cdt>=3.1.1' 'qt4')
provides=('qt4eclipse')
source=("http://trolltech.com/developer/download/qt-eclipse-integration-linux.x86-$pkgver.tar.gz")
md5sums=('d01ad9bc4cd953340b9db806f49dac8f')
build()
mkdir -p $startdir/pkg/usr/share/eclipse
cp -R $startdir/src/eclipse/plugins $startdir/pkg/usr/share/eclipse
mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
cp $startdir/src/eclipse/features/com.trolltech.qtcpp.feature_1.0.1/license.txt $startdir/pkg/usr/share/licenses/$pkgname/COPYNG
I changed:
* new version 1.0.1
* new download url
* switch to /usr/share for eclipse plugins
Thank you for your help.
@+
Last edited by Shaika-Dzari (2008-01-10 01:29:05)
Merci Snowman
Similar Messages
-
Guys.... I don't know if this is the place to ask about this... this is not really a programming related?.. but I am kinda getting sick of netbeans GUI slowness... so I decided to give eclipse a whirl, I got it installed, the thing is that it is not recognizing any of the webservices API's and since I happen to be working with servlets.. This is some what important... If anyone has any experience with eclipse... I would like to know how to point it at the webservice API... more importantly where the hell the API is in jakarta.... so if anyone can help me with this it would be greatly appriciated.. I know it is not a SUN java related programming question..
has anything changed much from eclipse 2.1.3 ?????A LOT. Yes. The 3.0 release is a very different beast.
You don't normally "compile" as such. The compilation happens as you write the code, so that errors can be detected and reported dynamically. It is possible to build all projects, or to turn off runtime compilation and do individual project builds - but I don't recommend it unless you have a very slow machine. You'll get used to it, then grow to love it.
The compile errors thing is dead handy too - you can filter out errors/warnings you're not interested in, but far better to leave them all on so that your resulting code produces no warnings. It's also nice to be able to add a "//TODO:" tag to something and have it listed so that you don't forget to do it. I use that one a lot (I think the idea comes from Visual Studio originally)
Dave. -
Help with my first PKGBUILD script [solved]
Hi There
I am trying to write my first PKGBUILD script and I am landing in a bit of trouble. The script is short and is:
#Contributor: iKevin <kellwood-at-ameritech.net>
pkgname=fpm
pkgver=0.60
pkgrel=1
pkgdesc="A password manager for gnome"
url="http://fpm.sourceforge.net"
license="GPL"
depends=('xorg' 'gtk' 'glibc' 'libgnome' 'libxml2' 'glib')
source=(http://heanet.dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=(be7655d300c306c8f962f6aad0a60cc5)
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr
make || return 1
mkdir -p $startdir/pkg/usr/bin
make prefix=$startdir/pkg/usr install
I haven't reach the point where it compiles. It failes to download the file. Oddly, when I type:
wget http://heanet.dl.sourceforge.net/source … .60.tar.gz
it downloads fine. When running makepkg, the contents of ./src/fpm-0.60.tar.gz is some kind of web page.
I have eyeballed this PKGBUILD script for a while and I can't see any problems. Is there something special about sourceforge files? I feel that I must have a typo because makepkg is using wget, which works by hand.
Thanks
KevWell,
I installed kedpm with my first working PKGBUILD script. I was able to import my "fpm" password file. Once I get my gnucash stuff transfered into grisbi, I will be able to switch my main machine completely to archlinux.
I know it is trivial for you guys, but here is my script -- it might save you some typing.
Kev
pkgname=kedpm
pkgver=0.4.0
pkgrel=1
pkgdesc="Ked Password Manager helps to manage large amounts of passwords and related information"
url="http://kedpm.sourceforge.net/"
depends=(python pygtk pycrypto)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('6b83a646873f8ea00af9c6403aa259bc')
build() {
cd $startdir
mkdir -p pkg/usr
cd $startdir/src/$pkgname-$pkgver
python setup.py install --prefix=$startdir/pkg/usr -
Help with eclipse installation, please!
I usually use dreamweaver but now I have to use eclipse. I'm
so confuse as where to start. I've googled for guide to eclipse
installation but not sure what to do.
Here is what I found:
On this link
http://www.cs.umd.edu/class/spring2006/cmsc132/EclipseTutorial/install.html
it says I have to first install jdk-1_5_0_04-windows-i586-p.exe but
I can't download this file because I'm not their student. I looked
around everywhere and can't find this file for download.
Then I thought I may be just download eclipse from
http://www.eclipse.org/downloads/
When I clicked download, I'm face with anothe confusing page,
I'm not sure which one to choose.
Do I have to download : Eclipse Classic 3.4.1 (151 MB) ? how
about JDK?
I searched for JDK on my machine and I did not see any jdk
except jdk12utils folder, jdk118 folder, jdk122 folder and jaguar
server (jdk1.2). There a re a bunch of other jdk such as JDK_JJ,
JDK_VJ, etc
I need to use eclipse just to develop web application with
coldfusion (locally) and databse Sybase and that is it. No java no
nothing and I'm no java person so these things confuse me, please
help!
Oh by the way, I also read somewhere that once I installed
eclipse I need to install the CFEclipse.
Please help!!!!>
http://www.cs.umd.edu/class/spring2006/cmsc132/EclipseTutorial/install.html
it
> says I have to first install
jdk-1_5_0_04-windows-i586-p.exe but I can't
> download this file because I'm not their student. I
looked around everywhere
> and can't find this file for download.
Really? I just Googled "jdk-1_5_0_04-windows-i586-p.exe" and
found rather
a lot of matches. One can download it from the very first
link.
There are more recent versions of Java than that, though.
If you ever need to download a JDK, the Java website is
perhaps the best
bet (java.sun.com).
> Do I have to download : Eclipse Classic 3.4.1 (151 MB) ?
how about JDK?
> I searched for JDK on my machine and I did not see any
jdk except jdk12utils
> folder, jdk118 folder, jdk122 folder and jaguar server
(jdk1.2). There a re a
> bunch of other jdk such as JDK_JJ, JDK_VJ, etc
OK, some background. Eclipse is a Java application, so to run
it, one
needs Java installed.
If you don't already have a JDK installed, then the option
you want is the
one WITH the JDK, because that will definitely be the a
suitbale version to
run Eclipse one. One might not want to D/L the version
bundled with a JDK
if one already has the same or more recent JDK installed.
> Oh by the way, I also read somewhere that once I
installed eclipse I need to
> install the CFEclipse.
> Please help!!!!
Well: start by googling CFEclipse. On the website for it,
there'll be a
D/L as well as instructions. It's pretty straight fwd, if one
reads the
instructions.
Adam -
I need help with my peazip pkgbuild
I made a working peazip package for x64 http://aur.archlinux.org/packages.php?ID=43920
There are few problem when archiving:
1)The option "Tar before" doesn't work (both in peazip console and system console)..This is the peazip commandline:
(11ss is a folder)
/opt/peazip/res/7z/7z a -tbzip2 -mmt=on -mx5 -md=900k -mpass=1 /home/xxx/11ss.tar.bz2 /home/xxx/11ss.tar
7-Zip 9.13 beta Copyright (c) 1999-2010 Igor Pavlov 2010-04-15
p7zip Version 9.13 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)
Scanning
/home/xxx/11ss.tar: WARNING: No more files
Creating archive /home/xxx/11ss.tar.bz2
WARNINGS for files:
/home/xxx/11ss.tar : No more files
WARNING: Cannot find 1 file
System error:
E_INVALIDARG
In windows the equivalent commandline does work:
"C:\Documents and Settings\Administrator\Desktop\peazip_portable-3.5.WINDOWS\peazip_portable-3.5.WINDOWS\res\7z\7z.exe" a -tbzip2 -mx5 -md=900k -mpass=1 -sccUTF-8 "C:\Documents and Settings\Administrator\Desktop\xxx\ifoupdate-v078.tar.bz2" "C:\Documents and Settings\Administrator\Desktop\xxx\ifoupdate-v078.tar"
Same problem with balz and others:
$balz e /home/xxx/11ss.tar /home/xxx/11ss.tar.balz balz v1.15 by ilia muraviev
/home/xxx/11ss.tar: No such file or directory
2)Arc compressor doesn't find sfx modules (both in peazip console and system console)..peazip commandline:
/opt/peazip/res/arc/arc a -m9 -s -rr -sfxarc-mini.linux.sfx -ae=aes /home/xxx/11ss-1.arc /home/xxx/11ss
ERROR: SFX module arc-mini.linux.sfx is not found
$ls /opt/peazip/res/arc/
arc arc-mini.sfx freearc-installer.sfx
arc.groups arc.sfx freearc-mini.sfx
arc.ini arc-tiny.linux.sfx freearc.sfx
arc.linux.sfx arc-tiny.sfx freearc-tiny.sfx
arc-mini.linux.sfx freearc-installer-nodelete.sfx note.txt
3)Zpaq doesn't find its configuration file (in peazip console) but it works in my system console
/opt/peazip/res/zpaq/zpaq a'/opt/peazip/res/zpaq/max.cfg' /home/xxx/orario.odt.zpaq /home/xxx/orario.odt
'/opt/peazip/res/zpaq/max.cfg': No such file or directory
$ /opt/peazip/res/zpaq/zpaq a'/opt/peazip/res/zpaq/max.cfg' /home/xxx/orario.odt.zpaq /home/xxx/orario.odt
246.296 MB memory required.
/home/xxx/orario.odt 18411 -> 16637
-> 16637
Memory utilization:
0 const 160
1 icm 5: 271/2048 (13.23%)
2 isse 13 1: 41682/524288 (7.95%)
3 isse 16 2: 154323/4194304 (3.68%)
4 isse 18 3: 163030/16777216 (0.97%)
5 isse 19 4: 165052/33554432 (0.49%)
6 isse 19 5: 166734/33554432 (0.50%)
7 isse 20 6: 169564/67108864 (0.25%)
8 match 22 24: buffer=18412/16777216 index=17015/4194304 (0.41%)
9 icm 17: 10921/8388608 (0.13%)
10 isse 19 9: 46453/33554432 (0.14%)
11 icm 13: 41757/524288 (7.96%)
12 icm 13: 41867/524288 (7.99%)
13 icm 13: 41862/524288 (7.98%)
14 icm 14: 118267/1048576 (11.28%)
15 mix 16 0 15 24 255: 342200/983040 (34.81%)
16 mix 8 0 16 10 255: 3941/4096 (96.22%)
17 mix2 0 15 16 24 0: 1/1 (100.00%)
18 sse 8 17 32 255: 1173/8192 (14.32%)
19 mix2 8 17 18 16 255: 254/256 (99.22%)
20 sse 16 19 32 255: 38793/2097152 (1.85%)
21 mix2 0 19 20 16 0: 1/1 (100.00%)
Process time 5.16 sec. Wall time 6 sec.pkgbuild in aur deleted??
-
Noob requires help with keyboard troubles! [SOLVED]
Hey, I'm currently unable to use the backslash "\" (Incase you wonder, I had to Google that and copypasta) key within any apps/tty1 or anything. At the moment all I get is "<" :L
Thanks in advance.
{EDIT: Solved by using "setkbxmap gb" at ~/.xinitrc
Last edited by Jebus_ (2010-01-06 13:49:38)Trent wrote:Is this a software problem or does it occur under other operating systems/LiveCDs? If that's your only symptom, I'd be inclined to blame it on a faulty keyboard.
Same exact hardware config used to be fine with winblows/ubuntu. So I'm guessing its something to do with how my arch is configured at the moment? -
Basic help with setting up apache [SOLVED]
Hi,
I don't know if the problem is directory permissions or in configuring httpd.conf, but I would like to change the document root of my apache server to my (encrypted) home partition at /home/kilolima/www. However, after changing the document root in httpd.conf and adding user http (which apache runs under) to the users group (every file in my home directory is in the users group), I still get Access Forbidden errors. Is there a step I am missing here? I also thought I could add a symlink from /var/www to /home/kilolima/www and make that the document root but that doesn't seem to work either.
Oh, and is there something else I have to change in the config to get php working?
(I can't get the wiki to load at all, so if this is already spelled out there I apologize)
Cheers,
kilolima
Last edited by kilolima (2009-03-10 20:57:34)Take a look at this thread: http://bbs.archlinux.org/viewtopic.php?id=61583
You need to either make all directories along the path to the document root executable by other users (http) or you need to mount your root directory somewhere else. I would highly recommend using bindfs to do that as you can change the permissions of the files as they appear at the mount point (e.g. make them read-only even though they might be writable in their original location).
As for php, I'm not sure but I think you need to specify in which directories it's allowed to execute somewhere in the configuration file. I remember having seen something about a given set of default directories and anything outside of them requiring explicit permissions.
I hope this helps. -
[SOLVED] help with PKGBUILD-svn
I am able to build a python-based package from svn using bash, but am having a problem writing the PKGBUILD. The bash commands are as follows:
svn co http://svn.berlios.de/svnroot/repos/wsjt/branches/wspr
cd wspr
export PYTHON="/usr/bin/python2"
export F2PY="/usr/bin/python2 f2py.py"
./configure --enable-gfortran --prefix=/usr
make
and this works fine. Following the ABS PKGBUILD-svn.proto template, I came up with the following PKGBUILD:
pkgname=wspr-svn
pkgver=1
pkgrel=1
pkgdesc="Weak Signal Propagation Reporter"
arch=('any')
url="http://physics.princeton.edu/pulsar/K1JT/wsjt.html"
license=('GPL')
optdepends=('g95')
depends=('python2' 'python-imaging' 'python2-numpy' 'libsamplerate' 'portaudio' 'fftw')
makedepends=('subversion')
_svntrunk="http://svn.berlios.de/svnroot/repos/wsjt/branches/wspr"
_svnmod="wspr"
build() {
export PYTHON="/usr/bin/python2"
export F2PY="/usr/bin/python2 f2py.py"
cd "$srcdir"
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_svnmod-build"
cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
./configure --prefix=/usr --enable-gfortran
make
but get stuck with the following error:
Found executable /usr/bin/gfortran
error: unknown file type '' (from '-Wl,--hash-style=gnu')
make: *** [WsprMod/w.so] Error 1
Aborting...
I've been googling for hours, but feel like I might be getting in over my head. I suspect I'm missing something trivial since everything is in place for a successful build.
Last edited by sportscliche (2011-03-14 11:03:38)Thanks for the fast reply Snowman. You had the right idea. Although your suggested edit did not work, the following line did:
unset LDFLAGS
I got this from the discussion here:
https://bbs.archlinux.org/viewtopic.php?pid=668971
(Note: in that thread there is an alternative approach suggested by Ranguvar:
export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
export LDFLAGS="${LDFLAGS//,--as-needed}"
export LDFLAGS="${LDFLAGS//--as-needed}"
which did not work for me.)
The PKGBUILD concludes with:
package() {
cd "$srcdir/$_svnmod-build"
sudo make DESTDIR="$pkgdir/" install
This runs makepkg -s to completion although I get a warning about a reference to $srcdir. Performing pacman -U on the tarball installs python files in /usr/lib/python2.7/site-packages/WsprMod and adds wspr.py in /usr/bin/. Launching the program with python2 wspr.py leads to an immediate segmentation fault. After the manual build, all the files were in the same directory. I tried moving everything into the same python directory and still got the seg fault.
When I built manually, I did not have to do a sudo make install. If I leave out this step in PKGBUILD, however, setup.py does not run and the package doesn't install anything. So I tried this instead
package() {
cd "$srcdir/$_svnmod-build"
python2 setup.py install --root=$pkgdir/ --optimize=1
which aborts makepkg because of file conflicts.
Can anyone see what I'm doing wrong? -
I need your help with solving a non-standard solutions.
Hello!
I need your help with solving a non-standard solutions.
My name is Andrii and I represent the civil charity. Not so long ago, one man gave us the iPhone 4S (as a donation).
But later - it became known that this iPhone can not work with SIM cards Ukrainian mobile network operators, as it is blocked by Verizon.
Is there a way to unlock it with your help, and how it can be done?
I hope for your understanding and assistance in this matter!
Thank you.Contact a third party unlocking service.
Purchase an unlocking code. -
Problem with Eclipse -- pls help
hi
When i execute the application in debug mode with one break point :
These are the errors i get and the compiler is not stopping at the break point .
Pls help :
Thread [main] (Suspended (exception ClassNotFoundException))
ClassLoader.findBootstrapClass(String) line: not available [native method]
Launcher$ExtClassLoader(ClassLoader).findBootstrapClass0(String) line: not available
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not availableIf the compiler is not stopping at your breakpoint, then it probably means that the java code you're looking at and the compiled class file are out of synch. If you're getting a classnotfound, then your classfile most likely is either not there or is not where expected.
Check the output folder in project's properties (which may or may not be the default), and see if your classfiles are actually there. Perhaps there is some error that is preventing your classfile from being generated (Eclipse sometimes won't even be able to compile), so check the problems dialog.
Try refreshing your project, and if all else fails, restart Eclipse/delete & create the project again. That sometimes magically fixes things. Otherwise, welcome to the quirkiness of dealing with Eclipse! -
Help with RMI tutorial (and Eclipse)
Hi!
I need a little help with RMI tutorial. I have all source files from tutorial downloaded, but I never did anything like this and don't know, how to run it. I somehow did Building a JAR File of Interface Classes from [http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/rmi/compiling.html], but got stuck on simple HTTP server, I didn't understand, what to do.
Bonus question: is it possible to do those commands from Eclipse? How?
Thanks a lot!It seems that the example provided (in the link) requires a web serverNo it doesn't. It requires an HTTP server.
tomcat will be a better option which you can useThe Apache HTTP server might be more to the point.
But If you are new to RMI and need to understand the exact flow of RMI I think this will not be a better exercise to start withI agree. I would get it running without the codebase feature. This isn't as widely used as you might think, and anyway it is a deployment option not something you need to engage with much when developing.
@OP: ignore the HTTP stuff and the codebase feature and build 3 JAR files:
(a) the common stuff (remote interface, stubs if any, and any classes referecned by the remote interface)
(b) the server (the remote object itself and anything server-side it uses)
(c) the client.
The common JAR file should be deployed to both the server and the client, and both the other JARs should name it in their Class-Path entry in the manifest. -
[SOLVED] VIM - need help with keymapping
As the header says, I need help with creating a key mapping in my vimrc. What I would like is a
mapping to<F8> that would toggle between " :set paste and :set nopaste. " Any and all help
would be appreciated
Last edited by orphius1970 (2010-03-02 07:50:22)YES!!!! Thank you! Exactly what I was hoping for. I am new to vim so all these config options
are a little intimidating for now. Thank you again!!!! -
[solved]Need help with a bash script for MOC conky artwork.
I need some help with a bash script for displaying artwork from MOC.
Music folders have a file called 'front.jpg' in them, so I need to pull the current directory from MOCP and then display the 'front.jpg' file in conky.
mocp -Q %file
gives me the current file playing, but I need the directory (perhaps some way to use only everything after the last '/'?)
A point in the right direction would be appreciated.
thanks, d
Last edited by dgz (2013-08-29 21:24:28)Xyne wrote:
You should also quote the variables and output in double quotes to make the code robust, e.g.
filename="$(mocp -Q %file)"
dirname="${filename%/*}"
cp "$dirname"/front.jpg ~/backup/art.jpg
Without the quotes, whitespace will break the code. Even if you don't expect whitespace in any of the paths, it's still good coding practice to include the quotes imo.
thanks for the tip.
here it is, anyhow:
#!/bin/bash
filename=$(mocp -Q %file)
dirname=${filename%/*}
cp ${dirname}/front.jpg ~/backup/art.jpg
then in conky:
$alignr${execi 30 ~/bin/artc}${image ~/backup/art.jpg -s 100x100 -p -3,60}
thanks for the help.
Last edited by dgz (2013-08-29 21:26:32) -
[SOLVED]Need help with dwm...
Hi,
I need help with dwm.I want to apply only 2 patches but everytime when i try i get error... I need xft or pango patch and systray patch.Please help.
Thanks.
Last edited by grobar87 (2013-06-01 13:49:55)[dejan@archtop dwm-6.0]$ patch < 00-dwm-6.0-buildflags.diff
patching file config.mk
[dejan@archtop dwm-6.0]$ patch < dwm-6.0-xft.diff
patching file dwm.c
[dejan@archtop dwm-6.0]$ patch < 02-dwm-6.0-systray.diff
patching file dwm.c
[dejan@archtop dwm-6.0]$ sudo make clean install
[sudo] password for dejan:
cleaning
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/include/freetype2 -DVERSION="6.0" -DXINERAMA -DXFT
LDFLAGS = -s -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -L/usr/X11R6/lib -lXinerama -L/usr/X11R6/lib -lXft
CC = cc
creating config.h from config.def.h
CC dwm.c
dwm.c: In function ‘keypress’:
dwm.c:1062:2: warning: ‘XKeycodeToKeysym’ is deprecated (declared at /usr/include/X11/Xlib.h:1695) [-Wdeprecated-declarations]
CC -o dwm
installing executable file to /usr/local/bin
installing manual page to /usr/local/share/man/man1
[dejan@archtop dwm-6.0]$
And here is my config.h:
/* See LICENSE file for copyright and license details. */
/* appearance */
static const char font[] = "Ohsnap";
static const char normbordercolor[] = "#444444";
static const char normbgcolor[] = "#222222";
static const char normfgcolor[] = "#bbbbbb";
static const char selbordercolor[] = "#005577";
static const char selbgcolor[] = "#005577";
static const char selfgcolor[] = "#eeeeee";
static const unsigned int borderpx = 1; /* border pixel of windows */
static const unsigned int snap = 32; /* snap pixel */
static const unsigned int systrayspacing = 2; /* systray spacing */
static const Bool showsystray = True; /* False means no systray */
static const Bool showbar = True; /* False means no bar */
static const Bool topbar = True; /* False means bottom bar */
/* tagging */
static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
static const Rule rules[] = {
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, True, -1 },
{ "Firefox", NULL, NULL, 1 << 8, False, -1 },
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
static const Layout layouts[] = {
/* symbol arrange function */
{ "[]=", tile }, /* first entry is default */
{ "><>", NULL }, /* no layout function means floating behavior */
{ "[M]", monocle },
/* key definitions */
#define MODKEY Mod1Mask
#define TAGKEYS(KEY,TAG) \
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
{ MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} },
/* helper for spawning shell commands in the pre dwm-5.0 fashion */
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
/* commands */
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
static const char *termcmd[] = { "uxterm", NULL };
static Key keys[] = {
/* modifier key function argument */
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
{ MODKEY, XK_Return, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} },
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
{ MODKEY, XK_0, view, {.ui = ~0 } },
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } },
{ MODKEY, XK_comma, focusmon, {.i = -1 } },
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
TAGKEYS( XK_1, 0)
TAGKEYS( XK_2, 1)
TAGKEYS( XK_3, 2)
TAGKEYS( XK_4, 3)
TAGKEYS( XK_5, 4)
TAGKEYS( XK_6, 5)
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, quit, {0} },
/* button definitions */
/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
static Button buttons[] = {
/* click event mask button function argument */
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
{ ClkWinTitle, 0, Button2, zoom, {0} },
{ ClkStatusText, 0, Button2, spawn, {.v = termcmd } },
{ ClkClientWin, MODKEY, Button1, movemouse, {0} },
{ ClkClientWin, MODKEY, Button2, togglefloating, {0} },
{ ClkClientWin, MODKEY, Button3, resizemouse, {0} },
{ ClkTagBar, 0, Button1, view, {0} },
{ ClkTagBar, 0, Button3, toggleview, {0} },
{ ClkTagBar, MODKEY, Button1, tag, {0} },
{ ClkTagBar, MODKEY, Button3, toggletag, {0} }, -
[SOLVED] Need help with setting up X
Hello guys am new to the forum and this is my first post here. I am in need of a little help.
Need help with X configuration. It starts like this, I installed xorg-server , xorg-utils, xorg-server-utils. When I tried installed xorg-init it says no package, anyway I ignored and moved on.
Now I installed regular mesa stuff and installed xf86-video-ati driver for my HD4250 graphics adapter. with libgl and ati-dri (I have old arch wiki print so it mentioned to install those while newer doesn't list some stuff)
Now the problem is that Xorg -configure doesn't work with newer X and nor the packages has generated /etc/X11/xorg.conf file.
Anyway I created the file manually and added each and every section as mentioned in the "old" guide that I have.
I even added a /etc/X11/xorg.conf.d/20-radeon.conf file for my graphics card with the content as
Section "Device"
Identifire "r"
Driver "radeon"
EndSection
After manually creating all such files I installed x-term, xclock and twm. But when I tried to start X by startx or Xinit it says command not found. Add to that a simple X shows couple of errors.
Please see the errors here Paste #399362 | LodgeIt!
Some more questions : My old guide mentioned to install HAL while newer guide on the net mention DBUS. Though I have added DBUS to be on the safe side but why not HAL ? Is it because of Udev ?
So please help me getting X up and running.
Regards
Last edited by Shashwat (2011-06-04 09:47:47)Ok I sorted out the misprints in the file and installed xinit but still can't get it to work.
1. There are few errors in xorg.conf that I cannot make it out.
2. The X output says no screen found. ?
http://paste.pocoo.org/show/399383/
Now when I add EndSection at the last its says invalid parameter and when I remove it, I get an error "No EndSection, EOF missing"
Kind of bugging
Please do help.
Maybe you are looking for
-
Oracle 10.2.0.4 RMAN Duplicate without a Recovery Catalog
Production Backups are Tuesday - Sunday at 22:00: RUN { ALLOCATE CHANNEL c1 DEVICE TYPE DISK; CROSSCHECK ARCHIVELOG ALL; CROSSCHECK BACKUP; DELETE NOPROMPT COPY OF ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-2'; DELETE NOPROMPT BACKUP; BACKUP DATABASE P
-
To much text bullet help. Can I turn it off?
My wife likes to make her to-do list and then place a bullet in front of each item when it is complete. Unfortunately this seems to turn on automatic bulleting which takes several mouse moves and/or key strokes to turn off. Is there a way to turn off
-
Factory install hangs, what do you think?
A few days ago I had used the recovery discs to do a factory install of XP Pro on my T60. It went perfectly fine. But then I was experimenting with some stuff in XP, and got it into a state where I couldn't get it back to normal, so I decided to use
-
2010 Budget Check at MIRO for a PO raised in 2009
Hi, I had created a PO and a GR in 2009 but when I do MIRO in 2010 for the same items, I am getting Budget Exceeded message. It is beyound my understanding that the system should check 2010 budget during MIRO when the PO was raised in 2009. Any thoug
-
Time Machine backup disk full solved
I was able to solve my problem with Time Machine! Happy. This thread helped me, but it's so old that I can't reply to it directly. https://discussions.apple.com/message/20087557 If you have any virtualization software, such as VMware Fusion, you ne