minor updates
This commit is contained in:
parent
876fd4faf4
commit
8e8e637dbe
3 changed files with 52 additions and 4 deletions
31
configs/fish/functions/mega-dl.fish
Normal file
31
configs/fish/functions/mega-dl.fish
Normal file
|
|
@ -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
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"enabled": true,
|
"enabled": true,
|
||||||
"name": "Official Noctalia Plugins",
|
"name": "Noctalia Plugins",
|
||||||
"url": "https://github.com/noctalia-dev/noctalia-plugins"
|
"url": "https://github.com/noctalia-dev/noctalia-plugins"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,15 @@
|
||||||
{
|
{
|
||||||
"appLauncher": {
|
"appLauncher": {
|
||||||
"autoPasteClipboard": false,
|
"autoPasteClipboard": false,
|
||||||
|
"clipboardWatchImageCommand": "wl-paste --type image --watch cliphist store",
|
||||||
|
"clipboardWatchTextCommand": "wl-paste --type text --watch cliphist store",
|
||||||
"clipboardWrapText": true,
|
"clipboardWrapText": true,
|
||||||
"customLaunchPrefix": "",
|
"customLaunchPrefix": "",
|
||||||
"customLaunchPrefixEnabled": false,
|
"customLaunchPrefixEnabled": false,
|
||||||
"enableClipPreview": true,
|
"enableClipPreview": true,
|
||||||
"enableClipboardHistory": true,
|
"enableClipboardHistory": true,
|
||||||
"enableSettingsSearch": true,
|
"enableSettingsSearch": true,
|
||||||
|
"enableWindowsSearch": true,
|
||||||
"iconMode": "native",
|
"iconMode": "native",
|
||||||
"ignoreMouseInput": false,
|
"ignoreMouseInput": false,
|
||||||
"pinnedApps": [
|
"pinnedApps": [
|
||||||
|
|
@ -31,11 +34,16 @@
|
||||||
"volumeStep": 5
|
"volumeStep": 5
|
||||||
},
|
},
|
||||||
"bar": {
|
"bar": {
|
||||||
|
"autoHideDelay": 500,
|
||||||
|
"autoShowDelay": 150,
|
||||||
"backgroundOpacity": 0,
|
"backgroundOpacity": 0,
|
||||||
|
"barType": "floating",
|
||||||
"capsuleOpacity": 1,
|
"capsuleOpacity": 1,
|
||||||
"density": "default",
|
"density": "default",
|
||||||
"exclusive": true,
|
"displayMode": "always_visible",
|
||||||
"floating": true,
|
"floating": true,
|
||||||
|
"frameRadius": 12,
|
||||||
|
"frameThickness": 8,
|
||||||
"hideOnOverview": false,
|
"hideOnOverview": false,
|
||||||
"marginHorizontal": 3,
|
"marginHorizontal": 3,
|
||||||
"marginVertical": 5,
|
"marginVertical": 5,
|
||||||
|
|
@ -64,14 +72,19 @@
|
||||||
{
|
{
|
||||||
"characterCount": 2,
|
"characterCount": 2,
|
||||||
"colorizeIcons": false,
|
"colorizeIcons": false,
|
||||||
|
"emptyColor": "secondary",
|
||||||
"enableScrollWheel": true,
|
"enableScrollWheel": true,
|
||||||
|
"focusedColor": "primary",
|
||||||
"followFocusedScreen": false,
|
"followFocusedScreen": false,
|
||||||
"groupedBorderOpacity": 1,
|
"groupedBorderOpacity": 1,
|
||||||
"hideUnoccupied": false,
|
"hideUnoccupied": false,
|
||||||
"iconScale": 0.8,
|
"iconScale": 0.8,
|
||||||
"id": "Workspace",
|
"id": "Workspace",
|
||||||
"labelMode": "none",
|
"labelMode": "none",
|
||||||
|
"occupiedColor": "secondary",
|
||||||
|
"reverseScroll": false,
|
||||||
"showApplications": false,
|
"showApplications": false,
|
||||||
|
"showBadge": true,
|
||||||
"showLabelsOnlyWhenOccupied": true,
|
"showLabelsOnlyWhenOccupied": true,
|
||||||
"unfocusedIconsOpacity": 1
|
"unfocusedIconsOpacity": 1
|
||||||
},
|
},
|
||||||
|
|
@ -122,7 +135,8 @@
|
||||||
"hideWhenZero": false,
|
"hideWhenZero": false,
|
||||||
"hideWhenZeroUnread": false,
|
"hideWhenZeroUnread": false,
|
||||||
"id": "NotificationHistory",
|
"id": "NotificationHistory",
|
||||||
"showUnreadBadge": true
|
"showUnreadBadge": true,
|
||||||
|
"unreadBadgeColor": "primary"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"displayMode": "onhover",
|
"displayMode": "onhover",
|
||||||
|
|
@ -271,8 +285,10 @@
|
||||||
},
|
},
|
||||||
"general": {
|
"general": {
|
||||||
"allowPanelsOnScreenWithoutBar": true,
|
"allowPanelsOnScreenWithoutBar": true,
|
||||||
|
"allowPasswordWithFprintd": false,
|
||||||
"animationDisabled": false,
|
"animationDisabled": false,
|
||||||
"animationSpeed": 1,
|
"animationSpeed": 1,
|
||||||
|
"autoStartAuth": false,
|
||||||
"avatarImage": "/home/aleidk/.face",
|
"avatarImage": "/home/aleidk/.face",
|
||||||
"boxRadiusRatio": 1,
|
"boxRadiusRatio": 1,
|
||||||
"compactLockScreen": false,
|
"compactLockScreen": false,
|
||||||
|
|
@ -428,7 +444,7 @@
|
||||||
"showHeader": true,
|
"showHeader": true,
|
||||||
"showNumberLabels": true
|
"showNumberLabels": true
|
||||||
},
|
},
|
||||||
"settingsVersion": 44,
|
"settingsVersion": 46,
|
||||||
"systemMonitor": {
|
"systemMonitor": {
|
||||||
"cpuCriticalThreshold": 90,
|
"cpuCriticalThreshold": 90,
|
||||||
"cpuPollingInterval": 3000,
|
"cpuPollingInterval": 3000,
|
||||||
|
|
@ -491,6 +507,7 @@
|
||||||
"setWallpaperOnAllMonitors": true,
|
"setWallpaperOnAllMonitors": true,
|
||||||
"showHiddenFiles": false,
|
"showHiddenFiles": false,
|
||||||
"solidColor": "#1a1a2e",
|
"solidColor": "#1a1a2e",
|
||||||
|
"sortOrder": "name",
|
||||||
"transitionDuration": 1500,
|
"transitionDuration": 1500,
|
||||||
"transitionEdgeSmoothness": 0.05,
|
"transitionEdgeSmoothness": 0.05,
|
||||||
"transitionType": "random",
|
"transitionType": "random",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue