Added path for wm_scripts.

This commit is contained in:
Sheldon Lee 2021-12-28 21:38:34 +08:00
parent a664d4742c
commit a66080a173
4 changed files with 24 additions and 5 deletions

10
.bashrc
View File

@ -19,13 +19,13 @@ export VISUAL=nvim
export _JAVA_AWT_WM_NONREPARENTING=1
# android SDK
export ANDROID_SDK_ROOT=/home/sheldonmlee/Library/Android
export PATH="$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$PATH"
export PATH="$ANDROID_SDK_ROOT/platform-tools/:$PATH"
#export ANDROID_SDK_ROOT=/home/sheldonmlee/Library/Android
#export PATH="$ANDROID_SDK_ROOT/cmdline-tools/latest/bin:$PATH"
#export PATH="$ANDROID_SDK_ROOT/platform-tools:$PATH"
# custom scripts and programs
export PATH="~/.local/bin:$PATH"
export PATH="~/.config/wm_scripts/bin:$PATH"
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.config/wm_scripts/bin:$PATH"
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk

View File

@ -0,0 +1,2 @@
#!/bin/sh
slstatus -s

15
.config/wm_scripts/bin/passrofi Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
shopt -s nullglob globstar
dmenu="rofi"
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" -dmenu "$@")
[[ -n $password ]] || exit
pass show -c "$password" 2>/dev/null

View File

@ -0,0 +1,2 @@
#!/bin/sh
feh --bg-fill $HOME/wallpaper/wallpaper