From 629a2ca5a95ae8b3194c782c92f4a2bd67bb2cda Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 22 Jun 2020 15:15:00 +0530 Subject: Adds screenshot mode --- config.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'config.h') 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 -- cgit v1.3.1