[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).
This commit is contained in:
Marty Oehme 2020-02-19 00:24:17 +01:00
parent 92d5155aca
commit 4e8be2abf2
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A

View file

@ -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