Compare commits
8 commits
ea95fdec97
...
6139453f62
Author | SHA1 | Date | |
---|---|---|---|
6139453f62 | |||
5429e63037 | |||
673af4db0d | |||
5f6ffe53e7 | |||
f131674bc0 | |||
226aa2b6c1 | |||
5ac2f4bb56 | |||
b208d17ed6 |
8 changed files with 65 additions and 11 deletions
28
bin/executable_gopassmenu
Normal file
28
bin/executable_gopassmenu
Normal 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
|
|
@ -18,7 +18,7 @@
|
|||
# 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.
|
||||
unqualified-search-registries = ["docker.io"]
|
||||
unqualified-search-registries = ["dhub.corp.metrans.cz", "docker.io"]
|
||||
#
|
||||
# [[registry]]
|
||||
# # The "prefix" field is used to choose the relevant [[registry]] TOML table;
|
||||
|
|
|
@ -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-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-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-m spawn systemd-run --scope --user ~/.config/herbstluftwm/pmount-dmenu
|
||||
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
|
||||
hc unlock
|
||||
|
||||
hc setenv SSH_AUTH_SOCK "$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
systemctl --user import-environment DISPLAY XAUTHORITY XDG_SESSION_PATH
|
||||
|
||||
systemctl restart --no-block --user "hlwm.target"
|
||||
|
|
|
@ -2213,6 +2213,7 @@ map kitty_mod+enter launch --type os-window --cwd=current
|
|||
#: Insert selected path
|
||||
|
||||
# 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,
|
||||
#:: for instance to run git commands on a filename output from a
|
||||
|
|
|
@ -58,9 +58,10 @@ http {
|
|||
add_header "Vary" "Origin";
|
||||
access_log off;
|
||||
|
||||
client_body_temp_path /run/user/{{ .chezmoi.uid }}/nginx/body;
|
||||
fastcgi_temp_path /run/user/{{ .chezmoi.uid }}/nginx/fastcgi;
|
||||
|
||||
client_body_temp_path /run/user/1000/nginx/body;
|
||||
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_name files.*;
|
||||
|
|
|
@ -15,7 +15,7 @@ return {
|
|||
end
|
||||
end,
|
||||
dependencies = {
|
||||
{ 'rcarriga/nvim-dap-ui', dependencies = 'nvim-neotest/nvim-nio' },
|
||||
{ 'rcarriga/nvim-dap-ui', dependencies = { 'nvim-neotest/nvim-nio' } },
|
||||
'williamboman/mason.nvim',
|
||||
},
|
||||
keys = {
|
||||
|
@ -65,6 +65,22 @@ return {
|
|||
},
|
||||
},
|
||||
}, -- }}}
|
||||
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)
|
||||
-- signs - move to colorsheme? {{{
|
||||
|
|
|
@ -16,8 +16,6 @@ alias wine32="WINEARCH=win32 WINEPREFIX=$HOME/.wine32 wine"
|
|||
|
||||
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 scus='systemctl --user stop'
|
||||
alias scust='systemctl --user status'
|
||||
|
@ -27,6 +25,8 @@ alias ls='ls --color=tty --hyperlink=auto'
|
|||
alias l='ls -lh'
|
||||
alias la='l -a'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
alias ip='ip --color=auto'
|
||||
|
||||
alias _=sudo
|
||||
|
@ -40,8 +40,10 @@ alias -g ....='../../..'
|
|||
alias -g .....='../../../..'
|
||||
alias -g ......='../../../../..'
|
||||
|
||||
alias ssh='kitten ssh'
|
||||
[[ -n $KITTY_PID ]] && alias ssh='kitten ssh'
|
||||
|
||||
# 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'
|
||||
|
||||
|
|
|
@ -1,2 +1,7 @@
|
|||
_zprintlevel=1
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue