update
- remove powershell deps - rewrite readme - fully use YukiLauncher
This commit is contained in:
@@ -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
15
bin/fuzzel-vsc-entries.sh
Executable 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"
|
||||
@@ -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
3
bin/fuzzel-win+r.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
option=$(fuzzel --dmenu --prompt-only="Command to execute: ")
|
||||
[ -z "$option" ] || ykrun $option
|
||||
Reference in New Issue
Block a user