mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-14 05:13:47 +01:00
add playtwitch logo and desktop file
This commit is contained in:
parent
72dd536988
commit
2b3da12ef8
5 changed files with 103 additions and 12 deletions
17
justfile
17
justfile
|
@ -11,21 +11,14 @@ yaml-language-server
|
|||
zls-bin
|
||||
"
|
||||
|
||||
install-scripts target=(`echo $HOME` + "/.local/bin"): build-scripts
|
||||
cp scripts/randomwallpaper/zig-out/bin/randomwallpaper {{target}}/randomwallpaper
|
||||
cp scripts/playtwitch/zig-out/bin/playtwitch {{target}}/playtwitch
|
||||
rm {{target}}/mzteinit || true
|
||||
cp scripts/mzteinit/zig-out/bin/mzteinit {{target}}/mzteinit
|
||||
|
||||
install-scripts target=(`echo $HOME` + "/.local"):
|
||||
ln -sf \
|
||||
`pwd`/scripts/{start-joshuto,withjava} \
|
||||
{{target}}
|
||||
{{target}}/bin
|
||||
|
||||
|
||||
build-scripts:
|
||||
cd scripts/randomwallpaper && zig build -Drelease-fast
|
||||
cd scripts/playtwitch && gyro build -Drelease-fast
|
||||
cd scripts/mzteinit && gyro build -Drelease-fast
|
||||
cd scripts/randomwallpaper && zig build -Drelease-fast -p {{target}}
|
||||
cd scripts/playtwitch && gyro build -Drelease-fast -p {{target}}
|
||||
cd scripts/mzteinit && gyro build -Drelease-fast -p {{target}}
|
||||
|
||||
install-lsps-paru:
|
||||
#!/bin/sh
|
||||
|
|
6
scripts/playtwitch/assets/playtwitch.desktop
Normal file
6
scripts/playtwitch/assets/playtwitch.desktop
Normal file
|
@ -0,0 +1,6 @@
|
|||
[Desktop Entry]
|
||||
Name=Playtwitch
|
||||
Comment=Launch a twitch stream
|
||||
Type=Application
|
||||
Exec=playtwitch
|
||||
Icon=playtwitch
|
79
scripts/playtwitch/assets/playtwitch.svg
Normal file
79
scripts/playtwitch/assets/playtwitch.svg
Normal file
|
@ -0,0 +1,79 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="512"
|
||||
height="512"
|
||||
viewBox="0 0 135.46666 135.46667"
|
||||
version="1.1"
|
||||
id="svg5"
|
||||
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14, custom)"
|
||||
sodipodi:docname="logo.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview7"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#ffffff"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="1"
|
||||
inkscape:deskcolor="#505050"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
inkscape:zoom="1.1250517"
|
||||
inkscape:cx="230.21164"
|
||||
inkscape:cy="251.09957"
|
||||
inkscape:window-width="1876"
|
||||
inkscape:window-height="1018"
|
||||
inkscape:window-x="1940"
|
||||
inkscape:window-y="40"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs2">
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
id="linearGradient2011">
|
||||
<stop
|
||||
style="stop-color:#9146ff;stop-opacity:1;"
|
||||
offset="0"
|
||||
id="stop2007" />
|
||||
<stop
|
||||
style="stop-color:#d146ff;stop-opacity:1;"
|
||||
offset="1"
|
||||
id="stop2009" />
|
||||
</linearGradient>
|
||||
<linearGradient
|
||||
inkscape:collect="always"
|
||||
xlink:href="#linearGradient2011"
|
||||
id="linearGradient2013"
|
||||
x1="8.4666662"
|
||||
y1="67.733333"
|
||||
x2="127"
|
||||
y2="67.733333"
|
||||
gradientUnits="userSpaceOnUse" />
|
||||
</defs>
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1">
|
||||
<rect
|
||||
style="fill:url(#linearGradient2013);fill-opacity:1;stroke:none;stroke-width:6.83395;stroke-linejoin:round;stroke-miterlimit:2;stroke-dasharray:none;stroke-opacity:1"
|
||||
id="rect1982"
|
||||
width="118.53333"
|
||||
height="118.53333"
|
||||
x="8.4666662"
|
||||
y="8.4666662"
|
||||
rx="2.1166666"
|
||||
ry="2.1166666" />
|
||||
<path
|
||||
id="rect131"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:5.55387;stroke-linejoin:round;stroke-miterlimit:2;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="M 15.897361,15.897361 V 119.56931 H 119.56931 V 15.897361 Z M 41.6205,36.946187 93.846169,67.733336 41.6205,98.520488 Z" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.5 KiB |
|
@ -24,6 +24,18 @@ pub fn build(b: *std.build.Builder) void {
|
|||
|
||||
exe.install();
|
||||
|
||||
var logo_install_step = b.addInstallFile(
|
||||
.{ .path = "assets/playtwitch.svg" },
|
||||
"share/icons/hicolor/scalable/apps/playtwitch.svg",
|
||||
);
|
||||
b.getInstallStep().dependOn(&logo_install_step.step);
|
||||
|
||||
var desktop_entry_install_step = b.addInstallFile(
|
||||
.{ .path = "assets/playtwitch.desktop" },
|
||||
"share/applications/playtwitch.desktop",
|
||||
);
|
||||
b.getInstallStep().dependOn(&desktop_entry_install_step.step);
|
||||
|
||||
const run_cmd = exe.run();
|
||||
run_cmd.step.dependOn(b.getInstallStep());
|
||||
if (b.args) |args| {
|
||||
|
|
|
@ -13,6 +13,7 @@ pub const GuiState = struct {
|
|||
pub fn activate(app: *c.GtkApplication, state: *GuiState) void {
|
||||
const win = c.gtk_application_window_new(app);
|
||||
c.gtk_window_set_title(@ptrCast(*c.GtkWindow, win), "Pick a stream!");
|
||||
c.gtk_window_set_icon_name(@ptrCast(*c.GtkWindow, win), "playtwitch");
|
||||
|
||||
const titlebar = c.gtk_header_bar_new();
|
||||
c.gtk_window_set_titlebar(@ptrCast(*c.GtkWindow, win), titlebar);
|
||||
|
|
Loading…
Reference in a new issue