From 966d87b3eada4cabc998ae7440698f7bb5f1616d Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 5 Jul 2020 10:29:56 +0200 Subject: [PATCH] [sxhkd] Separate calculator and run shortcuts Previously, super + r would open an extended run menu which contained all programs to run, ssh servers to connect to, clipboard history, open windows, *and* the calculator. It was cumbersome to open the window, switch the mode to calculator and then have it obscure half the screen. It was also the mode most often used. So, these two modes have been split, and their mappings updated: `super + shift + spacebar` opens the old extended run menu (sans calc), the mapping mimicking the 'extended' version of the normal run mapping. `super (+ shift) + r` opens the calculator. Without shift it opens top left of the screen, with shift bottom right. --- sxhkd/.config/sxhkd/sxhkdrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 88f4770..b61250e 100644 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc @@ -31,8 +31,12 @@ super + space rofi -show drun -theme themes/dmenu # open more extensive run menu -super + r - rofi -modi combi,ssh,calc -show combi -combi-modi "window,clipboard:greenclip print,run" -theme themes/dropdown +super + shift + space + rofi -modi combi,ssh -show combi -combi-modi "window,clipboard:greenclip print,run" -theme themes/dropdown + +# open dropdown calculator -- top left (small r), bottom right (capital R) +super + { r, shift + r } + rofi -modi calc -show calc -location { 1, 5 } # open gopass frontend menu super + p