This commit is contained in:
GasparVardanyan 2022-03-15 01:38:27 +04:00
parent 84d30eb13c
commit 107d507335
7 changed files with 1210 additions and 3 deletions

11
bin/man Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[0;37;102m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[4;32m") \
/usr/bin/man "$@"

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

View file

@ -38,3 +38,8 @@
! gaspar's modifications ! gaspar's modifications
wallpaper: buildings wallpaper: buildings
vim*theme: gruvbox vim*theme: gruvbox
dwm*barSingleBg: 1
dwm*borderpx: 4
dwm*border: #3c3836
dwm*selborder: #665c54
st*alpha: .95F

View file

@ -1,4 +1,3 @@
*alpha: 0.80F
*foreground: #FF0000 *foreground: #FF0000
*background: #080000 *background: #080000
*cursorColor: #D40000 *cursorColor: #D40000
@ -29,3 +28,4 @@ dwm*border: #444444
dwm*selforeground: #000000 dwm*selforeground: #000000
dwm*selbackground: #FF0000 dwm*selbackground: #FF0000
dwm*selborder: #FF0000 dwm*selborder: #FF0000
st*alpha: 0.80F

View file

@ -22,6 +22,6 @@ st*font: terminus:size=16
*color13: #FF1111 *color13: #FF1111
*color14: #FF8A8A *color14: #FF8A8A
*color15: #8C6161 *color15: #8C6161
wallpaper: redandblack/city wallpaper: city
zsh*prompt: %B-> [ %1~ ] :: %b zsh*prompt: %B-> [ %1~ ] :: %b
vim*theme: desert vim*theme: desert

74
settheme Executable file
View file

@ -0,0 +1,74 @@
#!/usr/bin/env bash
# Themes work with:
# dwm, st, dmenu, tabbed,
# xresources, wallpapers, vim,
# dunst, zsh (experimental), ls
[ -f ~/.local/share/themes/"$1".xdefaults ] || exit -1
cp ~/.local/share/themes/"$1".xdefaults ~/.local/etc/theme
if [ -f ~/.local/share/themes/"$1".dir_colors ]
then
cp ~/.local/share/themes/"$1".dir_colors ~/.local/etc/dir_colors
else
rm ~/.local/etc/dir_colors
fi
rm -rf ~/.local/share/themes/bin
[ -d ~/.local/share/themes/"$1"-bin ] && cp -r ~/.local/share/themes/{"$1"-,}bin
:<<'comment'
export PATH="$HOME/.local/share/themes/bin:$PATH"
comment
xrdb ~/.Xresources
b1="$(mktemp)"
mv ~/.local/bin/st-autocomplete $b1
echo -e "dwm\nst\ndmenu\ntabbed" |
while read t
do
(cd ~/.local/src/$t && make clean && ./xtheme && make PREFIX=$HOME/.local install ; make clean ; cd -)
done
mv $b1 ~/.local/bin/st-autocomplete
wallres=$(cat ~/.local/share/themes/"$1".xdefaults | grep -P "^wallpaper:\s*\S*$" -m 1)
[[ "$wallres" != '' ]] && \
feh --bg-fill ~/.local/share/themes/"$1"-wallpapers/$( \
echo "$wallres" \
| sed "s/^.*:\s*//" \
)*
rm -f ~/.local/share/themes/theme.vim
vimthemeres=$(cat ~/.local/share/themes/"$1".xdefaults | grep -P "^vim\*?\.?theme:\s*\S*$" -m 1)
[[ "$vimthemeres" != '' ]] && \
cp ~/.local/share/themes/{$( \
echo "$vimthemeres" \
| sed "s/^.*:\s*//" \
),theme}.vim
:<<'comment'
set background=dark
let themefile = '~/.local/share/themes/theme.vim'
if filereadable (expand (themefile))
execute 'source' themefile
else
color leet2
endif
comment
(
killall dunst
cd ~/.config/dunst
./xtheme
cat theme.h dunstrc.template | cpp > dunstrc
cd -
)
dunstify "Theme Changed
restart dwm" -t 3000

1117
theme.vim Normal file

File diff suppressed because it is too large Load diff