more vim stuff

This commit is contained in:
elkowar 2021-07-17 11:30:55 +02:00
parent 5f12febcb1
commit c786d0a3a7
No known key found for this signature in database
GPG key ID: E321AD71B1D1F27F
6 changed files with 167 additions and 133 deletions

View file

@ -10,6 +10,14 @@
<progress value="{{volume}}" orientation="v" halign="start" flipped="true"/> <progress value="{{volume}}" orientation="v" halign="start" flipped="true"/>
</def> </def>
<def name="revtest">
<box>
<revealer reveal="{{reveal}}" transition="slideleft" duration="300ms">
hello, world
</revealer>
</box>
</def>
<def name="test"> <def name="test">
<box class="{{some_var}}" space-evenly="false" spacing="10"> <box class="{{some_var}}" space-evenly="false" spacing="10">
<scale value="{{scaleval}}" orientation="v" min="0" max="100" flipped="true" /> <scale value="{{scaleval}}" orientation="v" min="0" max="100" flipped="true" />
@ -18,19 +26,20 @@
<box> |  {{ round((EWW_NET["enp34s0"].NET_UP) * 8 / (1024 * 1024), 2)}} <box> |  {{ round((EWW_NET["enp34s0"].NET_UP) * 8 / (1024 * 1024), 2)}}
 {{ round((EWW_NET["enp34s0"].NET_DOWN) * 8 / (1024 * 1024), 2)}}  {{ round((EWW_NET["enp34s0"].NET_DOWN) * 8 / (1024 * 1024), 2)}}
|  {{EWW_RAM}} |  {{EWW_RAM}}
|  {{ round((EWW_DISK["/"].free) / (1024 * 1024 * 1024), 2)}} |  {{ round((EWW_DISK["/"].free) / (1024 * 1024 * 1024), 2)}}
</box> </box>
{{(EWW_NET[kek].NET_UP) * 10}} <!--{{(EWW_NET[kek].NET_UP) * 10}}-->
asdf {{ round(0.1234, 2) }} asdf {{ round(0.1234, 2) }}
</box> </box>
<button onclick="pgrep 'eww' &amp;&amp; echo '' || echo ''" cursor="wait">Test bug</button> <button onclick="pgrep 'eww' &amp;&amp; echo '' || echo ''" cursor="wait">Test bug</button>
<revealer reveal="{{reveal}}" transition="slideright" duration="300ms">
<button <button
onclick="notify-send 'ree' 'this is {{shit}}'" onclick="notify-send 'ree' 'this is {{shit}}'"
onmiddleclick="notify-send 'ree' 'MITTE'" onmiddleclick="notify-send 'ree' 'MITTE'"
@ -38,62 +47,63 @@
> >
click me click me
</button> </button>
<calendar show-heading="false" show-day-names="false" day="2" onclick="notify-send 'asdf' '{}'" /> </revealer>
notify-send 'ree' 'this is {{shit}}' <calendar show-heading="false" show-day-names="false" day="2" onclick="notify-send 'asdf' '{}'" />
<multiple text="{{shit}}" /> notify-send 'ree' 'this is {{shit}}'
<multiple text="{{shit}}" />
<!--<literal content="{{code}}"/>--> <!--<literal content="{{code}}"/>-->
</box> </box>
</def> </def>
<def name="multiple"> <def name="multiple">
<box orientation="v" space-evenly="false"> <box orientation="v" space-evenly="false">
<box>{{text}}test</box> <box>{{text}}test</box>
<box class="whatever lol">{{text}}</box> <box class="whatever lol">{{text}}</box>
<box style="color: blue;">{{text}}</box> <box style="color: blue;">{{text}}</box>
<box>{{text}}</box> <box>{{text}}</box>
<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>
</def> </def>
<def name="volume_popup"> <def name="volume_popup">
<box orientation="v" space-evenly="true"> <box orientation="v" space-evenly="true">
<scale flipped="true" orientation="v" value="{{volume}}" min="0" max="100" onchange="amixer sset 'Master' {}%" /> <scale flipped="true" orientation="v" value="{{volume}}" min="0" max="100" onchange="amixer sset 'Master' {}%" />
</box> </box>
</def> </def>
<def name="music"> <def name="music">
<box class="hi ho" orientation="h" valign="start" space-evenly="false" hexpand="true"> <box class="hi ho" orientation="h" valign="start" space-evenly="false" hexpand="true">
<image visible="{{song-image-visible}}" path="{{song-image}}" width="150" height="150" /> <image visible="{{song-image-visible}}" path="{{song-image}}" width="150" height="150" />
<box orientation="v" halign="fill" space-evenly="false" vexpand="true" hexpand="true"> <box orientation="v" halign="fill" space-evenly="false" vexpand="true" hexpand="true">
<box class="data" vexpand="true"> <box class="data" vexpand="true">
<box orientation="v" halign="start"> <box orientation="v" halign="start">
<label class="songname" halign="start" limit-width="30" text="{{song-name}}" /> <label class="songname" halign="start" limit-width="30" text="{{song-name}}" />
<box space-evenly="false" halign="start"> <box space-evenly="false" halign="start">
<label class="key" text="Album: " /> <label class="key" text="Album: " />
<label halign="start" limit-width="30" text="{{song-album}}" /> <label halign="start" limit-width="30" text="{{song-album}}" />
</box> </box>
<box space-evenly="false" halign="start"> <box space-evenly="false" halign="start">
<label class="key" text="By: " /> <label class="key" text="By: " />
<label halign="start" limit-width="30" text="{{song-artist}}" /> <label halign="start" limit-width="30" text="{{song-artist}}" />
</box>
</box>
</box>
<box class="buttons" hexpand="true">
<button onclick="playerctl previous"></button>
<button onclick="playerctl play-pause">{{song-playpause}}</button>
<button onclick="playerctl next"></button>
</box>
</box> </box>
</box> </box>
</def> </box>
<box class="buttons" hexpand="true">
<button onclick="playerctl previous"></button>
<button onclick="playerctl play-pause">{{song-playpause}}</button>
<button onclick="playerctl next"></button>
</box>
</box>
</box>
</def>
</definitions> </definitions>
@ -106,6 +116,9 @@
done done
</script-var> </script-var>
<var name="reveal">
false
</var>
<var name="shit"> <var name="shit">
enp34s0 enp34s0
</var> </var>
@ -124,82 +137,90 @@
<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 name="date-tail">
<!--while true; do-->
<!--sleep 1;-->
<!--notify-send 'hi' 'ho'-->
date
<!--done-->
</script-var>
<script-var name="date" interval="1s">
date
</script-var>
<script-var interval="100ms" name="lmao">
cat ~/fuck
</script-var>
<var name="bruh">
{"hi": "ho", "hey": "fuck", "lol": "test" }
</var>
<script-var name="kek" interval="1s">
/home/leon/reee.sh
</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>-->
<script-var name="date-tail"> </variables>
while true; do
sleep 1;
notify-send 'hi' 'ho'
date
done
</script-var>
<script-var name="date" interval="1s">
date
</script-var>
<script-var interval="100ms" name="lmao"> <windows>
cat ~/fuck <window screen="0" name="px" stacking="fg" focusable="false">
</script-var> <geometry anchor="center" width="10px" height="100%" x="1px" y="0px"/>
<widget>
<pxbar/>
<var name="bruh"> </widget>
{"hi": "ho", "hey": "fuck", "lol": "test" } </window>
</var> <window screen="0" name="mw" stacking="fg" focusable="false" windowtype="dock" wm-ignore="false" sticky="false">
<!--<window screen="2" name="mw" stacking="fg" focusable="false">-->
<!--<geometry anchor="center" width="20%" height="20%" x="50px" y="50px"/>-->
<geometry anchor="top center" width="20%" height="20%" x="0px" y="0px"/>
<reserve side="left" distance="30%"/>
<script-var name="kek" interval="1s">
/home/leon/reee.sh
</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>-->
</variables>
<windows>
<window screen="0" name="px" stacking="fg" focusable="false">
<geometry anchor="center" width="10px" height="100%" x="1px" y="0px"/>
<widget> <widget>
<pxbar/> <test ree="test" />
</widget> </widget>
</window> </window>
<window screen="0" name="mw" stacking="fg" focusable="false"> <window screen="0" name="rev">
<!--<window screen="2" name="mw" stacking="fg" focusable="false">--> <geometry anchor="bottom center" width="0" height="0"/>
<geometry anchor="center" width="20%" height="20%" x="50px" y="50px"/> <widget>
<reserve side="left" distance="80px"/>
<widget> <revtest/>
<test ree="test" /> </widget>
</widget> </window>
</window> <window screen="0" name="mw2" stacking="fg">
<window screen="0" name="mw2" stacking="fg"> <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"> <geometry />
<geometry /> <widget>
<widget> <volume_popup />
<volume_popup /> </widget>
</widget> </window>
</window> <window screen="0" name="music">
<window screen="0" name="music"> <widget>
<widget> <music />
<music /> </widget>
</widget> </window>
</window> </windows>
</windows> </eww>
</eww>

View file

@ -9,7 +9,7 @@
; undo autopairs fuckup ; undo autopairs fuckup
(set vim.g.AutoPairsShortcutBackInsert "<M-b>") (set vim.g.AutoPairsShortcutBackInsert "<M-b>")
(utils.keymap [:n] :<C-p> "<cmd>Telescope find_files<cr>") (utils.keymap [:n] :<C-p> "<cmd>Telescope file_browser<cr>")
(utils.keymap :n :K "<Nop>") (utils.keymap :n :K "<Nop>")
(utils.keymap :v :K "<Nop>") (utils.keymap :v :K "<Nop>")
@ -38,7 +38,8 @@
"h" (cmd "bprevious" "previous buffer") "h" (cmd "bprevious" "previous buffer")
"l" (cmd "bnext" "next buffer") "l" (cmd "bnext" "next buffer")
"o" (cmd "Telescope live_grep" "Grep files") "o" (cmd "Telescope live_grep" "Grep files")
"p" (cmd "Telescope file_browser" "Open file-browser") "p" (cmd "Telescope frecency" "Open file-browser")
;"p" (cmd "Telescope find_files" "Open file-browser")
":" (cmd "Telescope commands" "Search command with fzf") ":" (cmd "Telescope commands" "Search command with fzf")
"s" (cmd "w" "Save file") "s" (cmd "w" "Save file")

View file

@ -16,7 +16,15 @@
:nvim-telescope/telescope.nvim {:mod "dots.plugins.telescope" :nvim-telescope/telescope.nvim {:mod "dots.plugins.telescope"
:cmd ["Telescope"] :cmd ["Telescope"]
:requires [:nvim-lua/popup.nvim :nvim-lua/plenary.nvim]} :requires [:nvim-lua/popup.nvim
:nvim-lua/plenary.nvim
:nvim-telescope/telescope.nvim]}
:nvim-telescope/telescope-frecency.nvim {:requires [:tami5/sql.nvim]
:opt false}
;:config #((. (require :telescope) :load_extension) "frecency")}
:kyazdani42/nvim-web-devicons {} :kyazdani42/nvim-web-devicons {}
@ -108,6 +116,8 @@
;; -------------------- ;; --------------------
:AndrewRadev/splitjoin.vim {}
:Olical/conjure {} :Olical/conjure {}
:tami5/compe-conjure {:requires [:Olical/conjure]} :tami5/compe-conjure {:requires [:Olical/conjure]}

View file

@ -79,7 +79,8 @@
(let [rust-tools (require "rust-tools")] (let [rust-tools (require "rust-tools")]
(rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints false}}})) (rust-tools.setup {:tools {:inlay_hints {:show_parameter_hints false}
:autoSetHints false}}))
(let [sumneko_root_path (.. vim.env.HOME "/.local/share/lua-language-server") (let [sumneko_root_path (.. vim.env.HOME "/.local/share/lua-language-server")
sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")] sumneko_binary (.. sumneko_root_path "/bin/Linux/lua-language-server")]

View file

@ -6,6 +6,6 @@
(telescope.setup (telescope.setup
{:defaults {:mappings {:i {:<esc> actions.close}}}}) {:defaults {:mappings {:i {:<esc> actions.close}}}})
;(telescope.load_extension "dap") (telescope.load_extension "frecency")
(utils.keymap :n :<C-p> ":Telescope find_files<CR>") (utils.keymap :n :<C-p> ":Telescope find_files<CR>")

View file

@ -99,6 +99,7 @@
(utils.highlight-add :SignColumn {:bg colors.dark0}) (utils.highlight-add :SignColumn {:bg colors.dark0})
(utils.highlight-add :FloatBorder {:bg colors.dark0_hard}) (utils.highlight-add :FloatBorder {:bg colors.dark0_hard})
(utils.highlight-add :SpecialComment {:fg colors.dark4})
(utils.highlight ["StatusLine" "GalaxyLineInfo" "GalaxySpace" ] {:bg colors.dark1 :fg colors.light0}) (utils.highlight ["StatusLine" "GalaxyLineInfo" "GalaxySpace" ] {:bg colors.dark1 :fg colors.light0})