- remove powershell deps
- rewrite readme
- fully use YukiLauncher
This commit is contained in:
2025-10-14 15:04:30 +08:00
parent d6d65118bf
commit 5fffcbcd53
13 changed files with 69 additions and 85 deletions

View File

@@ -1,10 +0,0 @@
#!/usr/bin/pwsh
$desktop="$env:HOME/Desktop"
$fsarg=(Get-ChildItem $desktop -FollowSymlink | ForEach-Object {
if ($_ -is [System.IO.DirectoryInfo]) { return "$($_.Name)/" }
else { return $_.Name }
} | fuzzel --dmenu --prompt="Open with VSCode (~/Desktop): ")
$fsarg -and (Start-Process code -ArgumentList @("$desktop/$fsarg"))

15
bin/fuzzel-vsc-entries.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
desktop="$HOME/Desktop"
options=""
for item in $(ls $desktop); do
options+=$item
if [[ -d "$desktop/$item" ]]; then
options+='/'
fi
options+="\n"
done
fsarg=$(echo -en "$options" | fuzzel --dmenu --prompt="Open Project with VSCode:")
[ -z "$fsarg" ] || ykrun code "$desktop/$fsarg"

View File

@@ -1,8 +0,0 @@
#!/usr/bin/pwsh
$option=(fuzzel --dmenu --prompt-only="Command to execute: ")
$option -and (
# garbage `start-process`.
systemd-run --user --scope --slice=AgExecBar.slice --unit="$(($option -split " ")[0])-$PID".scope /bin/sh -c "$option"
)

3
bin/fuzzel-win+r.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
option=$(fuzzel --dmenu --prompt-only="Command to execute: ")
[ -z "$option" ] || ykrun $option

2
bin/ykrun Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
systemd-run --user --scope --slice=YukiLauncher.slice --unit="$1-$$".scope /bin/sh -c '"$@"' _ "$@"