From 4e8be2abf26aeb4985231a74ed4dae7d340a65f7 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 19 Feb 2020 00:24:17 +0100 Subject: [PATCH] [i3] Add todo and terminal dropdowns Added quick access to todo.md file in home directory with mod4+t, and to a dropdown terminal window with mod4+shift+return (mirroring the usual terminal creation without shift). --- i3/.config/i3/config | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 581a9a4..3b27833 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -85,6 +85,14 @@ bindsym $mod+v focus mode_toggle bindsym $mod+Shift+a focus parent bindsym $mod+a focus child +# make a (floating) window stick to all workspaces +bindsym $mod+ctrl+v sticky toggle + +# set up scratch pad for todo and 'drop-down' terminal +# call scratchpads to current workspace -- scratchpads started on i3 starting (see end of file) +bindsym $mod+t [class="Alacritty" instance="scratchpad" title="todo.md"] scratchpad show +bindsym $mod+Shift+Return [class="Alacritty" instance="scratchpad" title="dropdown"] scratchpad show + # GAP MANAGEMENT # disable titles and borders, necessary for i3gaps to work apparently for_window [class="^.*"] border pixel 0 @@ -215,6 +223,13 @@ assign [class="^Spotify$"] → 10 #fix for spotify not moving to workspace 10 for_window [class="^spotify$"] move to workspace 10 +# set up scratch pad for todo and 'drop-down' terminal +# to be called to current workspace when needed +exec_always --no-startup-id alacritty --title "todo.md" --class scratchpad,Alacritty -e nvim ~/todo.md +exec_always --no-startup-id alacritty --title "dropdown" --class scratchpad,Alacritty +for_window [class="Alacritty" instance="scratchpad"] floating enable +for_window [class="Alacritty" instance="scratchpad"] move scratchpad + # autostart often used apps # needs to be done like this to both automatically start the apps on correct workspace # and not confine them there forever