diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-10-28 13:25:17 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-10-28 13:25:17 -0500 |
commit | 2680c77ca9130a81c89d32b228b71f8b216d299c (patch) | |
tree | b77030c9f64caba433567f3d991b991f2d167467 | |
parent | Add accessibility mode (diff) | |
download | wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.gz wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.bz2 wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.lz wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.xz wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.tar.zst wsl-tui-2680c77ca9130a81c89d32b228b71f8b216d299c.zip |
Add icon
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
-rw-r--r-- | .gitattributes | 4 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | main.go | 1 | ||||
-rw-r--r-- | run_host.go | 5 | ||||
-rw-r--r-- | winres/icon.png | 3 | ||||
-rw-r--r-- | winres/icon16.png | 3 | ||||
-rw-r--r-- | winres/winres.json | 61 |
7 files changed, 76 insertions, 5 deletions
diff --git a/.gitattributes b/.gitattributes index 1a52498..24a8e87 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1 @@ -*.mp4 filter=lfs diff=lfs merge=lfs -text -*.webm filter=lfs diff=lfs merge=lfs -text -*.webp filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text -*.jpg filter=lfs diff=lfs merge=lfs -text @@ -25,4 +25,6 @@ go.work.sum .env config.toml -wsl-tui
\ No newline at end of file +wsl-tui + +/*.syso
\ No newline at end of file @@ -1,3 +1,4 @@ +//go:generate go-winres make --product-version=git-tag package main import ( diff --git a/run_host.go b/run_host.go index 4a74a7b..be7c158 100644 --- a/run_host.go +++ b/run_host.go @@ -10,5 +10,10 @@ import ( func command(distribution Distribution, config Config) (*exec.Cmd, error) { // Append the additional arguments to the command args := append([]string{"-d", distribution.Name}, config.WslArgs...) + // Set the title of the terminal window + err := exec.Command("cmd", "/c", "title", distribution.Name).Run() + if err != nil { + return nil, err + } return exec.Command("wsl", args...), nil } diff --git a/winres/icon.png b/winres/icon.png new file mode 100644 index 0000000..a5411bb --- /dev/null +++ b/winres/icon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05fbfa2787c5fa5da724d3da8be448cba7fb1b18307f4c621f754665c6271f25 +size 33315 diff --git a/winres/icon16.png b/winres/icon16.png new file mode 100644 index 0000000..4c528df --- /dev/null +++ b/winres/icon16.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c1e4f1dfa08152c33e856d1ddb8e097aa3b1c691150aecb0c475a42166bd0a8 +size 2231 diff --git a/winres/winres.json b/winres/winres.json new file mode 100644 index 0000000..f71520c --- /dev/null +++ b/winres/winres.json @@ -0,0 +1,61 @@ +{ + "RT_GROUP_ICON": { + "APP": { + "0000": [ + "icon.png", + "icon16.png" + ] + } + }, + "RT_MANIFEST": { + "#1": { + "0409": { + "identity": { + "name": "", + "version": "" + }, + "description": "", + "minimum-os": "win7", + "execution-level": "as invoker", + "ui-access": false, + "auto-elevate": false, + "dpi-awareness": "system", + "disable-theming": false, + "disable-window-filtering": false, + "high-resolution-scrolling-aware": false, + "ultra-high-resolution-scrolling-aware": false, + "long-path-aware": false, + "printer-driver-isolation": false, + "gdi-scaling": false, + "segment-heap": false, + "use-common-controls-v6": false + } + } + }, + "RT_VERSION": { + "#1": { + "0000": { + "fixed": { + "file_version": "0.0.0.0", + "product_version": "0.0.0.0" + }, + "info": { + "0409": { + "Comments": "", + "CompanyName": "", + "FileDescription": "", + "FileVersion": "", + "InternalName": "", + "LegalCopyright": "", + "LegalTrademarks": "", + "OriginalFilename": "", + "PrivateBuild": "", + "ProductName": "", + "ProductVersion": "", + "SpecialBuild": "" + } + } + } + } + } +}
\ No newline at end of file |