ltk.cfg - ltk - GUI toolkit for X11 (WIP)
HTML git clone git://lumidify.org/ltk.git (fast, but not encrypted)
HTML git clone https://lumidify.org/git/ltk.git (encrypted, but very slow)
HTML git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/ltk.git (over tor)
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
ltk.cfg (3811B)
---
1 [general]
2 explicit-focus = true
3 all-activatable = true
4
5 # FIXME: document weird parsing for commands (quotes, backslashes)
6 # FIXME: actually test all of these options...
7 # Options for commands:
8 # %f: combined input/output file
9 # %i: input file
10 # %o: output file
11 # If %i is specified but %o is not specified,
12 # output is read from stdout (and vice versa).
13 # If %f is specified, %i and %o are not allowed.
14 # If no files are specified, input is written to
15 # stdin and output is read from stdout.
16
17 # line-editor is given the contents of a line entry
18 # and must return the edited text. Newlines are
19 # stripped from the returning text.
20 line-editor = "st -e vi %f"
21 # option-chooser is given several options, one on
22 # each line, and must return one of them. If the
23 # result contains newlines, only the part before
24 # the first newline is used.
25 option-chooser = dmenu
26 mixed-dpi = true
27 fixed-dpi = 96
28 dpi-scale = 1.0
29 # In future:
30 # text-editor = ...
31
32 [theme:window]
33 font-size = 12pt
34 bg = "#000000"
35 fg = "#FFFFFF"
36 font = "Liberation Mono"
37
38 [theme:button]
39 border-width = 0.5mm
40 text-color = "#FFFFFF"
41 pad = 1mm
42 border = "#339999"
43 fill = "#113355"
44 border-pressed = "#FFFFFF"
45 fill-pressed = "#113355"
46 border-active = "#FFFFFF"
47 fill-active = "#738194"
48 border-disabled = "#FFFFFF"
49 fill-disabled = "#292929"
50
51 [theme:label]
52 text-color = "#FFFFFF"
53 pad = 1mm
54
55 [theme:scrollbar]
56 size = 3.5mm
57 bg = "#000000"
58 bg-disabled = "#555555"
59 fg = "#113355"
60 fg-pressed = "#113355"
61 fg-active = "#738194"
62 fg-disabled = "#292929"
63
64 [key-binding:window]
65 # In future:
66 # bind edit-text-external ...
67 # bind edit-line-external ...
68 bind-keypress move-next sym tab
69 # FIXME: how should this be handled? it's a bit weird because
70 # shift+tab causes left tab + shift under X11, but that
71 # requires shift to be given here, so maybe that should be
72 # abstracted away in the backend?
73 bind-keypress move-prev sym left-tab mods shift
74 bind-keypress move-next text n
75 bind-keypress move-prev text p
76 bind-keypress move-left sym left
77 bind-keypress move-right sym right
78 bind-keypress move-up sym up
79 bind-keypress move-down sym down
80 bind-keypress move-left text h
81 bind-keypress move-right text l
82 bind-keypress move-up text k
83 bind-keypress move-down text j
84 bind-keypress focus-active sym return
85 # FIXME: Test that this works properly once widgets that need
86 # focus are added - remove-popups should be called if escape
87 # wasn't handled already by unfocus-active.
88 bind-keypress unfocus-active sym escape
89 bind-keypress remove-popups sym escape
90 bind-keypress set-pressed sym return #flags run-always
91 bind-keyrelease unset-pressed sym return #flags run-always
92 # alternative: rawtext instead of text to ignore mapping
93
94 [key-binding:entry]
95 bind-keypress cursor-to-beginning sym home
96 bind-keypress cursor-to-end sym end
97 bind-keypress cursor-left sym left
98 bind-keypress cursor-right sym right
99 bind-keypress select-all text a mods ctrl
100 bind-keypress delete-char-backwards sym backspace
101 bind-keypress delete-char-forwards sym delete
102 bind-keypress expand-selection-left sym left mods shift
103 bind-keypress expand-selection-right sym right mods shift
104 bind-keypress selection-to-clipboard text c mods ctrl
105 bind-keypress paste-clipboard text v mods ctrl
106 bind-keypress switch-selection-side text o mods alt
107 bind-keypress edit-external text E mods ctrl
108
109 [key-binding:combobox]
110 bind-keypress choose-external text E mods ctrl
111
112 # default mapping (just to silence warnings)
113 [key-mapping]
114 language = "English (US)"
115
116 [key-mapping]
117 language = "German"
118 map "z" "y"
119 map "y" "z"
120 map "Z" "Y"
121 map "Y" "Z"
122 map "Ö" ":"
123 map "_" "?"
124 map "-" "/"
125 map "ä" "'"
126
127 [key-mapping]
128 language = "Urdu (Pakistan)"
129 map "ج" "j"
130 map "ک" "k"
131 map "ح" "h"
132 map "ل" "l"
133 map "ن" "n"
134 map "پ" "p"
135
136 [key-mapping]
137 language = "Hindi (Bolnagri)"
138 map "ज" "j"
139 map "क" "k"
140 map "ह" "h"
141 map "ल" "l"
142 map "न" "n"
143 map "प" "p"