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