modify desktop profile
This commit is contained in:
@@ -190,6 +190,8 @@ bindsym $mod+Shift+F12 move container to workspace number $wsF12
|
|||||||
|
|
||||||
# window assignments
|
# window assignments
|
||||||
assign [app_id="[Ff]irefox"] $ws2
|
assign [app_id="[Ff]irefox"] $ws2
|
||||||
|
assign [app_id="[Ii]ce[Ww]easel"] $ws2
|
||||||
|
assign [app_id="[Aa]browser"] $ws2
|
||||||
assign [app_id="[Ll]ibre[Ww]olf"] $ws2
|
assign [app_id="[Ll]ibre[Ww]olf"] $ws2
|
||||||
assign [app_id="[Cc]hromium"] $ws3
|
assign [app_id="[Cc]hromium"] $ws3
|
||||||
assign [app_id="[Tt]hunderbird"] $ws4
|
assign [app_id="[Tt]hunderbird"] $ws4
|
||||||
@@ -310,7 +312,7 @@ focus_follows_mouse no
|
|||||||
|
|
||||||
## autostart ##
|
## autostart ##
|
||||||
exec chromium
|
exec chromium
|
||||||
exec firefox
|
exec iceweasel
|
||||||
exec thunderbird
|
exec thunderbird
|
||||||
workspace number $ws1
|
workspace number $ws1
|
||||||
exec foot
|
exec foot
|
||||||
|
|||||||
@@ -63,8 +63,8 @@ clipboard_backend=${ROFI_PASS_CLIPBOARD_BACKEND:-xclip}
|
|||||||
backend=${ROFI_PASS_BACKEND:-xdotool}
|
backend=${ROFI_PASS_BACKEND:-xdotool}
|
||||||
|
|
||||||
case "$clipboard_backend" in
|
case "$clipboard_backend" in
|
||||||
"xclip") ;;
|
"xclip");;
|
||||||
"wl-clipboard") ;;
|
"wl-clipboard");;
|
||||||
*)
|
*)
|
||||||
>&2 echo "Invalid clipboard backend '$clipboard_backend', falling back to xclip"
|
>&2 echo "Invalid clipboard backend '$clipboard_backend', falling back to xclip"
|
||||||
clipboard_backend=xclip
|
clipboard_backend=xclip
|
||||||
@@ -72,9 +72,8 @@ case "$clipboard_backend" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
case "$backend" in
|
case "$backend" in
|
||||||
"xdotool") ;;
|
"xdotool");;
|
||||||
"ydotool") ;;
|
"wtype");;
|
||||||
"wtype") ;;
|
|
||||||
*)
|
*)
|
||||||
>&2 echo "Invalid backend '$backend', falling back to xdotool"
|
>&2 echo "Invalid backend '$backend', falling back to xdotool"
|
||||||
backend=xdotool
|
backend=xdotool
|
||||||
@@ -122,10 +121,6 @@ _do_type_xdotool() {
|
|||||||
xdotool type --delay ${type_delay} --clearmodifiers --file -
|
xdotool type --delay ${type_delay} --clearmodifiers --file -
|
||||||
}
|
}
|
||||||
|
|
||||||
_do_type_ydotool() {
|
|
||||||
ydotool type --key-delay ${type_delay} --file -
|
|
||||||
}
|
|
||||||
|
|
||||||
_do_type_wtype() {
|
_do_type_wtype() {
|
||||||
wtype -d ${type_delay} -
|
wtype -d ${type_delay} -
|
||||||
}
|
}
|
||||||
@@ -160,7 +155,7 @@ doClip () {
|
|||||||
case "$clip" in
|
case "$clip" in
|
||||||
"primary") ${clip_in_primary} ;;
|
"primary") ${clip_in_primary} ;;
|
||||||
"clipboard") ${clip_in_clipboard} ;;
|
"clipboard") ${clip_in_clipboard} ;;
|
||||||
"both") ${clip_in_primary}; ${clip_out_primary} | ${clip_in_clipboard} ;;
|
"both") ${clip_in_primary}; ${clip_out_primary} | ${clip_in_clipboard};;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -179,14 +174,14 @@ autopass () {
|
|||||||
printf '%s\n' "${root}: $selected_password" > "$cache_dir/rofi-pass/last_used"
|
printf '%s\n' "${root}: $selected_password" > "$cache_dir/rofi-pass/last_used"
|
||||||
for word in ${stuff["$AUTOTYPE_field"]}; do
|
for word in ${stuff["$AUTOTYPE_field"]}; do
|
||||||
case "$word" in
|
case "$word" in
|
||||||
":tab") ${do_press_key} Tab ;;
|
":tab") ${do_press_key} Tab;;
|
||||||
":space") ${do_press_key} space ;;
|
":space") ${do_press_key} space;;
|
||||||
":delay") sleep "${delay}" ;;
|
":delay") sleep "${delay}";;
|
||||||
":enter") ${do_press_key} Return ;;
|
":enter") ${do_press_key} Return;;
|
||||||
":otp") printf '%s' "$(generateOTP)" | ${do_type} ;;
|
":otp") printf '%s' "$(generateOTP)" | ${do_type};;
|
||||||
"pass") printf '%s' "${password}" | ${do_type} ;;
|
"pass") printf '%s' "${password}" | ${do_type};;
|
||||||
"path") printf '%s' "${selected_password}" | rev | cut -d'/' -f1 | rev | ${do_type} ;;
|
"path") printf '%s' "${selected_password}" | rev | cut -d'/' -f1 | rev | ${do_type};;
|
||||||
*) printf '%s' "${stuff[${word}]}" | ${do_type} ;;
|
*) printf '%s' "${stuff[${word}]}" | ${do_type};;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -478,10 +473,10 @@ mainMenu () {
|
|||||||
# Actions based on exit code, which do not need the entry.
|
# Actions based on exit code, which do not need the entry.
|
||||||
# The exit code for -kb-custom-X is X+9.
|
# The exit code for -kb-custom-X is X+9.
|
||||||
case "${rofi_exit}" in
|
case "${rofi_exit}" in
|
||||||
19) roots_index=$(( (roots_index-1+roots_length) % roots_length)); root=${roots[$roots_index]}; mainMenu; return ;;
|
19) roots_index=$(( (roots_index-1+roots_length) % roots_length)); root=${roots[$roots_index]}; mainMenu; return;;
|
||||||
20) roots_index=$(( (roots_index+1) % roots_length)); root=${roots[$roots_index]}; mainMenu; return ;;
|
20) roots_index=$(( (roots_index+1) % roots_length)); root=${roots[$roots_index]}; mainMenu; return;;
|
||||||
25) helpMenu; return ;;
|
25) helpMenu; return;;
|
||||||
26) ${basecommand} --bmarks; return ;;
|
26) ${basecommand} --bmarks; return;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass show "$selected_password")
|
mapfile -t password_temp < <(PASSWORD_STORE_DIR="${root}" pass show "$selected_password")
|
||||||
@@ -543,21 +538,21 @@ mainMenu () {
|
|||||||
# actions based on keypresses
|
# actions based on keypresses
|
||||||
# The exit code for -kb-custom-X is X+9.
|
# The exit code for -kb-custom-X is X+9.
|
||||||
case "${rofi_exit}" in
|
case "${rofi_exit}" in
|
||||||
0) typeMenu ;;
|
0) typeMenu;;
|
||||||
10) sleep $wait; autopass ;;
|
10) sleep $wait; autopass;;
|
||||||
11) sleep $wait; typeUser ;;
|
11) sleep $wait; typeUser;;
|
||||||
12) sleep $wait; typePass ;;
|
12) sleep $wait; typePass;;
|
||||||
13) openURL ;;
|
13) openURL;;
|
||||||
14) copyUser ;;
|
14) copyUser;;
|
||||||
15) copyPass ;;
|
15) copyPass;;
|
||||||
16) viewEntry ;;
|
16) viewEntry;;
|
||||||
17) copyURL ;;
|
17) copyURL;;
|
||||||
18) default_do="menu" typeMenu ;;
|
18) default_do="menu" typeMenu;;
|
||||||
21) sleep $wait; typefield=OTP; typeField ;;
|
21) sleep $wait; typefield=OTP; typeField;;
|
||||||
23) actionMenu ;;
|
23) actionMenu;;
|
||||||
24) copyMenu ;;
|
24) copyMenu;;
|
||||||
27) insertPass ;;
|
27) insertPass;;
|
||||||
28) generateQrCode ;;
|
28) generateQrCode;;
|
||||||
esac
|
esac
|
||||||
clearUp
|
clearUp
|
||||||
}
|
}
|
||||||
@@ -595,13 +590,13 @@ helpMenu () {
|
|||||||
${previous_root}: Switch to previous password store (--root)
|
${previous_root}: Switch to previous password store (--root)
|
||||||
${next_root}: Switch to next password store (--root)
|
${next_root}: Switch to next password store (--root)
|
||||||
EOM
|
EOM
|
||||||
help_val=$?
|
help_val=$?
|
||||||
|
|
||||||
if [[ $help_val -eq 1 ]]; then
|
if [[ $help_val -eq 1 ]]; then
|
||||||
exit;
|
exit;
|
||||||
else
|
else
|
||||||
unset helptext; mainMenu;
|
unset helptext; mainMenu;
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -617,9 +612,9 @@ typeMenu () {
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
case "$typefield" in
|
case "$typefield" in
|
||||||
'') exit ;;
|
'') exit;;
|
||||||
'pass') sleep $wait; typePass ;;
|
'pass') sleep $wait; typePass;;
|
||||||
"${AUTOTYPE_field}") sleep $wait; autopass ;;
|
"${AUTOTYPE_field}") sleep $wait; autopass;;
|
||||||
*) sleep $wait; typeField
|
*) sleep $wait; typeField
|
||||||
esac
|
esac
|
||||||
clearUp
|
clearUp
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export DOCKER_HOST=unix://${XDG_RUNTIME_DIR}/docker.sock
|
|||||||
export PODMAN_COMPOSE_PROVIDER=podman-compose
|
export PODMAN_COMPOSE_PROVIDER=podman-compose
|
||||||
export MPD_HOST=${HOME}/.config/mpd/socket
|
export MPD_HOST=${HOME}/.config/mpd/socket
|
||||||
export GRIM_DEFAULT_DIR=${HOME}/Pictures/Screenshots
|
export GRIM_DEFAULT_DIR=${HOME}/Pictures/Screenshots
|
||||||
export ROFI_PASS_BACKEND=ydotool
|
export ROFI_PASS_BACKEND=wtype
|
||||||
export ROFI_PASS_CLIPBOARD_BACKEND=wl-clipboard
|
export ROFI_PASS_CLIPBOARD_BACKEND=wl-clipboard
|
||||||
|
|
||||||
if [[ ! -z "${START_X11}" ]]; then
|
if [[ ! -z "${START_X11}" ]]; then
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
mkdir -p "${HOME}/.config/mpd/playlists"
|
mkdir -p "${HOME}"/.config/mpd/playlists
|
||||||
touch "${HOME}/.config/mpd/{state,sticker.sql,socket,database}"
|
touch "${HOME}"/.config/mpd/{state,sticker.sql,socket,database}
|
||||||
|
|||||||
Reference in New Issue
Block a user