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