Skip to content

Instantly share code, notes, and snippets.

@aodag
Last active March 30, 2023 07:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aodag/c812e22e15249de04e6763046e89478b to your computer and use it in GitHub Desktop.
Save aodag/c812e22e15249de04e6763046e89478b to your computer and use it in GitHub Desktop.
swayでvs codeを開くときにwofi(dmenu mode)でghq管理下のプロジェクトを選択するやつ
#!/bin/sh
workspace=$(ghq list -p | wofi -di)
if [ -n "$workspace" ] ; then
swaymsg exec "code $workspace"
fi
[Desktop Entry]
Type=Application
Version=1.0
Name=Open Code
Comment=Open vscode with selected Project
Path=/home/aodag/bin
Exec=opencode
Terminal=false
Categories=Development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment