···11-function p
22- if test (count $argv) -gt 0 && test -f $argv[1] || not isatty
33- bat $argv
44- else
55- ls -Alh $argv
66- end
77-end
-25
fish/.config/fish/functions/wiki.fish
···11-function wiki
22- set -l comm index
33- set -l editor nvim
44-55- if set -q NVIM_LISTEN_ADDRESS
66- set editor nvr -cc split
77- end
88-99- if test (count $argv) -gt 0
1010- set comm $argv[1]
1111- end
1212-1313- switch $comm
1414- case diary d
1515- eval "$editor" +VimwikiDiaryIndex
1616- case today t
1717- eval "$editor" +VimwikiMakeDiaryNote
1818- case yesterday y
1919- eval "$editor" +VimwikiMakeYesterdayDiaryNote
2020- case tomorrow a
2121- eval "$editor" +VimwikiMakeTomorrowDiaryNote
2222- case '' index i
2323- eval "$editor" +VimwikiIndex
2424- end
2525-end
···11+{ inputs
22+, overlays
33+, ...
44+}: {
55+ type = "darwin";
66+77+ hostname = "NiunioBook";
88+99+ system = inputs.darwin.lib.darwinSystem {
1010+ system = "x86_64-darwin";
1111+ modules = [
1212+ { nixpkgs = { inherit overlays; }; }
1313+ {
1414+ # You should generally set this to the total number of logical cores in your system.
1515+ # $ sysctl -n hw.ncpu
1616+ nix.settings.max-jobs = 8;
1717+ nix.settings.cores = 8;
1818+ }
1919+ ../modules/common.nix
2020+ ../modules/darwin.nix
2121+ ../modules/iosevka.nix
2222+ ../nix/environment.nix
2323+ ../modules/nvim.nix
2424+ {
2525+ system.stateVersion = 4;
2626+ documentation.enable = true;
2727+ }
2828+ ];
2929+3030+ inputs = {
3131+ dotfiles = inputs.self;
3232+ };
3333+ };
3434+}
-810
kitty/.config/kitty/kitty.conf
···11-# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
22-33-#: Fonts {{{
44-55-#: kitty has very powerful font management. You can configure
66-#: individual font faces and even specify special fonts for particular
77-#: characters.
88-99-font_family Iosevka Term Medium
1010-bold_font Iosevka Term Bold
1111-italic_font Iosevka Term Medium Italic
1212-bold_italic_font Iosevka Term Bold Italic
1313-1414-#: You can specify different fonts for the bold/italic/bold-italic
1515-#: variants. By default they are derived automatically, by the OSes
1616-#: font system. Setting them manually is useful for font families that
1717-#: have many weight variants like Book, Medium, Thick, etc. For
1818-#: example::
1919-2020-#: font_family Operator Mono Book
2121-#: bold_font Operator Mono Medium
2222-#: italic_font Operator Mono Book Italic
2323-#: bold_italic_font Operator Mono Medium Italic
2424-2525-font_size 14.0
2626-2727-#: Font size (in pts)
2828-2929-adjust_line_height 100%
3030-# adjust_column_width 0
3131-3232-#: Change the size of each character cell kitty renders. You can use
3333-#: either numbers, which are interpreted as pixels or percentages
3434-#: (number followed by %), which are interpreted as percentages of the
3535-#: unmodified values. You can use negative pixels or percentages less
3636-#: than 100% to reduce sizes (but this might cause rendering
3737-#: artifacts).
3838-3939-# symbol_map U+E0A0-U+E0A2,U+E0B0-U+E0B3 PowerlineSymbols
4040-4141-#: Map the specified unicode codepoints to a particular font. Useful
4242-#: if you need special rendering for some symbols, such as for
4343-#: Powerline. Avoids the need for patched fonts. Each unicode code
4444-#: point is specified in the form U+<code point in hexadecimal>. You
4545-#: can specify multiple code points, separated by commas and ranges
4646-#: separated by hyphens. symbol_map itself can be specified multiple
4747-#: times. Syntax is::
4848-4949-#: symbol_map codepoints Font Family Name
5050-5151-# box_drawing_scale 0.001, 1, 1.5, 2
5252-5353-#: Change the sizes of the lines used for the box drawing unicode
5454-#: characters These values are in pts. They will be scaled by the
5555-#: monitor DPI to arrive at a pixel value. There must be four values
5656-#: corresponding to thin, normal, thick, and very thick lines.
5757-5858-#: }}}
5959-6060-#: Cursor customization {{{
6161-6262-cursor #ffffff
6363-6464-#: Default cursor color
6565-6666-# cursor_shape block
6767-6868-#: The cursor shape can be one of (block, beam, underline)
6969-7070-# cursor_blink_interval 0.5
7171-# cursor_stop_blinking_after 15.0
7272-7373-#: The interval (in seconds) at which to blink the cursor. Set to zero
7474-#: to disable blinking. Note that numbers smaller than repaint_delay
7575-#: will be limited to repaint_delay. Stop blinking cursor after the
7676-#: specified number of seconds of keyboard inactivity. Set to zero to
7777-#: never stop blinking.
7878-7979-#: }}}
8080-8181-#: Scrollback {{{
8282-8383-# scrollback_lines 2000
8484-8585-#: Number of lines of history to keep in memory for scrolling back.
8686-#: Memory is allocated on demand.
8787-8888-# scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
8989-9090-#: Program with which to view scrollback in a new window. The
9191-#: scrollback buffer is passed as STDIN to this program. If you change
9292-#: it, make sure the program you use can handle ANSI escape sequences
9393-#: for colors and text formatting. INPUT_LINE_NUMBER in the command
9494-#: line above will be replaced by an integer representing which line
9595-#: should be at the top of the screen.
9696-9797-# wheel_scroll_multiplier 5.0
9898-9999-#: Modify the amount scrolled by the mouse wheel or touchpad. Use
100100-#: negative numbers to change scroll direction.
101101-102102-#: }}}
103103-104104-#: Mouse {{{
105105-106106-# url_color #0087BD
107107-# url_style curly
108108-109109-#: The color and style for highlighting URLs on mouse-over. url_style
110110-#: can be one of: none, single, double, curly
111111-112112-# open_url_modifiers kitty_mod
113113-114114-#: The modifier keys to press when clicking with the mouse on URLs to
115115-#: open the URL
116116-117117-# open_url_with default
118118-119119-#: The program with which to open URLs that are clicked on. The
120120-#: special value default means to use the operating system's default
121121-#: URL handler.
122122-123123-# copy_on_select no
124124-125125-#: Copy to clipboard on select. With this enabled, simply selecting
126126-#: text with the mouse will cause the text to be copied to clipboard.
127127-#: Useful on platforms such as macOS/Wayland that do not have the
128128-#: concept of primary selections. Note that this is a security risk,
129129-#: as all programs, including websites open in your browser can read
130130-#: the contents of the clipboard.
131131-132132-# rectangle_select_modifiers ctrl+alt
133133-134134-#: The modifiers to use rectangular selection (i.e. to select text in
135135-#: a rectangular block with the mouse)
136136-137137-# select_by_word_characters :@-./_~?&=%+#
138138-139139-#: Characters considered part of a word when double clicking. In
140140-#: addition to these characters any character that is marked as an
141141-#: alpha-numeric character in the unicode database will be matched.
142142-143143-# click_interval 0.5
144144-145145-#: The interval between successive clicks to detect double/triple
146146-#: clicks (in seconds)
147147-148148-# mouse_hide_wait 3.0
149149-150150-#: Hide mouse cursor after the specified number of seconds of the
151151-#: mouse not being used. Set to zero to disable mouse cursor hiding.
152152-153153-# focus_follows_mouse no
154154-155155-#: Set the active window to the window under the mouse when moving the
156156-#: mouse around
157157-158158-#: }}}
159159-160160-#: Performance tuning {{{
161161-162162-# repaint_delay 10
163163-164164-#: Delay (in milliseconds) between screen updates. Decreasing it,
165165-#: increases frames-per-second (FPS) at the cost of more CPU usage.
166166-#: The default value yields ~100 FPS which is more than sufficient for
167167-#: most uses. Note that to actually achieve 100 FPS you have to either
168168-#: set sync_to_monitor to no or use a monitor with a high refresh
169169-#: rate.
170170-171171-# input_delay 3
172172-173173-#: Delay (in milliseconds) before input from the program running in
174174-#: the terminal is processed. Note that decreasing it will increase
175175-#: responsiveness, but also increase CPU usage and might cause flicker
176176-#: in full screen programs that redraw the entire screen on each loop,
177177-#: because kitty is so fast that partial screen updates will be drawn.
178178-179179-sync_to_monitor no
180180-181181-#: Sync screen updates to the refresh rate of the monitor. This
182182-#: prevents tearing (https://en.wikipedia.org/wiki/Screen_tearing)
183183-#: when scrolling. However, it limits the rendering speed to the
184184-#: refresh rate of your monitor. With a very high speed mouse/high
185185-#: keyboard repeat rate, you may notice some slight input latency. If
186186-#: so, set this to no.
187187-188188-#: }}}
189189-190190-#: Terminal bell {{{
191191-192192-enable_audio_bell false
193193-194194-#: Enable/disable the audio bell. Useful in environments that require
195195-#: silence.
196196-197197-visual_bell_duration 0.1
198198-199199-#: Visual bell duration. Flash the screen when a bell occurs for the
200200-#: specified number of seconds. Set to zero to disable.
201201-202202-# window_alert_on_bell yes
203203-204204-#: Request window attention on bell. Makes the dock icon bounce on
205205-#: macOS or the taskbar flash on linux.
206206-207207-# bell_on_tab yes
208208-209209-#: Show a bell symbol on the tab if a bell occurs in one of the
210210-#: windows in the tab and the window is not the currently focused
211211-#: window
212212-213213-#: }}}
214214-215215-#: Window layout {{{
216216-217217-# remember_window_size yes
218218-# initial_window_width 640
219219-# initial_window_height 400
220220-221221-#: If enabled, the window size will be remembered so that new
222222-#: instances of kitty will have the same size as the previous
223223-#: instance. If disabled, the window will initially have size
224224-#: configured by initial_window_width/height, in pixels. You can use a
225225-#: suffix of "c" on the width/height values to have them interpreted
226226-#: as number of cells instead of pixels.
227227-228228-# enabled_layouts *
229229-230230-#: The enabled window layouts. A comma separated list of layout names.
231231-#: The special value * means all layouts. The first listed layout will
232232-#: be used as the startup layout. For a list of available layouts, see
233233-#: the layouts.
234234-235235-# window_resize_step_cells 2
236236-# window_resize_step_lines 2
237237-238238-#: The step size (in units of cell width/cell height) to use when
239239-#: resizing windows. The cells value is used for horizontal resizing
240240-#: and the lines value for vertical resizing.
241241-242242-# window_border_width 1.0
243243-244244-#: The width (in pts) of window borders. Will be rounded to the
245245-#: nearest number of pixels based on screen resolution. Note that
246246-#: borders are displayed only when more than one window is visible.
247247-#: They are meant to separate multiple windows.
248248-249249-# draw_minimal_borders yes
250250-251251-#: Draw only the minimum borders needed. This means that only the
252252-#: minimum needed borders for inactive windows are drawn. That is only
253253-#: the borders that separate the inactive window from a neighbor. Note
254254-#: that setting a non-zero window margin overrides this and causes all
255255-#: borders to be drawn.
256256-257257-# window_margin_width 10.0
258258-259259-#: The window margin (in pts) (blank area outside the border)
260260-261261-# single_window_margin_width -1000.0
262262-263263-#: The window margin (in pts) to use when only a single window is
264264-#: visible. Negative values will cause the value of
265265-#: window_margin_width to be used instead.
266266-267267-window_padding_width 30.0
268268-269269-#: The window padding (in pts) (blank area between the text and the
270270-#: window border)
271271-272272-# active_border_color #00ff00
273273-274274-#: The color for the border of the active window
275275-276276-# inactive_border_color #cccccc
277277-278278-#: The color for the border of inactive windows
279279-280280-# bell_border_color #ff5a00
281281-282282-#: The color for the border of inactive windows in which a bell has
283283-#: occurred
284284-285285-# inactive_text_alpha 1.0
286286-287287-#: Fade the text in inactive windows by the specified amount (a number
288288-#: between zero and one, with zero being fully faded).
289289-290290-#: }}}
291291-292292-#: Tab bar {{{
293293-294294-# tab_bar_edge bottom
295295-296296-#: Which edge to show the tab bar on, top or bottom
297297-298298-tab_bar_margin_width 30.0
299299-300300-#: The margin to the left and right of the tab bar (in pts)
301301-302302-tab_bar_style fade
303303-304304-#: The tab bar style, can be one of: fade or separator. In the fade
305305-#: style, each tab's edges fade into the background color, in the
306306-#: separator style, tabs are separated by a configurable separator.
307307-308308-# tab_fade 0.25 0.5 0.75 1
309309-310310-#: Control how each tab fades into the background when using fade for
311311-#: the tab_bar_style. Each number is an alpha (between zero and one)
312312-#: that controls how much the corresponding cell fades into the
313313-#: background, with zero being no fade and one being full fade. You
314314-#: can change the number of cells used by adding/removing entries to
315315-#: this list.
316316-317317-# tab_separator " ┇ "
318318-319319-#: The separator between tabs in the tab bar when using separator as
320320-#: the tab_bar_style.
321321-322322-active_tab_foreground #2b3240
323323-active_tab_background #c1c9d4
324324-# active_tab_font_style bold-italic
325325-inactive_tab_foreground #4a5265
326326-inactive_tab_background #2b3240
327327-# inactive_tab_font_style normal
328328-329329-#: Tab bar colors and styles
330330-331331-#: }}}
332332-333333-#: Color scheme {{{
334334-335335-foreground #c1c9d4
336336-background #2b3240
337337-338338-#: The foreground and background colors
339339-340340-# background_opacity 1
341341-# dynamic_background_opacity no
342342-343343-#: The opacity of the background. A number between 0 and 1, where 1 is
344344-#: opaque and 0 is fully transparent. This will only work if
345345-#: supported by the OS (for instance, when using a compositor under
346346-#: X11). Note that it only sets the default background color's
347347-#: opacity. This is so that things like the status bar in vim,
348348-#: powerline prompts, etc. still look good. But it means that if you
349349-#: use a color theme with a background color in your editor, it will
350350-#: not be rendered as transparent. Instead you should change the
351351-#: default background color in your kitty config and not use a
352352-#: background color in the editor color scheme. Or use the escape
353353-#: codes to set the terminals default colors in a shell script to
354354-#: launch your editor. Be aware that using a value less than 1.0 is a
355355-#: (possibly significant) performance hit. If you want to dynamically
356356-#: change transparency of windows set dynamic_background_opacity to
357357-#: yes (this is off by default as it has a performance cost)
358358-359359-# dim_opacity 0.75
360360-361361-#: How much to dim text that has the DIM/FAINT attribute set. One
362362-#: means no dimming and zero means fully dimmed (i.e. invisible).
363363-364364-selection_foreground #2b3240
365365-selection_background #8c98a7
366366-367367-#: The foreground and background for text selected with the mouse
368368-369369-370370-#: The 16 terminal colors. There are 8 basic colors, each color has a
371371-#: dull and bright version. You can also set the remaining colors from
372372-#: the 256 color table as color16 to color255.
373373-374374-color0 #2b3240
375375-color8 #4a5265
376376-377377-#: black
378378-379379-color1 #bc284f
380380-color9 #bc284f
381381-382382-#: red
383383-384384-color2 #88b4ad
385385-color10 #88b4ad
386386-387387-#: green
388388-389389-color3 #ffffff
390390-color11 #ffffff
391391-392392-#: yellow
393393-394394-color4 #5c8097
395395-color12 #5c8097
396396-397397-#: blue
398398-399399-color5 #4f426a
400400-color13 #4f426a
401401-402402-#: magenta
403403-404404-color6 #008097
405405-color14 #008097
406406-407407-#: cyan
408408-409409-color7 #8c98a7
410410-color15 #c1c9d4
411411-412412-#: white
413413-414414-#: }}}
415415-416416-#: Advanced {{{
417417-418418-# shell .
419419-420420-#: The shell program to execute. The default value of . means to use
421421-#: whatever shell is set as the default shell for the current user.
422422-#: Note that on macOS if you change this, you might need to add
423423-#: --login to ensure that the shell starts in interactive mode and
424424-#: reads its startup rc files.
425425-426426-# editor .
427427-428428-#: The console editor to use when editing the kitty config file or
429429-#: similar tasks. A value of . means to use the environment variable
430430-#: EDITOR. Note that this environment variable has to be set not just
431431-#: in your shell startup scripts but system-wide, otherwise kitty will
432432-#: not see it.
433433-434434-# close_on_child_death no
435435-436436-#: Close the window when the child process (shell) exits. If no (the
437437-#: default), the terminal will remain open when the child exits as
438438-#: long as there are still processes outputting to the terminal (for
439439-#: example disowned or backgrounded processes). If yes, the window
440440-#: will close as soon as the child process exits. Note that setting it
441441-#: to yes means that any background processes still using the terminal
442442-#: can fail silently because their stdout/stderr/stdin no longer work.
443443-444444-allow_remote_control yes
445445-446446-#: Allow other programs to control kitty. If you turn this on other
447447-#: programs can control all aspects of kitty, including sending text
448448-#: to kitty windows, opening new windows, closing windows, reading the
449449-#: content of windows, etc. Note that this even works over ssh
450450-#: connections.
451451-452452-# startup_session none
453453-454454-#: Path to a session file to use for all kitty instances. Can be
455455-#: overridden by using the kitty --session command line option for
456456-#: individual instances. See sessions in the kitty documentation for
457457-#: details. Note that relative paths are interpreted with respect to
458458-#: the kitty config directory. Environment variables in the path are
459459-#: expanded.
460460-461461-# clipboard_control write-clipboard write-primary
462462-463463-#: Allow programs running in kitty to read and write from the
464464-#: clipboard. You can control exactly which actions are allowed. The
465465-#: set of possible actions is: write-clipboard read-clipboard write-
466466-#: primary read-primary The default is to allow writing to the
467467-#: clipboard and primary selection. Note that enabling the read
468468-#: functionality is a security risk as it means that any program, even
469469-#: one running on a remote server via SSH can read your clipboard.
470470-471471-term xterm-256color
472472-473473-#: The value of the TERM environment variable to set. Changing this
474474-#: can break many terminal programs, only change it if you know what
475475-#: you are doing, not because you read some advice on Stack Overflow
476476-#: to change it.
477477-478478-#: }}}
479479-480480-#: OS specific tweaks {{{
481481-482482-macos_thicken_font 0.0
483483-484484-macos_titlebar_color background
485485-486486-#: Change the color of the kitty window's titlebar on macOS. A value
487487-#: of system means to use the default system color, a value of
488488-#: background means to use the background color of the currently
489489-#: active window and finally you can use an arbitrary color, such as
490490-#: #12af59 or red. WARNING: This option works by using a hack, as
491491-#: there is no proper Cocoa API for it. It sets the background color
492492-#: of the entire window and makes the titlebar transparent. As such it
493493-#: is incompatible with background_opacity. If you want to use both,
494494-#: you are probably better off just hiding the titlebar with
495495-#: macos_hide_titlebar.
496496-497497-# macos_hide_titlebar yes
498498-499499-#: Hide the kitty window's title bar on macOS.
500500-501501-# x11_hide_window_decorations no
502502-503503-#: Hide the window decorations (title bar and window borders) on X11
504504-#: and Wayland. Whether this works and exactly what effect it has
505505-#: depends on the window manager, as it is the job of the window
506506-#: manager/compositor to draw window decorations.
507507-508508-# macos_option_as_alt no
509509-510510-#: Use the option key as an alt key. With this set to no, kitty will
511511-#: use the macOS native Option+Key = unicode character behavior. This
512512-#: will break any Alt+key keyboard shortcuts in your terminal
513513-#: programs, but you can use the macOS unicode input technique.
514514-515515-# macos_hide_from_tasks no
516516-517517-#: Hide the kitty window from running tasks (Option+Tab) on macOS.
518518-519519-# macos_quit_when_last_window_closed no
520520-521521-#: Have kitty quit when all the top-level windows are closed. By
522522-#: default, kitty will stay running, even with no open windows, as is
523523-#: the expected behavior on macOS.
524524-525525-# macos_window_resizable yes
526526-527527-#: Disable this if you want kitty top-level (OS) windows to not be
528528-#: resizable on macOS.
529529-530530-#: }}}
531531-532532-#: Keyboard shortcuts {{{
533533-534534-#: For a list of key names, see: GLFW keys
535535-#: <http://www.glfw.org/docs/latest/group__keys.html>. The name to use
536536-#: is the part after the GLFW_KEY_ prefix. For a list of modifier
537537-#: names, see: GLFW mods
538538-#: <http://www.glfw.org/docs/latest/group__mods.html>
539539-540540-#: On Linux you can also use XKB key names to bind keys that are not
541541-#: supported by GLFW. See XKB keys
542542-#: <https://github.com/xkbcommon/libxkbcommon/blob/master/xkbcommon/xkbcommon-
543543-#: keysyms.h> for a list of key names. The name to use is the part
544544-#: after the XKB_KEY_ prefix. Note that you should only use an XKB key
545545-#: name for keys that are not present in the list of GLFW keys.
546546-547547-#: You can use the special action no_op to unmap a keyboard shortcut
548548-#: that is assigned in the default configuration.
549549-550550-#: You can combine multiple actions to be triggered by a single
551551-#: shortcut, using the syntax below::
552552-553553-#: map key combine <separator> action1 <separator> action2 <separator> action3 ...
554554-555555-#: For example::
556556-557557-#: map kitty_mod+e combine : new_window : next_layout
558558-559559-#: this will create a new window and switch to the next available
560560-#: layout
561561-562562-#: You can use multi-key shortcuts using the syntax shown below::
563563-564564-#: map key1>key2>key3 action
565565-566566-#: For example::
567567-568568-#: map ctrl+f>2 set_font_size 20
569569-570570-# kitty_mod ctrl+shift
571571-572572-#: The value of kitty_mod is used as the modifier for all default
573573-#: shortcuts, you can change it in your kitty.conf to change the
574574-#: modifiers for all the default shortcuts.
575575-576576-# clear_all_shortcuts no
577577-578578-#: You can have kitty remove all shortcut definition seen up to this
579579-#: point. Useful, for instance, to remove the default shortcuts.
580580-581581-#: Clipboard {{{
582582-583583-# map cmd+c copy_to_clipboard
584584-# map kitty_mod+c copy_to_clipboard
585585-# map cmd+v paste_from_clipboard
586586-# map kitty_mod+v paste_from_clipboard
587587-# map kitty_mod+s paste_from_selection
588588-# map shift+insert paste_from_selection
589589-# map kitty_mod+o pass_selection_to_program
590590-591591-#: You can also pass the contents of the current selection to any
592592-#: program using pass_selection_to_program. By default, the system's
593593-#: open program is used, but you can specify your own, for example::
594594-595595-#: map kitty_mod+o pass_selection_to_program firefox
596596-597597-#: You can pass the current selection to a terminal program running in
598598-#: a new kitty window, by using the @selection placeholder::
599599-600600-#: map kitty_mod+y new_window less @selection
601601-602602-#: }}}
603603-604604-#: Scrolling {{{
605605-606606-# map kitty_mod+up scroll_line_up
607607-# map kitty_mod+k scroll_line_up
608608-# map kitty_mod+down scroll_line_down
609609-# map kitty_mod+j scroll_line_down
610610-# map kitty_mod+page_up scroll_page_up
611611-# map kitty_mod+page_down scroll_page_down
612612-# map kitty_mod+home scroll_home
613613-# map kitty_mod+end scroll_end
614614-# map kitty_mod+h show_scrollback
615615-616616-#: You can send the contents of the current screen + history buffer as
617617-#: stdin to an arbitrary program using the placeholders @text (which
618618-#: is the plain text) and @ansi (which includes text styling escape
619619-#: codes). For only the current screen, use @screen or @ansi_screen.
620620-#: For example, the following command opens the scrollback buffer in
621621-#: less in a new window::
622622-623623-#: map kitty_mod+y new_window @ansi less +G -R
624624-625625-#: }}}
626626-627627-#: Window management {{{
628628-629629-#: You can open a new window running an arbitrary program, for
630630-#: example::
631631-632632-#: map kitty_mod+y new_window mutt
633633-634634-#: You can open a new window with the current working directory set to
635635-#: the working directory of the current window using::
636636-637637-#: map ctrl+alt+enter new_window_with_cwd
638638-639639-# map cmd+n new_os_window
640640-# map kitty_mod+n new_os_window
641641-# map kitty_mod+w close_window
642642-# map kitty_mod+] next_window
643643-# map kitty_mod+[ previous_window
644644-# map kitty_mod+f move_window_forward
645645-# map kitty_mod+b move_window_backward
646646-# map kitty_mod+` move_window_to_top
647647-# map kitty_mod+r start_resizing_window
648648-# map kitty_mod+1 first_window
649649-# map kitty_mod+2 second_window
650650-# map kitty_mod+3 third_window
651651-# map kitty_mod+4 fourth_window
652652-# map kitty_mod+5 fifth_window
653653-# map kitty_mod+6 sixth_window
654654-# map kitty_mod+7 seventh_window
655655-# map kitty_mod+8 eighth_window
656656-# map kitty_mod+9 ninth_window
657657-# map kitty_mod+0 tenth_window
658658-#: }}}
659659-660660-#: Tab management {{{
661661-662662-# map kitty_mod+right next_tab
663663-# map kitty_mod+left previous_tab
664664-# map kitty_mod+t new_tab
665665-# map kitty_mod+q close_tab
666666-# map kitty_mod+. move_tab_forward
667667-# map kitty_mod+, move_tab_backward
668668-# map kitty_mod+alt+t set_tab_title
669669-670670-#: You can also create shortcuts to go to specific tabs, with 1 being
671671-#: the first tab::
672672-673673-#: map ctrl+alt+1 goto_tab 1
674674-#: map ctrl+alt+2 goto_tab 2
675675-676676-#: Just as with new_window above, you can also pass the name of
677677-#: arbitrary commands to run when using new_tab and use
678678-#: new_tab_with_cwd.
679679-#: }}}
680680-681681-#: Layout management {{{
682682-683683-# map kitty_mod+l next_layout
684684-685685-#: You can also create shortcuts to switch to specific layouts::
686686-687687-#: map ctrl+alt+t goto_layout tall
688688-#: map ctrl+alt+s goto_layout stack
689689-#: }}}
690690-691691-#: Font sizes {{{
692692-693693-#: You can change the font size for all top-level kitty windows at a
694694-#: time or only the current one.
695695-696696-# map kitty_mod+equal change_font_size all +2.0
697697-# map kitty_mod+minus change_font_size all -2.0
698698-# map kitty_mod+backspace change_font_size all 0
699699-700700-#: To setup shortcuts for specific font sizes::
701701-702702-#: map kitty_mod+f6 change_font_size all 10.0
703703-704704-#: To setup shortcuts to change only the current window's font size::
705705-706706-#: map kitty_mod+f6 change_font_size current 10.0
707707-#: }}}
708708-709709-#: Select and act on visible text {{{
710710-711711-#: Use the hints kitten to select text and either pass it to an
712712-#: external program or insert it into the terminal or copy it to the
713713-#: clipboard.
714714-715715-# map kitty_mod+e kitten hints
716716-717717-#: Open a currently visible URL using the keyboard. The program used
718718-#: to open the URL is specified in open_url_with.
719719-720720-# map kitty_mod+p>f kitten hints --type path --program -
721721-722722-#: Select a path/filename and insert it into the terminal. Useful, for
723723-#: instance to run git commands on a filename output from a previous
724724-#: git command.
725725-726726-# map kitty_mod+p>shift+f kitten hints --type path
727727-728728-#: Select a path/filename and open it with the default open program.
729729-730730-# map kitty_mod+p>l kitten hints --type line --program -
731731-732732-#: Select a line of text and insert it into the terminal. Use for the
733733-#: output of things like: ls -1
734734-735735-# map kitty_mod+p>w kitten hints --type word --program -
736736-737737-#: Select words and insert into terminal.
738738-739739-# map kitty_mod+p>h kitten hints --type hash --program -
740740-741741-#: Select something that looks like a hash and insert it into the
742742-#: terminal. Useful with git, which uses sha1 hashes to identify
743743-#: commits
744744-745745-746746-#: The hints kitten has many more modes of operation that you can map
747747-#: to different shortcuts. For a full description see kittens/hints.
748748-#: }}}
749749-750750-#: Miscellaneous {{{
751751-752752-# map kitty_mod+f11 toggle_fullscreen
753753-# map kitty_mod+u input_unicode_character
754754-# map kitty_mod+f2 edit_config_file
755755-# map kitty_mod+escape kitty_shell window
756756-757757-#: Open the kitty shell in a new window/tab/overlay/os_window to
758758-#: control kitty using commands.
759759-760760-# map kitty_mod+a>m set_background_opacity +0.1
761761-# map kitty_mod+a>l set_background_opacity -0.1
762762-# map kitty_mod+a>1 set_background_opacity 1
763763-# map kitty_mod+a>d set_background_opacity default
764764-765765-#: You can tell kitty to send arbitrary (UTF-8) encoded text to the
766766-#: client program when pressing specified shortcut keys. For example::
767767-768768-#: map ctrl+alt+a send_text all Special text
769769-770770-#: This will send "Special text" when you press the ctrl+alt+a key
771771-#: combination. The text to be sent is a python string literal so you
772772-#: can use escapes like \x1b to send control codes or \u21fb to send
773773-#: unicode characters (or you can just input the unicode characters
774774-#: directly as UTF-8 text). The first argument to send_text is the
775775-#: keyboard modes in which to activate the shortcut. The possible
776776-#: values are normal or application or kitty or a comma separated
777777-#: combination of them. The special keyword all means all modes. The
778778-#: modes normal and application refer to the DECCKM cursor key mode
779779-#: for terminals, and kitty refers to the special kitty extended
780780-#: keyboard protocol.
781781-782782-#: Another example, that outputs a word and then moves the cursor to
783783-#: the start of the line (same as pressing the Home key)::
784784-785785-#: map ctrl+alt+a send_text normal Word\x1b[H
786786-#: map ctrl+alt+a send_text application Word\x1bOH
787787-788788-#: }}}
789789-790790-map alt+a send_text all \u0105
791791-map alt+c send_text all \u0107
792792-map alt+e send_text all \u0119
793793-map alt+l send_text all \u0142
794794-map alt+n send_text all \u0144
795795-map alt+o send_text all \u00F3
796796-map alt+s send_text all \u015B
797797-map alt+x send_text all \u017A
798798-map alt+z send_text all \u017C
799799-800800-map alt+shift+a send_text all \u0104
801801-map alt+shift+c send_text all \u0106
802802-map alt+shift+e send_text all \u0118
803803-map alt+shift+l send_text all \u0141
804804-map alt+shift+n send_text all \u0143
805805-map alt+shift+o send_text all \u00d3
806806-map alt+shift+s send_text all \u015a
807807-map alt+shift+x send_text all \u0179
808808-map alt+shift+z send_text all \u017b
809809-810810-# }}}
···11-#!/bin/bash
22-33-if [ -r ~/.cache/wal/chunkwmcolors ]; then
44- source ~/.cache/wal/chunkwmcolors
55-fi
66-77-NFOCUS=$(echo $FOCUS | sed 's/#//')
88-NPRESE=$(echo $PRESE | sed 's/#//')
99-1010-#
1111-# NOTE: specify the absolutepath to the directory to use when
1212-# loading a plugin. '~' expansion is supported.
1313-#
1414-1515-chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
1616-1717-#
1818-# NOTE: if enabled, chunkwm will monitor the specified plugin_dir
1919-# and automatically reload any '.so' file that is changed.
2020-#
2121-2222-chunkc core::hotload 1
2323-chunkc core::unload tiling.so
2424-chunkc core::unload ffm.so
2525-chunkc core::unload border.so
2626-2727-#
2828-# NOTE: the following are config variables for the chunkwm-tiling plugin.
2929-#
3030-3131-chunkc set global_desktop_mode bsp
3232-3333-chunkc set global_desktop_offset_top 5
3434-chunkc set global_desktop_offset_bottom 5
3535-chunkc set global_desktop_offset_left 10
3636-chunkc set global_desktop_offset_right 10
3737-chunkc set global_desktop_offset_gap 5
3838-3939-chunkc set bsp_optimal_ratio 1.618
4040-chunkc set bsp_split_mode optimal
4141-chunkc set bsp_split_ratio 0.5
4242-4343-# chunkc set mouse_move_window shift
4444-# chunkc set mouse_resize_window shift
4545-# chunkc set mouse_motion_interval 35
4646-4747-chunkc set monitor_focus_cycle 1
4848-chunkc set window_focus_cycle monitor
4949-5050-chunkc set window_float_next 0
5151-chunkc set window_float_center 1
5252-chunkc set window_region_locked 1
5353-5454-chunkc set focused_border_color "0xFFc1c9d4"
5555-chunkc set focused_border_width 5
5656-chunkc set focused_border_radius 0
5757-chunkc set focused_border_skip_floating 0
5858-5959-chunkc tiling::rule --owner Dash --state sticky
6060-6161-#
6262-# NOTE: specify plugins to load when chunkwm starts.
6363-# if chunkc plugin_dir is not set, the absolutepath is necessary.
6464-#
6565-6666-chunkc core::load border.so
6767-chunkc core::load tiling.so
6868-chunkc core::load ffm.so
-43
wm/.skhdrc
···11-# enter fullscreen mode for the focused container
22-shift + alt + ctrl + cmd - f : chunkc tiling::window --toggle fullscreen
33-44-# change focus between tiling / floating windows
55-shift + alt + ctrl + cmd - space : chunkc tiling::window --toggle float
66-77-# change layout of desktop
88-shift + alt + ctrl + cmd - e : chunkc tiling::desktop --layout bsp
99-shift + alt + ctrl + cmd - s : chunkc tiling::desktop --layout monocle
1010-1111-# kill focused window
1212-shift + alt + ctrl + cmd - q : chunkc tiling::window --close
1313-1414-# change focus
1515-ctrl + cmd - h : chunkc tiling::window --focus west
1616-ctrl + cmd - j : chunkc tiling::window --focus south
1717-ctrl + cmd - k : chunkc tiling::window --focus north
1818-ctrl + cmd - l : chunkc tiling::window --focus east
1919-2020-ctrl + cmd - p : chunkc tiling::window --focus prev
2121-ctrl + cmd - n : chunkc tiling::window --focus next
2222-2323-shift + alt + ctrl + cmd - p : chunkc tiling::window --focus prev
2424-shift + alt + ctrl + cmd - n : chunkc tiling::window --focus next
2525-2626-# move focused window
2727-shift + alt + ctrl + cmd - h : chunkc tiling::window --swap west
2828-shift + alt + ctrl + cmd - j : chunkc tiling::window --swap south
2929-shift + alt + ctrl + cmd - k : chunkc tiling::window --swap north
3030-shift + alt + ctrl + cmd - l : chunkc tiling::window --swap east
3131-3232-shift + alt + ctrl + cmd - r : chunkc tiling::desktop --rotate 90
3333-3434-# move focused container to workspace
3535-shift + alt + ctrl + cmd - m : chunkc tiling::window --send-to-desktop $(chunkc get _last_active_desktop)
3636-shift + alt + ctrl + cmd - p : chunkc tiling::window --send-to-desktop prev
3737-shift + alt + ctrl + cmd - n : chunkc tiling::window --send-to-desktop next
3838-shift + alt + ctrl + cmd - 1 : chunkc tiling::window --send-to-desktop 1
3939-shift + alt + ctrl + cmd - 2 : chunkc tiling::window --send-to-desktop 2
4040-shift + alt + ctrl + cmd - 3 : chunkc tiling::window --send-to-desktop 3
4141-shift + alt + ctrl + cmd - 4 : chunkc tiling::window --send-to-desktop 4
4242-shift + alt + ctrl + cmd - 5 : chunkc tiling::window --send-to-desktop 5
4343-shift + alt + ctrl + cmd - 6 : chunkc tiling::window --send-to-desktop 6