home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 917cf136f2faa71e3a61a3542be4d4ede84537a8
parent 986e4e6e01d58af827f13a9fd436b9b67334d3a5
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu,  6 May 2021 11:30:16 +0200

users/vincent: add an emacs scratchpad 🙃

Quick agenda / note taking window

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Musers/vincent/desktop/i3.nix | 23++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/users/vincent/desktop/i3.nix b/users/vincent/desktop/i3.nix @@ -381,6 +381,20 @@ in for_window [instance="metask"] move scratchpad; [instance="metask"] scratchpad show; move position center; move scratchpad bindcode $mod+49 [instance="metask"] scratchpad show + exec --no-startup-id emacsclient -n -c -F "((name . \"_emacs scratchpad_\"))" + for_window [title="_emacs scratchpad_" class="Emacs"] move scratchpad + bindcode $mod+Shift+49 [title="_emacs scratchpad_" class="Emacs"] scratchpad show + + ## scratchpad + set $scratchpad "scratchpad: [$]terminal [p]avucontrol" + mode $scratchpad { + bindcode 49 [instance="metask"] scratchpad show; mode "default" + bindcode 33 [class="(?i)pavucontrol"] scratchpad show; mode "default" + bindsym Return mode "default" + bindsym Escape mode "default" + } + # bindcode $mod+49 mode $scratchpad + ## pomodoro # bepo s = 45 # bepo p = 26 @@ -394,15 +408,6 @@ in } bindcode $mod+43 mode $pomodoro - ## scratchpad - set $scratchpad "scratchpad: [$]terminal [p]avucontrol" - mode $scratchpad { - bindcode 49 [instance="metask"] scratchpad show; mode "default" - bindcode 33 [class="(?i)pavucontrol"] scratchpad show; mode "default" - bindsym Return mode "default" - bindsym Escape mode "default" - } - # bindcode $mod+49 mode $scratchpad # System menu set $sysmenu "system: [s]uspend [l]ock [r]estart [b]lank-screen [p]oweroff reload-[c]onf e[x]it" bindsym $mod+q mode $sysmenu