Improve tthe code 🥰
This commit is contained in:
parent
cd7668c000
commit
f8de713afe
1 changed files with 13 additions and 14 deletions
27
config.h
27
config.h
|
@ -30,13 +30,12 @@ static const char *colors[][3] = {
|
||||||
};
|
};
|
||||||
// Autostart programs
|
// Autostart programs
|
||||||
static const char *const autostart[] = {
|
static const char *const autostart[] = {
|
||||||
// Start my build of slstatus
|
// Start my build of slstatus
|
||||||
"slstatus", NULL,
|
"slstatus", NULL,
|
||||||
// Keyboard layouts switch (requires setxkbmap)
|
// Keyboard layouts switch (requires setxkbmap)
|
||||||
"setxkbmap", "-model", "pc101", "-layout", "us,ar", "-variant", ",,", "-option", "grp:win_space_toggle", NULL,
|
"setxkbmap", "-model", "pc101", "-layout", "us,ar", "-variant", ",,", "-option", "grp:win_space_toggle", NULL,
|
||||||
"picom", NULL, // Start compositor , for transparency
|
"picom", NULL, // Start compositor , for transparency
|
||||||
// "nitrogen", "--restore", NULL, // Restores the wallpaper
|
"nitrogen", "--restore", NULL, // Restores the wallpaper
|
||||||
"wal", "-i" ,"/mnt/Data/Personalize/Wallpapers/y7r781tsgoa81.png", NULL, // Change backround and color theame
|
|
||||||
NULL /* terminate */
|
NULL /* terminate */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -52,7 +51,7 @@ static const Rule rules[] = {
|
||||||
/* class instance title tags mask isfloating monitor */
|
/* class instance title tags mask isfloating monitor */
|
||||||
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
{ "Gimp", NULL, NULL, 0, 1, -1 },
|
||||||
{ WEBBROWSER, NULL, NULL, 1 << 8, 0, -1 },
|
{ WEBBROWSER, NULL, NULL, 1 << 8, 0, -1 },
|
||||||
{ "Plasma", NULL, NULL, 0, 1, -1 },
|
{ "Plasma", NULL, "Plasma", 0, 1, -1 },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
|
@ -104,7 +103,7 @@ static Key keys[] = {
|
||||||
// File browsers
|
// File browsers
|
||||||
{ MODKEY|ShiftMask, XK_f, spawn, SHCMD(GUI_FILEMANAGER) },
|
{ MODKEY|ShiftMask, XK_f, spawn, SHCMD(GUI_FILEMANAGER) },
|
||||||
// Rofi file browser (small)
|
// Rofi file browser (small)
|
||||||
{ MODKEY|ShiftMask|ControlMask, XK_f, spawn, SHCMD("rofi -show filebrowser") },
|
{ MODKEY|ShiftMask|ControlMask, XK_f, spawn, SHCMD("rofi -show filebrowser") },
|
||||||
// Start the web brower
|
// Start the web brower
|
||||||
{ MODKEY, XK_w, spawn, SHCMD(WEBBROWSER) },
|
{ MODKEY, XK_w, spawn, SHCMD(WEBBROWSER) },
|
||||||
// Discord
|
// Discord
|
||||||
|
@ -170,14 +169,14 @@ static Key keys[] = {
|
||||||
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 4") },
|
{ 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 4") },
|
||||||
{ 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t") },
|
{ 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t") },
|
||||||
// Media controls (requires playerctl)
|
// Media controls (requires playerctl)
|
||||||
{ 0, XF86XK_AudioPlay, spawn, SHCMD("playerctl play-pause") },
|
{ 0, XF86XK_AudioPlay, spawn, SHCMD("playerctl play-pause") },
|
||||||
{ 0, XF86XK_AudioStop, spawn, SHCMD("playerctl stop") },
|
{ 0, XF86XK_AudioStop, spawn, SHCMD("playerctl stop") },
|
||||||
{ 0, XF86XK_AudioNext, spawn, SHCMD("playerctl next") },
|
{ 0, XF86XK_AudioNext, spawn, SHCMD("playerctl next") },
|
||||||
{ 0, XF86XK_AudioPrev, spawn, SHCMD("playerctl previous") },
|
{ 0, XF86XK_AudioPrev, spawn, SHCMD("playerctl previous") },
|
||||||
// Mute and unmute mic
|
// Mute and unmute mic
|
||||||
{ 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") },
|
{ 0, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") },
|
||||||
// Take a screenshot
|
// Take a screenshot
|
||||||
{ 0, XK_Print, spawn, SHCMD(SCREENSHOT) },
|
{ 0, XK_Print, spawn, SHCMD(SCREENSHOT) },
|
||||||
/* ---------------------------------- lock Keys ---------------------------------- */
|
/* ---------------------------------- lock Keys ---------------------------------- */
|
||||||
// Lock the screen
|
// Lock the screen
|
||||||
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("betterlockscreen -l dim") },
|
{ MODKEY|ShiftMask, XK_x, spawn, SHCMD("betterlockscreen -l dim") },
|
||||||
|
|
Loading…
Reference in a new issue