mirror of
https://github.com/artizirk/wdisplays.git
synced 2024-11-21 16:30:59 +02:00
Merge pull request #11 from cyclopsian/xdgdesktop
Add icon and desktop file
This commit is contained in:
commit
ba331cab53
@ -1,4 +1,8 @@
|
||||
project('wdisplays', 'c')
|
||||
project('com.github.cyclopsian.wdisplays', 'c', license: 'MIT', version: '0.9')
|
||||
|
||||
conf = configuration_data()
|
||||
conf.set('app_id', meson.project_name())
|
||||
conf.set('version', meson.project_version())
|
||||
|
||||
subdir('protocol')
|
||||
subdir('resources')
|
||||
|
@ -5,41 +5,41 @@ wayland_protos = dependency('wayland-protocols', version: '>=1.17')
|
||||
wl_protocol_dir = wayland_protos.get_pkgconfig_variable('pkgdatadir')
|
||||
|
||||
wayland_scanner_code = generator(
|
||||
wayland_scanner,
|
||||
output: '@BASENAME@-protocol.c',
|
||||
arguments: ['private-code', '@INPUT@', '@OUTPUT@'],
|
||||
wayland_scanner,
|
||||
output: '@BASENAME@-protocol.c',
|
||||
arguments: ['private-code', '@INPUT@', '@OUTPUT@'],
|
||||
)
|
||||
|
||||
wayland_scanner_client = generator(
|
||||
wayland_scanner,
|
||||
output: '@BASENAME@-client-protocol.h',
|
||||
arguments: ['client-header', '@INPUT@', '@OUTPUT@'],
|
||||
wayland_scanner,
|
||||
output: '@BASENAME@-client-protocol.h',
|
||||
arguments: ['client-header', '@INPUT@', '@OUTPUT@'],
|
||||
)
|
||||
|
||||
client_protocols = [
|
||||
[wl_protocol_dir, 'unstable/xdg-output/xdg-output-unstable-v1.xml'],
|
||||
[wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'],
|
||||
['wlr-output-management-unstable-v1.xml'],
|
||||
['wlr-screencopy-unstable-v1.xml'],
|
||||
['wlr-layer-shell-unstable-v1.xml']
|
||||
[wl_protocol_dir, 'unstable/xdg-output/xdg-output-unstable-v1.xml'],
|
||||
[wl_protocol_dir, 'stable/xdg-shell/xdg-shell.xml'],
|
||||
['wlr-output-management-unstable-v1.xml'],
|
||||
['wlr-screencopy-unstable-v1.xml'],
|
||||
['wlr-layer-shell-unstable-v1.xml']
|
||||
]
|
||||
|
||||
client_protos_src = []
|
||||
client_protos_headers = []
|
||||
|
||||
foreach p : client_protocols
|
||||
xml = join_paths(p)
|
||||
client_protos_src += wayland_scanner_code.process(xml)
|
||||
client_protos_headers += wayland_scanner_client.process(xml)
|
||||
xml = join_paths(p)
|
||||
client_protos_src += wayland_scanner_code.process(xml)
|
||||
client_protos_headers += wayland_scanner_client.process(xml)
|
||||
endforeach
|
||||
|
||||
lib_client_protos = static_library(
|
||||
'client_protos',
|
||||
client_protos_src + client_protos_headers,
|
||||
dependencies: [wayland_client]
|
||||
'client_protos',
|
||||
client_protos_src + client_protos_headers,
|
||||
dependencies: [wayland_client]
|
||||
)
|
||||
|
||||
client_protos = declare_dependency(
|
||||
link_with: lib_client_protos,
|
||||
sources: client_protos_headers,
|
||||
link_with: lib_client_protos,
|
||||
sources: client_protos_headers,
|
||||
)
|
||||
|
@ -5,3 +5,35 @@ resources = gnome.compile_resources(
|
||||
source_dir : '.',
|
||||
c_name : 'waydisplay_resources')
|
||||
|
||||
scour = find_program('scour', required: false)
|
||||
|
||||
icon = 'wdisplays.svg'
|
||||
icondir = get_option('datadir') / 'icons' / 'hicolor' / 'scalable' / 'apps'
|
||||
|
||||
if scour.found()
|
||||
custom_target('optimize-icon',
|
||||
input: icon,
|
||||
output: '@0@.svg'.format(meson.project_name()),
|
||||
command: [scour,
|
||||
'--enable-viewboxing',
|
||||
'--enable-comment-stripping',
|
||||
'--remove-descriptive-elements',
|
||||
'--enable-id-stripping',
|
||||
'--shorten-ids',
|
||||
'--create-groups',
|
||||
'--strip-xml-space',
|
||||
'--strip-xml-prolog',
|
||||
'--indent=none',
|
||||
'--no-line-breaks',
|
||||
'@INPUT@', '@OUTPUT@'],
|
||||
install: true,
|
||||
install_dir: icondir)
|
||||
else
|
||||
install_data(icon, install_dir: icondir)
|
||||
endif
|
||||
|
||||
install_data(
|
||||
configure_file(input: 'wdisplays.desktop.in',
|
||||
output: '@0@.desktop'.format(meson.project_name()),
|
||||
configuration: conf),
|
||||
install_dir: get_option('datadir') / 'applications')
|
||||
|
7
resources/wdisplays.desktop.in
Normal file
7
resources/wdisplays.desktop.in
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Version=@version@
|
||||
Type=Application
|
||||
Name=wdisplays
|
||||
Comment=Wlroots display configuration
|
||||
Exec=wdisplays
|
||||
Icon=@app_id@
|
662
resources/wdisplays.svg
Normal file
662
resources/wdisplays.svg
Normal file
@ -0,0 +1,662 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:osb="http://www.openswatchbook.org/uri/2009/osb"
|
||||
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"
|
||||
inkscape:export-ydpi="96"
|
||||
inkscape:export-xdpi="96"
|
||||
inkscape:export-filename="Template.png"
|
||||
width="128"
|
||||
height="128"
|
||||
id="svg11300"
|
||||
sodipodi:version="0.32"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||
sodipodi:docname="wdisplays.svg"
|
||||
inkscape:output_extension="org.inkscape.output.svg.inkscape"
|
||||
version="1.0"
|
||||
style="display:inline;enable-background:new"
|
||||
viewBox="0 0 128 128">
|
||||
<metadata
|
||||
id="metadata96">
|
||||
<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="defs3">
|
||||
<linearGradient
|
||||
id="linearGradient4781"
|
||||
osb:paint="solid">
|
||||
<stop
|
||||
style="stop-color:#000000;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop4779" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient1019">
|
||||
<stop
|
||||
style="stop-color:#9a9996;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop1015" />
|
||||
<stop
|
||||
style="stop-color:#3d3846;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop1017" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient11745">
|
||||
<stop
|
||||
style="stop-color:#1a5fb4;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop11741" />
|
||||
<stop
|
||||
id="stop11749"
|
||||
offset="0.04166667"
|
||||
style="stop-color:#1c71d8;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#1a5fb4;stop-opacity:1"
|
||||
offset="0.08333334"
|
||||
id="stop11751" />
|
||||
<stop
|
||||
id="stop11753"
|
||||
offset="0.91666669"
|
||||
style="stop-color:#1a5fb4;stop-opacity:1" />
|
||||
<stop
|
||||
style="stop-color:#1c71d8;stop-opacity:1"
|
||||
offset="0.95833331"
|
||||
id="stop11755" />
|
||||
<stop
|
||||
style="stop-color:#1a5fb4;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop11743" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient11721">
|
||||
<stop
|
||||
style="stop-color:#62a0ea;stop-opacity:1"
|
||||
offset="0"
|
||||
id="stop11717" />
|
||||
<stop
|
||||
style="stop-color:#1c71d8;stop-opacity:1"
|
||||
offset="1"
|
||||
id="stop11719" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
y2="236"
|
||||
x2="96"
|
||||
y1="236"
|
||||
x1="32"
|
||||
gradientTransform="translate(604.81684,170.58641)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="linearGradient1099"
|
||||
xlink:href="#linearGradient1036" />
|
||||
<linearGradient
|
||||
id="linearGradient1036">
|
||||
<stop
|
||||
id="stop1032"
|
||||
offset="0"
|
||||
style="stop-color:#d5d3cf;stop-opacity:1;" />
|
||||
<stop
|
||||
id="stop1034"
|
||||
offset="1"
|
||||
style="stop-color:#f6f5f4;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
r="32"
|
||||
fy="-76"
|
||||
fx="-244"
|
||||
cy="-76"
|
||||
cx="-244"
|
||||
gradientTransform="matrix(0.88333331,0,0,0.88333331,-460.35018,463.11973)"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
id="radialGradient1103"
|
||||
xlink:href="#linearGradient1069" />
|
||||
<linearGradient
|
||||
id="linearGradient1069">
|
||||
<stop
|
||||
id="stop1065"
|
||||
offset="0"
|
||||
style="stop-color:#d5d3cf;stop-opacity:1" />
|
||||
<stop
|
||||
id="stop1067-1"
|
||||
offset="1"
|
||||
style="stop-color:#949390;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
gradientUnits="userSpaceOnUse"
|
||||
y2="232"
|
||||
x2="64"
|
||||
y1="262.5"
|
||||
x1="64"
|
||||
id="linearGradient1027"
|
||||
xlink:href="#linearGradient1025"
|
||||
gradientTransform="translate(-470.5864,432.81685)" />
|
||||
<linearGradient
|
||||
id="linearGradient1025">
|
||||
<stop
|
||||
id="stop1021"
|
||||
offset="0"
|
||||
style="stop-color:#9a9996;stop-opacity:1" />
|
||||
<stop
|
||||
id="stop1023"
|
||||
offset="1"
|
||||
style="stop-color:#77767b;stop-opacity:1" />
|
||||
</linearGradient>
|
||||
<inkscape:path-effect
|
||||
effect="spiro"
|
||||
id="path-effect35304-9"
|
||||
is_visible="true" />
|
||||
<clipPath
|
||||
clipPathUnits="userSpaceOnUse"
|
||||
id="clipPath1609-7">
|
||||
<path
|
||||
sodipodi:nodetypes="cccccc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path1611-5"
|
||||
d="m 252,116 28,-28 v -8 h -36 v 36 z"
|
||||
style="fill:#e74747;stroke:none;stroke-width:0.25px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
|
||||
</clipPath>
|
||||
<linearGradient
|
||||
id="linearGradient1064"
|
||||
x1="88.596001"
|
||||
x2="536.59998"
|
||||
y1="-449.39001"
|
||||
y2="-449.39001"
|
||||
gradientTransform="matrix(0.25,0,0,0.25,-14.149,400.35)"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop
|
||||
id="stop1066"
|
||||
style="stop-color:#5e5c64;stop-opacity:1"
|
||||
offset="0" />
|
||||
<stop
|
||||
id="stop1068"
|
||||
style="stop-color:#77767b;stop-opacity:1"
|
||||
offset=".035714" />
|
||||
<stop
|
||||
id="stop1070"
|
||||
style="stop-color:#5e5c64;stop-opacity:1"
|
||||
offset=".071365" />
|
||||
<stop
|
||||
id="stop1072"
|
||||
style="stop-color:#5e5c64;stop-opacity:1"
|
||||
offset=".92857" />
|
||||
<stop
|
||||
id="stop1074"
|
||||
style="stop-color:#77767b;stop-opacity:1"
|
||||
offset=".96429" />
|
||||
<stop
|
||||
id="stop1076"
|
||||
style="stop-color:#5e5c64;stop-opacity:1"
|
||||
offset="1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
id="linearGradient1064-9"
|
||||
x1="88.596001"
|
||||
x2="536.59998"
|
||||
y1="-449.39001"
|
||||
y2="-449.39001"
|
||||
gradientTransform="matrix(0.25,0,0,0.25,-14.148999,400.35)"
|
||||
gradientUnits="userSpaceOnUse">
|
||||
<stop
|
||||
id="stop1066-1"
|
||||
style="stop-color:#3d3846;stop-opacity:1"
|
||||
offset="0" />
|
||||
<stop
|
||||
id="stop1068-2"
|
||||
style="stop-color:#77767b;stop-opacity:1"
|
||||
offset=".035714" />
|
||||
<stop
|
||||
id="stop1070-7"
|
||||
style="stop-color:#5e5c64;stop-opacity:1"
|
||||
offset=".071365" />
|
||||
<stop
|
||||
id="stop1072-0"
|
||||
style="stop-color:#5e5c64;stop-opacity:1"
|
||||
offset=".92857" />
|
||||
<stop
|
||||
id="stop1074-9"
|
||||
style="stop-color:#77767b;stop-opacity:1"
|
||||
offset=".96429" />
|
||||
<stop
|
||||
id="stop1076-3"
|
||||
style="stop-color:#3d3846;stop-opacity:1"
|
||||
offset="1" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient11745"
|
||||
id="linearGradient11747"
|
||||
x1="12"
|
||||
y1="240"
|
||||
x2="60"
|
||||
y2="240"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(2,-10)" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient11721"
|
||||
id="radialGradient949"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(6.9999999,-3.4009078e-7,2.1255735e-7,4.3749999,-25.345543,-708.76861)"
|
||||
cx="3.6207857"
|
||||
cy="206.80426"
|
||||
fx="3.6207857"
|
||||
fy="206.80426"
|
||||
r="16" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient11745"
|
||||
id="linearGradient1001"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(54,-10)"
|
||||
x1="12"
|
||||
y1="240"
|
||||
x2="60"
|
||||
y2="240" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient11721"
|
||||
id="radialGradient1003"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(6.9999999,-3.4009078e-7,2.1255735e-7,4.3749999,26.654457,-708.76861)"
|
||||
cx="3.6207857"
|
||||
cy="206.80426"
|
||||
fx="3.6207857"
|
||||
fy="206.80426"
|
||||
r="16" />
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient11745"
|
||||
id="linearGradient1011"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="translate(28,28)"
|
||||
x1="12"
|
||||
y1="240"
|
||||
x2="60"
|
||||
y2="240" />
|
||||
<radialGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient11721"
|
||||
id="radialGradient1013"
|
||||
gradientUnits="userSpaceOnUse"
|
||||
gradientTransform="matrix(6.9999999,-3.4009078e-7,2.1255735e-7,4.3749999,0.654457,-670.76861)"
|
||||
cx="3.6207857"
|
||||
cy="206.80426"
|
||||
fx="3.6207857"
|
||||
fy="206.80426"
|
||||
r="16" />
|
||||
</defs>
|
||||
<sodipodi:namedview
|
||||
stroke="#ef2929"
|
||||
fill="#f57900"
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="0.25490196"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="8"
|
||||
inkscape:cx="12.741961"
|
||||
inkscape:cy="57.04762"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:grid-bbox="true"
|
||||
inkscape:document-units="px"
|
||||
inkscape:showpageshadow="false"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1061"
|
||||
inkscape:window-x="1920"
|
||||
inkscape:window-y="0"
|
||||
width="400px"
|
||||
height="300px"
|
||||
inkscape:snap-nodes="true"
|
||||
inkscape:snap-bbox="true"
|
||||
objecttolerance="7"
|
||||
gridtolerance="12"
|
||||
guidetolerance="13"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:pagecheckerboard="false"
|
||||
showguides="false"
|
||||
inkscape:guide-bbox="true"
|
||||
inkscape:locked="false"
|
||||
inkscape:measure-start="0,0"
|
||||
inkscape:measure-end="0,0"
|
||||
inkscape:object-nodes="true"
|
||||
inkscape:bbox-nodes="true"
|
||||
inkscape:snap-global="true"
|
||||
inkscape:object-paths="true"
|
||||
inkscape:snap-intersection-paths="true"
|
||||
inkscape:snap-bbox-edge-midpoints="true"
|
||||
inkscape:snap-bbox-midpoints="true"
|
||||
showborder="false"
|
||||
inkscape:snap-center="true"
|
||||
inkscape:snap-object-midpoints="true"
|
||||
inkscape:snap-midpoints="true"
|
||||
inkscape:snap-smooth-nodes="true"
|
||||
inkscape:snap-text-baseline="true">
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid5883"
|
||||
spacingx="2"
|
||||
spacingy="2"
|
||||
enabled="true"
|
||||
visible="true"
|
||||
empspacing="4"
|
||||
originx="0"
|
||||
originy="0" />
|
||||
<sodipodi:guide
|
||||
position="64,8"
|
||||
orientation="0,1"
|
||||
id="guide1073"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="12,64"
|
||||
orientation="1,0"
|
||||
id="guide1075"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,104"
|
||||
orientation="0,1"
|
||||
id="guide1099"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,128"
|
||||
orientation="0,1"
|
||||
id="guide993"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="104,64"
|
||||
orientation="1,0"
|
||||
id="guide995"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="9.2651362e-08,64"
|
||||
orientation="1,0"
|
||||
id="guide867"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="120,64"
|
||||
orientation="1,0"
|
||||
id="guide869"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,116"
|
||||
orientation="0,1"
|
||||
id="guide871"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<inkscape:grid
|
||||
type="xygrid"
|
||||
id="grid873"
|
||||
spacingx="1"
|
||||
spacingy="1"
|
||||
empspacing="8"
|
||||
color="#000000"
|
||||
opacity="0.49019608"
|
||||
empcolor="#000000"
|
||||
empopacity="0.08627451"
|
||||
dotted="true" />
|
||||
<sodipodi:guide
|
||||
position="24,64"
|
||||
orientation="1,0"
|
||||
id="guide877"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="116,64"
|
||||
orientation="1,0"
|
||||
id="guide879"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,120"
|
||||
orientation="0,1"
|
||||
id="guide881"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,12"
|
||||
orientation="0,1"
|
||||
id="guide883"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="8,64"
|
||||
orientation="1,0"
|
||||
id="guide885"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="128,64"
|
||||
orientation="1,0"
|
||||
id="guide887"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,0"
|
||||
orientation="0,1"
|
||||
id="guide897"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,24"
|
||||
orientation="0,1"
|
||||
id="guide899"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="256,256"
|
||||
orientation="-0.70710678,0.70710678"
|
||||
id="guide950"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
<sodipodi:guide
|
||||
position="64,64"
|
||||
orientation="0.70710678,0.70710678"
|
||||
id="guide952"
|
||||
inkscape:locked="false"
|
||||
inkscape:label=""
|
||||
inkscape:color="rgb(0,0,255)" />
|
||||
</sodipodi:namedview>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:label="App Icon"
|
||||
inkscape:groupmode="layer"
|
||||
style="display:inline"
|
||||
transform="translate(0,-172)">
|
||||
<rect
|
||||
style="opacity:1;fill:#deddda;fill-opacity:1;stroke:none;stroke-width:4;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:6;stroke-opacity:0.16205534;paint-order:markers fill stroke"
|
||||
id="rect4815"
|
||||
width="108"
|
||||
height="80"
|
||||
x="10"
|
||||
y="202"
|
||||
ry="6"
|
||||
rx="6" />
|
||||
<rect
|
||||
style="display:inline;fill:url(#linearGradient1064-9);stroke:none;paint-order:normal;enable-background:new"
|
||||
ry="8"
|
||||
rx="8"
|
||||
height="88"
|
||||
width="112"
|
||||
y="200"
|
||||
x="8"
|
||||
id="rect1048" />
|
||||
<rect
|
||||
style="display:inline;opacity:1;fill:#9a9996;fill-opacity:1;stroke:none;stroke-width:0.01;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke"
|
||||
id="rect2392"
|
||||
width="112"
|
||||
height="84"
|
||||
x="8"
|
||||
y="200"
|
||||
rx="8"
|
||||
ry="8" />
|
||||
<rect
|
||||
ry="4"
|
||||
rx="4"
|
||||
y="206"
|
||||
x="14"
|
||||
height="34"
|
||||
width="48"
|
||||
id="rect4520"
|
||||
style="opacity:1;fill:url(#linearGradient11747);fill-opacity:1;stroke:none;stroke-width:0.00999999;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke" />
|
||||
<rect
|
||||
style="opacity:1;fill:url(#radialGradient949);fill-opacity:1;stroke:none;stroke-width:0.00999999;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke"
|
||||
id="rect947"
|
||||
width="48"
|
||||
height="32"
|
||||
x="14"
|
||||
y="206"
|
||||
rx="4"
|
||||
ry="4" />
|
||||
<rect
|
||||
style="opacity:1;fill:#99c1f1;fill-opacity:0.21912351;stroke:none;stroke-width:0.01;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke"
|
||||
id="rect937"
|
||||
width="44"
|
||||
height="28"
|
||||
x="16"
|
||||
y="208"
|
||||
rx="2"
|
||||
ry="2" />
|
||||
<rect
|
||||
style="opacity:1;fill:url(#linearGradient1001);fill-opacity:1;stroke:none;stroke-width:0.00999999;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke"
|
||||
id="rect995"
|
||||
width="48"
|
||||
height="34"
|
||||
x="66"
|
||||
y="206"
|
||||
rx="4"
|
||||
ry="4" />
|
||||
<rect
|
||||
ry="4"
|
||||
rx="4"
|
||||
y="206"
|
||||
x="66"
|
||||
height="32"
|
||||
width="48"
|
||||
id="rect997"
|
||||
style="opacity:1;fill:url(#radialGradient1003);fill-opacity:1;stroke:none;stroke-width:0.00999999;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke" />
|
||||
<rect
|
||||
ry="2"
|
||||
rx="2"
|
||||
y="208"
|
||||
x="68"
|
||||
height="28"
|
||||
width="44"
|
||||
id="rect999"
|
||||
style="opacity:1;fill:#99c1f1;fill-opacity:0.21912351;stroke:none;stroke-width:0.01;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke" />
|
||||
<rect
|
||||
ry="4"
|
||||
rx="4"
|
||||
y="244"
|
||||
x="40"
|
||||
height="34"
|
||||
width="48"
|
||||
id="rect1005"
|
||||
style="opacity:1;fill:url(#linearGradient1011);fill-opacity:1;stroke:none;stroke-width:0.00999999;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke" />
|
||||
<rect
|
||||
style="opacity:1;fill:url(#radialGradient1013);fill-opacity:1;stroke:none;stroke-width:0.00999999;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke"
|
||||
id="rect1007"
|
||||
width="48"
|
||||
height="32"
|
||||
x="40"
|
||||
y="244"
|
||||
rx="4"
|
||||
ry="4" />
|
||||
<rect
|
||||
style="opacity:1;fill:#99c1f1;fill-opacity:0.21912351;stroke:none;stroke-width:0.01;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:4;stroke-opacity:1;paint-order:markers fill stroke"
|
||||
id="rect1009"
|
||||
width="44"
|
||||
height="28"
|
||||
x="42"
|
||||
y="246"
|
||||
rx="2"
|
||||
ry="2" />
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4777"
|
||||
d="M 14,242 H 114"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:4;stroke-opacity:0.16205534" />
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:4;stroke-opacity:0.16205534"
|
||||
d="m 64,206 v 34"
|
||||
id="path4785"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4787"
|
||||
d="m 38,244 v 34"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:4;stroke-opacity:0.16205534"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
sodipodi:nodetypes="cc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:4;stroke-opacity:0.16205534"
|
||||
d="m 90,244 v 34"
|
||||
id="path4789"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:4;stroke-opacity:0.16205534"
|
||||
d="M 10,204 H 118"
|
||||
id="path4791"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4793"
|
||||
d="M 10,280 H 118"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:4;stroke-opacity:0.16205534" />
|
||||
<path
|
||||
inkscape:connector-curvature="0"
|
||||
id="path4795"
|
||||
d="m 12,206 v 72"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:6;stroke-opacity:0.16205534"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
id="path4797"
|
||||
sodipodi:nodetypes="cc"
|
||||
style="fill:none;stroke:#ffffff;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:4, 4;stroke-dashoffset:6;stroke-opacity:0.16205534"
|
||||
d="m 116,206 v 72"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 21 KiB |
10
src/config.h.in
Normal file
10
src/config.h.in
Normal file
@ -0,0 +1,10 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
/* Copyright (C) 2019 cyclopsian */
|
||||
|
||||
#ifndef WDISPLAY_CONFIG_H
|
||||
#define WDISPLAY_CONFIG_H
|
||||
|
||||
#define WDISPLAYS_APP_ID "@app_id@"
|
||||
#define WDISPLAYS_VERSION "@version@"
|
||||
|
||||
#endif
|
@ -1365,7 +1365,7 @@ static void activate(GtkApplication* app, gpointer user_data) {
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
g_setenv("GDK_GL", "gles", FALSE);
|
||||
GtkApplication *app = gtk_application_new("org.swaywm.sway-outputs", G_APPLICATION_FLAGS_NONE);
|
||||
GtkApplication *app = gtk_application_new(WDISPLAYS_APP_ID, G_APPLICATION_FLAGS_NONE);
|
||||
g_signal_connect(app, "activate", G_CALLBACK(activate), NULL);
|
||||
int status = g_application_run(G_APPLICATION(app), argc, argv);
|
||||
g_object_unref(app);
|
||||
|
@ -7,6 +7,8 @@ gtk = dependency('gtk+-3.0')
|
||||
assert(gdk.get_pkgconfig_variable('targets').split().contains('wayland'), 'Wayland GDK backend not present')
|
||||
epoxy = dependency('epoxy')
|
||||
|
||||
configure_file(input: 'config.h.in', output: 'config.h', configuration: conf)
|
||||
|
||||
executable(
|
||||
'wdisplays',
|
||||
[
|
||||
|
@ -11,6 +11,8 @@
|
||||
#ifndef WDISPLAY_WDISPLAY_H
|
||||
#define WDISPLAY_WDISPLAY_H
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#define HEADS_MAX 64
|
||||
#define HOVER_USECS (100 * 1000)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user