Compare commits
7 Commits
6921014aec
...
43c270e596
Author | SHA1 | Date |
---|---|---|
lelgenio | 43c270e596 | |
lelgenio | 1e81ac2373 | |
lelgenio | 546eef0331 | |
lelgenio | 611f89656b | |
lelgenio | 4598c8051a | |
lelgenio | 23064088fe | |
lelgenio | ae74874294 |
369
config.yaml
369
config.yaml
|
@ -5,7 +5,10 @@
|
||||||
# \__,_|\___/ \__\__,_|_| \___/| .__/
|
# \__,_|\___/ \__\__,_|_| \___/| .__/
|
||||||
# |_|
|
# |_|
|
||||||
|
|
||||||
|
###############################################################
|
||||||
variables:
|
variables:
|
||||||
|
###############################################################
|
||||||
|
|
||||||
username: lelgenio
|
username: lelgenio
|
||||||
mail: disroot.org
|
mail: disroot.org
|
||||||
cursor_size: 24
|
cursor_size: 24
|
||||||
|
@ -25,8 +28,11 @@ variables:
|
||||||
medium: 14
|
medium: 14
|
||||||
big: 16
|
big: 16
|
||||||
|
|
||||||
|
###############################################################
|
||||||
profiles:
|
profiles:
|
||||||
dark: # {{{
|
###############################################################
|
||||||
|
|
||||||
|
dark:
|
||||||
variables:
|
variables:
|
||||||
opacity: 0.98
|
opacity: 0.98
|
||||||
|
|
||||||
|
@ -48,8 +54,7 @@ profiles:
|
||||||
cyan: '#70C0BA'
|
cyan: '#70C0BA'
|
||||||
white: '#EAEAEA'
|
white: '#EAEAEA'
|
||||||
|
|
||||||
# }}}
|
light:
|
||||||
light: # {{{
|
|
||||||
variables:
|
variables:
|
||||||
opacity: 0.95
|
opacity: 0.95
|
||||||
|
|
||||||
|
@ -59,7 +64,7 @@ profiles:
|
||||||
bg_light: '#A0A0A0'
|
bg_light: '#A0A0A0'
|
||||||
bg_dark: '#EAEAEA'
|
bg_dark: '#EAEAEA'
|
||||||
txt: '#303030'
|
txt: '#303030'
|
||||||
nontxt: '#F0F0F0'
|
nontxt: '#E0E0E0'
|
||||||
|
|
||||||
normal:
|
normal:
|
||||||
black: '#555555'
|
black: '#555555'
|
||||||
|
@ -71,8 +76,9 @@ profiles:
|
||||||
cyan: '#00A0A5'
|
cyan: '#00A0A5'
|
||||||
white: '#FFFFFF'
|
white: '#FFFFFF'
|
||||||
|
|
||||||
# }}}
|
###############################################################
|
||||||
# Accents {{{
|
# Accents {{{
|
||||||
|
###############################################################
|
||||||
|
|
||||||
accent_red: {variables: {accent_color: "#D9534F"}}
|
accent_red: {variables: {accent_color: "#D9534F"}}
|
||||||
accent_green: {variables: {accent_color: "#159828"}}
|
accent_green: {variables: {accent_color: "#159828"}}
|
||||||
|
@ -82,8 +88,11 @@ profiles:
|
||||||
accent_magenta: {variables: {accent_color: "#9C27B0"}}
|
accent_magenta: {variables: {accent_color: "#9C27B0"}}
|
||||||
accent_orange: {variables: {accent_color: "#D93200"}}
|
accent_orange: {variables: {accent_color: "#D93200"}}
|
||||||
|
|
||||||
# }}}
|
###############################################################
|
||||||
colemak: #{{{
|
# Keyboard Layouts
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
colemak:
|
||||||
variables:
|
variables:
|
||||||
key:
|
key:
|
||||||
layout: colemak
|
layout: colemak
|
||||||
|
@ -97,8 +106,7 @@ profiles:
|
||||||
insertMode: s
|
insertMode: s
|
||||||
insertQuit: kk
|
insertQuit: kk
|
||||||
|
|
||||||
#}}}
|
qwerty:
|
||||||
qwerty: #{{{
|
|
||||||
variables:
|
variables:
|
||||||
key:
|
key:
|
||||||
layout: qwerty
|
layout: qwerty
|
||||||
|
@ -112,9 +120,12 @@ profiles:
|
||||||
insertMode: i
|
insertMode: i
|
||||||
insertQuit: jj
|
insertQuit: jj
|
||||||
|
|
||||||
#}}}
|
|
||||||
|
|
||||||
main: #{{{
|
###############################################################
|
||||||
|
# Main profile
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
main:
|
||||||
variables:
|
variables:
|
||||||
gtk_theme: "materia-{{@@ env['USER'] @@}}-{{@@ accent_color_name @@}}-{{@@ color.type @@}}"
|
gtk_theme: "materia-{{@@ env['USER'] @@}}-{{@@ accent_color_name @@}}-{{@@ color.type @@}}"
|
||||||
kvantum_theme: "Materia{{@@ color.type.capitalize() @@}}"
|
kvantum_theme: "Materia{{@@ color.type.capitalize() @@}}"
|
||||||
|
@ -127,9 +138,11 @@ profiles:
|
||||||
- "{{@@ color_type @@}}"
|
- "{{@@ color_type @@}}"
|
||||||
- "accent_{{@@ accent_color_name @@}}"
|
- "accent_{{@@ accent_color_name @@}}"
|
||||||
|
|
||||||
#}}}
|
|
||||||
|
|
||||||
config: # {{{
|
###############################################################
|
||||||
|
config:
|
||||||
|
###############################################################
|
||||||
|
|
||||||
backup: false
|
backup: false
|
||||||
banner: false
|
banner: false
|
||||||
keepdot: false
|
keepdot: false
|
||||||
|
@ -140,153 +153,31 @@ config: # {{{
|
||||||
- notify
|
- notify
|
||||||
func_file:
|
func_file:
|
||||||
- funcs.py
|
- funcs.py
|
||||||
|
filter_file:
|
||||||
|
- funcs.py
|
||||||
|
|
||||||
|
###############################################################
|
||||||
dynvariables:
|
dynvariables:
|
||||||
|
###############################################################
|
||||||
|
|
||||||
color_type: test -n "$_COLOR_TYPE" && echo "$_COLOR_TYPE" || echo dark
|
color_type: test -n "$_COLOR_TYPE" && echo "$_COLOR_TYPE" || echo dark
|
||||||
accent_color_name: test -n "$_ACCENT_COLOR" && echo "$_ACCENT_COLOR" || echo red
|
accent_color_name: test -n "$_ACCENT_COLOR" && echo "$_ACCENT_COLOR" || echo red
|
||||||
blender_version: blender --version | head -n1 | sed -E 's|^Blender (.*)\..*|\1|g'
|
blender_version: blender --version | head -n1 | sed -E 's|^Blender (.*)\..*|\1|g'
|
||||||
# }}}
|
|
||||||
dotfiles: # {{{
|
|
||||||
nvim:
|
|
||||||
src: nvim.vim
|
|
||||||
dst: ~/.config/nvim/init.vim
|
|
||||||
actions:
|
|
||||||
- vimplug
|
|
||||||
sway:
|
|
||||||
src: sway
|
|
||||||
dst: ~/.config/sway
|
|
||||||
actions:
|
|
||||||
- reload_sway
|
|
||||||
fish:
|
|
||||||
src: fish
|
|
||||||
dst: ~/.config/fish
|
|
||||||
actions:
|
|
||||||
- reload_fish
|
|
||||||
mako:
|
|
||||||
src: mako.conf
|
|
||||||
dst: ~/.config/mako/config
|
|
||||||
actions:
|
|
||||||
- reload_mako
|
|
||||||
waybar:
|
|
||||||
src: waybar
|
|
||||||
dst: ~/.config/waybar
|
|
||||||
actions:
|
|
||||||
- reload_sway
|
|
||||||
kitty:
|
|
||||||
src: kitty.conf
|
|
||||||
dst: ~/.config/kitty/kitty.conf
|
|
||||||
actions:
|
|
||||||
- reload_fish
|
|
||||||
qutebrowser:
|
|
||||||
src: qutebrowser
|
|
||||||
dst: ~/.config/qutebrowser
|
|
||||||
lesskey:
|
|
||||||
src: lesskey
|
|
||||||
dst: ~/.lesskey
|
|
||||||
actions:
|
|
||||||
- lesskey
|
|
||||||
scripts:
|
|
||||||
src: scripts
|
|
||||||
dst: ~/.local/bin
|
|
||||||
actions:
|
|
||||||
- make_theme
|
|
||||||
wofi:
|
|
||||||
src: wofi
|
|
||||||
dst: ~/.config/wofi
|
|
||||||
ranger:
|
|
||||||
src: ranger
|
|
||||||
dst: ~/.config/ranger
|
|
||||||
actions:
|
|
||||||
- ranger_icons
|
|
||||||
zathura:
|
|
||||||
src: zathura.conf
|
|
||||||
dst: ~/.config/zathura/zathurarc
|
|
||||||
wallpapers:
|
|
||||||
src: wallpapers
|
|
||||||
dst: ~/.local/share/wallpapers
|
|
||||||
mime:
|
|
||||||
src: mime/
|
|
||||||
dst: ~/
|
|
||||||
fusuma:
|
|
||||||
src: fusuma.yml
|
|
||||||
dst: ~/.config/fusuma/config.yml
|
|
||||||
alacritty:
|
|
||||||
src: alacritty.yml
|
|
||||||
dst: ~/.config/alacritty.yml
|
|
||||||
mpd:
|
|
||||||
src: mpd.conf
|
|
||||||
dst: ~/.config/mpd/mpd.conf
|
|
||||||
dav:
|
|
||||||
src: dav/
|
|
||||||
dst: ~/.config
|
|
||||||
actions:
|
|
||||||
- vdirsyncer
|
|
||||||
rclone:
|
|
||||||
src: rclone.conf
|
|
||||||
dst: ~/.config/rclone/rclone.conf
|
|
||||||
mutt:
|
|
||||||
src: neomutt/
|
|
||||||
dst: ~/.config/neomutt/
|
|
||||||
actions:
|
|
||||||
- lnMail
|
|
||||||
crontab:
|
|
||||||
src: crontab
|
|
||||||
dst: ~/.local/share/crontab
|
|
||||||
actions:
|
|
||||||
- crontab_install
|
|
||||||
theme:
|
|
||||||
src: theme
|
|
||||||
dst: ~/
|
|
||||||
kanshi:
|
|
||||||
src: kanshi
|
|
||||||
dst: ~/.config/kanshi/config
|
|
||||||
imv:
|
|
||||||
src: imv.conf
|
|
||||||
dst: ~/.config/imv/config
|
|
||||||
mpv:
|
|
||||||
src: mpv.conf
|
|
||||||
dst: ~/.config/mpv/mpv.conf
|
|
||||||
actions:
|
|
||||||
- sponsorblock
|
|
||||||
blender:
|
|
||||||
src: blenderTheme.xml
|
|
||||||
dst: "~/.config/blender/{{@@ blender_version @@}}/scripts/presets/interface_theme/blenderTheme.xml"
|
|
||||||
clang-format:
|
|
||||||
src: clang-format
|
|
||||||
dst: ~/.clang-format
|
|
||||||
gpg-agent:
|
|
||||||
src: gpg-agent.conf
|
|
||||||
dst: ~/.gnupg/gpg-agent.conf
|
|
||||||
actions:
|
|
||||||
- pam_gpg
|
|
||||||
tmux:
|
|
||||||
src: tmux.conf
|
|
||||||
dst: ~/.tmux.conf
|
|
||||||
git:
|
|
||||||
src: gitconfig
|
|
||||||
dst: ~/.config/git/config
|
|
||||||
telegram-theme:
|
|
||||||
src: ./telegram.palette
|
|
||||||
dst: ~/.local/share/TelegramDesktop/theme.tdesktop-palette
|
|
||||||
kakoune:
|
|
||||||
src: kak
|
|
||||||
dst: ~/.config/kak
|
|
||||||
packages:
|
|
||||||
src: metaPKGBUILD
|
|
||||||
dst: ~/.local/share/metapkg/PKGBUILD
|
|
||||||
actions:
|
|
||||||
- install_meta
|
|
||||||
bat:
|
|
||||||
src: bat
|
|
||||||
dst: ~/.config/bat/config
|
|
||||||
|
|
||||||
|
|
||||||
# }}}
|
###############################################################
|
||||||
actions: #{{{
|
actions:
|
||||||
notify: notify-send "Updating dotfiles" "{{@@ _dotfile_abs_dst.lstrip(env['HOME']) @@}}"
|
###############################################################
|
||||||
|
|
||||||
|
notify: >
|
||||||
|
notify-send
|
||||||
|
"Updating dotfiles"
|
||||||
|
"{{@@ _dotfile_abs_dst.lstrip(env['HOME']) @@}}"
|
||||||
|
|
||||||
reload_mako: makoctl reload
|
reload_mako: makoctl reload
|
||||||
lesskey: lesskey
|
lesskey: lesskey
|
||||||
reload_sway: swaymsg reload &>/dev/null & disown
|
|
||||||
reload_fish: pkill -SIGHUP fish
|
reload_fish: pkill -SIGHUP fish
|
||||||
|
|
||||||
vimplug: >
|
vimplug: >
|
||||||
nvim
|
nvim
|
||||||
+PlugUpgrade
|
+PlugUpgrade
|
||||||
|
@ -295,14 +186,18 @@ actions: #{{{
|
||||||
+qall
|
+qall
|
||||||
&> /dev/null
|
&> /dev/null
|
||||||
& disown
|
& disown
|
||||||
|
|
||||||
crontab_install: |
|
crontab_install: |
|
||||||
crontab -r
|
crontab -r
|
||||||
crontab ~/.local/share/crontab
|
crontab ~/.local/share/crontab
|
||||||
|
|
||||||
vdirsyncer: |
|
vdirsyncer: |
|
||||||
yes | vdirsyncer discover & disown
|
yes | vdirsyncer discover & disown
|
||||||
|
|
||||||
lnMail: |
|
lnMail: |
|
||||||
ln -fs ~/.config/neomutt/mbsyncrc ~/.mbsyncrc
|
ln -fs ~/.config/neomutt/mbsyncrc ~/.mbsyncrc
|
||||||
ln -fs ~/.config/neomutt/urlview ~/.urlview
|
ln -fs ~/.config/neomutt/urlview ~/.urlview
|
||||||
|
|
||||||
sponsorblock: >
|
sponsorblock: >
|
||||||
test -d ~/.config/mpv/scripts/sponsorblock_shared ||
|
test -d ~/.config/mpv/scripts/sponsorblock_shared ||
|
||||||
git clone
|
git clone
|
||||||
|
@ -312,14 +207,174 @@ actions: #{{{
|
||||||
rm -f
|
rm -f
|
||||||
~/.config/mpv/scripts/LICENSE
|
~/.config/mpv/scripts/LICENSE
|
||||||
~/.config/mpv/scripts/README.md
|
~/.config/mpv/scripts/README.md
|
||||||
|
|
||||||
ranger_icons:
|
ranger_icons:
|
||||||
git clone
|
git clone
|
||||||
https://github.com/alexanderjeurissen/ranger_devicons
|
https://github.com/alexanderjeurissen/ranger_devicons
|
||||||
~/.config/ranger/plugins/ranger_devicons
|
~/.config/ranger/plugins/ranger_devicons
|
||||||
|
|
||||||
|
# bootstrap scripts
|
||||||
pam_gpg: _pam-gpg-strap
|
pam_gpg: _pam-gpg-strap
|
||||||
make_theme:
|
make_theme: _make_theme
|
||||||
~/.local/bin/_make_theme
|
install_meta: install_meta
|
||||||
install_meta:
|
|
||||||
~/.local/bin/install_meta
|
post:
|
||||||
# }}}
|
# by having it be the last thing to run
|
||||||
# vim: fdm=marker
|
# and quickly disowning,
|
||||||
|
# we can make it run only once
|
||||||
|
reload_sway: >
|
||||||
|
pidof swaymsg &>/dev/null ||
|
||||||
|
swaymsg reload &
|
||||||
|
disown
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
dotfiles: # Just a bunch of paths and action mappings
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
# Regular programs
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
sway:
|
||||||
|
src: sway
|
||||||
|
dst: ~/.config/sway
|
||||||
|
actions:
|
||||||
|
- reload_sway
|
||||||
|
|
||||||
|
fish:
|
||||||
|
src: fish
|
||||||
|
dst: ~/.config/fish
|
||||||
|
actions:
|
||||||
|
- reload_fish
|
||||||
|
|
||||||
|
mako:
|
||||||
|
src: mako.conf
|
||||||
|
dst: ~/.config/mako/config
|
||||||
|
actions:
|
||||||
|
- reload_mako
|
||||||
|
|
||||||
|
waybar:
|
||||||
|
src: waybar
|
||||||
|
dst: ~/.config/waybar
|
||||||
|
actions:
|
||||||
|
- reload_sway
|
||||||
|
|
||||||
|
kitty:
|
||||||
|
src: kitty.conf
|
||||||
|
dst: ~/.config/kitty/kitty.conf
|
||||||
|
actions:
|
||||||
|
- reload_fish
|
||||||
|
|
||||||
|
nvim:
|
||||||
|
src: nvim.vim
|
||||||
|
dst: ~/.config/nvim/init.vim
|
||||||
|
actions:
|
||||||
|
- vimplug
|
||||||
|
|
||||||
|
mutt:
|
||||||
|
src: neomutt/
|
||||||
|
dst: ~/.config/neomutt/
|
||||||
|
actions:
|
||||||
|
- lnMail
|
||||||
|
|
||||||
|
lesskey:
|
||||||
|
src: lesskey
|
||||||
|
dst: ~/.lesskey
|
||||||
|
actions:
|
||||||
|
- lesskey
|
||||||
|
|
||||||
|
ranger:
|
||||||
|
src: ranger
|
||||||
|
dst: ~/.config/ranger
|
||||||
|
actions:
|
||||||
|
- ranger_icons
|
||||||
|
|
||||||
|
mpv:
|
||||||
|
src: mpv.conf
|
||||||
|
dst: ~/.config/mpv/mpv.conf
|
||||||
|
actions:
|
||||||
|
- sponsorblock
|
||||||
|
|
||||||
|
dav:
|
||||||
|
src: dav/
|
||||||
|
dst: ~/.config
|
||||||
|
actions:
|
||||||
|
- vdirsyncer
|
||||||
|
|
||||||
|
tmux:
|
||||||
|
src: tmux.conf
|
||||||
|
dst: ~/.tmux.conf
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
# Other
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
scripts:
|
||||||
|
src: scripts
|
||||||
|
dst: ~/.local/bin
|
||||||
|
actions:
|
||||||
|
- make_theme
|
||||||
|
|
||||||
|
wallpapers:
|
||||||
|
src: wallpapers
|
||||||
|
dst: ~/.local/share/wallpapers
|
||||||
|
|
||||||
|
mime:
|
||||||
|
src: mime/
|
||||||
|
dst: ~/
|
||||||
|
|
||||||
|
crontab:
|
||||||
|
src: crontab
|
||||||
|
dst: ~/.local/share/crontab
|
||||||
|
actions:
|
||||||
|
- crontab_install
|
||||||
|
|
||||||
|
theme:
|
||||||
|
src: theme
|
||||||
|
dst: ~/
|
||||||
|
|
||||||
|
clang-format:
|
||||||
|
src: clang-format
|
||||||
|
dst: ~/.clang-format
|
||||||
|
|
||||||
|
gpg-agent:
|
||||||
|
src: gpg-agent.conf
|
||||||
|
dst: ~/.gnupg/gpg-agent.conf
|
||||||
|
actions:
|
||||||
|
- pam_gpg
|
||||||
|
|
||||||
|
packages:
|
||||||
|
src: metaPKGBUILD
|
||||||
|
dst: ~/.local/share/metapkg/PKGBUILD
|
||||||
|
actions:
|
||||||
|
- install_meta
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
# Big pahts
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
telegram-theme:
|
||||||
|
src: ./telegram.palette
|
||||||
|
dst: ~/.local/share/TelegramDesktop/theme.tdesktop-palette
|
||||||
|
|
||||||
|
blender:
|
||||||
|
"src": blenderTheme.xml
|
||||||
|
"dst": "~/.config/blender/{{@@ blender_version @@}}/scripts/presets/interface_theme/blenderTheme.xml"
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################
|
||||||
|
# .config/, no actions
|
||||||
|
###############################################################
|
||||||
|
|
||||||
|
alacritty: { "src":"alacritty.yml", "dst":"~/.config/alacritty.yml" }
|
||||||
|
bat: { "src":"bat", "dst":"~/.config/bat/config" }
|
||||||
|
fusuma: { "src":"fusuma.yml", "dst":"~/.config/fusuma/config.yml" }
|
||||||
|
git: { "src":"gitconfig", "dst":"~/.config/git/config" }
|
||||||
|
imv: { "src":"imv.conf", "dst":"~/.config/imv/config" }
|
||||||
|
kakoune: { "src":"kak", "dst":"~/.config/kak" }
|
||||||
|
kanshi: { "src":"kanshi", "dst":"~/.config/kanshi/config" }
|
||||||
|
mpd: { "src":"mpd.conf", "dst":"~/.config/mpd/mpd.conf" }
|
||||||
|
qutebrowser: { "src":"qutebrowser", "dst":"~/.config/qutebrowser" }
|
||||||
|
rclone: { "src":"rclone.conf", "dst":"~/.config/rclone/rclone.conf" }
|
||||||
|
wofi: { "src":"wofi", "dst":"~/.config/wofi" }
|
||||||
|
zathura: { "src":"zathura.conf", "dst":"~/.config/zathura/zathurarc" }
|
||||||
|
|
|
@ -62,14 +62,14 @@ face global MatchingChar default,default+b
|
||||||
|
|
||||||
# Goodies
|
# Goodies
|
||||||
add-highlighter global/ number-lines -relative -hlcursor
|
add-highlighter global/ number-lines -relative -hlcursor
|
||||||
face global LineNumbers {{@@ bg_light @@}},default
|
face global LineNumbers {{@@ bg_light @@}},default
|
||||||
face global LineNumberCursor white,{{@@ bg_dark @@}}
|
face global LineNumberCursor default,{{@@ bg_dark @@}}
|
||||||
face global LineNumbersWrapped red,default
|
face global LineNumbersWrapped red,default
|
||||||
|
|
||||||
add-highlighter global/ show-whitespaces
|
add-highlighter global/ show-whitespaces
|
||||||
face global Whitespace {{@@ nontxt @@}},default+f
|
face global Whitespace {{@@ nontxt @@}},default+f
|
||||||
face global BufferPadding {{@@ nontxt @@}},default
|
face global BufferPadding {{@@ nontxt @@}},default
|
||||||
# highlight trailing whitespace
|
## highlight trailing whitespace
|
||||||
# add-highlighter global/ regex '\h*$' 0:red,red+g
|
# add-highlighter global/ regex '\h*$' 0:red,red+g
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,9 @@ depends=(
|
||||||
papirus-folders capitaine-cursors
|
papirus-folders capitaine-cursors
|
||||||
|
|
||||||
# Terminal
|
# Terminal
|
||||||
|
# Emulators
|
||||||
|
kitty alacritty
|
||||||
|
#Tools
|
||||||
ranger atool p7zip tree jq fzf
|
ranger atool p7zip tree jq fzf
|
||||||
neofetch htop
|
neofetch htop
|
||||||
# Replacements
|
# Replacements
|
||||||
|
@ -105,3 +108,4 @@ depends=(
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# vim: ft=sh
|
||||||
|
|
|
@ -1,32 +1,33 @@
|
||||||
colors:
|
colors:
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Tabs
|
# Tabs
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
tabs:
|
tabs:
|
||||||
bar:
|
bar:
|
||||||
bg: "{{@@ color.bg @@}}"
|
bg: "{{@@ color.bg @@}}"
|
||||||
odd:
|
pinned: &tabs_defaults
|
||||||
bg: "{{@@ color.bg @@}}"
|
|
||||||
fg: "{{@@ color.txt @@}}"
|
|
||||||
even:
|
|
||||||
bg: "{{@@ color.bg_dark @@}}"
|
|
||||||
fg: "{{@@ color.txt @@}}"
|
|
||||||
selected:
|
|
||||||
odd:
|
odd:
|
||||||
bg: "{{@@ accent_color @@}}"
|
bg: "{{@@ color.bg @@}}"
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
even:
|
even:
|
||||||
bg: "{{@@ accent_color @@}}"
|
bg: "{{@@ color.bg_dark @@}}"
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
pinned:
|
|
||||||
selected:
|
selected:
|
||||||
odd:
|
odd:
|
||||||
bg: "{{@@ color.bg @@}}"
|
bg: "{{@@ accent_color @@}}"
|
||||||
|
fg: "{{@@ color.txt @@}}"
|
||||||
even:
|
even:
|
||||||
bg: "{{@@ color.bg_dark @@}}"
|
bg: "{{@@ accent_color @@}}"
|
||||||
|
fg: "{{@@ color.txt @@}}"
|
||||||
|
<<: *tabs_defaults
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Completion for urls and commands
|
# Completion for urls and commands
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
completion:
|
completion:
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
even:
|
even:
|
||||||
|
@ -35,6 +36,8 @@ colors:
|
||||||
bg: "{{@@ color.bg @@}}"
|
bg: "{{@@ color.bg @@}}"
|
||||||
scrollbar:
|
scrollbar:
|
||||||
bg: "{{@@ color.bg_light @@}}"
|
bg: "{{@@ color.bg_light @@}}"
|
||||||
|
match:
|
||||||
|
fg: "{{@@ accent_color @@}}"
|
||||||
category:
|
category:
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
bg: "{{@@ color.bg_light @@}}"
|
bg: "{{@@ color.bg_light @@}}"
|
||||||
|
@ -50,9 +53,12 @@ colors:
|
||||||
bottom: "{{@@ color.bg_dark @@}}"
|
bottom: "{{@@ color.bg_dark @@}}"
|
||||||
match:
|
match:
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Statusbar
|
# Statusbar
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
statusbar:
|
statusbar:
|
||||||
normal:
|
normal:
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
|
@ -70,12 +76,16 @@ colors:
|
||||||
success:
|
success:
|
||||||
https:
|
https:
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
fg: "{{@@ color.normal.yellow @@}}"
|
http:
|
||||||
|
fg: "{{@@ color.normal.red @@}}"
|
||||||
hover:
|
hover:
|
||||||
fg: "{{@@ color.normal.cyan @@}}"
|
fg: "{{@@ color.normal.cyan @@}}"
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Downloads
|
# Downloads
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
downloads:
|
downloads:
|
||||||
start:
|
start:
|
||||||
bg: "{{@@ color.normal.blue @@}}"
|
bg: "{{@@ color.normal.blue @@}}"
|
||||||
|
@ -83,25 +93,34 @@ colors:
|
||||||
bg: "{{@@ color.normal.green @@}}"
|
bg: "{{@@ color.normal.green @@}}"
|
||||||
bar:
|
bar:
|
||||||
bg: "{{@@ color.bg @@}}"
|
bg: "{{@@ color.bg @@}}"
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Choice of what element should be clicked
|
# Choice of what element should be clicked
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
hints:
|
hints:
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
bg: "{{@@ color.bg @@}}"
|
bg: "{{@@ color.bg @@}}"
|
||||||
match:
|
match:
|
||||||
fg: "{{@@ accent_color @@}}"
|
fg: "{{@@ accent_color @@}}"
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# List of what each keybinding does
|
# List of what each keybinding does
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
keyhint:
|
keyhint:
|
||||||
fg: "{{@@ color.txt @@}}"
|
fg: "{{@@ color.txt @@}}"
|
||||||
bg: "rgba({{@@ hex2rgb(color.bg) @@}}, {{@@ opacity @@}})"
|
bg: "rgba({{@@ hex2rgb(color.bg) @@}}, {{@@ opacity @@}})"
|
||||||
suffix:
|
suffix:
|
||||||
fg: "{{@@ accent_color @@}}"
|
fg: "{{@@ accent_color @@}}"
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Right click menu
|
# Right click menu
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
contextmenu:
|
contextmenu:
|
||||||
menu:
|
menu:
|
||||||
bg: "{{@@ color.bg @@}}"
|
bg: "{{@@ color.bg @@}}"
|
||||||
|
@ -111,10 +130,13 @@ colors:
|
||||||
disabled:
|
disabled:
|
||||||
fg: "{{@@ color.bg_light @@}}"
|
fg: "{{@@ color.bg_light @@}}"
|
||||||
|
|
||||||
|
|
||||||
########################################################
|
########################################################
|
||||||
# Dark theme
|
# Dark theme
|
||||||
########################################################
|
########################################################
|
||||||
|
|
||||||
# {%@@ if color.type == "dark" @@%} #
|
# {%@@ if color.type == "dark" @@%} #
|
||||||
|
|
||||||
webpage:
|
webpage:
|
||||||
bg: "{{@@ color.bg @@}}"
|
bg: "{{@@ color.bg @@}}"
|
||||||
prefers_color_scheme_dark: True
|
prefers_color_scheme_dark: True
|
||||||
|
@ -123,4 +145,5 @@ colors:
|
||||||
threshold:
|
threshold:
|
||||||
background: {{@@ 256 // 2 @@}}
|
background: {{@@ 256 // 2 @@}}
|
||||||
text: {{@@ 256 // 2 @@}}
|
text: {{@@ 256 // 2 @@}}
|
||||||
|
|
||||||
# {%@@ endif @@%}
|
# {%@@ endif @@%}
|
||||||
|
|
|
@ -29,7 +29,7 @@ imageBgTransparent: windowFg ;
|
||||||
activeButtonBg: {{@@ accent_color @@}} ;
|
activeButtonBg: {{@@ accent_color @@}} ;
|
||||||
activeButtonBgOver: {{@@ accent_color @@}} ;
|
activeButtonBgOver: {{@@ accent_color @@}} ;
|
||||||
activeButtonBgRipple: {{@@ accent_color @@}} ;
|
activeButtonBgRipple: {{@@ accent_color @@}} ;
|
||||||
activeButtonFg: windowFg ;
|
activeButtonFg: {{@@ color.nontxt @@}} ;
|
||||||
activeButtonFgOver: activeButtonFg ;
|
activeButtonFgOver: activeButtonFg ;
|
||||||
activeButtonSecondaryFg: windowBgRipple ;
|
activeButtonSecondaryFg: windowBgRipple ;
|
||||||
activeButtonSecondaryFgOver: activeButtonSecondaryFg ;
|
activeButtonSecondaryFgOver: activeButtonSecondaryFg ;
|
||||||
|
@ -189,17 +189,7 @@ stickerPanDeleteBg: #000000cc ;
|
||||||
stickerPanDeleteFg: #525252f2 ;
|
stickerPanDeleteFg: #525252f2 ;
|
||||||
stickerPreviewBg: {{@@ color.txt @@}} ;
|
stickerPreviewBg: {{@@ color.txt @@}} ;
|
||||||
|
|
||||||
historyTextInFg: {{@@ color.txt @@}} ;
|
|
||||||
historyTextOutFg: #000000 ;
|
|
||||||
historyCaptionInFg: historyTextInFg ;
|
|
||||||
historyCaptionOutFg: historyTextOutFg ;
|
|
||||||
historyFileNameInFg: historyTextInFg ;
|
|
||||||
historyFileNameOutFg: #000000 ;
|
|
||||||
historyOutIconFg: #000000 ;
|
|
||||||
historyOutIconFgSelected: #000000 ;
|
|
||||||
historyIconFgInverted: {{@@ color.txt @@}} ;
|
historyIconFgInverted: {{@@ color.txt @@}} ;
|
||||||
historySendingOutIconFg: {{@@ accent_color @@}} ;
|
|
||||||
historySendingInIconFg: {{@@ color.bg_light @@}} ;
|
|
||||||
historySendingInvertedIconFg: #ffffffc8 ;
|
historySendingInvertedIconFg: #ffffffc8 ;
|
||||||
historySystemBg: #89a0b47f ;
|
historySystemBg: #89a0b47f ;
|
||||||
historySystemBgSelected: #bbc8d4a2 ;
|
historySystemBgSelected: #bbc8d4a2 ;
|
||||||
|
@ -232,34 +222,50 @@ historyScrollBg: #00000000 ;
|
||||||
historyScrollBgOver: {{@@ color.bg_light @@}} ;
|
historyScrollBgOver: {{@@ color.bg_light @@}} ;
|
||||||
|
|
||||||
|
|
||||||
|
msgOutBg: {{@@ accent_color @@}} ;
|
||||||
|
msgOutBgSelected: msgOutBg ;
|
||||||
|
msgOutDateFg: {{@@ color.bg_dark @@}} ;
|
||||||
|
msgOutDateFgSelected: msgOutDateFg ;
|
||||||
|
msgOutMonoFg: {{@@ color.nontxt @@}} ;
|
||||||
|
msgOutReplyBarColor: msgInReplyBarColor ;
|
||||||
|
msgOutReplyBarSelColor: {{@@ color.nontxt @@}} ;
|
||||||
|
msgOutServiceFg: {{@@ color.bg_dark @@}} ;
|
||||||
|
msgOutServiceFgSelected: msgOutServiceFg ;
|
||||||
|
msgOutShadow: {{@@ accent_color | darker @@}} ;
|
||||||
|
msgOutShadowSelected: msgOutShadow ;
|
||||||
|
|
||||||
|
historyCaptionOutFg: historyTextOutFg ;
|
||||||
|
historyFileNameOutFg: {{@@ color.bg_dark @@}} ;
|
||||||
|
historyOutIconFg: {{@@ color.bg_dark @@}} ;
|
||||||
|
historyOutIconFgSelected: {{@@ color.bg_dark @@}} ;
|
||||||
|
historySendingOutIconFg: {{@@ color.bg_dark @@}} ;
|
||||||
|
historyTextOutFg: {{@@ color.nontxt @@}} ;
|
||||||
|
|
||||||
|
|
||||||
msgInBg: {{@@ color.bg @@}} ;
|
msgInBg: {{@@ color.bg @@}} ;
|
||||||
msgInBgSelected: {{@@ color.bg_light @@}} ;
|
msgInBgSelected: {{@@ color.bg_light @@}} ;
|
||||||
msgOutBg: {{@@ accent_color @@}} ;
|
|
||||||
msgOutBgSelected: {{@@ accent_color @@}} ;
|
|
||||||
msgSelectOverlay: #358cd44c ;
|
|
||||||
msgStickerOverlay: #358cd47f ;
|
|
||||||
msgInServiceFg: {{@@ color.txt @@}} ;
|
|
||||||
msgInServiceFgSelected: {{@@ color.txt @@}} ;
|
|
||||||
msgOutServiceFg: #000000 ;
|
|
||||||
msgOutServiceFgSelected: #000000 ;
|
|
||||||
msgInShadow: {{@@ color.bg_dark @@}} ;
|
|
||||||
msgInShadowSelected: {{@@ color.bg_light @@}} ;
|
|
||||||
msgOutShadow: {{@@ color.bg_dark @@}} ;
|
|
||||||
msgOutShadowSelected: {{@@ color.bg_light @@}} ;
|
|
||||||
msgInDateFg: {{@@ color.bg_light @@}} ;
|
msgInDateFg: {{@@ color.bg_light @@}} ;
|
||||||
msgInDateFgSelected: {{@@ color.txt @@}} ;
|
msgInDateFgSelected: {{@@ color.txt @@}} ;
|
||||||
msgOutDateFg: #000000 ;
|
msgInMonoFg: {{@@ color.bg_light @@}} ;
|
||||||
msgOutDateFgSelected: #000000 ;
|
msgInReplyBarColor: {{@@ color.bg_light @@}} ;
|
||||||
|
msgInReplyBarSelColor: {{@@ color.txt @@}} ;
|
||||||
|
msgInServiceFg: {{@@ color.txt @@}} ;
|
||||||
|
msgInServiceFgSelected: {{@@ color.txt @@}} ;
|
||||||
|
msgInShadow: {{@@ color.bg_dark @@}} ;
|
||||||
|
msgInShadowSelected: {{@@ color.bg_light @@}} ;
|
||||||
|
|
||||||
|
historyTextInFg: {{@@ color.txt @@}} ;
|
||||||
|
historyCaptionInFg: historyTextInFg ;
|
||||||
|
historyFileNameInFg: historyTextInFg ;
|
||||||
|
historySendingInIconFg: {{@@ color.bg_light @@}} ;
|
||||||
|
|
||||||
|
|
||||||
|
msgSelectOverlay: #358cd44c ;
|
||||||
|
msgStickerOverlay: #358cd47f ;
|
||||||
msgServiceFg: {{@@ color.txt @@}} ;
|
msgServiceFg: {{@@ color.txt @@}} ;
|
||||||
msgServiceBg: #5B606F95 ;
|
msgServiceBg: #5B606F95 ;
|
||||||
msgServiceBgSelected: #8ca0b3a2 ;
|
msgServiceBgSelected: #8ca0b3a2 ;
|
||||||
msgInReplyBarColor: {{@@ color.bg_light @@}} ;
|
|
||||||
msgInReplyBarSelColor: {{@@ color.txt @@}} ;
|
|
||||||
msgOutReplyBarColor: msgInReplyBarColor ;
|
|
||||||
msgOutReplyBarSelColor: {{@@ color.txt @@}} ;
|
|
||||||
msgImgReplyBarColor: msgServiceFg ;
|
msgImgReplyBarColor: msgServiceFg ;
|
||||||
msgInMonoFg: {{@@ color.bg_light @@}} ;
|
|
||||||
msgOutMonoFg: {{@@ color.txt @@}} ;
|
|
||||||
msgDateImgFg: {{@@ color.bg_light @@}} ;
|
msgDateImgFg: {{@@ color.bg_light @@}} ;
|
||||||
msgDateImgBg: #00000054 ;
|
msgDateImgBg: #00000054 ;
|
||||||
msgDateImgBgOver: #5B606F95 ;
|
msgDateImgBgOver: #5B606F95 ;
|
||||||
|
|
61
funcs.py
61
funcs.py
|
@ -18,23 +18,6 @@ def ordered_path():
|
||||||
return ':'.join(newPATH)
|
return ':'.join(newPATH)
|
||||||
|
|
||||||
|
|
||||||
def hex2rgb(e):
|
|
||||||
assert e.startswith("#")
|
|
||||||
e = e.strip("#").lower()
|
|
||||||
assert len(e) == 6
|
|
||||||
for i in e:
|
|
||||||
assert (i in "0123456789abcdef")
|
|
||||||
|
|
||||||
def h2r(i):
|
|
||||||
return str(eval('0x{}'.format(i)))
|
|
||||||
|
|
||||||
r = e[0:2]
|
|
||||||
g = e[2:4]
|
|
||||||
b = e[4:6]
|
|
||||||
|
|
||||||
return ", ".join([h2r(i) for i in (r, g, b)])
|
|
||||||
|
|
||||||
|
|
||||||
def rclone_obscure(pass_name):
|
def rclone_obscure(pass_name):
|
||||||
try:
|
try:
|
||||||
fPath = os.path.expanduser("~/.config/rclone/rclone.conf")
|
fPath = os.path.expanduser("~/.config/rclone/rclone.conf")
|
||||||
|
@ -50,3 +33,47 @@ def rclone_obscure(pass_name):
|
||||||
return check_output(args).decode().strip()
|
return check_output(args).decode().strip()
|
||||||
|
|
||||||
return sh("rclone", "obscure", sh("_get-pass", pass_name))
|
return sh("rclone", "obscure", sh("_get-pass", pass_name))
|
||||||
|
|
||||||
|
|
||||||
|
####################################################################
|
||||||
|
# color
|
||||||
|
####################################################################
|
||||||
|
|
||||||
|
def split_hex(e):
|
||||||
|
e = e.lstrip("#").lower()
|
||||||
|
return e[0:2], e[2:4], e[4:6]
|
||||||
|
|
||||||
|
|
||||||
|
def hex2rgb(e):
|
||||||
|
return ", ".join([str(int(s, base=16))
|
||||||
|
for s in split_hex(e)])
|
||||||
|
|
||||||
|
|
||||||
|
def color_mult(e: str, amount: float):
|
||||||
|
"""\
|
||||||
|
Multiply e hex rgb colorCode with amount number
|
||||||
|
Usefull for lightening/darkening
|
||||||
|
"""
|
||||||
|
|
||||||
|
def segment(s):
|
||||||
|
base256 = int(s, base=16)
|
||||||
|
result_val = base256 * amount
|
||||||
|
|
||||||
|
hex_result = hex(int(result_val))[2:]
|
||||||
|
|
||||||
|
return str(hex_result)
|
||||||
|
|
||||||
|
prefix = "#" * e.startswith("#")
|
||||||
|
return prefix + "".join(map(segment, split_hex(e)))
|
||||||
|
|
||||||
|
|
||||||
|
####################################################################
|
||||||
|
# Filters
|
||||||
|
####################################################################
|
||||||
|
|
||||||
|
def darker(arg1, amount=0.75):
|
||||||
|
return color_mult(arg1, amount)
|
||||||
|
|
||||||
|
|
||||||
|
def lighter(arg1, amount=1.25):
|
||||||
|
return color_mult(arg1, amount)
|
||||||
|
|
Reference in New Issue