From 307fe15077859a00fb9f798bcf3f99ddd4197d87 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:18:54 +0200 Subject: changed firefox to librewolf and added dotnet tools to path --- config/home/.zshenv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/home/.zshenv b/config/home/.zshenv index 32c92f4..cfaef9c 100644 --- a/config/home/.zshenv +++ b/config/home/.zshenv @@ -2,7 +2,7 @@ export EDITOR="nvim" export VISUAL="nvim" -export BROWSER="firefox" +export BROWSER="librewolf" export VIEWER="zathura" export PLAYER="mpv" @@ -69,3 +69,4 @@ export PATH="$HOME/bin:$PATH" export PATH="$HOME/go/bin:$PATH" export PATH="$XDG_CONFIG_HOME/cargo/bin:$PATH" export PATH="$PATH:./node_modules/.bin" +export PATH="$PATH:$HOME/.dotnet/tools" -- cgit v1.2.3 From 157beed26e19fd0de921a5ed3bfe0127f2ba8469 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:20:03 +0200 Subject: [linkhandler] use environment variables --- bin/guiscripts/linkhandler | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bin/guiscripts/linkhandler b/bin/guiscripts/linkhandler index 084b952..aeec202 100755 --- a/bin/guiscripts/linkhandler +++ b/bin/guiscripts/linkhandler @@ -14,11 +14,14 @@ case "$url" in *mkv|*webm|*mp4|*youtube.com/watch*|*youtube.com/playlist*|*youtube.com/shorts*|*youtu.be*|*hooktube.com*|*bitchute.com*|*videos.lukesmith.xyz*|*odysee.com*) setsid -f mpv --quiet --ytdl --ytdl-raw-options="format-sort=res:720" "$url" > /dev/null 2>&1 ;; *png|*jpg|*jpe|*jpeg|*gif) - curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && sxiv -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;; + curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && $IMAGE -a "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;; *pdf|*cbz|*cbr) - curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && evince "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;; + curl -sL "$url" > "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" && $VIEWER "/tmp/$(echo "$url" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 & ;; *mp3|*flac|*opus|*mp3?source*) qndl "$url" 'curl -LO' >/dev/null 2>&1 ;; *) - [ -f "$url" ] && setsid -f "$TERMINAL" -e "$EDITOR" "$url" >/dev/null 2>&1 || setsid -f "$BROWSER" "$url" >/dev/null 2>&1 + if [ -f "$url" ] + then setsid -f "$TERMINAL" -e "$EDITOR" "$url" >/dev/null 2>&1 + else setsid -f "$BROWSER" "$url" >/dev/null 2>&1 + fi esac -- cgit v1.2.3 From a1172baeed7f86045035669b14b4168f1977d909 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:20:41 +0200 Subject: [newwal] use print0 --- bin/guiscripts/newwal | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/guiscripts/newwal b/bin/guiscripts/newwal index b913552..32d3db6 100755 --- a/bin/guiscripts/newwal +++ b/bin/guiscripts/newwal @@ -10,8 +10,8 @@ res="1920x1080" # if no (valid) argument, use find any image with $res resolution # and take a random one test -f "${wal:=$(realpath "$1")}" || - wal="$(find "$walls" -type f | - xargs identify | + wal="$(find "$walls" -type f -print0 | + xargs -0 identify | grep "$res" | awk '{print $1}' | shuf -n 1)" -- cgit v1.2.3 From 758eee293c7b004cea038dedcb60eee17befa595 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:21:23 +0200 Subject: use environment variables --- config/X/xmonad/xmonad.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/X/xmonad/xmonad.hs b/config/X/xmonad/xmonad.hs index bc1115d..858b39b 100644 --- a/config/X/xmonad/xmonad.hs +++ b/config/X/xmonad/xmonad.hs @@ -244,7 +244,7 @@ defaults = ewmh def { , ("M-S-", CWS.shiftToPrev >> CWS.prevWS) , ("M-m", spawn "emacs") -- launch firefox - , ("M-b", spawn "firefox") + , ("M-b", spawn "$BROWSER") -- take screenshots , ("M-s", spawn "maim ~/pictures/screenshot-$(date +%y%m%d_%H_%M_%S).png") , ("M-C-s", spawn "maim -i $(xdotool getactivewindow) ~/pictures/screenshot-$(date +%y%m%d_%H_%M_%S).png") -- cgit v1.2.3 From c809a380bdf21b302138c1ce5d27f7bb4749cd69 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:21:51 +0200 Subject: changed keybindings --- config/essentials/nvim/ftplugin/telekasten.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/config/essentials/nvim/ftplugin/telekasten.lua b/config/essentials/nvim/ftplugin/telekasten.lua index 622972f..9454cc1 100644 --- a/config/essentials/nvim/ftplugin/telekasten.lua +++ b/config/essentials/nvim/ftplugin/telekasten.lua @@ -10,17 +10,17 @@ vim.cmd("hi link CalNavi CalRuler") vim.cmd("hi tkTagSep ctermfg=gray guifg=gray") vim.cmd("hi tkTag ctermfg=175 guifg=#d3869B") -vim.keymap.set("n", "a", "Telekasten show_tags") -vim.keymap.set("n", "b", "Telekasten show_backlinks") -vim.keymap.set("n", "c", "Telekasten show_calendar") +vim.keymap.set("n", "a", require("telekasten").show_tags) +vim.keymap.set("n", "b", require("telekasten").show_backlinks) +vim.keymap.set("n", "c", require("telekasten").show_calendar) vim.keymap.set("n", "C", "CalendarT") vim.keymap.set({"n", "i"}, "i", "Telekasten insert_link") -vim.keymap.set({"n", "i"}, "I", "Telekasten insert_img_link") -vim.keymap.set("n", "F", "Telekasten find_friends") -vim.keymap.set("n", "r", "Telekasten rename_note") -vim.keymap.set("n", "t", "Telekasten toggle_todo") +vim.keymap.set({"n", "i"}, "I", require("telekasten").insert_img_link) +vim.keymap.set("n", "F", require("telekasten").find_friends) +vim.keymap.set("n", "r", require("telekasten").rename_note) +vim.keymap.set("n", "t", require("telekasten").toggle_todo) vim.keymap.set("i", "t", "Telekasten toggle_todoA") -vim.keymap.set("n", "y", "Telekasten yank_notelink") -vim.keymap.set("n", "z", "Telekasten follow_link") +vim.keymap.set("n", "y", require("telekasten").yank_notelink) +vim.keymap.set("n", "z", require("telekasten").follow_link) vim.keymap.set("i", "l", "I[A]()+A") -- cgit v1.2.3 From 3f6dec1abc715c921c2ab272e48d48c52d660a32 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:22:22 +0200 Subject: disable aucmd for gitgutter (removed) --- config/essentials/nvim/lua/user/aucommands.vim | 1 - 1 file changed, 1 deletion(-) diff --git a/config/essentials/nvim/lua/user/aucommands.vim b/config/essentials/nvim/lua/user/aucommands.vim index 873f9c9..cdd0ae7 100644 --- a/config/essentials/nvim/lua/user/aucommands.vim +++ b/config/essentials/nvim/lua/user/aucommands.vim @@ -8,7 +8,6 @@ augroup END " terminal specific layout augroup neovim_terminal autocmd! autocmd TermOpen * startinsert - autocmd TermOpen * :GitGutterBufferDisable autocmd TermOpen * :set nonumber norelativenumber signcolumn=no autocmd TermOpen * nnoremap i augroup END -- cgit v1.2.3 From f0b21500e36cf3aef97668ac4e5977618938f4c6 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:22:38 +0200 Subject: added dap-ui plugin --- config/essentials/nvim/lua/user/packer.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/essentials/nvim/lua/user/packer.lua b/config/essentials/nvim/lua/user/packer.lua index 605c0e2..3eda78f 100644 --- a/config/essentials/nvim/lua/user/packer.lua +++ b/config/essentials/nvim/lua/user/packer.lua @@ -65,7 +65,9 @@ return require('packer').startup(function(use) use('hrsh7th/cmp-nvim-lsp-signature-help') use('alvan/vim-closetag') + -- debugging use('mfussenegger/nvim-dap') + use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} } -- java use('mfussenegger/nvim-jdtls') -- cgit v1.2.3 From 072fe724915d2f8cb095958bf355a5ef103daab4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:22:50 +0200 Subject: removed copilot plugin --- config/essentials/nvim/lua/user/packer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/nvim/lua/user/packer.lua b/config/essentials/nvim/lua/user/packer.lua index 3eda78f..94d4dff 100644 --- a/config/essentials/nvim/lua/user/packer.lua +++ b/config/essentials/nvim/lua/user/packer.lua @@ -49,7 +49,7 @@ return require('packer').startup(function(use) use('ojroques/vim-oscyank', {branch = "main"}) use("potamides/pantran.nvim") use('alx741/vinfo') - use('github/copilot.vim') + -- use('github/copilot.vim') -- objects use('michaeljsmith/vim-indent-object') -- cgit v1.2.3 From bf2f07bc007f523f66de1b6e76e3c63cd9ffce41 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:23:09 +0200 Subject: refactor on telekasten config --- config/essentials/nvim/lua/user/zk.lua | 43 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index ee055d6..db022cb 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -1,5 +1,6 @@ local home = vim.fn.expand("~/docs/zk") -require('telekasten').setup({ + +require("telekasten").setup({ home = home, take_over_my_home = true, auto_set_filetype = true, @@ -65,8 +66,8 @@ require('telekasten').setup({ template_new_note = home .. "/" .. "templates/new_note.md", new_note_filename = "title", }, - dotNetEssentials = { - home = home .. "/" .. "dotNetEssentials", + NETEssentials = { + home = home .. "/" .. "NETEssentials", template_new_note = home .. "/" .. "templates/new_note.md", new_note_filename = "title", }, @@ -88,21 +89,21 @@ require('telekasten').setup({ } }) -vim.keymap.set("n", "z", "Telekasten panel") -vim.keymap.set("n", "zb", "Telekasten show_backlinks") -vim.keymap.set("n", "zz", "Telekasten follow_link") -vim.keymap.set("n", "zN", "Telekasten new_templated_note") -vim.keymap.set("n", "zT", "Telekasten goto_today") -vim.keymap.set("n", "zW", "Telekasten goto_thisweek") -vim.keymap.set("n", "zd", "Telekasten find_daily_notes") -vim.keymap.set("n", "zf", "Telekasten find_notes") -vim.keymap.set("n", "zg", "Telekasten search_notes") -vim.keymap.set("n", "zm", "Telekasten browse_media") -vim.keymap.set("n", "zn", "Telekasten new_note") -vim.keymap.set("n", "zp", "Telekasten preview_img") -vim.keymap.set("n", "zr", "Telekasten rename_note") -vim.keymap.set("n", "zs", "Telekasten switch_vault") -vim.keymap.set("n", "zS", "Telekasten search_notes") -vim.keymap.set("n", "zt", "Telekasten panel") -vim.keymap.set("n", "zw", "Telekasten find_weekly_notes") -vim.keymap.set("n", "z#", "Telekasten show_tags") +vim.keymap.set("n", "z", require("telekasten").panel) +vim.keymap.set("n", "zb", require("telekasten").show_backlinks) +vim.keymap.set("n", "zz", require("telekasten").follow_link) +vim.keymap.set("n", "zN", require("telekasten").new_templated_note) +vim.keymap.set("n", "zT", require("telekasten").goto_today) +vim.keymap.set("n", "zW", require("telekasten").goto_thisweek) +vim.keymap.set("n", "zd", require("telekasten").find_daily_notes) +vim.keymap.set("n", "zf", require("telekasten").find_notes) +vim.keymap.set("n", "zg", require("telekasten").search_notes) +vim.keymap.set("n", "zm", require("telekasten").browse_media) +vim.keymap.set("n", "zn", require("telekasten").new_note) +vim.keymap.set("n", "zp", require("telekasten").preview_img) +vim.keymap.set("n", "zr", require("telekasten").rename_note) +vim.keymap.set("n", "zs", require("telekasten").switch_vault) +vim.keymap.set("n", "zS", require("telekasten").search_notes) +vim.keymap.set("n", "zt", require("telekasten").panel) +vim.keymap.set("n", "zw", require("telekasten").find_weekly_notes) +vim.keymap.set("n", "z#", require("telekasten").show_backlinks) -- cgit v1.2.3 From 1ddd9d746234a1cfae92bc296a499a09751291dc Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:23:20 +0200 Subject: don't use plugins anymore --- config/essentials/zsh/.zshrc | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 1260bb0..50d1bfa 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -25,24 +25,9 @@ zle -N add-surround surround zle -N change-surround surround compinit -if grep -qi "debian\|ubuntu" /usr/lib/os-release /etc/os-release 2>/dev/null -then - sfiles=( - /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh - /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - ) -else - sfiles=( - /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh - /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh) -fi -sfiles+=( - ~/.config/zsh/functions.zsh - ~/.config/zsh/aliases.sh -) -for f in "${sfiles[@]}"; do - test -f "$f" && source "$f" -done +# Source files +. $ZDOTDIR/functions.zsh +. $ZDOTDIR/aliases.sh bindkey -v bindkey -a cs change-surround -- cgit v1.2.3 From 25c1f50842cb643b95c8ac38eb1f4aa4cac4d0da Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:23:34 +0200 Subject: added dotnet completion --- config/essentials/zsh/.zshrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 50d1bfa..9b6fa48 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -122,6 +122,23 @@ parse_git_status() { git status --short 2> /dev/null | head -n1 | awk '{print $1 " "}' } +# Completion +_dotnet_zsh_complete() +{ + local completions=("$(dotnet complete "$words")") + + # If the completion list is empty, just continue with filename selection + if [ -z "$completions" ] + then + _arguments '*::arguments: _normal' + return + fi + + # This is not a variable assignment, don't remove spaces! + _values = "${(ps:\n:)completions}" +} +compdef _dotnet_zsh_complete dotnet + export REPORTTIME=2 export TIMEFMT="-> %*E" # override built-in time command -- cgit v1.2.3 From 32d8745d0dfe3b22e33e2103c6ff5ef01263c60a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:23:49 +0200 Subject: added aliases --- config/essentials/zsh/aliases.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index ea1c719..a1a6723 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -206,6 +206,7 @@ alias est='$EDITOR ~/proj/suckless/st/config.def.h' alias esl='$EDITOR ~/proj/suckless/slock/config.def.h' alias esls='$EDITOR ~/proj/suckless/slstatus/config.def.h' alias ehy='$EDITOR ~/.config/hypr/hyprland.conf' +alias ehyb='$EDITOR ~/.config/hypr/binds.conf' alias ewbj='$EDITOR ~/src/dotfiles/config/hyprland/waybar/config.jsonc' alias ewbs='$EDITOR ~/src/dotfiles/config/hyprland/waybar/style.css' alias cfd='$EDITOR config.def.h' @@ -213,6 +214,7 @@ alias cfd='$EDITOR config.def.h' alias cdl='cd ~/dl' alias cdoc='cd ~/docs' alias cda='cd ~/docs/android/projects' +alias csv='cd ~/docs/school/Vakken' alias cdm='cd ~/music' alias cdp='cd ~/pics' alias cdpa='cd ~/pics/ai-outputs/' @@ -241,7 +243,8 @@ alias cdng='cd /etc/nginx' alias cdrs='cd /srv/' # fzf aliases -alias ppj='cd ~/proj/personal/"$(find ~/proj/personal -mindepth 1 -maxdepth 1 -type d -printf "%f\n"| fzf)"' +alias ppj='cd ~/proj/personal/"$(find ~/proj/personal -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' +alias ppjs='cd ~/proj/personal/scripts/"$(find ~/proj/personal/scripts -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' alias fil='$EDITOR ~/docs/filios/"$(find ~/docs/filios -type f -printf "%f\n" | fzf)"' alias cfg='find -L ~/src/dotfiles -type f 2> /dev/null | fzf | xargs -r $EDITOR' alias fzps='ps aux | tail +2 | fzf | tee /dev/stderr | awk '\''{print $2}'\'' | clipp' -- cgit v1.2.3 From b9f24fc2b9bea23daa9990004195bc6ccac7773f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:25:07 +0200 Subject: added completion for php --- config/essentials/nvim/lua/user/cmp/init.lua | 1 + config/essentials/nvim/lua/user/cmp/php.lua | 1 + 2 files changed, 2 insertions(+) create mode 100644 config/essentials/nvim/lua/user/cmp/php.lua diff --git a/config/essentials/nvim/lua/user/cmp/init.lua b/config/essentials/nvim/lua/user/cmp/init.lua index d40a67c..1306e98 100644 --- a/config/essentials/nvim/lua/user/cmp/init.lua +++ b/config/essentials/nvim/lua/user/cmp/init.lua @@ -10,5 +10,6 @@ require("user.cmp.java") require("user.cmp.js") require("user.cmp.emmet") require("user.cmp.lua") +require("user.cmp.php") require("user.cmp.python") require("user.cmp.cs") diff --git a/config/essentials/nvim/lua/user/cmp/php.lua b/config/essentials/nvim/lua/user/cmp/php.lua new file mode 100644 index 0000000..9b2fa18 --- /dev/null +++ b/config/essentials/nvim/lua/user/cmp/php.lua @@ -0,0 +1 @@ +require'lspconfig'.phpactor.setup{} -- cgit v1.2.3 From a20229a39ebea62fa40ced9762162554c79b06fd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:28:22 +0200 Subject: added dap en dap-ui configuration --- config/essentials/nvim/after/plugin/dap.lua | 39 +++++++++++ config/essentials/nvim/after/plugin/dapui.lua | 94 +++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 config/essentials/nvim/after/plugin/dap.lua create mode 100644 config/essentials/nvim/after/plugin/dapui.lua diff --git a/config/essentials/nvim/after/plugin/dap.lua b/config/essentials/nvim/after/plugin/dap.lua new file mode 100644 index 0000000..8c0a739 --- /dev/null +++ b/config/essentials/nvim/after/plugin/dap.lua @@ -0,0 +1,39 @@ +local dap = require('dap') + +dap.adapters.coreclr = { + type = 'executable', + command = 'netcoredbg', + args = {'--interpreter=vscode'} +} + +dap.configurations.cs = { + { + type = "coreclr", + name = "launch - netcoredbg", + request = "launch", + program = function() + return vim.fn.input('Path to dll', vim.fn.getcwd() .. '/bin/Debug/', 'file') + end, + }, +} + +local function nnoremap(rhs, lhs, bufopts, desc) + bufopts.desc = desc + vim.keymap.set("n", rhs, lhs, bufopts) +end +local bufopts = { noremap=true, silent=true } + + +nnoremap('' , dap.continue, bufopts, "Continue") +nnoremap('' , dap.step_over, bufopts, "Step over") +nnoremap('' , dap.step_into, bufopts, "Step into") +nnoremap('' , dap.step_out, bufopts, "Step out") +nnoremap('b' , dap.toggle_breakpoint, bufopts, "Toggle breakpoint") + +nnoremap('B' , function() dap.set_breakpoint(vim.fn.input('Breakpoint condition: ')) + end, bufopts, "Set breakpoint") +nnoremap('lp' , function() dap.set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) + end, bufopts, "set breakpoint with log point message") + +nnoremap('dr' , dap.repl.open, bufopts, "Reply open") +nnoremap('dl' , dap.run_last, bufopts, "Run las") diff --git a/config/essentials/nvim/after/plugin/dapui.lua b/config/essentials/nvim/after/plugin/dapui.lua new file mode 100644 index 0000000..faec590 --- /dev/null +++ b/config/essentials/nvim/after/plugin/dapui.lua @@ -0,0 +1,94 @@ +local dap, dapui = require("dap"), require("dapui") + +dapui.setup({ + icons = { expanded = "▾", collapsed = "▸", current_frame = "▸" }, + mappings = { + -- Use a table to apply multiple mappings + expand = { "", "<2-LeftMouse>" }, + open = "o", + remove = "d", + edit = "e", + repl = "r", + toggle = "t", + }, + -- Use this to override mappings for specific elements + element_mappings = { + -- Example: + -- stacks = { + -- open = "", + -- expand = "o", + -- } + }, + -- Expand lines larger than the window + -- Requires >= 0.7 + expand_lines = vim.fn.has("nvim-0.7") == 1, + -- Layouts define sections of the screen to place windows. + -- The position can be "left", "right", "top" or "bottom". + -- The size specifies the height/width depending on position. It can be an Int + -- or a Float. Integer specifies height/width directly (i.e. 20 lines/columns) while + -- Float value specifies percentage (i.e. 0.3 - 30% of available lines/columns) + -- Elements are the elements shown in the layout (in order). + -- Layouts are opened in order so that earlier layouts take priority in window sizing. + layouts = { + { + elements = { + -- Elements can be strings or table with id and size keys. + { id = "scopes", size = 0.25 }, + "breakpoints", + "stacks", + "watches", + }, + size = 40, -- 40 columns + position = "left", + }, + { + elements = { + "repl", + "console", + }, + size = 0.25, -- 25% of total lines + position = "bottom", + }, + }, + controls = { + -- Requires Neovim nightly (or 0.8 when released) + enabled = true, + -- Display controls in this element + element = "repl", + icons = { + pause = "", + play = "", + step_into = "", + step_over = "", + step_out = "", + step_back = "", + run_last = "↻", + terminate = "□", + }, + }, + floating = { + max_height = nil, -- These can be integers or a float between 0 and 1. + max_width = nil, -- Floats will be treated as percentage of your screen. + border = "single", -- Border style. Can be "single", "double" or "rounded" + mappings = { + close = { "q", "" }, + }, + }, + windows = { indent = 1 }, + render = { + max_type_length = nil, -- Can be integer or nil. + max_value_lines = 100, -- Can be integer or nil. + } +}) + + +dap.listeners.after.event_initialized["dapui_config"] = function() + dapui.open() +end +dap.listeners.before.event_terminated["dapui_config"] = function() + dapui.close() +end +dap.listeners.before.event_exited["dapui_config"] = function() + dapui.close() +end + -- cgit v1.2.3 From 176aa5614b992a74eaef029047a8fb2a39c2de84 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:28:43 +0200 Subject: start tmux on startup --- config/hyprland/hypr/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/hypr/startup.sh b/config/hyprland/hypr/startup.sh index 6d5957f..c758b71 100755 --- a/config/hyprland/hypr/startup.sh +++ b/config/hyprland/hypr/startup.sh @@ -5,4 +5,4 @@ gammastep & wl-paste --watch cliphist store & keyadd id_rsa & swayidle 300 locker & -$TERMINAL & +$TERMINAL -e tmux a || tmux & -- cgit v1.2.3 From 42bca6520b25f0d8a9701d57d141a05a7bc03eac Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:28:53 +0200 Subject: make imv float --- config/hyprland/hypr/hyprland.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf index 17f0235..f3bc2ed 100644 --- a/config/hyprland/hypr/hyprland.conf +++ b/config/hyprland/hypr/hyprland.conf @@ -87,6 +87,7 @@ gestures { windowrulev2 = noanim, class:^(.*[Pp]inentry.*)$ windowrulev2 = float, class:^(.*[Pp]inentry.*)$ windowrulev2 = noanim, class:dmenu +windowrulev2 = float, class:^(imv)$ layerrule = noanim, launcher -- cgit v1.2.3 From 32aa6633dbd1ed87a871796850a72fb52f6bc963 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:29:17 +0200 Subject: added keybindings --- config/hyprland/hypr/binds.conf | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index d52392c..de4c90e 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -13,19 +13,6 @@ bind = $mainMod, F, togglefloating, bind = $mainMod SHIFT, P, pseudo bind = $mainMod, S, togglesplit -bind = $mainMod, A, submap, applications -submap = applications -bind = $mainMod, B, exec, firefox -bind = , B, exec, firefox -bind = $mainMod, T, exec, $term -e tmux a || tmux -bind = , T, exec, $term -e tmux a || tmux -bind = $mainMod, D, exec, foot -e ssh -t db tmux a -bind = , D, exec, foot -e ssh -t db tmux a -bind = $mainMod, M, exec, gamelaunch -bind = , M, exec, gamelaunch -source = ./reset-submap.conf -submap = reset - bind = $mainMod, E, focusmonitor, +1 bind = $mainMod, W, focusmonitor, -1 binde = $mainMod, H, movefocus, l @@ -84,6 +71,28 @@ bind = $mainMod, mouse_up, workspace, e-1 bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow +bind = $mainMod, A, submap, apps +submap = apps +bind = $mainMod, D, exec, discord +bind = , D, exec, discord +bind = $mainMod, B, exec, $BROWSER +bind = , B, exec, $BROWSER +bind = $mainMod, G, exec, lutris +bind = , G, exec, lutris +bind = $mainMod, M, exec, mclaunch +bind = , M, exec, mclaunch +source = ./reset-submap.conf +submap = reset + +bind = $mainMod, T, submap, termapps +submap = termapps +bind = $mainMod, T, exec, $term -e tmux a || tmux +bind = , T, exec, $term -e tmux a || tmux +bind = $mainMod, D, exec, foot -e ssh -t db tmux a +bind = , D, exec, foot -e ssh -t db tmux a +source = ./reset-submap.conf +submap = reset + bind = $mainMod, M, submap, menuscripts submap = menuscripts bind = $mainMod, A, exec, dmask -- cgit v1.2.3 From faf335a0e20bd111785e60fe2307c976c97bb9dd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:29:30 +0200 Subject: imply '.desktop' suffix --- config/essentials/zsh/functions.zsh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index 35aaf58..c527521 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -243,10 +243,9 @@ pacsize() mime-default () { logn "Setting '$1' as default for its mimetypes" - grep "MimeType=" /usr/share/applications/"$1" | - cut -d '=' -f 2- | - tr ';' '\n' | - xargs -I {} xdg-mime default "$1" "{}" + grep "MimeType=" /usr/share/applications/"$1".desktop | + cut -d '=' -f 2- | tr ';' '\0' | + xargs -0I{} xdg-mime default "$1".desktop "{}" logn "Done." } -- cgit v1.2.3 From 9c85919f70be1888f355b6cc8bb1001e8c9eb379 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:30:10 +0200 Subject: use linkhandler as browser --- config/common/newsboat/config | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config/common/newsboat/config b/config/common/newsboat/config index 84e6490..874e7ae 100644 --- a/config/common/newsboat/config +++ b/config/common/newsboat/config @@ -1,4 +1,4 @@ -browser firefox +browser linkhandler # from contrib color background color15 default @@ -29,5 +29,3 @@ bind-key a toggle-article-read show-keymap-hint no swap-title-and-hints yes - -browser linkhandler -- cgit v1.2.3 From 376d8127ec219499aa8a2279eab45648be070885 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:30:28 +0200 Subject: small fixes --- config/essentials/zsh/functions.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index c527521..fda80fb 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -32,6 +32,7 @@ ranger() { test -z "$RANGER_LEVEL" && /usr/bin/ranger "$@" || exit } # googoo aliases _googoo_fzf_opt() { + unset dest opt if [ "$1" ] then [ -d "$1" ] && dest="$1" || opt="-q $1" @@ -99,9 +100,7 @@ clip() { } unzipp() { - file=$1 - shift - unzip $file $@ || exit 1 + unzip -- "$(readlink -f -- "$1")" || return 1 rm $file } -- cgit v1.2.3 From f235c957d69bee3b4942ec6ecf4650cc6a9a08ae Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 28 Sep 2023 15:31:41 +0200 Subject: added rust completino --- config/essentials/nvim/lua/user/cmp/init.lua | 6 +- config/essentials/nvim/lua/user/cmp/rust.lua | 173 +++++++++++++++++++++++++++ 2 files changed, 176 insertions(+), 3 deletions(-) create mode 100644 config/essentials/nvim/lua/user/cmp/rust.lua diff --git a/config/essentials/nvim/lua/user/cmp/init.lua b/config/essentials/nvim/lua/user/cmp/init.lua index 1306e98..1ca0a10 100644 --- a/config/essentials/nvim/lua/user/cmp/init.lua +++ b/config/essentials/nvim/lua/user/cmp/init.lua @@ -4,12 +4,12 @@ require("user.cmp.arduino") require("user.cmp.bash") require("user.cmp.clangd") require("user.cmp.cs") -require("user.cmp.html") require("user.cmp.css") +require("user.cmp.emmet") +require("user.cmp.html") require("user.cmp.java") require("user.cmp.js") -require("user.cmp.emmet") require("user.cmp.lua") require("user.cmp.php") require("user.cmp.python") -require("user.cmp.cs") +require("user.cmp.rust") diff --git a/config/essentials/nvim/lua/user/cmp/rust.lua b/config/essentials/nvim/lua/user/cmp/rust.lua new file mode 100644 index 0000000..46a97eb --- /dev/null +++ b/config/essentials/nvim/lua/user/cmp/rust.lua @@ -0,0 +1,173 @@ +require'lspconfig'.rust_analyzer.setup{ + settings = { + ['rust-analyzer'] = { + diagnostics = { + enable = false; + } + } + }, + capabilities = + { + experimental = { + serverStatusNotification = true + }, + general = { + positionEncodings = { "utf-16" } + }, + textDocument = { + callHierarchy = { + dynamicRegistration = false + }, + codeAction = { + codeActionLiteralSupport = { + codeActionKind = { + valueSet = { "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" } + } + }, + dataSupport = true, + dynamicRegistration = true, + isPreferredSupport = true, + resolveSupport = { + properties = { "edit" } + } + }, + completion = { + completionItem = { + commitCharactersSupport = false, + deprecatedSupport = false, + documentationFormat = { "markdown", "plaintext" }, + preselectSupport = false, + snippetSupport = false + }, + completionItemKind = { + valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25 } + }, + contextSupport = false, + dynamicRegistration = false + }, + declaration = { + linkSupport = true + }, + definition = { + dynamicRegistration = true, + linkSupport = true + }, + diagnostic = { + dynamicRegistration = false + }, + documentHighlight = { + dynamicRegistration = false + }, + documentSymbol = { + dynamicRegistration = false, + hierarchicalDocumentSymbolSupport = true, + symbolKind = { + valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } + } + }, + formatting = { + dynamicRegistration = true + }, + hover = { + contentFormat = { "markdown", "plaintext" }, + dynamicRegistration = true + }, + implementation = { + linkSupport = true + }, + inlayHint = { + dynamicRegistration = true, + resolveSupport = { + properties = {} + } + }, + publishDiagnostics = { + dataSupport = true, + relatedInformation = true, + tagSupport = { + valueSet = { 1, 2 } + } + }, + rangeFormatting = { + dynamicRegistration = true + }, + references = { + dynamicRegistration = false + }, + rename = { + dynamicRegistration = true, + prepareSupport = true + }, + semanticTokens = { + augmentsSyntaxTokens = true, + dynamicRegistration = false, + formats = { "relative" }, + multilineTokenSupport = false, + overlappingTokenSupport = true, + requests = { + full = { + delta = true + }, + range = false + }, + serverCancelSupport = false, + tokenModifiers = { "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" }, + tokenTypes = { "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator" } + }, + signatureHelp = { + dynamicRegistration = false, + signatureInformation = { + activeParameterSupport = true, + documentationFormat = { "markdown", "plaintext" }, + parameterInformation = { + labelOffsetSupport = true + } + } + }, + synchronization = { + didSave = true, + dynamicRegistration = false, + willSave = true, + willSaveWaitUntil = true + }, + typeDefinition = { + linkSupport = true + } + }, + window = { + showDocument = { + support = true + }, + showMessage = { + messageActionItem = { + additionalPropertiesSupport = false + } + }, + workDoneProgress = true + }, + workspace = { + applyEdit = true, + configuration = true, + didChangeWatchedFiles = { + dynamicRegistration = true, + relativePatternSupport = true + }, + inlayHint = { + refreshSupport = true + }, + semanticTokens = { + refreshSupport = true + }, + symbol = { + dynamicRegistration = false, + symbolKind = { + valueSet = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 } + } + }, + workspaceEdit = { + resourceOperations = { "rename", "create", "delete" } + }, + workspaceFolders = true + } + } +} -- cgit v1.2.3 From a6d421ed5d752ad4ce945c8de07ecb1e3d16037f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 1 Oct 2023 11:33:55 +0200 Subject: removed dynamic option --- bin/menuscripts/mpower | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index 3b66824..00fb96c 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -3,6 +3,6 @@ choice="$(printf 'poweroff suspend hibernate reboot -' | commander -c -d)" +' | commander -c)" [ "$choice" ] && systemctl "$choice" -- cgit v1.2.3 From 70c673a75bf98b1db7b637c9a6d4bd1e336c33d4 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 1 Oct 2023 12:07:15 +0200 Subject: added float for imv and feh --- config/hyprland/hypr/hyprland.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/config/hyprland/hypr/hyprland.conf b/config/hyprland/hypr/hyprland.conf index 17f0235..2b5a48b 100644 --- a/config/hyprland/hypr/hyprland.conf +++ b/config/hyprland/hypr/hyprland.conf @@ -86,6 +86,7 @@ gestures { windowrulev2 = noanim, class:^(.*[Pp]inentry.*)$ windowrulev2 = float, class:^(.*[Pp]inentry.*)$ +windowrulev2 = float, class:^(feh|imv)$ windowrulev2 = noanim, class:dmenu layerrule = noanim, launcher -- cgit v1.2.3 From f5b4d22afa3fa2e3f2d18c23d266c5f17a30e29b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 1 Oct 2023 21:12:32 +0200 Subject: refactor --- bin/extra/supd | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/bin/extra/supd b/bin/extra/supd index 931d808..a383d65 100755 --- a/bin/extra/supd +++ b/bin/extra/supd @@ -1,24 +1,30 @@ #!/bin/sh -print_dir () { printf '%s: ' "$1" | sed "s#$HOME#~#" >&2; } +usage() { >&2 printf "usage: supd\nusage: supd "; exit 1; } check () { for dir in $1 do - print_dir "$2/$dir" + printf '%s: ' "$2/$dir" | sed "s#$HOME#~#" >&2 cd "$2/$dir" || continue git pull > /dev/null 2>&1 && printf 'Up to date.' || printf 'Couldn'\''t update.' + printf ' ' + git status --short 2> /dev/null | head -n1 | awk '{print $1 " "}' printf '\n' done } -dirs="installdrier dotfiles password-store" -prefix="$HOME/src" +if [ "$#" -eq 0 ] +then + dirs="installdrier dotfiles password-store" + prefix="$HOME/src" +else + prefix="$1" + shift || usage + dirs="$*" + [ "$dirs" ] || usage +fi check "$dirs" "$prefix" - -# dirs="$(ls -1 "$HOME/proj/personal")" -# prefix="$HOME/proj/personal" -# check "$dirs" "$prefix" -- cgit v1.2.3 From 2e5633ecfa2287c890e3a5873626fc0d28fc19eb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 1 Oct 2023 21:12:50 +0200 Subject: added getgit --- config/essentials/zsh/functions.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index fda80fb..ed5f677 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -66,6 +66,7 @@ oclip() { printf "\033]52;c;$(echo -n "$@" | base64)\a"; } sms() { ssh -t phone sendmsg "$1" "'$2'"; } trcp() { scp "$1" db:/media/basilisk/downloads/transmission/torrents/; } rln() { ln -s "$(readlink -f "$1")" "$2"; } +getgit() { git clone git@db:"$1"; } ipc() { -- cgit v1.2.3 From 302187d7eea5958a4ec179720d16c899906974ab Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 1 Oct 2023 21:13:05 +0200 Subject: use cat EOF --- bin/menuscripts/mpower | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index 00fb96c..1543a0b 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -1,8 +1,11 @@ #!/bin/sh -choice="$(printf 'poweroff +choice="$( +cat < Date: Sun, 1 Oct 2023 23:26:28 +0200 Subject: added dbnewg --- bin/extra/dbnewg | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/extra/dbnewg diff --git a/bin/extra/dbnewg b/bin/extra/dbnewg new file mode 100755 index 0000000..a8c4bcf --- /dev/null +++ b/bin/extra/dbnewg @@ -0,0 +1,11 @@ +#!/bin/sh + +die () { >&2 printf '%s\n' "$@"; exit 1; } + +[ "$1" ] || die "usage: dbnewg " +proj="$(basename "$(readlink -f "$1")")" + +ssh git@db '$HOME/initdir.sh' "$proj" +cd "$1" || exit 1 +git remote add origin git@db:"$proj" +git push --set-upstream origin main -- cgit v1.2.3 From c0a637ef3cd31fbef003a85f5a0bcce1bc867807 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 2 Oct 2023 15:53:37 +0200 Subject: changed ping to quadnine dns --- config/essentials/zsh/aliases.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index a1a6723..1282f24 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -173,7 +173,7 @@ alias pipreq='pip install -r requirements.txt' alias ch='chown ${USER}:${USER} -R' alias kll='killall' -alias pi='ping archlinux.org -c4' +alias pi='ping 9.9.9.9 -c4' alias sba='source env/bin/activate || source bin/activate' alias smc='systemctl' alias dsmc='doas systemctl' -- cgit v1.2.3 From d5fd87d1b0e9a1c9fb6328b5ce8a0af0497eefab Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 2 Oct 2023 15:54:05 +0200 Subject: fix tab completion not working with workaround --- config/essentials/nvim/lua/user/cmp/setup.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/nvim/lua/user/cmp/setup.lua b/config/essentials/nvim/lua/user/cmp/setup.lua index 36d55e3..d43439a 100644 --- a/config/essentials/nvim/lua/user/cmp/setup.lua +++ b/config/essentials/nvim/lua/user/cmp/setup.lua @@ -48,6 +48,7 @@ local function nnoremap(rhs, lhs, bufopts, desc) vim.keymap.set("n", rhs, lhs, bufopts) end +vim.keymap.set('c', '', '', { silent = false }) -- to fix cmp -- Regular Neovim LSP client keymappings local bufopts = { noremap=true, silent=true } nnoremap('gD', vim.lsp.buf.declaration, bufopts, "Go to declaration") -- cgit v1.2.3 From efbc3b1db349655a3c075ab5da22b1877c97fbb3 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 2 Oct 2023 15:54:27 +0200 Subject: reformat --- config/essentials/nvim/lua/user/cmp/setup.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/config/essentials/nvim/lua/user/cmp/setup.lua b/config/essentials/nvim/lua/user/cmp/setup.lua index d43439a..bb91e31 100644 --- a/config/essentials/nvim/lua/user/cmp/setup.lua +++ b/config/essentials/nvim/lua/user/cmp/setup.lua @@ -1,4 +1,4 @@ -local cmp = require'cmp' +local cmp = require 'cmp' cmp.setup({ snippet = { expand = function(args) @@ -14,11 +14,11 @@ cmp.setup({ [''] = cmp.mapping.scroll_docs(4), [''] = cmp.mapping.complete(), [''] = cmp.mapping.abort(), - [''] = cmp.mapping.confirm({ select = true }), + [''] = cmp.mapping.confirm({ select = true }), }), sources = cmp.config.sources({ { name = 'nvim_lua' }, - { name = 'nvim_lsp'}, + { name = 'nvim_lsp' }, { name = 'path' }, { name = 'luasnip' }, { name = 'nvim_lsp_signature_help' }, @@ -44,22 +44,22 @@ cmp.setup.cmdline(':', { }) local function nnoremap(rhs, lhs, bufopts, desc) - bufopts.desc = desc - vim.keymap.set("n", rhs, lhs, bufopts) + bufopts.desc = desc + vim.keymap.set("n", rhs, lhs, bufopts) end vim.keymap.set('c', '', '', { silent = false }) -- to fix cmp -- Regular Neovim LSP client keymappings -local bufopts = { noremap=true, silent=true } +local bufopts = { noremap = true, silent = true } nnoremap('gD', vim.lsp.buf.declaration, bufopts, "Go to declaration") nnoremap('gd', vim.lsp.buf.definition, bufopts, "Go to definition") nnoremap('gi', vim.lsp.buf.implementation, bufopts, "Go to implementation") nnoremap('K', vim.lsp.buf.hover, bufopts, "Hover text") -nnoremap('', vim.lsp.buf.signature_help, bufopts, "Show signature") +nnoremap('k', vim.lsp.buf.signature_help, bufopts, "Show signature") nnoremap('wa', vim.lsp.buf.add_workspace_folder, bufopts, "Add workspace folder") nnoremap('wr', vim.lsp.buf.remove_workspace_folder, bufopts, "Remove workspace folder") nnoremap('wl', function() -print(vim.inspect(vim.lsp.buf.list_workspace_folders())) + print(vim.inspect(vim.lsp.buf.list_workspace_folders())) end, bufopts, "List workspace folders") nnoremap('D', vim.lsp.buf.type_definition, bufopts, "Go to type definition") nnoremap('rn', vim.lsp.buf.rename, bufopts, "Rename") -- cgit v1.2.3 From 010c7903562963e5585190896f47d62218fa08fd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 2 Oct 2023 17:43:23 +0200 Subject: added scripts --- bin/extra/curszip | 17 +++++++++++++++ bin/extra/gml | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ bin/extra/pomo | 8 +++++++ 3 files changed, 90 insertions(+) create mode 100755 bin/extra/curszip create mode 100755 bin/extra/gml create mode 100755 bin/extra/pomo diff --git a/bin/extra/curszip b/bin/extra/curszip new file mode 100755 index 0000000..6ab99e8 --- /dev/null +++ b/bin/extra/curszip @@ -0,0 +1,17 @@ +#!/bin/sh + +list1() { find "$1" -mindepth 1 -maxdepth 1 -type "${2:-d}" -printf '%f\n'; } + +curs="$(list1 ~/docs/school/Vakken | fzf)" +[ "$curs" ] || exit 1 +zip="$(list1 ~/dl f | fzf -f "$curs" | grep '\.zip$')" +[ "$zip" ] || exit 1 + +>&2 printf "zip: %s\n" "$zip" + +cd -- ~/docs/school/Vakken/"$curs" || exit 1 +rm -rf Cursus +mv -- ~/dl/"$zip" . +unzip -- "./$zip" +mv -- "${zip%%.zip}" Cursus +rm -- "$zip" diff --git a/bin/extra/gml b/bin/extra/gml new file mode 100755 index 0000000..0d3a277 --- /dev/null +++ b/bin/extra/gml @@ -0,0 +1,65 @@ +#!/bin/sh + +minecraft() +{ + instance="$( + ( + printf "default\n" + find ~/.local/share/multimc/instances \ + -maxdepth 1 -mindepth 1 \ + -type d \ + -printf "%f\n" | + grep -v '_LAUNCHER_TEMP' + ) | + commander -d -c -x)" + + [ "$instance" ] || exit 1 + [ "$instance" = "default" ] && instance="1.20.1" + + ips="none 192.168.178.79 192.168.178.52 10.7.0.1 mc.hypixel.net" + ip="$(for ip in $ips + do printf "%s\n" "$ip" + done | commander -d -c)" + + if [ "$ip" != 'none' ] + then setsid multimc -l "$instance" -s "$ip" > /dev/null 2>&1 + else + + world="$( + ( + printf "none\n" + find "$HOME"/.local/share/multimc/instances/"$instance"/.minecraft/saves/ \ + -mindepth 1 -maxdepth 1 \ + -type d \ + -printf "%f\n" + ) | commander -d -c -s)" + + [ -z "$world" ] && exit 1 + + if [ "$world" = 'none' ] + then setsid multimc -l "$instance" > /dev/null 2>&1 + else setsid multimc -l "$instance" -w "$world" > /dev/null 2>&1 + fi + + fi +} + +steam() +{ + choice="$( + cat <<-EOF | column -t -l 2 | commander -d -x -c | awk '{printf $1}' + 274190 broforc3 + 291550 brawlhalla + 1712840 tiny tina + EOF + )" + [ "$choice" ] && setsid steam steam://rungameid/"$choice" + exit +} + +eval "$( + cat <<-EOF | commander -c + minecraft + steam + EOF +)" diff --git a/bin/extra/pomo b/bin/extra/pomo new file mode 100755 index 0000000..4227738 --- /dev/null +++ b/bin/extra/pomo @@ -0,0 +1,8 @@ +#!/bin/sh +while true +do + date +%R + sleep 20m + notify-send -u critical -t 5000 "pomodoro" "BREAK TIME" + sleep 5m +done -- cgit v1.2.3 From 98ab77c554907e92637dc33a5a671fd03d6a987f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 3 Oct 2023 18:18:34 +0200 Subject: added terraria --- bin/extra/gml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/extra/gml b/bin/extra/gml index 0d3a277..f00abcf 100755 --- a/bin/extra/gml +++ b/bin/extra/gml @@ -48,17 +48,18 @@ steam() { choice="$( cat <<-EOF | column -t -l 2 | commander -d -x -c | awk '{printf $1}' - 274190 broforc3 + 274190 broforce 291550 brawlhalla 1712840 tiny tina - EOF + 105600 terraria +EOF )" [ "$choice" ] && setsid steam steam://rungameid/"$choice" exit } eval "$( - cat <<-EOF | commander -c + cat <<-EOF | commander -c -w 9 -y 2 minecraft steam EOF -- cgit v1.2.3 From 5a8c1637d56e430f6d80e2b27e28f31cf21687dd Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:40:50 +0200 Subject: added reading from stdin --- bin/extra/supd | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/bin/extra/supd b/bin/extra/supd index a383d65..83a606b 100755 --- a/bin/extra/supd +++ b/bin/extra/supd @@ -1,6 +1,13 @@ #!/bin/sh -usage() { >&2 printf "usage: supd\nusage: supd "; exit 1; } +usage() { + >&2 cat <<-EOF + usage: supd + supd + stdout | supd + EOF + exit 1 +} check () { @@ -12,8 +19,8 @@ check () printf 'Up to date.' || printf 'Couldn'\''t update.' printf ' ' - git status --short 2> /dev/null | head -n1 | awk '{print $1 " "}' - printf '\n' + printf '%s\n' "$(git status --short 2> /dev/null | + awk 'NR==1 {print $1}')" done } @@ -21,6 +28,10 @@ if [ "$#" -eq 0 ] then dirs="installdrier dotfiles password-store" prefix="$HOME/src" +elif [ ! -t 0 ] +then + prefix="$1" + dirs="$(cat)" else prefix="$1" shift || usage -- cgit v1.2.3 From c7266e37ae575fad362890aa90d553df7b7dd827 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:53:09 +0200 Subject: added fillpass --- bin/guiscripts/fillpass | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 bin/guiscripts/fillpass diff --git a/bin/guiscripts/fillpass b/bin/guiscripts/fillpass new file mode 100755 index 0000000..87e74ca --- /dev/null +++ b/bin/guiscripts/fillpass @@ -0,0 +1,13 @@ +#!/bin/sh + +pass="$( + find "${PASSWORD_STORE_DIR:=~/src/password-store/}" -name "*.gpg" | + sed -e "s@$PASSWORD_STORE_DIR/@@" -e 's/\.gpg$//' | + commander -x -c)" +[ "$pass" ] || exit 1 + +login="$(pass show "$pass" | awk '/^login:/ {print $2}')" +password="$(pass show "$pass" | head -n 1)" + +printf '%s\t%s\n' "$login" "$password" | + ydotool type -f - -- cgit v1.2.3 From 14c41cc89367b13d0d9d9f360428582954e8be3d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:53:27 +0200 Subject: added kill option --- bin/extra/gml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/extra/gml b/bin/extra/gml index f00abcf..0f2f143 100755 --- a/bin/extra/gml +++ b/bin/extra/gml @@ -52,9 +52,13 @@ steam() 291550 brawlhalla 1712840 tiny tina 105600 terraria + kill EOF )" - [ "$choice" ] && setsid steam steam://rungameid/"$choice" + case "$choice" in + kill) pkill steam ;; + *) setsid steam steam://rungameid/"$choice" ;; + esac exit } -- cgit v1.2.3 From 7c2ca44c48680be360d378bf76b35c6f5dec5a9f Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:53:41 +0200 Subject: added embedding chapters option --- bin/common/ytclipo | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/common/ytclipo b/bin/common/ytclipo index 7e7b9cc..fc98b6e 100755 --- a/bin/common/ytclipo +++ b/bin/common/ytclipo @@ -18,6 +18,7 @@ notify-send "ytclipo" "downloading $inp" yt-dlp "$inp" \ --restrict-filenames \ + --embed-chapters \ -f "b" \ -S "res:1080" \ -P "$HOME/vids/youtube/" \ -- cgit v1.2.3 From 72fee5531a67bcede8bfe5f2a194852ef5a7aab2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:53:55 +0200 Subject: added specifying dimensions --- bin/menuscripts/mpower | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/menuscripts/mpower b/bin/menuscripts/mpower index 1543a0b..0d0cdcc 100755 --- a/bin/menuscripts/mpower +++ b/bin/menuscripts/mpower @@ -1,6 +1,6 @@ #!/bin/sh choice="$( -cat < Date: Wed, 4 Oct 2023 02:54:26 +0200 Subject: added gmod alias --- config/essentials/zsh/aliases.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index 1282f24..dcee027 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -268,6 +268,7 @@ alias sshdb='ssh -t db "tmux a || tmux"' alias dbsmu='rsync -aPz db:/media/basilisk/music/ /media/kilimanjaro/music' # oh-my-zsh git aliases +alias gmod='git status --short | sed '\''/^\s*M/!d;s/^\s*M\s*//'\'' | fzf | xargs $EDITOR' alias g='git' alias ga='git add' alias gaa='git add --all' -- cgit v1.2.3 From 2c603076ebaa4d00f95614052c5868c99aca738d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:54:37 +0200 Subject: added fdie snippet --- config/essentials/nvim/after/plugin/luasnip.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 5657560..a98fe82 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -155,6 +155,10 @@ ls.add_snippets("sh", { stty \$old_stty_cfg } ]], {}), + parse("fdie", + [[ + die () { >&2 printf '%s\n' "\$@"; exit 1; } + ]], {}), parse("flogn", [[ logn () { >&2 printf '%s\n' "\$@"; } -- cgit v1.2.3 From 847159314a25afc118b5cefbecc93da82a5473f1 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:54:50 +0200 Subject: added ytdl alias (ytclipo) --- config/essentials/zsh/aliases.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index dcee027..d901740 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -253,6 +253,7 @@ alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp" alias ffwin='hyprctl clients -j | jq '\''.[].pid'\'' | fzf --preview "hyprctl clients -j | jq '\''.[] | select(.pid == {}) | {class, title, workspace, xwayland}'\''"' alias pff='find ${PASSWORD_STORE_DIR:=~/src/password-store/} -name "*.gpg" | sed -e "s@$PASSWORD_STORE_DIR/@@" -e '\''s/\.gpg$//'\'' | fzf | xargs pass show -c' alias fzps='fzf --print0 | xargs -0I{}' +alias ytdl='yt-dlp --restrict-filenames --embed-chapters -f "b" -S "res:1080" -P "$HOME/vids/youtube/" -o "%(channel)s - %(title)s.%(ext)s"' alias dcb='docker build' alias dcbt='docker build -t' -- cgit v1.2.3 From bdfb02015178aabdb80320e9355fb33517c7f240 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 02:55:09 +0200 Subject: added dap disconnect remap --- config/essentials/nvim/after/plugin/dap.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/config/essentials/nvim/after/plugin/dap.lua b/config/essentials/nvim/after/plugin/dap.lua index 8c0a739..e32b5ee 100644 --- a/config/essentials/nvim/after/plugin/dap.lua +++ b/config/essentials/nvim/after/plugin/dap.lua @@ -25,6 +25,7 @@ local bufopts = { noremap=true, silent=true } nnoremap('' , dap.continue, bufopts, "Continue") +nnoremap('' , dap.disconnect, bufopts, "Continue") nnoremap('' , dap.step_over, bufopts, "Step over") nnoremap('' , dap.step_into, bufopts, "Step into") nnoremap('' , dap.step_out, bufopts, "Step out") -- cgit v1.2.3 From f153ce84ae2cdace6c9f4bdc43de288aa9ed7bdb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 12:08:38 +0200 Subject: fix: terminal not showing on startup --- config/hyprland/hypr/startup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/hyprland/hypr/startup.sh b/config/hyprland/hypr/startup.sh index c758b71..8887cf2 100755 --- a/config/hyprland/hypr/startup.sh +++ b/config/hyprland/hypr/startup.sh @@ -5,4 +5,4 @@ gammastep & wl-paste --watch cliphist store & keyadd id_rsa & swayidle 300 locker & -$TERMINAL -e tmux a || tmux & +$TERMINAL -e tmux a || $TERMINAL tmux & -- cgit v1.2.3 From 344892a740937cea65521d986a474531a00dc1de Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Wed, 4 Oct 2023 14:27:38 +0200 Subject: added aliases --- config/essentials/zsh/aliases.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index d901740..c7ee5b7 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -241,6 +241,7 @@ alias czo='cd ~/zot/' alias cdpw='cd ${PASSWORD_STORE_DIR:-~/.password-store}' alias cdng='cd /etc/nginx' alias cdrs='cd /srv/' +alias god='cd "$(find . -mindepth 1 -maxdepth 1 -type d | fzf)"' # fzf aliases alias ppj='cd ~/proj/personal/"$(find ~/proj/personal -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' @@ -269,6 +270,7 @@ alias sshdb='ssh -t db "tmux a || tmux"' alias dbsmu='rsync -aPz db:/media/basilisk/music/ /media/kilimanjaro/music' # oh-my-zsh git aliases +alias gitdotf='GIT_WORK_TREE=~/src/dotfiles/ GIT_DIR=~/src/dotfiles/.git' alias gmod='git status --short | sed '\''/^\s*M/!d;s/^\s*M\s*//'\'' | fzf | xargs $EDITOR' alias g='git' alias ga='git add' -- cgit v1.2.3 From d9b55a1b4ce254afce95ec836d819d19da5b0d6e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Thu, 5 Oct 2023 16:23:54 +0200 Subject: changed parse_branch and added it to supd --- bin/extra/supd | 7 +++++-- config/essentials/zsh/.zshrc | 11 +++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/bin/extra/supd b/bin/extra/supd index 83a606b..4975b94 100755 --- a/bin/extra/supd +++ b/bin/extra/supd @@ -19,8 +19,11 @@ check () printf 'Up to date.' || printf 'Couldn'\''t update.' printf ' ' - printf '%s\n' "$(git status --short 2> /dev/null | - awk 'NR==1 {print $1}')" + printf '%s %s\n' "$(git status --short 2> /dev/null | + awk 'NR==1 {print $1}')" "$(git branch -v 2>/dev/null | + grep '^\*' | cut -f2 -d'[' | cut -f1 -d' ' | + sed 's/ahead/↑/;s/behind/↓/;s/\*//')" + done } diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 9b6fa48..2499c45 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -106,14 +106,9 @@ RPROMPT='%F{blue}$(parse_git_remote)%f%F{red}$(parse_git_status)%f%F{green}$(par setopt prompt_subst parse_git_remote() { - b="$(git branch -v 2>/dev/null | grep "^*" | cut -f2 -d'[' | cut -f1 -d' ')" - if [ "$b" = "behind" ] - then - printf "↓ " - elif [ "$b" = "ahead" ] - then - printf "↑ " - fi + git branch -v 2>/dev/null | + grep '^\*' | cut -f2 -d'[' | cut -f1 -d' ' | + sed 's/ahead/↑/;s/behind/↓/;s/\*//' } parse_git_branch() { git symbolic-ref --short HEAD 2> /dev/null || git rev-parse --short HEAD 2> /dev/null -- cgit v1.2.3 From cf5e7428f58c95a97156a852bc67213de81c6cf8 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:09:54 +0200 Subject: added vaults --- config/essentials/nvim/lua/user/zk.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index db022cb..989560a 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -76,6 +76,16 @@ require("telekasten").setup({ template_new_note = home .. "/" .. "templates/new_note.md", new_note_filename = "title", }, + ScalingNetworks = { + home = home .. "/" .. "ScalingNetworks", + template_new_note = home .. "/" .. "templates/new_note.md", + new_note_filename = "title", + }, + RoutingSwitchingEssentials = { + home = home .. "/" .. "RoutingSwitchingEssentials", + template_new_note = home .. "/" .. "templates/new_note.md", + new_note_filename = "title", + }, SoftwareDesign2 = { home = home .. "/" .. "SoftwareDesign2", template_new_note = home .. "/" .. "templates/new_note.md", -- cgit v1.2.3 From 7082e91ec427726f8da60c990b4ca0edf541c3de Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:10:03 +0200 Subject: added 'cw' snippet for cs --- config/essentials/nvim/after/plugin/luasnip.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index a98fe82..3f607ab 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -206,6 +206,10 @@ ls.add_snippets("javascript", { { i(1), rep(1), i(0) })), }) +ls.add_snippets("cs", { + parse("cw", "Console.WriteLine($1);$0"), +}) + ls.add_snippets("telekasten", { --link s("ln", fmt( -- cgit v1.2.3 From fd1c045826b7a51156a8edefa092ebd20a8e7f45 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:10:30 +0200 Subject: added visualizer --- config/common/mpd/mpd.conf | 7 +++++++ config/common/ncmpcpp/config | 13 ++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/config/common/mpd/mpd.conf b/config/common/mpd/mpd.conf index dda6f45..606c8d4 100644 --- a/config/common/mpd/mpd.conf +++ b/config/common/mpd/mpd.conf @@ -18,3 +18,10 @@ audio_output { always_on "yes" # prevent MPD from disconnecting all listeners when playback is stopped. tags "yes" # httpd supports sending tags to listening streams. } + +audio_output { + type "fifo" + name "fifo" + path "~/.config/mpd/mpd.fifo" + format "44100:16:2" +} diff --git a/config/common/ncmpcpp/config b/config/common/ncmpcpp/config index 9a87787..2136109 100644 --- a/config/common/ncmpcpp/config +++ b/config/common/ncmpcpp/config @@ -445,7 +445,7 @@ ## ## Note: You can define startup screen by choosing screen from the list above. ## -startup_screen = browser +# startup_screen = browser # ## ## Note: You can define startup slave screen by choosing screen from the list @@ -508,7 +508,7 @@ startup_screen = browser # #media_library_sort_by_mtime = no # -enable_window_title = no +# enable_window_title = no # ## ## Note: You can choose default search mode for search engine. Available modes @@ -595,4 +595,11 @@ enable_window_title = no #window_border_color = green # #active_window_border = red -# + +startup_screen = browser +enable_window_title = no +visualizer_data_source = "~/.config/mpd/mpd.fifo" +visualizer_output_name = "fifo" +visualizer_in_stereo = "yes" +visualizer_type = "spectrum" +visualizer_look = "+|" -- cgit v1.2.3 From 51b74d8fbc1944310ffa994bec4e301f45dd9694 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:10:47 +0200 Subject: added bluetooth module --- config/hyprland/waybar/config.jsonc | 11 ++++++++++- config/hyprland/waybar/schemes/base16.css | 15 ++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/config/hyprland/waybar/config.jsonc b/config/hyprland/waybar/config.jsonc index ebf9cf9..4c95c25 100644 --- a/config/hyprland/waybar/config.jsonc +++ b/config/hyprland/waybar/config.jsonc @@ -2,7 +2,7 @@ "layer": "top", "modules-left": ["battery", "hyprland/workspaces", "mpd", "hyprland/window"], "modules-center": ["clock"], - "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "tray"], + "modules-right": ["custom/wireguard", "network", "pulseaudio", "temperature", "cpu", "custom/memory", "bluetooth", "tray"], "mpd": { "format": "{artist} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})", "artist-len": 24, @@ -67,6 +67,15 @@ "format-alt": "{:(%T) %A %d %B}", "interval": 1, }, + "bluetooth": { + "format": "", + "format-disabled": "", + "format-connected": "", + "format-on": "", + "tooltip-format": "{controller_alias}\t{controller_address}", + "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}", + "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}" + }, "tray": { "spacing": 5, } diff --git a/config/hyprland/waybar/schemes/base16.css b/config/hyprland/waybar/schemes/base16.css index 76efbb3..b32d3df 100644 --- a/config/hyprland/waybar/schemes/base16.css +++ b/config/hyprland/waybar/schemes/base16.css @@ -51,11 +51,12 @@ window#waybar.PCSX2 #window { margin-right: 2px; } .modules-left { - margin-left: 2px; + margin-left: 3px; } -#workspaces, #mpd, #battery, #clock, -#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory, #tray { +#workspaces, #mpd, #battery, +#clock, +#custom-wireguard, #network, #pulseaudio, #temperature, #cpu, #custom-memory, #bluetooth, #tray { border: solid @background; border-width: 2px 2px 2px 0; margin-top: 4px; @@ -67,6 +68,9 @@ window#waybar.PCSX2 #window { color: @color6; background: @background; border-color: @color4; + border-width: 2px; + padding: 0 12px; + margin-right: 16px; } #workspaces { @@ -148,6 +152,11 @@ window#waybar.PCSX2 #window { background: @color5; } +#bluetooth { + color: @color6; + background: @color8; +} + #tray * { padding: unset; } -- cgit v1.2.3 From 62f92d6ed11b8892d32b59178b07e1d52c154bc6 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:12:11 +0200 Subject: refactor --- bin/extra/ehbtodl | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bin/extra/ehbtodl b/bin/extra/ehbtodl index df11797..fc873f6 100755 --- a/bin/extra/ehbtodl +++ b/bin/extra/ehbtodl @@ -1,9 +1,13 @@ #!/usr/bin/env sh -echo "$1" | sed 's/-H/\\\n\t&/g' | sed '/gzip/d' > /tmp/curlcommand.sh -sh /tmp/curlcommand.sh > /tmp/ehbso.html -vids="$(grep -oE "youtube\.com/embed/.{11}" /tmp/ehbso.html | cut -d'/' -f 3 | tr '\n' ' ')" +printf "%s\n" "$1" | + sed 's/-H/\\\n&/g' | + sed '/gzip/d' | + tee /tmp/curlcommand.sh | + sh > /tmp/ehbso.html +vids="$(grep -oE "youtube\.com/embed/.{11}" /tmp/ehbso.html | + cut -d'/' -f 3 | + tr '\n' ' ')" for i in $vids -do - echo "https://www.youtube.com/watch?v=$i" +do printf "%s\n" "https://www.youtube.com/watch?v=$i" done > /tmp/todownload # yt-dlp -P "$HOME/Downloads/vids" -o "%(title)s" -a /tmp/todownload -- cgit v1.2.3 From 6cadbb9ce57152dd63ebf3ee58513963c635705e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:16:58 +0200 Subject: added urls --- config/common/newsboat/urls | 79 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 config/common/newsboat/urls diff --git a/config/common/newsboat/urls b/config/common/newsboat/urls new file mode 100644 index 0000000..c5c91c1 --- /dev/null +++ b/config/common/newsboat/urls @@ -0,0 +1,79 @@ +# ai repo +https://github.com/Stability-AI/StableSwarmUI/discussions.atom ai repo +# ai video +https://www.youtube.com/feeds/videos.xml?channel_id=UCCKx8mAHiFus-XYQLy_WnaA ai video # Olivio Sarikas +https://www.youtube.com/feeds/videos.xml?channel_id=UC55ODQSvARtgSyc8ThfiepQ ai video # Sam Witteveen +https://www.youtube.com/feeds/videos.xml?channel_id=UCpV_X0VrL8-jg3t6wYGS-1g ai video # 1littlecoder +https://www.youtube.com/feeds/videos.xml?channel_id=UCawZsQWqfGSbCI5yjkdVkTA ai video # Matthew Berman +https://www.youtube.com/feeds/videos.xml?channel_id=UCXx0JWOKERPZdzczPfY-huA ai video # Marthin Tissen +https://www.youtube.com/feeds/videos.xml?channel_id=UCEAbqW0HFB_UxZoUDO0kJBw ai video # Aitrepeneur +https://www.youtube.com/feeds/videos.xml?channel_id=UCn8ujwUInbJkBhffxqAPBVQ ai video # Dave Ebbelaar +# ai reddit +https://www.reddit.com/r/LocalLLaMA.rss reddit ai +https://www.reddit.com/r/LocalLLaMA/wiki/models.rss reddit ai +# rss blog +https://arthurmelton.com/blogs.rss blog +https://daniel.haxx.se/blog/feed/ blog +https://bugswriter.com/blog/atom.xml blog +# news belgium +https://rss.rtbf.be/article/rss/highlight_rtbf_info.xml?source=internal "~RTBF" news belgium +https://www.hln.be/home/rss.xml "~HLN" news belgium +http://www.press-start.be/feed/ news gaming +# news linux +https://www.linuxjournal.com/node/feed news linux +https://hackaday.com/blog/feed/ news linux +https://thisweek.gnome.org/index.xml news linux +https://itsfoss.com/rss news linux +https://archlinux.org/feeds/news/ news linux +https://suckless.org/atom.xml news linux +# video recreation +https://www.youtube.com/feeds/videos.xml?channel_id=UCnZx--LpG2spgmlxOcC-DRA video recreation # Daniel Trasher +https://www.youtube.com/feeds/videos.xml?channel_id=UCGw3kT9IWXxiqXATVV4-fEQ video recreation music # DJ Omnimaga +https://www.youtube.com/feeds/videos.xml?channel_id=UCccnyrT2NeVDzypO64Dif-A video recreation # Cilvanis +https://www.youtube.com/feeds/videos.xml?channel_id=UCA4-QrUcnTkcGWRE9E6LYFg video recreation # Boomie +https://www.youtube.com/feeds/videos.xml?channel_id=UCI1XS_GkLGDOgf8YLaaXNRA video recreation # Caleb City +https://www.youtube.com/feeds/videos.xml?channel_id=UCO35rCYrO_3t6f4tEU83WKg video recreation # Fildrong +# video linux +https://www.youtube.com/feeds/videos.xml?channel_id=UCxQKHvKbmSzGMvUrVtJYnUA video linux # LearnLinux TV +https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA video linux # Luke Smith +https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA video linux # Mental Outlaw +https://www.youtube.com/feeds/videos.xml?channel_id=UC5UAwBUum7CPN5buc-_N1Fw video linux # The Linux Experiment +https://www.youtube.com/feeds/videos.xml?channel_id=UCld68syR8Wi-GY_n4CaoJGA video linux # Brodie Robertson +https://www.youtube.com/feeds/videos.xml?channel_id=UCngn7SVujlvskHRvRKc1cTw video linux # Bugswriter +https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg video linux # Distrotube +https://www.youtube.com/feeds/videos.xml?channel_id=UCxwcmRAmBRzZMNS37dCgmHA video linux # RoboNuggie +# Video computers +https://www.youtube.com/feeds/videos.xml?channel_id=UCRE3NFNtdjR96-H4QG4U1Fg video computers # Hex DSL +https://www.youtube.com/feeds/videos.xml?channel_id=UCs6KfncB4OV6Vug4o_bzijg video computers # Techlore +https://www.youtube.com/feeds/videos.xml?channel_id=UCsBjURrPoezykLs9EqgamOA video computers # Fireship +https://www.youtube.com/feeds/videos.xml?channel_id=UCW6TXMZ5Pq6yL6_k5NZ2e0Q video computers # Socratica +# video programming +https://www.youtube.com/feeds/videos.xml?channel_id=UClcE-kVhqyiHCcjYwcpfj9w video programming # Live Oveflow +https://www.youtube.com/feeds/videos.xml?channel_id=UCd3dNckv1Za2coSaHGHl5aA video programming # TJ De vries +https://www.youtube.com/feeds/videos.xml?channel_id=UCaTznQhurW5AaiYPbhEA-KA video programming # Molly Rocket +https://www.youtube.com/feeds/videos.xml?channel_id=UC_ML5xP23TOWKUcc-oAE_Eg video programming # Hussein Nasser +https://www.youtube.com/feeds/videos.xml?channel_id=UCaSCt8s_4nfkRglWCvNSDrg video programming # Code Aesthetic +https://www.youtube.com/feeds/videos.xml?channel_id=UCVk4b-svNJoeytrrlOixebQ video programming # TheVimeagen +https://www.youtube.com/feeds/videos.xml?channel_id=UC8ENHE5xdFSwx71u3fDH5Xw video programming # ThePrimaegen +http://vimcasts.org/feeds/ogg.rss video programming +# reddit linux +https://www.reddit.com/r/linux.rss linux reddit +https://www.reddit.com/r/openbsd.rss linux reddit +https://www.reddit.com/r/danklinuxusers.rs linux reddit +https://www.reddit.com/r/archlinux.rss linux reddit +# music +https://mastodonmusic.social/@djomnimaga.rss music +# video piano +https://www.youtube.com/feeds/videos.xml?channel_id=UC3vYz1SAtcbRhsatydObGQw video piano # Shijun Wang +# repo +https://code.cronyakatsuki.xyz/crony/UpFast.atom repo +https://github.com/vim/vim/releases.atom repo +https://github.com/neovim/neovim/releases.atom repo +https://github.com/yt-dlp/yt-dlp/releases.atom repo +https://github.com/hrsh7th/nvim-cmp/releases.atom repo +https://github.com/L3MON4D3/LuaSnip/releases.atom repo +https://github.com/alacritty/alacritty/releases.atom repo +https://github.com/umlaeute/v4l2loopback/releases.atom repo +https://github.com/MultiMC/Launcher/releases.atom repo +https://github.com/philj56/tofi/releases.atom repo +https://alieninterfaces.com/rss.xml repo -- cgit v1.2.3 From 6f0a7bc942e633d93f4d996a1bf3ee0792d1e3d2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:17:50 +0200 Subject: added check if there is a login --- bin/guiscripts/fillpass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/guiscripts/fillpass b/bin/guiscripts/fillpass index 87e74ca..358afd1 100755 --- a/bin/guiscripts/fillpass +++ b/bin/guiscripts/fillpass @@ -9,5 +9,7 @@ pass="$( login="$(pass show "$pass" | awk '/^login:/ {print $2}')" password="$(pass show "$pass" | head -n 1)" -printf '%s\t%s\n' "$login" "$password" | - ydotool type -f - +if [ "$login" ] +then printf '%s\t%s\n' "$login" "$password" | ydotool type -f - +else printf '%s\n' "$password" | ydotool type -f - +fi -- cgit v1.2.3 From 094e27c01c3c501a6030ebaab1f87dfddf03375e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 13:20:50 +0200 Subject: added urls --- config/common/newsboat/urls | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/common/newsboat/urls b/config/common/newsboat/urls index c5c91c1..e46bf8f 100644 --- a/config/common/newsboat/urls +++ b/config/common/newsboat/urls @@ -77,3 +77,6 @@ https://github.com/umlaeute/v4l2loopback/releases.atom repo https://github.com/MultiMC/Launcher/releases.atom repo https://github.com/philj56/tofi/releases.atom repo https://alieninterfaces.com/rss.xml repo +# podcasts +https://feeds.megaphone.fm/darknetdiaries podcast +https://podcasts.files.bbci.co.uk/w13xtvg9.rss podcast -- cgit v1.2.3 From 472da12759cdb2e63520826add567da34376d15a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 17:06:33 +0200 Subject: added countdown timer --- bin/extra/pomo | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/extra/pomo b/bin/extra/pomo index 4227738..fa14cca 100755 --- a/bin/extra/pomo +++ b/bin/extra/pomo @@ -1,6 +1,14 @@ #!/bin/sh +notif() { notify-send -t 1000 "pomo" "$1"; sleep 1; } + +for msg in "three" "two" "one" +do notif "$msg" +done + while true -do + +do + notif "START" date +%R sleep 20m notify-send -u critical -t 5000 "pomodoro" "BREAK TIME" -- cgit v1.2.3 From f69263dc091c6a61011af9e5f3684d2895b49795 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 17:07:02 +0200 Subject: added bigger break after four cycles --- bin/extra/pomo | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/bin/extra/pomo b/bin/extra/pomo index fa14cca..2627628 100755 --- a/bin/extra/pomo +++ b/bin/extra/pomo @@ -5,12 +5,21 @@ for msg in "three" "two" "one" do notif "$msg" done +i="${1-0}" while true do notif "START" date +%R sleep 20m - notify-send -u critical -t 5000 "pomodoro" "BREAK TIME" - sleep 5m + if [ "$i" -eq 3 ] + then + i=-1 + notify-send -u critical -t 20000 "pomodoro" "GIGA BREAK TIME" + sleep 20m + else + notify-send -u critical -t 5000 "pomodoro" "BREAK TIME" + sleep 5m + fi + i=$((i+1)) done -- cgit v1.2.3 From 171ea6ca8655a7e1831e6b89af70147246c376cf Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 8 Oct 2023 17:07:20 +0200 Subject: added space after sign --- config/essentials/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 2499c45..d324e19 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -108,7 +108,7 @@ setopt prompt_subst parse_git_remote() { git branch -v 2>/dev/null | grep '^\*' | cut -f2 -d'[' | cut -f1 -d' ' | - sed 's/ahead/↑/;s/behind/↓/;s/\*//' + sed 's/ahead/↑ /;s/behind/↓ /;s/\*//' } parse_git_branch() { git symbolic-ref --short HEAD 2> /dev/null || git rev-parse --short HEAD 2> /dev/null -- cgit v1.2.3 From 9001cd2124c665abcedf359ef77507e301ea9e8e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 9 Oct 2023 14:58:43 +0200 Subject: fixed: notification not staying long enough changed the delay from seconds to minutes through multiplying by 60. --- bin/extra/pomo | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/extra/pomo b/bin/extra/pomo index 2627628..0971343 100755 --- a/bin/extra/pomo +++ b/bin/extra/pomo @@ -14,12 +14,12 @@ do sleep 20m if [ "$i" -eq 3 ] then - i=-1 - notify-send -u critical -t 20000 "pomodoro" "GIGA BREAK TIME" + notify-send -u critical -t 1200000 "pomodoro" "GIGA BREAK TIME" sleep 20m + i=0 else - notify-send -u critical -t 5000 "pomodoro" "BREAK TIME" + notify-send -u critical -t 300000 "pomodoro" "BREAK TIME" sleep 5m + i=$((i+1)) fi - i=$((i+1)) done -- cgit v1.2.3 From 6434a2b0c1a0fc6bd9d63d437243d8c5fd45ac34 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 9 Oct 2023 21:20:44 +0200 Subject: readded plugins and removed slow line --- config/essentials/zsh/.zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index d324e19..5e1e838 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -18,7 +18,6 @@ zle -N edit-command-line zstyle ':compinstall' filename '/home/aluc/.zshrc' zstyle ':completion:*' menu select autoload -Uz compinit -compinit -d $XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION autoload -Uz surround zle -N delete-surround surround zle -N add-surround surround @@ -28,6 +27,8 @@ compinit # Source files . $ZDOTDIR/functions.zsh . $ZDOTDIR/aliases.sh +. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +. /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh bindkey -v bindkey -a cs change-surround -- cgit v1.2.3 From d89bf2c50e177f6570c2d845b14a014b5c7898c0 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 9 Oct 2023 21:23:24 +0200 Subject: added more verbose output --- bin/extra/pomo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/extra/pomo b/bin/extra/pomo index 0971343..27722a4 100755 --- a/bin/extra/pomo +++ b/bin/extra/pomo @@ -10,8 +10,9 @@ while true do notif "START" - date +%R + date '+%R S' sleep 20m + date '+%R B' if [ "$i" -eq 3 ] then notify-send -u critical -t 1200000 "pomodoro" "GIGA BREAK TIME" -- cgit v1.2.3 From b50c5fdc23773b6dd525310f330a570105b82726 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 9 Oct 2023 21:23:54 +0200 Subject: added binds for mmedia --- config/hyprland/hypr/binds.conf | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index de4c90e..9146423 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -113,16 +113,20 @@ bind = $mainMod, I, exec, mapimg bind =, I, exec, mapimg bind = $mainMod, L, exec, dmlang bind =, L, exec, dmlang -bind = $mainMod, M, exec, mpass -bind =, M, exec, mpass +bind = $mainMod, S, exec, mmedia schoolpdf +bind =, S, exec, mmedia schoolpdf bind = $mainMod, P, exec, mmedia pdf bind =, P, exec, mmedia pdf -bind = $mainMod, O, exec, mpower -bind =, O, exec, mpower -bind = $mainMod, U, exec, mmedia cursus -bind =, U, exec, mmedia cursus bind = $mainMod, V, exec, mmedia video bind =, V, exec, mmedia video +bind = $mainMod, U, exec, mmedia cursus +bind =, U, exec, mmedia cursus +bind = $mainMod, M, exec, mmedia +bind =, M, exec, mmedia +bind = $mainMod, P, exec, mpass +bind =, P, exec, mpass +bind = $mainMod, O, exec, mpower +bind =, O, exec, mpower source = ./reset-submap.conf submap = reset -- cgit v1.2.3 From bfe88abda9d2c6dc593df62610eb289c4f6b1df0 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 9 Oct 2023 22:14:46 +0200 Subject: fix: duplicate keybind --- config/hyprland/hypr/binds.conf | 2 -- 1 file changed, 2 deletions(-) diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index 9146423..ba91e01 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -115,8 +115,6 @@ bind = $mainMod, L, exec, dmlang bind =, L, exec, dmlang bind = $mainMod, S, exec, mmedia schoolpdf bind =, S, exec, mmedia schoolpdf -bind = $mainMod, P, exec, mmedia pdf -bind =, P, exec, mmedia pdf bind = $mainMod, V, exec, mmedia video bind =, V, exec, mmedia video bind = $mainMod, U, exec, mmedia cursus -- cgit v1.2.3 From b4f7c506a75d4d540b902d533bad3a733b976e27 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 9 Oct 2023 23:53:04 +0200 Subject: updated for new vm --- bin/extra/aivpn | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/extra/aivpn b/bin/extra/aivpn index 55e013a..14d176c 100755 --- a/bin/extra/aivpn +++ b/bin/extra/aivpn @@ -4,7 +4,7 @@ logn() { printf "%s\n" "$@"; } if [ "$1" = "-k" ] then - pgrep -f -- "ssh.*-L.*mc-wd" | + pgrep -f -- "ssh.*-L.*vm" | xargs kill exit fi @@ -21,16 +21,16 @@ keyadd ehb/ai export SSH_ASKPASS="$0" export SSH_ASKPASS_REQUIRE="prefer" -export PASSWORD=aluc +export PASSWORD=zot/qemu logn "I: Activating vpn" -# ssh mc-wd "rasdial \"vpn.student.ehb.be\" \"luca.raymaekers@student.ehb.be\" \"$(pass school/login.ehb.be)\"" +ssh vm "rasdial \"vpn.student.ehb.be\"" ssh -f -N \ -L 2222:10.2.160.41:22 \ - mc-wd + vm ssh -t \ -L 8188:localhost:8188 \ - mc-wd \ + vm \ ssh -N -L 8188:localhost:8188 luca@10.2.160.41 logn "[8188], [2222]" -- cgit v1.2.3 From c5461e289dcd7dab36d028aec5d3e1d0b8677f64 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 00:15:44 +0200 Subject: added connectivity check --- bin/extra/aivpn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/extra/aivpn b/bin/extra/aivpn index 14d176c..fd72ffb 100755 --- a/bin/extra/aivpn +++ b/bin/extra/aivpn @@ -23,6 +23,11 @@ export SSH_ASKPASS="$0" export SSH_ASKPASS_REQUIRE="prefer" export PASSWORD=zot/qemu +logn "I: Waiting for connectivity..." +while ! ssh -o ConnectTimeout=1 -o BatchMode=yes vm 2>&1 | grep -q "Permission denied" +do sleep 1 +done + logn "I: Activating vpn" ssh vm "rasdial \"vpn.student.ehb.be\"" ssh -f -N \ -- cgit v1.2.3 From 258f683ac577ef477ca56c05a94326fc88b47feb Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 18:06:51 +0200 Subject: added miniflux configuration --- config/common/newsboat/config | 10 +++++ config/common/newsboat/urls | 85 ++----------------------------------------- 2 files changed, 13 insertions(+), 82 deletions(-) diff --git a/config/common/newsboat/config b/config/common/newsboat/config index 874e7ae..5f93d68 100644 --- a/config/common/newsboat/config +++ b/config/common/newsboat/config @@ -29,3 +29,13 @@ bind-key a toggle-article-read show-keymap-hint no swap-title-and-hints yes + +download-path "~/dl" +max-downloads 2 +player "mpv" + +urls-source "miniflux" +miniflux-url "http://192.168.178.79:24961/" +miniflux-login "debuc" +miniflux-passwordeval "pass show db/miniflux | head -n 1" +miniflux-min-items 0 diff --git a/config/common/newsboat/urls b/config/common/newsboat/urls index e46bf8f..7245bfc 100644 --- a/config/common/newsboat/urls +++ b/config/common/newsboat/urls @@ -1,82 +1,3 @@ -# ai repo -https://github.com/Stability-AI/StableSwarmUI/discussions.atom ai repo -# ai video -https://www.youtube.com/feeds/videos.xml?channel_id=UCCKx8mAHiFus-XYQLy_WnaA ai video # Olivio Sarikas -https://www.youtube.com/feeds/videos.xml?channel_id=UC55ODQSvARtgSyc8ThfiepQ ai video # Sam Witteveen -https://www.youtube.com/feeds/videos.xml?channel_id=UCpV_X0VrL8-jg3t6wYGS-1g ai video # 1littlecoder -https://www.youtube.com/feeds/videos.xml?channel_id=UCawZsQWqfGSbCI5yjkdVkTA ai video # Matthew Berman -https://www.youtube.com/feeds/videos.xml?channel_id=UCXx0JWOKERPZdzczPfY-huA ai video # Marthin Tissen -https://www.youtube.com/feeds/videos.xml?channel_id=UCEAbqW0HFB_UxZoUDO0kJBw ai video # Aitrepeneur -https://www.youtube.com/feeds/videos.xml?channel_id=UCn8ujwUInbJkBhffxqAPBVQ ai video # Dave Ebbelaar -# ai reddit -https://www.reddit.com/r/LocalLLaMA.rss reddit ai -https://www.reddit.com/r/LocalLLaMA/wiki/models.rss reddit ai -# rss blog -https://arthurmelton.com/blogs.rss blog -https://daniel.haxx.se/blog/feed/ blog -https://bugswriter.com/blog/atom.xml blog -# news belgium -https://rss.rtbf.be/article/rss/highlight_rtbf_info.xml?source=internal "~RTBF" news belgium -https://www.hln.be/home/rss.xml "~HLN" news belgium -http://www.press-start.be/feed/ news gaming -# news linux -https://www.linuxjournal.com/node/feed news linux -https://hackaday.com/blog/feed/ news linux -https://thisweek.gnome.org/index.xml news linux -https://itsfoss.com/rss news linux -https://archlinux.org/feeds/news/ news linux -https://suckless.org/atom.xml news linux -# video recreation -https://www.youtube.com/feeds/videos.xml?channel_id=UCnZx--LpG2spgmlxOcC-DRA video recreation # Daniel Trasher -https://www.youtube.com/feeds/videos.xml?channel_id=UCGw3kT9IWXxiqXATVV4-fEQ video recreation music # DJ Omnimaga -https://www.youtube.com/feeds/videos.xml?channel_id=UCccnyrT2NeVDzypO64Dif-A video recreation # Cilvanis -https://www.youtube.com/feeds/videos.xml?channel_id=UCA4-QrUcnTkcGWRE9E6LYFg video recreation # Boomie -https://www.youtube.com/feeds/videos.xml?channel_id=UCI1XS_GkLGDOgf8YLaaXNRA video recreation # Caleb City -https://www.youtube.com/feeds/videos.xml?channel_id=UCO35rCYrO_3t6f4tEU83WKg video recreation # Fildrong -# video linux -https://www.youtube.com/feeds/videos.xml?channel_id=UCxQKHvKbmSzGMvUrVtJYnUA video linux # LearnLinux TV -https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA video linux # Luke Smith -https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA video linux # Mental Outlaw -https://www.youtube.com/feeds/videos.xml?channel_id=UC5UAwBUum7CPN5buc-_N1Fw video linux # The Linux Experiment -https://www.youtube.com/feeds/videos.xml?channel_id=UCld68syR8Wi-GY_n4CaoJGA video linux # Brodie Robertson -https://www.youtube.com/feeds/videos.xml?channel_id=UCngn7SVujlvskHRvRKc1cTw video linux # Bugswriter -https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg video linux # Distrotube -https://www.youtube.com/feeds/videos.xml?channel_id=UCxwcmRAmBRzZMNS37dCgmHA video linux # RoboNuggie -# Video computers -https://www.youtube.com/feeds/videos.xml?channel_id=UCRE3NFNtdjR96-H4QG4U1Fg video computers # Hex DSL -https://www.youtube.com/feeds/videos.xml?channel_id=UCs6KfncB4OV6Vug4o_bzijg video computers # Techlore -https://www.youtube.com/feeds/videos.xml?channel_id=UCsBjURrPoezykLs9EqgamOA video computers # Fireship -https://www.youtube.com/feeds/videos.xml?channel_id=UCW6TXMZ5Pq6yL6_k5NZ2e0Q video computers # Socratica -# video programming -https://www.youtube.com/feeds/videos.xml?channel_id=UClcE-kVhqyiHCcjYwcpfj9w video programming # Live Oveflow -https://www.youtube.com/feeds/videos.xml?channel_id=UCd3dNckv1Za2coSaHGHl5aA video programming # TJ De vries -https://www.youtube.com/feeds/videos.xml?channel_id=UCaTznQhurW5AaiYPbhEA-KA video programming # Molly Rocket -https://www.youtube.com/feeds/videos.xml?channel_id=UC_ML5xP23TOWKUcc-oAE_Eg video programming # Hussein Nasser -https://www.youtube.com/feeds/videos.xml?channel_id=UCaSCt8s_4nfkRglWCvNSDrg video programming # Code Aesthetic -https://www.youtube.com/feeds/videos.xml?channel_id=UCVk4b-svNJoeytrrlOixebQ video programming # TheVimeagen -https://www.youtube.com/feeds/videos.xml?channel_id=UC8ENHE5xdFSwx71u3fDH5Xw video programming # ThePrimaegen -http://vimcasts.org/feeds/ogg.rss video programming -# reddit linux -https://www.reddit.com/r/linux.rss linux reddit -https://www.reddit.com/r/openbsd.rss linux reddit -https://www.reddit.com/r/danklinuxusers.rs linux reddit -https://www.reddit.com/r/archlinux.rss linux reddit -# music -https://mastodonmusic.social/@djomnimaga.rss music -# video piano -https://www.youtube.com/feeds/videos.xml?channel_id=UC3vYz1SAtcbRhsatydObGQw video piano # Shijun Wang -# repo -https://code.cronyakatsuki.xyz/crony/UpFast.atom repo -https://github.com/vim/vim/releases.atom repo -https://github.com/neovim/neovim/releases.atom repo -https://github.com/yt-dlp/yt-dlp/releases.atom repo -https://github.com/hrsh7th/nvim-cmp/releases.atom repo -https://github.com/L3MON4D3/LuaSnip/releases.atom repo -https://github.com/alacritty/alacritty/releases.atom repo -https://github.com/umlaeute/v4l2loopback/releases.atom repo -https://github.com/MultiMC/Launcher/releases.atom repo -https://github.com/philj56/tofi/releases.atom repo -https://alieninterfaces.com/rss.xml repo -# podcasts -https://feeds.megaphone.fm/darknetdiaries podcast -https://podcasts.files.bbci.co.uk/w13xtvg9.rss podcast + +"query:Unread:unread = \"yes\"" + -- cgit v1.2.3 From e819980da0b92c3981ecb697e999d7cec633ab76 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 18:32:07 +0200 Subject: fixed: plugins not working on debian --- config/essentials/zsh/.zshrc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 5e1e838..4212db7 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -27,8 +27,18 @@ compinit # Source files . $ZDOTDIR/functions.zsh . $ZDOTDIR/aliases.sh -. /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh -. /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh + +local PLUGPATH +for file in /etc/os-release /usr/lib/os-release +do [ -f "$file" ] && . "$file" && break +done +case "${ID:=unknown}" in + debian|ubuntu) PLUGPATH=/usr/share/ ;; + *) PLUGPATH=/usr/share/zsh/plugins ;; +esac +echo $PLUGPATH +. $PLUGPATH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +. $PLUGPATH/zsh-autosuggestions/zsh-autosuggestions.zsh bindkey -v bindkey -a cs change-surround -- cgit v1.2.3 From 34bb4516d35f0d9c65f028f8e2ea0cda079fdf02 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 18:32:34 +0200 Subject: fix: useless echo --- config/essentials/zsh/.zshrc | 1 - 1 file changed, 1 deletion(-) diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 4212db7..414a7d7 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -36,7 +36,6 @@ case "${ID:=unknown}" in debian|ubuntu) PLUGPATH=/usr/share/ ;; *) PLUGPATH=/usr/share/zsh/plugins ;; esac -echo $PLUGPATH . $PLUGPATH/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh . $PLUGPATH/zsh-autosuggestions/zsh-autosuggestions.zsh -- cgit v1.2.3 From ee6e9c223b1b73c08801b415c17e12f93e504f2a Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 19:08:13 +0200 Subject: use a function for breaks --- bin/extra/pomo | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/bin/extra/pomo b/bin/extra/pomo index 27722a4..859dd12 100755 --- a/bin/extra/pomo +++ b/bin/extra/pomo @@ -1,10 +1,20 @@ #!/bin/sh -notif() { notify-send -t 1000 "pomo" "$1"; sleep 1; } +notif() { notify-send -t "${2:-1000}" "pomo" "$1"; sleep 1; } for msg in "three" "two" "one" do notif "$msg" done +# $1: time in seconds +# $2: msg for notification +ring_ring() +{ + time="$(($1*1000*60))" + date '+%R B' + notif "$time" "$2" + sleep "$time"s +} + i="${1-0}" while true @@ -12,15 +22,12 @@ do notif "START" date '+%R S' sleep 20m - date '+%R B' if [ "$i" -eq 3 ] then - notify-send -u critical -t 1200000 "pomodoro" "GIGA BREAK TIME" - sleep 20m i=0 + ring_ring 20 "GIGA BREAK TIME" else - notify-send -u critical -t 300000 "pomodoro" "BREAK TIME" - sleep 5m + ring_ring 5 "BREAK TIME" i=$((i+1)) fi done -- cgit v1.2.3 From a01644894f9e490a7055f49d3fa8fc2c3164cc4d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 20:58:37 +0200 Subject: introudcing the -w option of notify-send --- bin/extra/pomo | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/extra/pomo b/bin/extra/pomo index 859dd12..68f3d59 100755 --- a/bin/extra/pomo +++ b/bin/extra/pomo @@ -1,5 +1,5 @@ #!/bin/sh -notif() { notify-send -t "${2:-1000}" "pomo" "$1"; sleep 1; } +notif() { notify-send -t 1000 -w "pomo" "$1"; } for msg in "three" "two" "one" do notif "$msg" @@ -9,10 +9,8 @@ done # $2: msg for notification ring_ring() { - time="$(($1*1000*60))" date '+%R B' - notif "$time" "$2" - sleep "$time"s + notify-send -w "$(($1*1000*60))" -u critical "pomo" "$2" } i="${1-0}" -- cgit v1.2.3 From a93a711e4f6f112f0b5a1b29f576e5f9b8742a65 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 20:59:09 +0200 Subject: typo --- bin/extra/pomo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/extra/pomo b/bin/extra/pomo index 68f3d59..a2c371d 100755 --- a/bin/extra/pomo +++ b/bin/extra/pomo @@ -5,7 +5,7 @@ for msg in "three" "two" "one" do notif "$msg" done -# $1: time in seconds +# $1: time in minutes # $2: msg for notification ring_ring() { -- cgit v1.2.3 From 46d9892287488d8cf3887c436f37c66ebaf20ebc Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 22:57:20 +0200 Subject: added edit_dir function --- config/essentials/zsh/aliases.sh | 6 ++++-- config/essentials/zsh/functions.zsh | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index c7ee5b7..cc175e5 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -213,6 +213,7 @@ alias cfd='$EDITOR config.def.h' # /# quick cd jV}k:!sort -t "'" -k 2 alias cdl='cd ~/dl' alias cdoc='cd ~/docs' +alias czk='cd ~/docs/zk' alias cda='cd ~/docs/android/projects' alias csv='cd ~/docs/school/Vakken' alias cdm='cd ~/music' @@ -246,8 +247,9 @@ alias god='cd "$(find . -mindepth 1 -maxdepth 1 -type d | fzf)"' # fzf aliases alias ppj='cd ~/proj/personal/"$(find ~/proj/personal -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' alias ppjs='cd ~/proj/personal/scripts/"$(find ~/proj/personal/scripts -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' -alias fil='$EDITOR ~/docs/filios/"$(find ~/docs/filios -type f -printf "%f\n" | fzf)"' -alias cfg='find -L ~/src/dotfiles -type f 2> /dev/null | fzf | xargs -r $EDITOR' +alias escr='edit_in_dir ~/proj/personal/scripts/' +alias fil='edit_in_dir ~/docs/filios/' +alias cfg='edit_in_dir ~/src/dotfiles' alias fzps='ps aux | tail +2 | fzf | tee /dev/stderr | awk '\''{print $2}'\'' | clipp' alias asf='alias | fzf' alias fzh="tac $HISTFILE | fzf | tee /dev/stderr | clipp" diff --git a/config/essentials/zsh/functions.zsh b/config/essentials/zsh/functions.zsh index ed5f677..85efda4 100644 --- a/config/essentials/zsh/functions.zsh +++ b/config/essentials/zsh/functions.zsh @@ -286,3 +286,9 @@ resize() return 1 convert -resize $1^ -gravity center -crop $1+0+0 -- "$2" "${3:-$1}" } + +edit_in_dir() { + file="$1/$(goo f "$1" | sed "s@^$1@@" | fzf)" + [ -f "$file" ] || return 1 + $EDITOR "$file" +} -- cgit v1.2.3 From 6013769ff45c450f60be262f08b697c8b50f3657 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 22:57:36 +0200 Subject: shut ouptut of pixelate --- bin/guiscripts/locker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker index b680484..7c42cda 100755 --- a/bin/guiscripts/locker +++ b/bin/guiscripts/locker @@ -9,7 +9,7 @@ for monitor in $monitors do file="/tmp/locker-$monitor.png" grim -l 0 -o "$monitor" "$file" - pixelate "$file" "$file" + pixelate "$file" "$file" > /dev/null 2>&1 # Create image command for swaylock img_opt="--image $monitor:$file $img_opt" files="$files $file" -- cgit v1.2.3 From 1bbcf703fcdf2432b6fe2c81b6e2e452a8bdb19e Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 22:57:50 +0200 Subject: use oclipp --- config/common/tmux/tmux.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/common/tmux/tmux.conf b/config/common/tmux/tmux.conf index 40a9cb7..45166c0 100755 --- a/config/common/tmux/tmux.conf +++ b/config/common/tmux/tmux.conf @@ -25,8 +25,7 @@ set -g focus-events on bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded ~/.tmux.conf" # Clipboard bind -T copy-mode-vi v send-keys -X begin-selection -bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -r -selection clipboard" -bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -r -selection clipboard" +bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "oclipp" # Unbind ESC set -sg escape-time 0 # Toggle status bar -- cgit v1.2.3 From 4edce2588fe000da0a931fa96b52f08ef6da6781 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 22:58:02 +0200 Subject: added keybind for mplay --- config/hyprland/hypr/binds.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/config/hyprland/hypr/binds.conf b/config/hyprland/hypr/binds.conf index ba91e01..9219f84 100644 --- a/config/hyprland/hypr/binds.conf +++ b/config/hyprland/hypr/binds.conf @@ -128,6 +128,7 @@ bind =, O, exec, mpower source = ./reset-submap.conf submap = reset +bind = $mainMod SHIFT, M, exec, mplay bind =, XF86AudioLowerVolume, exec, pamixer -d 5 bind =, XF86AudioRaiseVolume, exec, pamixer -i 5 bind =, XF86AudioMute, exec, pamixer -t -- cgit v1.2.3 From a915b5ade1a47b9678e2f9963b13b49dbd406031 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 10 Oct 2023 22:59:02 +0200 Subject: replaced scr alias --- config/essentials/zsh/aliases.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/essentials/zsh/aliases.sh b/config/essentials/zsh/aliases.sh index cc175e5..4aff77e 100644 --- a/config/essentials/zsh/aliases.sh +++ b/config/essentials/zsh/aliases.sh @@ -121,7 +121,6 @@ alias trclipo='transmission-remote debuc.com -a "$(clipo)"' alias grub-update='doas grub-mkconfig -o /boot/grub/grub.cfg' # vim -alias scr='nvim +"setlocal buftype=nofile bufhidden=hide noswapfile filetype=txt" scratch' alias vimp="vim '+PlugInstall'" alias nvimp="nvim '+PackerSync'" alias nvg='git status > /dev/null 2>&1 && nvim "+Git"' @@ -247,7 +246,7 @@ alias god='cd "$(find . -mindepth 1 -maxdepth 1 -type d | fzf)"' # fzf aliases alias ppj='cd ~/proj/personal/"$(find ~/proj/personal -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' alias ppjs='cd ~/proj/personal/scripts/"$(find ~/proj/personal/scripts -mindepth 1 -maxdepth 1 -type d -printf "%f\n" | fzf)"' -alias escr='edit_in_dir ~/proj/personal/scripts/' +alias scr='edit_in_dir ~/proj/personal/scripts/' alias fil='edit_in_dir ~/docs/filios/' alias cfg='edit_in_dir ~/src/dotfiles' alias fzps='ps aux | tail +2 | fzf | tee /dev/stderr | awk '\''{print $2}'\'' | clipp' -- cgit v1.2.3