Compare commits

...

2 commits

Author SHA1 Message Date
Dmitry Voronin 58c7896eda Sway : Hide cursor after 5s of inactivity. 2024-03-29 05:35:35 +03:00
Dmitry Voronin ca25101652 Own : Add completion. 2024-03-29 05:35:15 +03:00
4 changed files with 15 additions and 1 deletions

View file

@ -28,3 +28,9 @@ function own() {
chmod -077 -R "${file}"
done
}
function _complete_own() {
_autocomplete_first_ls $(_get_users)
}
complete -F _complete_own own

View file

@ -17,7 +17,7 @@ function sudo() {
}
function _complete_s() {
_autocomplete "voronind" "dasha"
_autocomplete_first $(_get_users)
}
complete -F _complete_s s

View file

@ -131,3 +131,8 @@ function _is_root() {
function _bell() {
echo -e '\a'
}
function _get_users() {
local users=("voronind" "dasha")
echo ${users[@]}
}

View file

@ -34,3 +34,6 @@ input type:keyboard {
xkb_layout us,ru
xkb_options grp:caps_toggle,lv3:ralt_switch
}
# Hide mouse cursor after a period of inactivity.
seat seat0 hide_cursor 5000