From c8b057e6a229fd5c1ce130dacb4983de4bee5c4a Mon Sep 17 00:00:00 2001 From: Artur Gurgul Date: Tue, 26 Aug 2025 08:51:37 +0200 Subject: [PATCH] save --- bin/password | 22 +++++++++++++++------- bin/zshrc/init | 2 +- install | 3 +++ lib/vm/qemu.rb | 24 ++++++++++++++---------- 4 files changed, 33 insertions(+), 18 deletions(-) diff --git a/bin/password b/bin/password index aa38619..c94eb34 100755 --- a/bin/password +++ b/bin/password @@ -1,12 +1,20 @@ -# search & copy +#!/usr/bin/env ruby + +# password for account, must be one or the default # password amazon +# copy login +# password amazon -l + +# search for password for given account # password -l artur@gurgul.org -# password -a artur@gurgul.org http://example.com/login +# http://example.com/login +# password example -l artur@gurgul.org -set -euo pipefail -login="${DEFAULT_INTERNET_LOGIN:-${1-}}" -file="$(find web -type f -path "web/*/$DEFAULT_INTERNET_LOGIN.gpg" -print | fzf --delimiter='/' --with-nth=2)" -password_entry="${file%.gpg}" -pass -c "$password_entry" \ No newline at end of file + +# set -euo pipefail +# login="${DEFAULT_INTERNET_LOGIN:-${1-}}" +# file="$(find web -type f -path "web/*/$DEFAULT_INTERNET_LOGIN.gpg" -print | fzf --delimiter='/' --with-nth=2)" +# password_entry="${file%.gpg}" +# pass -c "$password_entry" \ No newline at end of file diff --git a/bin/zshrc/init b/bin/zshrc/init index 79c3372..39fd3e4 100644 --- a/bin/zshrc/init +++ b/bin/zshrc/init @@ -11,7 +11,7 @@ export RUBYLIB="$DAT_ROOT/lib" export PASSWORD_STORE_DIR=$HOME/.local/lib/secure-vault/passwords export NOTES_DIR=$HOME/.local/lib/notes -path=("$GEM_HOME/bin" $path) +path=("$GEM_HOME/bin" "$HOME/.cargo/bin" $path) alias gf='git log --all --oneline | fzf' diff --git a/install b/install index 7dcfed1..c8f70f9 100755 --- a/install +++ b/install @@ -1,5 +1,8 @@ #!/usr/bin/env bash +## Software for bootstraping +# curl, gcc + # TODO: Packages that need to be added # gem install ruby-lsp diff --git a/lib/vm/qemu.rb b/lib/vm/qemu.rb index cad148a..5d4fd15 100644 --- a/lib/vm/qemu.rb +++ b/lib/vm/qemu.rb @@ -88,7 +88,10 @@ module Qemu # for testing only defaults[:detach] = false + defaults[:display] = DisplayMode.fullscreen + defaults[:display] = DisplayMode.window + defaults[:display] = DisplayMode.none opts = defaults.merge(options) puts options @@ -112,17 +115,19 @@ module Qemu else #args += ["-device", "virtio-gpu-device"] if opts[:display] == DisplayMode::fullscreen - #args += ["-display", "cocoa,full-screen=on"] + # #args += ["-display", "cocoa,full-screen=on"] + # # attempts: + # #args += ["-display", "cocoa,full-screen=on,retina=on"] + # # brew install gtk+3 sdl2 + # # args += ["-display", "sdl,gl=on,full-screen=on"] + # #args += ["-display", "gtk,gl=on,full-screen=on"] + # #args += ["-display", "cocoa,full-screen=on"] + # #args += ["-display", "cocoa,gl=es,full-screen=on"] - # attempts: - #args += ["-display", "cocoa,full-screen=on,retina=on"] - # brew install gtk+3 sdl2 + #### TODO: try make it work with custom build + # args += ["-device", "virtio-gpu-gl-pci"] # args += ["-display", "sdl,gl=on,full-screen=on"] - args += ["-device", "virtio-gpu-gl-pci"] - args += ["-display", "sdl,gl=on,full-screen=on"] - #args += ["-display", "gtk,gl=on,full-screen=on"] - #args += ["-display", "cocoa,full-screen=on"] - #args += ["-display", "cocoa,gl=es,full-screen=on"] + args += ["-display", "cocoa,full-screen=on"] else args += ["-display", "cocoa"] end @@ -135,7 +140,6 @@ module Qemu args += ["-device", "virtio-mouse-device"] args += ["-device", "virtio-gpu"] - #args += ['-nic', 'user,model=virtio-net-pci'] args += ["-device", "virtio-net,netdev=n0", "-netdev", "user,id=n0"] # macOS vmnet (shares Mac’s LAN)