From 8e8e637dbedfce6219aa15435cdd7590b77882dc Mon Sep 17 00:00:00 2001 From: aleidk Date: Tue, 3 Feb 2026 13:06:37 -0300 Subject: [PATCH] minor updates --- configs/fish/functions/mega-dl.fish | 31 +++++++++++++++++++++++++++++ configs/noctalia/plugins.json | 2 +- configs/noctalia/settings.json | 23 ++++++++++++++++++--- 3 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 configs/fish/functions/mega-dl.fish diff --git a/configs/fish/functions/mega-dl.fish b/configs/fish/functions/mega-dl.fish new file mode 100644 index 0000000..abe70ac --- /dev/null +++ b/configs/fish/functions/mega-dl.fish @@ -0,0 +1,31 @@ +function mega-dl --argument-names link + set server "t-800" + + if test -z $link + echo "No arguments provided!" + return + end + + # rotate vpn proxy exit node to get new ip + echo "Requesting new public ip to VPN provider" + curl -s -X PUT $server:8000/v1/vpn/status --json '{"status": "stopped"}' > /dev/null + curl -s -X PUT $server:8000/v1/vpn/status --json '{"status": "running"}' > /dev/null + + while true + set -l response (curl -s $server:8000/v1/publicip/ip) + set -l public_ip (echo $response | jq -r ".public_ip") + set -l country (echo $response | jq -r ".country") + set -l city (echo $response | jq -r ".city") + + # wait for the connection to be stablished + if test -z $public_ip + sleep 0.2 + else + echo -e "New IP is $public_ip from $country/$city\n" + break + end + end + + # use vpn as proxy + megatools dl --proxy http://$server:8888 $link +end diff --git a/configs/noctalia/plugins.json b/configs/noctalia/plugins.json index 4b43c99..04a5604 100644 --- a/configs/noctalia/plugins.json +++ b/configs/noctalia/plugins.json @@ -2,7 +2,7 @@ "sources": [ { "enabled": true, - "name": "Official Noctalia Plugins", + "name": "Noctalia Plugins", "url": "https://github.com/noctalia-dev/noctalia-plugins" } ], diff --git a/configs/noctalia/settings.json b/configs/noctalia/settings.json index 3cf2b80..7e05bf9 100644 --- a/configs/noctalia/settings.json +++ b/configs/noctalia/settings.json @@ -1,12 +1,15 @@ { "appLauncher": { "autoPasteClipboard": false, + "clipboardWatchImageCommand": "wl-paste --type image --watch cliphist store", + "clipboardWatchTextCommand": "wl-paste --type text --watch cliphist store", "clipboardWrapText": true, "customLaunchPrefix": "", "customLaunchPrefixEnabled": false, "enableClipPreview": true, "enableClipboardHistory": true, "enableSettingsSearch": true, + "enableWindowsSearch": true, "iconMode": "native", "ignoreMouseInput": false, "pinnedApps": [ @@ -31,11 +34,16 @@ "volumeStep": 5 }, "bar": { + "autoHideDelay": 500, + "autoShowDelay": 150, "backgroundOpacity": 0, + "barType": "floating", "capsuleOpacity": 1, "density": "default", - "exclusive": true, + "displayMode": "always_visible", "floating": true, + "frameRadius": 12, + "frameThickness": 8, "hideOnOverview": false, "marginHorizontal": 3, "marginVertical": 5, @@ -64,14 +72,19 @@ { "characterCount": 2, "colorizeIcons": false, + "emptyColor": "secondary", "enableScrollWheel": true, + "focusedColor": "primary", "followFocusedScreen": false, "groupedBorderOpacity": 1, "hideUnoccupied": false, "iconScale": 0.8, "id": "Workspace", "labelMode": "none", + "occupiedColor": "secondary", + "reverseScroll": false, "showApplications": false, + "showBadge": true, "showLabelsOnlyWhenOccupied": true, "unfocusedIconsOpacity": 1 }, @@ -122,7 +135,8 @@ "hideWhenZero": false, "hideWhenZeroUnread": false, "id": "NotificationHistory", - "showUnreadBadge": true + "showUnreadBadge": true, + "unreadBadgeColor": "primary" }, { "displayMode": "onhover", @@ -271,8 +285,10 @@ }, "general": { "allowPanelsOnScreenWithoutBar": true, + "allowPasswordWithFprintd": false, "animationDisabled": false, "animationSpeed": 1, + "autoStartAuth": false, "avatarImage": "/home/aleidk/.face", "boxRadiusRatio": 1, "compactLockScreen": false, @@ -428,7 +444,7 @@ "showHeader": true, "showNumberLabels": true }, - "settingsVersion": 44, + "settingsVersion": 46, "systemMonitor": { "cpuCriticalThreshold": 90, "cpuPollingInterval": 3000, @@ -491,6 +507,7 @@ "setWallpaperOnAllMonitors": true, "showHiddenFiles": false, "solidColor": "#1a1a2e", + "sortOrder": "name", "transitionDuration": 1500, "transitionEdgeSmoothness": 0.05, "transitionType": "random",