Changed terminal to ghostty and halved the snap for floating windows
This commit is contained in:
parent
770d29dc83
commit
b1ac586696
21
config.def.h
21
config.def.h
@ -1,13 +1,16 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
|
||||
/* Header file for XF86 keys */
|
||||
#include <X11/XF86keysym.h>
|
||||
|
||||
/* Helper macros for spawning commands */
|
||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||
#define CMD(...) { .v = (const char*[]){ __VA_ARGS__, NULL } }
|
||||
|
||||
/* appearance */
|
||||
static const unsigned int borderpx = 1; /* border pixel of windows */
|
||||
static const unsigned int snap = 32; /* snap pixel */
|
||||
static const int swallowfloating = 0; /* 1 means swallow floating windows by default */
|
||||
static const unsigned int snap = 16; /* snap pixel */
|
||||
static const int swallowfloating = 1; /* 1 means swallow floating windows by default */
|
||||
static const int scalepreview = 4; /* Tag preview scaling */
|
||||
static const int usealtbar = 1; /* 1 means use non-dwm status bar */
|
||||
static const char *altbarclass = "Polybar"; /* Alternate bar class name */
|
||||
@ -32,7 +35,7 @@ static int tagindicatortype = INDICATOR_TOP_LEFT_SQUARE;
|
||||
static int tiledindicatortype = INDICATOR_NONE;
|
||||
static int floatindicatortype = INDICATOR_TOP_LEFT_SQUARE;
|
||||
static const char *fonts[] = { "monospace:size=10" };
|
||||
static const char dmenufont[] = "monospace:size=10";
|
||||
// static const char dmenufont[] = "monospace:size=10";
|
||||
|
||||
static char c000000[] = "#000000"; // placeholder value
|
||||
|
||||
@ -108,6 +111,7 @@ static const char *const autostart[] = {
|
||||
"sh", "/home/ganome/.local/bin/dwmbar", NULL,
|
||||
"xrdb", "/home/ganome/.Xresources", NULL,
|
||||
"nitrogen", "--restore", NULL,
|
||||
"parcellite", NULL,
|
||||
NULL /* terminate */
|
||||
};
|
||||
|
||||
@ -253,8 +257,9 @@ static const char *dmenucmd[] = {
|
||||
"--with-images",
|
||||
NULL
|
||||
};
|
||||
// static const char *vesktop[] = { "vesktop", NULL };
|
||||
|
||||
static const char *termcmd[] = { "kitty", NULL };
|
||||
static const char *termcmd[] = { "ghostty", NULL };
|
||||
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
@ -265,6 +270,7 @@ static const Key keys[] = {
|
||||
{ MODKEY, XK_k, focusstack, {.i = -1 } },
|
||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
||||
{ MODKEY|ShiftMask, XK_d, spawn, CMD("vesktop-bin")},
|
||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
||||
{ MODKEY|ShiftMask, XK_h, setcfact, {.f = +0.25} },
|
||||
@ -293,6 +299,13 @@ static const Key keys[] = {
|
||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||
{ MODKEY|ControlMask, XK_comma, cyclelayout, {.i = -1 } },
|
||||
{ MODKEY|ControlMask, XK_period, cyclelayout, {.i = +1 } },
|
||||
{ 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ +5%")},
|
||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("exec pactl set-sink-volume @DEFAULT_SINK@ -5%")},
|
||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("exec pactl set-sink-mute @DEFAULT_SINK@ toggle")},
|
||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("exec playerctl play-pause")},
|
||||
{ 0, XF86XK_AudioPause, spawn, SHCMD("exec playerctl play-pause")},
|
||||
{ 0, XF86XK_AudioNext, spawn, SHCMD("exec playerctl next")},
|
||||
{ 0, XF86XK_AudioPrev, spawn, SHCMD("exec playerctl previous")},
|
||||
TAGKEYS( XK_1, 0)
|
||||
TAGKEYS( XK_2, 1)
|
||||
TAGKEYS( XK_3, 2)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user