Update stuff #6

Merged
anas-elgarhy merged 6 commits from update-stuff into fix-freez-issue 2022-07-28 07:36:58 +00:00
3 changed files with 20 additions and 6 deletions

View file

@ -32,7 +32,7 @@
| modkey + t -> shift + k | Launche the kitty terminal with tmux |
| modkey + shift + f -> g | Launche the GUI file manger (pcmanfm by default) |
| modkey + shift + f -> f | Launche rofi file file browser (small size) |
| modkey + shift + f -> r | Launche ranger in the main terminal |
| modkey + shift + f -> t | Launche the terminal file manger (ranger) in the main terminal |
| modkey + w -> g | Launche google chrome browser |
| modkey + w -> t | Launche tor browser |
| modkey + c -> d | Launche discord |
@ -138,4 +138,5 @@
[![BitBucket](https://img.shields.io/badge/BitBucket-Mirror%20repo-brightgreen?style=for-the-badge&logo=BitBucket)](https://bitbucket.org/anas_elgarhy/dwm-anas)
[![Codeberg](https://img.shields.io/badge/Codeberg-Mirror%20repo-brightgreen?style=for-the-badge&logo=Codeberg)](https://codeberg.org/anas-elgarhy/dwm-anas)
### Refrences:
- [XF86keysym](https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h)

View file

@ -44,6 +44,17 @@ install: all
sed "s/VERSION/${VERSION}/g" < ../dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
desktopfile:
full_path=/usr/share/xsessions/dwm-anas.desktop
mkdir -p /usr/share/xsessions
cat <<EOT >> ${full_path}
[Desktop Entry]
Type=XSession
Exec=/usr/local/bin/dwm
DesktopNames=dwm-anas
Name=dwm-anas
Comment=Anas Elgarhy dwm fork, with a lot of beautiful patches
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
${DESTDIR}${MANPREFIX}/man1/dwm.1

View file

@ -40,8 +40,8 @@ static Keychord keychords[] = {
{2, {{MODKEY|ShiftMask, XK_f}, {0, XK_g}}, spawn, SHCMD(GUI_FILEMANAGER) },
// Rofi file browser (small)
{2, {{MODKEY|ShiftMask, XK_f}, {0, XK_f}}, spawn, SHCMD("rofi -show filebrowser") },
// ranger
{2, {{MODKEY|ShiftMask, XK_f}, {0, XK_r}}, spawn, SHCMD(TERMINAL " -e ranger") },
// Terminal file manager (ranger)
{2, {{MODKEY|ShiftMask, XK_f}, {0, XK_t}}, spawn, SHCMD(TERMINAL " -e ranger") },
/************************************* Start the web browers *************************************/
// Google chrome stable
{2, {{MODKEY, XK_w}, {0, XK_g}}, spawn, SHCMD(WEBBROWSER) },
@ -75,7 +75,7 @@ static Keychord keychords[] = {
{2, {{MODKEY, XK_m}, {ShiftMask, XK_v}}, spawn, SHCMD(TERMINAL "nvlc") },
/************************************* Start the emoji piker apps *************************************/
// Emoji selector (rofi)
{1, {{Mod4Mask, XK_e}}, spawn, SHCMD("rofi -show emoji") },
{1, {{Mod4Mask, XK_e}}, spawn, SHCMD("rofimoji") },
/************************************* dwm keys *************************************/
// Full screen mode
{1, {{MODKEY, XK_f}}, fullscreen, {0} },
@ -141,6 +141,7 @@ static Keychord keychords[] = {
TAGKEYS( XK_7, 6)
TAGKEYS( XK_8, 7)
TAGKEYS( XK_9, 8)
TAGKEYS( XK_semicolon, 9)
/* ---------------------------------- Control Keys ---------------------------------- */
// Brightness controllers (requires xbacklight)
{1, {{0, XF86XK_MonBrightnessUp}}, spawn, SHCMD("xbacklight -inc 5") },
@ -161,8 +162,9 @@ static Keychord keychords[] = {
/* ---------------------------------- lock Keys ---------------------------------- */
// Lock the screen
{1, {{MODKEY|ShiftMask, XK_x}}, spawn, SHCMD("betterlockscreen -l dim") },
{1, {{0, XF86XK_Suspend}}, spawn, SHCMD("betterlockscreen -l dim") },
// Kill dwm (super + shift + alt + q)
{1, {{MODKEY|ShiftMask|Mod1Mask, XK_q}}, quit, {0} },
// {1, {{MODKEY|ShiftMask|Mod1Mask, XK_q}}, quit, {0} },
};
/* button definitions */