Browse Source

Updated dwm and config

main
Fr1nge 3 years ago
parent
commit
a7b4e9aeaf
4 changed files with 11 additions and 4 deletions
  1. +1
    -1
      .config/X11/xinitrc
  2. +1
    -0
      .config/config.env.default
  3. +1
    -1
      .local/src/dwm/config.mk
  4. +8
    -2
      .local/src/dwm/keybinds.h

+ 1
- 1
.config/X11/xinitrc View File

@ -40,8 +40,8 @@ while true;
do do
if [ $restarted = 0 ]; then if [ $restarted = 0 ]; then
restarted=1 restarted=1
echo "Restarting DWM"
else else
echo "Restarting DWM"
notify-send -a " Desktop Manager" "Dwm Restarted" notify-send -a " Desktop Manager" "Dwm Restarted"
fi fi


+ 1
- 0
.config/config.env.default View File

@ -15,3 +15,4 @@ export LOCATION=ankara
export ACTIVITYWATCH=false export ACTIVITYWATCH=false
export FIREFOX_PROFILE=a1lv19vn.default-release export FIREFOX_PROFILE=a1lv19vn.default-release
export LATLONG="39.92:32.85" export LATLONG="39.92:32.85"
export VPS=0

+ 1
- 1
.local/src/dwm/config.mk View File

@ -28,7 +28,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} -lX11-xcb -lxcb -lxcb-r
# flags # flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
CFLAGS = -w -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
CFLAGS = -w -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} -D"VPS=${VPS}"
LDFLAGS = ${LIBS} LDFLAGS = ${LIBS}
# Solaris # Solaris


+ 8
- 2
.local/src/dwm/keybinds.h View File

@ -89,7 +89,14 @@ static Key keys[] = {
{ MODKEY, XK_h, setmfact, {.f = -0.05} }, { MODKEY, XK_h, setmfact, {.f = -0.05} },
{ MODKEY|ShiftMask, XK_z, zoom, {0} }, { MODKEY|ShiftMask, XK_z, zoom, {0} },
{ MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_Tab, view, {0} },
#if VPS == 1
{ MODKEY|ShiftMask, XK_q, killclient, {0} },
#else
{ MODKEY, XK_q, killclient, {0} }, { MODKEY, XK_q, killclient, {0} },
{ MODKEY|ShiftMask, XK_q, spawn, {.v = outmenu} },
#endif
{ MODKEY|Mod1Mask, XK_i, incnmaster, {.i = +1 } }, { MODKEY|Mod1Mask, XK_i, incnmaster, {.i = +1 } },
{ MODKEY|Mod1Mask, XK_s, incnmaster, {.i = -1 } }, { MODKEY|Mod1Mask, XK_s, incnmaster, {.i = -1 } },
{ MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } }, { MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } },
@ -120,7 +127,6 @@ static Key keys[] = {
TAGKEYS( XK_7, 6) TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7) TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8) TAGKEYS( XK_9, 8)
{ MODKEY|ShiftMask, XK_q, spawn, {.v = outmenu} },
{ MODKEY|ShiftMask, XK_t, spawn, {.v = trackpad} }, { MODKEY|ShiftMask, XK_t, spawn, {.v = trackpad} },
{ MODKEY, XK_x, spawn, {.v = lock } }, { MODKEY, XK_x, spawn, {.v = lock } },
{ MODKEY|ShiftMask, XK_x, spawn, {.v = killall } }, { MODKEY|ShiftMask, XK_x, spawn, {.v = killall } },
@ -140,7 +146,7 @@ static Key keys[] = {
{ 0, XF86XK_AudioPlay, spawn, {.v = play } }, { 0, XF86XK_AudioPlay, spawn, {.v = play } },
{ 0, XF86XK_AudioNext, spawn, {.v = next } }, { 0, XF86XK_AudioNext, spawn, {.v = next } },
{ 0, XK_Print, spawn, {.v = screenshot } }, { 0, XK_Print, spawn, {.v = screenshot } },
{ MODKEY|ShiftMask|Mod1Mask, XK_s, togglesticky, { 0 } },
{ MODKEY|ShiftMask|Mod1Mask, XK_s, togglesticky, { 0 } },
{ MODKEY, XK_Print, spawn, {.v = windowshot } }, { MODKEY, XK_Print, spawn, {.v = windowshot } },
{ MODKEY|Mod1Mask, XK_Print, spawn, {.v = selectshot } }, { MODKEY|Mod1Mask, XK_Print, spawn, {.v = selectshot } },
{ MODKEY|ShiftMask, XK_e, spawn, {.v = emoji } }, { MODKEY|ShiftMask, XK_e, spawn, {.v = emoji } },


Loading…
Cancel
Save