# i3 config file # scratchpad

# lancer un terminal en début de session
exec --no-startup-id "urxvtcd -name scratch -geometry 130x25"
# rendre le terminal flottant et centré
for_window [class="^URxvt$" instance="^scratch$"] floating enable, move absolute position center
# définir les propriétés du terminal
for_window [instance="^scratch$"] move scratchpad; [instance="^scratch$"] scratchpad show; move scratchpad
# assigner un raccourcis pour montrer/cacher le terminal
bindsym $mad+Return [instance="^scratch$"] scratchpad show
# relancer le scratch
bindsym $mad+Shift+Return exec --no-startup-id "urxvtcd -name scratch -geometry 130x25"
