1
0
Fork 0

Compare commits

..

8 commits

8 changed files with 65 additions and 11 deletions

28
bin/executable_gopassmenu Normal file
View file

@ -0,0 +1,28 @@
#!/bin/zsh
# set -x
if test -z $ROFI_RETV
then
rofi -show gopass -modi "gopass:$0" -kb-accept-custom "" -kb-accept-alt "" -kb-custom-2 "Control+Return" -kb-custom-1 "Shift+Return"
fi
# echo "args $* --- retv $ROFI_RETV" >&2
error() {
local msg=$1
echo -e "\0message\x1f<span color='red'>$(xargs <<< $msg)</span>\n"
gopass ls -f
}
case "$ROFI_RETV" in
# run it in backgroud and quit rofi
0) echo -e "\0use-hot-keys\x1ftrue\n"
echo -e "\0message\x1fShift-Enter for OTP\n"
gopass ls -f ;;
1) ( gopass show -c $1 > /dev/null ) & ;;
10) (
out=$(gopass otp -c $1 2>&1)
(( $? > 0 )) && error "$out"
) & ;;
esac

View file

@ -18,7 +18,7 @@
# of these registries, it should be added at the end of the list. # of these registries, it should be added at the end of the list.
# #
# # An array of host[:port] registries to try when pulling an unqualified image, in order. # # An array of host[:port] registries to try when pulling an unqualified image, in order.
unqualified-search-registries = ["docker.io"] unqualified-search-registries = ["dhub.corp.metrans.cz", "docker.io"]
# #
# [[registry]] # [[registry]]
# # The "prefix" field is used to choose the relevant [[registry]] TOML table; # # The "prefix" field is used to choose the relevant [[registry]] TOML table;

View file

@ -32,7 +32,7 @@ hc keybind $Mod-x spawn systemd-run --scope --user rofi -modi drun -show drun
hc keybind $Mod-Shift-x spawn systemd-run --scope --user rofi -show fb -modi "fb:${HOME}/.config/herbstluftwm/file-browser" hc keybind $Mod-Shift-x spawn systemd-run --scope --user rofi -show fb -modi "fb:${HOME}/.config/herbstluftwm/file-browser"
hc keybind $Mod-z spawn systemd-run --scope --user rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' hc keybind $Mod-z spawn systemd-run --scope --user rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'
hc keybind $Mod-c spawn systemd-run --scope --user rofi -lines 0 -show calc -modi calc -no-show-match -no-sort -no-history -calc-command "echo -n '{result}' | xclip" hc keybind $Mod-c spawn systemd-run --scope --user rofi -lines 0 -show calc -modi calc -no-show-match -no-sort -no-history -calc-command "echo -n '{result}' | xclip"
hc keybind $Mod-a spawn systemd-run --scope --user zsh -c 'gopass ls -f | rofi -dmenu -p "Select password " | read p ; gopass show --clip $p' hc keybind $Mod-a spawn systemd-run --scope --user ~/bin/gopassmenu
hc keybind $Mod-Shift-a spawn systemd-run --scope --user rofi -show pb -modi "pb:$HOME/.config/herbstluftwm/passboltmenu2" hc keybind $Mod-Shift-a spawn systemd-run --scope --user rofi -show pb -modi "pb:$HOME/.config/herbstluftwm/passboltmenu2"
hc keybind $Mod-m spawn systemd-run --scope --user ~/.config/herbstluftwm/pmount-dmenu hc keybind $Mod-m spawn systemd-run --scope --user ~/.config/herbstluftwm/pmount-dmenu
hc keybind $Mod-Escape spawn systemd-run --scope --user dunstctl close hc keybind $Mod-Escape spawn systemd-run --scope --user dunstctl close
@ -234,6 +234,7 @@ hc attr settings.auto_detect_monitors 1
# unlock, just to be sure # unlock, just to be sure
hc unlock hc unlock
hc setenv SSH_AUTH_SOCK "$(gpgconf --list-dirs agent-ssh-socket)"
systemctl --user import-environment DISPLAY XAUTHORITY XDG_SESSION_PATH systemctl --user import-environment DISPLAY XAUTHORITY XDG_SESSION_PATH
systemctl restart --no-block --user "hlwm.target" systemctl restart --no-block --user "hlwm.target"

View file

@ -2213,6 +2213,7 @@ map kitty_mod+enter launch --type os-window --cwd=current
#: Insert selected path #: Insert selected path
# map kitty_mod+p>f kitten hints --type path --program - # map kitty_mod+p>f kitten hints --type path --program -
map kitty_mod+p>kitty_mod+f kitten hints --type path --program @
#:: Select a path/filename and insert it into the terminal. Useful, #:: Select a path/filename and insert it into the terminal. Useful,
#:: for instance to run git commands on a filename output from a #:: for instance to run git commands on a filename output from a

View file

@ -58,9 +58,10 @@ http {
add_header "Vary" "Origin"; add_header "Vary" "Origin";
access_log off; access_log off;
client_body_temp_path /run/user/{{ .chezmoi.uid }}/nginx/body; client_body_temp_path /run/user/1000/nginx/body;
fastcgi_temp_path /run/user/{{ .chezmoi.uid }}/nginx/fastcgi; fastcgi_temp_path /run/user/1000/nginx/fastcgi;
uwsgi_temp_path /run/user/1000/nginx/uwsgi;
scgi_temp_path /run/user/1000/nginx/scgi;
server { server {
server_name files.*; server_name files.*;

View file

@ -15,7 +15,7 @@ return {
end end
end, end,
dependencies = { dependencies = {
{ 'rcarriga/nvim-dap-ui', dependencies = 'nvim-neotest/nvim-nio' }, { 'rcarriga/nvim-dap-ui', dependencies = { 'nvim-neotest/nvim-nio' } },
'williamboman/mason.nvim', 'williamboman/mason.nvim',
}, },
keys = { keys = {
@ -64,7 +64,23 @@ return {
port = 9000, port = 9000,
}, },
}, },
}, -- }}} }, -- }}}
dockerfile = { -- {{{
adapter = {
type = 'executable',
command = 'buildg',
args = { 'dap', 'serve' },
},
confs = {
{
type = 'dockerfile',
name = 'Dockerfile configuration',
request = 'launch',
stopOnEntry = true,
program = 'file',
},
},
}, --- }}}
}, },
config = function(_plug, opts) config = function(_plug, opts)
-- signs - move to colorsheme? {{{ -- signs - move to colorsheme? {{{

View file

@ -16,8 +16,6 @@ alias wine32="WINEARCH=win32 WINEPREFIX=$HOME/.wine32 wine"
alias lg=lazygit alias lg=lazygit
alias catdb='git --no-pager show HEAD:www/app/config/database.cfg.d/connections.cfg.d/basic.cfg.php'
alias scur='systemctl --user restart' alias scur='systemctl --user restart'
alias scus='systemctl --user stop' alias scus='systemctl --user stop'
alias scust='systemctl --user status' alias scust='systemctl --user status'
@ -27,6 +25,8 @@ alias ls='ls --color=tty --hyperlink=auto'
alias l='ls -lh' alias l='ls -lh'
alias la='l -a' alias la='l -a'
alias grep='grep --color=auto'
alias ip='ip --color=auto' alias ip='ip --color=auto'
alias _=sudo alias _=sudo
@ -40,9 +40,11 @@ alias -g ....='../../..'
alias -g .....='../../../..' alias -g .....='../../../..'
alias -g ......='../../../../..' alias -g ......='../../../../..'
alias ssh='kitten ssh' [[ -n $KITTY_PID ]] && alias ssh='kitten ssh'
alias podr='podman run -it --rm' # alias podr='podman run -it --rm -e http_proxy=http://172.17.1.233:3128'
# alias podrs='podman run -it --rm -e http_proxy=http://172.17.1.233:3128 --entrypoint /bin/sh'
alias podr='podman run -it --rm'
alias podrs='podman run -it --rm --entrypoint /bin/sh' alias podrs='podman run -it --rm --entrypoint /bin/sh'
alias ffprobe='ffprobe -hide_banner' alias ffprobe='ffprobe -hide_banner'

View file

@ -1,2 +1,7 @@
_zprintlevel=1 _zprintlevel=1
source ~/.config/zsh/init.zsh source ~/.config/zsh/init.zsh
autoload -U +X bashcompinit && bashcompinit
complete -o nospace -C /home/vladimir/bin/grr grr
complete -o nospace -C /usr/bin/mcli mcli