Browse Source

Added dmenu pass script

red-hat-laptop
Kevin Mok 6 years ago
parent
commit
453d2febc2
Signed by: Kevin-Mok GPG Key ID: AEA75288DC135CF5
  1. 2
      aliases/zsh_aliases
  2. 30
      configs/i3/config
  3. 2
      configs/i3blocks-scripts/volume
  4. 2
      dotfiles/.vimrc
  5. 3
      scripts/change-sink
  6. 25
      scripts/passmenu
  7. 2
      txt/usbs.md

2
aliases/zsh_aliases

@ -262,7 +262,7 @@ function gcm(){ echo git commit -m \""$1"\" ; }
function psgi() { function psgi() {
git add . git add .
git commit -mS '.'
git commit -m '.' -S
git push git push
} }
alias gps="git push" alias gps="git push"

30
configs/i3/config

@ -32,18 +32,21 @@ bindsym Mod4+a exec studio
bindsym $mod+control+Return exec $def_term bindsym $mod+control+Return exec $def_term
bindsym Mod4+c exec $browser bindsym Mod4+c exec $browser
bindsym Mod4+f exec firefox bindsym Mod4+f exec firefox
bindsym Mod4+o exec okular
bindsym Mod4+m exec okular $sch_dir/calc-textbook.pdf
bindsym Mod4+h exec echo 'kevin.mok@live.ca' | xclip -selection clipboard
bindsym Mod4+n exec urxvt -e nvim bindsym Mod4+n exec urxvt -e nvim
bindsym Mod4+p workspace $ws4; exec pgadmin3
bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail
# bindsym Mod4+p workspace $ws4; exec pgadmin3
# bindsym Mod4+p exec pycharm # bindsym Mod4+p exec pycharm
bindsym Mod4+p exec passmenu
bindsym Mod4+q exec qdirstat bindsym Mod4+q exec qdirstat
bindsym Mod4+r exec urxvt -e ranger bindsym Mod4+r exec urxvt -e ranger
# bindsym control+$mod+s exec systemctl suspend # bindsym control+$mod+s exec systemctl suspend
bindsym control+$mod+s exec systemctl suspend bindsym control+$mod+s exec systemctl suspend
bindsym Mod4+t exec st bindsym Mod4+t exec st
bindsym Mod4+u exec echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard
# bindsym Mod4+x exec $swex # bindsym Mod4+x exec $swex
# bindsym Mod4+x exec xmodmap ~/.Xmodmap # bindsym Mod4+x exec xmodmap ~/.Xmodmap
bindsym Mod4+z exec cliqz
# bindsym Print exec gscreenshot # bindsym Print exec gscreenshot
# }}} app shortcuts # # }}} app shortcuts #
@ -219,11 +222,11 @@ set $ws7 "7 "
workspace $ws7 output $samsung workspace $ws7 output $samsung
bindsym $mod+F7 workspace $ws7; exec $def_term bindsym $mod+F7 workspace $ws7; exec $def_term
set $ws8 "8 "
set $ws8 "8 "
# set $ws8 "8 📊" # set $ws8 "8 📊"
# assign [class="jetbrains-"] $ws8 # assign [class="jetbrains-"] $ws8
workspace $ws8 output $samsung workspace $ws8 output $samsung
bindsym $mod+F8 workspace $ws8; exec urxvt -e htop -s PERCENT_MEM
bindsym $mod+F8 workspace $ws8; exec $def_term
set $ws9 "9 " set $ws9 "9 "
# set $ws9 "9 🔧" # set $ws9 "9 🔧"
@ -237,13 +240,14 @@ workspace $ws10 output $samsung
set $hp 2 set $hp 2
# bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0 # bindsym Mod4+v workspace $ws10; exec urxvt -e alsamixer -c 0
bindsym Mod4+v workspace $ws10; exec urxvt -e cava bindsym Mod4+v workspace $ws10; exec urxvt -e cava
bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp
# bindsym Mod4+h workspace $ws10; exec urxvt -e alsamixer -c $hp
bindsym Mod4+s workspace $ws10; exec spotify bindsym Mod4+s workspace $ws10; exec spotify
set $ws11 "11 "
set $ws11 "11 "
# set $ws11 "11 📊"
# assign [class="Summoners War Exporter"] $ws11 # assign [class="Summoners War Exporter"] $ws11
workspace $ws11 output $samsung workspace $ws11 output $samsung
bindsym $mod+F11 workspace $ws11; exec $def_term
bindsym $mod+F11 workspace $ws11; exec urxvt -e htop -s PERCENT_MEM
set $ws12 "12 " set $ws12 "12 "
bindsym $mod+F12 workspace $ws12; exec $def_term bindsym $mod+F12 workspace $ws12; exec $def_term
@ -332,11 +336,11 @@ for_window [class="^.*"] border pixel 3
set $inner_gaps 40 set $inner_gaps 40
set $outer_gaps 0 set $outer_gaps 0
gaps inner $inner_gaps
gaps outer $outer_gaps
gaps bottom 0
# gaps inner 0
# gaps outer 0
# gaps inner $inner_gaps
# gaps outer $outer_gaps
# gaps bottom 0
gaps inner 0
gaps outer 0
# other gaps {{{ # # other gaps {{{ #

2
configs/i3blocks-scripts/volume

@ -141,7 +141,7 @@ esac
function print_format { function print_format {
# echo $NAME # echo $NAME
case $NAME in case $NAME in
*"FiiO"*)
*"USB"*)
SINK_SYMB="" SINK_SYMB=""
;; ;;
*"hdmi"*) *"hdmi"*)

2
dotfiles/.vimrc

@ -196,6 +196,8 @@ let mapleader="\<Space>"
" replace until end of line " replace until end of line
nnoremap <leader>c c$ nnoremap <leader>c c$
" delete entire buffer " delete entire buffer
nnoremap <leader>d d$
" delete entire buffer
nnoremap <leader>dg ggdG nnoremap <leader>dg ggdG
" delete line into system clipboard " delete line into system clipboard
nnoremap <leader>D "+dd nnoremap <leader>D "+dd

3
scripts/change-sink

@ -9,7 +9,8 @@ case $1 in
devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo" devicename="alsa_output.usb-1852_DigiHug_USB_Audio-01.analog-stereo"
;; ;;
line-out ) line-out )
devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
# devicename="alsa_output.pci-0000_00_14.2.analog-stereo"
devicename="alsa_output.pci-0000_00_14.2.iec958-stereo"
;; ;;
esac esac
# if [ "$1" = "dac" ]; then # if [ "$1" = "dac" ]; then

25
scripts/passmenu

@ -0,0 +1,25 @@
#!/usr/bin/env bash
shopt -s nullglob globstar
typeit=0
if [[ $1 == "--type" ]]; then
typeit=1
shift
fi
prefix=${PASSWORD_STORE_DIR-~/.password-store}
password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )
password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
[[ -n $password ]] || exit
if [[ $typeit -eq 0 ]]; then
pass show -c "$password" 2>/dev/null
else
pass show "$password" | { IFS= read -r pass; printf %s "$pass"; } |
xdotool type --clearmodifiers --file -
fi

2
txt/usbs.md

@ -7,7 +7,7 @@
- HP (1TB) = files/backups - HP (1TB) = files/backups
# 2.0 # 2.0
- Adata (16) = Antergos
- Adata (16) = Windows files
- Lexar (32) = - Lexar (32) =
- Kingston (16) = Ubuntu - Kingston (16) = Ubuntu
- Kingston (yellow, 8) = Manjaro - Kingston (yellow, 8) = Manjaro

Loading…
Cancel
Save