wip
This commit is contained in:
parent
1869ee9018
commit
e1a6e5f083
@ -11,7 +11,7 @@ PACKAGES=(
|
|||||||
# cli programs
|
# cli programs
|
||||||
vifm vim # navigation & editors
|
vifm vim # navigation & editors
|
||||||
dash shellcheck # shell scripting
|
dash shellcheck # shell scripting
|
||||||
hugo miniserve neomutt # www
|
hugo miniserve neomutt translate-shell # www
|
||||||
gnupg pass pass-otp # crypt
|
gnupg pass pass-otp # crypt
|
||||||
git zip # others
|
git zip # others
|
||||||
|
|
||||||
|
@ -4,8 +4,9 @@ export BEMENU_OPTS="\
|
|||||||
--width-factor 0.5 \
|
--width-factor 0.5 \
|
||||||
--fn \"$THEME_FONT_MONO $THEME_SIZE_FONT_LARGE_PT\" \
|
--fn \"$THEME_FONT_MONO $THEME_SIZE_FONT_LARGE_PT\" \
|
||||||
--list 500 \
|
--list 500 \
|
||||||
--border 1 \
|
--border 2 \
|
||||||
--scrollbar autohide \
|
--scrollbar autohide \
|
||||||
|
--border-radius 4 \
|
||||||
--bdr #$THEME_COLOR_FG_ACCENT$THEME_OPACITY_MID_HEX \
|
--bdr #$THEME_COLOR_FG_ACCENT$THEME_OPACITY_MID_HEX \
|
||||||
--scf #$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 \
|
--nb #$THEME_COLOR_BG$THEME_OPACITY_HIGH_HEX \
|
||||||
|
8
arch-user/config/mako/config.tmpl
Normal file
8
arch-user/config/mako/config.tmpl
Normal 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
|
@ -36,6 +36,7 @@ cp -rf config/bash/bashrc ~/.bashrc
|
|||||||
# templated
|
# templated
|
||||||
cp_subst config/sway/config.tmpl ~/.config/sway/config
|
cp_subst config/sway/config.tmpl ~/.config/sway/config
|
||||||
cp_subst config/foot/foot.ini.tmpl ~/.config/foot/foot.ini
|
cp_subst config/foot/foot.ini.tmpl ~/.config/foot/foot.ini
|
||||||
|
cp_subst config/mako/config.tmpl ~/.config/mako/config
|
||||||
|
|
||||||
# dynamic
|
# dynamic
|
||||||
cp -rf config/profile ~/.profile
|
cp -rf config/profile ~/.profile
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
LIST=();
|
LIST=();
|
||||||
|
# gui
|
||||||
if [ "$USER" = "yrzam" ]; then
|
if [ "$USER" = "yrzam" ]; then
|
||||||
LIST+=(
|
LIST+=(
|
||||||
"web" "web projects"
|
"web" "web projects"
|
||||||
@ -14,15 +15,20 @@ fi
|
|||||||
LIST+=(
|
LIST+=(
|
||||||
"gui" "gimp"
|
"gui" "gimp"
|
||||||
"gui" "sqlitebrowser"
|
"gui" "sqlitebrowser"
|
||||||
|
# tui
|
||||||
"shell_tui" "vifm"
|
"shell_tui" "vifm"
|
||||||
"shell_tui" "vim"
|
"shell_tui" "vim"
|
||||||
"tui" "htop"
|
"tui" "htop"
|
||||||
"tui" "nmtui"
|
"tui" "nmtui"
|
||||||
"man" "man"
|
"man" "man"
|
||||||
"screenpick-todo" "screenshot all"
|
|
||||||
"screenpick-todo" "screenshot selection"
|
|
||||||
"pass" "pass"
|
|
||||||
"term" "term"
|
"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
|
if [ "$FEAT_BRIGHTNESS" ]; then
|
||||||
LIST+=(
|
LIST+=(
|
||||||
@ -64,13 +70,28 @@ exec_term() {
|
|||||||
}
|
}
|
||||||
# custom
|
# custom
|
||||||
exec_web() {
|
exec_web() {
|
||||||
/bin/qutebrowser --set tabs.tabs_are_windows true --set tabs.show never "https://google.com"
|
qutebrowser "https://google.com"
|
||||||
}
|
}
|
||||||
exec_power() {
|
exec_man() {
|
||||||
case "$1" in
|
shift
|
||||||
poweroff|reboot|suspend) sure && systemctl "$@";;
|
page="$1"
|
||||||
logout) sure && swaymsg exit;;
|
if [ -z "$page" ]; then
|
||||||
esac
|
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() {
|
exec_brightness() {
|
||||||
shift
|
shift
|
||||||
@ -87,20 +108,11 @@ exec_brightness() {
|
|||||||
[ -z "$1" ] && exec_brightness brightness
|
[ -z "$1" ] && exec_brightness brightness
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
exec_man() {
|
exec_power() {
|
||||||
shift
|
case "$1" in
|
||||||
page="$1"
|
poweroff|reboot|suspend) sure && systemctl "$@";;
|
||||||
if [ -z "$page" ]; then
|
logout) sure && swaymsg exit;;
|
||||||
page="$(
|
esac
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -n "$1" ]; then
|
if [ -n "$1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user