Update stuff :)

This commit is contained in:
Anas Elgarhy 2022-10-27 19:34:21 +02:00
parent c3cc2c4567
commit 59fa9423b5
2 changed files with 31 additions and 18 deletions

View file

@ -1,10 +1,8 @@
/* See LICENSE file for copyright and license details. */
/* def */
#define WEBBROWSER "google-chrome-stable"
#define WEBBROWSER "firefox-developer-edition"
#define TERMINAL "kitty"
#define SCREENSHOT "spectacle"
#define GUI_FILEMANAGER "pcmanfm"
/* appearance */
static const unsigned int borderpx = 1; /* border pixel of windows */
@ -16,7 +14,7 @@ static const unsigned int systrayspacing = 2; /* systray spacing */
static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/
static const int showsystray = 1; /* 0 means no systray */
static const int showbar = 1; /* 0 means no bar */
static const int topbar = 0; /* 0 means bottom bar */
static const int topbar = 1; /* 0 means bottom bar */
static const char *fonts[] = { "monospace:size=7", "Noto Color Emoji:size=8", "Nerd Font Mono:size=16:antialias=true:hinting=true" };
static const char dmenufont[] = "monospace:size=8";
@ -48,8 +46,13 @@ static const Rule rules[] = {
* WM_NAME(STRING) = title
*/
/* class instance title tags mask isfloating monitor */
{ "Gimp", NULL, NULL, 0, 1, -1 },
{ WEBBROWSER, NULL, NULL, 1 << 8, 0, -1 },
{ "Gimp", NULL, NULL, 9, 1, -1 },
// { WEBBROWSER, NULL, NULL, 1 << 8, 0, -1 },
{ "Tor Browser", NULL, NULL, 10, 0, -1 },
{ "keepassxc", NULL, NULL, 10, 0, -1 },
{ "firefoxdeveloperedition", NULL, NULL, 1 << 6, 0, -1 },
{ "discord", NULL, NULL, 4 << 5, 0, -1 },
};
/* layout(s) */

View file

@ -36,15 +36,17 @@ static Key keys[] = {
// kitty with tmux
// { MODKEY, XK_t, ShiftMask|XK_k, spawn, SHCMD("kitty -e tmux") },
/************************************* File browsers *************************************/
// GUI filebrowser (pcmanfm)
{ MODKEY|ShiftMask, XK_f, XK_g, spawn, SHCMD(GUI_FILEMANAGER) },
// GUI filebrowser
{ MODKEY|ShiftMask, XK_f, XK_g, spawn, SHCMD("~/.scripts/filebrowser") },
// Rofi file browser (small)
{ MODKEY|ShiftMask, XK_f, XK_f, spawn, SHCMD("rofi -show filebrowser") },
// Terminal file manager (ranger)
{ MODKEY|ShiftMask, XK_f, XK_t, spawn, SHCMD(TERMINAL " -e ranger") },
/************************************* Start the web browers *************************************/
// Google chrome stable
{ MODKEY, XK_w, XK_g, spawn, SHCMD(WEBBROWSER) },
{ MODKEY, XK_w, XK_g, spawn, SHCMD("google-chrome-stable") },
// Firefox-developer-edition
{ MODKEY, XK_w, XK_f, spawn, SHCMD("firefox-developer-edition") },
// Tor brower
{ MODKEY, XK_w, XK_t, spawn, SHCMD("tor-browser") },
/************************************* Start the caht/email/\* apps *************************************/
@ -67,10 +69,11 @@ static Key keys[] = {
// nm-connection-editor
{ MODKEY, XK_p, XK_n, spawn, SHCMD("nm-connection-editor") },
/************************************* Start multi media apps *************************************/
// cmus
{ MODKEY, XK_m, XK_c, spawn, SHCMD("sh -c \"" TERMINAL " -e cmus\" & sh -c \"cmus-rpc-rs --link\"") },
{ MODKEY, -1, XK_m, spawn, SHCMD("~/.scripts/luncher") },
// cmus
// { MODKEY, XK_m, XK_c, spawn, SHCMD("sh -c \"" TERMINAL " -e cmus\" & sh -c \"cmus-rpc-rs --link\"") },
// vlc
{ MODKEY, XK_m, XK_v, spawn, SHCMD("vlc") },
// { MODKEY, XK_m, XK_v, spawn, SHCMD("vlc") },
// vlc in the main terminal
// { MODKEY|ShiftMask, XK_m, XK_v, spawn, SHCMD(TERMINAL "nvlc") },
/************************************* Start the emoji piker apps *************************************/
@ -144,21 +147,28 @@ static Key keys[] = {
TAGKEYS( -1, XK_semicolon, 9)
/* ---------------------------------- Control Keys ---------------------------------- */
// Brightness controllers (requires xbacklight)
{ 0, -1, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 5") },
{ 0, -1, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 5") },
{ 0, -1, XF86XK_MonBrightnessUp, spawn, SHCMD("~/.scripts/brightness up") },
{ 0, -1, XF86XK_MonBrightnessDown, spawn, SHCMD("~/.scripts/brightness down") },
// Sound controllers (requires pamixer)
{ 0, -1, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer --allow-boost -i 4") },
{ 0, -1, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer --allow-boost -d 4") },
{ 0, -1, XF86XK_AudioMute, spawn, SHCMD("pamixer -t") },
{ 0, -1, XF86XK_AudioRaiseVolume, spawn, SHCMD("~/.scripts/volume up") },
{ 0, -1, XF86XK_AudioLowerVolume, spawn, SHCMD("~/.scripts/volume down") },
{ 0, -1, XF86XK_AudioMute, spawn, SHCMD("~/.scripts/volume mute") },
// Media controls (requires playerctl)
{ 0, -1, XF86XK_AudioPlay, spawn, SHCMD("playerctl play-pause") },
{ 0, -1, XF86XK_AudioStop, spawn, SHCMD("playerctl stop") },
{ 0, -1, XF86XK_AudioNext, spawn, SHCMD("playerctl next") },
{ 0, -1, XF86XK_AudioPrev, spawn, SHCMD("playerctl previous") },
{ Mod1Mask, -1, XK_F1, spawn, SHCMD("playerctl volume 0.0") },
{ Mod1Mask, -1, XK_F2, spawn, SHCMD("playerctl volume 0.1-") },
{ Mod1Mask, -1, XK_F3, spawn, SHCMD("playerctl volume 0.1+") },
// Mute and unmute mic
{ 0, -1, XF86XK_AudioMicMute, spawn, SHCMD("pactl set-source-mute @DEFAULT_SOURCE@ toggle") },
// Take a screenshot
{ 0, -1, XK_Print, spawn, SHCMD(SCREENSHOT) },
{ 0, -1, XK_Print, spawn, SHCMD("~/.scripts/screenshot") },
{ Mod1Mask, -1, XK_Print, spawn, SHCMD("~/.scripts/screenshot --region") },
{ Mod2Mask, -1, XK_Print, spawn, SHCMD("~/.scripts/screenshot --activewindow") },
{ Mod1Mask|Mod2Mask, -1, XK_Print, spawn, SHCMD("~/.scripts/screenshot --fullscreen --background --copy-image") },
/* ---------------------------------- lock Keys ---------------------------------- */
// Lock the screen
{ MODKEY|ShiftMask, -1, XK_x, spawn, SHCMD("betterlockscreen -l dim") },