Skip to content

Instantly share code, notes, and snippets.

@LeReverandNox
Created June 1, 2018 12:40
Show Gist options
  • Select an option

  • Save LeReverandNox/c08f06783f23d5782d4c540887f811fa to your computer and use it in GitHub Desktop.

Select an option

Save LeReverandNox/c08f06783f23d5782d4c540887f811fa to your computer and use it in GitHub Desktop.
#!/bin/bash
CURR_DESK_ID=$(chunkc tiling::query --desktop id)
if [ ! -f /tmp/chunkwm_fullscreen ]; then
touch /tmp/chunkwm_fullscreen;
chunkc set ${CURR_DESK_ID}_desktop_offset_top 0;
chunkc set ${CURR_DESK_ID}_desktop_offset_right 0;
chunkc set ${CURR_DESK_ID}_desktop_offset_bottom 0;
chunkc set ${CURR_DESK_ID}_desktop_offset_left 0;
chunkc core::unload border.so;
chunkc core::unload tiling.so;
chunkc core::load tiling.so;
chunkc tiling::window --toggle fullscreen;
else
rm /tmp/chunkwm_fullscreen;
chunkc set ${CURR_DESK_ID}_desktop_offset_top 10;
chunkc set ${CURR_DESK_ID}_desktop_offset_right 10;
chunkc set ${CURR_DESK_ID}_desktop_offset_bottom 10;
chunkc set ${CURR_DESK_ID}_desktop_offset_left 10;
chunkc core::unload tiling.so;
chunkc core::load tiling.so;
chunkc core::load border.so;
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment