aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis des Landes <louis@psykar.com>2019-08-05 21:46:38 +0930
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-02-06 12:08:33 +0100
commitd7cfd53d422e137baaf1cc167486607ab649dde2 (patch)
tree3b90dc299ecfe456defc4b3d381aa1d2af0f687d
parent828cae88632e0cf3534063fd199c7796dd1e99dd (diff)
downloadarctica-greeter-d7cfd53d422e137baaf1cc167486607ab649dde2.tar.gz
arctica-greeter-d7cfd53d422e137baaf1cc167486607ab649dde2.tar.bz2
arctica-greeter-d7cfd53d422e137baaf1cc167486607ab649dde2.zip
Add sway badge.
Ported from Slick Greeter by Mike Gabriel. https://github.com/linuxmint/slick-greeter/commit/ad0e52a13d3ed169276acfe27aea5c4e5ea271ae
-rw-r--r--data/Makefile.am1
-rw-r--r--data/badges/sway_badge.svg89
-rw-r--r--src/session-list.vala2
3 files changed, 92 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index f8bbe44..22afc3f 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -50,6 +50,7 @@ dist_pkgdata_DATA = \
badges/recovery_console_badge.png \
badges/sugar_badge.png \
badges/surf_badge.png \
+ badges/sway_badge.svg \
badges/twm_badge.png \
badges/ubuntu_badge.png \
badges/unknown_badge.png \
diff --git a/data/badges/sway_badge.svg b/data/badges/sway_badge.svg
new file mode 100644
index 0000000..31f516d
--- /dev/null
+++ b/data/badges/sway_badge.svg
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+
+<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:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ id="Layer_1"
+ x="0px"
+ y="0px"
+ viewBox="1589.1 -0.1 22 22"
+ enable-background="new 1589.1 -0.1 410.9 383.1"
+ xml:space="preserve"
+ sodipodi:docname="sway.svg"
+ inkscape:version="0.92.4 5da689c313, 2019-01-14"
+ width="22"
+ height="22"><metadata
+ id="metadata3929"><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><defs
+ id="defs3927" /><sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="1920"
+ inkscape:window-height="1200"
+ id="namedview3925"
+ showgrid="false"
+ inkscape:pagecheckerboard="true"
+ inkscape:zoom="19.712868"
+ inkscape:cx="6.0653624"
+ inkscape:cy="10.194784"
+ inkscape:window-x="3840"
+ inkscape:window-y="0"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="Layer_1"
+ fit-margin-top="0"
+ fit-margin-left="0"
+ fit-margin-right="0"
+ fit-margin-bottom="0" />
+
+
+
+
+<path
+ style="fill:#ffffff;stroke-width:1.00000215"
+ clip-path="none"
+ d="m 1600.101,-0.09999563 c -6.076,0 -11.001,4.92493003 -11.001,10.99993963 0,6.07602 4.925,11.00006 11.001,11.00006 6.075,0 10.999,-4.92504 10.999,-11.00006 0,-6.0750096 -4.924,-10.99993963 -10.999,-10.99993963 z m 0.8896,3.25766003 c 0.3317,-0.01 0.953,0.0528 0.9384,0.42528 0,0.34226 -0.7721,0.58441 -1.0058,0.68875 -0.6136,0.27548 -1.2439,0.50082 -1.8491,0.79716 -0.4717,0.22957 -1.5235,0.94742 -2.1454,0.79716 -0.067,-0.0167 -0.1377,-0.0458 -0.1878,-0.0876 -0.2128,-0.15026 -0.2212,-0.47588 -0.083,-0.6971 0.2171,-0.36313 0.7263,-0.71367 1.0977,-0.90985 0.4926,-0.26295 1.0059,-0.47583 1.536,-0.63443 0.5175,-0.15026 1.0393,-0.31728 1.5777,-0.37154 0.033,-0.004 0.074,-0.006 0.1218,-0.008 z m 4.6522,0.4401 c 0.3413,0.003 0.6787,0.0352 1.0027,0.12288 0.4466,0.12105 0.9392,0.55512 0.7054,0.96834 -0.1753,0.30887 -0.8848,0.72626 -1.1979,0.95583 -0.021,0.0149 -0.042,0.0293 -0.064,0.0439 0.1602,-0.0166 0.3216,-0.0259 0.4854,-0.0188 0.2421,0.008 0.5218,0.0667 0.6345,0.28792 0.092,0.18365 0.021,0.40078 -0.1044,0.55522 -0.1377,0.15026 -0.3172,0.23363 -0.5092,0.30876 -0.9392,0.39235 -1.9451,0.63031 -2.9635,0.69709 -0.2797,0.0167 -0.576,0.0208 -0.8473,-0.0668 -0.2713,-0.0876 -0.5134,-0.29631 -0.5927,-0.56761 -10e-4,-0.004 0,-0.007 0,-0.0111 -0.08,0.006 -0.1604,0.0112 -0.2399,0.0153 -0.2402,0.0123 -0.5156,-0.01 -0.7869,-0.0641 -0.1374,1.59699 -1.784,2.53153 -3.1365,3.2695896 -0.1003,0.0551 -0.206,0.11367 -0.3097,0.17083 1.0906,0.1227 2.2002,-0.0349 3.2145,-0.4382496 -0.1614,-0.0274 -0.3351,-0.0935 -0.3797,-0.24599 -0.054,-0.19617 0.1503,-0.36309 0.3339,-0.46326 0.3275,-0.17319 0.6762,-0.31951 1.0332,-0.43211 0.01,-0.006 0.021,-0.0129 0.031,-0.0186 0.9767,-0.56765 2.112,-0.84729 3.2348,-0.86398 0.2004,-0.008 0.4424,0.0542 0.4716,0.24205 0.021,0.15861 -0.121,0.28795 -0.2504,0.37142 -0.4142,0.26858 -0.8782,0.48228 -1.3622,0.62136 8e-4,0.0469 -0.01,0.0941 -0.024,0.13828 -0.075,0.18365 -0.2629,0.27557 -0.4466,0.34235 -0.3649,0.13776 -0.7448,0.2362 -1.131,0.29406 -1.6155,1.0323896 -3.6036,1.4130396 -5.5056,1.0165096 -0.048,-0.0101 -0.088,-0.0273 -0.1209,-0.0492 -1.1115,0.66897 -2.2061,1.4996 -2.6582,2.65114 0.793,-0.26923 1.6265,-0.43163 2.4577,-0.44404 0.6428,-0.008 1.2439,0.18784 1.87,0.0918 0.7263,-0.12104 1.4233,-0.39234 2.1537,-0.53843 1.319,-0.25043 2.6004,0.0918 3.8191,0.57596 1.2522,0.49251 2.471,0.93087 3.7273,1.41086 0.038,0.0167 0.067,0.0208 0.1044,0.0375 v 0.002 1.30894 l -8.5774,3.27238 -8.569,-3.27238 v -1.31057 c 0,0 0.5677,-0.22116 0.6762,-0.25873 0.5066,-0.18688 1.038,-0.34501 1.5285,-0.55626 0.3831,-1.63865 1.8576,-2.85007 3.2882,-3.6636 0.9266,-0.5217396 1.9033,-0.9766696 2.7505,-1.6194496 0.6283,-0.47576 1.1174,-1.08118 1.1129,-1.85456 -0.5978,-0.2791 -0.9461,-0.76113 -0.3866,-1.42198 0.167,-0.18783 0.3882,-0.33803 0.6303,-0.47577 0.1043,-0.0626 0.2129,-0.11275 0.3172,-0.16701 0.8807,-0.41739 1.895,-0.75967 2.8925,-0.8348 0.5452,-0.0417 1.1247,-0.11927 1.6936,-0.11454 z m -6.7779,2.59022 c 0.1289,0.002 0.2456,0.0315 0.3428,0.0954 0.1753,0.1127 0.2421,0.34226 0.2129,0.53843 -0.092,0.60521 -0.91,1.27307 -1.4568,1.4609 -0.53,0.18782 -1.4149,-0.20453 -1.0893,-0.84731 0.243,-0.47191 1.2942,-1.25877 1.9904,-1.24745 z m -2.8433,0.66432 c 0.167,-0.008 0.3004,0.0759 0.3603,0.31189 0.046,0.15026 -0.046,0.30886 -0.1502,0.43825 -0.2797,0.33808 -0.7722,0.6511 -1.2439,0.65945 -0.5676,0 -0.5801,-0.2797 -0.2337,-0.59691 0.195,-0.18 0.8407,-0.79339 1.2675,-0.81268 z m 9.631,2.56161 c 0.3703,-0.01 0.6681,0.0886 0.7842,0.37559 0.4383,1.0852096 -2.3123,1.3858196 -2.9008,1.3106896 -0.2421,-0.0292 -0.5217,-0.1378 -0.5593,-0.37154 -0.042,-0.21704 0.1586,-0.40071 0.3464,-0.52175 0.3501,-0.2238196 1.515,-0.7711296 2.3295,-0.7929896 z"
+ id="path4034"
+ inkscape:connector-curvature="0" />
+<g
+ id="g4082"
+ transform="matrix(0.70388877,0,0,0.70388877,7.92604,-241.30842)"
+ clip-path="none"><g
+ id="g3896">
+ <g
+ id="g3894">
+
+ </g>
+</g><g
+ id="g3902">
+ <g
+ id="g3900">
+
+ </g>
+</g><g
+ id="g3922">
+
+
+
+
+
+
+
+ <g
+ id="g3920">
+
+ </g>
+</g></g></svg>
diff --git a/src/session-list.vala b/src/session-list.vala
index 290a7af..be9a112 100644
--- a/src/session-list.vala
+++ b/src/session-list.vala
@@ -131,6 +131,8 @@ public class SessionList : GreeterList
case "i3":
case "i3-with-shmlog":
return "i3_badge.png";
+ case "sway":
+ return "sway_badge.svg";
case "lightdm-xsession":
return "xsession_badge.png";
case "lxde":