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": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "Official Noctalia Plugins",
|
||||
"name": "Noctalia Plugins",
|
||||
"url": "https://github.com/noctalia-dev/noctalia-plugins"
|
||||
}
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue