aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2020-06-22 15:15:00 +0530
committerAkshay Nair <phenax5@gmail.com>2020-06-22 15:15:00 +0530
commit629a2ca5a95ae8b3194c782c92f4a2bd67bb2cda (patch)
tree64f74b3f2ec42919cd7836ed0f2765c8a910df29 /config.h
parentbc0c3a5ef882714ebfcae7806decc0dd4bdd595d (diff)
downloadshotkey-629a2ca5a95ae8b3194c782c92f4a2bd67bb2cda.tar.gz
shotkey-629a2ca5a95ae8b3194c782c92f4a2bd67bb2cda.zip
Adds screenshot mode
Diffstat (limited to 'config.h')
-rw-r--r--config.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/config.h b/config.h
index 73827c0..e57908d 100644
--- a/config.h
+++ b/config.h
@@ -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