minor fix

This commit is contained in:
sankalp committed 2023-12-31 08:53:37 +05:45
1 parent 7286c99e90
commit a5b23da5bf
11 files changed
+108 -65

No files matched your search

+18 -4
View File
@@ -1,11 +1,19 @@
#!/bin/bash
# Wallpaper directory
DIR="$HOME/Pictures/wallpapers"
# Find wallpapers
PICS=($(find "${DIR}" -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
PICS=($(find ${DIR} -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
RANDOMPICS=${PICS[ $RANDOM % ${#PICS[@]} ]}
# Check if there are wallpapers in the specified directory
if [ ${#PICS[@]} -eq 0 ]; then
echo "No wallpapers found in ${DIR}. Exiting."
exit 1
fi
# Randomly select a wallpaper
RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]}
# Transition config
FPS=60
@@ -14,8 +22,14 @@ DURATION=1
BEZIER=".43,1.19,1,.4"
SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration $DURATION --transition-bezier $BEZIER"
# Check if swww is initialized, and initialize if not
swww query || swww init
swww query || swww init && swww img ${RANDOMPICS} $SWWW_PARAMS
# Set the wallpaper with transition parameters
swww img "${RANDOMPICS}" $SWWW_PARAMS
ln -sf "$RANDOMPICS" "$HOME/.config/hypr/.current_wallpaper"
# Notify that the wallpaper has changed
notify-send "Wallpaper Changed" -i "${RANDOMPICS}"
# Create a symbolic link to the current wallpaper
ln -sf "${RANDOMPICS}" "$HOME/.config/hypr/.current_wallpaper"
+20 -20
View File
@@ -2,34 +2,34 @@
DIR="$HOME/Pictures/wallpapers/"
PICS=($(find "${DIR}" -type f \( -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -o -name "*.gif" \)))
RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]}
# Create symbolic link to the selected wallpaper
ln -sf "${RANDOMPICS}" "$HOME/.config/hypr/.current_wallpaper"
# Check if swww is initialized
swww query || swww init
# Set the wallpaper
swww img "$HOME/.config/hypr/.current_wallpaper"
if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then
# Check if there are wallpapers in the specified directory
if [ ${#PICS[@]} -eq 0 ]; then
echo "No wallpapers found in ${DIR}. Exiting."
exit 1
fi
# Check if swww is initialized, and initialize if not
swww query || swww init
# Set the transition type to random
export SWWW_TRANSITION_TYPE=random
# This controls (in seconds) when to switch to the next image
INTERVAL=1800
while true; do
find "$1" -type f \
| shuf \
| while read -r img; do
# Update the symbolic link to the new wallpaper
ln -sf "$img" "$HOME/.config/hypr/.current_wallpaper"
# Set the new wallpaper
swww img "$HOME/.config/hypr/.current_wallpaper"
sleep $INTERVAL
done
# Select a random wallpaper
RANDOMPICS=${PICS[$RANDOM % ${#PICS[@]}]}
# Create symbolic link to the selected wallpaper
ln -sf "${RANDOMPICS}" "$HOME/.config/hypr/.current_wallpaper"
# Set the new wallpaper
swww img "$HOME/.config/hypr/.current_wallpaper"
# Notify that wallpaper has changed
notify-send "Wallpaper Changed" -i "$RANDOMPICS"
sleep $INTERVAL
done
+4 -2
View File
@@ -24,20 +24,24 @@ wallpaper="$WALLPAPERS_DIR/$choice"
set_wallpaper_kde() {
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript \
"var allDesktops = desktops(); for (i=0;i<allDesktops.length;i++) {d = allDesktops[i];d.wallpaperPlugin = \"org.kde.image\";d.currentConfigGroup = Array(\"Wallpaper\", \"org.kde.image\", \"General\");d.writeConfig(\"Image\", \"file:$1\")}"
notify-send "Wallpaper Changed" -i "$1"
}
set_wallpaper_gnome() {
gsettings set org.gnome.desktop.background picture-uri "file://$1"
gsettings set org.gnome.desktop.background picture-uri-dark "file://$1"
notify-send "Wallpaper Changed" -i "$1"
}
set_wallpaper_sway() {
swaymsg output "*" bg "$1" "stretch"
notify-send "Wallpaper Changed" -i "$1"
}
set_wallpaper_default() {
swww img -t any --transition-bezier 0,.53,1,.48 --transition-duration 1 --transition-fps 60 "$1" &&
ln -sf "$1" "$HOME/.config/hypr/.current_wallpaper"
notify-send "Wallpaper Changed" -i "$1"
}
if [ -n "$choice" ]; then
@@ -51,5 +55,3 @@ if [ -n "$choice" ]; then
fi
exit 1
+7 -6
View File
@@ -5,6 +5,7 @@
"actions-preview.nvim": { "branch": "master", "commit": "8f79029a36ab6807478f157538a91ccd4af5858f" },
"animation.nvim": { "branch": "main", "commit": "fb77091ab72ec9971aee0562e7081182527aaa6a" },
"autolist.nvim": { "branch": "main", "commit": "5f70a5f99e96c8fe3069de042abd2a8ed2deb855" },
"barbecue": { "branch": "main", "commit": "cd7e7da622d68136e13721865b4d919efd6325ed" },
"bigfile.nvim": { "branch": "main", "commit": "33eb067e3d7029ac77e081cfe7c45361887a311a" },
"bufferline.nvim": { "branch": "main", "commit": "e48ce1805697e4bb97bc171c081e849a65859244" },
"catppuccin": { "branch": "main", "commit": "b901cf144573b293b6cefeb1ac8c97d5d239ee7a" },
@@ -24,7 +25,6 @@
"diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" },
"dooku.nvim": { "branch": "main", "commit": "10d7ccca5cdd30d4d03bc7433023590ca620edc7" },
"dressing.nvim": { "branch": "master", "commit": "94b0d24483d56f3777ee0c8dc51675f21709318c" },
"dropbar.nvim": { "branch": "master", "commit": "ee3a356254ab494c0e280b809969a7a3a7e38fb7" },
"edgy.nvim": { "branch": "main", "commit": "8355be45610afdf79a0bab32b91ee297997455b4" },
"flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" },
"friendly-snippets": { "branch": "main", "commit": "53d3df271d031c405255e99410628c26a8f0d2b0" },
@@ -57,7 +57,7 @@
"multicursors.nvim": { "branch": "main", "commit": "8e876fe9db46c1b76c151202b418df21eca07bad" },
"neo-tree.nvim": { "branch": "v3.x", "commit": "77d9f484b88fd380386b46ed9206e5374d69d9d8" },
"neoconf.nvim": { "branch": "main", "commit": "64437787dba70fce50dad7bfbb97d184c5bc340f" },
"neodev.nvim": { "branch": "main", "commit": "8526ce7de23e04735827a4e3f78ff634880181c5" },
"neodev.nvim": { "branch": "main", "commit": "7cb4f7f29c6bf6f1d21a37f6dd6d12ba64266b09" },
"neogen": { "branch": "main", "commit": "70127baaff25611deaf1a29d801fc054ad9d2dc1" },
"neotest": { "branch": "master", "commit": "6aa6e4529a4a125b49c48541b97ba146ceee2441" },
"neotest-bash": { "branch": "main", "commit": "2eaad2ae4577fadf4af1eec32ec169d0fb2698bb" },
@@ -79,10 +79,12 @@
"nvim-lightbulb": { "branch": "master", "commit": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9" },
"nvim-lint": { "branch": "master", "commit": "3ffa176628fe49e74f47992757016b7371a9b86b" },
"nvim-lsp-file-operations": { "branch": "master", "commit": "8e7223e138590c1bd9d86d3de810e65939d8b12f" },
"nvim-lspconfig": { "branch": "master", "commit": "0d9e870d01894c592d7ea93cfe0fa451916d9a7f" },
"nvim-lspconfig": { "branch": "master", "commit": "9bedcfed749755e43fc8bed46f85ce2044fe3b77" },
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
"nvim-notify": { "branch": "master", "commit": "ebcdd8219e2a2cbc0a4bef68002f6867f1fde269" },
"nvim-numbertoggle": { "branch": "main", "commit": "9ab95e60ea5ec138e1b2332e0fc18b8e5de464c6" },
"nvim-puppeteer": { "branch": "main", "commit": "d7e1b2d67c89d32b6ecada88ff67b539ba09f2d7" },
"nvim-scrollview": { "branch": "main", "commit": "6715dba4f0972beb47ad7f8915e2e89023f1c6a2" },
"nvim-spectre": { "branch": "master", "commit": "d8906855f1949ac97b1e77aaf8d3fe12ed158ddc" },
"nvim-treesitter": { "branch": "master", "commit": "e49f1e8ef3e8450a8446cb1f2bbb53c919f60b6d" },
"nvim-treesitter-context": { "branch": "master", "commit": "652ec514d6ba8bc4a3c2de76c855fe668e2c7196" },
@@ -102,14 +104,13 @@
"persistent-breakpoints.nvim": { "branch": "main", "commit": "db2ad5974b0435cb806cd287e7525219d6ac4bd3" },
"plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" },
"presence.nvim": { "branch": "main", "commit": "87c857a56b7703f976d3a5ef15967d80508df6e6" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "a249476e451673f7811852d93109dff19311ee39" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "1ed4613437c585eacd5c8827b408e6db8234c3ee" },
"refactoring.nvim": { "branch": "master", "commit": "156532476deb10b1b2a32cb38e1078b3f9951c42" },
"rust-tools.nvim": { "branch": "master", "commit": "0cc8adab23117783a0292a0c8a2fbed1005dc645" },
"satellite.nvim": { "branch": "main", "commit": "acb185e1475a19e2538ee517fb540b82db629887" },
"search-replace.nvim": { "branch": "main", "commit": "d92290a02d97f4e9b8cd60d28b56b403432158d5" },
"semshi": { "branch": "master", "commit": "0182447e2ff4dfa04cd2dfe5f189e012c581ca45" },
"smart-splits.nvim": { "branch": "master", "commit": "f0003bf9c3f11b8b9209264f865b8864453ca926" },
"sniprun": { "branch": "master", "commit": "639877399a23e375a8c07b75c14d017735eab7cb" },
"sniprun": { "branch": "master", "commit": "551f5839c1ccc8b4d3143ae03f58757d3047e391" },
"sqlite.lua": { "branch": "master", "commit": "b7e28c8463254c46a8e61c52d27d6a2040492fc3" },
"suda.vim": { "branch": "master", "commit": "8b0fc3711760195aba104e2d190cff9af8267052" },
"telescope-all-recent.nvim": { "branch": "main", "commit": "766d79bedf8dd59c2d0a944a7cf3c98795ab5f07" },
@@ -1,6 +1,6 @@
return {
"epwalsh/obsidian.nvim",
event = { "BufReadPre" .. vim.fn.expand("~") .. "Documentos/Obsidian/obsidianVault/root/**.md" },
ft = "markdown",
keys = {
{
"gf",
@@ -21,13 +21,23 @@ return {
"nvim-telescope/telescope.nvim",
},
opts = {
dir = vim.env.HOME .. "Documentos/Obsidian/obsidianVault/root", -- specify the vault location. no need to call 'vim.fn.expand' here
use_advanced_uri = true,
finder = "telescope.nvim",
workspaces = {
{
name = "personal",
path = "~/Documentos/Obsidian/obsidianVault/root",
},
},
daily_notes = {
folder = "Journal/Entries/Daily",
date_format = "%Y-%m-%d",
alias_format = "%B %-d, %Y",
template = "_data_/templates/journal/daily_entry.md",
},
mappings = {},
templates = {
subdir = "templates",
subdir = "_data_/templates",
date_format = "%Y-%m-%d-%a",
time_format = "%H:%M",
},
@@ -48,35 +58,12 @@ return {
-- Optional, set to true to force ':ObsidianOpen' to bring the app to the foreground.
open_app_foreground = false,
-- Optional, by default commands like `:ObsidianSearch` will attempt to use
-- telescope.nvim, fzf-lua, and fzf.nvim (in that order), and use the
-- first one they find. By setting this option to your preferred
-- finder you can attempt it first. Note that if the specified finder
-- is not installed, or if it the command does not support it, the
-- remaining finders will be attempted in the original order.
finder = "telescope.nvim",
-- Optional, determines whether to open notes in a horizontal split, a vertical split,
-- or replacing the current buffer (default)
-- Accepted values are "current", "hsplit" and "vsplit"
open_notes_in = "current",
daily_notes = {
folder = "journal/daily",
date_format = "%Y-%m-%d",
},
completion = {
nvim_cmp = true,
min_chars = 2,
-- Where to put new notes created from completion. Valid options are
-- * "current_dir" - put new notes in same directory as the current buffer.
-- * "notes_subdir" - put new notes in the default notes subdirectory.
new_notes_location = "current_dir",
-- Whether to add the output of the node_id_func to new notes in autocompletion.
-- E.g. "[[Foo" completes to "[[foo|Foo]]" assuming "foo" is the ID of the note.
prepend_note_id = false,
attachments = {
img_folder = "_data_/media",
},
note_frontmatter_func = function(note)
@@ -0,0 +1,23 @@
return {
{ "iamcco/markdown-preview.nvim", enabled = false },
{
"toppair/peek.nvim",
build = "deno task --quiet build:fast",
keys = {
{
"<leader>cp",
ft = "markdown",
function()
local peek = require("peek")
if peek.is_open() then
peek.close()
else
peek.open()
end
end,
desc = "Peek (Markdown Preview)",
},
},
opts = {},
},
}
@@ -0,0 +1,11 @@
return {
"NeogitOrg/neogit",
dependencies = {
"nvim-lua/plenary.nvim",
"sindrets/diffview.nvim",
"nvim-telescope/telescope.nvim",
},
config = true,
cmd = { "Neogit" },
-- TODO: Need to configure this
}
@@ -56,6 +56,7 @@ return {
lsp_trouble = false,
navic = { enabled = false, custom_bg = "lualine" },
neotest = true,
neogit = true,
neotree = true,
notify = true,
noice = true,
@@ -0,0 +1,4 @@
return {
"jghauser/mkdir.nvim",
event = "VeryLazy",
}
+2 -2
View File
@@ -12,7 +12,7 @@
"control-center-margin-left": 0,
"notification-2fa-action": true,
"notification-inline-replies": false,
"notification-icon-size": 24,
"notification-icon-size": 50,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 6,
@@ -72,7 +72,7 @@
},
{
"label": "󰌾",
"command": "~/.config/hypr/scripts/LockScreen.sh"
"command": "swaylock"
},
{
"label": "󰍃",
+1 -1
View File
@@ -213,7 +213,7 @@
.widget-dnd>switch {
border-radius: 10px;
/* border: 1px solid #7aa2f7; */
background: @noti-border-color;
background: white;
}
.widget-dnd>switch:checked {