This commit is contained in:
Yuri Zamyatin 2025-01-01 23:48:33 +00:00
parent 1869ee9018
commit e1a6e5f083
5 changed files with 47 additions and 25 deletions

View File

@ -11,7 +11,7 @@ PACKAGES=(
# cli programs
vifm vim # navigation & editors
dash shellcheck # shell scripting
hugo miniserve neomutt # www
hugo miniserve neomutt translate-shell # www
gnupg pass pass-otp # crypt
git zip # others

View File

@ -4,8 +4,9 @@ export BEMENU_OPTS="\
--width-factor 0.5 \
--fn \"$THEME_FONT_MONO $THEME_SIZE_FONT_LARGE_PT\" \
--list 500 \
--border 1 \
--border 2 \
--scrollbar autohide \
--border-radius 4 \
--bdr #$THEME_COLOR_FG_ACCENT$THEME_OPACITY_MID_HEX \
--scf #$THEME_COLOR_FG_ACCENT$THEME_OPACITY_MID_HEX \
--nb #$THEME_COLOR_BG$THEME_OPACITY_HIGH_HEX \

View File

@ -0,0 +1,8 @@
format=<b>%s - %a</b>\n%b
font=Roboto 10
background-color=#$THEME_COLOR_BG_ACCENT_DARK$THEME_OPACITY_HIGH_HEX
border-size=2
border-radius=4
border-color=#$THEME_COLOR_FG_ACCENT
padding=5,10
width=400

View File

@ -36,6 +36,7 @@ cp -rf config/bash/bashrc ~/.bashrc
# templated
cp_subst config/sway/config.tmpl ~/.config/sway/config
cp_subst config/foot/foot.ini.tmpl ~/.config/foot/foot.ini
cp_subst config/mako/config.tmpl ~/.config/mako/config
# dynamic
cp -rf config/profile ~/.profile

View File

@ -1,6 +1,7 @@
#!/bin/bash
LIST=();
# gui
if [ "$USER" = "yrzam" ]; then
LIST+=(
"web" "web projects"
@ -14,15 +15,20 @@ fi
LIST+=(
"gui" "gimp"
"gui" "sqlitebrowser"
# tui
"shell_tui" "vifm"
"shell_tui" "vim"
"tui" "htop"
"tui" "nmtui"
"man" "man"
"screenpick-todo" "screenshot all"
"screenpick-todo" "screenshot selection"
"pass" "pass"
"term" "term"
# native
"screen_pick" "screenshot all"
"screen_pick" "screenshot selection"
"pass" "pass"
"transl" "translate en-ru"
"transl" "translate ru-en"
"word_pick" "pick-word"
)
if [ "$FEAT_BRIGHTNESS" ]; then
LIST+=(
@ -64,13 +70,28 @@ exec_term() {
}
# custom
exec_web() {
/bin/qutebrowser --set tabs.tabs_are_windows true --set tabs.show never "https://google.com"
qutebrowser "https://google.com"
}
exec_power() {
case "$1" in
poweroff|reboot|suspend) sure && systemctl "$@";;
logout) sure && swaymsg exit;;
esac
exec_man() {
shift
page="$1"
if [ -z "$page" ]; then
page="$(
man -k . | \
bemenu --prompt "man" | \
sed ' s/\s\+\-.*//;s/ //g'
)"
fi
[ -n "$page" ] && exec footclient "$SHELL" -c "man '$page' || read -n1"
}
exec_pass() {
echo 1
}
exec_transl() {
echo 1
}
exec_word_pick() {
echo 1
}
exec_brightness() {
shift
@ -87,20 +108,11 @@ exec_brightness() {
[ -z "$1" ] && exec_brightness brightness
fi
}
exec_man() {
shift
page="$1"
if [ -z "$page" ]; then
page="$(
man -k . | \
bemenu --prompt "man" | \
sed ' s/\s*\-.*//;s/ //g'
)"
fi
[ -n "$page" ] && exec footclient "$SHELL" -c "man '$page' || read -n1"
}
exec_pass() {
echo 1
exec_power() {
case "$1" in
poweroff|reboot|suspend) sure && systemctl "$@";;
logout) sure && swaymsg exit;;
esac
}
if [ -n "$1" ]; then