diff --git a/arch-root/install.sh b/arch-root/install.sh index b0ac0ee..43a4a68 100644 --- a/arch-root/install.sh +++ b/arch-root/install.sh @@ -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 diff --git a/arch-user/config/bemenu/config.sh b/arch-user/config/bemenu/config.sh index c39e86b..1638077 100644 --- a/arch-user/config/bemenu/config.sh +++ b/arch-user/config/bemenu/config.sh @@ -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 \ diff --git a/arch-user/config/mako/config.tmpl b/arch-user/config/mako/config.tmpl new file mode 100644 index 0000000..4df2d19 --- /dev/null +++ b/arch-user/config/mako/config.tmpl @@ -0,0 +1,8 @@ +format=%s - %a\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 diff --git a/arch-user/install.sh b/arch-user/install.sh index f20dc22..820141b 100644 --- a/arch-user/install.sh +++ b/arch-user/install.sh @@ -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 diff --git a/arch-user/scripts/run.sh b/arch-user/scripts/run.sh index dc38ffa..6cfb914 100755 --- a/arch-user/scripts/run.sh +++ b/arch-user/scripts/run.sh @@ -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