Initial commit

master
Frank Ploss 8 years ago
commit 9d398d77e1

@ -0,0 +1,43 @@
'use strict';
const Lang = imports.lang;
const St = imports.gi.St;
const Main = imports.ui.main;
const PanelMenu = imports.ui.panelMenu;
const IndicatorName = "Tor";
const DisabledIcon = 'my-caffeine-off-symbolic';
const EnabledIcon = 'my-caffeine-on-symbolic';
const TorIcon = 'tor';
let torButton;
const TorButton = new Lang.Class({
Name: IndicatorName,
Extends: PanelMenu.Button,
_init: function(metadata, params) {
this.parent(null, IndicatorName);
this._icon = new St.Icon({
icon_name: TorIcon,
style_class: 'system-status-icon'
});
this.actor.add_child(this._icon);
}
});
function init(extensionMeta) {
let theme = imports.gi.Gtk.IconTheme.get_default();
theme.append_search_path(extensionMeta.path + "/icons");
}
function enable() {
torButton = new TorButton();
Main.panel.addToStatusArea(IndicatorName, torButton);
}
function disable() {
torButton.destroy();
torButton = null;
}

@ -0,0 +1,172 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="tor.svg"
height="16"
id="svg7384"
inkscape:version="0.48.5 r10040"
version="1.1"
width="16">
<metadata
id="metadata90">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Gnome Symbolic Icon Theme</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
inkscape:bbox-paths="false"
bordercolor="#666666"
borderopacity="1"
inkscape:current-layer="layer11"
inkscape:cx="-6.3732394"
inkscape:cy="8.0949455"
gridtolerance="10"
inkscape:guide-bbox="true"
guidetolerance="10"
id="namedview88"
inkscape:object-nodes="false"
inkscape:object-paths="false"
objecttolerance="10"
pagecolor="#555753"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
showborder="false"
showgrid="true"
showguides="true"
inkscape:snap-bbox="true"
inkscape:snap-bbox-midpoints="false"
inkscape:snap-global="true"
inkscape:snap-grids="true"
inkscape:snap-nodes="false"
inkscape:snap-others="false"
inkscape:snap-to-guides="true"
inkscape:window-height="873"
inkscape:window-maximized="1"
inkscape:window-width="1600"
inkscape:window-x="0"
inkscape:window-y="27"
inkscape:zoom="22.627417">
<inkscape:grid
empspacing="2"
enabled="true"
id="grid4866"
originx="-42.000009px"
originy="412px"
snapvisiblegridlinesonly="true"
spacingx="1px"
spacingy="1px"
type="xygrid"
visible="true" />
<sodipodi:guide
orientation="0,1"
position="3.4692426,9.4354561"
id="guide4029" />
</sodipodi:namedview>
<title
id="title9167">Gnome Symbolic Icon Theme</title>
<defs
id="defs7386" />
<g
inkscape:groupmode="layer"
id="layer9"
inkscape:label="status"
style="display:inline"
transform="translate(-283.00021,-629)" />
<g
inkscape:groupmode="layer"
id="layer10"
inkscape:label="devices"
transform="translate(-283.00021,-629)" />
<g
inkscape:groupmode="layer"
id="layer11"
inkscape:label="apps"
style="display:inline"
transform="translate(-283.00021,-629)">
<path
style="fill:#808080;fill-opacity:1"
id="path4380"
d="m 294.64629,626.00001 c -1.30605,0.94094 -2.44362,2.00854 -3.15977,3.42675 l 0.50573,-2.00855 c -0.75673,1.34839 -1.27592,2.74292 -1.4418,4.10633 l -1.01543,-0.67957 -0.18237,0.14037 c 0.91286,1.64289 0.43566,2.51364 -0.0137,2.82261 -0.91287,0.63194 -2.24732,1.41821 -2.90722,2.1063 -1.278,1.30594 -1.64341,2.55583 -1.53104,4.19882 0.12638,2.10652 1.65734,3.86167 3.70751,4.54977 0.89866,0.29499 1.72719,0.33716 2.65403,0.33716 1.48856,0 3.01928,-0.39297 4.12864,-1.31981 1.17956,-0.98296 1.88195,-2.45763 1.88195,-3.98824 0,-1.54471 -0.64603,-3.00555 -1.78355,-4.04468 -0.60388,-0.54762 -1.36256,-0.99661 -2.14894,-1.43196 -0.35104,-0.19669 -1.43239,-1.03903 -1.06726,-2.24668 l -0.78191,-0.10694 c 1.08506,-1.6987 2.49674,-3.38715 4.26442,-4.96302 -1.36208,0.46343 -2.5693,1.16579 -3.46808,2.42969 0.53364,-1.10935 1.40394,-2.21901 2.35884,-3.32836 z"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccccccccscscccccccc" />
<path
inkscape:connector-curvature="0"
d="m 294.64629,626.00001 c -1.30605,0.94094 -2.44362,2.00854 -3.15977,3.42675 l 0.50573,-2.00855 c -0.75673,1.34839 -1.27592,2.74292 -1.4418,4.10633 l -1.01543,-0.67957 -0.18237,0.14037 c 0.91286,1.64289 0.43566,2.51364 -0.0137,2.82261 -0.91287,0.63194 -2.24732,1.41821 -2.90722,2.1063 -1.278,1.30594 -1.64341,2.55583 -1.53104,4.19882 0.12638,2.10652 1.65734,3.86167 3.70751,4.54977 0.89866,0.29499 1.72719,0.33716 2.65403,0.33716 1.48856,0 3.01928,-0.39297 4.12864,-1.31981 1.17956,-0.98296 1.88195,-2.45763 1.88195,-3.98824 0,-1.54471 -0.64603,-3.00555 -1.78355,-4.04468 -0.60388,-0.54762 -1.36256,-0.99661 -2.14894,-1.43196 -0.35104,-0.19669 -1.43239,-1.03903 -1.06726,-2.24668 l -0.78191,-0.10694 c 1.08506,-1.6987 2.49674,-3.38715 4.26442,-4.96302 -1.36208,0.46343 -2.5693,1.16579 -3.46808,2.42969 0.53364,-1.10935 1.40394,-2.21901 2.35884,-3.32836 z m -4.9007,5.27986 0.79501,0.32798 c 0,4.1e-4 6e-5,7.9e-4 0,9.5e-4 l 0.34963,0.15218 -0.009,0 0,7.74234 c -0.15499,0.46407 -0.28837,0.53929 -0.65858,0.97542 -0.43524,0.50558 -0.50772,1.24998 -0.50772,1.85376 0,0.25284 0.10096,0.53355 0.19943,0.80027 0.11224,0.2809 0.20829,0.56084 0.36274,0.7714 0.1991,0.29285 0.44612,0.4769 0.60413,0.54642 l 0,0.0361 c -0.54009,-0.11524 -1.15871,-0.30703 -1.52904,-0.62449 -0.74423,-0.64593 -1.40341,-1.72621 -1.48773,-2.66715 -0.0701,-0.7723 0.64492,-1.91105 1.64188,-2.48676 0.84252,-0.49148 1.03824,-1.05141 1.22076,-1.95018 -0.25276,0.78639 -0.49026,1.44562 -1.30472,1.86689 -1.17958,0.61784 -1.78461,1.65465 -1.72847,2.63762 0.0843,1.2638 0.59047,2.11999 1.58744,2.80819 0.28915,0.20242 0.75027,0.41305 1.17023,0.55231 -1.53189,-0.35451 -1.68372,-0.51971 -2.12531,-1.04167 0,-0.028 -0.11225,-0.0985 -0.11225,-0.12665 -0.56171,-0.64603 -1.27828,-1.74137 -1.53102,-2.75243 -0.0843,-0.35102 -0.16849,-0.72988 -0.0701,-1.08102 0.46332,-1.65709 1.47439,-2.30301 2.48545,-2.99119 0.25273,-0.16844 0.49133,-0.33733 0.73009,-0.50575 0.56172,-0.43536 0.70277,-1.60065 0.82914,-2.24668 -0.23885,0.80037 -0.47785,1.78344 -0.91311,2.10629 -0.22466,0.18252 -0.50511,0.32311 -0.74387,0.47756 -1.0532,0.71615 -2.09266,1.39022 -2.57005,3.10335 -0.11224,0.43545 -0.0281,0.75807 0.0701,1.17941 0.26672,1.05323 0.98321,2.17673 1.573,2.85083 0,0 0.0977,0.0982 0.0977,0.11225 0.26763,0.30882 0.61264,0.52729 1.01807,0.70253 -0.35273,-0.0978 -0.69358,-0.22212 -1.01741,-0.37914 -1.64291,-0.80049 -2.73862,-2.51384 -2.80884,-3.91808 -0.15442,-2.85064 1.22221,-3.67923 2.4861,-4.71834 0.71616,-0.5898 1.69852,-0.87094 2.27422,-1.91018 0.11238,-0.22456 0.16902,-0.73005 0.0426,-1.2496 -0.0562,-0.18252 -0.32348,-0.81463 -0.42177,-0.95509 z m 1.19383,0.50313 0.38638,0.16791 c 0.004,0.17571 0.004,0.34761 0.003,0.51494 -9.5e-4,-0.0577 -9.5e-4,-0.11659 0,-0.17645 -0.0417,0.7504 -0.0531,1.02734 0.0872,1.57496 0.15445,0.60388 0.94108,1.47395 1.26403,2.47102 0.61788,1.90983 0.46388,4.40966 0.0144,6.36154 -0.0791,0.32313 -0.29852,0.71419 -0.59101,1.07183 0.103,-0.18853 0.19195,-0.39371 0.25385,-0.60873 0.44943,-1.57276 0.63171,-2.30273 0.42113,-4.04403 -0.0281,-0.16862 -0.0985,-0.74446 -0.36538,-1.36242 -0.39319,-0.94092 -0.95449,-1.83907 -1.02461,-2.02167 -0.12651,-0.2948 -0.29532,-1.57287 -0.32339,-2.44347 0.0142,0.73014 0.0704,2.09228 0.26698,2.62582 0.0561,0.18251 0.57562,0.98325 0.94065,1.95215 0.25283,0.67409 0.30878,1.29209 0.35093,1.4746 0.16853,0.80047 -0.0418,2.14823 -0.32272,3.4261 -0.11551,0.5665 -0.46001,1.24665 -0.88359,1.65763 -0.006,0.004 -0.0108,0.009 -0.0158,0.0122 0.26326,-0.26647 0.51991,-0.71243 0.67564,-1.24893 0.21068,-0.74422 0.29429,-1.69661 0.28009,-2.30047 -0.014,-0.35104 -0.16908,-1.11123 -0.44998,-1.79931 -0.15445,-0.37911 -0.39187,-0.75846 -0.54643,-1.02527 -0.16832,-0.26703 -0.16953,-0.8426 -0.25385,-1.51659 0.0142,0.73025 -0.0572,1.09664 0.12529,1.6163 0.11225,0.30886 0.49176,0.73016 0.60414,1.13743 0.15443,0.54774 0.32249,1.15147 0.3083,1.51659 0,0.42136 -0.0261,1.20792 -0.20861,2.05054 -0.13665,0.68363 -0.44832,1.27136 -0.97016,1.61302 -0.01,0.006 -0.0178,0.0123 -0.0269,0.0178 l 0,-0.0256 c 0.004,9.5e-4 0.01,0.004 0.0137,0.004 7.8e-4,0 0.003,0 0.003,0 0.003,7.7e-4 0.007,0.003 0.01,0.003 l 0,-0.0164 c 0.27247,-0.30376 0.43612,-0.60539 0.49132,-0.90916 0.0702,-0.36512 0.0865,-0.73097 0.12854,-1.16632 0.042,-0.36511 0.0123,-0.85694 -0.0865,-1.36243 -0.14035,-0.63194 -0.37727,-1.27661 -0.47558,-1.72585 0.014,0.49151 0.21099,1.12115 0.29519,1.76718 0.0704,0.47751 0.0404,0.95747 0.0262,1.37883 -0.0139,0.48773 -0.17676,1.36124 -0.39883,1.78619 -0.003,-9.5e-4 -0.004,-0.003 -0.007,-0.003 l 0,-12.44558 z m -0.0571,7.76332 0,4.6534 c -0.16338,-0.0887 -0.24164,-0.19291 -0.36275,-0.35027 -0.16843,-0.23877 -0.28315,-0.47749 -0.39554,-0.7583 -0.0843,-0.21069 -0.18273,-0.45125 -0.22501,-0.73205 -0.0561,-0.42126 -0.0407,-1.08061 0.43689,-1.75471 0.33649,-0.4918 0.4343,-0.56608 0.54641,-1.05807 z"
id="path2554-4"
style="fill:#bebebe;fill-opacity:1" />
</g>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="on"
style="display:none">
<path
id="path4114"
style="fill:none;stroke:#ffffff;stroke-width:1.29999995;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;display:inline"
d="m 4.2625534,6.1750293 c 0,0 1.1491587,-0.6278903 1.1863897,-1.6606918 C 5.4861331,3.4826637 4.4603025,2.976995 4.4672485,2.0317235 4.4736485,1.1539862 5.6337624,0.28329388 5.6337624,0.28329388"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cscc" />
<use
x="0"
y="0"
xlink:href="#path4114"
id="use4118"
transform="translate(3.3258259,0)"
width="16"
height="16" />
</g>
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="off"
style="display:inline" />
<g
inkscape:groupmode="layer"
id="layer13"
inkscape:label="places"
transform="translate(-283.00021,-629)" />
<g
inkscape:groupmode="layer"
id="layer14"
inkscape:label="mimetypes"
transform="translate(-283.00021,-629)" />
<g
inkscape:groupmode="layer"
id="layer15"
inkscape:label="emblems"
style="display:inline"
transform="translate(-283.00021,-629)" />
<g
inkscape:groupmode="layer"
id="g71291"
inkscape:label="emotes"
style="display:inline"
transform="translate(-283.00021,-629)" />
<g
inkscape:groupmode="layer"
id="g4953"
inkscape:label="categories"
style="display:inline"
transform="translate(-283.00021,-629)" />
<g
inkscape:groupmode="layer"
id="layer12"
inkscape:label="actions"
style="display:inline"
transform="translate(-283.00021,-629)" />
</svg>

After

Width:  |  Height:  |  Size: 10 KiB

@ -0,0 +1,13 @@
{
"description": "Change tor identity",
"name": "Tor",
"shell-version": [
"3.10",
"3.12",
"3.14",
"3.16"
],
"url": "",
"uuid": "change-tor-identity@fqxp.de",
"version": 1
}
Loading…
Cancel
Save