diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-06-22 15:15:00 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-06-22 15:15:00 +0530 |
| commit | 629a2ca5a95ae8b3194c782c92f4a2bd67bb2cda (patch) | |
| tree | 64f74b3f2ec42919cd7836ed0f2765c8a910df29 /config.h | |
| parent | bc0c3a5ef882714ebfcae7806decc0dd4bdd595d (diff) | |
| download | shotkey-629a2ca5a95ae8b3194c782c92f4a2bd67bb2cda.tar.gz shotkey-629a2ca5a95ae8b3194c782c92f4a2bd67bb2cda.zip | |
Adds screenshot mode
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -9,6 +9,7 @@ char shell[] = "/bin/sh"; enum { MusicPlayer, + Screenshot, // Declare modes above this MODE_SIZE, @@ -22,6 +23,11 @@ Key modes[MODE_SIZE][10] = { { 0, XK_h, SCRIPT(spotify.sh prev) }, { 0, XK_space, SCRIPT(spotify.sh play_pause) }, },// }}} + [Screenshot] = { // {{{ + { 0, XK_f, SCRIPT(screenshot.sh full) }, + { 0, XK_p, SCRIPT(screenshot.sh part) }, + { 0, XK_w, SCRIPT(screenshot.sh window) }, + },// }}} }; // Define normal mode key bindings here @@ -55,8 +61,7 @@ Key keys[] = { { ControlMask|ShiftMask, XK_l, SCRIPT(powercontrol.sh lock) }, { 0, XF86XK_MonBrightnessUp, SCRIPT(brightness.sh inc 10) }, { 0, XF86XK_MonBrightnessDown, SCRIPT(brightness.sh dec 10) }, - { 0, XK_Print, SCRIPT(screenshot.sh full) }, - { ControlMask, XK_Print, SCRIPT(screenshot.sh part) }, + { Super, XK_Print, mode(Screenshot, True) }, // }}} // Media controls {{{ @@ -70,6 +75,7 @@ Key keys[] = { ModeProperties mode_properties[MODE_SIZE] = { [MusicPlayer] = { "Music player" }, + [Screenshot] = { "Screeshot" }, }; // Call this script on mode change |
