update für template
This commit is contained in:
@ -1,3 +1,6 @@
|
||||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
|
||||
vim.api.nvim_set_keymap("i", "jj", "<Esc>", { noremap = false })
|
||||
vim.api.nvim_set_keymap("i", "jk", "<Esc>", { noremap = false })
|
||||
|
||||
36
.config/nvim/lua/plugins/obsidian.lua
Normal file
36
.config/nvim/lua/plugins/obsidian.lua
Normal file
@ -0,0 +1,36 @@
|
||||
return {
|
||||
"obsidian-nvim/obsidian.nvim",
|
||||
version = "*", -- recommended, use latest release instead of latest commit
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
-- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault:
|
||||
-- event = {
|
||||
-- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'.
|
||||
-- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/*.md"
|
||||
-- -- refer to `:h file-pattern` for more examples
|
||||
-- "BufReadPre path/to/my-vault/*.md",
|
||||
-- "BufNewFile path/to/my-vault/*.md",
|
||||
-- },
|
||||
dependencies = {
|
||||
-- Required.
|
||||
"nvim-lua/plenary.nvim",
|
||||
|
||||
-- see above for full list of optional dependencies ☝️
|
||||
},
|
||||
---@module 'obsidian'
|
||||
---@type obsidian.config
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "~/vaults/personal",
|
||||
},
|
||||
{
|
||||
name = "work",
|
||||
path = "~/vaults/work",
|
||||
},
|
||||
},
|
||||
|
||||
-- see below for full list of options 👇
|
||||
},
|
||||
}
|
||||
14
.config/nvim/lua/plugins/surround.lua
Normal file
14
.config/nvim/lua/plugins/surround.lua
Normal file
@ -0,0 +1,14 @@
|
||||
return {
|
||||
"echasnovski/mini.surround",
|
||||
opts = {
|
||||
mappings = {
|
||||
add = "<leader>sa",
|
||||
delete = "<leader>sd",
|
||||
find = "gsf",
|
||||
find_left = "gsF",
|
||||
highlight = "gsh",
|
||||
replace = "gsr",
|
||||
update_n_lines = "gsn",
|
||||
},
|
||||
},
|
||||
}
|
||||
@ -1,85 +0,0 @@
|
||||
{
|
||||
"device_name": "astronomix",
|
||||
// "listening_port" : 0, // 0 - randomize port
|
||||
|
||||
/* storage_path dir contains auxilliary app files if no storage_path field: .sync dir created in current working directory */
|
||||
"storage_path" : "/home/user/flo/.local/share/rslsync",
|
||||
|
||||
/* set location of pid file */
|
||||
"pid_file" : "/home/user/flo/.local/share/rslsync/resilio.pid",
|
||||
|
||||
/* use UPnP for port mapping */
|
||||
"use_upnp" : false,
|
||||
|
||||
/* limits in kB/s. 0 - no limit */
|
||||
"download_limit" : 0,
|
||||
"upload_limit" : 0,
|
||||
|
||||
/* proxy configuration */
|
||||
// "proxy_type" : "socks4", // Valid types: "socks4", "socks5", "http_connect". Any other value means no proxy
|
||||
// "proxy_addr" : "192.168.1.2", // IP address of proxy server.
|
||||
// "proxy_port" : 1080,
|
||||
// "proxy_auth" : false, // Use authentication for proxy. Note: only username/password for socks5 (RFC 1929) is supported, and it is not really secure
|
||||
// "proxy_username" : "user",
|
||||
// "proxy_password" : "password",
|
||||
|
||||
/* directory_root path defines where the WebUI Folder browser starts (linux only). Default value is / */
|
||||
"directory_root" : "/home/",
|
||||
|
||||
/* directory_root_policy defines how directory_root is used (linux only).
|
||||
Valid values are:
|
||||
"all" - accepts directory_root and its subdirectories for 'getdir' and 'adddir' actions
|
||||
"belowroot" - accepts directory_root's subdirectories for 'getdir' and 'adddir' actions,
|
||||
but denies attempts to use 'adddir' to create directories directly within directory_root
|
||||
Default value is "all". */
|
||||
// "directory_root_policy" : "all",
|
||||
|
||||
"webui" :
|
||||
{
|
||||
"listen" : "127.0.0.1:8888" // remove field to disable WebUI
|
||||
|
||||
/* preset credentials. Use password or password_hash */
|
||||
,"login" : "flo"
|
||||
,"password" : "WarthoG!#RSL" // (not recommended, better use 'password_hash_unified')
|
||||
// ,"password_hash" : "<crypt() 3 format password hash>" // (not recommended) Works on *nix only!
|
||||
// Use either 'password_hash' or 'password_hash_unified' (recommended), but not both of them!
|
||||
// ,"password_hash_unified" : "<SHA2-256 hash in HEX format>" // Works on all platforms.
|
||||
// ,"password_hash_salt_unified" : "<any text>" // Salt for unified password's hash. Works on all platforms.
|
||||
// ,"allow_empty_password" : false // Defaults to true
|
||||
/* ssl configuration */
|
||||
// ,"force_https" : true // disable http
|
||||
// ,"ssl_certificate" : "/home/user/flo/.config/rslsync/server.crt"
|
||||
// ,"ssl_private_key" : "/home/user/flo/.config/rslsync/server.key"
|
||||
|
||||
/* dir_whitelist defines which directories can be shown to user or have folders added (linux only)
|
||||
relative paths are relative to directory_root setting */
|
||||
// ,"dir_whitelist" : [ "/home/user/MySharedFolders/personal", "work" ]
|
||||
}
|
||||
|
||||
/* !!! if you set shared folders in config file WebUI will be DISABLED !!!
|
||||
shared directories specified in config file override the folders previously added from WebUI. */
|
||||
/*,
|
||||
"shared_folders" :
|
||||
[
|
||||
{
|
||||
"secret" : "MY_SECRET_1", // required field - use --generate-secret in command line to create new secret
|
||||
"dir" : "/home/user/resilio/sync_test", // * required field
|
||||
"use_relay_server" : true, // use relay server when direct connection fails
|
||||
"use_tracker" : true,
|
||||
"search_lan" : true,
|
||||
"use_sync_trash" : true, // enable SyncArchive to store files deleted on remote devices
|
||||
"overwrite_changes" : false, // restore modified files to original version, ONLY for Read-Only folders
|
||||
"selective_sync" : false, // add folder in selective sync mode
|
||||
"known_hosts" : // specify hosts to attempt connection without additional search
|
||||
[
|
||||
"192.168.1.2:44444"
|
||||
]
|
||||
}
|
||||
]
|
||||
*/
|
||||
|
||||
/* Advanced preferences can be added to config file. Info is available at "https://help.getsync.com/hc/en-us/articles/207371636"
|
||||
For example see folder_rescan_interval below */
|
||||
//, "folder_rescan_interval" : 600
|
||||
|
||||
}
|
||||
@ -1,30 +0,0 @@
|
||||
-----BEGIN C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oGAAeeD4W3v7rTvTwkNgrCR
|
||||
lCAPl/hzTwV2j/j3TZAh7VfOo1d2/F1KhV5WfXX9P/01jAyrEaoARLtw94UKlZq5
|
||||
Cr4f9SdYuON0B/kgqPygOoyAxQaJEurTofLqdR/i/zY6j7EpcyYxWCEat6wi1Nkw
|
||||
Ik7GX70VVNj+Ffzu1mAHHVMCgYEAqT4a2eNftMNCRPXLkXNjqkKbf50WSunSWYNx
|
||||
x8mJ/5svWQvZEOpZrpOyzWt8tbEzwwjY95sViS2eljR83LDNgFmlfDwpk4QKcvLW
|
||||
pGW2WWOjgUsVOlK1jhXVIwjP5NkkrPO0n81k7lNaXv0FnrQzNUuHaof5ut8mQWF6
|
||||
o9TePnECgYEAhry/7OX18z2fddwF94je5EgoYHmm7/1wLx54PHCTLBP2ephrBu90
|
||||
N30MAG1gTl2n5ArO7hEiiUw4c0CM/UOCKzNZ4kVtmmCMadr+Nb2OfbFYCuCt2Dld
|
||||
rnvClFaEChwE2D7UpriTas0W5FT4Rk8hRoeO1AZXbM8673N7iNxasVA=
|
||||
-----END RSA PRIVATE KEY-----
|
||||
Submodule .config/tmux/plugins/catppuccin-tmux deleted from e30336b799
Submodule .config/tmux/plugins/tmux-continuum deleted from 0698e8f4b1
Submodule .config/tmux/plugins/tmux-floax deleted from 61c7f466b9
Submodule .config/tmux/plugins/tmux-fzf deleted from e91c1ae553
Submodule .config/tmux/plugins/tmux-fzf-url deleted from 16381dce1c
Submodule .config/tmux/plugins/tmux-resurrect deleted from cff343cf9e
Submodule .config/tmux/plugins/tmux-sensible deleted from 25cb91f42d
Submodule .config/tmux/plugins/tmux-sessionx deleted from 42c18389e7
Submodule .config/tmux/plugins/tmux-thumbs deleted from ae91d5f7c0
Submodule .config/tmux/plugins/tmux-yank deleted from acfd36e4fc
Submodule .config/tmux/plugins/tpm deleted from 99469c4a9b
@ -1,132 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
ALERT_IF_IN_NEXT_MINUTES=10
|
||||
ALERT_POPUP_BEFORE_SECONDS=10
|
||||
NERD_FONT_FREE=" "
|
||||
NERD_FONT_MEETING=""
|
||||
|
||||
get_attendees() {
|
||||
attendees=$(
|
||||
icalBuddy \
|
||||
--includeEventProps "attendees" \
|
||||
--propertyOrder "datetime,title" \
|
||||
--noCalendarNames \
|
||||
--dateFormat "%A" \
|
||||
--includeOnlyEventsFromNowOn \
|
||||
--limitItems 1 \
|
||||
--excludeAllDayEvents \
|
||||
--separateByDate \
|
||||
--excludeEndDates \
|
||||
--bullet "" \
|
||||
--excludeCals "training,anderer" \
|
||||
eventsToday
|
||||
)
|
||||
}
|
||||
|
||||
parse_attendees() {
|
||||
attendees_array=()
|
||||
for line in $attendees; do
|
||||
attendees_array+=("$line")
|
||||
done
|
||||
number_of_attendees=$((${#attendees_array[@]} - 3))
|
||||
}
|
||||
|
||||
get_next_meeting() {
|
||||
next_meeting=$(icalBuddy \
|
||||
--includeEventProps "title,datetime" \
|
||||
--propertyOrder "datetime,title" \
|
||||
--noCalendarNames \
|
||||
--dateFormat "%A" \
|
||||
--includeOnlyEventsFromNowOn \
|
||||
--limitItems 1 \
|
||||
--excludeAllDayEvents \
|
||||
--separateByDate \
|
||||
--bullet "" \
|
||||
--excludeCals "training,omerxx@gmail.com" \
|
||||
eventsToday)
|
||||
}
|
||||
|
||||
get_next_next_meeting() {
|
||||
end_timestamp=$(date +"%Y-%m-%d ${end_time}:01 %z")
|
||||
tonight=$(date +"%Y-%m-%d 23:59:00 %z")
|
||||
next_next_meeting=$(
|
||||
icalBuddy \
|
||||
--includeEventProps "title,datetime" \
|
||||
--propertyOrder "datetime,title" \
|
||||
--noCalendarNames \
|
||||
--dateFormat "%A" \
|
||||
--limitItems 1 \
|
||||
--excludeAllDayEvents \
|
||||
--separateByDate \
|
||||
--bullet "" \
|
||||
--excludeCals "training,omerxx@gmail.com" \
|
||||
eventsFrom:"${end_timestamp}" to:"${tonight}"
|
||||
)
|
||||
}
|
||||
|
||||
parse_result() {
|
||||
array=()
|
||||
for line in $1; do
|
||||
array+=("$line")
|
||||
done
|
||||
time="${array[2]}"
|
||||
end_time="${array[4]}"
|
||||
title="${array[*]:5:30}"
|
||||
}
|
||||
|
||||
calculate_times() {
|
||||
epoc_meeting=$(date -j -f "%T" "$time:00" +%s)
|
||||
epoc_now=$(date +%s)
|
||||
epoc_diff=$((epoc_meeting - epoc_now))
|
||||
minutes_till_meeting=$((epoc_diff / 60))
|
||||
}
|
||||
|
||||
display_popup() {
|
||||
tmux display-popup \
|
||||
-S "fg=#eba0ac" \
|
||||
-w50% \
|
||||
-h50% \
|
||||
-d '#{pane_current_path}' \
|
||||
-T meeting \
|
||||
icalBuddy \
|
||||
--propertyOrder "datetime,title" \
|
||||
--noCalendarNames \
|
||||
--formatOutput \
|
||||
--includeEventProps "title,datetime,notes,url,attendees" \
|
||||
--includeOnlyEventsFromNowOn \
|
||||
--limitItems 1 \
|
||||
--excludeAllDayEvents \
|
||||
--excludeCals "training" \
|
||||
eventsToday
|
||||
}
|
||||
|
||||
print_tmux_status() {
|
||||
if [[ $minutes_till_meeting -lt $ALERT_IF_IN_NEXT_MINUTES &&
|
||||
$minutes_till_meeting -gt -60 ]]; then
|
||||
echo "$NERD_FONT_MEETING \
|
||||
$time $title ($minutes_till_meeting minutes)"
|
||||
else
|
||||
echo "$NERD_FONT_FREE"
|
||||
fi
|
||||
|
||||
if [[ $epoc_diff -gt $ALERT_POPUP_BEFORE_SECONDS && epoc_diff -lt $ALERT_POPUP_BEFORE_SECONDS+10 ]]; then
|
||||
display_popup
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
get_attendees
|
||||
parse_attendees
|
||||
get_next_meeting
|
||||
parse_result "$next_meeting"
|
||||
calculate_times
|
||||
if [[ "$next_meeting" != "" && $number_of_attendees -lt 2 ]]; then
|
||||
get_next_next_meeting
|
||||
parse_result "$next_next_meeting"
|
||||
calculate_times
|
||||
fi
|
||||
print_tmux_status
|
||||
# echo "$minutes_till_meeting | $number_of_attendees"
|
||||
}
|
||||
|
||||
main
|
||||
Reference in New Issue
Block a user