Skip to content

Instantly share code, notes, and snippets.

View agent-kilo's full-sized avatar

Agent Kilo agent-kilo

  • Gwong Zau
View GitHub Profile
@agent-kilo
agent-kilo / rotate-sibling-frames-cmd.janet
Created February 28, 2025 03:24
A script that provides a new command :rotate-sibling-frames for Jwno v0.9.11.
#
# rotate-sibling-frames-cmd.janet
#
# This script provides a new command :rotate-sibling-frames for Jwno v0.9.11.
# The command "rotates" the siblings of the current frame (including the current
# frame itself). Say we have a frame laid out like this, and sub-frame 1 is active:
#
# +---+---+---+
# | 1 | 2 | 3 |
# +-^-+---+---+
@agent-kilo
agent-kilo / ui-hint-crash-fix.janet
Created February 24, 2025 02:04
A simple fix for Jwno 0.9.11, to prevent multiple `:ui-hint` commands from running simultaneously.
#
# ui-hint-crash-fix.janet
#
# A simple fix for Jwno (https://github.com/agent-kilo/jwno) 0.9.11, to
# prevent multiple :ui-hint commands from running simultaneously, which
# may cause Jwno to crash or leak memory.
#
# To enable the fix, put this file alongside your config file, and
#
# (import ui-hint-crash-fix)
@agent-kilo
agent-kilo / work-area-fix.janet
Created February 7, 2025 12:12
A simple fix for Jwno 0.9.10, to handle the WM_SETTINGCHANGE message.
#
# work-area-fix.janet
#
# A simple fix for Jwno (https://github.com/agent-kilo/jwno) 0.9.10, to
# handle the WM_SETTINGCHANGE message, which is sent when the Taskbar or
# other third-party bars change the monitor work areas.
#
# To enable it, put this file alongside your config file, and
#
# (import work-area-fix)
@agent-kilo
agent-kilo / scroll.janet
Created January 17, 2025 06:09
A quick-and-dirty implementation of "scrolling" window managment, like PaperWM, for Jwno
# ==== scroll.janet ====
#
# A quick-and-dirty implementation of "scrolling" window
# managment, like PaperWM, for Jwno: https://github.com/agent-kilo/jwno.
#
# To test it out, put this file alongside your jwno-config.janet,
# and add these in your config:
#
# (import scroll)
# (def scroll (scroll/scroll jwno/context))
@agent-kilo
agent-kilo / wslg-transform.janet
Created December 19, 2024 03:10
A quick-and-dirty hack to manage WSLg windows with Jwno
#
# A quick-and-dirty hack to manage WSLg windows with Jwno
# (https://github.com/agent-kilo/jwno)
#
# To try it out, save this script to the same directory where
# your Jwno config resides, and do this in Jwno's REPL:
#
# (import wslg-transform)
# (def wt (wslg-transform/wslg-transform jwno/context))
# (:enable wt)