void- enter the void 🪐 |
git clone git://git.acid.vegas/archlinux.git |
Log | Files | Refs | Archive |
config.h (4000B)
1 #define XF86AudioMute 0x1008ff12 2 #define XF86AudioLowerVolume 0x1008ff11 3 #define XF86AudioRaiseVolume 0x1008ff13 4 #define XF86AudioPlay 0x1008ff14 5 #define XF86MonBrightnessDown 0x1008ff03 6 #define XF86MonBrightnessUp 0x1008ff02 7 8 static const unsigned int borderpx = 0; 9 static const unsigned int snap = 32; 10 static const int showbar = 0; 11 static const int topbar = 1; 12 static const float mfact = 0.55; 13 static const int nmaster = 1; 14 static const int resizehints = 0; 15 static const int lockfullscreen = 1; 16 static const Layout layouts[] = { { "", tile } }; 17 static const Rule rules[] = { { NULL, NULL, NULL, 0, False, -1 } }; 18 static const char *tags[] = { "chat", "dev", "irc", "recon", "supernets", "work", "www", "media", "other" }; 19 static const char *fonts[] = { "Misc Ohsnap.Icons:style=Regular:size=11" }; 20 static const char dmenufont[] = "Misc Ohsnap.Icons:style=Regular:size=11"; 21 static const char *colors[][3] = { 22 [SchemeNorm] = { "#FFFFFF", "#000000", "#444444" }, 23 [SchemeSel] = { "#00D787", "#000000", "#00D787" }, 24 }; 25 26 #define MODKEY Mod4Mask 27 #define TAGKEYS(KEY,TAG) \ 28 { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ 29 { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ 30 { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ 31 { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, 32 33 #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } 34 35 static char dmenumon[2] = "0"; // TODO: Do we really need this? 36 static const char *dmenucmd[] = { "dmenu_run", "-m", "0", "-fn", dmenufont, "-nb", "#000000", "-nf", "#FFFFFF", "-sb", "#000000", "-sf", "#00D787", NULL }; 37 static const char *termcmd[] = { "alacritty", NULL }; 38 static const char *volume_toggle[] = { "pactl", "set-sink-mute", "0", "toggle", NULL }; 39 static const char *volume_down[] = { "amixer", "-q", "set", "Master", "10-", NULL }; 40 static const char *volume_up[] = { "amixer", "-q", "set", "Master", "10+", NULL }; 41 static const char *music_toggle[] = { "cmus-remote", "-u", NULL }; 42 static const char *backlight_down[] = { "brightnessctl", "s", "10%-", NULL }; 43 static const char *backlight_up[] = { "brightnessctl", "s", "+10%", NULL }; 44 45 static Key keys[] = { 46 { MODKEY, XK_Return, spawn, {.v = termcmd } }, 47 { MODKEY, XK_Down, incnmaster, {.i = +1 } }, 48 { MODKEY, XK_Up, incnmaster, {.i = -1 } }, 49 { MODKEY, XK_Left, setmfact, {.f = -0.05} }, 50 { MODKEY, XK_Right, setmfact, {.f = +0.05} }, 51 { MODKEY, XK_h, togglebar, {0} }, 52 { MODKEY, XK_k, killclient, {0} }, 53 { MODKEY, XK_q, quit, {0} }, 54 { MODKEY, XK_f, setlayout, {.v = &layouts[0] } }, 55 { MODKEY, XK_r, spawn, {.v = dmenucmd } }, 56 { 0, XF86AudioMute, spawn, {.v = volume_toggle } }, 57 { 0, XF86AudioLowerVolume, spawn, {.v = volume_down } }, 58 { 0, XF86AudioRaiseVolume, spawn, {.v = volume_up } }, 59 { 0, XF86AudioPlay, spawn, {.v = music_toggle } }, 60 { 0, XF86MonBrightnessDown, spawn, {.v = backlight_down } }, 61 { 0, XF86MonBrightnessUp, spawn, {.v = backlight_up } }, 62 { 0, XK_Print, spawn, SHCMD("~/.local/bin/scripts/shotz -u") }, 63 TAGKEYS( XK_1, 0) 64 TAGKEYS( XK_2, 1) 65 TAGKEYS( XK_3, 2) 66 TAGKEYS( XK_4, 3) 67 TAGKEYS( XK_5, 4) 68 TAGKEYS( XK_6, 5) 69 TAGKEYS( XK_7, 6) 70 TAGKEYS( XK_8, 7) 71 TAGKEYS( XK_9, 8) 72 TAGKEYS( XK_0, 9) 73 }; 74 75 static Button buttons[] = { 76 { ClkWinTitle, 0, Button2, zoom, {0} }, 77 { ClkClientWin, MODKEY, Button1, movemouse, {0} }, 78 { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, 79 { ClkTagBar, 0, Button1, view, {0} }, 80 { ClkTagBar, MODKEY, Button1, tag, {0} }, 81 };