@@ -40,4 +40,4 @@ fn mpv { edit $conf/mpv/mpv.conf } | |||
fn mpwc { edit $conf/mpwc/(cat ~/sns/mpwname).mpsites } | |||
fn ncmpcpp { edit &type=ini $conf/ncmpcpp/config } | |||
fn bedrock { edit /bedrock/etc/bedrock.conf; sudo brl apply } | |||
fn homepage { edit $dot/firefox/homepage.nims; e:nim e $dot/firefox/homepage.nims >~/.mozilla/firefox/homepage.html } | |||
fn homepage { edit $dot/firefox/homepage.nims; e:nim e -p:$E:HOME/sns/ $dot/firefox/homepage.nims >~/.mozilla/firefox/homepage.html } |
@@ -1,5 +1,5 @@ | |||
import karax/[karaxdsl, vdom] | |||
from ../../sns/homepageData import links | |||
import homepageData | |||
func homepage: VNode = | |||
result = buildHtml(html(lang = "en")): | |||
@@ -8,16 +8,17 @@ func homepage: VNode = | |||
meta(name = "viewport", content = "width=device-width, initial-scale=1") | |||
title: | |||
text "New Tab" | |||
link(rel = "stylesheet", `type` = "text/css", href = "destyle.css") | |||
link(rel = "stylesheet", `type` = "text/css", href = "homepage.css") | |||
body: | |||
tdiv(class = "categories"): | |||
main: | |||
for (category, items) in links: | |||
tdiv(class = "category"): | |||
p(class = "header"): | |||
section: | |||
header: | |||
text category | |||
for (l, t) in items: | |||
tdiv(class = "item"): | |||
a(href = l): | |||
text t | |||
echo "<!DOCTYPE html>", homepage() | |||
echo "<!DOCTYPE html>\n", homepage() |
@@ -143,7 +143,7 @@ hook global WinCreate .* %{ | |||
smarttab | |||
readline-enable | |||
colorcol-enable | |||
colorcol-auto-refresh | |||
colorcol-refresh-continuous | |||
} | |||
hook global KakBegin .* %{ | |||
@@ -159,7 +159,6 @@ hook global KakEnd .* %{ | |||
} | |||
hook global WinDisplay .* info-buffers | |||
hook global NormalIdle .* %{ try %{ exec -draft '<a-i>w: palette-status<ret>' } } | |||
hook global BufWritePre .* %{ nop %sh{ | |||
mkdir -p "$(dirname "$kak_buffile")" | |||
@@ -234,7 +233,12 @@ hook global WinSetOption filetype=elvish %{ | |||
no-tabs 2 | |||
} | |||
hook global WinSetOption filetype=(go|c|cpp) %{ | |||
hook global WinSetOption filetype=go %{ | |||
lsp-engage | |||
} | |||
hook global WinSetOption filetype=(c|cpp) %{ | |||
set buffer formatcmd clang-format | |||
lsp-engage | |||
} | |||
@@ -250,7 +254,7 @@ hook global WinSetOption filetype=rust %{ | |||
hook global WinSetOption filetype=markdown %{ | |||
set buffer formatcmd 'prettier --parser markdown' | |||
def -docstring 'render current buffer' render %{ | |||
def render -docstring 'render current buffer' %{ | |||
exec ": connect-terminal glow -s dark %val{buffile} | ${PAGER}<ret>" | |||
} | |||
} |
@@ -1,12 +1,12 @@ | |||
include colors.conf | |||
font_family Iosevka Fixed SS04 | |||
italic_font Iosevka Fixed SS04 Italic | |||
bold_font Iosevka Fixed SS04 Bold | |||
bold_italic_font Iosevka Fixed SS04 Bold Italic | |||
font_family Iosevka Fixed SS04 Medium | |||
italic_font Iosevka Fixed SS04 Medium Italic | |||
bold_font Iosevka Fixed SS04 Heavy | |||
bold_italic_font Iosevka Fixed SS04 Heavy Italic | |||
font_size 12.0 | |||
adjust_line_height 1 | |||
adjust_line_height 0 | |||
adjust_column_width 0 | |||
box_drawing_scale 0.001, 1, 1.5, 2 | |||
@@ -172,8 +172,9 @@ map kitty_mod+, move_tab_backward | |||
map kitty_mod+equal change_font_size all +2.0 | |||
map kitty_mod+minus change_font_size all -2.0 | |||
map kitty_mod+backspace change_font_size all 0 | |||
# map kitty_mod+f6 change_font_size all 10.0 | |||
# map kitty_mod+f6 change_font_size current 10.0 | |||
map kitty_mod+alt+equal change_font_size current +2.0 | |||
map kitty_mod+alt+minus change_font_size current -2.0 | |||
map kitty_mod+alt+backspace change_font_size current 0 | |||
# Kittens | |||
# Open a currently visible URL using the keyboard. The program used to open the |
@@ -56,6 +56,9 @@ when defined(release) or defined(danger): | |||
switch "passL", "-fuse-linker-plugin" | |||
switch "passL", "-s" | |||
when defined(danger): | |||
switch "panics", "on" | |||
when defined(hotcodereloading): | |||
switch "nimcache", "nimcache" | |||
elif defined(danger): | |||
@@ -66,4 +69,3 @@ else: | |||
switch "nimcache", "/tmp/nim/" & projectName() | |||
switch "styleCheck", "hint" | |||
switch "verbosity", "2" |
@@ -2,30 +2,30 @@ body { | |||
height: 100%; | |||
background: <{color.bg}>; | |||
color: <{color.fg}>; | |||
font-family: monospace; | |||
} | |||
.categories { | |||
main { | |||
display: flex; | |||
flex-direction: row; | |||
width: 100%; | |||
margin-top: 10%; | |||
align-items: top; | |||
justify-content: center; | |||
} | |||
.category { | |||
section { | |||
display: flex; | |||
flex-direction: column; | |||
width: 20%; | |||
margin: 2%; | |||
padding: 2%; | |||
align-items: top; | |||
justify-content: top; | |||
} | |||
.header { | |||
font-size: 32px; | |||
header { | |||
color: <{color4}>; | |||
font-size: 2rem; | |||
font-weight: bold; | |||
margin-bottom: 5%; | |||
} | |||
.item:hover { | |||
@@ -36,14 +36,11 @@ body { | |||
color: <{color.bg}>; | |||
} | |||
a, p { | |||
font-family: monospace; | |||
color: <{color.fg}>; | |||
} | |||
a:link { | |||
display: block; | |||
text-decoration: none; | |||
font-size: 24px; | |||
color: <{color.fg}>; | |||
font-size: 1.5rem; | |||
} | |||
a:visited { |
@@ -97,7 +97,7 @@ for arg; do | |||
FF_CHROME=$FF_DIR/chrome | |||
_install firefox/user.js "$FF_DIR/user.js" | |||
_install firefox/userChrome.css "$FF_CHROME/userChrome.css" | |||
nim e firefox/homepage.nims >"$HOME/.mozilla/firefox/homepage.html" | |||
nim e -p:$HOME/sns/ firefox/homepage.nims >"$HOME/.mozilla/firefox/homepage.html" | |||
_render homepage.css "$HOME/.mozilla/firefox/homepage.css";; | |||
elvish) | |||
_install elvish/rc.elv "$HOME/.elvish/rc.elv" |
@@ -32,9 +32,6 @@ files = ["cd.kak"] | |||
["https://github.com/Delapouite/kakoune-buffers"] | |||
files = ["buffers.kak"] | |||
["https://github.com/Delapouite/kakoune-palette"] | |||
files = ["palette.kak"] | |||
["https://github.com/occivink/kakoune-expand"] | |||
files = ["expand.kak"] | |||
@@ -2,7 +2,6 @@ xrdb -nocpp "$HOME/.Xresources" & | |||
dbus-update-activation-environment DISPLAY XAUTHORITY | |||
xsetroot -cursor_name left_ptr & | |||
setxkbmap -layout us,ru -variant ,ruu -option 'grp:shift_caps_toggle,grp_led:scroll,lv3:ralt_switch,compose:rwin-altgr,nbsp:level3' & | |||
start-pulseaudio-x11 & | |||
wlp & | |||
mpd & | |||
perWindowLayoutD & |