From 8aef0a96bf4e14cd90af083273e18b3a9f82b1df Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 09:17:44 +0530
Subject: [PATCH 001/344] refreshrate 1 sec
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index cc1fa37..6881254 100644
--- a/extension.js
+++ b/extension.js
@@ -11,7 +11,7 @@ const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const PREFS_SCHEMA = 'org.gnome.shell.extensions.simplenetspeed';
-const refreshTime = 3.0;
+const refreshTime = 1.0;
let settings;
let button, timeout;
From 7294af04779776228358100801f7ae9f7d59152f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 09:20:16 +0530
Subject: [PATCH 002/344] Update metadata.json
---
metadata.json | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/metadata.json b/metadata.json
index 2495e04..1087a3a 100644
--- a/metadata.json
+++ b/metadata.json
@@ -21,9 +21,11 @@
"3.29",
"3.30",
"3.32",
- "3.34"
+ "3.34",
+ "3.36",
+ "3.38"
],
- "url": "https://github.com/biji/simplenetspeed",
- "uuid": "simplenetspeed@biji.extension",
- "version": 16
+ "url": "https://github.com/prateekmedia/simplenetspeed/",
+ "uuid": "simplenetspeed@prateekmedia.extension",
+ "version": 18
}
From 4b4666c166a0701fdb6ea1c2cc38a4062aae0f5a Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 09:22:23 +0530
Subject: [PATCH 003/344] Update metadata.json
---
metadata.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/metadata.json b/metadata.json
index 1087a3a..e323e48 100644
--- a/metadata.json
+++ b/metadata.json
@@ -25,7 +25,7 @@
"3.36",
"3.38"
],
- "url": "https://github.com/prateekmedia/simplenetspeed/",
- "uuid": "simplenetspeed@prateekmedia.extension",
+ "url": "https://github.com/biji/simplenetspeed",
+ "uuid": "simplenetspeed@biji.extension",
"version": 18
}
From d7c368ab7918d5becac9539dde1c054c450f28ca Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 09:24:19 +0530
Subject: [PATCH 004/344] Update extension.js
---
extension.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension.js b/extension.js
index 6881254..169dd85 100644
--- a/extension.js
+++ b/extension.js
@@ -33,8 +33,8 @@ function init() {
style_class: 'panel-button',
reactive: true,
can_focus: true,
- x_fill: true,
- y_fill: false,
+ x_expand: true,
+ y_expand: false,
track_hover: true
});
From 1d96bcee77c9f9c1c5d3c63b6b00fab8c19d5329 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 09:27:59 +0530
Subject: [PATCH 005/344] Update README.md
---
README.md | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index e9bdd80..6a02778 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
# Simple net speed
Gnome extension to show network speed
-https://extensions.gnome.org/extension/1085/simple-net-speed/
+Forked from : https://github.com/biji/simplenetspeed
+
+Added : Refresh time is 1 second, supports GNOME SHELL 3.38
Simply showing network speed. Left click to change modes:
@@ -11,4 +13,17 @@ Simply showing network speed. Left click to change modes:
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-Middle click to change font size
+* Middle click to change font size
+
+* If you are getting it from source:
+ - to install
+ ```make install```
+
+ - to enable
+ ```make enable```
+
+ - to disable
+ ```make disable```
+
+ - to reload
+ ```make reload```
From 9b12c4fb64530e85f2b6ce243d7839940a85b731 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 09:30:04 +0530
Subject: [PATCH 006/344] Update README.md
---
README.md | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/README.md b/README.md
index 6a02778..07a73c2 100644
--- a/README.md
+++ b/README.md
@@ -14,16 +14,3 @@ Simply showing network speed. Left click to change modes:
1. Total of downloaded in Bytes (Right click to reset counter)
* Middle click to change font size
-
-* If you are getting it from source:
- - to install
- ```make install```
-
- - to enable
- ```make enable```
-
- - to disable
- ```make disable```
-
- - to reload
- ```make reload```
From 92a8ed9e0b743cae8b9465b6cae3c371b1b4329e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:03:46 +0530
Subject: [PATCH 007/344] Update README.md
---
README.md | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/README.md b/README.md
index 07a73c2..1d01488 100644
--- a/README.md
+++ b/README.md
@@ -14,3 +14,13 @@ Simply showing network speed. Left click to change modes:
1. Total of downloaded in Bytes (Right click to reset counter)
* Middle click to change font size
+
+* If you are getting it from source:
+ - to install
+ ```mv /home/prateeksu/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/edit/master/README.md /home/prateeksu/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
+ - to load extension
+ ```Press Alt+F2 then type 'r' and hit enter.```
+ - to enable
+ ```You Can enable maually using extensions app```
+ - to disable
+ ```You Can disable maually using extensions app```
From 41643e0ce7ac186686a85caf730ef74fb6a0f0c7 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:04:46 +0530
Subject: [PATCH 008/344] Update README.md
---
README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 1d01488..dcd5eed 100644
--- a/README.md
+++ b/README.md
@@ -16,11 +16,11 @@ Simply showing network speed. Left click to change modes:
* Middle click to change font size
* If you are getting it from source:
- - to install
+ - to install
```mv /home/prateeksu/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/edit/master/README.md /home/prateeksu/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
- - to load extension
- ```Press Alt+F2 then type 'r' and hit enter.```
- - to enable
+ - to load extension
+ Press ```Alt+F2``` then type ```r``` and ```hit enter```.
+ - to enable
```You Can enable maually using extensions app```
- - to disable
+ - to disable
```You Can disable maually using extensions app```
From df4709431733ff566e06206b52eed915f4b92773 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:05:20 +0530
Subject: [PATCH 009/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index dcd5eed..b1e07a3 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Simply showing network speed. Left click to change modes:
* If you are getting it from source:
- to install
- ```mv /home/prateeksu/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/edit/master/README.md /home/prateeksu/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
+ ```mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/edit/master/README.md ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
- to load extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
From 62dc69516fc725cae9983d3b09f6cf94ab41131f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:12:39 +0530
Subject: [PATCH 010/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index b1e07a3..bee5a1c 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Simply showing network speed. Left click to change modes:
* If you are getting it from source:
- to install
- ```mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/edit/master/README.md ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
+ ```mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/ ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
- to load extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
From 8b5fa33d3e8ed5ad4961c60fa308ae0f7046534f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:17:52 +0530
Subject: [PATCH 011/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index bee5a1c..0a6dcc0 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Simply showing network speed. Left click to change modes:
* If you are getting it from source:
- to install
- ```mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/ ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
+ ```mkdir ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji || mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/ ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
- to load extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
From edb6b57871d47f576e96c964a1b88f40bd2f7695 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:23:28 +0530
Subject: [PATCH 012/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 0a6dcc0..a36e800 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Simple net speed
+# Simplified net speed
Gnome extension to show network speed
Forked from : https://github.com/biji/simplenetspeed
From fb6014dd3d089232144c5babcc471a2bcb70daa1 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:24:26 +0530
Subject: [PATCH 013/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a36e800..07a5091 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Simplified net speed
+# Net speed Simplified
Gnome extension to show network speed
Forked from : https://github.com/biji/simplenetspeed
From 4dbbc470737eca9bd6827b866a222ba35c04c337 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:25:22 +0530
Subject: [PATCH 014/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 07a5091..ac95a57 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Simply showing network speed. Left click to change modes:
* If you are getting it from source:
- to install
- ```mkdir ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji || mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/simplenetspeed/ ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
+ ```mkdir ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji || mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
- to load extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
From 1e0024e9ad2cb418b54b9da7c524463f8966cb01 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:27:01 +0530
Subject: [PATCH 015/344] Update metadata.json
---
metadata.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/metadata.json b/metadata.json
index e323e48..8586ff6 100644
--- a/metadata.json
+++ b/metadata.json
@@ -25,7 +25,7 @@
"3.36",
"3.38"
],
- "url": "https://github.com/biji/simplenetspeed",
- "uuid": "simplenetspeed@biji.extension",
+ "url": "https://github.com/prateekmedia/netspeedsimplified",
+ "uuid": "netspeedsimplified@prateekmedia.extension",
"version": 18
}
From 4c0558f193369f5e0f3ba7eb560b14ad494cd08e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:28:25 +0530
Subject: [PATCH 016/344] Update
org.gnome.shell.extensions.simplenetspeed.gschema.xml
---
schemas/org.gnome.shell.extensions.simplenetspeed.gschema.xml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/schemas/org.gnome.shell.extensions.simplenetspeed.gschema.xml b/schemas/org.gnome.shell.extensions.simplenetspeed.gschema.xml
index b346099..e987d47 100644
--- a/schemas/org.gnome.shell.extensions.simplenetspeed.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.simplenetspeed.gschema.xml
@@ -1,6 +1,6 @@
-
-
+
+
0
From f842487d99698b993714955ff72579d15374b1d1 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:43:43 +0530
Subject: [PATCH 017/344] Updated Format
---
stylesheet.css | 74 ++++++++++----------------------------------------
1 file changed, 14 insertions(+), 60 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 6f13803..ee11bf8 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,80 +1,34 @@
-.simplenetspeed-label {
- width: 7em;
+.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
text-align: right;
margin-left: 1px;
- margin-right: 2px;
- font-size: 1em;
}
-.simplenetspeed-label-w {
+.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
+ width: 7em;
+ margin-right: 2px;}
+
+.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
- font-size: 1em;
-}
+ margin-right: 1px;}
-.simplenetspeed-label-1 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
- font-size: .65em;
+
+.simplenetspeed-label, .simplenetspeed-label-w {
+ font-size: 1em;
}
-.simplenetspeed-label-w-1 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
+.simplenetspeed-label-1, .simplenetspeed-label-w-1 {
font-size: .65em;
}
-.simplenetspeed-label-2 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
+.simplenetspeed-label-2, .simplenetspeed-label-w-2 {
font-size: .7em;
}
-.simplenetspeed-label-w-2 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
- font-size: .7em;
-}
-
-.simplenetspeed-label-3 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
+.simplenetspeed-label-3, .simplenetspeed-label-w-3 {
font-size: .9em;
}
-.simplenetspeed-label-w-3 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
- font-size: .9em;
-}
-
-.simplenetspeed-label-4 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
- font-size: 1.1em;
-}
-
-.simplenetspeed-label-w-4 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
+.simplenetspeed-label-4, .simplenetspeed-label-w-4 {
font-size: 1.1em;
}
From d9b459fc5a94ae9514e89d5cff4405bfa25cde2f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:46:18 +0530
Subject: [PATCH 018/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 169dd85..7e96edc 100644
--- a/extension.js
+++ b/extension.js
@@ -10,7 +10,7 @@ const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
-const PREFS_SCHEMA = 'org.gnome.shell.extensions.simplenetspeed';
+const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
const refreshTime = 1.0;
let settings;
From 3309380225fdda8859a2a6e3f460d7dadcb73c4e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:48:12 +0530
Subject: [PATCH 019/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index ac95a57..06e964d 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Simply showing network speed. Left click to change modes:
* If you are getting it from source:
- to install
- ```mkdir ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji || mv ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension /tmp/biji && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/simplenetspeed@biji.extension```
+ ```git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to load extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
From 2c4908ea51cefb94b2adbdee89653c0ebd426ec0 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 10:59:01 +0530
Subject: [PATCH 020/344] Rename
org.gnome.shell.extensions.simplenetspeed.gschema.xml to
org.gnome.shell.extensions.netspeedsimplified.gschema.xml
---
... => org.gnome.shell.extensions.netspeedsimplified.gschema.xml} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename schemas/{org.gnome.shell.extensions.simplenetspeed.gschema.xml => org.gnome.shell.extensions.netspeedsimplified.gschema.xml} (100%)
diff --git a/schemas/org.gnome.shell.extensions.simplenetspeed.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
similarity index 100%
rename from schemas/org.gnome.shell.extensions.simplenetspeed.gschema.xml
rename to schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
From 62d2e2666426776fb99005eba30b78531044540a Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:00:06 +0530
Subject: [PATCH 021/344] Update README.md
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 06e964d..99c32ff 100644
--- a/README.md
+++ b/README.md
@@ -24,3 +24,5 @@ Simply showing network speed. Left click to change modes:
```You Can enable maually using extensions app```
- to disable
```You Can disable maually using extensions app```
+ - to remove
+ ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From 1d16f23ed19feac509a17ace4789e71138a6bcdc Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:09:50 +0530
Subject: [PATCH 022/344] Update metadata.json
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 8586ff6..d03ad5e 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,7 +1,7 @@
{
"_generated": "Generated by SweetTooth, do not edit",
"description": "Simply showing network speed. Left click to change modes:\n\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)\n\nMiddle click to change font size",
- "name": "Simple net speed",
+ "name": "Net speed Simplified",
"shell-version": [
"3.14",
"3.15",
From 5c73b55d86f1edb1ea86ae739a9c28b0e3944018 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:11:09 +0530
Subject: [PATCH 023/344] Update stylesheet.css
---
stylesheet.css | 75 ++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 60 insertions(+), 15 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index ee11bf8..a3bc003 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,34 +1,80 @@
-.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
+.simplenetspeed-label {
+ width: 7em;
text-align: right;
margin-left: 1px;
+ margin-right: 2px;
+ font-size: 1em;
}
-.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
- width: 7em;
- margin-right: 2px;}
-
-.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
+.simplenetspeed-label-w {
width: 11em;
- margin-right: 1px;}
-
-
-.simplenetspeed-label, .simplenetspeed-label-w {
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 1px;
font-size: 1em;
}
-.simplenetspeed-label-1, .simplenetspeed-label-w-1 {
+.simplenetspeed-label-1 {
+ width: 7em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 2px;
+ font-size: .65em;
+}
+
+.simplenetspeed-label-w-1 {
+ width: 11em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 1px;
font-size: .65em;
}
-.simplenetspeed-label-2, .simplenetspeed-label-w-2 {
+.simplenetspeed-label-2 {
+ width: 7em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 2px;
+ font-size: .7em;
+}
+
+.simplenetspeed-label-w-2 {
+ width: 11em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 1px;
font-size: .7em;
}
-.simplenetspeed-label-3, .simplenetspeed-label-w-3 {
+.simplenetspeed-label-3 {
+ width: 7em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 2px;
+ font-size: .9em;
+}
+
+.simplenetspeed-label-w-3 {
+ width: 11em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 1px;
font-size: .9em;
}
-.simplenetspeed-label-4, .simplenetspeed-label-w-4 {
+.simplenetspeed-label-4 {
+ width: 7em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 2px;
+ font-size: 1.1em;
+}
+
+.simplenetspeed-label-w-4 {
+ width: 11em;
+ text-align: right;
+ margin-left: 1px;
+ margin-right: 1px;
font-size: 1.1em;
}
@@ -37,7 +83,6 @@
width: 15px;
text-align: left;
}
-
.simplenetspeed-icon {
font-size: 12px;
width: 14px;
From d376c4798808a95ac7ae6000b28a0b401be3160e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:16:48 +0530
Subject: [PATCH 024/344] Add files via upload
---
schemas/gschemas.compiled | Bin 392 -> 403 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index e11bdb7e7d4247cbf68e5eec44f1732dbb539577..1c2dfcc33762c2fcd03c9611746cbf05db5b59a9 100644
GIT binary patch
delta 219
zcmeBRp3FQ!Bc4^1f#E+8L@ijvg4;>`TKV!gc7lH!8Y)Rf}P+=86Uw9JY1s-YlltPEug0zldc
z#D-c4VuP%70n$D|d~j_UJ4gt`<^ZaX0Mf-k?6qrF4M-fsW&w&<0O`pSe`*V$TQ=E%
KQD(9Sqcs3fsy0Ue
delta 189
zcmbQt+`&9SL(lb2`f^4F28IYA)@1NtXaUlHfS6U3f#E+8G=n4=d>C4QbO+Z%1n-7G-m}F$^Zb7n<_W}
From 35b2e15169882f8055766be35d828b96c8061c93 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:18:33 +0530
Subject: [PATCH 025/344] Updated stylesheet.css
---
stylesheet.css | 76 +++++++++++---------------------------------------
1 file changed, 16 insertions(+), 60 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index a3bc003..eb1f45f 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,80 +1,34 @@
-.simplenetspeed-label {
- width: 7em;
+.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
text-align: right;
margin-left: 1px;
- margin-right: 2px;
- font-size: 1em;
}
-.simplenetspeed-label-w {
+.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
+ width: 7em;
+ margin-right: 2px;}
+
+.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
- font-size: 1em;
-}
+ margin-right: 1px;}
-.simplenetspeed-label-1 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
- font-size: .65em;
+
+.simplenetspeed-label, .simplenetspeed-label-w {
+ font-size: 1em;
}
-.simplenetspeed-label-w-1 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
+.simplenetspeed-label-1, .simplenetspeed-label-w-1 {
font-size: .65em;
}
-.simplenetspeed-label-2 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
+.simplenetspeed-label-2, .simplenetspeed-label-w-2 {
font-size: .7em;
}
-.simplenetspeed-label-w-2 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
- font-size: .7em;
-}
-
-.simplenetspeed-label-3 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
- font-size: .9em;
-}
-
-.simplenetspeed-label-w-3 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
+.simplenetspeed-label-3, .simplenetspeed-label-w-3 {
font-size: .9em;
}
-.simplenetspeed-label-4 {
- width: 7em;
- text-align: right;
- margin-left: 1px;
- margin-right: 2px;
- font-size: 1.1em;
-}
-
-.simplenetspeed-label-w-4 {
- width: 11em;
- text-align: right;
- margin-left: 1px;
- margin-right: 1px;
+.simplenetspeed-label-4, .simplenetspeed-label-w-4 {
font-size: 1.1em;
}
@@ -83,9 +37,11 @@
width: 15px;
text-align: left;
}
+
.simplenetspeed-icon {
font-size: 12px;
width: 14px;
text-align: center;
color: lime;
}*/
+
From b1bbf0300e80124acc7949da3c286c436f605579 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:40:18 +0530
Subject: [PATCH 026/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 7e96edc..05b606e 100644
--- a/extension.js
+++ b/extension.js
@@ -222,7 +222,7 @@ function speedToString(amount) {
}
function enable() {
- Main.panel._rightBox.insert_child_at_index(button, 0);
+ Main.panel._rightBox.insert_child_at_index(button, 100);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From dc24defc0b4dfb575c4ebe76f804d10a3ae509aa Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:42:02 +0530
Subject: [PATCH 027/344] Update README.md
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 99c32ff..70f4551 100644
--- a/README.md
+++ b/README.md
@@ -24,5 +24,7 @@ Simply showing network speed. Left click to change modes:
```You Can enable maually using extensions app```
- to disable
```You Can disable maually using extensions app```
+ - to reinstall
+ ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to remove
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From b43950497e1f1a85389bbfa26051a9812acfdb53 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:46:23 +0530
Subject: [PATCH 028/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 05b606e..97e74a3 100644
--- a/extension.js
+++ b/extension.js
@@ -222,7 +222,7 @@ function speedToString(amount) {
}
function enable() {
- Main.panel._rightBox.insert_child_at_index(button, 100);
+ Main.panel._rightBox.insert_child_at_index(button, -100);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From 3093edd4fac7d81b2070b0188d7f3d9ca5c134f2 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 11:52:44 +0530
Subject: [PATCH 029/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 97e74a3..182c6d8 100644
--- a/extension.js
+++ b/extension.js
@@ -222,7 +222,7 @@ function speedToString(amount) {
}
function enable() {
- Main.panel._rightBox.insert_child_at_index(button, -100);
+ Main.panel._rightBox.insert_child_at_index(button, -1);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From 35d4e41469e702fcb59acc630448eb4ab7eff077 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 12:16:10 +0530
Subject: [PATCH 030/344] Update extension.js
---
extension.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/extension.js b/extension.js
index 182c6d8..ce77867 100644
--- a/extension.js
+++ b/extension.js
@@ -222,11 +222,14 @@ function speedToString(amount) {
}
function enable() {
- Main.panel._rightBox.insert_child_at_index(button, -1);
+ //Main.panel._rightBox.insert_child_at_index(button, -1);
+
+ Main.panel.addToStatusArea('netspeedsimplified', button, 0);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
function disable() {
Mainloop.source_remove(timeout);
- Main.panel._rightBox.remove_child(button);
+ //Main.panel._rightBox.remove_child(button);
+ button.destroy();
}
From 45767af171c94ac4d3e0f24e5171cb0a74445575 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 12:19:22 +0530
Subject: [PATCH 031/344] Update extension.js
---
extension.js | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/extension.js b/extension.js
index ce77867..6ce1839 100644
--- a/extension.js
+++ b/extension.js
@@ -222,14 +222,13 @@ function speedToString(amount) {
}
function enable() {
- //Main.panel._rightBox.insert_child_at_index(button, -1);
-
- Main.panel.addToStatusArea('netspeedsimplified', button, 0);
+ Main.panel._centerBox.insert_child_at_index(button, -1);
+ //Main.panel.addToStatusArea('netspeedsimplified', button, 0);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
function disable() {
Mainloop.source_remove(timeout);
- //Main.panel._rightBox.remove_child(button);
- button.destroy();
+ Main.panel._centerBox.remove_child(button);
+ //button.destroy();
}
From 8b19736c2ec5ca17caf8bc4f90d5605b428f0c84 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 12:55:05 +0530
Subject: [PATCH 032/344] Update extension.js
---
extension.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension.js b/extension.js
index 6ce1839..3defbb2 100644
--- a/extension.js
+++ b/extension.js
@@ -222,13 +222,13 @@ function speedToString(amount) {
}
function enable() {
- Main.panel._centerBox.insert_child_at_index(button, -1);
+ Main.panel._rightBox.insert_child_at_index(button, 0);
//Main.panel.addToStatusArea('netspeedsimplified', button, 0);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
function disable() {
Mainloop.source_remove(timeout);
- Main.panel._centerBox.remove_child(button);
+ Main.panel._rightBox.remove_child(button);
//button.destroy();
}
From 8c0bfba61c10e14ece320048efec0928790a18d2 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 14:24:00 +0530
Subject: [PATCH 033/344] ADDED SOME COMMENTS
---
stylesheet.css | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/stylesheet.css b/stylesheet.css
index eb1f45f..89b2718 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,12 +1,15 @@
+// For all elements
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
text-align: right;
margin-left: 1px;
}
+//For elements without w
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
width: 7em;
margin-right: 2px;}
-
+
+//For elements without w
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
width: 11em;
margin-right: 1px;}
From 44352147dfb3ffa08e9cbd1ba488110447b7adde Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:07:13 +0530
Subject: [PATCH 034/344] Fix comments
---
stylesheet.css | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 89b2718..13f86eb 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,15 +1,15 @@
-// For all elements
+/* For all elements */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
text-align: right;
margin-left: 1px;
}
-//For elements without w
+/* For elements without w */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
width: 7em;
margin-right: 2px;}
-//For elements without w
+/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
width: 11em;
margin-right: 1px;}
From f46f256d21057e88852dc64c0b2386e30b50eb6e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:12:00 +0530
Subject: [PATCH 035/344] Fix typo
---
README.md | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 70f4551..bffdabe 100644
--- a/README.md
+++ b/README.md
@@ -21,10 +21,12 @@ Simply showing network speed. Left click to change modes:
- to load extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
- ```You Can enable maually using extensions app```
+ ```Enable manually using extensions app```
- to disable
- ```You Can disable maually using extensions app```
+ ```Disable manually using extensions app```
- to reinstall
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to remove
- ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```Remove manually using extensions app```
+ or
+ ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From 8956098a08db3e3c6bfaa7483b5aac9a147384bd Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:12:15 +0530
Subject: [PATCH 036/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index bffdabe..76e5f8a 100644
--- a/README.md
+++ b/README.md
@@ -28,5 +28,5 @@ Simply showing network speed. Left click to change modes:
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to remove
```Remove manually using extensions app```
- or
+ or
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From ea57f22cc80bdc5c8d223468b7881eb74556066b Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:13:11 +0530
Subject: [PATCH 037/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 76e5f8a..74e1785 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@ Simply showing network speed. Left click to change modes:
```Enable manually using extensions app```
- to disable
```Disable manually using extensions app```
- - to reinstall
+ - to reinstall or update this extension
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to remove
```Remove manually using extensions app```
From bf7226610bd3456bd4d0751719682b0a578eda5c Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:37:44 +0530
Subject: [PATCH 038/344] Update extension.js
---
extension.js | 41 +----------------------------------------
1 file changed, 1 insertion(+), 40 deletions(-)
diff --git a/extension.js b/extension.js
index 3defbb2..08d0b0a 100644
--- a/extension.js
+++ b/extension.js
@@ -38,25 +38,12 @@ function init() {
track_hover: true
});
- /*
- icon = new St.Icon({
- gicon: Gio.icon_new_for_string(Me.path + "/icons/harddisk.svg")
- });
- iconDark = new St.Icon({
- gicon: Gio.icon_new_for_string(Me.path + "/icons/harddisk-dark.svg")
- });*/
-
ioSpeed = new St.Label({
text: '---',
y_align: Clutter.ActorAlign.CENTER,
style_class: 'simplenetspeed-label'
});
- // ioSpeedStaticIcon = new St.Label({
- // text: '💾',
- // style_class: 'simplenetspeed-static-icon'
- // });
-
button.set_child(chooseLabel());
button.connect('button-press-event', changeMode);
}
@@ -138,11 +125,6 @@ function parseStat() {
let speed = (count - lastCount) / refreshTime;
let speedUp = (countUp - lastCountUp) / refreshTime;
- // TEST
- // lastSpeed = 199899999;
- // speed= 1998999999;
- // speedUp= 99899999;
-
let dot = "";
if (speed > lastSpeed) {
dot = "⇅";
@@ -168,23 +150,6 @@ function parseStat() {
} catch (e) {
ioSpeed.set_text(e.message);
}
-
- /*
- let curDiskstats = GLib.file_get_contents('/proc/diskstats');
-
- if (diskstats == curDiskstats) {
- if (cur !== 0) {
- button.set_child(iconDark);
- cur = 0;
- }
- } else {
- if (cur != 1) {
- button.set_child(icon);
- cur = 1;
- }
- diskstats = curDiskstats;
- }*/
-
return true;
}
@@ -214,21 +179,17 @@ function speedToString(amount) {
if (amount >= 100) // 100MB 100KB 200KB
digits = 0;
- else if (amount >= 10) // 10MB 10.2
+ else // <100MB 1.2MB
digits = 1;
- else
- digits = 2;
return String(amount.toFixed(digits)) + speed_map[unit];
}
function enable() {
Main.panel._rightBox.insert_child_at_index(button, 0);
- //Main.panel.addToStatusArea('netspeedsimplified', button, 0);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
function disable() {
Mainloop.source_remove(timeout);
Main.panel._rightBox.remove_child(button);
- //button.destroy();
}
From 022cb48acbdd60b0ba9d26cb6cefaf94d60bfd58 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:45:09 +0530
Subject: [PATCH 039/344] Test 1
---
stylesheet.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 13f86eb..851e98f 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -6,12 +6,12 @@
/* For elements without w */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
- width: 7em;
+ /*width: 7em; */
margin-right: 2px;}
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 11em;
+ /* width: 11em; */
margin-right: 1px;}
From b585270ae71dec84f37e9a6a46813bb844cdde63 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:47:36 +0530
Subject: [PATCH 040/344] Update stylesheet.css
---
stylesheet.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 851e98f..68640dd 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -6,12 +6,12 @@
/* For elements without w */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
- /*width: 7em; */
+ width: 3em;
margin-right: 2px;}
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- /* width: 11em; */
+ width: 6em;
margin-right: 1px;}
From ece54db701805af10685f393ac2e72e1f9663499 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 16:48:44 +0530
Subject: [PATCH 041/344] Update stylesheet.css
---
stylesheet.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 68640dd..22cecf1 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,12 +1,12 @@
/* For all elements */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
- text-align: right;
+ text-align: center;
margin-left: 1px;
}
/* For elements without w */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
- width: 3em;
+ width: 5em;
margin-right: 2px;}
/* For elements without w */
From 5f76099379e91a2739de556e56fc14e144e29a06 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:03:56 +0530
Subject: [PATCH 042/344] Width Adjustment
---
stylesheet.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 22cecf1..bd8f95f 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -6,12 +6,12 @@
/* For elements without w */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
- width: 5em;
+ width: 4.5em;
margin-right: 2px;}
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 6em;
+ width: 69em;
margin-right: 1px;}
From 4a1392cb1e61f7ee1ddad8920061877ae2351539 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:04:57 +0530
Subject: [PATCH 043/344] Its 9 not 69
---
stylesheet.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stylesheet.css b/stylesheet.css
index bd8f95f..b597f3f 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -11,7 +11,7 @@
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 69em;
+ width: 9em;
margin-right: 1px;}
From 47b92c4a90decaf928484d8b608a0ec4f8ccf8d2 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:06:10 +0530
Subject: [PATCH 044/344] Update stylesheet.css
---
stylesheet.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index b597f3f..f0bae93 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -6,12 +6,12 @@
/* For elements without w */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
- width: 4.5em;
+ width: 4.6em;
margin-right: 2px;}
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 9em;
+ width: 9.3em;
margin-right: 1px;}
From edfa14b234c06abe3ed5588a22e3bf5fef4483c8 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:07:25 +0530
Subject: [PATCH 045/344] Update stylesheet.css
---
stylesheet.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stylesheet.css b/stylesheet.css
index f0bae93..24ed32c 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -11,7 +11,7 @@
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 9.3em;
+ width: 9.6em;
margin-right: 1px;}
From 7a60fcb16b880032689b571dc059d5920dc5c75c Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:08:30 +0530
Subject: [PATCH 046/344] Update stylesheet.css
---
stylesheet.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stylesheet.css b/stylesheet.css
index 24ed32c..2a90ef3 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -11,7 +11,7 @@
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 9.6em;
+ width: 9.9em;
margin-right: 1px;}
From a09f66f7f382107f9f65ebdd5ef7b710773a8ed1 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:13:42 +0530
Subject: [PATCH 047/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 08d0b0a..3ea3534 100644
--- a/extension.js
+++ b/extension.js
@@ -157,7 +157,7 @@ function speedToString(amount) {
let digits;
let speed_map;
if (mode == 0 || mode == 2) {
- speed_map = ["bps", "Kbps", "Mbps", "Gbps"];
+ speed_map = ["b/s", "kb/s", "mb/s", "gb/s"];
}
else if (mode == 1 || mode == 3) {
speed_map = ["B/s", "K/s", "M/s", "G/s"];
From 51bc6c787e32d389fdd1c9a8f19744d3b79a4a60 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:16:21 +0530
Subject: [PATCH 048/344] Update stylesheet.css
---
stylesheet.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stylesheet.css b/stylesheet.css
index 2a90ef3..c2c6de5 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -11,7 +11,7 @@
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 9.9em;
+ width: 10.1em;
margin-right: 1px;}
From 72658c8950eef040bd97382344d3dad944e3f246 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:24:59 +0530
Subject: [PATCH 049/344] Testing Some values
---
stylesheet.css | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index c2c6de5..3228f79 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -6,12 +6,12 @@
/* For elements without w */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
- width: 4.6em;
+ min-width: 4.4em;
margin-right: 2px;}
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- width: 10.1em;
+ min-width: 9.8em;
margin-right: 1px;}
From bec44639e5be79de0fff941aebdb8825350a9a7f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 11 Oct 2020 17:29:04 +0530
Subject: [PATCH 050/344] Everthing working
---
stylesheet.css | 16 +---------------
1 file changed, 1 insertion(+), 15 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 3228f79..0701297 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -11,7 +11,7 @@
/* For elements without w */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- min-width: 9.8em;
+ min-width: 9.6em;
margin-right: 1px;}
@@ -34,17 +34,3 @@
.simplenetspeed-label-4, .simplenetspeed-label-w-4 {
font-size: 1.1em;
}
-
-/*.simplenetspeed-static-icon {
- font-size: 14px;
- width: 15px;
- text-align: left;
-}
-
-.simplenetspeed-icon {
- font-size: 12px;
- width: 14px;
- text-align: center;
- color: lime;
-}*/
-
From 498bb35668be572dc9f90d2f37807b687d974b18 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 05:47:10 +0530
Subject: [PATCH 051/344] Update README.md
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 74e1785..933e310 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,9 @@ Gnome extension to show network speed
Forked from : https://github.com/biji/simplenetspeed
-Added : Refresh time is 1 second, supports GNOME SHELL 3.38
+Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps and more.
+
+Todo : hover to show total data used and double right click to reset total data counter instead of single right click
Simply showing network speed. Left click to change modes:
From 2a0fe679836c8dd97bc0e63548371fc3b1e95cd3 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 06:05:55 +0530
Subject: [PATCH 052/344] Add space b/w units
---
extension.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension.js b/extension.js
index 3ea3534..f618678 100644
--- a/extension.js
+++ b/extension.js
@@ -167,7 +167,7 @@ function speedToString(amount) {
}
if (amount === 0)
- return "0" + speed_map[0];
+ return "0 " + speed_map[0];
if (mode==0 || mode==2) amount = amount * 8;
@@ -181,7 +181,7 @@ function speedToString(amount) {
digits = 0;
else // <100MB 1.2MB
digits = 1;
- return String(amount.toFixed(digits)) + speed_map[unit];
+ return String(amount.toFixed(digits)) + " " + speed_map[unit];
}
function enable() {
From 31fca09c2eec70bb58d886640873dd0892c55c19 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 06:11:28 +0530
Subject: [PATCH 053/344] Test new sigma sign
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index f618678..06d66d0 100644
--- a/extension.js
+++ b/extension.js
@@ -141,7 +141,7 @@ function parseStat() {
resetNextCount = false;
resetCount = count;
}
- ioSpeed.set_text("∑ " + speedToString(count - resetCount));
+ ioSpeed.set_text("Σ " + speedToString(count - resetCount));
}
lastCount = count;
From 6fddd9d14dc1d0f0b537fc92e371ecf92a55e0d7 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 06:13:30 +0530
Subject: [PATCH 054/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 933e310..8b40de7 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ Gnome extension to show network speed
Forked from : https://github.com/biji/simplenetspeed
-Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps and more.
+Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps, New sigma sign that respects vertical alignment and more.
Todo : hover to show total data used and double right click to reset total data counter instead of single right click
From 453f4f56945ba2062ee7401850ace9c4991a10c3 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 06:18:03 +0530
Subject: [PATCH 055/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 8b40de7..34f8183 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@ Gnome extension to show network speed
Forked from : https://github.com/biji/simplenetspeed
-Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps, New sigma sign that respects vertical alignment and more.
+Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps, New sigma sign that respects vertical alignment, added space b/w speed and the units and more.
Todo : hover to show total data used and double right click to reset total data counter instead of single right click
From 43e504ae1c4775069e7b298e49aea6231ffe879b Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 06:21:01 +0530
Subject: [PATCH 056/344] Improve Code
---
extension.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension.js b/extension.js
index 06d66d0..6788e26 100644
--- a/extension.js
+++ b/extension.js
@@ -177,9 +177,9 @@ function speedToString(amount) {
++unit;
}
- if (amount >= 100) // 100MB 100KB 200KB
+ if (Number.isInteger(amount.toFixed(1))) // 100.0 => 100
digits = 0;
- else // <100MB 1.2MB
+ else // 100.9 => 100.9
digits = 1;
return String(amount.toFixed(digits)) + " " + speed_map[unit];
}
From 26aaf566b852325367d4b1e128a23ef459c1bbfc Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 06:27:59 +0530
Subject: [PATCH 057/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 6788e26..3987767 100644
--- a/extension.js
+++ b/extension.js
@@ -177,7 +177,7 @@ function speedToString(amount) {
++unit;
}
- if (Number.isInteger(amount.toFixed(1))) // 100.0 => 100
+ if (Number.isInteger(parseFloat(amount.toFixed(1)))) // 100.0 => 100
digits = 0;
else // 100.9 => 100.9
digits = 1;
From a36ed99add35b89641a1d08eb95d04706a470f7a Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 07:12:12 +0530
Subject: [PATCH 058/344] Update Format
---
stylesheet.css | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 0701297..6a3eb2e 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,20 +1,17 @@
/* For all elements */
.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
text-align: center;
- margin-left: 1px;
-}
-
-/* For elements without w */
-.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4 {
+ margin: 0px 1px;
min-width: 4.4em;
- margin-right: 2px;}
+}
-/* For elements without w */
+/* For elements with seperate upload and download speed */
.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- min-width: 9.6em;
- margin-right: 1px;}
-
+ min-width: 9.6em;
+ /* To override previous min-width */
+}
+/* Font change on middle click*/
.simplenetspeed-label, .simplenetspeed-label-w {
font-size: 1em;
}
From c7fc7ec045a417b137d314e46f04bebafe3aaced Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 07:43:08 +0530
Subject: [PATCH 059/344] New updated classes
---
extension.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/extension.js b/extension.js
index 3987767..24267e2 100644
--- a/extension.js
+++ b/extension.js
@@ -77,12 +77,12 @@ function changeMode(widget, event) {
function chooseLabel() {
if (mode == 0 || mode == 1 || mode == 4) {
- styleName = 'simplenetspeed-label';
+ styleName = 'sumall';
}
else { // 2 , 3
- styleName = 'simplenetspeed-label-w';
+ styleName = 'upanddown';
}
-
+ styleName = 'forall ' + styleName + ' size'
if (fontmode > 0) {
styleName = styleName + '-' + fontmode;
}
From 22ec55a4fc9e71b4e2d3e5db207b5223ce539a30 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 07:45:53 +0530
Subject: [PATCH 060/344] New styles class and more human readable code
Changed whole game with new classes and more human readable code and comments so that anyone could make their own changes to this extension.
---
stylesheet.css | 20 +++++++++++---------
1 file changed, 11 insertions(+), 9 deletions(-)
diff --git a/stylesheet.css b/stylesheet.css
index 6a3eb2e..16422b5 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,33 +1,35 @@
/* For all elements */
-.simplenetspeed-label, .simplenetspeed-label-1, .simplenetspeed-label-2, .simplenetspeed-label-3, .simplenetspeed-label-4, .simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4{
+.forall{
text-align: center;
- margin: 0px 1px;
+ margin: 0px 2px;
min-width: 4.4em;
}
/* For elements with seperate upload and download speed */
-.simplenetspeed-label-w, .simplenetspeed-label-w-1, .simplenetspeed-label-w-2, .simplenetspeed-label-w-3, .simplenetspeed-label-w-4 {
- min-width: 9.6em;
+.upanddown {
+ min-width: 9.6em;
/* To override previous min-width */
}
+.sumall{/* Will contain styling for sum of speeds */}
+
/* Font change on middle click*/
-.simplenetspeed-label, .simplenetspeed-label-w {
+.size {
font-size: 1em;
}
-.simplenetspeed-label-1, .simplenetspeed-label-w-1 {
+.size-1 {
font-size: .65em;
}
-.simplenetspeed-label-2, .simplenetspeed-label-w-2 {
+.size-2 {
font-size: .7em;
}
-.simplenetspeed-label-3, .simplenetspeed-label-w-3 {
+.size-3 {
font-size: .9em;
}
-.simplenetspeed-label-4, .simplenetspeed-label-w-4 {
+.size-4 {
font-size: 1.1em;
}
From 920d1ec057be6d73240546826cfa6a0eb8a525d9 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 07:53:55 +0530
Subject: [PATCH 061/344] Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 34f8183..cf2af46 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
# Net speed Simplified
Gnome extension to show network speed
-Forked from : https://github.com/biji/simplenetspeed
+Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
-Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps, New sigma sign that respects vertical alignment, added space b/w speed and the units and more.
+Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps, New sigma sign that respects vertical alignment, added space b/w speed and the units, Human readable stylesheet so that anyone with basic knowledge of css can modify it easily following [KISS](https://en.wikipedia.org/wiki/KISS_principle) principle and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle
Todo : hover to show total data used and double right click to reset total data counter instead of single right click
From a6f666920e3510aabb2a88d7225a547d80c41b79 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 08:05:13 +0530
Subject: [PATCH 062/344] New Readme Style
---
README.md | 19 ++++++++++++++-----
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index cf2af46..9847a2f 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,20 @@
# Net speed Simplified
-Gnome extension to show network speed
+*Gnome extension to show network speed*
-Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
+> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
-Added : Refresh time is 1 second, supports GNOME SHELL 3.38, centred and more cleaner ui, added kbp/s instead of Kbps, New sigma sign that respects vertical alignment, added space b/w speed and the units, Human readable stylesheet so that anyone with basic knowledge of css can modify it easily following [KISS](https://en.wikipedia.org/wiki/KISS_principle) principle and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle
+Added :
+- [x] Reduce Refresh time to 1 second
+- [x] Supports GNOME SHELL 3.38
+- [x] Centred and more cleaner ui
+- [x] Changed Kbps to kbp/s
+- [x] New sigma sign that respects vertical alignment(old: ∑ , new: Σ)
+- [x] Added space b/w speed and their units
+- [x] Human readable stylesheet following [KISS](https://en.wikipedia.org/wiki/KISS_principle) principle and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)
-Todo : hover to show total data used and double right click to reset total data counter instead of single right click
+Todo :
+- [ ] hover to show total data used
+- [ ] double right click to reset total data counter instead of single right click
Simply showing network speed. Left click to change modes:
@@ -17,7 +26,7 @@ Simply showing network speed. Left click to change modes:
* Middle click to change font size
-* If you are getting it from source:
+* Installation using terminal:
- to install
```git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to load extension
From c9d74d108b57e9a3603a1271d99f098c2a4c03ee Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 08:10:54 +0530
Subject: [PATCH 063/344] Update README.md
---
README.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 9847a2f..1c6d75e 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
-Added :
+#### Changelog for v18 :
- [x] Reduce Refresh time to 1 second
- [x] Supports GNOME SHELL 3.38
- [x] Centred and more cleaner ui
@@ -12,11 +12,11 @@ Added :
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet following [KISS](https://en.wikipedia.org/wiki/KISS_principle) principle and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)
-Todo :
+#### Todo :
- [ ] hover to show total data used
- [ ] double right click to reset total data counter instead of single right click
-Simply showing network speed. Left click to change modes:
+**Left click to change modes:**
1. Total net speed in bits per second
1. Total net speed in Bytes per second
@@ -24,7 +24,7 @@ Simply showing network speed. Left click to change modes:
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-* Middle click to change font size
+**Middle click to change font size **
* Installation using terminal:
- to install
From 98916952801783665e8dac03b77f573f877c081a Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 08:11:50 +0530
Subject: [PATCH 064/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 1c6d75e..c50a75e 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-**Middle click to change font size **
+**Middle click to change font size**
* Installation using terminal:
- to install
From d857e5d990b50843cf8429fb84b6349fe9f82f72 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 12:12:52 +0530
Subject: [PATCH 065/344] Added right click to toggle Total data usage
Right click to toggle data usage , if you have mode 4 on i.e. total sum mode then right click will reset the counter to 0;
---
extension.js | 63 +++++++++++++++++++++++++++++++++++++++-------------
1 file changed, 48 insertions(+), 15 deletions(-)
diff --git a/extension.js b/extension.js
index 24267e2..2ca9b23 100644
--- a/extension.js
+++ b/extension.js
@@ -21,6 +21,10 @@ let lastCount = 0, lastSpeed = 0, lastCountUp = 0;
let mode; // 0: kbps 1: K/s 2: U:kbps D:kbps 3: U:K/s D:K/s 4: Total KB
let fontmode;
let resetNextCount = false, resetCount = 0;
+let toggle_bool = false;
+let new_addon;
+let new_addobit;
+let reuseable_text;
function init() {
@@ -50,9 +54,15 @@ function init() {
function changeMode(widget, event) {
// log(event.get_button());
- if (event.get_button() == 3 && mode == 4) { // right click: reset downloaded sum
+ if (event.get_button() == 3) {
+ if (mode ==4 ){// right click: reset downloaded sum
resetNextCount = true;
- parseStat();
+ parseStat();}
+ else {//right click on other modes; brings total downloaded sum
+ toggle_bool = !toggle_bool;
+ ioSpeed.set_text(" Hello");
+ parseStat();
+ }
}
else if (event.get_button() == 2) { // change font
fontmode++;
@@ -129,21 +139,37 @@ function parseStat() {
if (speed > lastSpeed) {
dot = "⇅";
}
-
+ function commonSigma(fi, se) {
+ if (resetNextCount == true) {
+ resetNextCount = false;
+ resetCount = count;
+ }
+ return "Σ " + speedToString(count - resetCount, fi, se);
+ }
+ if (toggle_bool){
+ new_addon = " | "+commonSigma(true)
+ new_addobit = " | "+commonSigma(false, true)
+ }
+ else{
+ new_addon = "";
+ new_addobit = "";
+ }
if (mode >= 0 && mode <= 1) {
- ioSpeed.set_text(dot + speedToString(speed));
+ reuseable_text = dot + speedToString(speed);
}
else if (mode >= 2 && mode <= 3) {
- ioSpeed.set_text("↓" + speedToString(speed - speedUp) + " ↑" + speedToString(speedUp));
+ reuseable_text = "↓" + speedToString(speed - speedUp) + " ↑" + speedToString(speedUp);
}
else if (mode == 4) {
- if (resetNextCount == true) {
- resetNextCount = false;
- resetCount = count;
- }
- ioSpeed.set_text("Σ " + speedToString(count - resetCount));
+ reuseable_text = commonSigma()
}
-
+ if (mode == 0 || mode == 2) {
+ reuseable_text = reuseable_text + new_addobit;
+ }
+ else if (mode == 1 || mode == 3) {
+ reuseable_text = reuseable_text + new_addon;
+ }
+ ioSpeed.set_text(reuseable_text);
lastCount = count;
lastCountUp = countUp;
lastSpeed = speed;
@@ -153,17 +179,24 @@ function parseStat() {
return true;
}
-function speedToString(amount) {
+function speedToString(amount, rMode = false /* Default value of Right click mode for Bytes */, rMbit = false /* Same as previous but for bits */) {
let digits;
- let speed_map;
- if (mode == 0 || mode == 2) {
+ let speed_map, sp1;
+ sp1 = ["B", "KB", "MB", "GB"];
+ if (rMode) {//Right click on Bytes
+ speed_map = sp1;
+ }
+ else if (rMbit) {//For bits
+ speed_map = ["b", "kb", "mb", "gb"];
+ }
+ else if (mode == 0 || mode == 2) {
speed_map = ["b/s", "kb/s", "mb/s", "gb/s"];
}
else if (mode == 1 || mode == 3) {
speed_map = ["B/s", "K/s", "M/s", "G/s"];
}
else if (mode == 4) {
- speed_map = ["B", "KB", "MB", "GB"];
+ speed_map = sp1;
}
if (amount === 0)
From e158db4fdae5f69d35f1b1134abc5ee33a8a774f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 12:20:48 +0530
Subject: [PATCH 066/344] Update README.md
---
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index c50a75e..abe29a3 100644
--- a/README.md
+++ b/README.md
@@ -13,8 +13,7 @@
- [x] Human readable stylesheet following [KISS](https://en.wikipedia.org/wiki/KISS_principle) principle and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)
#### Todo :
-- [ ] hover to show total data used
-- [ ] double right click to reset total data counter instead of single right click
+- [x] Right Click to show total data used
**Left click to change modes:**
@@ -24,6 +23,8 @@
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
+**Right click to toggle total data usage, Right click on total data usage mode to reset counter**
+
**Middle click to change font size**
* Installation using terminal:
From 8e2af055aa2047e5c29122112cbbce7c681f8fcc Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 12:23:18 +0530
Subject: [PATCH 067/344] Update README.md
---
README.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index abe29a3..d6b4dc7 100644
--- a/README.md
+++ b/README.md
@@ -11,9 +11,12 @@
- [x] New sigma sign that respects vertical alignment(old: ∑ , new: Σ)
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet following [KISS](https://en.wikipedia.org/wiki/KISS_principle) principle and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)
+- [x] Right Click to show total data used
#### Todo :
-- [x] Right Click to show total data used
+- [ ] Add vertical alignment for Dash to panel users as a 6th mode
+
+if you face any issues you can open pull request and can type your issue with images or error codes
**Left click to change modes:**
From dc519092707ae936f634567be0f023eaa399a5c7 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 12:26:02 +0530
Subject: [PATCH 068/344] Update README.md
---
README.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index d6b4dc7..fd9e5d6 100644
--- a/README.md
+++ b/README.md
@@ -18,17 +18,18 @@
if you face any issues you can open pull request and can type your issue with images or error codes
-**Left click to change modes:**
+> **Left click to change modes**
+*Modes available:*
1. Total net speed in bits per second
1. Total net speed in Bytes per second
1. Up & down speed in bits per second
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-**Right click to toggle total data usage, Right click on total data usage mode to reset counter**
+> **Right click to toggle total data usage, Right click on total data usage mode to reset counter**
-**Middle click to change font size**
+> **Middle click to change font size**
* Installation using terminal:
- to install
From 8cd690172372f811140d74de6f58e5f71b1f79ca Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 12:26:39 +0530
Subject: [PATCH 069/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index fd9e5d6..9dfe927 100644
--- a/README.md
+++ b/README.md
@@ -27,7 +27,7 @@ if you face any issues you can open pull request and can type your issue with im
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-> **Right click to toggle total data usage, Right click on total data usage mode to reset counter**
+> **Right click to toggle total data usage visiblity, Right click on total data usage mode to reset counter**
> **Middle click to change font size**
From db4d3cd00a947273c55e282bfb8992bf8cc81a64 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 12:53:07 +0530
Subject: [PATCH 070/344] Update metadata.json
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index d03ad5e..fb19283 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Simply showing network speed. Left click to change modes:\n\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)\n\nMiddle click to change font size",
+ "description": "Left click to change modes, right click to toggle total net used visibility, middle click to change fonts. :\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)\n\nMiddle click to change font size",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 06a4caf2305c6c8d75e86c932336b2d73b9ee883 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 12:56:05 +0530
Subject: [PATCH 071/344] Update metadata.json
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index fb19283..26633b0 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Left click to change modes, right click to toggle total net used visibility, middle click to change fonts. :\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)\n\nMiddle click to change font size",
+ "description": "Left click to change modes, right click to toggle total net used visibility, middle click to change fonts. :\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From a0c67ba8f437bbeac0e25ace1444125652be796f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 13:16:10 +0530
Subject: [PATCH 072/344] Update metadata.json
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 26633b0..1c1c95f 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Left click to change modes, right click to toggle total net used visibility, middle click to change fonts. :\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)",
+ "description": "Fork of Simple Net speed: https://github.com/biji/simplenetspeed \nAdded Features and Code cleanups to this fork. \nLeft click to change modes, right click to toggle total net used visibility, middle click to change fonts.\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 8c649c51ecd7fb940e391a99f5f58a13963206d9 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 13:57:18 +0530
Subject: [PATCH 073/344] Update extension.js
---
extension.js | 41 +++++++++++++++++++++++++++++------------
1 file changed, 29 insertions(+), 12 deletions(-)
diff --git a/extension.js b/extension.js
index 2ca9b23..cea58ba 100644
--- a/extension.js
+++ b/extension.js
@@ -61,6 +61,7 @@ function changeMode(widget, event) {
else {//right click on other modes; brings total downloaded sum
toggle_bool = !toggle_bool;
ioSpeed.set_text(" Hello");
+ button.set_child(chooseLabel());
parseStat();
}
}
@@ -79,20 +80,37 @@ function changeMode(widget, event) {
mode = 0;
}
settings.set_int('mode', mode);
- button.set_child(chooseLabel());
+ if (mode ==4) {
+ button.set_child(chooseLabel(true));
+ }
+ else{
+ button.set_child(chooseLabel());
+ }
parseStat();
}
log('mode:' + mode + ' font:' + fontmode);
}
-function chooseLabel() {
+function chooseLabel(addArg = false) {
if (mode == 0 || mode == 1 || mode == 4) {
styleName = 'sumall';
}
else { // 2 , 3
styleName = 'upanddown';
}
- styleName = 'forall ' + styleName + ' size'
+ let extraw;
+ if (addArg){
+ extraw = ""
+ }
+ else{
+ if (toggle_bool){
+ extraw = ' iwidth'
+ }
+ else {
+ extraw = ""
+ }
+ }
+ styleName = 'forall ' + styleName + extraw + ' size'
if (fontmode > 0) {
styleName = styleName + '-' + fontmode;
}
@@ -137,7 +155,7 @@ function parseStat() {
let dot = "";
if (speed > lastSpeed) {
- dot = "⇅";
+ dot = "⇅ ";
}
function commonSigma(fi, se) {
if (resetNextCount == true) {
@@ -158,7 +176,7 @@ function parseStat() {
reuseable_text = dot + speedToString(speed);
}
else if (mode >= 2 && mode <= 3) {
- reuseable_text = "↓" + speedToString(speed - speedUp) + " ↑" + speedToString(speedUp);
+ reuseable_text = "↓ " + speedToString(speed - speedUp) + " ↑ " + speedToString(speedUp);
}
else if (mode == 4) {
reuseable_text = commonSigma()
@@ -179,14 +197,13 @@ function parseStat() {
return true;
}
-function speedToString(amount, rMode = false /* Default value of Right click mode for Bytes */, rMbit = false /* Same as previous but for bits */) {
+function speedToString(amount, rMode = false, rMbit = false) {
let digits;
- let speed_map, sp1;
- sp1 = ["B", "KB", "MB", "GB"];
- if (rMode) {//Right click on Bytes
- speed_map = sp1;
+ let speed_map;
+ if (rMode) {
+ speed_map = ["B", "KB", "MB", "GB"];
}
- else if (rMbit) {//For bits
+ else if (rMbit) {
speed_map = ["b", "kb", "mb", "gb"];
}
else if (mode == 0 || mode == 2) {
@@ -196,7 +213,7 @@ function speedToString(amount, rMode = false /* Default value of Right click mod
speed_map = ["B/s", "K/s", "M/s", "G/s"];
}
else if (mode == 4) {
- speed_map = sp1;
+ speed_map = ["B", "KB", "MB", "GB"];
}
if (amount === 0)
From 8595659533e711d5de2168daace638841929f1ca Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 13:58:32 +0530
Subject: [PATCH 074/344] Update stylesheet.css
---
stylesheet.css | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/stylesheet.css b/stylesheet.css
index 16422b5..67c55de 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,10 +1,15 @@
/* For all elements */
.forall{
- text-align: center;
+ text-align: center !important;
margin: 0px 2px;
min-width: 4.4em;
}
+.iwidth{
+/*Increase width if total data usage is visible with speed*/
+ min-width: 11.3em;
+}
+
/* For elements with seperate upload and download speed */
.upanddown {
min-width: 9.6em;
From 06608b33c4f29ddf8f491c6ec5529a531ae75794 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 14:04:38 +0530
Subject: [PATCH 075/344] Added Screenshots for refrence
---
README.md | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 9dfe927..fc82e18 100644
--- a/README.md
+++ b/README.md
@@ -21,14 +21,18 @@ if you face any issues you can open pull request and can type your issue with im
> **Left click to change modes**
*Modes available:*
-1. Total net speed in bits per second
+1. Total net speed in bits per second
1. Total net speed in Bytes per second
1. Up & down speed in bits per second
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
> **Right click to toggle total data usage visiblity, Right click on total data usage mode to reset counter**
+ 
+
+
+
> **Middle click to change font size**
* Installation using terminal:
From 950c0d3e85797790d2d89f804aac4efce2e798b1 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 14:05:49 +0530
Subject: [PATCH 076/344] Update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index fc82e18..9d3d0fb 100644
--- a/README.md
+++ b/README.md
@@ -6,6 +6,7 @@
#### Changelog for v18 :
- [x] Reduce Refresh time to 1 second
- [x] Supports GNOME SHELL 3.38
+- [x] Changes width accordingly / dynamic width
- [x] Centred and more cleaner ui
- [x] Changed Kbps to kbp/s
- [x] New sigma sign that respects vertical alignment(old: ∑ , new: Σ)
From a73ff7732f483782883a4020a713c0f2e6bd6d73 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 14:06:51 +0530
Subject: [PATCH 077/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 9d3d0fb..966e56f 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ if you face any issues you can open pull request and can type your issue with im
1. Total of downloaded in Bytes (Right click to reset counter)
> **Right click to toggle total data usage visiblity, Right click on total data usage mode to reset counter**
- 
+  =====

From 80e98348f5a992ffc22c9ea661213fe805544799 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 19:58:47 +0530
Subject: [PATCH 078/344] Update README.md
---
README.md | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 966e56f..34b8800 100644
--- a/README.md
+++ b/README.md
@@ -20,20 +20,17 @@
if you face any issues you can open pull request and can type your issue with images or error codes
> **Left click to change modes**
-
+
*Modes available:*
1. Total net speed in bits per second
1. Total net speed in Bytes per second
1. Up & down speed in bits per second
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-
+
> **Right click to toggle total data usage visiblity, Right click on total data usage mode to reset counter**
-  =====
-
-
-
-
+ ### From this  =====> To this 
+
> **Middle click to change font size**
* Installation using terminal:
From 6f50dac2d89b297030bf6ce75ed06b69a1d33c46 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 12 Oct 2020 20:02:58 +0530
Subject: [PATCH 079/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 34b8800..8749a3b 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@ if you face any issues you can open pull request and can type your issue with im
* Installation using terminal:
- to install
- ```git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```mkdir ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to load extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
From 92144aad5b0b5f9c22a8fa910da0fdf21278ce7a Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:10:15 +0530
Subject: [PATCH 080/344] ADD TWO DECIMAL DIGITS FOR TOTAL DATA
---
extension.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/extension.js b/extension.js
index cea58ba..ebcab92 100644
--- a/extension.js
+++ b/extension.js
@@ -229,6 +229,8 @@ function speedToString(amount, rMode = false, rMbit = false) {
if (Number.isInteger(parseFloat(amount.toFixed(1)))) // 100.0 => 100
digits = 0;
+ else if (mode==4 || rMode || rMbit)
+ digits = 2;
else // 100.9 => 100.9
digits = 1;
return String(amount.toFixed(digits)) + " " + speed_map[unit];
From fa8dddfedd318f9e4c7eb8ea0fc422447edbf463 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:19:14 +0530
Subject: [PATCH 081/344] Update some code
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index ebcab92..7c48a2b 100644
--- a/extension.js
+++ b/extension.js
@@ -229,7 +229,7 @@ function speedToString(amount, rMode = false, rMbit = false) {
if (Number.isInteger(parseFloat(amount.toFixed(1)))) // 100.0 => 100
digits = 0;
- else if (mode==4 || rMode || rMbit)
+ else if (mode==4 || rMode || rMbit && !Number.isInteger(parseFloat((amount*10).toFixed(1))))
digits = 2;
else // 100.9 => 100.9
digits = 1;
From b52f0dd4000c3f2558ce503558129373aebe1534 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:24:07 +0530
Subject: [PATCH 082/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 7c48a2b..060b78c 100644
--- a/extension.js
+++ b/extension.js
@@ -229,7 +229,7 @@ function speedToString(amount, rMode = false, rMbit = false) {
if (Number.isInteger(parseFloat(amount.toFixed(1)))) // 100.0 => 100
digits = 0;
- else if (mode==4 || rMode || rMbit && !Number.isInteger(parseFloat((amount*10).toFixed(1))))
+ else if ((mode==4 || rMode || rMbit) && !Number.isInteger(parseFloat((amount*10).toFixed(1))))
digits = 2;
else // 100.9 => 100.9
digits = 1;
From 64d0e1780b9531f70681b88a6159585040b37cdc Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:39:34 +0530
Subject: [PATCH 083/344] New arrows test
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 060b78c..9a82385 100644
--- a/extension.js
+++ b/extension.js
@@ -176,7 +176,7 @@ function parseStat() {
reuseable_text = dot + speedToString(speed);
}
else if (mode >= 2 && mode <= 3) {
- reuseable_text = "↓ " + speedToString(speed - speedUp) + " ↑ " + speedToString(speedUp);
+ reuseable_text = "⬇ " + speedToString(speed - speedUp) + " ⬆ " + speedToString(speedUp);
}
else if (mode == 4) {
reuseable_text = commonSigma()
From 3cef5e42941e53b5e90c26769e6ee18a03c76483 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:42:01 +0530
Subject: [PATCH 084/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 9a82385..2f8a92a 100644
--- a/extension.js
+++ b/extension.js
@@ -192,7 +192,7 @@ function parseStat() {
lastCountUp = countUp;
lastSpeed = speed;
} catch (e) {
- ioSpeed.set_text(e.message);
+ ioSpeed.set_text(e.message)
}
return true;
}
From 63c40e60498bdc5960333a61b4f6e4bcdaf03df8 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:44:43 +0530
Subject: [PATCH 085/344] New icons test 2
---
extension.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/extension.js b/extension.js
index 2f8a92a..8764e83 100644
--- a/extension.js
+++ b/extension.js
@@ -175,8 +175,8 @@ function parseStat() {
if (mode >= 0 && mode <= 1) {
reuseable_text = dot + speedToString(speed);
}
- else if (mode >= 2 && mode <= 3) {
- reuseable_text = "⬇ " + speedToString(speed - speedUp) + " ⬆ " + speedToString(speedUp);
+ else if (mode >= 2 && mode <= 3) {
+ reuseable_text = " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp);
}
else if (mode == 4) {
reuseable_text = commonSigma()
@@ -192,7 +192,7 @@ function parseStat() {
lastCountUp = countUp;
lastSpeed = speed;
} catch (e) {
- ioSpeed.set_text(e.message)
+ ioSpeed.set_text(e.message);
}
return true;
}
From 71eb7fdc508bbee7d2f880d74a0e19bb607616f2 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:45:59 +0530
Subject: [PATCH 086/344] Added some space b/w final icons
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 8764e83..b776a92 100644
--- a/extension.js
+++ b/extension.js
@@ -176,7 +176,7 @@ function parseStat() {
reuseable_text = dot + speedToString(speed);
}
else if (mode >= 2 && mode <= 3) {
- reuseable_text = " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp);
+ reuseable_text = " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp);
}
else if (mode == 4) {
reuseable_text = commonSigma()
From f60b9bf64a876aa8bfa172b0d240ec699a280834 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 07:51:42 +0530
Subject: [PATCH 087/344] Update README.md
---
README.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 8749a3b..5b4e651 100644
--- a/README.md
+++ b/README.md
@@ -9,10 +9,11 @@
- [x] Changes width accordingly / dynamic width
- [x] Centred and more cleaner ui
- [x] Changed Kbps to kbp/s
-- [x] New sigma sign that respects vertical alignment(old: ∑ , new: Σ)
+- [x] New sigma icon that respects vertical alignment(old: ∑ , new: Σ)
+- [x] New Speed up and down icons for mode 2 & 3. (old: ↓ and ↑ , new: 🡳 and 🡱)
- [x] Added space b/w speed and their units
-- [x] Human readable stylesheet following [KISS](https://en.wikipedia.org/wiki/KISS_principle) principle and [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself)
-- [x] Right Click to show total data used
+- [x] Human readable stylesheet
+- [x] Right Click to toggle visibility of total data used //If you will Right click on 4th mode i.e. total speed mode then total speed counter will reset to 0 MB.
#### Todo :
- [ ] Add vertical alignment for Dash to panel users as a 6th mode
From 5d51f8744de44997cadd3fe862a7f2d742c1e812 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 14:09:08 +0530
Subject: [PATCH 088/344] Update stylesheet.css
---
stylesheet.css | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stylesheet.css b/stylesheet.css
index 67c55de..c67a59d 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,7 +1,7 @@
/* For all elements */
.forall{
text-align: center !important;
- margin: 0px 2px;
+ margin: auto 2px;
min-width: 4.4em;
}
From dbbfcd09b119ae35a63ef420832c720888b408d1 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 14:11:27 +0530
Subject: [PATCH 089/344] Update README.md
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 5b4e651..cf9bde2 100644
--- a/README.md
+++ b/README.md
@@ -37,12 +37,12 @@ if you face any issues you can open pull request and can type your issue with im
* Installation using terminal:
- to install
```mkdir ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- - to load extension
+ - to load/reload extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
- ```Enable manually using extensions app```
+ ```Enable manually using extensions app/ Using Gnome tweaks extension tab```
- to disable
- ```Disable manually using extensions app```
+ ```Disable manually using extensions app/ Using Gnome tweaks extension tab```
- to reinstall or update this extension
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to remove
From e15e14b18d76b19a484d8fb081185883d3ccac8c Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 14:13:44 +0530
Subject: [PATCH 090/344] Trying optimal refreshRate
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index b776a92..6ac885d 100644
--- a/extension.js
+++ b/extension.js
@@ -11,7 +11,7 @@ const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
-const refreshTime = 1.0;
+const refreshTime = 1.6;
let settings;
let button, timeout;
From 615707754250a1001e9acfcde81dc65f409aaa34 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 14:23:13 +0530
Subject: [PATCH 091/344] Added new todo
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index cf9bde2..dd8df8d 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,7 @@
#### Todo :
- [ ] Add vertical alignment for Dash to panel users as a 6th mode
+- [ ] Middle click to show popup menu with font sizes, Change colours based on data usage, change refreshRate by your own [Impossible right now]
if you face any issues you can open pull request and can type your issue with images or error codes
From 3a232aefcab181fed6c1ed70310b316efe76ce65 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 14:24:39 +0530
Subject: [PATCH 092/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index dd8df8d..f5973a5 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
-#### Changelog for v18 :
+#### Changelog :
- [x] Reduce Refresh time to 1 second
- [x] Supports GNOME SHELL 3.38
- [x] Changes width accordingly / dynamic width
From a3a0349db7e5e644be19d368b25f31a658d6ccde Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 14:26:14 +0530
Subject: [PATCH 093/344] Updated version with features
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 1c1c95f..371e571 100644
--- a/metadata.json
+++ b/metadata.json
@@ -27,5 +27,5 @@
],
"url": "https://github.com/prateekmedia/netspeedsimplified",
"uuid": "netspeedsimplified@prateekmedia.extension",
- "version": 18
+ "version": 20
}
From 6e0789957ada83c041ccb4e95dbaca11f1992343 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 14:34:54 +0530
Subject: [PATCH 094/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index f5973a5..7a6ccab 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
#### Changelog :
-- [x] Reduce Refresh time to 1 second
+- [x] Reduce Refresh time
- [x] Supports GNOME SHELL 3.38
- [x] Changes width accordingly / dynamic width
- [x] Centred and more cleaner ui
From 52a60c9f6a4592f06a3ec42c82a7aea796a9a60e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 15:42:18 +0530
Subject: [PATCH 095/344] update description
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 371e571..6b8287d 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Fork of Simple Net speed: https://github.com/biji/simplenetspeed \nAdded Features and Code cleanups to this fork. \nLeft click to change modes, right click to toggle total net used visibility, middle click to change fonts.\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter)",
+ "description": "Fork of Simple Net speed: https://github.com/biji/simplenetspeed \nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, and more coming\n\nLeft Click To change modes.\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\nRight Click To toggle visibility of Total Up and Down or Reset counter if you are in 5th mode.\n\nMiddle Click to change font size.)",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 60dbfea14e82fdab37951c65abe5002ea82f6339 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 15:48:58 +0530
Subject: [PATCH 096/344] Update spacing
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 6b8287d..6dd7d90 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Fork of Simple Net speed: https://github.com/biji/simplenetspeed \nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, and more coming\n\nLeft Click To change modes.\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\nRight Click To toggle visibility of Total Up and Down or Reset counter if you are in 5th mode.\n\nMiddle Click to change font size.)",
+ "description": "Fork of Simple Net speed: https://github.com/biji/simplenetspeed \n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter if you are in 5th mode.\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 5b7de067dd428aac28d37abc1723c3a1797d70d2 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 13 Oct 2020 18:54:09 +0530
Subject: [PATCH 097/344] Made code cleaner with comments
---
extension.js | 48 +++++++++++++++++++++++++-----------------------
1 file changed, 25 insertions(+), 23 deletions(-)
diff --git a/extension.js b/extension.js
index 6ac885d..34a0682 100644
--- a/extension.js
+++ b/extension.js
@@ -22,8 +22,6 @@ let mode; // 0: kbps 1: K/s 2: U:kbps D:kbps 3: U:K/s D:K/s 4: Total KB
let fontmode;
let resetNextCount = false, resetCount = 0;
let toggle_bool = false;
-let new_addon;
-let new_addobit;
let reuseable_text;
function init() {
@@ -157,21 +155,25 @@ function parseStat() {
if (speed > lastSpeed) {
dot = "⇅ ";
}
- function commonSigma(fi, se) {
- if (resetNextCount == true) {
- resetNextCount = false;
- resetCount = count;
- }
- return "Σ " + speedToString(count - resetCount, fi, se);
- }
- if (toggle_bool){
- new_addon = " | "+commonSigma(true)
- new_addobit = " | "+commonSigma(false, true)
- }
- else{
- new_addon = "";
- new_addobit = "";
- }
+ if (resetNextCount == true) {
+ resetNextCount = false;
+ resetCount = count;
+ }
+ function commonSigma(fi=0,
+ se=false /*This default value is for 4th mode*/,
+ thr = true /*If true will return a result else will return empty string*/
+ ){
+ if(thr){
+ if(se){ //This is for Right Click event on mode!=4
+ return " | Σ " + speedToString(count - resetCount, fi);}
+ else{ //This is for mode 4 sigma
+ return "Σ " + speedToString(count - resetCount, fi);
+ }
+ }
+ else{
+ return "";}
+
+ }
if (mode >= 0 && mode <= 1) {
reuseable_text = dot + speedToString(speed);
}
@@ -182,10 +184,10 @@ function parseStat() {
reuseable_text = commonSigma()
}
if (mode == 0 || mode == 2) {
- reuseable_text = reuseable_text + new_addobit;
+ reuseable_text = reuseable_text + commonSigma(2, true, toggle_bool);;
}
else if (mode == 1 || mode == 3) {
- reuseable_text = reuseable_text + new_addon;
+ reuseable_text = reuseable_text + commonSigma(1, true, toggle_bool);;
}
ioSpeed.set_text(reuseable_text);
lastCount = count;
@@ -197,13 +199,13 @@ function parseStat() {
return true;
}
-function speedToString(amount, rMode = false, rMbit = false) {
+function speedToString(amount, rMode = 0) {
let digits;
let speed_map;
- if (rMode) {
+ if (rMode==1) {
speed_map = ["B", "KB", "MB", "GB"];
}
- else if (rMbit) {
+ else if (rMode == 2) {
speed_map = ["b", "kb", "mb", "gb"];
}
else if (mode == 0 || mode == 2) {
@@ -229,7 +231,7 @@ function speedToString(amount, rMode = false, rMbit = false) {
if (Number.isInteger(parseFloat(amount.toFixed(1)))) // 100.0 => 100
digits = 0;
- else if ((mode==4 || rMode || rMbit) && !Number.isInteger(parseFloat((amount*10).toFixed(1))))
+ else if ((mode==4 || rMode !=0) && !Number.isInteger(parseFloat((amount*10).toFixed(1))))
digits = 2;
else // 100.9 => 100.9
digits = 1;
From b9c5d2c2953472cc82c7a5c287b8873462a5044f Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 14 Oct 2020 19:32:21 +0530
Subject: [PATCH 098/344] Update README.md
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 7a6ccab..90a313b 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ if you face any issues you can open pull request and can type your issue with im
* Installation using terminal:
- to install
- ```mkdir ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```mkdir ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to load/reload extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
@@ -45,7 +45,7 @@ if you face any issues you can open pull request and can type your issue with im
- to disable
```Disable manually using extensions app/ Using Gnome tweaks extension tab```
- to reinstall or update this extension
- ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to remove
```Remove manually using extensions app```
or
From d42c9e8c7946b9706386734b882d7d1b29da1b7e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 14 Oct 2020 19:34:24 +0530
Subject: [PATCH 099/344] Use ternary where needed
---
extension.js | 132 +++++++++++++++------------------------------------
1 file changed, 37 insertions(+), 95 deletions(-)
diff --git a/extension.js b/extension.js
index 34a0682..80fda76 100644
--- a/extension.js
+++ b/extension.js
@@ -1,24 +1,21 @@
const Clutter = imports.gi.Clutter;
const St = imports.gi.St;
const Main = imports.ui.main;
-// const Tweener = imports.ui.tweener;
const Gio = imports.gi.Gio;
const Mainloop = imports.mainloop;
-// const GLib = imports.gi.GLib;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
-const refreshTime = 1.6;
+const refreshTime = 1.5;
let settings;
let button, timeout;
-// let icon, iconDark;
let ioSpeed;
let lastCount = 0, lastSpeed = 0, lastCountUp = 0;
-let mode; // 0: kbps 1: K/s 2: U:kbps D:kbps 3: U:K/s D:K/s 4: Total KB
+let mode; // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
let fontmode;
let resetNextCount = false, resetCount = 0;
let toggle_bool = false;
@@ -28,7 +25,7 @@ function init() {
settings = Convenience.getSettings(PREFS_SCHEMA);
- mode = settings.get_int('mode'); // default mode using bit (bps, kbps)
+ mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
fontmode = settings.get_int('fontmode');
button = new St.Bin({
@@ -43,7 +40,7 @@ function init() {
ioSpeed = new St.Label({
text: '---',
y_align: Clutter.ActorAlign.CENTER,
- style_class: 'simplenetspeed-label'
+ style_class: 'forall'
});
button.set_child(chooseLabel());
@@ -65,53 +62,29 @@ function changeMode(widget, event) {
}
else if (event.get_button() == 2) { // change font
fontmode++;
- if (fontmode > 4) {
- fontmode=0;
- }
+ if (fontmode > 4) fontmode=0;
+
settings.set_int('fontmode', fontmode);
button.set_child(chooseLabel());
parseStat();
}
else if (event.get_button() == 1) {
mode++;
- if (mode > 4) {
- mode = 0;
- }
+ if (mode > 4) mode = 0;
settings.set_int('mode', mode);
- if (mode ==4) {
- button.set_child(chooseLabel(true));
- }
- else{
- button.set_child(chooseLabel());
- }
+ button.set_child(chooseLabel(mode==4 ? true : false));
parseStat();
}
log('mode:' + mode + ' font:' + fontmode);
}
function chooseLabel(addArg = false) {
- if (mode == 0 || mode == 1 || mode == 4) {
- styleName = 'sumall';
- }
- else { // 2 , 3
- styleName = 'upanddown';
- }
- let extraw;
- if (addArg){
- extraw = ""
- }
- else{
- if (toggle_bool){
- extraw = ' iwidth'
- }
- else {
- extraw = ""
- }
- }
+ styleName = (mode == 0 || mode == 1 || mode == 4) ? 'sumall' : 'upanddown'
+
+ let extraw = '';
+ (!addArg) ? (extraw = toggle_bool ? ' iwidth' : '') : null // Doesnt increase width width on right click if mode==4
styleName = 'forall ' + styleName + extraw + ' size'
- if (fontmode > 0) {
- styleName = styleName + '-' + fontmode;
- }
+ styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
ioSpeed.set_style_class_name(styleName);
return ioSpeed;
@@ -150,11 +123,8 @@ function parseStat() {
let speed = (count - lastCount) / refreshTime;
let speedUp = (countUp - lastCountUp) / refreshTime;
-
- let dot = "";
- if (speed > lastSpeed) {
- dot = "⇅ ";
- }
+ let dot;
+ dot = (speed > lastSpeed) ? "⇅ " : ""
if (resetNextCount == true) {
resetNextCount = false;
resetCount = count;
@@ -163,32 +133,17 @@ function parseStat() {
se=false /*This default value is for 4th mode*/,
thr = true /*If true will return a result else will return empty string*/
){
- if(thr){
- if(se){ //This is for Right Click event on mode!=4
- return " | Σ " + speedToString(count - resetCount, fi);}
- else{ //This is for mode 4 sigma
- return "Σ " + speedToString(count - resetCount, fi);
- }
- }
- else{
- return "";}
-
- }
- if (mode >= 0 && mode <= 1) {
- reuseable_text = dot + speedToString(speed);
- }
- else if (mode >= 2 && mode <= 3) {
- reuseable_text = " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp);
- }
- else if (mode == 4) {
- reuseable_text = commonSigma()
- }
- if (mode == 0 || mode == 2) {
- reuseable_text = reuseable_text + commonSigma(2, true, toggle_bool);;
- }
- else if (mode == 1 || mode == 3) {
- reuseable_text = reuseable_text + commonSigma(1, true, toggle_bool);;
- }
+ let otu = (se) ? " | " : ""
+ return (thr) ? otu + "Σ " + speedToString(count - resetCount, fi) : ""
+ }
+
+ reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) :
+ (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp) :
+ (mode == 4) ? commonSigma(): "Mode Unavailable"
+
+ reuseable_text += (mode == 0 || mode == 2) ? commonSigma(2, true, toggle_bool) :
+ (mode == 1 || mode == 3) ? commonSigma(1, true, toggle_bool) : ""
+
ioSpeed.set_text(reuseable_text);
lastCount = count;
lastCountUp = countUp;
@@ -202,24 +157,12 @@ function parseStat() {
function speedToString(amount, rMode = 0) {
let digits;
let speed_map;
- if (rMode==1) {
- speed_map = ["B", "KB", "MB", "GB"];
- }
- else if (rMode == 2) {
- speed_map = ["b", "kb", "mb", "gb"];
- }
- else if (mode == 0 || mode == 2) {
- speed_map = ["b/s", "kb/s", "mb/s", "gb/s"];
- }
- else if (mode == 1 || mode == 3) {
- speed_map = ["B/s", "K/s", "M/s", "G/s"];
- }
- else if (mode == 4) {
- speed_map = ["B", "KB", "MB", "GB"];
- }
-
- if (amount === 0)
- return "0 " + speed_map[0];
+ speed_map = ["B", "KB", "MB", "GB"].map(
+ (rMode==1) ? v => v : //KB
+ (rMode == 2) ? v => v.toLowerCase() : //kb
+ (mode == 0 || mode == 2) ? v => v.toLowerCase() + "/s" : //kb/s
+ (mode == 1 || mode == 3) ? v => v + "/s" : v=>v) //KB/s
+ if (amount === 0) return "0 " + speed_map[0];
if (mode==0 || mode==2) amount = amount * 8;
@@ -228,13 +171,12 @@ function speedToString(amount, rMode = 0) {
amount /= 1000;
++unit;
}
+ function ChkifInt(amnt, tofid = 1){
+ return Number.isInteger(parseFloat(amnt.toFixed(tofid)));
+ }
+ digits = ChkifInt(amount) ? 0 : //For Integer like 21.0
+ ((mode==4 || rMode !=0) && !ChkifInt(amount*10)) ? 2 /* For floats like 21.1 */ : 1 //For floats like 21.22
- if (Number.isInteger(parseFloat(amount.toFixed(1)))) // 100.0 => 100
- digits = 0;
- else if ((mode==4 || rMode !=0) && !Number.isInteger(parseFloat((amount*10).toFixed(1))))
- digits = 2;
- else // 100.9 => 100.9
- digits = 1;
return String(amount.toFixed(digits)) + " " + speed_map[unit];
}
From daa2cab4c1cc1bff9ff997c911c01b48e1d863ed Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Thu, 15 Oct 2020 11:08:34 +0530
Subject: [PATCH 100/344] Update README.md
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 90a313b..3515483 100644
--- a/README.md
+++ b/README.md
@@ -12,12 +12,12 @@
- [x] New sigma icon that respects vertical alignment(old: ∑ , new: Σ)
- [x] New Speed up and down icons for mode 2 & 3. (old: ↓ and ↑ , new: 🡳 and 🡱)
- [x] Added space b/w speed and their units
-- [x] Human readable stylesheet
+- [x] Human readable stylesheet // used minimum width and removed repetitive codes
+- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 4th mode i.e. total speed mode then total speed counter will reset to 0 MB.
#### Todo :
-- [ ] Add vertical alignment for Dash to panel users as a 6th mode
-- [ ] Middle click to show popup menu with font sizes, Change colours based on data usage, change refreshRate by your own [Impossible right now]
+- [ ] If network is not connected, then after 15 sec display text "---" instead of 0 b/s
if you face any issues you can open pull request and can type your issue with images or error codes
From c7eeda802f835844a2fa470b4d85bba8cecc24ce Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 09:53:45 +0530
Subject: [PATCH 101/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3515483..6296094 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,7 @@ if you face any issues you can open pull request and can type your issue with im
* Installation using terminal:
- to install
- ```mkdir ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- to load/reload extension
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- to enable
From aca84d42ab1e23721303480faddcc9d04814b45c Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 15:05:09 +0530
Subject: [PATCH 102/344] Update format
---
README.md | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/README.md b/README.md
index 6296094..69aaa04 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,8 @@
> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
+***Tested on GNOME 3.36 and 3.38***
+
#### Changelog :
- [x] Reduce Refresh time
- [x] Supports GNOME SHELL 3.38
@@ -15,11 +17,12 @@
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 4th mode i.e. total speed mode then total speed counter will reset to 0 MB.
+- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
#### Todo :
-- [ ] If network is not connected, then after 15 sec display text "---" instead of 0 b/s
+ *Nothing Todo*
-if you face any issues you can open pull request and can type your issue with images or error codes
+if you face any **issues** you can **open pull request** and can type your issue with images or error codes
> **Left click to change modes**
@@ -35,18 +38,20 @@ if you face any issues you can open pull request and can type your issue with im
> **Middle click to change font size**
-* Installation using terminal:
- - to install
+* Installing the extension using terminal:
+ ...**Requirements : git**
+
+ - ***to install***
```git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- - to load/reload extension
+
+ - ***to load/reload extension***
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
- - to enable
- ```Enable manually using extensions app/ Using Gnome tweaks extension tab```
- - to disable
- ```Disable manually using extensions app/ Using Gnome tweaks extension tab```
- - to reinstall or update this extension
+
+ - ***to enable/disable/remove***
+ You can do that manually using extensions app or [website](https://extensions.gnome.org/local) or Using Gnome tweaks tool's extension tab
+
+ - ***to reinstall or update***
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- - to remove
- ```Remove manually using extensions app```
- or
+
+ - ***to remove( using Terminal )***
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From 69e777fa6084a06958b37438b5991e02cf04bcdd Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 15:06:48 +0530
Subject: [PATCH 103/344] Add Feature
---
extension.js | 63 ++++++++++++++++++++++++++++++----------------------
1 file changed, 37 insertions(+), 26 deletions(-)
diff --git a/extension.js b/extension.js
index 80fda76..32d1878 100644
--- a/extension.js
+++ b/extension.js
@@ -9,7 +9,7 @@ const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
-const refreshTime = 1.5;
+const refreshTime = 1.5;
let settings;
let button, timeout;
@@ -20,6 +20,7 @@ let fontmode;
let resetNextCount = false, resetCount = 0;
let toggle_bool = false;
let reuseable_text;
+let h =0;
function init() {
@@ -32,6 +33,8 @@ function init() {
style_class: 'panel-button',
reactive: true,
can_focus: true,
+ x_fill: true,
+ y_fill: false,
x_expand: true,
y_expand: false,
track_hover: true
@@ -42,9 +45,6 @@ function init() {
y_align: Clutter.ActorAlign.CENTER,
style_class: 'forall'
});
-
- button.set_child(chooseLabel());
- button.connect('button-press-event', changeMode);
}
function changeMode(widget, event) {
@@ -55,7 +55,7 @@ function changeMode(widget, event) {
parseStat();}
else {//right click on other modes; brings total downloaded sum
toggle_bool = !toggle_bool;
- ioSpeed.set_text(" Hello");
+ ioSpeed.set_text("Loading Info...");
button.set_child(chooseLabel());
parseStat();
}
@@ -78,11 +78,11 @@ function changeMode(widget, event) {
log('mode:' + mode + ' font:' + fontmode);
}
-function chooseLabel(addArg = false) {
+function chooseLabel(addArg = false /*for mode 4*/) {
styleName = (mode == 0 || mode == 1 || mode == 4) ? 'sumall' : 'upanddown'
let extraw = '';
- (!addArg) ? (extraw = toggle_bool ? ' iwidth' : '') : null // Doesnt increase width width on right click if mode==4
+ (!addArg) ? (extraw = toggle_bool ? ' iwidth' : '') : null // Doesnt increase width on right click if mode==4
styleName = 'forall ' + styleName + extraw + ' size'
styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
@@ -124,27 +124,37 @@ function parseStat() {
let speed = (count - lastCount) / refreshTime;
let speedUp = (countUp - lastCountUp) / refreshTime;
let dot;
+ let dash;
dot = (speed > lastSpeed) ? "⇅ " : ""
if (resetNextCount == true) {
resetNextCount = false;
resetCount = count;
}
- function commonSigma(fi=0,
- se=false /*This default value is for 4th mode*/,
- thr = true /*If true will return a result else will return empty string*/
- ){
- let otu = (se) ? " | " : ""
- return (thr) ? otu + "Σ " + speedToString(count - resetCount, fi) : ""
+ function commonSigma(thr = true /*If true will return a result else will return empty string*/){
+ let sigma = "Σ ";
+ let extRaw = " | " + sigma;
+ let speedy = speedToString(count - resetCount, 1);
+ if (thr && mode !=4){
+ if (mode == 0 || mode == 2) return extRaw + speedy.toLowerCase();
+ else if (mode == 1 || mode == 3) return extRaw + speedy;
}
-
- reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) :
- (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp) :
- (mode == 4) ? commonSigma(): "Mode Unavailable"
-
- reuseable_text += (mode == 0 || mode == 2) ? commonSigma(2, true, toggle_bool) :
- (mode == 1 || mode == 3) ? commonSigma(1, true, toggle_bool) : ""
-
- ioSpeed.set_text(reuseable_text);
+ else if (mode == 4) return sigma + speedy;
+ else return "";
+ }
+
+ (speed || speedUp) ? h = 0 : h++
+
+ if(h<=8){
+ reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) + commonSigma(toggle_bool) :
+ (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp) +commonSigma(toggle_bool) :
+ (mode == 4) ? commonSigma(): "Mode Unavailable"
+ }
+ else{
+ ioSpeed.set_style_class_name("forall");
+ if (mode !=4) reuseable_text = "--".repeat(mode+1) + commonSigma(toggle_bool);
+ else reuseable_text = commonSigma(toggle_bool);
+ }
+ ioSpeed.set_text(reuseable_text);
lastCount = count;
lastCountUp = countUp;
lastSpeed = speed;
@@ -157,13 +167,12 @@ function parseStat() {
function speedToString(amount, rMode = 0) {
let digits;
let speed_map;
- speed_map = ["B", "KB", "MB", "GB"].map(
- (rMode==1) ? v => v : //KB
- (rMode == 2) ? v => v.toLowerCase() : //kb
+ speed_map = ["B", "KB", "MB", "GB"].map(
+ (rMode==1) ? v => v : //KB
(mode == 0 || mode == 2) ? v => v.toLowerCase() + "/s" : //kb/s
(mode == 1 || mode == 3) ? v => v + "/s" : v=>v) //KB/s
+
if (amount === 0) return "0 " + speed_map[0];
-
if (mode==0 || mode==2) amount = amount * 8;
let unit = 0;
@@ -182,6 +191,8 @@ function speedToString(amount, rMode = 0) {
function enable() {
Main.panel._rightBox.insert_child_at_index(button, 0);
+ button.set_child(chooseLabel());
+ button.connect('button-press-event', changeMode);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From 0cad5b968e5ddea97466764561e0f92b8ca10a57 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 16:55:07 +0530
Subject: [PATCH 104/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 69aaa04..da62be6 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
- [x] Centred and more cleaner ui
- [x] Changed Kbps to kbp/s
- [x] New sigma icon that respects vertical alignment(old: ∑ , new: Σ)
-- [x] New Speed up and down icons for mode 2 & 3. (old: ↓ and ↑ , new: 🡳 and 🡱)
+- [x] New Speed up and down icons for mode 3 & 4. (old: ↓ and ↑ , new: 🡳 and 🡱)
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
From 12019cfa1e2dbf6382a7564a3e76d565d9583212 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 17:01:41 +0530
Subject: [PATCH 105/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index da62be6..4f76e92 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
#### Todo :
- *Nothing Todo*
+- [ ] Vertical Aligment for mode 3,4 for Dash to panel or Big Screen users.
if you face any **issues** you can **open pull request** and can type your issue with images or error codes
From 5817d1a8e1d82e93509801da63a80692153650d9 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 17:04:26 +0530
Subject: [PATCH 106/344] Update README.md
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 4f76e92..71f1556 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,8 @@
# Net speed Simplified
*Gnome extension to show network speed*
+> Website Link : [prateekmedia.io/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified/)
+
> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
***Tested on GNOME 3.36 and 3.38***
From 0d0ba7823b5f6ab3b3d87d8e3a613d795be8b0ba Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 17:17:29 +0530
Subject: [PATCH 107/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 71f1556..a71e3e1 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
#### Todo :
- [ ] Vertical Aligment for mode 3,4 for Dash to panel or Big Screen users.
-if you face any **issues** you can **open pull request** and can type your issue with images or error codes
+if you face any **issues** you can **[open pull request](https://github.com/prateekmedia/netspeedsimplified/pulls)** and can type your issue with images or error codes
> **Left click to change modes**
From 119803ac9b01fd7bbbb89ce2c1b5a534fac52b82 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 18 Oct 2020 21:01:33 +0530
Subject: [PATCH 108/344] Update extension.js
---
extension.js | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/extension.js b/extension.js
index 32d1878..4297f27 100644
--- a/extension.js
+++ b/extension.js
@@ -45,6 +45,7 @@ function init() {
y_align: Clutter.ActorAlign.CENTER,
style_class: 'forall'
});
+ button.set_child(chooseLabel());
}
function changeMode(widget, event) {
@@ -124,7 +125,6 @@ function parseStat() {
let speed = (count - lastCount) / refreshTime;
let speedUp = (countUp - lastCountUp) / refreshTime;
let dot;
- let dash;
dot = (speed > lastSpeed) ? "⇅ " : ""
if (resetNextCount == true) {
resetNextCount = false;
@@ -191,7 +191,6 @@ function speedToString(amount, rMode = 0) {
function enable() {
Main.panel._rightBox.insert_child_at_index(button, 0);
- button.set_child(chooseLabel());
button.connect('button-press-event', changeMode);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From 0393511944326b1622d8eee4019d7e04334b330a Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 10:45:49 +0530
Subject: [PATCH 109/344] Made tool_bool a settings schema
---
extension.js | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/extension.js b/extension.js
index 4297f27..dfc9fc0 100644
--- a/extension.js
+++ b/extension.js
@@ -18,7 +18,7 @@ let lastCount = 0, lastSpeed = 0, lastCountUp = 0;
let mode; // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
let fontmode;
let resetNextCount = false, resetCount = 0;
-let toggle_bool = false;
+let toggle_bool;
let reuseable_text;
let h =0;
@@ -27,7 +27,8 @@ function init() {
settings = Convenience.getSettings(PREFS_SCHEMA);
mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
- fontmode = settings.get_int('fontmode');
+ fontmode = settings.get_int('fontmode');
+ toggle_bool = settings.get_boolean('toggle_bool');
button = new St.Bin({
style_class: 'panel-button',
@@ -45,7 +46,9 @@ function init() {
y_align: Clutter.ActorAlign.CENTER,
style_class: 'forall'
});
+ //Refrence for Below Code : https://wiki.gnome.org/Projects/GnomeShell/Extensions/StepByStepTutorial#knowingClutter-someExamples-signals
button.set_child(chooseLabel());
+ button.connect('button-press-event', changeMode);
}
function changeMode(widget, event) {
@@ -191,7 +194,6 @@ function speedToString(amount, rMode = 0) {
function enable() {
Main.panel._rightBox.insert_child_at_index(button, 0);
- button.connect('button-press-event', changeMode);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From 6785b0d92a5dee69cadb00fcaf63cc1a51b39afe Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 10:47:54 +0530
Subject: [PATCH 110/344] Add tool_bool
---
.../org.gnome.shell.extensions.netspeedsimplified.gschema.xml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index e987d47..09938aa 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -9,5 +9,8 @@
0
+
+ false
+
From 2717e0e140d5c3b6cd8a64661e9aef5e527e05b8 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 10:51:54 +0530
Subject: [PATCH 111/344] Update
org.gnome.shell.extensions.netspeedsimplified.gschema.xml
---
.../org.gnome.shell.extensions.netspeedsimplified.gschema.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index 09938aa..9431070 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -9,7 +9,7 @@
0
-
+
false
From 727ac4d273a0e0691a263e957d2e0493957d5ca7 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 11:22:41 +0530
Subject: [PATCH 112/344] Add files via upload
---
extension.js | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/extension.js b/extension.js
index dfc9fc0..29c4858 100644
--- a/extension.js
+++ b/extension.js
@@ -18,7 +18,7 @@ let lastCount = 0, lastSpeed = 0, lastCountUp = 0;
let mode; // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
let fontmode;
let resetNextCount = false, resetCount = 0;
-let toggle_bool;
+let togglebool;
let reuseable_text;
let h =0;
@@ -28,7 +28,7 @@ function init() {
mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
fontmode = settings.get_int('fontmode');
- toggle_bool = settings.get_boolean('toggle_bool');
+ togglebool = settings.get_boolean('togglebool');
button = new St.Bin({
style_class: 'panel-button',
@@ -58,7 +58,7 @@ function changeMode(widget, event) {
resetNextCount = true;
parseStat();}
else {//right click on other modes; brings total downloaded sum
- toggle_bool = !toggle_bool;
+ togglebool = !togglebool;
ioSpeed.set_text("Loading Info...");
button.set_child(chooseLabel());
parseStat();
@@ -86,7 +86,7 @@ function chooseLabel(addArg = false /*for mode 4*/) {
styleName = (mode == 0 || mode == 1 || mode == 4) ? 'sumall' : 'upanddown'
let extraw = '';
- (!addArg) ? (extraw = toggle_bool ? ' iwidth' : '') : null // Doesnt increase width on right click if mode==4
+ (!addArg) ? (extraw = togglebool ? ' iwidth' : '') : null // Doesnt increase width on right click if mode==4
styleName = 'forall ' + styleName + extraw + ' size'
styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
@@ -148,14 +148,14 @@ function parseStat() {
(speed || speedUp) ? h = 0 : h++
if(h<=8){
- reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) + commonSigma(toggle_bool) :
- (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp) +commonSigma(toggle_bool) :
+ reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) + commonSigma(togglebool) :
+ (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp) +commonSigma(togglebool) :
(mode == 4) ? commonSigma(): "Mode Unavailable"
}
else{
ioSpeed.set_style_class_name("forall");
- if (mode !=4) reuseable_text = "--".repeat(mode+1) + commonSigma(toggle_bool);
- else reuseable_text = commonSigma(toggle_bool);
+ if (mode !=4) reuseable_text = "--".repeat(mode+1) + commonSigma(togglebool);
+ else reuseable_text = commonSigma(togglebool);
}
ioSpeed.set_text(reuseable_text);
lastCount = count;
From 0927f65a2faf42af1d93603e28f2e632c00ba272 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 11:23:14 +0530
Subject: [PATCH 113/344] Add files via upload
---
schemas/gschemas.compiled | Bin 403 -> 450 bytes
...ll.extensions.netspeedsimplified.gschema.xml | 2 +-
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index 1c2dfcc33762c2fcd03c9611746cbf05db5b59a9..1e04b1aa891048450a2d3415748172395465e8b4 100644
GIT binary patch
delta 236
zcmbQte295M2&2NpQ0sbD1_WRNGMRyx1&CQi85sTpfdV5)-iHB1>j3e=wPoxe5fGb$
zp^U)-NCyM)W}OGqK;j@a7f?I_NT&j^*REMLAaM|z1t?wsq`QImKy4j2(0Hl;APy@~
zVgisp1jIlDb_CO8Pev`rzAx%nxnU^av(g0ewwX3)sgsMN^J
R)YR0}D@ZKKm@L3(1OSymDZc;!
delta 166
zcmX@aJehey2qVkHQ0saY1_)pTQp`XM;vcB3EI>h4hB5{LAngQVi!v~P#6fHZ
z1|J3&AngOh2iKOdgM>hA4xsu7AYBZ^Ub|-1fW$#;7NB?qke&?0dIgCk86YDV7#JBQ
cPhd1+XJB9ga+oJ;GHS8p=BK1i&S#VX08G#xMF0Q*
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index 9431070..bc3bb55 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -9,7 +9,7 @@
0
-
+
false
From ec74f826073b661ed5eb545d6d665c84e3d1ec6e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 11:30:21 +0530
Subject: [PATCH 114/344] Update metadata.json
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 6dd7d90..6920ab1 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Fork of Simple Net speed: https://github.com/biji/simplenetspeed \n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up & down speed in bits per second\n4. Up & down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter if you are in 5th mode.\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show "--" instead of 0 B/s and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 588d4445ca1fd3a611fbba623a7e1a9bede28c10 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 11:38:02 +0530
Subject: [PATCH 115/344] Add ' instead of "
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 6920ab1..794e952 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show "--" instead of 0 B/s and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 4b92a35aab74f0406c8ccdce4a67bbe517a909dc Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 12:17:19 +0530
Subject: [PATCH 116/344] Add Screenshot
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a71e3e1..4cd7f4f 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,12 @@
# Net speed Simplified
-*Gnome extension to show network speed*
+*Gnome extension to show network speed*
> Website Link : [prateekmedia.io/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified/)
> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
+ *Screenshots*
+
***Tested on GNOME 3.36 and 3.38***
#### Changelog :
From 6ac6b62886c2ce7976ee4b2a0f21e1f2432e8465 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 12:19:04 +0530
Subject: [PATCH 117/344] Update README.md
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 4cd7f4f..82d9389 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,11 @@
# Net speed Simplified
*Gnome extension to show network speed*
+> Gnome Extensions Link : [extensions.gnome/netspeedsimplified](https://extensions.gnome.org/review/20012)
+
> Website Link : [prateekmedia.io/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified/)
-> Forked from : [Simple Net speed](https://github.com/biji/simplenetspeed)
+> Forked from : [biji/simplenetspeed](https://github.com/biji/simplenetspeed)
 *Screenshots*
From e023b0276b743d541742efa94065b2785ab2074e Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 19 Oct 2020 14:38:52 +0530
Subject: [PATCH 118/344] Update extension.js
---
extension.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/extension.js b/extension.js
index 29c4858..40cae7d 100644
--- a/extension.js
+++ b/extension.js
@@ -46,7 +46,6 @@ function init() {
y_align: Clutter.ActorAlign.CENTER,
style_class: 'forall'
});
- //Refrence for Below Code : https://wiki.gnome.org/Projects/GnomeShell/Extensions/StepByStepTutorial#knowingClutter-someExamples-signals
button.set_child(chooseLabel());
button.connect('button-press-event', changeMode);
}
From 9cbbb15ebd0eebc0f6e663808572d73c472798ee Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 20 Oct 2020 09:24:45 +0530
Subject: [PATCH 119/344] Update to support vertical align
---
extension.js | 45 +++++++++++++++++++++++++++++++--------------
stylesheet.css | 6 +++++-
2 files changed, 36 insertions(+), 15 deletions(-)
diff --git a/extension.js b/extension.js
index 40cae7d..8bc1e86 100644
--- a/extension.js
+++ b/extension.js
@@ -20,7 +20,10 @@ let fontmode;
let resetNextCount = false, resetCount = 0;
let togglebool;
let reuseable_text;
-let h =0;
+let h = 8;
+let newLine;
+var extRaw;
+let isVertical;
function init() {
@@ -29,6 +32,7 @@ function init() {
mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
fontmode = settings.get_int('fontmode');
togglebool = settings.get_boolean('togglebool');
+ isVertical = settings.get_boolean('isvertical');
button = new St.Bin({
style_class: 'panel-button',
@@ -83,9 +87,9 @@ function changeMode(widget, event) {
function chooseLabel(addArg = false /*for mode 4*/) {
styleName = (mode == 0 || mode == 1 || mode == 4) ? 'sumall' : 'upanddown'
-
let extraw = '';
- (!addArg) ? (extraw = togglebool ? ' iwidth' : '') : null // Doesnt increase width on right click if mode==4
+ (!isVertical) ? ((!addArg) ? (extraw = togglebool ? ' iwidth' : '') : null) : // Doesnt increase width on right click if mode==4 or if vertical is true
+ ((mode ==2 || mode ==3) && togglebool ? extraw = ' leftlign' : null) // if vertical is true and right click is also true in mode 2,3 then make them left align
styleName = 'forall ' + styleName + extraw + ' size'
styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
@@ -132,28 +136,41 @@ function parseStat() {
resetNextCount = false;
resetCount = count;
}
- function commonSigma(thr = true /*If true will return a result else will return empty string*/){
+ newLine = (isVertical && (mode ==2 || mode ==3)) ? "\n" : "";
+ var speedy = speedToString(count - resetCount, 1);
+ function sped(exta = extRaw, spda = speedy){ return exta + spda; }
+ function commonSigma(thr = true /*If true will return a result else will return empty string*/, isnewline = false){
let sigma = "Σ ";
- let extRaw = " | " + sigma;
- let speedy = speedToString(count - resetCount, 1);
+ extRaw = " | " + sigma;
if (thr && mode !=4){
- if (mode == 0 || mode == 2) return extRaw + speedy.toLowerCase();
- else if (mode == 1 || mode == 3) return extRaw + speedy;
+ if ((mode ==0 || mode ==1)){
+ if (isVertical) extRaw = "\n" + sigma;
+ if (mode == 0) return sped(extRaw, speedy.toLowerCase());
+ else return sped(extRaw);
+ }
+ else if ((mode ==2 || mode ==3)) {
+ if (isVertical){
+ extRaw = " " + sigma;
+ }
+ if (mode == 2) return sped(extRaw, speedy.toLowerCase());
+ else return sped(extRaw);
+ }
+ else { return ""}
}
- else if (mode == 4) return sigma + speedy;
+ else if (mode == 4){
+ return sped(sigma);
+ }
else return "";
}
-
(speed || speedUp) ? h = 0 : h++
-
if(h<=8){
reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) + commonSigma(togglebool) :
- (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) + " 🡱 " + speedToString(speedUp) +commonSigma(togglebool) :
+ (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) +newLine+ " 🡱 " + speedToString(speedUp) +commonSigma(togglebool) :
(mode == 4) ? commonSigma(): "Mode Unavailable"
}
else{
- ioSpeed.set_style_class_name("forall");
- if (mode !=4) reuseable_text = "--".repeat(mode+1) + commonSigma(togglebool);
+ ioSpeed.set_style_class_name("forall");
+ if (mode !=4) reuseable_text = "--".repeat(mode+1) + newLine + commonSigma(togglebool, true);
else reuseable_text = commonSigma(togglebool);
}
ioSpeed.set_text(reuseable_text);
diff --git a/stylesheet.css b/stylesheet.css
index c67a59d..6d4129c 100644
--- a/stylesheet.css
+++ b/stylesheet.css
@@ -1,10 +1,14 @@
/* For all elements */
.forall{
- text-align: center !important;
+ text-align: center;
margin: auto 2px;
min-width: 4.4em;
}
+.leftlign{
+ text-align: left;
+}
+
.iwidth{
/*Increase width if total data usage is visible with speed*/
min-width: 11.3em;
From 4bff286dcf89899221d3348e027dfe350d502197 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 20 Oct 2020 09:25:31 +0530
Subject: [PATCH 120/344] Update schemas to support vertical align
---
schemas/gschemas.compiled | Bin 450 -> 499 bytes
...ll.extensions.netspeedsimplified.gschema.xml | 3 +++
2 files changed, 3 insertions(+)
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index 1e04b1aa891048450a2d3415748172395465e8b4..c32a0ac59fcfd3ddc012587b0c750ca532d6b6b4 100644
GIT binary patch
delta 261
zcmX@a{F!+|2&2u!Q0sa&228*N6k-A5%{mXJfoK~>1_myMG6oMI?F+=xJHt9b;vhCi
zJOW6^0`Y;`I`02K0AjNO#WR5PEFkvUHLC`s9>it=iZ1}tyMdThlp&G>v#wHV06{4Iup)h)eR*({oaj^7C^*>NS!yGmFboi%K$+6F~w%zFt9M
mNd`!cfno9lMkAKo{FKzmd5p4rK=&{(08Lj3e=wPoxe5fGb$
zp^U)-NCyM)W}OGqK;j@a7f?I_NT&j^*REMLAaM|z1t?wsq`QImKy4j2(0Hl;APy@~
zVgisp1jIlDb_CPplZ;x@CHd*;IjKqc`8gm%7&MYJbMsSD!R*QN7-d=Y3KB~)CTB1j
F0RVHCDGUGr
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index bc3bb55..269b8b2 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -12,5 +12,8 @@
false
+
+ false
+
From 7444aa5b8f5ca84b0b6880aec7882fc82dac93f6 Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 20 Oct 2020 09:34:14 +0530
Subject: [PATCH 121/344] Update Readme
---
README.md | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 82d9389..4d807c4 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
-# Net speed Simplified
-*Gnome extension to show network speed*
+
Net speed Simplified
+Gnome extension to show network speed
> Gnome Extensions Link : [extensions.gnome/netspeedsimplified](https://extensions.gnome.org/review/20012)
@@ -7,7 +7,7 @@
> Forked from : [biji/simplenetspeed](https://github.com/biji/simplenetspeed)
- *Screenshots*
+
*Screenshots*
***Tested on GNOME 3.36 and 3.38***
@@ -24,9 +24,10 @@
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 4th mode i.e. total speed mode then total speed counter will reset to 0 MB.
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
+- [x] Vertical Aligment for mode 3,4 for Dash to panel or Big Screen users.
#### Todo :
-- [ ] Vertical Aligment for mode 3,4 for Dash to panel or Big Screen users.
+***Nothing TODO***
if you face any **issues** you can **[open pull request](https://github.com/prateekmedia/netspeedsimplified/pulls)** and can type your issue with images or error codes
@@ -40,7 +41,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
1. Total of downloaded in Bytes (Right click to reset counter)
> **Right click to toggle total data usage visiblity, Right click on total data usage mode to reset counter**
- ### From this  =====> To this 
+
=====> To this 
> **Middle click to change font size**
From 74179dd9a5e875c67cfb35dad460b29df8a94b1c Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 20 Oct 2020 09:38:38 +0530
Subject: [PATCH 122/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 4d807c4..d471581 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 4th mode i.e. total speed mode then total speed counter will reset to 0 MB.
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Vertical Aligment for mode 3,4 for Dash to panel or Big Screen users.
+- [x] Vertical Aligment for Dash to panel or Big Screen users, to enable this go to this [branch](https://github.com/prateekmedia/netspeedsimplified/tree/verticalalign)
#### Todo :
***Nothing TODO***
From 9e1ea2879ebd107093ce16b178f736da77e7cd6d Mon Sep 17 00:00:00 2001
From: prateekmedia <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 20 Oct 2020 09:39:14 +0530
Subject: [PATCH 123/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index d471581..4bd95bc 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 4th mode i.e. total speed mode then total speed counter will reset to 0 MB.
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Vertical Aligment for Dash to panel or Big Screen users, to enable this go to this [branch](https://github.com/prateekmedia/netspeedsimplified/tree/verticalalign)
+- [x] Disabled Vertical Aligment for Dash to panel or Big Screen users, to enable this go to this [branch](https://github.com/prateekmedia/netspeedsimplified/tree/verticalalign)
#### Todo :
***Nothing TODO***
From ba850115ebd16bd1aea0486ddba046a1718bf46f Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 14:19:54 +0530
Subject: [PATCH 124/344] Update master to main
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 4bd95bc..15747e7 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
...**Requirements : git**
- ***to install***
- ```git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- ***to load/reload extension***
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
@@ -58,7 +58,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
You can do that manually using extensions app or [website](https://extensions.gnome.org/local) or Using Gnome tweaks tool's extension tab
- ***to reinstall or update***
- ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch master https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- ***to remove( using Terminal )***
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From 55f62b72fbb8a3aaaed5e8c46f3b6382a46d22f6 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 16:23:40 +0000
Subject: [PATCH 125/344] Easily switch vertical alignment
---
extension.js | 93 +++++++++++++++++++++++++++++-----------------------
1 file changed, 52 insertions(+), 41 deletions(-)
diff --git a/extension.js b/extension.js
index 8bc1e86..3f7aaac 100644
--- a/extension.js
+++ b/extension.js
@@ -11,6 +11,8 @@ const Convenience = Me.imports.convenience;
const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
const refreshTime = 1.5;
+const rCConst = 3;
+
let settings;
let button, timeout;
let ioSpeed;
@@ -18,12 +20,8 @@ let lastCount = 0, lastSpeed = 0, lastCountUp = 0;
let mode; // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
let fontmode;
let resetNextCount = false, resetCount = 0;
-let togglebool;
-let reuseable_text;
-let h = 8;
-let newLine;
-var extRaw;
-let isVertical;
+let togglebool, reuseable_text, h = 8, newLine, tTime=0, useOldIcon = false;
+var extRaw, rClickCount =0, isVertical, DIcons = [];
function init() {
@@ -31,27 +29,6 @@ function init() {
mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
fontmode = settings.get_int('fontmode');
- togglebool = settings.get_boolean('togglebool');
- isVertical = settings.get_boolean('isvertical');
-
- button = new St.Bin({
- style_class: 'panel-button',
- reactive: true,
- can_focus: true,
- x_fill: true,
- y_fill: false,
- x_expand: true,
- y_expand: false,
- track_hover: true
- });
-
- ioSpeed = new St.Label({
- text: '---',
- y_align: Clutter.ActorAlign.CENTER,
- style_class: 'forall'
- });
- button.set_child(chooseLabel());
- button.connect('button-press-event', changeMode);
}
function changeMode(widget, event) {
@@ -66,6 +43,7 @@ function changeMode(widget, event) {
button.set_child(chooseLabel());
parseStat();
}
+ rClickCount++;
}
else if (event.get_button() == 2) { // change font
fontmode++;
@@ -106,6 +84,17 @@ function parseStat() {
let count = 0;
let countUp = 0;
let line;
+ if (rClickCount != 0) tTime++;
+ if(tTime>rCConst){
+ tTime = 0;
+ rClickCount = 0;
+ }
+ if (rClickCount>=rCConst){
+ isVertical = !isVertical;
+ rClickCount =0;
+ }
+ log("tTime : " + tTime);
+ log("rclickcounttttt " + rClickCount);
while (line = dstream.read_line(null)) {
line = String(line);
line = line.trim();
@@ -136,36 +125,33 @@ function parseStat() {
resetNextCount = false;
resetCount = count;
}
+
newLine = (isVertical && (mode ==2 || mode ==3)) ? "\n" : "";
var speedy = speedToString(count - resetCount, 1);
function sped(exta = extRaw, spda = speedy){ return exta + spda; }
function commonSigma(thr = true /*If true will return a result else will return empty string*/, isnewline = false){
- let sigma = "Σ ";
+ let sigma = DIcons[2]+" ";
extRaw = " | " + sigma;
if (thr && mode !=4){
if ((mode ==0 || mode ==1)){
- if (isVertical) extRaw = "\n" + sigma;
- if (mode == 0) return sped(extRaw, speedy.toLowerCase());
- else return sped(extRaw);
+ (isVertical) ? (extRaw = "\n") + sigma : null
+ return (mode == 0) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
}
else if ((mode ==2 || mode ==3)) {
- if (isVertical){
- extRaw = " " + sigma;
- }
- if (mode == 2) return sped(extRaw, speedy.toLowerCase());
- else return sped(extRaw);
+ (isVertical) ? (extRaw = " " + sigma) + sigma : null
+ return (mode == 2) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
}
- else { return ""}
+ else return "";
}
else if (mode == 4){
- return sped(sigma);
+ return (isVertical) ? sped(sigma) + " -v" : sped(sigma)
}
else return "";
}
(speed || speedUp) ? h = 0 : h++
if(h<=8){
reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) + commonSigma(togglebool) :
- (mode >= 2 && mode <= 3) ? " 🡳 " + speedToString(speed - speedUp) +newLine+ " 🡱 " + speedToString(speedUp) +commonSigma(togglebool) :
+ (mode >= 2 && mode <= 3) ? " "+DIcons[0]+" " + speedToString(speed - speedUp) +newLine+ " "+DIcons[1]+" " + speedToString(speedUp) +commonSigma(togglebool) :
(mode == 4) ? commonSigma(): "Mode Unavailable"
}
else{
@@ -199,8 +185,8 @@ function speedToString(amount, rMode = 0) {
amount /= 1000;
++unit;
}
- function ChkifInt(amnt, tofid = 1){
- return Number.isInteger(parseFloat(amnt.toFixed(tofid)));
+ function ChkifInt(amnt, digitsToFix = 1){
+ return Number.isInteger(parseFloat(amnt.toFixed(digitsToFix)));
}
digits = ChkifInt(amount) ? 0 : //For Integer like 21.0
((mode==4 || rMode !=0) && !ChkifInt(amount*10)) ? 2 /* For floats like 21.1 */ : 1 //For floats like 21.22
@@ -208,7 +194,32 @@ function speedToString(amount, rMode = 0) {
return String(amount.toFixed(digits)) + " " + speed_map[unit];
}
+function chooseIconSet(){
+ DIcons = (useOldIcon) ? ["↓","↑","∑"] : ["🡳","🡱","Σ"]
+}
+
function enable() {
+ button = new St.Bin({
+ style_class: 'panel-button',
+ reactive: true,
+ can_focus: true,
+ x_fill: true,
+ y_fill: false,
+ x_expand: true,
+ y_expand: false,
+ track_hover: true
+ });
+
+ ioSpeed = new St.Label({
+ text: '---',
+ y_align: Clutter.ActorAlign.CENTER,
+ style_class: 'forall'
+ });
+ button.set_child(chooseLabel());
+ button.connect('button-press-event', changeMode);
+
+ chooseIconSet();
+
Main.panel._rightBox.insert_child_at_index(button, 0);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From 1de0925ae3155cef014d447adeff3a0ac853ecca Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 16:24:13 +0000
Subject: [PATCH 126/344] Remove unwanted code
---
schemas/gschemas.compiled | Bin 499 -> 403 bytes
...ll.extensions.netspeedsimplified.gschema.xml | 6 ------
2 files changed, 6 deletions(-)
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index c32a0ac59fcfd3ddc012587b0c750ca532d6b6b4..1c2dfcc33762c2fcd03c9611746cbf05db5b59a9 100644
GIT binary patch
delta 164
zcmey&Jehey2qVkHQ0saY1_)pTQp`XM;vcB3EI>h4hB5{LAngQVi!v~P#6fHZ
z1|J3&AngOh2iKOdgM>hA4xsu7AYBZ^Ub|-1fW$#;7NB?qke&?0dIgCk86YEo+;m1`
Yb_NC}Ad`9WNk%P}-29Z($@3Xy06qa99RL6T
delta 279
zcmbQt{F!+|2&2u!Q0sa&228*N6k-A5%{mXJfoK~>1_myMG6oMI?F+=xJHt9b;vhCi
zJOW6^0`Y;`I`02K0AjNO#WR5PEFkvUHLC`s9>it=iZ1}tyMdThlp&Y_qyfZXVDMqs
z1EkLY@xira>>v#wHV06{4Iup)h)eR*({oaj^7C^*>NS!yGmFboi%K$+6F~w%zFt9M
xNycO@MhpGi{FGFXA_j&c2nF^LgGQ!CrAB6^rluy)g$xWpGZ~mc@{>IowEzaNHShoc
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index 269b8b2..e987d47 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -9,11 +9,5 @@
0
-
- false
-
-
- false
-
From d0f64dc5fa388c746e1201646482264739f0a056 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 16:46:44 +0000
Subject: [PATCH 127/344] Update README.md
---
README.md | 34 ++++++++++++++++++++++++++--------
1 file changed, 26 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index 15747e7..b9863f5 100644
--- a/README.md
+++ b/README.md
@@ -22,9 +22,12 @@
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
-- [x] Right Click to toggle visibility of total data used //If you will Right click on 4th mode i.e. total speed mode then total speed counter will reset to 0 MB.
+- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Disabled Vertical Aligment for Dash to panel or Big Screen users, to enable this go to this [branch](https://github.com/prateekmedia/netspeedsimplified/tree/verticalalign)
+- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align *(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
+***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
+- [x] Add Old Icons like original simplenetspeed extension, to enable this manually change ```useOldIcon``` value to false in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+
#### Todo :
***Nothing TODO***
@@ -40,16 +43,22 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-> **Right click to toggle total data usage visiblity, Right click on total data usage mode to reset counter**
+> **Right click to toggle total data usage visiblity, Right click on total data usage mode in reset counter**
=====> To this 
+> **Right click continuosly for 4 times to toggle vertical alignment, This can also be applied to 5th mode**
+
> **Middle click to change font size**
* Installing the extension using terminal:
- ...**Requirements : git**
+ - ***to install( reload required )( Requirements : git )***
+ ```git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+
+ *Or*
- - ***to install***
- ```git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ You can manually download the zip and paste its content in the folder
+ `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+ [Create it, if its not their]
- ***to load/reload extension***
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
@@ -57,8 +66,17 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
- ***to enable/disable/remove***
You can do that manually using extensions app or [website](https://extensions.gnome.org/local) or Using Gnome tweaks tool's extension tab
- - ***to reinstall or update***
+ - ***to reinstall or update( reload required )( Requirements : git )***
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
- - ***to remove( using Terminal )***
+ *Or*
+
+ First delete netspeedsimplified@prateekmedia.extension diretory by typing
+ `rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+ & then
+ You can manually download the latest zip and paste its content in the folder
+ `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+ [Create it, if its not their]
+
+ - ***to remove( using Terminal )( reload required )***
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From a9a9dd76d0effc334725be9ed96c8ef78e852c8f Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 16:48:00 +0000
Subject: [PATCH 128/344] Fix typo
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index b9863f5..ba55e93 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
You can manually download the zip and paste its content in the folder
`~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
- [Create it, if its not their]
+ [Create it, if its not there]
- ***to load/reload extension***
Press ```Alt+F2``` then type ```r``` and ```hit enter```.
@@ -76,7 +76,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
& then
You can manually download the latest zip and paste its content in the folder
`~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
- [Create it, if its not their]
+ [Create it, if its not there]
- ***to remove( using Terminal )( reload required )***
```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From 6ab85a5290385fa39bcbda9eeeed1fb9269040b6 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 16:49:06 +0000
Subject: [PATCH 129/344] Fix typo
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index ba55e93..0fede33 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align *(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
-- [x] Add Old Icons like original simplenetspeed extension, to enable this manually change ```useOldIcon``` value to false in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+- [x] Add Old Icons like original simplenetspeed extension, to enable this manually change ```useOldIcon``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
#### Todo :
From 861a80f6c2776df361809b13db0d34d40e2c2a96 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 17:00:59 +0000
Subject: [PATCH 130/344] Add vertical align info
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 794e952..9470fc0 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s, added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuosly on any mode to toggle vertical align) and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times to toggle Vertical alignment\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 4ef3e58eeef0a94b4c67bdcceede49cb03cc7391 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 17:14:03 +0000
Subject: [PATCH 131/344] Add backticks in some variables
---
extension.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/extension.js b/extension.js
index 3f7aaac..ce4e250 100644
--- a/extension.js
+++ b/extension.js
@@ -120,7 +120,7 @@ function parseStat() {
let speed = (count - lastCount) / refreshTime;
let speedUp = (countUp - lastCountUp) / refreshTime;
let dot;
- dot = (speed > lastSpeed) ? "⇅ " : ""
+ dot = (speed > lastSpeed) ? "⇅" : ""
if (resetNextCount == true) {
resetNextCount = false;
resetCount = count;
@@ -130,7 +130,7 @@ function parseStat() {
var speedy = speedToString(count - resetCount, 1);
function sped(exta = extRaw, spda = speedy){ return exta + spda; }
function commonSigma(thr = true /*If true will return a result else will return empty string*/, isnewline = false){
- let sigma = DIcons[2]+" ";
+ let sigma = `${DIcons[2]} `;
extRaw = " | " + sigma;
if (thr && mode !=4){
if ((mode ==0 || mode ==1)){
@@ -150,8 +150,8 @@ function parseStat() {
}
(speed || speedUp) ? h = 0 : h++
if(h<=8){
- reuseable_text = (mode >= 0 && mode <= 1) ? dot + speedToString(speed) + commonSigma(togglebool) :
- (mode >= 2 && mode <= 3) ? " "+DIcons[0]+" " + speedToString(speed - speedUp) +newLine+ " "+DIcons[1]+" " + speedToString(speedUp) +commonSigma(togglebool) :
+ reuseable_text = (mode >= 0 && mode <= 1) ? `${dot} ${speedToString(speed)} ${commonSigma(togglebool)}` :
+ (mode >= 2 && mode <= 3) ? `${DIcons[0]} ${speedToString(speed - speedUp)} ${newLine} ${DIcons[1]} ${speedToString(speedUp)} ${commonSigma(togglebool)}` :
(mode == 4) ? commonSigma(): "Mode Unavailable"
}
else{
From 325c891214f48d1f576d48f0037a68f7c0cea242 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 23 Oct 2020 17:17:24 +0000
Subject: [PATCH 132/344] Update extension.js
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index ce4e250..2b870db 100644
--- a/extension.js
+++ b/extension.js
@@ -151,7 +151,7 @@ function parseStat() {
(speed || speedUp) ? h = 0 : h++
if(h<=8){
reuseable_text = (mode >= 0 && mode <= 1) ? `${dot} ${speedToString(speed)} ${commonSigma(togglebool)}` :
- (mode >= 2 && mode <= 3) ? `${DIcons[0]} ${speedToString(speed - speedUp)} ${newLine} ${DIcons[1]} ${speedToString(speedUp)} ${commonSigma(togglebool)}` :
+ (mode >= 2 && mode <= 3) ? `${DIcons[0]} ${speedToString(speed - speedUp)} ${newLine}${DIcons[1]} ${speedToString(speedUp)} ${commonSigma(togglebool)}` :
(mode == 4) ? commonSigma(): "Mode Unavailable"
}
else{
From 6534ef6986be68ab25519a7e3b16bb596a9d6ac2 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 08:39:38 +0000
Subject: [PATCH 133/344] Add Left Click 6 times to change icon style
---
extension.js | 50 ++++++++++++++++++++++++++++++++------------------
1 file changed, 32 insertions(+), 18 deletions(-)
diff --git a/extension.js b/extension.js
index 2b870db..7df3545 100644
--- a/extension.js
+++ b/extension.js
@@ -11,7 +11,8 @@ const Convenience = Me.imports.convenience;
const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
const refreshTime = 1.5;
-const rCConst = 3;
+const rCConst = 3; //Right Click 4 timees to change Vertical Alignment
+const lCConst = 5; //Left Click 6 timees to change icon set
let settings;
let button, timeout;
@@ -20,8 +21,8 @@ let lastCount = 0, lastSpeed = 0, lastCountUp = 0;
let mode; // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
let fontmode;
let resetNextCount = false, resetCount = 0;
-let togglebool, reuseable_text, h = 8, newLine, tTime=0, useOldIcon = false;
-var extRaw, rClickCount =0, isVertical, DIcons = [];
+let reuseable_text, h = 8, newLine, tTime=0, ltTime=0, useOldIcon = false;
+var extRaw, rClickCount =0, lClickCount =0, isVertical = false, togglebool = false, DIcons = [];
function init() {
@@ -59,15 +60,17 @@ function changeMode(widget, event) {
settings.set_int('mode', mode);
button.set_child(chooseLabel(mode==4 ? true : false));
parseStat();
+ lClickCount++;
}
log('mode:' + mode + ' font:' + fontmode);
}
function chooseLabel(addArg = false /*for mode 4*/) {
- styleName = (mode == 0 || mode == 1 || mode == 4) ? 'sumall' : 'upanddown'
+ if (mode == 0 || mode == 1 || mode == 4) styleName = 'sumall';
+ else if(!isVertical) styleName = 'upanddown';
let extraw = '';
(!isVertical) ? ((!addArg) ? (extraw = togglebool ? ' iwidth' : '') : null) : // Doesnt increase width on right click if mode==4 or if vertical is true
- ((mode ==2 || mode ==3) && togglebool ? extraw = ' leftlign' : null) // if vertical is true and right click is also true in mode 2,3 then make them left align
+ ((mode ==2 || mode ==3) ? extraw = ' leftlign' : null) // if vertical is true in mode 2,3 then make them left align
styleName = 'forall ' + styleName + extraw + ' size'
styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
@@ -84,17 +87,27 @@ function parseStat() {
let count = 0;
let countUp = 0;
let line;
- if (rClickCount != 0) tTime++;
+ if (rClickCount != 0) tTime++
+ if (lClickCount != 0) ltTime++
+ if (rClickCount>=rCConst){
+ log("Changed Vertical Alignment.");
+ isVertical = !isVertical;
+ rClickCount =0;
+ }
+ if (lClickCount>=lCConst){
+ log("Changed Icon set.");
+ useOldIcon = !useOldIcon;
+ chooseIconSet();
+ lClickCount =0;
+ }
if(tTime>rCConst){
tTime = 0;
rClickCount = 0;
}
- if (rClickCount>=rCConst){
- isVertical = !isVertical;
- rClickCount =0;
+ if(ltTime>lCConst){
+ ltTime = 0;
+ lClickCount = 0;
}
- log("tTime : " + tTime);
- log("rclickcounttttt " + rClickCount);
while (line = dstream.read_line(null)) {
line = String(line);
line = line.trim();
@@ -134,17 +147,19 @@ function parseStat() {
extRaw = " | " + sigma;
if (thr && mode !=4){
if ((mode ==0 || mode ==1)){
- (isVertical) ? (extRaw = "\n") + sigma : null
+ (isVertical) ? (extRaw = "\n" + sigma) : null
return (mode == 0) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
}
else if ((mode ==2 || mode ==3)) {
- (isVertical) ? (extRaw = " " + sigma) + sigma : null
+ (isVertical) ? (extRaw = " " + sigma) : null
return (mode == 2) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
}
else return "";
}
else if (mode == 4){
- return (isVertical) ? sped(sigma) + " -v" : sped(sigma)
+ let toReturn = (isVertical) ? sped(sigma) + "\n -v" : sped(sigma);
+ toReturn = (useOldIcon) ? toReturn + " -o" : toReturn
+ return toReturn
}
else return "";
}
@@ -173,9 +188,9 @@ function speedToString(amount, rMode = 0) {
let digits;
let speed_map;
speed_map = ["B", "KB", "MB", "GB"].map(
- (rMode==1) ? v => v : //KB
+ (rMode==1 || mode ==4) ? v => v : //KB
(mode == 0 || mode == 2) ? v => v.toLowerCase() + "/s" : //kb/s
- (mode == 1 || mode == 3) ? v => v + "/s" : v=>v) //KB/s
+ (mode == 1 || mode == 3) ? v => v + "/s" : v=>v) //KB/s, KB
if (amount === 0) return "0 " + speed_map[0];
if (mode==0 || mode==2) amount = amount * 8;
@@ -217,9 +232,8 @@ function enable() {
});
button.set_child(chooseLabel());
button.connect('button-press-event', changeMode);
-
chooseIconSet();
-
+
Main.panel._rightBox.insert_child_at_index(button, 0);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
From 6c76d358c02fca5409c782c1725e1508a1c43603 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 08:47:45 +0000
Subject: [PATCH 134/344] Update Readme
---
README.md | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 0fede33..6b51219 100644
--- a/README.md
+++ b/README.md
@@ -24,10 +24,11 @@
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align *(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
+- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then manually change ```isVertical``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
-- [x] Add Old Icons like original simplenetspeed extension, to enable this manually change ```useOldIcon``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
-
+- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons, to make old icons default then manually change ```useOldIcon``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*,
#### Todo :
***Nothing TODO***
@@ -35,6 +36,7 @@
if you face any **issues** you can **[open pull request](https://github.com/prateekmedia/netspeedsimplified/pulls)** and can type your issue with images or error codes
> **Left click to change modes**
+> **Left click continuosly for 6/7 times to toggle old icons like simplenetspeed extension, You will se "-o" written in 5th mode after total download data if this is enabled**
*Modes available:*
1. Total net speed in bits per second
@@ -46,7 +48,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
> **Right click to toggle total data usage visiblity, Right click on total data usage mode in reset counter**
=====> To this 
-> **Right click continuosly for 4 times to toggle vertical alignment, This can also be applied to 5th mode**
+> **Right click continuosly for 4 times in any mode to toggle vertical alignment, You will se "-v" written in 5th mode after total download data if this is enabled**
> **Middle click to change font size**
From d6c32ea255fdd17e27c0a3d586e87319ad977725 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 08:51:12 +0000
Subject: [PATCH 135/344] Update Changelog Format
---
README.md | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index 6b51219..5b58a89 100644
--- a/README.md
+++ b/README.md
@@ -22,13 +22,15 @@
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
-- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
-- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then manually change ```isVertical``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
-*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
-***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
+- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
+
+#### Changelog for October Month :
+- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
+- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then manually change ```isVertical``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*
+***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons, to make old icons default then manually change ```useOldIcon``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
-*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*,
+*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
#### Todo :
***Nothing TODO***
From a5c78bde38d5c1d4f6d8549d99d349b9a8d8bdd4 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 14:37:04 +0530
Subject: [PATCH 136/344] Add Old icons Featurre
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 9470fc0..3fba991 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,6 @@
{
"_generated": "Generated by SweetTooth, do not edit",
- "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, new Sigma and Up and down Arrow, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s, added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuosly on any mode to toggle vertical align) and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times to toggle Vertical alignment\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, Lesser Code Better Code, new Sigma and Up and down Arrow icons, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s, added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuosly on any mode to toggle vertical align), added old icons from simplenetspeed extension(to use it left click 6/7 times continuosly to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuosly to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuosly to toggle Vertical alignment\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 77f540a18a772f97c8914742dc749ae28fb9bbeb Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 14:52:00 +0530
Subject: [PATCH 137/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5b58a89..08b3240 100644
--- a/README.md
+++ b/README.md
@@ -24,7 +24,7 @@
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
-#### Changelog for October Month :
+#### Changelog for New Version :
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then manually change ```isVertical``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*
From 43a22751f28ac5b2bce8a786505e9b6dd5744897 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 15:58:25 +0530
Subject: [PATCH 138/344] Remove unnecessary code
---
extension.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/extension.js b/extension.js
index 7df3545..0d35141 100644
--- a/extension.js
+++ b/extension.js
@@ -142,7 +142,7 @@ function parseStat() {
newLine = (isVertical && (mode ==2 || mode ==3)) ? "\n" : "";
var speedy = speedToString(count - resetCount, 1);
function sped(exta = extRaw, spda = speedy){ return exta + spda; }
- function commonSigma(thr = true /*If true will return a result else will return empty string*/, isnewline = false){
+ function commonSigma(thr = true /*If true will return a result else will return empty string*/){
let sigma = `${DIcons[2]} `;
extRaw = " | " + sigma;
if (thr && mode !=4){
@@ -171,7 +171,7 @@ function parseStat() {
}
else{
ioSpeed.set_style_class_name("forall");
- if (mode !=4) reuseable_text = "--".repeat(mode+1) + newLine + commonSigma(togglebool, true);
+ if (mode !=4) reuseable_text = "--".repeat(mode+1) + newLine + commonSigma(togglebool);
else reuseable_text = commonSigma(togglebool);
}
ioSpeed.set_text(reuseable_text);
From dd4ff1df6a61c209202e67871bd3a1e334ef2398 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 16:08:28 +0530
Subject: [PATCH 139/344] Update metadata.json
---
metadata.json | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/metadata.json b/metadata.json
index 3fba991..ca90387 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,6 +1,5 @@
{
- "_generated": "Generated by SweetTooth, do not edit",
- "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New: Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, Right Click to view total downloaded data in bits and bytes, Lesser Code Better Code, new Sigma and Up and down Arrow icons, dynamic width, used kb/s instead of Kbps, added spaces where needed, If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s, added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuosly on any mode to toggle vertical align), added old icons from simplenetspeed extension(to use it left click 6/7 times continuosly to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuosly to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuosly to toggle Vertical alignment\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New:\n Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, \nRight Click to view total downloaded data in bits and bytes, Lesser Code Better Code,\n new Sigma and Up and down Arrow icons, dynamic width,\n used kb/s instead of Kbps, added spaces where needed,\n If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s,\n Added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuously on any mode to toggle vertical align), \nAdded old icons from simplenetspeed extension(to use it left click 6/7 times continuously to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuously to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuously to toggle Vertical alignment\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From c8b17478d85107522df13e67df50a3466d9b354b Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 21:04:25 +0530
Subject: [PATCH 140/344] Code Improvements
---
extension.js | 99 +++++++++++++++++++++++++++-------------------------
1 file changed, 52 insertions(+), 47 deletions(-)
diff --git a/extension.js b/extension.js
index 0d35141..7ac9c64 100644
--- a/extension.js
+++ b/extension.js
@@ -9,20 +9,21 @@ const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
-const refreshTime = 1.5;
+const refreshTime=1.5;
-const rCConst = 3; //Right Click 4 timees to change Vertical Alignment
-const lCConst = 5; //Left Click 6 timees to change icon set
+const rCConst=3; //Right Click 4 timees to change Vertical Alignment
+const lCConst=5; //Left Click 6 timees to change icon set
-let settings;
-let button, timeout;
-let ioSpeed;
-let lastCount = 0, lastSpeed = 0, lastCountUp = 0;
-let mode; // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
-let fontmode;
-let resetNextCount = false, resetCount = 0;
-let reuseable_text, h = 8, newLine, tTime=0, ltTime=0, useOldIcon = false;
-var extRaw, rClickCount =0, lClickCount =0, isVertical = false, togglebool = false, DIcons = [];
+let settings,
+ button, timeout,
+ ioSpeed,
+ lastCount = 0, lastSpeed = 0, lastCountUp = 0,
+ mode, // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
+ fontmode,
+ resetNextCount=false, resetCount=0,
+ reuseable_text, newLine, h=8, tTime=0, ltTime=0, useOldIcon=false;
+
+var extRaw, rClickCount=0, lClickCount=0, isVertical=false, togglebool=false, DIcons=[];
function init() {
@@ -87,26 +88,30 @@ function parseStat() {
let count = 0;
let countUp = 0;
let line;
- if (rClickCount != 0) tTime++
- if (lClickCount != 0) ltTime++
- if (rClickCount>=rCConst){
- log("Changed Vertical Alignment.");
- isVertical = !isVertical;
- rClickCount =0;
- }
- if (lClickCount>=lCConst){
- log("Changed Icon set.");
- useOldIcon = !useOldIcon;
- chooseIconSet();
- lClickCount =0;
- }
- if(tTime>rCConst){
- tTime = 0;
- rClickCount = 0;
+ if (rClickCount != 0){
+ tTime++;
+ if (rClickCount>=rCConst){
+ log("Changed Vertical Alignment.");
+ isVertical = !isVertical;
+ rClickCount =0;
+ }
+ if(tTime>rCConst){
+ tTime = 0;
+ rClickCount = 0;
+ }
}
- if(ltTime>lCConst){
- ltTime = 0;
- lClickCount = 0;
+ if (lClickCount != 0) {
+ ltTime++;
+ if (lClickCount>=lCConst){
+ log("Changed Icon set.");
+ useOldIcon = !useOldIcon;
+ chooseIconSet();
+ lClickCount =0;
+ }
+ if(ltTime>lCConst){
+ ltTime = 0;
+ lClickCount = 0;
+ }
}
while (line = dstream.read_line(null)) {
line = String(line);
@@ -130,9 +135,9 @@ function parseStat() {
if (lastCount === 0) lastCount = count;
if (lastCountUp === 0) lastCountUp = countUp;
- let speed = (count - lastCount) / refreshTime;
- let speedUp = (countUp - lastCountUp) / refreshTime;
- let dot;
+ let speed = (count - lastCount) / refreshTime,
+ speedUp = (countUp - lastCountUp) / refreshTime,
+ dot;
dot = (speed > lastSpeed) ? "⇅" : ""
if (resetNextCount == true) {
resetNextCount = false;
@@ -146,20 +151,20 @@ function parseStat() {
let sigma = `${DIcons[2]} `;
extRaw = " | " + sigma;
if (thr && mode !=4){
- if ((mode ==0 || mode ==1)){
- (isVertical) ? (extRaw = "\n" + sigma) : null
- return (mode == 0) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
- }
- else if ((mode ==2 || mode ==3)) {
- (isVertical) ? (extRaw = " " + sigma) : null
- return (mode == 2) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
- }
- else return "";
- }
+ if ((mode ==0 || mode ==1)){
+ (isVertical) ? (extRaw = "\n" + sigma) : null
+ return (mode == 0) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
+ }
+ else if ((mode ==2 || mode ==3)) {
+ (isVertical) ? (extRaw = " " + sigma) : null
+ return (mode == 2) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
+ }
+ else return "";
+ }
else if (mode == 4){
let toReturn = (isVertical) ? sped(sigma) + "\n -v" : sped(sigma);
toReturn = (useOldIcon) ? toReturn + " -o" : toReturn
- return toReturn
+ return toReturn;
}
else return "";
}
@@ -185,8 +190,8 @@ function parseStat() {
}
function speedToString(amount, rMode = 0) {
- let digits;
- let speed_map;
+ let digits,
+ speed_map;
speed_map = ["B", "KB", "MB", "GB"].map(
(rMode==1 || mode ==4) ? v => v : //KB
(mode == 0 || mode == 2) ? v => v.toLowerCase() + "/s" : //kb/s
From 34c613d7a6fc2a180f1c5774d13b6f30a42309e8 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 21:13:24 +0530
Subject: [PATCH 141/344] Update README.md
---
README.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 08b3240..aabab83 100644
--- a/README.md
+++ b/README.md
@@ -22,14 +22,17 @@
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
-- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
+- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB. If you want to always show sigma by default then paste below command in terminal
+`sed -i 's togglebool=false togglebool=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
#### Changelog for New Version :
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then manually change ```isVertical``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then type
+`sed -i 's isVertical=false isVertical=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*
***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
-- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons, to make old icons default then manually change ```useOldIcon``` value to `true` in `extension.js` located in `~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension`
+- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons, to make old icons default then type
+`sed -i 's useOldIcon=false useOldIcon=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
#### Todo :
From 46ab3818b603d3a688c5d8d743438701b3e04931 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 21:56:09 +0530
Subject: [PATCH 142/344] Add disclaimer
---
README.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index aabab83..c7e5bbd 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,7 @@
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
-- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB. If you want to always show sigma by default then paste below command in terminal
+- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB. If you want to always show sigma by default then paste below command in terminal (Disclaimer: the specific below code may break your extension, if it happens then reinstall it)
`sed -i 's togglebool=false togglebool=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
#### Changelog for New Version :
@@ -33,7 +33,9 @@
***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons, to make old icons default then type
`sed -i 's useOldIcon=false useOldIcon=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
-*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
+*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
+
+**To Revert Back any changes made using sed -i command then replace false with true and true with false in orignal command, like the above command will become** `sed -i 's useOldIcon=true useOldIcon=false ...` , if this doesn't work then reinstall the extension.
#### Todo :
***Nothing TODO***
From 81f0c6a1505cf47f2358f0302cd877f8b0fe820e Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 21:57:20 +0530
Subject: [PATCH 143/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c7e5bbd..6c4f03c 100644
--- a/README.md
+++ b/README.md
@@ -35,7 +35,7 @@
`sed -i 's useOldIcon=false useOldIcon=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
-**To Revert Back any changes made using sed -i command then replace false with true and true with false in orignal command, like the above command will become** `sed -i 's useOldIcon=true useOldIcon=false ...` , if this doesn't work then reinstall the extension.
+**To Revert Back any changes made using sed -i command then replace false with true and true with false in orignal command, like the above command will become** `sed -i 's useOldIcon=true useOldIcon=false ...` , ***if this doesn't work then reinstall the extension.***
#### Todo :
***Nothing TODO***
From f33da4f53e4cca826d40196394408082abcfe66e Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 24 Oct 2020 21:59:06 +0530
Subject: [PATCH 144/344] Update README.md
---
README.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 6c4f03c..bf0bb97 100644
--- a/README.md
+++ b/README.md
@@ -22,7 +22,8 @@
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
-- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB. If you want to always show sigma by default then paste below command in terminal (Disclaimer: the specific below code may break your extension, if it happens then reinstall it)
+- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
+If you want to always show total data used by default then paste below command in terminal (Disclaimer: The code below may break your extension, if it happens then reinstall it)
`sed -i 's togglebool=false togglebool=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
#### Changelog for New Version :
From ae47a8f04543944022002f84fc345078b0e503d1 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 26 Oct 2020 07:46:45 +0530
Subject: [PATCH 145/344] Add icon
---
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index bf0bb97..eb2be72 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
+
Net speed Simplified
Gnome extension to show network speed
@@ -5,7 +6,7 @@
> Website Link : [prateekmedia.io/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified/)
-> Forked from : [biji/simplenetspeed](https://github.com/biji/simplenetspeed)
+> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
*Screenshots*
@@ -30,7 +31,7 @@ If you want to always show total data used by default then paste below command i
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then type
`sed -i 's isVertical=false isVertical=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
-*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*
+*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons, to make old icons default then type
`sed -i 's useOldIcon=false useOldIcon=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
From eb9a009ba98ddd7509558f556a23ea9e56c0360f Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 26 Oct 2020 10:36:30 +0530
Subject: [PATCH 146/344] Update icon Link
---
README.md | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
index eb2be72..1fda9ac 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,7 @@
-
+
Net speed Simplified
Gnome extension to show network speed
-> Gnome Extensions Link : [extensions.gnome/netspeedsimplified](https://extensions.gnome.org/review/20012)
-
> Website Link : [prateekmedia.io/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified/)
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
@@ -44,7 +42,8 @@ If you want to always show total data used by default then paste below command i
if you face any **issues** you can **[open pull request](https://github.com/prateekmedia/netspeedsimplified/pulls)** and can type your issue with images or error codes
-> **Left click to change modes**
+> **Left click to change modes**,
+
> **Left click continuosly for 6/7 times to toggle old icons like simplenetspeed extension, You will se "-o" written in 5th mode after total download data if this is enabled**
*Modes available:*
@@ -54,14 +53,16 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
1. Up & down speed in Bytes per second
1. Total of downloaded in Bytes (Right click to reset counter)
-> **Right click to toggle total data usage visiblity, Right click on total data usage mode in reset counter**
+> **Right click to toggle total data usage visiblity, Right click on total data usage mode in reset counter**,
=====> To this 
> **Right click continuosly for 4 times in any mode to toggle vertical alignment, You will se "-v" written in 5th mode after total download data if this is enabled**
> **Middle click to change font size**
-* Installing the extension using terminal:
+Installing the extension using terminal:
+
+* Please Mark this as Watch if you want to know about the updates
- ***to install( reload required )( Requirements : git )***
```git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From a89f3cc8cab24e9cd47842fcfa43f5a3ae722dd0 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 26 Oct 2020 10:47:31 +0530
Subject: [PATCH 147/344] Add Png icon
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 1fda9ac..6ef26a7 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+
Net speed Simplified
Gnome extension to show network speed
From f80a11157d9f9b864c1d978c2fcefd53094907a9 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Mon, 26 Oct 2020 12:23:21 +0530
Subject: [PATCH 148/344] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 6ef26a7..3557d35 100644
--- a/README.md
+++ b/README.md
@@ -62,7 +62,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
Installing the extension using terminal:
-* Please Mark this as Watch if you want to know about the updates
+* Please Mark this extension page as Watch if you want to know about the updates
- ***to install( reload required )( Requirements : git )***
```git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
From d56a76c9986935dadd2bd6d64e34388644fea66d Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 27 Oct 2020 10:37:10 +0530
Subject: [PATCH 149/344] Update Screenshot
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3557d35..4c0f164 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
-
*Screenshots*
+
*Screenshots*
***Tested on GNOME 3.36 and 3.38***
From c4f233fa8fcda1122f906f32946dc00b7d1555bb Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 28 Oct 2020 15:15:31 +0530
Subject: [PATCH 150/344] Update Direct Install URL
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 4c0f164..e0660b0 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-
+
Net speed Simplified
Gnome extension to show network speed
From d41f17042ca2b05097da8056c1e6710618be1c83 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 28 Oct 2020 15:18:34 +0530
Subject: [PATCH 151/344] Update README.md
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index e0660b0..a0d58c4 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,9 @@
Net speed Simplified
Gnome extension to show network speed
-> Website Link : [prateekmedia.io/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified/)
+> GNOME Extensions Link : [prateeksu.gnome/netspeedsimplified](https://extensions.gnome.org/extension/3724/net-speed-simplified/)
+
+> Web Link : [prateekmedia.github/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified)
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
From 0ea853130235caa1efee798ee4477d6d690db8e7 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Fri, 30 Oct 2020 17:13:04 +0530
Subject: [PATCH 152/344] Add Preference Dialog
---
extension.js | 78 +++++-----
lib.js | 35 +++++
prefs.js | 143 ++++++++++++++++++
schemas/gschemas.compiled | Bin 403 -> 557 bytes
....extensions.netspeedsimplified.gschema.xml | 9 ++
5 files changed, 228 insertions(+), 37 deletions(-)
create mode 100644 lib.js
create mode 100644 prefs.js
diff --git a/extension.js b/extension.js
index 7ac9c64..b0b0806 100644
--- a/extension.js
+++ b/extension.js
@@ -16,14 +16,14 @@ const lCConst=5; //Left Click 6 timees to change icon set
let settings,
button, timeout,
- ioSpeed,
+ ioSpeed, spaCe,
lastCount = 0, lastSpeed = 0, lastCountUp = 0,
mode, // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
fontmode,
resetNextCount=false, resetCount=0,
- reuseable_text, newLine, h=8, tTime=0, ltTime=0, useOldIcon=false;
+ reuseable_text, newLine, h=8, tTime=0, ltTime=0, useOldIcon;
-var extRaw, rClickCount=0, lClickCount=0, isVertical=false, togglebool=false, DIcons=[];
+var extRaw, rClickCount=0, lClickCount=0, isVertical, togglebool, DIcons=[];
function init() {
@@ -31,50 +31,49 @@ function init() {
mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
fontmode = settings.get_int('fontmode');
+ togglebool = settings.get_boolean('togglebool');
+ isVertical = settings.get_boolean('isvertical');
+ useOldIcon = settings.get_boolean('useoldicon');
}
function changeMode(widget, event) {
// log(event.get_button());
if (event.get_button() == 3) {
- if (mode ==4 ){// right click: reset downloaded sum
- resetNextCount = true;
- parseStat();}
- else {//right click on other modes; brings total downloaded sum
+ if (mode ==4 ) resetNextCount = true; // right click: reset downloaded sum
+ else {//right click on other modes brings total downloaded sum
togglebool = !togglebool;
ioSpeed.set_text("Loading Info...");
- button.set_child(chooseLabel());
- parseStat();
}
- rClickCount++;
+ parseStat();
+ rClickCount++;
}
else if (event.get_button() == 2) { // change font
fontmode++;
if (fontmode > 4) fontmode=0;
settings.set_int('fontmode', fontmode);
- button.set_child(chooseLabel());
parseStat();
}
else if (event.get_button() == 1) {
mode++;
if (mode > 4) mode = 0;
settings.set_int('mode', mode);
- button.set_child(chooseLabel(mode==4 ? true : false));
parseStat();
- lClickCount++;
+ button.set_child(chooseLabel(mode==4 ? true : false));
+ lClickCount++;
}
log('mode:' + mode + ' font:' + fontmode);
}
function chooseLabel(addArg = false /*for mode 4*/) {
+ log('mode:' + mode + ' font:' + fontmode);
if (mode == 0 || mode == 1 || mode == 4) styleName = 'sumall';
else if(!isVertical) styleName = 'upanddown';
let extraw = '';
(!isVertical) ? ((!addArg) ? (extraw = togglebool ? ' iwidth' : '') : null) : // Doesnt increase width on right click if mode==4 or if vertical is true
((mode ==2 || mode ==3) ? extraw = ' leftlign' : null) // if vertical is true in mode 2,3 then make them left align
styleName = 'forall ' + styleName + extraw + ' size'
- styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
-
+ styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
ioSpeed.set_style_class_name(styleName);
return ioSpeed;
}
@@ -152,37 +151,38 @@ function parseStat() {
extRaw = " | " + sigma;
if (thr && mode !=4){
if ((mode ==0 || mode ==1)){
- (isVertical) ? (extRaw = "\n" + sigma) : null
- return (mode == 0) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
- }
+ (isVertical) ? (extRaw = "\n" + sigma) : null
+ return (mode == 0) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
+ }
else if ((mode ==2 || mode ==3)) {
- (isVertical) ? (extRaw = " " + sigma) : null
- return (mode == 2) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
- }
+ (isVertical) ? (extRaw = " " + sigma) : null
+ return (mode == 2) ? sped(extRaw, speedy.toLowerCase()) : sped(extRaw)
+ }
else return "";
- }
+ }
else if (mode == 4){
let toReturn = (isVertical) ? sped(sigma) + "\n -v" : sped(sigma);
toReturn = (useOldIcon) ? toReturn + " -o" : toReturn
- return toReturn;
+ return toReturn;
}
else return "";
- }
- (speed || speedUp) ? h = 0 : h++
- if(h<=8){
- reuseable_text = (mode >= 0 && mode <= 1) ? `${dot} ${speedToString(speed)} ${commonSigma(togglebool)}` :
- (mode >= 2 && mode <= 3) ? `${DIcons[0]} ${speedToString(speed - speedUp)} ${newLine}${DIcons[1]} ${speedToString(speedUp)} ${commonSigma(togglebool)}` :
- (mode == 4) ? commonSigma(): "Mode Unavailable"
- }
- else{
- ioSpeed.set_style_class_name("forall");
- if (mode !=4) reuseable_text = "--".repeat(mode+1) + newLine + commonSigma(togglebool);
- else reuseable_text = commonSigma(togglebool);
+ }
+ if (useOldIcon) spaCe = "" ;
+ else spaCe = " ";
+ (speed || speedUp) ? h = 0 : h++
+ if(h<=8){
+ reuseable_text = (mode >= 0 && mode <= 1) ? `${dot} ${speedToString(speed)} ${commonSigma(togglebool)}` :
+ (mode >= 2 && mode <= 3) ? `${DIcons[0]} ${spaCe}${speedToString(speed - speedUp)} ${newLine}${DIcons[1]} ${spaCe}${speedToString(speedUp)} ${commonSigma(togglebool)}` :
+ (mode == 4) ? commonSigma(): "Mode Unavailable"
}
- ioSpeed.set_text(reuseable_text);
+ else{
+ reuseable_text = (mode !=4) ? "--".repeat(mode+1) + newLine + commonSigma(togglebool) : commonSigma(togglebool)
+ }
+ ioSpeed.set_text(reuseable_text);
lastCount = count;
lastCountUp = countUp;
lastSpeed = speed;
+ button.set_child(chooseLabel());
} catch (e) {
ioSpeed.set_text(e.message);
}
@@ -215,7 +215,7 @@ function speedToString(amount, rMode = 0) {
}
function chooseIconSet(){
- DIcons = (useOldIcon) ? ["↓","↑","∑"] : ["🡳","🡱","Σ"]
+ DIcons = (useOldIcon) ? ["↓","↑","∑"] : ["🡳","🡱","Σ"];
}
function enable() {
@@ -235,8 +235,12 @@ function enable() {
y_align: Clutter.ActorAlign.CENTER,
style_class: 'forall'
});
- button.set_child(chooseLabel());
+ /*styleName = 'forall size'
+ styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
+ ioSpeed.set_style_class_name(styleName);*/
button.connect('button-press-event', changeMode);
+ button.set_child(chooseLabel());
+
chooseIconSet();
Main.panel._rightBox.insert_child_at_index(button, 0);
diff --git a/lib.js b/lib.js
new file mode 100644
index 0000000..3c75883
--- /dev/null
+++ b/lib.js
@@ -0,0 +1,35 @@
+const Gio = imports.gi.Gio;
+const Extension = imports.misc.extensionUtils.getCurrentExtension();
+
+function Settings(schema)
+{
+ this.init(schema);
+}
+
+Settings.prototype =
+{
+ schema: null,
+
+ init: function(schema)
+ {
+ this.schema = schema;
+ },
+
+ getSettings: function()
+ {
+ const GioSSS = Gio.SettingsSchemaSource;
+
+ let schemaDir = Extension.dir.get_child('schemas');
+ let schemaSource;
+ if (schemaDir.query_exists(null))
+ schemaSource = GioSSS.new_from_directory(schemaDir.get_path(), GioSSS.get_default(), false);
+ else
+ schemaSource = GioSSS.get_default();
+
+ let schemaObj = schemaSource.lookup(this.schema, true);
+ if (! schemaObj)
+ throw new Error('Schema ' + this.schema + ' could not be found for extension ' + Extension.metadata.uuid + '. Please check your installation.');
+
+ return new Gio.Settings({settings_schema: schemaObj})
+ }
+}
diff --git a/prefs.js b/prefs.js
new file mode 100644
index 0000000..dc2d41b
--- /dev/null
+++ b/prefs.js
@@ -0,0 +1,143 @@
+const Gtk = imports.gi.Gtk;
+const Lang = imports.lang;
+
+const Extension = imports.misc.extensionUtils.getCurrentExtension();
+const Lib = Extension.imports.lib;
+
+const schema = "org.gnome.shell.extensions.netspeedsimplified";
+
+function init()
+{
+}
+
+function buildPrefsWidget()
+{
+ let prefs = new Prefs(schema);
+
+ return prefs.buildPrefsWidget();
+}
+
+function Prefs(schema)
+{
+ this.init(schema);
+}
+
+Prefs.prototype =
+{
+ settings: null,
+
+ init: function(schema)
+ {
+ let settings = new Lib.Settings(schema);
+
+ this.settings = settings.getSettings();
+ },
+
+ changeVertical: function(object, valueVertical)
+ {
+ this.settings.set_boolean("isvertical", object.active);
+ },
+
+ changeToggleBool: function(object, valueToggbool)
+ {
+ this.settings.set_boolean("togglebool", object.active);
+ },
+
+ changeOldIcons: function(object, valueToggbool)
+ {
+ this.settings.set_boolean("useoldicon", object.active);
+ },
+
+ buildPrefsWidget: function()
+ {
+ let frame = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, border_width: 10});
+ let label = new Gtk.Label({ label: "Default Settings", use_markup: true, xalign:0});
+ let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
+ let resetBtn = new Gtk.Button({ label: "Restore Defaults", can_focus: true});
+ let footer = new Gtk.Label({ label: "To See changes either press 'Alt + F2' and then type 'r' then press enter or logout and log back in",use_markup: true, margin_top: 20});
+ //Mode
+ let hboxMode = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ let labelMode = new Gtk.Label({label: "Mode (1-5) ", xalign: 0});
+ let value2Mode = new Gtk.ComboBoxText({
+ halign: Gtk.Align.END,
+ tooltip_text: ("Choose which mode to load")
+ });
+ value2Mode.append_text("Mode 1");
+ value2Mode.append_text("Mode 2");
+ value2Mode.append_text("Mode 3");
+ value2Mode.append_text("Mode 4");
+ value2Mode.append_text("Mode 5");
+ value2Mode.set_active(Math.round(this.settings.get_int("mode")));
+ value2Mode.connect('changed', (widget) => {
+ let valueMode = widget.get_active();
+ this.settings.set_int("mode", valueMode);
+ })
+ hboxMode.add(labelMode);
+ hboxMode.pack_end(value2Mode, true, true, 0);
+ vbox.add(hboxMode);
+ vbox.add(new Gtk.Separator({visible : true}));
+
+ //FontMode
+
+ let hboxFontMode = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ let labelFontMode = new Gtk.Label({label: "Font Mode ", xalign: 0});
+ let value2FontMode = new Gtk.ComboBoxText({
+ halign: Gtk.Align.END,
+ tooltip_text: ("Choose which font to display")
+ });
+ value2FontMode.append_text("Default");
+ value2FontMode.append_text("Smallest");
+ value2FontMode.append_text("Smaller");
+ value2FontMode.append_text("Small");
+ value2FontMode.append_text("Large");
+ value2FontMode.set_active(Math.round(this.settings.get_int("fontmode")));
+ value2FontMode.connect('changed', (widget) => {
+ let valueFontMode = widget.get_active();
+ this.settings.set_int("fontmode", valueFontMode);
+ })
+ hboxFontMode.add(labelFontMode);
+ hboxFontMode.pack_end(value2FontMode, true, true, 0);
+ vbox.add(hboxFontMode);
+ vbox.add(new Gtk.Separator({visible : true}));
+
+//For Vertical Alignment
+ let hboxVertical = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ let labelVertical = new Gtk.Label({label: "Vertical Align", xalign: 0});
+ let valueVertical = new Gtk.Switch({active: this.settings.get_boolean("isvertical"), tooltip_text: ("Enabling it will enable Vertical Alignment") });
+ valueVertical.connect('notify::active', Lang.bind(this, this.changeVertical));
+
+ hboxVertical.pack_start(labelVertical, true, true, 0);
+ hboxVertical.add(valueVertical);
+ vbox.add(hboxVertical);
+
+ vbox.add(new Gtk.Separator({visible : true}))
+//For Default sigma View
+ let hboxToggleBool = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ let labelToggleBool = new Gtk.Label({label: "Toggle Right Click Behaviour", xalign: 0});
+ let valueToggleBool = new Gtk.Switch({active: this.settings.get_boolean("togglebool"), tooltip_text: ("Enabling it will show sigma by default") });
+ valueToggleBool.connect('notify::active', Lang.bind(this, this.changeToggleBool));
+
+ hboxToggleBool.pack_start(labelToggleBool, true, true, 0);
+ hboxToggleBool.add(valueToggleBool);
+ vbox.add(hboxToggleBool);
+ vbox.add(new Gtk.Separator({visible : true}));
+
+//For Toggling Old Icons
+ let hboxOldIcons = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ let labelOldIcons = new Gtk.Label({label: "Display Old Icons", xalign: 0});
+ let valueOldIcons = new Gtk.Switch({active: this.settings.get_boolean("useoldicon"), tooltip_text: ("Enabling it will show Old Icons of simplenetspeed") });
+ valueOldIcons.connect('notify::active', Lang.bind(this, this.changeOldIcons));
+
+ hboxOldIcons.pack_start(labelOldIcons, true, true, 0);
+ hboxOldIcons.add(valueOldIcons);
+ vbox.add(hboxOldIcons);
+ vbox.add(new Gtk.Separator({visible : true}));
+
+ frame.add(label);
+ frame.add(vbox);
+ frame.add(footer);
+ frame.show_all();
+
+ return frame;
+ }
+}
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index 1c2dfcc33762c2fcd03c9611746cbf05db5b59a9..cd986fc581b792e95f1aab6fb03ce89afa6326f0 100644
GIT binary patch
literal 557
zcmZ`#KTE?v9Q|oiD>@4W{QwErWcLgBht8!#m$bR22gzN?ouPsXj)I%upo@!RL2%MZ
zzlk`xy9)Y#mzECVk38Pv-Mie~+waAtjFqMNw88ya`>P8R+}tAi!PIMAml?pn_!``C
zjCF?&=nC9lA;L$xOv6;^T!dyKvMdx+E0mF1nNSI93Lz3B^CFXDDH7x{eye7;zX8qg
zfF{6edxtyUtoe)$s%Qevfwx)JVxRRo{3-Yvc-noxVV^bU@4*ki>)H7xzlU`b{v-GU
zIC{A~50JI!ok8E6(%y!(gnH&2=Jb
zgUUJc`^cC6i7#ak1XibMCWcyPZXNr=BDRw{9HG?6l^VHHqh+bl-%=wYvpn#h^IX?!
W_&whPS9c>#B}ywtaeWDRxW_N}Np3Iz
delta 225
zcmZ3>GMRZo2qVkHQ0saY1_)pTQp`XM;vcB3EI>h4hB5{LAngQVi!v~P#6fHZ
z1|J3&AngOh2iKOdgM>hA4xsu7AYBZ^Ub|-1fW$#;7NB?qke&?0dIgCk86YEo-1Usc
sfeZ{xKqkocwEVo1-29YOkQ4|MK`5}R7&J09Dm5}QH8nNiN^r;n029?FCIA2c
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index e987d47..f561197 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -8,6 +8,15 @@
0
+
+
+ false
+
+
+ false
+
+
+ false
From 4b7211580e231034a7ef4f7d6cb7c620c0594a3b Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 14:36:36 +0530
Subject: [PATCH 153/344] Update Changelog
---
README.md | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index a0d58c4..97012d9 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
***Tested on GNOME 3.36 and 3.38***
-#### Changelog :
+#### Feature Highlights :
- [x] Reduce Refresh time
- [x] Supports GNOME SHELL 3.38
- [x] Changes width accordingly / dynamic width
@@ -27,7 +27,7 @@
If you want to always show total data used by default then paste below command in terminal (Disclaimer: The code below may break your extension, if it happens then reinstall it)
`sed -i 's togglebool=false togglebool=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
-#### Changelog for New Version :
+#### Changelog Till October 29 :
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then type
`sed -i 's isVertical=false isVertical=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
@@ -39,6 +39,9 @@ If you want to always show total data used by default then paste below command i
**To Revert Back any changes made using sed -i command then replace false with true and true with false in orignal command, like the above command will become** `sed -i 's useOldIcon=true useOldIcon=false ...` , ***if this doesn't work then reinstall the extension.***
+#### Changelog After October 29 :
+- [x] Added Preference Dialog with all the customizations needed
+
#### Todo :
***Nothing TODO***
From 219eef0ee4047960fe031ff731ea33c4d5f1002b Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 14:37:34 +0530
Subject: [PATCH 154/344] Update README.md
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 97012d9..ed4dfab 100644
--- a/README.md
+++ b/README.md
@@ -12,6 +12,9 @@
***Tested on GNOME 3.36 and 3.38***
+#### Whats new in this repo version:
+- [x] Added Preference Dialog with all the customizations needed
+
#### Feature Highlights :
- [x] Reduce Refresh time
- [x] Supports GNOME SHELL 3.38
@@ -39,9 +42,6 @@ If you want to always show total data used by default then paste below command i
**To Revert Back any changes made using sed -i command then replace false with true and true with false in orignal command, like the above command will become** `sed -i 's useOldIcon=true useOldIcon=false ...` , ***if this doesn't work then reinstall the extension.***
-#### Changelog After October 29 :
-- [x] Added Preference Dialog with all the customizations needed
-
#### Todo :
***Nothing TODO***
From 8f39890548dad69bbe98bb93f9e8043efb6284ce Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 17:23:05 +0530
Subject: [PATCH 155/344] Update Prefs Dialog and code improvements
---
extension.js | 47 ++---
prefs.js | 181 ++++++++----------
schemas/gschemas.compiled | Bin 557 -> 608 bytes
....extensions.netspeedsimplified.gschema.xml | 3 +
4 files changed, 104 insertions(+), 127 deletions(-)
diff --git a/extension.js b/extension.js
index b0b0806..95c0916 100644
--- a/extension.js
+++ b/extension.js
@@ -8,7 +8,7 @@ const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
-const PREFS_SCHEMA = 'org.gnome.shell.extensions.netspeedsimplified';
+const schema = 'org.gnome.shell.extensions.netspeedsimplified';
const refreshTime=1.5;
const rCConst=3; //Right Click 4 timees to change Vertical Alignment
@@ -23,50 +23,39 @@ let settings,
resetNextCount=false, resetCount=0,
reuseable_text, newLine, h=8, tTime=0, ltTime=0, useOldIcon;
-var extRaw, rClickCount=0, lClickCount=0, isVertical, togglebool, DIcons=[];
+var extRaw, rClickCount=0, lClickCount=0, isVertical, togglebool, DIcons=[], lckMuseAct;
function init() {
-
- settings = Convenience.getSettings(PREFS_SCHEMA);
-
- mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
- fontmode = settings.get_int('fontmode');
- togglebool = settings.get_boolean('togglebool');
- isVertical = settings.get_boolean('isvertical');
- useOldIcon = settings.get_boolean('useoldicon');
+ settings = Convenience.getSettings(schema);
}
function changeMode(widget, event) {
- // log(event.get_button());
if (event.get_button() == 3) {
if (mode ==4 ) resetNextCount = true; // right click: reset downloaded sum
else {//right click on other modes brings total downloaded sum
togglebool = !togglebool;
+ settings.set_boolean('togglebool', togglebool);
ioSpeed.set_text("Loading Info...");
}
- parseStat();
rClickCount++;
}
else if (event.get_button() == 2) { // change font
fontmode++;
if (fontmode > 4) fontmode=0;
-
settings.set_int('fontmode', fontmode);
- parseStat();
}
else if (event.get_button() == 1) {
mode++;
if (mode > 4) mode = 0;
settings.set_int('mode', mode);
- parseStat();
- button.set_child(chooseLabel(mode==4 ? true : false));
lClickCount++;
}
+ parseStat();
log('mode:' + mode + ' font:' + fontmode);
}
-function chooseLabel(addArg = false /*for mode 4*/) {
- log('mode:' + mode + ' font:' + fontmode);
+function chooseLabel() {
+ addArg = (mode==4) ? true : false
if (mode == 0 || mode == 1 || mode == 4) styleName = 'sumall';
else if(!isVertical) styleName = 'upanddown';
let extraw = '';
@@ -90,8 +79,8 @@ function parseStat() {
if (rClickCount != 0){
tTime++;
if (rClickCount>=rCConst){
- log("Changed Vertical Alignment.");
isVertical = !isVertical;
+ settings.set_boolean('isvertical', isVertical);
rClickCount =0;
}
if(tTime>rCConst){
@@ -102,8 +91,8 @@ function parseStat() {
if (lClickCount != 0) {
ltTime++;
if (lClickCount>=lCConst){
- log("Changed Icon set.");
useOldIcon = !useOldIcon;
+ settings.set_boolean('useoldicon', useOldIcon);
chooseIconSet();
lClickCount =0;
}
@@ -175,9 +164,7 @@ function parseStat() {
(mode >= 2 && mode <= 3) ? `${DIcons[0]} ${spaCe}${speedToString(speed - speedUp)} ${newLine}${DIcons[1]} ${spaCe}${speedToString(speedUp)} ${commonSigma(togglebool)}` :
(mode == 4) ? commonSigma(): "Mode Unavailable"
}
- else{
- reuseable_text = (mode !=4) ? "--".repeat(mode+1) + newLine + commonSigma(togglebool) : commonSigma(togglebool)
- }
+ else reuseable_text = (mode !=4) ? "--".repeat(mode+1) + newLine + commonSigma(togglebool) : commonSigma(togglebool)
ioSpeed.set_text(reuseable_text);
lastCount = count;
lastCountUp = countUp;
@@ -219,6 +206,14 @@ function chooseIconSet(){
}
function enable() {
+ mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
+ fontmode = settings.get_int('fontmode');
+ togglebool = settings.get_boolean('togglebool');
+ isVertical = settings.get_boolean('isvertical');
+ useOldIcon = settings.get_boolean('useoldicon');
+ lckMuseAct = settings.get_boolean('lockmouseactions');
+ fontmode = settings.get_int('fontmode');
+
button = new St.Bin({
style_class: 'panel-button',
reactive: true,
@@ -235,10 +230,8 @@ function enable() {
y_align: Clutter.ActorAlign.CENTER,
style_class: 'forall'
});
- /*styleName = 'forall size'
- styleName = fontmode > 0 ? styleName + '-' + fontmode : styleName
- ioSpeed.set_style_class_name(styleName);*/
- button.connect('button-press-event', changeMode);
+
+ (!lckMuseAct) ? button.connect('button-press-event', changeMode) : null
button.set_child(chooseLabel());
chooseIconSet();
diff --git a/prefs.js b/prefs.js
index dc2d41b..87ce1a1 100644
--- a/prefs.js
+++ b/prefs.js
@@ -6,138 +6,119 @@ const Lib = Extension.imports.lib;
const schema = "org.gnome.shell.extensions.netspeedsimplified";
-function init()
-{
-}
+function init(){}
-function buildPrefsWidget()
-{
+function buildPrefsWidget(){
let prefs = new Prefs(schema);
return prefs.buildPrefsWidget();
}
-function Prefs(schema)
-{
+function Prefs(schema){
this.init(schema);
}
Prefs.prototype =
{
settings: null,
-
init: function(schema)
{
- let settings = new Lib.Settings(schema);
-
- this.settings = settings.getSettings();
+ let settings = new Lib.Settings(schema);
+ this.settings = settings.getSettings();
},
-
- changeVertical: function(object, valueVertical)
+
+ buildPrefsWidget: function()
{
- this.settings.set_boolean("isvertical", object.active);
- },
+ let thset = this.settings;
+ function vBoxAddSeleCt(stArt, getInt, whichHbox, getLbl = "", getTooTip = ""){
+ if (stArt) {
+ boolComp = (thset.get_int(getInt) == thset.get_default_value(getInt).unpack());
+ getLbl = boolComp ? getLbl :
+ `${getLbl}`
+ tootext = boolComp ? "" : "The Value is Changed"
+ whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
+ whichVlue = new Gtk.ComboBoxText({
+ halign: Gtk.Align.END,
+ tooltip_text: getTooTip
+ });
+ }
+ else {
+ whichVlue.set_active(Math.round(thset.get_int(getInt)));
+ whichVlue.connect('changed', (widget) => {
+ let valueMode = widget.get_active();
+ thset.set_int(getInt, valueMode);
+ })
+ whichHbox.add(whichLbl);
+ whichHbox.pack_end(whichVlue, true, true, 0);
+ vbox.add(whichHbox);
+ vbox.add(new Gtk.Separator({visible : true}));
+ }
+ }
- changeToggleBool: function(object, valueToggbool)
- {
- this.settings.set_boolean("togglebool", object.active);
- },
+ function vBoxAddTgglBtn(whichHbox, getLbl, getBool,getTooTip = ""){
+ boolComp = (thset.get_boolean(getBool) == thset.get_default_value(getBool).unpack());
+ getLbl = boolComp ? getLbl :
+ `${getLbl}`
+ tootext = boolComp ? "" : "The Value is Changed"
+ whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
+ whichVlue = new Gtk.Switch({active: thset.get_boolean(getBool), tooltip_text: getTooTip });
+ whichVlue.connect('notify::active', (widget, whichVlue) => {
+ thset.set_boolean(getBool, widget.active);
+ })
+
+ whichHbox.pack_start(whichLbl, true, true, 0);
+ whichHbox.add(whichVlue);
+
+ vbox.add(whichHbox);
+ vbox.add(new Gtk.Separator({visible : true}));
+ }
- changeOldIcons: function(object, valueToggbool)
- {
- this.settings.set_boolean("useoldicon", object.active);
- },
+ let frame = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, border_width: 10});
+ let label = new Gtk.Label({ label: "Default Settings", use_markup: true, xalign:0});
+ let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
+ let footer = new Gtk.Label({ label: "To See the changes Disable and then re-enable the extension",use_markup: true, margin_top: 20});
- buildPrefsWidget: function()
- {
- let frame = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, border_width: 10});
- let label = new Gtk.Label({ label: "Default Settings", use_markup: true, xalign:0});
- let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
- let resetBtn = new Gtk.Button({ label: "Restore Defaults", can_focus: true});
- let footer = new Gtk.Label({ label: "To See changes either press 'Alt + F2' and then type 'r' then press enter or logout and log back in",use_markup: true, margin_top: 20});
- //Mode
+ //For Modes
let hboxMode = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- let labelMode = new Gtk.Label({label: "Mode (1-5) ", xalign: 0});
- let value2Mode = new Gtk.ComboBoxText({
- halign: Gtk.Align.END,
- tooltip_text: ("Choose which mode to load")
- });
- value2Mode.append_text("Mode 1");
- value2Mode.append_text("Mode 2");
- value2Mode.append_text("Mode 3");
- value2Mode.append_text("Mode 4");
- value2Mode.append_text("Mode 5");
- value2Mode.set_active(Math.round(this.settings.get_int("mode")));
- value2Mode.connect('changed', (widget) => {
- let valueMode = widget.get_active();
- this.settings.set_int("mode", valueMode);
- })
- hboxMode.add(labelMode);
- hboxMode.pack_end(value2Mode, true, true, 0);
- vbox.add(hboxMode);
- vbox.add(new Gtk.Separator({visible : true}));
-
- //FontMode
-
+ vBoxAddSeleCt(true, "mode", hboxMode, "Mode (1-5)", "Choose which mode to load");
+ whichVlue.append_text("Mode 1");
+ whichVlue.append_text("Mode 2");
+ whichVlue.append_text("Mode 3");
+ whichVlue.append_text("Mode 4");
+ whichVlue.append_text("Mode 5");
+ vBoxAddSeleCt(false, "mode", hboxMode);
+
+ //For FontModes
let hboxFontMode = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- let labelFontMode = new Gtk.Label({label: "Font Mode ", xalign: 0});
- let value2FontMode = new Gtk.ComboBoxText({
- halign: Gtk.Align.END,
- tooltip_text: ("Choose which font to display")
- });
- value2FontMode.append_text("Default");
- value2FontMode.append_text("Smallest");
- value2FontMode.append_text("Smaller");
- value2FontMode.append_text("Small");
- value2FontMode.append_text("Large");
- value2FontMode.set_active(Math.round(this.settings.get_int("fontmode")));
- value2FontMode.connect('changed', (widget) => {
- let valueFontMode = widget.get_active();
- this.settings.set_int("fontmode", valueFontMode);
- })
- hboxFontMode.add(labelFontMode);
- hboxFontMode.pack_end(value2FontMode, true, true, 0);
- vbox.add(hboxFontMode);
- vbox.add(new Gtk.Separator({visible : true}));
+ vBoxAddSeleCt(true, "fontmode", hboxFontMode, "Font Mode", "Choose which font to display");
+ whichVlue.append_text("Default");
+ whichVlue.append_text("Smallest");
+ whichVlue.append_text("Smaller");
+ whichVlue.append_text("Small");
+ whichVlue.append_text("Large");
+ vBoxAddSeleCt(false, "fontmode", hboxFontMode);
//For Vertical Alignment
let hboxVertical = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- let labelVertical = new Gtk.Label({label: "Vertical Align", xalign: 0});
- let valueVertical = new Gtk.Switch({active: this.settings.get_boolean("isvertical"), tooltip_text: ("Enabling it will enable Vertical Alignment") });
- valueVertical.connect('notify::active', Lang.bind(this, this.changeVertical));
-
- hboxVertical.pack_start(labelVertical, true, true, 0);
- hboxVertical.add(valueVertical);
- vbox.add(hboxVertical);
+ vBoxAddTgglBtn(hboxVertical, "Vertical Align", "isvertical", "Changing it will toggle Vertical Alignment");
- vbox.add(new Gtk.Separator({visible : true}))
//For Default sigma View
let hboxToggleBool = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- let labelToggleBool = new Gtk.Label({label: "Toggle Right Click Behaviour", xalign: 0});
- let valueToggleBool = new Gtk.Switch({active: this.settings.get_boolean("togglebool"), tooltip_text: ("Enabling it will show sigma by default") });
- valueToggleBool.connect('notify::active', Lang.bind(this, this.changeToggleBool));
-
- hboxToggleBool.pack_start(labelToggleBool, true, true, 0);
- hboxToggleBool.add(valueToggleBool);
- vbox.add(hboxToggleBool);
- vbox.add(new Gtk.Separator({visible : true}));
+ vBoxAddTgglBtn(hboxToggleBool, "Toggle Right Click Behaviour", "togglebool", "Enabling it will show sigma by default");
//For Toggling Old Icons
- let hboxOldIcons = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- let labelOldIcons = new Gtk.Label({label: "Display Old Icons", xalign: 0});
- let valueOldIcons = new Gtk.Switch({active: this.settings.get_boolean("useoldicon"), tooltip_text: ("Enabling it will show Old Icons of simplenetspeed") });
- valueOldIcons.connect('notify::active', Lang.bind(this, this.changeOldIcons));
-
- hboxOldIcons.pack_start(labelOldIcons, true, true, 0);
- hboxOldIcons.add(valueOldIcons);
- vbox.add(hboxOldIcons);
- vbox.add(new Gtk.Separator({visible : true}));
-
+ let hboxOldIcons = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ vBoxAddTgglBtn(hboxOldIcons, "Display Old Icons", "useoldicon", "Enabling it will show Old Icons of simplenetspeed");
+
+//For Lock Mouse Actions
+ let hboxLckMuseAct = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ vBoxAddTgglBtn(hboxLckMuseAct, "Lock Mouse Actions", "lockmouseactions", "Enabling it will Lock Mouse Actions");
+
frame.add(label);
frame.add(vbox);
frame.add(footer);
frame.show_all();
return frame;
- }
-}
+ }
+}
\ No newline at end of file
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index cd986fc581b792e95f1aab6fb03ce89afa6326f0..87a834ec45e4bca0d25156c75b984a2952992937 100644
GIT binary patch
literal 608
zcmZ`$F-yZh6n<)Ji!O=?f(|Z10-CtEIJt;bIv0lyrpYxuOmZc676ldD6m%8Q-{9n=
zldk>(M}L7!7Y9MVm!x(OANlfq_q}&{cQ0EFFO^S!_BG5AKMzSqMfO>>g
z&6&9O7*GZ(1vr;sT7R&|eWs{K=in>g`Q&tx&&awA{|5XDyxjLHT+g}+{|(#+cAjpJ
z*=JpX{|TN!YhlA^u1yYm#;XU)erw0_x%Ca
Cqj`J)
literal 557
zcmZ`#KTE?v9Q|oiD>@4W{QwErWcLgBht8!#m$bR22gzN?ouPsXj)I%upo@!RL2%MZ
zzlk`xy9)Y#mzECVk38Pv-Mie~+waAtjFqMNw88ya`>P8R+}tAi!PIMAml?pn_!``C
zjCF?&=nC9lA;L$xOv6;^T!dyKvMdx+E0mF1nNSI93Lz3B^CFXDDH7x{eye7;zX8qg
zfF{6edxtyUtoe)$s%Qevfwx)JVxRRo{3-Yvc-noxVV^bU@4*ki>)H7xzlU`b{v-GU
zIC{A~50JI!ok8E6(%y!(gnH&2=Jb
zgUUJc`^cC6i7#ak1XibMCWcyPZXNr=BDRw{9HG?6l^VHHqh+bl-%=wYvpn#h^IX?!
W_&whPS9c>#B}ywtaeWDRxW_N}Np3Iz
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index f561197..84bb894 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -18,5 +18,8 @@
false
+
+ false
+
From 322e3593b5974c64ed700c99bd54467fcd76f9c6 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 17:30:48 +0530
Subject: [PATCH 156/344] Update README.md
---
README.md | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/README.md b/README.md
index ed4dfab..c2c2833 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,8 @@
***Tested on GNOME 3.36 and 3.38***
#### Whats new in this repo version:
-- [x] Added Preference Dialog with all the customizations needed
+- [x] Add Preference Dialog with lots of default customizations.
+- [x] Add Lock Mouse Actions button in Prefrences to disable any mouse click behaviour.
#### Feature Highlights :
- [x] Reduce Refresh time
@@ -26,22 +27,16 @@
- [x] Added space b/w speed and their units
- [x] Human readable stylesheet // used minimum width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
-- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
-If you want to always show total data used by default then paste below command in terminal (Disclaimer: The code below may break your extension, if it happens then reinstall it)
-`sed -i 's togglebool=false togglebool=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
+- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
#### Changelog Till October 29 :
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align, to make vertical Alignment default then type
-`sed -i 's isVertical=false isVertical=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
-*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
+- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align.
+*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
-- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons, to make old icons default then type
-`sed -i 's useOldIcon=false useOldIcon=true ' ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension/extension.js`
+- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons.
*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
-**To Revert Back any changes made using sed -i command then replace false with true and true with false in orignal command, like the above command will become** `sed -i 's useOldIcon=true useOldIcon=false ...` , ***if this doesn't work then reinstall the extension.***
-
#### Todo :
***Nothing TODO***
From 86e657a751ba942b284cc1e3acc32da1c8e21974 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 19:12:49 +0530
Subject: [PATCH 157/344] Update Metadata
---
metadata.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/metadata.json b/metadata.json
index ca90387..1bbad73 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,5 +1,5 @@
{
- "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nWhats New:\n Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, \nRight Click to view total downloaded data in bits and bytes, Lesser Code Better Code,\n new Sigma and Up and down Arrow icons, dynamic width,\n used kb/s instead of Kbps, added spaces where needed,\n If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s,\n Added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuously on any mode to toggle vertical align), \nAdded old icons from simplenetspeed extension(to use it left click 6/7 times continuously to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuously to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuously to toggle Vertical alignment\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\n\Added Preference Menu and slight code improvementsn\nWhats New:\n Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, \nRight Click to view total downloaded data in bits and bytes, Lesser Code Better Code,\n new Sigma and Up and down Arrow icons, dynamic width,\n used kb/s instead of Kbps, added spaces where needed,\n If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s,\n Added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuously on any mode to toggle vertical align), \nAdded old icons from simplenetspeed extension(to use it left click 6/7 times continuously to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuously to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuously to toggle Vertical alignment\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
@@ -26,5 +26,5 @@
],
"url": "https://github.com/prateekmedia/netspeedsimplified",
"uuid": "netspeedsimplified@prateekmedia.extension",
- "version": 20
+ "version": 11
}
From 720cffab6a202f5eb3bac1e6651263813c411d7c Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 19:17:29 +0530
Subject: [PATCH 158/344] Fix typo
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 1bbad73..f824cba 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,5 +1,5 @@
{
- "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\n\Added Preference Menu and slight code improvementsn\nWhats New:\n Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, \nRight Click to view total downloaded data in bits and bytes, Lesser Code Better Code,\n new Sigma and Up and down Arrow icons, dynamic width,\n used kb/s instead of Kbps, added spaces where needed,\n If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s,\n Added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuously on any mode to toggle vertical align), \nAdded old icons from simplenetspeed extension(to use it left click 6/7 times continuously to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuously to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuously to toggle Vertical alignment\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nAdded Preference Menu and slight code improvements\n\nWhats New:\n Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, \nRight Click to view total downloaded data in bits and bytes, Lesser Code Better Code,\n new Sigma and Up and down Arrow icons, dynamic width,\n used kb/s instead of Kbps, added spaces where needed,\n If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s,\n Added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuously on any mode to toggle vertical align), \nAdded old icons from simplenetspeed extension(to use it left click 6/7 times continuously to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuously to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuously to toggle Vertical alignment\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
From 6045e9b833830e4198d2c418372846bad4a7d061 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 19:33:01 +0530
Subject: [PATCH 159/344] Upload Screenshot
---
README.md | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c2c2833..c688889 100644
--- a/README.md
+++ b/README.md
@@ -8,8 +8,14 @@
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
-
*Screenshots*
+
+*Screenshots*
+
+ *Above Screenshot is with Matcha dark sea theme*
+
+
+
***Tested on GNOME 3.36 and 3.38***
#### Whats new in this repo version:
From 4d167ac95dbbe9a97f7ec7107cbd8359dc3e5524 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 19:47:03 +0530
Subject: [PATCH 160/344] Update README.md
---
README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index c688889..86f1fac 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
Net speed Simplified
Gnome extension to show network speed
-> GNOME Extensions Link : [prateeksu.gnome/netspeedsimplified](https://extensions.gnome.org/extension/3724/net-speed-simplified/)
+[
](https://extensions.gnome.org/extension/3724/net-speed-simplified/) or [Install Using Terminal](#installing-the-extension-using-terminal)
> Web Link : [prateekmedia.github/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified)
@@ -18,7 +18,7 @@
***Tested on GNOME 3.36 and 3.38***
-#### Whats new in this repo version:
+#### Whats new in v11:
- [x] Add Preference Dialog with lots of default customizations.
- [x] Add Lock Mouse Actions button in Prefrences to disable any mouse click behaviour.
@@ -35,7 +35,7 @@
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
-#### Changelog Till October 29 :
+#### Changelog Till v10 :
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align.
*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
From e6e1adce913f45158e81822c2604fff0c25c6123 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sat, 31 Oct 2020 23:24:45 +0530
Subject: [PATCH 161/344] Add Refresh time adjuster and improve support for
gnome 3.38
---
extension.js | 143 ++++++++++--------
prefs.js | 36 +++++
schemas/gschemas.compiled | Bin 608 -> 664 bytes
....extensions.netspeedsimplified.gschema.xml | 3 +
4 files changed, 118 insertions(+), 64 deletions(-)
diff --git a/extension.js b/extension.js
index 95c0916..2f849bc 100644
--- a/extension.js
+++ b/extension.js
@@ -1,15 +1,17 @@
-const Clutter = imports.gi.Clutter;
-const St = imports.gi.St;
-const Main = imports.ui.main;
-const Gio = imports.gi.Gio;
-const Mainloop = imports.mainloop;
+const Clutter = imports.gi.Clutter,
+ St = imports.gi.St,
+ Main = imports.ui.main,
+ Gio = imports.gi.Gio,
+ GLib = imports.gi.GLib,
+ Mainloop = imports.mainloop;
+
+var refreshTime;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
const Convenience = Me.imports.convenience;
const schema = 'org.gnome.shell.extensions.netspeedsimplified';
-const refreshTime=1.5;
const rCConst=3; //Right Click 4 timees to change Vertical Alignment
const lCConst=5; //Left Click 6 timees to change icon set
@@ -101,41 +103,41 @@ function parseStat() {
lClickCount = 0;
}
}
- while (line = dstream.read_line(null)) {
- line = String(line);
- line = line.trim();
- let fields = line.split(/\W+/);
- if (fields.length<=2) break;
-
- if (fields[0] != "lo" &&
- !fields[0].match(/^virbr[0-9]+/) &&
- !fields[0].match(/^br[0-9]+/) &&
- !fields[0].match(/^vnet[0-9]+/) &&
- !fields[0].match(/^tun[0-9]+/) &&
- !fields[0].match(/^tap[0-9]+/) &&
- !isNaN(parseInt(fields[1]))) {
- count = count + parseInt(fields[1]) + parseInt(fields[9]);
- countUp = countUp + parseInt(fields[9]);
- }
+ while (line = dstream.read_line(null)) {
+ line = String(line);
+ line = line.trim();
+ let fields = line.split(/\W+/);
+ if (fields.length<=2) break;
+
+ if (fields[0] != "lo" &&
+ !fields[0].match(/^virbr[0-9]+/) &&
+ !fields[0].match(/^br[0-9]+/) &&
+ !fields[0].match(/^vnet[0-9]+/) &&
+ !fields[0].match(/^tun[0-9]+/) &&
+ !fields[0].match(/^tap[0-9]+/) &&
+ !isNaN(parseInt(fields[1]))) {
+ count = count + parseInt(fields[1]) + parseInt(fields[9]);
+ countUp = countUp + parseInt(fields[9]);
}
- fstream.close(null);
-
- if (lastCount === 0) lastCount = count;
- if (lastCountUp === 0) lastCountUp = countUp;
-
- let speed = (count - lastCount) / refreshTime,
- speedUp = (countUp - lastCountUp) / refreshTime,
- dot;
- dot = (speed > lastSpeed) ? "⇅" : ""
- if (resetNextCount == true) {
- resetNextCount = false;
- resetCount = count;
- }
+ }
+ fstream.close(null);
+
+ if (lastCount === 0) lastCount = count;
+ if (lastCountUp === 0) lastCountUp = countUp;
+
+ let speed = (count - lastCount) / refreshTime,
+ speedUp = (countUp - lastCountUp) / refreshTime,
+ dot;
+ dot = (speed > lastSpeed) ? "⇅" : ""
+ if (resetNextCount == true) {
+ resetNextCount = false;
+ resetCount = count;
+ }
- newLine = (isVertical && (mode ==2 || mode ==3)) ? "\n" : "";
- var speedy = speedToString(count - resetCount, 1);
- function sped(exta = extRaw, spda = speedy){ return exta + spda; }
- function commonSigma(thr = true /*If true will return a result else will return empty string*/){
+ newLine = (isVertical && (mode ==2 || mode ==3)) ? "\n" : "";
+ var speedy = speedToString(count - resetCount, 1);
+ function sped(exta = extRaw, spda = speedy){ return exta + spda; }
+ function commonSigma(thr = true /*If true will return a result else will return empty string*/){
let sigma = `${DIcons[2]} `;
extRaw = " | " + sigma;
if (thr && mode !=4){
@@ -155,21 +157,21 @@ function parseStat() {
return toReturn;
}
else return "";
- }
- if (useOldIcon) spaCe = "" ;
- else spaCe = " ";
- (speed || speedUp) ? h = 0 : h++
- if(h<=8){
- reuseable_text = (mode >= 0 && mode <= 1) ? `${dot} ${speedToString(speed)} ${commonSigma(togglebool)}` :
- (mode >= 2 && mode <= 3) ? `${DIcons[0]} ${spaCe}${speedToString(speed - speedUp)} ${newLine}${DIcons[1]} ${spaCe}${speedToString(speedUp)} ${commonSigma(togglebool)}` :
- (mode == 4) ? commonSigma(): "Mode Unavailable"
- }
- else reuseable_text = (mode !=4) ? "--".repeat(mode+1) + newLine + commonSigma(togglebool) : commonSigma(togglebool)
- ioSpeed.set_text(reuseable_text);
- lastCount = count;
- lastCountUp = countUp;
- lastSpeed = speed;
- button.set_child(chooseLabel());
+ }
+ if (useOldIcon) spaCe = "" ;
+ else spaCe = " ";
+ (speed || speedUp) ? h = 0 : h++
+ if(h<=8){
+ reuseable_text = (mode >= 0 && mode <= 1) ? `${dot} ${speedToString(speed)} ${commonSigma(togglebool)}` :
+ (mode >= 2 && mode <= 3) ? `${DIcons[0]} ${spaCe}${speedToString(speed - speedUp)} ${newLine}${DIcons[1]} ${spaCe}${speedToString(speedUp)} ${commonSigma(togglebool)}` :
+ (mode == 4) ? commonSigma(): "Mode Unavailable"
+ }
+ else reuseable_text = (mode !=4) ? "--".repeat(mode+1) + newLine + commonSigma(togglebool) : commonSigma(togglebool)
+ ioSpeed.set_text(reuseable_text);
+ lastCount = count;
+ lastCountUp = countUp;
+ lastSpeed = speed;
+ button.set_child(chooseLabel());
} catch (e) {
ioSpeed.set_text(e.message);
}
@@ -206,6 +208,7 @@ function chooseIconSet(){
}
function enable() {
+ refreshTime = settings.get_double('refreshtime');;
mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
fontmode = settings.get_int('fontmode');
togglebool = settings.get_boolean('togglebool');
@@ -214,17 +217,29 @@ function enable() {
lckMuseAct = settings.get_boolean('lockmouseactions');
fontmode = settings.get_int('fontmode');
- button = new St.Bin({
- style_class: 'panel-button',
- reactive: true,
- can_focus: true,
- x_fill: true,
- y_fill: false,
- x_expand: true,
- y_expand: false,
- track_hover: true
- });
+ var [ok, out, err, exit] = GLib.spawn_command_line_sync("gnome-shell --version");
+ output = out.toString().split(" ")[2];
+ if (parseFloat(output) <=3.36) {
+ button = new St.Bin({
+ style_class: 'panel-button',
+ reactive: true,
+ can_focus: true,
+ x_fill: true,
+ y_fill: false,
+ track_hover: true
+ });
+ }
+ else{
+ button = new St.Bin({
+ style_class: 'panel-button',
+ reactive: true,
+ can_focus: true,
+ x_expand: true,
+ y_expand: false,
+ track_hover: true
+ });
+ }
ioSpeed = new St.Label({
text: '---',
y_align: Clutter.ActorAlign.CENTER,
diff --git a/prefs.js b/prefs.js
index 87ce1a1..970aa9b 100644
--- a/prefs.js
+++ b/prefs.js
@@ -30,6 +30,29 @@ Prefs.prototype =
buildPrefsWidget: function()
{
let thset = this.settings;
+ function vBoxSpinBtn(staRt, getDouble, whichHbox, getLbl = ""){
+ if (staRt){;
+ boolComp = (thset.get_double(getDouble) === thset.get_default_value(getDouble).unpack());
+ getLbl = boolComp ? getLbl :
+ `${getLbl}`
+ tootext = boolComp ? "" : "The Value is Changed"
+ whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
+ }
+ else{
+ whichSpinBtn.set_value(thset.get_double(getDouble));
+ whichSpinBtn.connect('value-changed', () => {
+ this.rTValue = parseFloat(whichSpinBtn.get_value().toFixed(1));
+ if(thset.get_double(getDouble) !== this.rTValue){
+ thset.set_double(getDouble , this.rTValue);
+ }
+ });
+ whichHbox.pack_start(whichLbl, true, true, 0);
+ whichHbox.add(whichSpinBtn);
+
+ vbox.add(whichHbox);
+ vbox.add(new Gtk.Separator({visible : true}));
+ }
+ }
function vBoxAddSeleCt(stArt, getInt, whichHbox, getLbl = "", getTooTip = ""){
if (stArt) {
boolComp = (thset.get_int(getInt) == thset.get_default_value(getInt).unpack());
@@ -78,6 +101,19 @@ Prefs.prototype =
let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
let footer = new Gtk.Label({ label: "To See the changes Disable and then re-enable the extension",use_markup: true, margin_top: 20});
+//Refresh time
+ let hboxRTime = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ vBoxSpinBtn(true, "refreshtime", hboxRTime, "Refresh Time");
+ whichSpinBtn = new Gtk.SpinButton({
+ adjustment: new Gtk.Adjustment({
+ lower: 1.0, upper: 10.0, step_increment: .1, page_increment: 1, page_size: 0,
+ }),
+ climb_rate: 1,
+ digits: 1,
+ numeric: true,
+ });
+ vBoxSpinBtn(false, "refreshtime", hboxRTime);
+
//For Modes
let hboxMode = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
vBoxAddSeleCt(true, "mode", hboxMode, "Mode (1-5)", "Choose which mode to load");
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index 87a834ec45e4bca0d25156c75b984a2952992937..ff07c0dca7692f3a4b5a9ff665785c038636b83c 100644
GIT binary patch
literal 664
zcmZ`$!AiqG6ntuHtG(2NAm|4qsL53X@o1GErHJ%knrz#}BwMm;QLKVT!Gk9$`VF2u
z=}E7CffvCq5J7|<1f7?*D2PjDXPEc)C7E5Tc!~64LxVK~-s)>>bZCOJ(?nlb{aQKg
zslq>buU>H*>qRQj8TfpJ2oI^G;WT0u2}d_Y7&>C#h*(P%YbO>)w}c3^j9Q_rOA(+S
z%bMtOy7LT12FMOD4$cAhN5=*J9)4Gr+SCO<0yhgU7kSiKPr`o!KLhzG{mMS;BK$Y-
z2QYhEIc1+U_Y;0P3vAq7cGzc~fnNmA1Iz1kpX{^d{w44V;M?0h_E{I;m%y9A!*x5y
zKI=UE9q=JA%#$@ynL6Mu;Iur`gySMSHx18C!*hSabN`0t5^19vjZoB-3V9-;tl6RR
zcO$i@h36ZNedtTw7KxF*$F1m#R3Oq?e@h0Mb0auG>WR=z
jBcs9b-YQvvU01RBJ@TJ<={=5N7DvGE;=9E)q<8%dNQQ)@
delta 344
zcmbQi`haCZ2xG~_Q0saQ1_)pRQp`Zi3dHPC43Yz5!Qyuyu@XiG1_6dLh7KUz3&aO%
z>$v{|0f@~C6rTa4PXY14wPoxe^&mC}Q2Yjv{tU!kyJppZ#6fHpp!g3)hI$5Jpv_jE
zGJil4AT}3JLIFst0`X>@2h%{}AT~(c07#nxvGmTcPLMc=4H9<%(yl
0
+
+ 1.5
+
false
From 96227f60efd26ca9711af9b3d28b66291c3c814a Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 08:31:52 +0530
Subject: [PATCH 162/344] Add Alt text and remove Left click to change icon
---
README.md | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/README.md b/README.md
index 86f1fac..a0765a5 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,14 @@
-
+
Net speed Simplified
Gnome extension to show network speed
-[
](https://extensions.gnome.org/extension/3724/net-speed-simplified/) or [Install Using Terminal](#installing-the-extension-using-terminal)
+[
](https://extensions.gnome.org/extension/3724/net-speed-simplified/) or [Install Using Terminal](#installing-the-extension-using-terminal)
> Web Link : [prateekmedia.github/netspeedsimplified](https://prateekmedia.github.io/netspeedsimplified)
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
-
+

*Screenshots*
@@ -37,10 +37,10 @@
#### Changelog Till v10 :
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
-- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align.
+- [x] Easy Vertical Aligment for Dash to panel or Big Screen users, to enable this Right Click on any mode continuosly for four times to enable/disable vertical align or simply go to prefrences tab for this extension.
*(If you have vertical align enabled then in mode 5 you will see " -v" written after total net speed)*,
***Tip : You can also change font size in vertical alignment to your liking by middle mouse click on the speed***
-- [x] Easy Switch to Old Icons from simplenetspeed extension, to enable this Left Click continuosly for six or seven times to enable/disable old icons.
+- [x] Easy Switch to Old Icons from simplenetspeed extension, go to prefrences tab for this extension to enable/disable old icons.
*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
#### Todo :
@@ -49,8 +49,7 @@
if you face any **issues** you can **[open pull request](https://github.com/prateekmedia/netspeedsimplified/pulls)** and can type your issue with images or error codes
> **Left click to change modes**,
-
-> **Left click continuosly for 6/7 times to toggle old icons like simplenetspeed extension, You will se "-o" written in 5th mode after total download data if this is enabled**
+
*Modes available:*
1. Total net speed in bits per second
From de402bf84978aa4271e226dfece2430965e4e08f Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 08:33:30 +0530
Subject: [PATCH 163/344] Remove Left click changes icon & other improvement
---
extension.js | 19 ++-----------------
prefs.js | 4 +++-
2 files changed, 5 insertions(+), 18 deletions(-)
diff --git a/extension.js b/extension.js
index 2f849bc..6874b11 100644
--- a/extension.js
+++ b/extension.js
@@ -14,7 +14,6 @@ const Convenience = Me.imports.convenience;
const schema = 'org.gnome.shell.extensions.netspeedsimplified';
const rCConst=3; //Right Click 4 timees to change Vertical Alignment
-const lCConst=5; //Left Click 6 timees to change icon set
let settings,
button, timeout,
@@ -23,9 +22,9 @@ let settings,
mode, // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
fontmode,
resetNextCount=false, resetCount=0,
- reuseable_text, newLine, h=8, tTime=0, ltTime=0, useOldIcon;
+ reuseable_text, newLine, h=8, tTime=0, useOldIcon;
-var extRaw, rClickCount=0, lClickCount=0, isVertical, togglebool, DIcons=[], lckMuseAct;
+var extRaw, rClickCount=0, isVertical, togglebool, DIcons=[], lckMuseAct;
function init() {
settings = Convenience.getSettings(schema);
@@ -50,7 +49,6 @@ function changeMode(widget, event) {
mode++;
if (mode > 4) mode = 0;
settings.set_int('mode', mode);
- lClickCount++;
}
parseStat();
log('mode:' + mode + ' font:' + fontmode);
@@ -90,19 +88,6 @@ function parseStat() {
rClickCount = 0;
}
}
- if (lClickCount != 0) {
- ltTime++;
- if (lClickCount>=lCConst){
- useOldIcon = !useOldIcon;
- settings.set_boolean('useoldicon', useOldIcon);
- chooseIconSet();
- lClickCount =0;
- }
- if(ltTime>lCConst){
- ltTime = 0;
- lClickCount = 0;
- }
- }
while (line = dstream.read_line(null)) {
line = String(line);
line = line.trim();
diff --git a/prefs.js b/prefs.js
index 970aa9b..3c568e9 100644
--- a/prefs.js
+++ b/prefs.js
@@ -30,6 +30,7 @@ Prefs.prototype =
buildPrefsWidget: function()
{
let thset = this.settings;
+
function vBoxSpinBtn(staRt, getDouble, whichHbox, getLbl = ""){
if (staRt){;
boolComp = (thset.get_double(getDouble) === thset.get_default_value(getDouble).unpack());
@@ -53,6 +54,7 @@ Prefs.prototype =
vbox.add(new Gtk.Separator({visible : true}));
}
}
+
function vBoxAddSeleCt(stArt, getInt, whichHbox, getLbl = "", getTooTip = ""){
if (stArt) {
boolComp = (thset.get_int(getInt) == thset.get_default_value(getInt).unpack());
@@ -157,4 +159,4 @@ Prefs.prototype =
return frame;
}
-}
\ No newline at end of file
+}
From acbfd2153682d6017ae8dac04ec0a229b9e3a367 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 09:07:42 +0530
Subject: [PATCH 164/344] Update metadata.json
---
metadata.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/metadata.json b/metadata.json
index f824cba..af14a1e 100644
--- a/metadata.json
+++ b/metadata.json
@@ -1,5 +1,5 @@
{
- "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nAdded Preference Menu and slight code improvements\n\nWhats New:\n Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, \nRight Click to view total downloaded data in bits and bytes, Lesser Code Better Code,\n new Sigma and Up and down Arrow icons, dynamic width,\n used kb/s instead of Kbps, added spaces where needed,\n If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s,\n Added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuously on any mode to toggle vertical align), \nAdded old icons from simplenetspeed extension(to use it left click 6/7 times continuously to toggle old icons) and more coming\n\nLeft Click To change modes.\n\nLeft Click six times continuously to toggle Old Icons\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuously to toggle Vertical alignment\n\nMiddle Click to change font size.",
+ "description": "Fork of Simple Net speed by bijignome \n\nTested on gnome 3.36 and 3.38\n\nAdded Preference Menu with changable refresh rate and slight code improvements\n\nWhats New:\n Clean UI, Reduce refresh time, Fix repetitive code in stylesheet.css, \nRight Click to view total downloaded data in bits and bytes, Lesser Code Better Code,\n new Sigma and Up and down Arrow icons, dynamic width,\n used kb/s instead of Kbps, added spaces where needed,\n If you don't have active net connection for 12 seconds then this extension will show '--' instead of 0 B/s,\n Added vertical align support for dash to panel or big screen users(to use it just right click 4 time continuously on any mode to toggle vertical align), \nAdded old icons from simplenetspeed extension(to use it go to preferences and toggle Use old icons) and more coming\n\nLeft Click To change modes.\n\nModes Available:\n1. Total net speed in bits per second\n2. Total net speed in Bytes per second\n3. Up and down speed in bits per second\n4. Up and down speed in Bytes per second\n5. Total of downloaded in Bytes (Right click to reset counter\n\nRight Click To toggle visibility of Total Up and Down or Reset counter for 5th mode.\n\nRight Click four times continuously to toggle Vertical alignment\n\nMiddle Click to change font size.",
"name": "Net speed Simplified",
"shell-version": [
"3.14",
@@ -26,5 +26,5 @@
],
"url": "https://github.com/prateekmedia/netspeedsimplified",
"uuid": "netspeedsimplified@prateekmedia.extension",
- "version": 11
+ "version": 13
}
From af54689a73a097cd2eac174cdf7b8dcba78d2393 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 09:19:54 +0530
Subject: [PATCH 165/344] Update Install method
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index a0765a5..ee1aae8 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
* Please Mark this extension page as Watch if you want to know about the updates
- ***to install( reload required )( Requirements : git )***
- ```git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```mkdir ~/.local/share/gnome-shell/extensions/; git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
*Or*
@@ -84,7 +84,7 @@ if you face any **issues** you can **[open pull request](https://github.com/prat
You can do that manually using extensions app or [website](https://extensions.gnome.org/local) or Using Gnome tweaks tool's extension tab
- ***to reinstall or update( reload required )( Requirements : git )***
- ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension && git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
+ ```rm -rf ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension; git clone --single-branch --branch main https://github.com/prateekmedia/netspeedsimplified ~/.local/share/gnome-shell/extensions/netspeedsimplified@prateekmedia.extension```
*Or*
From 89d7f82c3ec78709ee047a3523386bad02137909 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 09:26:10 +0530
Subject: [PATCH 166/344] Update Screenshot
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index ee1aae8..e5a0cb8 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
-

+

*Screenshots*
From 23dc3cfce217be27b6961042b0c9797c625bb5be Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 11:30:56 +0530
Subject: [PATCH 167/344] Update support for Gnome shells
---
extension.js | 94 +++++++++---------
prefs.js | 17 +++-
schemas/gschemas.compiled | Bin 664 -> 789 bytes
....extensions.netspeedsimplified.gschema.xml | 10 +-
4 files changed, 69 insertions(+), 52 deletions(-)
diff --git a/extension.js b/extension.js
index 6874b11..dd6f30b 100644
--- a/extension.js
+++ b/extension.js
@@ -2,7 +2,8 @@ const Clutter = imports.gi.Clutter,
St = imports.gi.St,
Main = imports.ui.main,
Gio = imports.gi.Gio,
- GLib = imports.gi.GLib,
+ Lang = imports.lang,
+ PanelMenu = imports.ui.panelMenu,
Mainloop = imports.mainloop;
var refreshTime;
@@ -13,18 +14,42 @@ const Convenience = Me.imports.convenience;
const schema = 'org.gnome.shell.extensions.netspeedsimplified';
-const rCConst=3; //Right Click 4 timees to change Vertical Alignment
+const ButtonName = "ShowNetSpeedButton";
+
+const rCConst=4; //Right Click 4 times to change Vertical Alignment
let settings,
button, timeout,
- ioSpeed, spaCe,
+ spaCe,
lastCount = 0, lastSpeed = 0, lastCountUp = 0,
mode, // 0: kb/s 1: KB/s 2: U:kb/s D:kb/s 3: U:KB/s D:KB/s 4: Total KB
fontmode,
resetNextCount=false, resetCount=0,
- reuseable_text, newLine, h=8, tTime=0, useOldIcon;
+ reuseable_text, newLine, h=8, tTime=0, chooseIconSet;
+
+var extRaw, rClickCount=0, isVertical, togglebool, DIcons=[], DWPos=[], lckMuseAct;
+
+const ShowNetBtn = new Lang.Class({
+ Name: ButtonName,
+ Extends: PanelMenu.Button,
+
+ _init: function () {
+ this.parent(0.0, ButtonName);
+
+ ioSpeed = new St.Label({
+ text: '---',
+ y_align: Clutter.ActorAlign.CENTER,
+ style_class: 'forall'
+ });
+
+
+ (!lckMuseAct) ? this.connect('button-press-event', changeMode) : null
+
+ this.add_child(chooseLabel());
+ },
+
+});
-var extRaw, rClickCount=0, isVertical, togglebool, DIcons=[], lckMuseAct;
function init() {
settings = Convenience.getSettings(schema);
@@ -138,12 +163,12 @@ function parseStat() {
}
else if (mode == 4){
let toReturn = (isVertical) ? sped(sigma) + "\n -v" : sped(sigma);
- toReturn = (useOldIcon) ? toReturn + " -o" : toReturn
+ toReturn = (chooseIconSet !=0) ? toReturn + " -o" : toReturn
return toReturn;
}
else return "";
}
- if (useOldIcon) spaCe = "" ;
+ if (chooseIconSet !=0) spaCe = "" ;
else spaCe = " ";
(speed || speedUp) ? h = 0 : h++
if(h<=8){
@@ -156,7 +181,7 @@ function parseStat() {
lastCount = count;
lastCountUp = countUp;
lastSpeed = speed;
- button.set_child(chooseLabel());
+ button.add_child(chooseLabel());
} catch (e) {
ioSpeed.set_text(e.message);
}
@@ -188,59 +213,34 @@ function speedToString(amount, rMode = 0) {
return String(amount.toFixed(digits)) + " " + speed_map[unit];
}
-function chooseIconSet(){
- DIcons = (useOldIcon) ? ["↓","↑","∑"] : ["🡳","🡱","Σ"];
+function chooseArrayVal(){
+ DIcons = (chooseIconSet ==0) ? ["🡳","🡱","Σ"] :
+ (chooseIconSet ==1) ? ["↓","↑","∑"] :
+ ["","",""]
+ DWPos = ["right", "left", "center"]
}
function enable() {
- refreshTime = settings.get_double('refreshtime');;
- mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s)
+ refreshTime = settings.get_double('refreshtime');
+ mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s);
fontmode = settings.get_int('fontmode');
+ whePosition = settings.get_int('wpos');
togglebool = settings.get_boolean('togglebool');
isVertical = settings.get_boolean('isvertical');
- useOldIcon = settings.get_boolean('useoldicon');
+ chooseIconSet = settings.get_int('chooseiconset');
lckMuseAct = settings.get_boolean('lockmouseactions');
fontmode = settings.get_int('fontmode');
- var [ok, out, err, exit] = GLib.spawn_command_line_sync("gnome-shell --version");
- output = out.toString().split(" ")[2];
-
- if (parseFloat(output) <=3.36) {
- button = new St.Bin({
- style_class: 'panel-button',
- reactive: true,
- can_focus: true,
- x_fill: true,
- y_fill: false,
- track_hover: true
- });
- }
- else{
- button = new St.Bin({
- style_class: 'panel-button',
- reactive: true,
- can_focus: true,
- x_expand: true,
- y_expand: false,
- track_hover: true
- });
- }
- ioSpeed = new St.Label({
- text: '---',
- y_align: Clutter.ActorAlign.CENTER,
- style_class: 'forall'
- });
-
- (!lckMuseAct) ? button.connect('button-press-event', changeMode) : null
- button.set_child(chooseLabel());
+ button = new ShowNetBtn();
- chooseIconSet();
+ chooseArrayVal();
+ whePos = DWPos[whePosition]
- Main.panel._rightBox.insert_child_at_index(button, 0);
+ Main.panel.addToStatusArea(ButtonName, button, 3, whePos);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
function disable() {
Mainloop.source_remove(timeout);
- Main.panel._rightBox.remove_child(button);
+ button.destroy();
}
diff --git a/prefs.js b/prefs.js
index 3c568e9..31871a7 100644
--- a/prefs.js
+++ b/prefs.js
@@ -103,6 +103,14 @@ Prefs.prototype =
let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
let footer = new Gtk.Label({ label: "To See the changes Disable and then re-enable the extension",use_markup: true, margin_top: 20});
+ //For Position
+ let hboxWPos = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ vBoxAddSeleCt(true, "wpos", hboxWPos, "Position", "Choose where to Place the extension");
+ whichVlue.append_text("Right");
+ whichVlue.append_text("Left");
+ whichVlue.append_text("Center");
+ vBoxAddSeleCt(false, "wpos", hboxWPos);
+
//Refresh time
let hboxRTime = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
vBoxSpinBtn(true, "refreshtime", hboxRTime, "Refresh Time");
@@ -142,11 +150,14 @@ Prefs.prototype =
//For Default sigma View
let hboxToggleBool = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddTgglBtn(hboxToggleBool, "Toggle Right Click Behaviour", "togglebool", "Enabling it will show sigma by default");
+ vBoxAddTgglBtn(hboxToggleBool, "Show Total Download speed", "togglebool", "Enabling it will show sigma by default");
//For Toggling Old Icons
- let hboxOldIcons = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddTgglBtn(hboxOldIcons, "Display Old Icons", "useoldicon", "Enabling it will show Old Icons of simplenetspeed");
+ let hboxIconset = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ vBoxAddSeleCt(true, "chooseiconset", hboxIconset, "Choose Icons Set", "Choose which icon set to display");
+ whichVlue.append_text(' 🡳, 🡱, Σ ');
+ whichVlue.append_text(' ↓, ↑, ∑ ');
+ vBoxAddSeleCt(false, "chooseiconset", hboxIconset);
//For Lock Mouse Actions
let hboxLckMuseAct = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index ff07c0dca7692f3a4b5a9ff665785c038636b83c..76e96fabdb984621ca438701792bf4fe6754685e 100644
GIT binary patch
literal 789
zcmZWnF;CS{82wP5JRv4HkeD#y&?eZrJK&}v%)}srrM>UH8{6KO-s@8nG;t(hVlYM*
zet=Fc=pqcPghZWOSX~GS3?vSE&h0C{=uJ=0>A7FO@Am6=Z#k)SQaTx~8{h}E4lXq&
zxHTj48>`-1@-eIMU!AVLV;J=ewx{wuQqP)GHTsfytJq7-nYso45qJwYxU;>^c>bZCOJ(?nlb{aQKg
zslq>buU>H*>qRQj8TfpJ2oI^G;WT0u2}d_Y7&>C#h*(P%YbO>)w}c3^j9Q_rOA(+S
z%bMtOy7LT12FMOD4$cAhN5=*J9)4Gr+SCO<0yhgU7kSiKPr`o!KLhzG{mMS;BK$Y-
z2QYhEIc1+U_Y;0P3vAq7cGzc~fnNmA1Iz1kpX{^d{w44V;M?0h_E{I;m%y9A!*x5y
zKI=UE9q=JA%#$@ynL6Mu;Iur`gySMSHx18C!*hSabN`0t5^19vjZoB-3V9-;tl6RR
zcO$i@h36ZNedtTw7KxF*$F1m#R3Oq?e@h0Mb0auG>WR=z
jBcs9b-YQvvU01RBJ@TJ<={=5N7DvGE;=9E)q<8%dNQQ)@
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index dc79305..e89957a 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -8,8 +8,13 @@
0
+
+
+
+ 0
+
1.5
@@ -18,8 +23,9 @@
false
-
- false
+
+
+ 0
false
From eb1a3ad6f751fbf4eaf835656d051b677561fba5 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 11:45:50 +0530
Subject: [PATCH 168/344] Update Screenshot of prefs
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index e5a0cb8..df09839 100644
--- a/README.md
+++ b/README.md
@@ -8,11 +8,11 @@
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
-
+

*Screenshots*
- *Above Screenshot is with Matcha dark sea theme*
+ *Above Screenshot is with Matcha sea theme*
From 2c9d73d6f69f5ae8937238d12fdec826fa4a80f1 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 11:46:56 +0530
Subject: [PATCH 169/344] Update metadata.json
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index af14a1e..62292bd 100644
--- a/metadata.json
+++ b/metadata.json
@@ -26,5 +26,5 @@
],
"url": "https://github.com/prateekmedia/netspeedsimplified",
"uuid": "netspeedsimplified@prateekmedia.extension",
- "version": 13
+ "version": 14
}
From f7fd1acaad6844920269e8e5083d6047b4b6e949 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Sun, 1 Nov 2020 12:02:00 +0530
Subject: [PATCH 170/344] Update Screenshot
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index df09839..5478ba6 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@
> Forked from : [biji.gnome/simplenetspeed](https://github.com/biji/simplenetspeed)
-
+
*Screenshots*
From 3d2ad7b1688f792ba15701f76a1c0527c74f8f5a Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Tue, 3 Nov 2020 20:31:07 +0530
Subject: [PATCH 171/344] Update chngelog
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 5478ba6..691ad89 100644
--- a/README.md
+++ b/README.md
@@ -18,9 +18,11 @@
***Tested on GNOME 3.36 and 3.38***
-#### Whats new in v11:
+#### Whats new in v11 and above:
- [x] Add Preference Dialog with lots of default customizations.
- [x] Add Lock Mouse Actions button in Prefrences to disable any mouse click behaviour.
+- [x] Add Position menu to decide where to place the indicator on the Panel.
+- [x] Add Refresh time field by which you can change refresh time value between 1.0 sec to 10.0 sec.
#### Feature Highlights :
- [x] Reduce Refresh time
From 66c4d3f1af6c8665f421e85cbcc5af076d2ae407 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 4 Nov 2020 13:23:02 +0530
Subject: [PATCH 172/344] Add Advanced features and code improvements
---
extension.js | 16 +-
prefs.js | 162 ++++++++----------
schemas/gschemas.compiled | Bin 789 -> 867 bytes
....extensions.netspeedsimplified.gschema.xml | 4 +
4 files changed, 84 insertions(+), 98 deletions(-)
diff --git a/extension.js b/extension.js
index dd6f30b..a764a66 100644
--- a/extension.js
+++ b/extension.js
@@ -214,17 +214,16 @@ function speedToString(amount, rMode = 0) {
}
function chooseArrayVal(){
- DIcons = (chooseIconSet ==0) ? ["🡳","🡱","Σ"] :
- (chooseIconSet ==1) ? ["↓","↑","∑"] :
- ["","",""]
- DWPos = ["right", "left", "center"]
+ DIcons = (chooseIconSet ==1) ? ["↓","↑","∑"] :
+ ["🡳","🡱","Σ"]
}
function enable() {
- refreshTime = settings.get_double('refreshtime');
- mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s);
+ refreshTime = settings.get_double('refreshtime');
+ mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s);
fontmode = settings.get_int('fontmode');
- whePosition = settings.get_int('wpos');
+ whePos = ["right", "left", "center"][settings.get_int('wpos')]
+ whePosExt = [3,0][settings.get_int('wposext')];
togglebool = settings.get_boolean('togglebool');
isVertical = settings.get_boolean('isvertical');
chooseIconSet = settings.get_int('chooseiconset');
@@ -234,9 +233,8 @@ function enable() {
button = new ShowNetBtn();
chooseArrayVal();
- whePos = DWPos[whePosition]
- Main.panel.addToStatusArea(ButtonName, button, 3, whePos);
+ Main.panel.addToStatusArea(ButtonName, button, whePosExt, whePos);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
}
diff --git a/prefs.js b/prefs.js
index 31871a7..30460ce 100644
--- a/prefs.js
+++ b/prefs.js
@@ -31,15 +31,24 @@ Prefs.prototype =
{
let thset = this.settings;
- function vBoxSpinBtn(staRt, getDouble, whichHbox, getLbl = ""){
- if (staRt){;
+ function newGtkBox(){
+ return new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
+ }
+
+ function vBoxSpinBtn(getDouble, whichHbox, getLbl = "", lwer , uper, stpInc = 1, digs = 0, nume = true, pgeInc = 1, pgeSiz = 0, clmrate = 1){
boolComp = (thset.get_double(getDouble) === thset.get_default_value(getDouble).unpack());
getLbl = boolComp ? getLbl :
- `${getLbl}`
+ `${getLbl}`
tootext = boolComp ? "" : "The Value is Changed"
whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
- }
- else{
+ whichSpinBtn = new Gtk.SpinButton({
+ adjustment: new Gtk.Adjustment({
+ lower: lwer, upper: uper, step_increment: stpInc, page_increment: pgeInc, page_size: pgeSiz,
+ }),
+ climb_rate: clmrate,
+ digits: digs,
+ numeric: nume,
+ });
whichSpinBtn.set_value(thset.get_double(getDouble));
whichSpinBtn.connect('value-changed', () => {
this.rTValue = parseFloat(whichSpinBtn.get_value().toFixed(1));
@@ -52,32 +61,31 @@ Prefs.prototype =
vbox.add(whichHbox);
vbox.add(new Gtk.Separator({visible : true}));
- }
}
- function vBoxAddSeleCt(stArt, getInt, whichHbox, getLbl = "", getTooTip = ""){
- if (stArt) {
- boolComp = (thset.get_int(getInt) == thset.get_default_value(getInt).unpack());
- getLbl = boolComp ? getLbl :
- `${getLbl}`
- tootext = boolComp ? "" : "The Value is Changed"
- whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
- whichVlue = new Gtk.ComboBoxText({
- halign: Gtk.Align.END,
- tooltip_text: getTooTip
- });
- }
- else {
- whichVlue.set_active(Math.round(thset.get_int(getInt)));
- whichVlue.connect('changed', (widget) => {
- let valueMode = widget.get_active();
- thset.set_int(getInt, valueMode);
- })
- whichHbox.add(whichLbl);
- whichHbox.pack_end(whichVlue, true, true, 0);
- vbox.add(whichHbox);
- vbox.add(new Gtk.Separator({visible : true}));
- }
+ function vBoxAddSeleCt(getInt, whichHbox, getLbl, aRray = [], getTooTip = ""){
+ boolComp = (thset.get_int(getInt) == thset.get_default_value(getInt).unpack());
+ getLbl = boolComp ? getLbl :
+ `${getLbl}`
+ tootext = boolComp ? "" : "The Value is Changed"
+
+ whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
+ whichVlue = new Gtk.ComboBoxText({halign: Gtk.Align.END, tooltip_text: getTooTip});
+
+ for (i in aRray){
+ whichVlue.append_text(aRray[i]);
+ }
+
+ whichVlue.set_active(Math.round(thset.get_int(getInt)));
+ whichVlue.connect('changed', (widget) => {
+ let valueMode = widget.get_active();
+ thset.set_int(getInt, valueMode);
+ })
+ whichHbox.add(whichLbl);
+ whichHbox.pack_end(whichVlue, true, true, 0);
+
+ vbox.add(whichHbox);
+ vbox.add(new Gtk.Separator({visible : true}));
}
function vBoxAddTgglBtn(whichHbox, getLbl, getBool,getTooTip = ""){
@@ -103,71 +111,47 @@ Prefs.prototype =
let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
let footer = new Gtk.Label({ label: "To See the changes Disable and then re-enable the extension",use_markup: true, margin_top: 20});
- //For Position
- let hboxWPos = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddSeleCt(true, "wpos", hboxWPos, "Position", "Choose where to Place the extension");
- whichVlue.append_text("Right");
- whichVlue.append_text("Left");
- whichVlue.append_text("Center");
- vBoxAddSeleCt(false, "wpos", hboxWPos);
-
-//Refresh time
- let hboxRTime = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxSpinBtn(true, "refreshtime", hboxRTime, "Refresh Time");
- whichSpinBtn = new Gtk.SpinButton({
- adjustment: new Gtk.Adjustment({
- lower: 1.0, upper: 10.0, step_increment: .1, page_increment: 1, page_size: 0,
- }),
- climb_rate: 1,
- digits: 1,
- numeric: true,
- });
- vBoxSpinBtn(false, "refreshtime", hboxRTime);
-
- //For Modes
- let hboxMode = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddSeleCt(true, "mode", hboxMode, "Mode (1-5)", "Choose which mode to load");
- whichVlue.append_text("Mode 1");
- whichVlue.append_text("Mode 2");
- whichVlue.append_text("Mode 3");
- whichVlue.append_text("Mode 4");
- whichVlue.append_text("Mode 5");
- vBoxAddSeleCt(false, "mode", hboxMode);
-
- //For FontModes
- let hboxFontMode = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddSeleCt(true, "fontmode", hboxFontMode, "Font Mode", "Choose which font to display");
- whichVlue.append_text("Default");
- whichVlue.append_text("Smallest");
- whichVlue.append_text("Smaller");
- whichVlue.append_text("Small");
- whichVlue.append_text("Large");
- vBoxAddSeleCt(false, "fontmode", hboxFontMode);
-
-//For Vertical Alignment
- let hboxVertical = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddTgglBtn(hboxVertical, "Vertical Align", "isvertical", "Changing it will toggle Vertical Alignment");
-
-//For Default sigma View
- let hboxToggleBool = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddTgglBtn(hboxToggleBool, "Show Total Download speed", "togglebool", "Enabling it will show sigma by default");
-
-//For Toggling Old Icons
- let hboxIconset = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddSeleCt(true, "chooseiconset", hboxIconset, "Choose Icons Set", "Choose which icon set to display");
- whichVlue.append_text(' 🡳, 🡱, Σ ');
- whichVlue.append_text(' ↓, ↑, ∑ ');
- vBoxAddSeleCt(false, "chooseiconset", hboxIconset);
-
-//For Lock Mouse Actions
- let hboxLckMuseAct = new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
- vBoxAddTgglBtn(hboxLckMuseAct, "Lock Mouse Actions", "lockmouseactions", "Enabling it will Lock Mouse Actions");
+ //For Position
+ let hboxWPos = newGtkBox();
+ vBoxAddSeleCt("wpos", hboxWPos, "Position on the Panel", ["Right","Left","Center"], "Choose where to Place the extension on the Panel");
+
+ //For Position Extras
+ let hboxWPosExt = newGtkBox();
+ vBoxAddSeleCt("wposext", hboxWPosExt, "Position(Advanced)", ["Prefer Right Side", "Prefer Left Side"], "Choose further where to Place the extension");
+
+ //Refresh time
+ let hboxRTime = newGtkBox();
+ vBoxSpinBtn("refreshtime", hboxRTime, "Refresh Time", 1.0, 10.0, .1, 1);
+
+ //For Modes
+ let hboxMode = newGtkBox();
+ vBoxAddSeleCt("mode", hboxMode, "Mode", ["Mode 1", "Mode 2", "Mode 3", "Mode 4", "Mode 5"], "Choose which mode to load");
+
+ //For FontModes
+ let hboxFontMode = newGtkBox();
+ vBoxAddSeleCt("fontmode", hboxFontMode, "Font Mode", ["Default", "Smallest","Smaller","Small","Large"], "Choose which font to display");
+
+ //For Vertical Alignment
+ let hboxVertical = newGtkBox();
+ vBoxAddTgglBtn(hboxVertical, "Vertical Align", "isvertical", "Changing it will toggle Vertical Alignment");
+
+ //For Default sigma View
+ let hboxToggleBool = newGtkBox();
+ vBoxAddTgglBtn(hboxToggleBool, "Show Total Download speed", "togglebool", "Enabling it will show sigma by default");
+
+ //For Toggling Old Icons
+ let hboxIconset = newGtkBox();
+ vBoxAddSeleCt("chooseiconset", hboxIconset, "Choose Icons Set", [" 🡳, 🡱, Σ ", " ↓, ↑, ∑ "], "Choose which icon set to display");
+
+ //For Lock Mouse Actions
+ let hboxLckMuseAct = newGtkBox();
+ vBoxAddTgglBtn(hboxLckMuseAct, "Lock Mouse Actions", "lockmouseactions", "Enabling it will Lock Mouse Actions");
frame.add(label);
frame.add(vbox);
frame.add(footer);
frame.show_all();
-
+
return frame;
}
}
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index 76e96fabdb984621ca438701792bf4fe6754685e..d68e952dbd0f7f81b649bad4176e367644d02d60 100644
GIT binary patch
literal 867
zcmZ`%F^JSa6#aU)?s`7mZ!*VcF3MEigTDb!4i_KkQ}^M|z{g;8
zbx@0J$O?E3`1I=QE-mUq$Pd9O@aEaHPoH`Teg(b8&t({`$Ar_&^-FTr+Lt5L1Ob2lJX`Pf`iT5oZ}{YS2{P1~
zWvDYZ>6OAH*W(dr3ztQ8x`lRunI`(dVNbL~FVHXW_VCfU
z2krfXBoAV5BHw_Xf=;fv#~;{7kzYV>z}VgDA?NH9$lK5-u4Q`XoU`Zr8Ttwq?=QnS
z?0HU4OcQ*1_f0K%4%Ecl9!j#HC`n)KbkD@!7MC1%WQbu(~vU(7{!s>;`$$b>!;!-+r@
QizT_GR7uYp8Qm45zv{ADApigX
diff --git a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
index e89957a..ebf78f6 100644
--- a/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
@@ -12,6 +12,10 @@
0
+
+
+
+ 0
From a0f04f84c30a5b37ea34128f6a87c2c4f828128d Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 4 Nov 2020 13:34:48 +0530
Subject: [PATCH 173/344] Update README.md
---
README.md | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 691ad89..760a67c 100644
--- a/README.md
+++ b/README.md
@@ -21,21 +21,22 @@
#### Whats new in v11 and above:
- [x] Add Preference Dialog with lots of default customizations.
- [x] Add Lock Mouse Actions button in Prefrences to disable any mouse click behaviour.
-- [x] Add Position menu to decide where to place the indicator on the Panel.
+- [x] Add Position menu(with Advanced option) to pinpoint where to place the indicator on the Panel.
- [x] Add Refresh time field by which you can change refresh time value between 1.0 sec to 10.0 sec.
#### Feature Highlights :
-- [x] Reduce Refresh time
-- [x] Supports GNOME SHELL 3.38
+- [x] Adjustabl Refresh time
+- [x] Supports GNOME SHELL 3.38 and previous versions compatible
- [x] Changes width accordingly / dynamic width
- [x] Centred and more cleaner ui
- [x] Changed Kbps to kbp/s
- [x] New sigma icon that respects vertical alignment(old: ∑ , new: Σ)
- [x] New Speed up and down icons for mode 3 & 4. (old: ↓ and ↑ , new: 🡳 and 🡱)
- [x] Added space b/w speed and their units
-- [x] Human readable stylesheet // used minimum width and removed repetitive codes
+- [x] Human readable stylesheet // used min-width and removed repetitive codes
- [x] Used ES6 classes for less code and more efficent javascript
- [x] Right Click to toggle visibility of total data used //If you will Right click on 5th mode i.e. total speed mode then total speed counter will reset to 0 MB.
+- [x] Add Preference Menu to customize the whole extension as you need
#### Changelog Till v10 :
- [x] If network is not connected, then after 12 sec display text "--" for 1st mode, "----" for 2nd mode, "------" for 3rd mode, "--------" for 4th mode, for fifth mode it will display total data used(MB), Normal Right click functionality will show total data used except in 5th mode
From 422381ac23dc39e1a96678bc48406afe910ef8c9 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 4 Nov 2020 13:37:28 +0530
Subject: [PATCH 174/344] Remove TODO from Readme
---
README.md | 3 ---
1 file changed, 3 deletions(-)
diff --git a/README.md b/README.md
index 760a67c..29d412c 100644
--- a/README.md
+++ b/README.md
@@ -46,9 +46,6 @@
- [x] Easy Switch to Old Icons from simplenetspeed extension, go to prefrences tab for this extension to enable/disable old icons.
*(If you have old icons enabled then in mode 5 you will see " -o" written after total net speed)*
-#### Todo :
-***Nothing TODO***
-
if you face any **issues** you can **[open pull request](https://github.com/prateekmedia/netspeedsimplified/pulls)** and can type your issue with images or error codes
> **Left click to change modes**,
From 75665bba5a3aaeaa2a96716701fdd88c488c7a9b Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 4 Nov 2020 14:12:48 +0530
Subject: [PATCH 175/344] Improve Code and Syntax
---
extension.js | 11 +++--------
prefs.js | 28 ++++++++++++++--------------
2 files changed, 17 insertions(+), 22 deletions(-)
diff --git a/extension.js b/extension.js
index a764a66..09a24fa 100644
--- a/extension.js
+++ b/extension.js
@@ -27,7 +27,7 @@ let settings,
resetNextCount=false, resetCount=0,
reuseable_text, newLine, h=8, tTime=0, chooseIconSet;
-var extRaw, rClickCount=0, isVertical, togglebool, DIcons=[], DWPos=[], lckMuseAct;
+var extRaw, rClickCount=0, isVertical, togglebool, DIcons=[], lckMuseAct;
const ShowNetBtn = new Lang.Class({
Name: ButtonName,
@@ -208,16 +208,11 @@ function speedToString(amount, rMode = 0) {
return Number.isInteger(parseFloat(amnt.toFixed(digitsToFix)));
}
digits = ChkifInt(amount) ? 0 : //For Integer like 21.0
- ((mode==4 || rMode !=0) && !ChkifInt(amount*10)) ? 2 /* For floats like 21.1 */ : 1 //For floats like 21.22
+ ((mode==4 || rMode !=0) && !ChkifInt(amount*10)) ? 2 /* For floats like 21.11 */ : 1 //For floats like 21.2
return String(amount.toFixed(digits)) + " " + speed_map[unit];
}
-function chooseArrayVal(){
- DIcons = (chooseIconSet ==1) ? ["↓","↑","∑"] :
- ["🡳","🡱","Σ"]
-}
-
function enable() {
refreshTime = settings.get_double('refreshtime');
mode = settings.get_int('mode'); // default mode using bit (b/s, kb/s);
@@ -229,10 +224,10 @@ function enable() {
chooseIconSet = settings.get_int('chooseiconset');
lckMuseAct = settings.get_boolean('lockmouseactions');
fontmode = settings.get_int('fontmode');
+ DIcons = [ ["🡳","🡱","Σ"] , ["↓","↑","∑"] ][chooseIconSet]
button = new ShowNetBtn();
- chooseArrayVal();
Main.panel.addToStatusArea(ButtonName, button, whePosExt, whePos);
timeout = Mainloop.timeout_add_seconds(refreshTime, parseStat);
diff --git a/prefs.js b/prefs.js
index 30460ce..d88fb88 100644
--- a/prefs.js
+++ b/prefs.js
@@ -1,5 +1,4 @@
const Gtk = imports.gi.Gtk;
-const Lang = imports.lang;
const Extension = imports.misc.extensionUtils.getCurrentExtension();
const Lib = Extension.imports.lib;
@@ -35,15 +34,14 @@ Prefs.prototype =
return new Gtk.Box({orientation: Gtk.Orientation.HORIZONTAL, margin_top : 10, margin_bottom : 10});
}
- function vBoxSpinBtn(getDouble, whichHbox, getLbl = "", lwer , uper, stpInc = 1, digs = 0, nume = true, pgeInc = 1, pgeSiz = 0, clmrate = 1){
+ function vBoxSpinBtn(getDouble, whichHbox, getLbl = "", getTooTip = "", lwer , uper, stpInc = 1, digs = 0, nume = true, pgeInc = 1, pgeSiz = 0, clmrate = 1){
boolComp = (thset.get_double(getDouble) === thset.get_default_value(getDouble).unpack());
getLbl = boolComp ? getLbl :
`${getLbl}`
- tootext = boolComp ? "" : "The Value is Changed"
- whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
+ whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: getTooTip });
whichSpinBtn = new Gtk.SpinButton({
adjustment: new Gtk.Adjustment({
- lower: lwer, upper: uper, step_increment: stpInc, page_increment: pgeInc, page_size: pgeSiz,
+ lower: lwer, upper: uper, step_increment: stpInc, page_increment: pgeInc, page_size: pgeSiz
}),
climb_rate: clmrate,
digits: digs,
@@ -69,8 +67,8 @@ Prefs.prototype =
`${getLbl}`
tootext = boolComp ? "" : "The Value is Changed"
- whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
- whichVlue = new Gtk.ComboBoxText({halign: Gtk.Align.END, tooltip_text: getTooTip});
+ whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0,tooltip_text: getTooTip});
+ whichVlue = new Gtk.ComboBoxText({halign: Gtk.Align.END, tooltip_text: tootext });
for (i in aRray){
whichVlue.append_text(aRray[i]);
@@ -88,14 +86,14 @@ Prefs.prototype =
vbox.add(new Gtk.Separator({visible : true}));
}
- function vBoxAddTgglBtn(whichHbox, getLbl, getBool,getTooTip = ""){
+ function vBoxAddTgglBtn(whichHbox, getLbl, getBool, getTooTip = ""){
boolComp = (thset.get_boolean(getBool) == thset.get_default_value(getBool).unpack());
getLbl = boolComp ? getLbl :
`${getLbl}`
tootext = boolComp ? "" : "The Value is Changed"
- whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: tootext });
- whichVlue = new Gtk.Switch({active: thset.get_boolean(getBool), tooltip_text: getTooTip });
- whichVlue.connect('notify::active', (widget, whichVlue) => {
+ whichLbl = new Gtk.Label({label: getLbl, use_markup: true, xalign: 0, tooltip_text: getTooTip });
+ whichVlue = new Gtk.Switch({active: thset.get_boolean(getBool), tooltip_text: tootext });
+ whichVlue.connect('notify::active', (widget) => {
thset.set_boolean(getBool, widget.active);
})
@@ -109,7 +107,8 @@ Prefs.prototype =
let frame = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, border_width: 10});
let label = new Gtk.Label({ label: "Default Settings", use_markup: true, xalign:0});
let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
- let footer = new Gtk.Label({ label: "To See the changes Disable and then re-enable the extension",use_markup: true, margin_top: 20});
+ let footer1 = new Gtk.Label({ label: "To See the changes Disable and then re-enable the extension",use_markup: true, margin_top: 20});
+ let footer2 = new Gtk.Label({ label: "Pro Tip : Hover over any Label To know more about it",use_markup: true, margin_top: 20});
//For Position
let hboxWPos = newGtkBox();
@@ -121,7 +120,7 @@ Prefs.prototype =
//Refresh time
let hboxRTime = newGtkBox();
- vBoxSpinBtn("refreshtime", hboxRTime, "Refresh Time", 1.0, 10.0, .1, 1);
+ vBoxSpinBtn("refreshtime", hboxRTime, "Refresh Time", "Change Refresh time value from anywhere b/w 1 to 10", 1.0, 10.0, .1, 1);
//For Modes
let hboxMode = newGtkBox();
@@ -149,7 +148,8 @@ Prefs.prototype =
frame.add(label);
frame.add(vbox);
- frame.add(footer);
+ frame.add(footer1);
+ frame.add(footer2);
frame.show_all();
return frame;
From 5650e7bd0697742fd96732d48ef9ec69614d0c29 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 4 Nov 2020 14:32:01 +0530
Subject: [PATCH 176/344] Bump version to 15
---
metadata.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/metadata.json b/metadata.json
index 62292bd..1978716 100644
--- a/metadata.json
+++ b/metadata.json
@@ -26,5 +26,5 @@
],
"url": "https://github.com/prateekmedia/netspeedsimplified",
"uuid": "netspeedsimplified@prateekmedia.extension",
- "version": 14
+ "version": 15
}
From b0f2c7866bdc905dac7fcb76f7e9d14982b39c24 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 11 Nov 2020 02:57:52 -0500
Subject: [PATCH 177/344] Add Real time changes in settings
After installing this update, whenever you will change something in settings it will show effect on extension in RealTime..
---
extension.js | 8 +++++++-
prefs.js | 9 +++++----
schemas/gschemas.compiled | Bin 867 -> 915 bytes
...ll.extensions.netspeedsimplified.gschema.xml | 3 +++
4 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/extension.js b/extension.js
index 09a24fa..55a5a45 100644
--- a/extension.js
+++ b/extension.js
@@ -6,7 +6,7 @@ const Clutter = imports.gi.Clutter,
PanelMenu = imports.ui.panelMenu,
Mainloop = imports.mainloop;
-var refreshTime;
+var refreshTime, toRestart;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = ExtensionUtils.getCurrentExtension();
@@ -93,6 +93,7 @@ function chooseLabel() {
}
function parseStat() {
+ toRestart = settings.get_boolean('restartextension');
try {
let input_file = Gio.file_new_for_path('/proc/net/dev');
let fstream = input_file.read(null);
@@ -182,6 +183,11 @@ function parseStat() {
lastCountUp = countUp;
lastSpeed = speed;
button.add_child(chooseLabel());
+ if (toRestart != false){
+ settings.set_boolean('restartextension', false);
+ disable();
+ enable();
+ }
} catch (e) {
ioSpeed.set_text(e.message);
}
diff --git a/prefs.js b/prefs.js
index d88fb88..002bf98 100644
--- a/prefs.js
+++ b/prefs.js
@@ -52,6 +52,7 @@ Prefs.prototype =
this.rTValue = parseFloat(whichSpinBtn.get_value().toFixed(1));
if(thset.get_double(getDouble) !== this.rTValue){
thset.set_double(getDouble , this.rTValue);
+ thset.set_boolean('restartextension' , true);
}
});
whichHbox.pack_start(whichLbl, true, true, 0);
@@ -78,6 +79,7 @@ Prefs.prototype =
whichVlue.connect('changed', (widget) => {
let valueMode = widget.get_active();
thset.set_int(getInt, valueMode);
+ thset.set_boolean('restartextension' , true);
})
whichHbox.add(whichLbl);
whichHbox.pack_end(whichVlue, true, true, 0);
@@ -95,6 +97,7 @@ Prefs.prototype =
whichVlue = new Gtk.Switch({active: thset.get_boolean(getBool), tooltip_text: tootext });
whichVlue.connect('notify::active', (widget) => {
thset.set_boolean(getBool, widget.active);
+ thset.set_boolean('restartextension' , true);
})
whichHbox.pack_start(whichLbl, true, true, 0);
@@ -107,8 +110,7 @@ Prefs.prototype =
let frame = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, border_width: 10});
let label = new Gtk.Label({ label: "Default Settings", use_markup: true, xalign:0});
let vbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, margin_left: 20});
- let footer1 = new Gtk.Label({ label: "To See the changes Disable and then re-enable the extension",use_markup: true, margin_top: 20});
- let footer2 = new Gtk.Label({ label: "Pro Tip : Hover over any Label To know more about it",use_markup: true, margin_top: 20});
+ let mfooter = new Gtk.Label({ label: "Pro Tip : Hover over any Label To know more about it",use_markup: true, margin_top: 20});
//For Position
let hboxWPos = newGtkBox();
@@ -148,8 +150,7 @@ Prefs.prototype =
frame.add(label);
frame.add(vbox);
- frame.add(footer1);
- frame.add(footer2);
+ frame.add(mfooter);
frame.show_all();
return frame;
diff --git a/schemas/gschemas.compiled b/schemas/gschemas.compiled
index d68e952dbd0f7f81b649bad4176e367644d02d60..2369bf9f71f227a1165876efc18a258d30bb9c80 100644
GIT binary patch
literal 915
zcmah`F^kkd6n=WQ?z-p6SqKMWXOW;L_7-QS=+%cDSC~s?H-kxL$&BkMDu_0MonWDb
z_X89JD{a(T5KG0z!p24fn{7nDZ?f4twD7TCzHh(0nV0w8*|ntBN#$f3%ixQR4)(St
zxN}(KH==pB>T@>W-~PGrm}%4}<(%9Hf88U3pO|_W4J%Ws$mXgjBDLjIWwohnR4Hdi
zN@Z4;qe2g~%8-u;4m9k~^A2JTm8SJWj=Keeh$6^v@@X=S(Ursr@;Hu
z+c%g`J&*k7;CDb8u21MwFTno@o_yJIu^m1vgSe2xX(?<#-*bJQ+4hywuOws(;cC2cr(`5QT
z8YM3G$r59kv0rBFml^LYGyZp(v4|a*%9SQl&3QiSspKvt(80Ap>o5#4i)OzVhY#+T
zd**JjI=}ZG`0B{`Z*TAM`8)U2YEUbiJ6+CdPFC7n97p_EY53R~2{P2rGSug_=%#tY
mXM2XVcYWuqnfCo(eW18YYBw7UPa`nrG&d-rQ_Nodzs?_`xT;_P
literal 867
zcmZ`%F^JSa6#aU)?s`7mZ!*VcF3MEigTDb!4i_KkQ}^M|z{g;8
zbx@0J$O?E3`1I=QE-mUq$Pd9O@aEaHPoH`Teg(b8&t({`$Ar_&^-FTr+Lt5L1Ob2lJX`Pf`iT5oZ}{YS2{P1~
zWvDYZ>6OA
false
+
+ false
+
0
From 68b8e58d05ec0c32cd4fb1eb126e415447716923 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 11 Nov 2020 02:59:50 -0500
Subject: [PATCH 178/344] Update code
---
extension.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/extension.js b/extension.js
index 55a5a45..afc2482 100644
--- a/extension.js
+++ b/extension.js
@@ -183,7 +183,7 @@ function parseStat() {
lastCountUp = countUp;
lastSpeed = speed;
button.add_child(chooseLabel());
- if (toRestart != false){
+ if (toRestart == true){
settings.set_boolean('restartextension', false);
disable();
enable();
From 0345b08705314d2e89165205c41b860accfd45b2 Mon Sep 17 00:00:00 2001
From: Prateek SU <41370460+prateekmedia@users.noreply.github.com>
Date: Wed, 11 Nov 2020 03:26:20 -0500
Subject: [PATCH 179/344] Add screenshot file
---
screenshoot.png | Bin 0 -> 77319 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 screenshoot.png
diff --git a/screenshoot.png b/screenshoot.png
new file mode 100644
index 0000000000000000000000000000000000000000..6ad54a65b162a39acbaa11ea09f3e7173c51e200
GIT binary patch
literal 77319
zcmafaWl$Z#7AAo}aCdhN?(T5$aB+7JZovueT-+u2#oZ;iySqCCcU#`ut=g^KA3Ieu
z-FAddMMd?0$^YLZH8u73@83V=
zpOODF_sf?rXaY_Q4Bs_0G(P2=oSYmS9JI8w?Ck9H^z>|OY@e0W(9ke4GP1I=GB7YO
zGc%KtlJfBI@bmLyVPU~Sejy?xTwh-q9vxa(oSU2;7ZDNu0)?=%yDcXtCn+fj1S+F{
z{nFXl@mYUMOH+S;ueY}s$+s_V?r!z#kpThzUtn+&;^NHB&5eu<
z^>lS0;mA%-_RGq^p`jr*Hr7>Dm6;jom)Dn5LrsfQ-Cxn^a&oc}5fP{{zvZ`&!ST4l
z67c?D!C6}#7NbEcE-vbwo?|CQp%FD3U0m|g=F7|bBZvv5$4kNj4`~M~fgzHCrqCE}
zFP-l#UOD}@HeO4}u2xu>@10Wn1)c+*$#i~mJ;fDhS1wh^A{w^g>1d>mLVYu31bm;)BH_NwD04g
zBEALw`Proz19@wYUUi>Chs*`2r~=`7ZW{fD%sqaozV>wB3;ui8AW1;gu(TuCOcexk
zarMtnUIz){3;l+SgsAGTl{24jI;vLb_Y?odZqMW|xa-*KHudY+ozJPr<4vIHm45_9
z{=md*jiBr%54R)}9p(kZC}3h0Qq_}+7NHTqadF^=5WBuLzI1s%ykwW={SXmR?Ymj3
zm;*cO$r?9<6zvtZ;gT($NocfjkzsxYA%
z;4SClm0KM-_Vwg2=ls$2?btoX@BN8c=>0?J<8{;5O_l8K#!qNqWIN99{XB#8E|S8j
zI0W>(Z{hcBxmPFr5g&|+0PaNwPrh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