Created
June 1, 2018 12:40
-
-
Save LeReverandNox/c08f06783f23d5782d4c540887f811fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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