aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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