diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 27 |
1 files changed, 15 insertions, 12 deletions
@@ -8,13 +8,13 @@ /* appearance */ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int snap = 16; /* snap pixel */ -static const int swallowfloating = 0; /* 1 means swallow floating windows by default */ -static const int showbar = 1; /* 0 means no bar */ +static const int swallowfloating = 1; /* 1 means swallow floating windows by default */ +static const int showbar = 0; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "cozette:size=12:autohint=true" }; static const char dmenufont[] = "cozette:size=12:autohint=true"; static const char col_gray1[] = "#000000"; // Colour of the background of the bar -static const char col_gray2[] = "#444444"; // Colour of the border of the inactive window +static const char col_gray2[] = "#000000"; // Colour of the border of the inactive window static const char col_gray3[] = "#bbbbbb"; // Colour of the foreground of the bar static const char col_gray4[] = "#000000"; // Colour of the wallpaper by default static const char col_cyan[] = "#bbbbbb"; // Colour of the border of the active window @@ -34,11 +34,12 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating isterminal noswallow monitor */ { NULL, "steamwebhelper", NULL, 0, 1, 0, 0, -1 }, - { "VirtualBox Machine", NULL, NULL, 0, 1, 0, 0, -1 }, - { "Virt-manager", NULL, NULL, 0, 1, 0, 0, -1 }, + { "Virt-manager",NULL, NULL, 0, 1, 0, 0, -1 }, { "qBittorrent", NULL, NULL, 0, 1, 0, -1, -1 }, { "St", NULL, NULL, 0, 0, 1, 0, -1 }, { "URxvt", NULL, NULL, 0, 1, 1, 0, -1 }, + { "scrcpy", NULL, NULL, 0, 1, 0, 0, -1 }, + { "LibreWolf", "Alert", NULL, 0, 1, 0, 0, -1 }, { "Nsxiv", NULL, NULL, 0, 1, 0, 0, -1 }, { "mpv", NULL, NULL, 0, 1, 0, 0, -1 }, { NULL, NULL, "Event Tester", 0, 0, 0, 1, -1 }, @@ -52,9 +53,9 @@ static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen win static const Layout layouts[] = { /* symbol arrange function */ - { "[T]", tile }, /* first entry is default */ + { "[M]", monocle }, /* first entry is default */ { "[F]", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, + { "[T]", tile }, }; /* key definitions */ @@ -72,6 +73,7 @@ static const Layout layouts[] = { static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { TERMINAL, NULL }; +static const char *sutermcmd[] = { TERMINAL,"-e", "su", NULL }; static const char *volumeup[] = { "amixer", "sset", "Master", "5%+", NULL }; static const char *volumedown[] = { "amixer", "sset", "Master", "5%-", NULL }; static const char *volumetoggle[] = { "amixer", "sset", "Master", "toggle", NULL }; @@ -100,9 +102,9 @@ static const Key keys[] = { { Mod1Mask, XK_Tab, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, { MODKEY, XK_q, killclient, {0} }, - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, + { MODKEY, XK_m, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, - { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, + { MODKEY, XK_t, setlayout, {.v = &layouts[2]} }, { MODKEY|ShiftMask, XK_Return, setlayout, {0} }, { MODKEY, XK_Return, togglefloating, {0} }, { MODKEY, XK_0, view, {.ui = ~0 } }, @@ -121,10 +123,14 @@ static const Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) { MODKEY|ShiftMask, XK_q, quit, {0} }, + /* Non-default commands i.e. commands added in by me and patches */ + { MODKEY|ShiftMask, XK_space, spawn, {.v = sutermcmd } }, { MODKEY|ShiftMask, XK_j, rotatestack, {.i = +1 } }, { MODKEY|ShiftMask, XK_k, rotatestack, {.i = -1 } }, + { MODKEY, XK_g, spawn, SHCMD("~/.local/bin/./dmenu_games") }, { MODKEY|ShiftMask, XK_m, spawn, {.v = (const char*[]){ TERMINAL, "-e", "neomutt", NULL } }}, + { MODKEY|ShiftMask, XK_n, spawn, {.v = (const char*[]){ TERMINAL, "-e", "nvim", NULL } }}, { MODKEY|ShiftMask, XK_h, spawn, {.v = (const char*[]){ TERMINAL, "-e", "htop", NULL } }}, { MODKEY|ShiftMask, XK_e, spawn, {.v = (const char*[]){ TERMINAL, "-e", "lfub", NULL } }}, { MODKEY, XK_Print, spawn, SHCMD("scrot -q 100 ~/Pictures/%Y-%m.jpg") }, @@ -139,14 +145,11 @@ static const Key keys[] = { { 0, XF86XK_AudioMute, spawn, {.v = volumetoggle } }, { 0, XF86XK_MonBrightnessUp, spawn, {.v = fasterbrightnessup } }, { 0, XF86XK_MonBrightnessDown, spawn, {.v = fasterbrightnessdown } }, - { 0|ControlMask, XF86XK_MonBrightnessUp, spawn, {.v = brightnessup } }, - { 0|ControlMask, XF86XK_MonBrightnessDown, spawn, {.v = brightnessdown } }, { 0, XF86XK_AudioMicMute, spawn, {.v = mictoggle } }, { MODKEY|ShiftMask, XK_w, spawn, {.v = browser } }, { MODKEY|ShiftMask, XK_s, spawn, {.v = steam } }, { MODKEY|ShiftMask, XK_d, spawn, {.v = discord } }, { Mod1Mask|ControlMask, XK_Delete, spawn, {.v = slock } }, - { MODKEY|ShiftMask, XK_v, spawn, SHCMD("~/.local/bin/./bookmarkthis") }, { MODKEY, XK_v, spawn, SHCMD("setxkbmap gb && xdotool type $(grep -v '^#' ~/.local/bin/bookmarksfile | dmenu -i -l 50)") }, }; |
