Skip to content

Instantly share code, notes, and snippets.

@tobias-kuendig
Last active September 28, 2018 22:58
Show Gist options
  • Save tobias-kuendig/d055892720cf09ae1a9d82075fb0f408 to your computer and use it in GitHub Desktop.
Save tobias-kuendig/d055892720cf09ae1a9d82075fb0f408 to your computer and use it in GitHub Desktop.
Elementary OS redshift-gtk Indicator Icons
  1. Copy redshift-status-off.svg and redshift-status-on.svg to /usr/share/icons/hicolor/scalable/apps/
  2. Restart redshift-gtk

Or run the following commands:

wget https://gist.github.com/tobias-kuendig/d055892720cf09ae1a9d82075fb0f408/raw/5d3625e5f4ac7686d7b40880a211ee72f74ea3d3/redshift-status-off.svg -O /tmp/redshift-status-off.svg
wget https://gist.github.com/tobias-kuendig/d055892720cf09ae1a9d82075fb0f408/raw/5d3625e5f4ac7686d7b40880a211ee72f74ea3d3/redshift-status-on.svg -O /tmp/redshift-status-on.svg

sudo cp /tmp/redshift-status-off.svg /usr/share/icons/hicolor/scalable/apps/redshift-status-off.svg
sudo cp /tmp/redshift-status-on.svg /usr/share/icons/hicolor/scalable/apps/redshift-status-on.svg

rm -f /tmp/redshift-status-o*.svg
killall redshift-gtk

echo "Restart redshift-gtk to load the new icons"
Display the source blob
Display the rendered blob
Raw
<?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"
width="22"
height="22"
id="svg2837"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="redshift-status-off.svg"
inkscape:export-filename="/home/joern/Desktop/redshiftIconlight.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs2839">
<inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 526.18109 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="744.09448 : 526.18109 : 1"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
id="perspective2845" />
<inkscape:perspective
id="perspective7076"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7107"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7107-0"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7164"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7202"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient7186-2"
id="radialGradient7192-2"
cx="4.0879612"
cy="15.890368"
fx="4.6574459"
fy="16.146029"
r="0.66291261"
gradientTransform="matrix(2.8333333,0.9,-0.43392852,1.3660713,-0.59931111,-9.4961718)"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient7186-2">
<stop
style="stop-color:#eae3d0;stop-opacity:0.38275862"
offset="0"
id="stop7188-4" />
<stop
style="stop-color:#eae3d0;stop-opacity:0;"
offset="1"
id="stop7190-9" />
</linearGradient>
<inkscape:perspective
id="perspective7202-9"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient7186-4"
id="radialGradient7192-4"
cx="4.0879612"
cy="15.890368"
fx="4.6574459"
fy="16.146029"
r="0.66291261"
gradientTransform="matrix(2.8333333,0.9,-0.43392852,1.3660713,-0.59931111,-9.4961718)"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient7186-4">
<stop
style="stop-color:#eae3d0;stop-opacity:0.38275862"
offset="0"
id="stop7188-8" />
<stop
style="stop-color:#eae3d0;stop-opacity:0;"
offset="1"
id="stop7190-7" />
</linearGradient>
<inkscape:perspective
id="perspective7202-2"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient7186-5"
id="radialGradient7192-1"
cx="4.0879612"
cy="15.890368"
fx="4.6574459"
fy="16.146029"
r="0.66291261"
gradientTransform="matrix(2.8333333,0.9,-0.43392852,1.3660713,-0.59931111,-9.4961718)"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient7186-5">
<stop
style="stop-color:#eae3d0;stop-opacity:0.38275862"
offset="0"
id="stop7188-5" />
<stop
style="stop-color:#eae3d0;stop-opacity:0;"
offset="1"
id="stop7190-4" />
</linearGradient>
<inkscape:perspective
id="perspective7202-90"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient7186-9"
id="radialGradient7192-8"
cx="4.0879612"
cy="15.890368"
fx="4.6574459"
fy="16.146029"
r="0.66291261"
gradientTransform="matrix(2.8333333,0.9,-0.43392852,1.3660713,-0.59931111,-9.4961718)"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
id="linearGradient7186-9">
<stop
style="stop-color:#eae3d0;stop-opacity:0.38275862"
offset="0"
id="stop7188-88" />
<stop
style="stop-color:#eae3d0;stop-opacity:0;"
offset="1"
id="stop7190-1" />
</linearGradient>
<inkscape:perspective
id="perspective7369"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-8"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-0"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-5"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-51"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-9"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-93"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-3"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7369-84"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7667"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7691"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7757"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7782"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7810"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7810-2"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7810-28"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective7883"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2901"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2950"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2921"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective3058"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2916"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2882"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
<inkscape:perspective
id="perspective2904"
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
inkscape:vp_z="1 : 0.5 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_x="0 : 0.5 : 1"
sodipodi:type="inkscape:persp3d" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="22.627416"
inkscape:cx="10.10201"
inkscape:cy="10.05289"
inkscape:document-units="px"
inkscape:current-layer="layer5"
showgrid="true"
showguides="false"
inkscape:guide-bbox="true"
inkscape:window-width="955"
inkscape:window-height="801"
inkscape:window-x="1879"
inkscape:window-y="100"
inkscape:window-maximized="0"
inkscape:snap-global="false">
<sodipodi:guide
position="0,0"
orientation="0,24"
id="guide2847" />
<sodipodi:guide
position="24,0"
orientation="-24,0"
id="guide2849" />
<sodipodi:guide
position="24,24"
orientation="0,-24"
id="guide2851" />
<sodipodi:guide
position="0,24"
orientation="24,0"
id="guide2853" />
<inkscape:grid
type="xygrid"
id="grid7095"
empspacing="2"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true"
spacingx="0.5px"
spacingy="0.5px" />
<sodipodi:guide
orientation="0,1"
position="-4.6845824,12.020815"
id="guide7849" />
<sodipodi:guide
orientation="0,1"
position="-5.08233,17.987029"
id="guide7867" />
<sodipodi:guide
orientation="1,0"
position="6.0104077,18.870912"
id="guide7869" />
<sodipodi:guide
orientation="1,0"
position="17.987029,20.019961"
id="guide7871" />
<sodipodi:guide
orientation="0,1"
position="9.1923882,6.0104077"
id="guide7873" />
</sodipodi:namedview>
<metadata
id="metadata2842">
<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></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:groupmode="layer"
id="layer5"
inkscape:label="Ebene#1"
style="display:inline"
transform="translate(0,-2)">
<g
id="g4255"
transform="matrix(0.98314262,0,0,0.98314262,0.05987544,0.20244021)">
<g
id="g4252" />
</g>
<path
id="path4672-2"
style="fill:none;stroke:#ffffff;stroke-width:1.51498854;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;display:inline;opacity:0.44625407;fill-opacity:1"
d="m 11.000001,5.8335253 c -3.0445665,0 -5.5126739,2.4681078 -5.5126739,5.5126727 0,1.947699 0.8534597,3.576685 2.5496113,4.651318 0.7759954,0.491649 1.9432055,0.799621 2.9146526,0.80294 1.053949,0.0035 2.142219,-0.198322 3.011472,-0.837395 1.376577,-1.012057 2.54961,-2.674923 2.54961,-4.616863 0,-3.0445649 -2.468108,-5.5126727 -5.512673,-5.5126727 z m -10e-7,-2e-7 c -3.0445655,0 -5.5126729,2.4681075 -5.5126729,5.5126729 0,1.947699 1.0247013,3.670712 2.5496112,4.651318 l 0.7579926,3.066423 c 0,0 0,1.102535 2.2050691,1.102535 2.205069,0 2.205069,-1.102535 2.205069,-1.102535 l 0.757993,-3.100878 c 1.51736,-0.982013 2.549612,-2.674924 2.549612,-4.616863 0,-3.0445654 -2.468108,-5.5126729 -5.512674,-5.5126729 z" />
</g>
<g
inkscape:label="Ebene 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1030.3622)" />
<g
inkscape:groupmode="layer"
id="layer4"
inkscape:label="Ebene"
style="display:inline"
transform="translate(0,-2)" />
</svg>
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BLooperZ
Copy link

BLooperZ commented Oct 6, 2016

Thanks! Works great for GNOME Shell as well.

@mikeanthonywild
Copy link

mikeanthonywild commented Jan 25, 2017

Redshift is still loading the default icon for some reason - any idea why this might be? Used the above script on Loki. It seems that the redshift-status-off icon is loading fine, but when Redshift is enabled, the default icon is still being used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment