This commit is contained in:
wt
2024-07-04 17:36:24 +07:00
parent c3f250b200
commit 20ea8d71a0
3 changed files with 55 additions and 3 deletions
-3
View File
@@ -1,3 +0,0 @@
sowm
sowm.o
config.h
+55
View File
@@ -0,0 +1,55 @@
#ifndef CONFIG_H
#define CONFIG_H
//-------- modkey ---
#define MOD Mod1Mask
//-------------------
const char* menu[] = {"/home/tola/dotfiles/rofi/launcher/launcher.sh", 0};
const char* term[] = {"kitty", 0};
const char* scrot[] = {"scr", 0};
const char* briup[] = {"bri", "10", "+", 0};
const char* bridown[] = {"bri", "10", "-", 0};
const char* voldown[] = {"amixer", "sset", "Master", "5%-", 0};
const char* volup[] = {"amixer", "sset", "Master", "5%+", 0};
const char* volmute[] = {"amixer", "sset", "Master", "toggle", 0};
const char* colors[] = {"bud", "/home/goldie/Pictures/Wallpapers", 0};
static struct key keys[] = {
//------------- windows -------------
{MOD, XK_q, win_kill, {0}},
{MOD, XK_c, win_center, {0}},
{MOD, XK_f, win_fs, {0}},
//-----------------------------------
{Mod1Mask, XK_Tab, win_next, {0}},
{Mod1Mask|ShiftMask, XK_Tab, win_prev, {0}},
{MOD, XK_d, run, {.com = menu}},
{MOD, XK_w, run, {.com = colors}},
{MOD, XK_p, run, {.com = scrot}},
{MOD, XK_Return, run, {.com = term}},
{0, XF86XK_AudioLowerVolume, run, {.com = voldown}},
{0, XF86XK_AudioRaiseVolume, run, {.com = volup}},
{0, XF86XK_AudioMute, run, {.com = volmute}},
{0, XF86XK_MonBrightnessUp, run, {.com = briup}},
{0, XF86XK_MonBrightnessDown, run, {.com = bridown}},
//-------------- workspaces ---------------
{MOD, XK_1, ws_go, {.i = 1}},
{MOD|ShiftMask, XK_1, win_to_ws, {.i = 1}},
{MOD, XK_2, ws_go, {.i = 2}},
{MOD|ShiftMask, XK_2, win_to_ws, {.i = 2}},
{MOD, XK_3, ws_go, {.i = 3}},
{MOD|ShiftMask, XK_3, win_to_ws, {.i = 3}},
{MOD, XK_4, ws_go, {.i = 4}},
{MOD|ShiftMask, XK_4, win_to_ws, {.i = 4}},
{MOD, XK_5, ws_go, {.i = 5}},
{MOD|ShiftMask, XK_5, win_to_ws, {.i = 5}},
{MOD, XK_6, ws_go, {.i = 6}},
{MOD|ShiftMask, XK_6, win_to_ws, {.i = 6}},
//-----------------------------------------
};
#endif
Executable
BIN
View File
Binary file not shown.