Add obsidian shortcur and add stickyeys script to auto run stuff

This commit is contained in:
Anas Elgarhy 2022-07-16 11:53:10 +02:00
parent 11b78b17b6
commit ce45d2bb6e
3 changed files with 7 additions and 3 deletions

View file

@ -36,6 +36,7 @@
| modkey + w -> g | Launche google chrome browser | | modkey + w -> g | Launche google chrome browser |
| modkey + w -> t | Launche tor browser | | modkey + w -> t | Launche tor browser |
| modkey + c -> d | Launche discord | | modkey + c -> d | Launche discord |
| modkey + c -> o | Launche obsidian |
| modkey + a -> j | Launche jetbrains-toolbox | | modkey + a -> j | Launche jetbrains-toolbox |
| modkey + a -> n | Launche NeoVim in the main terminal | | modkey + a -> n | Launche NeoVim in the main terminal |
| modkey + a -> v | Launche Vim in the main terminal | | modkey + a -> v | Launche Vim in the main terminal |
@ -112,6 +113,7 @@
- `picom` compositor , for transparency - `picom` compositor , for transparency
- `nitrogen` for set the wallpaper - `nitrogen` for set the wallpaper
- `copyq` clipboard manager - `copyq` clipboard manager
- `obsidian`
> \*\*: build dependencie. > \*\*: build dependencie.

View file

@ -35,7 +35,7 @@ static const char *const autostart[] = {
// 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,
// "xkbset", "exp", "=sticky", "-twokey", "-latchlock", NULL, // sticky keys // "xkbset", "exp", "=sticky", "-twokey", "-latchlock", NULL, // sticky keys
"~/.config/scripts/stickykeys.sh", NULL, // sticky keys script "/bin/stickykeys", NULL, // sticky keys script
"picom", NULL, // Start compositor , for transparency "picom", NULL, // Start compositor , for transparency
"nitrogen", "--restore", NULL, // Restores the wallpaper "nitrogen", "--restore", NULL, // Restores the wallpaper
"nm-applet", NULL, // Start the network manger "nm-applet", NULL, // Start the network manger

View file

@ -46,9 +46,11 @@ static Keychord keychords[] = {
{2, {{MODKEY, XK_w}, {0, XK_g}}, spawn, SHCMD(WEBBROWSER) }, {2, {{MODKEY, XK_w}, {0, XK_g}}, spawn, SHCMD(WEBBROWSER) },
// Tor brower // Tor brower
{2, {{MODKEY, XK_w}, {0, XK_t}}, spawn, SHCMD("tor-browser") }, {2, {{MODKEY, XK_w}, {0, XK_t}}, spawn, SHCMD("tor-browser") },
/************************************* Start the caht/email apps *************************************/ /************************************* Start the caht/email/\* apps *************************************/
// Discord // Discord
{2, {{MODKEY, XK_c}, {0, XK_d}}, spawn, SHCMD("discord") }, {2, {{MODKEY, XK_c}, {0, XK_d}}, spawn, SHCMD("discord") },
// Obsidian
{2, {{MODKEY, XK_c}, {0, XK_o}}, spawn, SHCMD("obsidian") },
/************************************* Start the dev apps *************************************/ /************************************* Start the dev apps *************************************/
// Jetbrains toolbox // Jetbrains toolbox
{2, {{MODKEY, XK_a}, {0, XK_j}}, spawn, SHCMD("jetbrains-toolbox") }, {2, {{MODKEY, XK_a}, {0, XK_j}}, spawn, SHCMD("jetbrains-toolbox") },
@ -68,7 +70,7 @@ static Keychord keychords[] = {
{2, {{MODKEY, XK_m}, {0, XK_c}}, spawn, SHCMD("sh -c \"" TERMINAL " -e cmus\" & sh -c \"cmus-rpc --link\"") }, {2, {{MODKEY, XK_m}, {0, XK_c}}, spawn, SHCMD("sh -c \"" TERMINAL " -e cmus\" & sh -c \"cmus-rpc --link\"") },
// vlc // vlc
{2, {{MODKEY, XK_m}, {0, XK_v}}, spawn, SHCMD("vlc") }, {2, {{MODKEY, XK_m}, {0, XK_v}}, spawn, SHCMD("vlc") },
// vlc in the main termcmd // vlc in the main terminal
{2, {{MODKEY, XK_m}, {ShiftMask, XK_v}}, spawn, SHCMD(TERMINAL "nvlc") }, {2, {{MODKEY, XK_m}, {ShiftMask, XK_v}}, spawn, SHCMD(TERMINAL "nvlc") },
/************************************* Start the emoji piker apps *************************************/ /************************************* Start the emoji piker apps *************************************/
// Emoji selector (rofi) // Emoji selector (rofi)