You are not logged in.
I'd like to change the default terminal inside of DWM.
I personally would like to change my current terminal, st, to xterm because i've already set it up to my liking in my ~/.Xresources file.
What i've done so far:
nano ~/build/dwm/config.h output:
/* 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 char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgco
static const char *termcmd[] = { "xterm", NULL };
static Key keys[] = {
<------>/* modifier key function argument */
<------>{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
<------>{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },cd ~/build/dwmmakeSHIFT+ALT+Q
startxSHIFT+ALT+ENTER
echo $TERMoutput:
st-256colorWhat am I doing wrong?
Here's my ~/.xinitrc file:
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
# Load .Xresources file
xrdb -merge ~/.Xresources
# Change dwm-X.X Text
xsetroot -name " "
# Set Wallpaper
feh --bg-fill ~/Pictures/wallpaper.jpg
# Run dwm
exec dwmLast edited by intvl (2016-02-16 06:37:08)
Offline
You should be using ABS until you are more familiar with how Arch works.
Running make is only the first step; you need to run `make install` to actually install dwm with your changes.
Offline
You should be using ABS until you are more familiar with how Arch works.
Running make is only the first step; you need to run `make install` to actually install dwm with your changes.
I had tried that before, but didn't realize I had a permission error:
dwm build options:
CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os -I/usr/X11R6/include -I/usr/include/freetype2 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION="6.1" -DXINERAMA
LDFLAGS = -s -L/usr/X11R6/lib -lX11 -lXinerama -lfontconfig -lXft
CC = cc
installing executable file to /usr/local/bin
cp: cannot remove '/usr/local/bin/dwm': Permission denied
Makefile:45: recipe for target 'install' failed
make: *** [install] Error 1Running with proper permission fixed the issue. Thank you for your help, jasonwryan.
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline