mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
asdf
This commit is contained in:
parent
ed2c5363ea
commit
23c670c2b3
7 changed files with 68 additions and 29 deletions
0
eww/.config/eww/asdf/eww.scss
Normal file
0
eww/.config/eww/asdf/eww.scss
Normal file
27
eww/.config/eww/asdf/eww.xml
Normal file
27
eww/.config/eww/asdf/eww.xml
Normal file
|
@ -0,0 +1,27 @@
|
|||
<eww>
|
||||
<definitions>
|
||||
<def name="something">
|
||||
<box class="{{some_var}}" halign="start">
|
||||
<button onclick="notify-send 'test' 'message'">
|
||||
{{some_script}}
|
||||
</button>
|
||||
</box>
|
||||
</def>
|
||||
</definitions>
|
||||
<variables>
|
||||
<var name="some_var">
|
||||
foo
|
||||
</var>
|
||||
<script-var name="some_script" interval="1s">
|
||||
date | sed 's/:/X/g' | rev
|
||||
</script-var>
|
||||
</variables>
|
||||
<windows>
|
||||
<window name="foo">
|
||||
<geometry anchor="center" width="100px" height="10%"/>
|
||||
<widget>
|
||||
<something arg="value"/>
|
||||
</widget>
|
||||
</window>
|
||||
</windows>
|
||||
</eww>
|
|
@ -14,9 +14,15 @@
|
|||
<box space-evenly="false" orientation="v">
|
||||
asdasdfflmao
|
||||
|
||||
{{(EWW_NET[kek].NET_UP) * 10}}
|
||||
<box> | {{ round((EWW_NET["enp34s0"].NET_UP) * 8 / (1024 * 1024), 2)}}
|
||||
{{ round((EWW_NET["enp34s0"].NET_DOWN) * 8 / (1024 * 1024), 2)}}
|
||||
| {{EWW_RAM}}
|
||||
| {{ round((EWW_DISK["/"].free) / (1024 * 1024 * 1024), 2)}}
|
||||
</box>
|
||||
|
||||
asdf {{ round(0.1234, 2) }}
|
||||
{{(EWW_NET[kek].NET_UP) * 10}}
|
||||
|
||||
asdf {{ round(0.1234, 2) }}
|
||||
</box>
|
||||
|
||||
<scale value="50" orientation="v" min="0" max="100" flipped="true" />
|
||||
|
@ -33,7 +39,7 @@
|
|||
notify-send 'ree' 'this is {{shit}}'
|
||||
<multiple text="{{shit}}" />
|
||||
|
||||
<!--<literal content="{{code}}"/>-->
|
||||
[><literal content="{{code}}"/><]
|
||||
|
||||
</box>
|
||||
</def>
|
||||
|
@ -48,7 +54,7 @@
|
|||
<box>{{text}}</box>
|
||||
|
||||
<label onscroll="notify-send '{{shit}}' {}" text="reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" limit-width="5" wrap="true" />
|
||||
<!--<input onchange="eww update code='{}'" />-->
|
||||
[><input onchange="eww update code='{}'" /><]
|
||||
{{date}}
|
||||
{{date-tail}}
|
||||
</box>
|
||||
|
@ -111,9 +117,9 @@
|
|||
<var name="song-artist"></var>
|
||||
<var name="song-show-progress">false</var>
|
||||
<var name="song-playpause"></var>
|
||||
<!--<script-var name="date" interval="1s">-->
|
||||
<!--date-->
|
||||
<!--</script-var>-->
|
||||
[><script-var name="date" interval="1s"><]
|
||||
[>date<]
|
||||
[></script-var><]
|
||||
<script-var name="date-tail">
|
||||
while true; do
|
||||
sleep 1;
|
||||
|
@ -137,6 +143,10 @@
|
|||
</var>
|
||||
|
||||
|
||||
<script-var name="asdf" interval="1s">
|
||||
echo "foobar" | sed 's/o/X/g' | rev
|
||||
</script-var>
|
||||
|
||||
|
||||
|
||||
<script-var name="kek" interval="1s">
|
||||
|
@ -145,13 +155,13 @@
|
|||
|
||||
|
||||
|
||||
<!--<script-var name="xyz">-->
|
||||
<!--tail -F /home/leon/test | while read -r _; do notify-send "Hi"; done-->
|
||||
<!--</script-var>-->
|
||||
[><script-var name="xyz"><]
|
||||
[>tail -F /home/leon/test | while read -r _; do notify-send "Hi"; done<]
|
||||
[></script-var><]
|
||||
|
||||
<!--<script-var name="foo">-->
|
||||
<!--tail -F /home/leon/test-->
|
||||
<!--</script-var>-->
|
||||
[><script-var name="foo"><]
|
||||
[>tail -F /home/leon/test<]
|
||||
[></script-var><]
|
||||
</variables>
|
||||
|
||||
|
||||
|
@ -163,7 +173,7 @@
|
|||
</widget>
|
||||
</window>
|
||||
<window screen="0" name="mw" stacking="fg" focusable="false">
|
||||
<!--<window screen="2" name="mw" stacking="fg" focusable="false">-->
|
||||
[><window screen="2" name="mw" stacking="fg" focusable="false"><]
|
||||
<geometry anchor="center" width="20%" height="20%" x="50px" y="50px"/>
|
||||
<reserve side="left" distance="80px"/>
|
||||
<widget>
|
||||
|
@ -174,7 +184,7 @@
|
|||
<geometry anchor="bottom right"/>
|
||||
<widget>
|
||||
<foo/>
|
||||
<!--<test ree="test" />-->
|
||||
[><test ree="test" /><]
|
||||
</widget>
|
||||
</window>
|
||||
<window screen="0" name="volume_popup">
|
||||
|
|
|
@ -111,7 +111,7 @@
|
|||
(set vim.g.rustfmt_autosave 1)
|
||||
|
||||
(set vim.g.conjure#client#fennel#aniseed#aniseed_module_prefix "aniseed.")
|
||||
(set vim.g.vim_parinfer_filetypes ["carp" "fennel"])
|
||||
(set vim.g.vim_parinfer_filetypes ["carp" "fennel" "clojure"])
|
||||
|
||||
; foldend
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
:kyazdani42/nvim-web-devicons {}
|
||||
|
||||
:p00f/nvim-ts-rainbow {}
|
||||
:romgrk/nvim-treesitter-context {}
|
||||
;:romgrk/nvim-treesitter-context {}
|
||||
:JoosepAlviste/nvim-ts-context-commentstring {}
|
||||
:nvim-treesitter/nvim-treesitter {:mod "plugins.treesitter"
|
||||
:run ":TSUpdate"}
|
||||
|
@ -109,7 +109,9 @@
|
|||
:rust-lang/rust.vim {:ft ["rust"]
|
||||
:requires ["mattn/webapi-vim"]}
|
||||
:simrat39/rust-tools.nvim {:ft ["rust"]}
|
||||
:ray-x/lsp_signature.nvim {}
|
||||
:qnighy/lalrpop.vim {}
|
||||
|
||||
;:ray-x/lsp_signature.nvim {}
|
||||
|
||||
:vmchale/ats-vim {:ft ["ats"]}
|
||||
|
||||
|
|
|
@ -14,14 +14,14 @@
|
|||
(do
|
||||
(utils.highlight "LspReferenceRead" {:gui "underline"})
|
||||
(utils.highlight "LspReferenceText" {:gui "underline"})
|
||||
(utils.highlight "LspReferenceWrite" {:gui "underline"})
|
||||
(vim.api.nvim_exec
|
||||
"augroup lsp_document_highlight
|
||||
autocmd! * <buffer>
|
||||
autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
|
||||
autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()
|
||||
augroup END"
|
||||
false))))
|
||||
(utils.highlight "LspReferenceWrite" {:gui "underline"}))))
|
||||
;(vim.api.nvim_exec
|
||||
;"augroup lsp_document_highlight
|
||||
;autocmd! * <buffer>
|
||||
;autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
|
||||
;autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()
|
||||
;augroup END"
|
||||
;false))))
|
||||
|
||||
|
||||
(fn better_root_pattern [patterns except-patterns]
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
(configs.setup
|
||||
{:ensure_installed "all"
|
||||
:highlight {:enable true
|
||||
:disable ["fennel"]}
|
||||
:disable ["fennel" "rust"]}
|
||||
|
||||
:incremental_selection {:enable true
|
||||
:incremental_selection {:enable false
|
||||
:keymaps {:init_selection "gss"
|
||||
:node_incremental "gsl"
|
||||
:node_decremental "gsh"
|
||||
|
@ -18,7 +18,7 @@
|
|||
; Might fuck with gitsigns
|
||||
;:rainbow {:enable true
|
||||
;:extended_mode true}
|
||||
:context_commentstring {:enable true}
|
||||
:context_commentstring {:enable true :disable ["rust"]}
|
||||
|
||||
:playground
|
||||
{:enable true
|
||||
|
|
Loading…
Reference in a new issue