Compare commits

...

3 commits

Author SHA1 Message Date
69b25543bd nvim: rose-pine 2021-11-03 09:11:22 -03:00
8ef0efe10d river: CSD para Firefox 2021-11-03 09:11:11 -03:00
01afc488bb Themer 2021-11-03 09:11:03 -03:00
20 changed files with 366 additions and 124 deletions

View file

@ -1,36 +0,0 @@
font=JetBrains Mono:style=Regular:size=9
font-bold=JetBrains Mono:style=Bold:size=9
font-italic=JetBrains Mono:style=Italic:size=9
font-bold-italic=JetBrains Mono:style=Bold Italic:size=9
pad=5x5
# Selenized black
[cursor]
color = 181818 56d8c9
[colors]
background= 181818
foreground= b9b9b9
alpha = 0.9
regular0= 252525
regular1= ed4a46
regular2= 70b433
regular3= dbb32d
regular4= 368aeb
regular5= eb6eb7
regular6= 3fc5b7
regular7= 777777
bright0= 3b3b3b
bright1= ff5e56
bright2= 83c746
bright3= efc541
bright4= 4f9cfe
bright5= ff81ca
bright6= 56d8c9
bright7= dedede
[scrollback]
lines = 10000

View file

@ -8,7 +8,7 @@ set ignorecase smartcase
set updatetime=250 set updatetime=250
set termguicolors set termguicolors
colorscheme selenized_bw colorscheme rose-pine
autocmd ColorScheme * highlight! Normal guibg=NONE autocmd ColorScheme * highlight! Normal guibg=NONE
set completeopt=menu,menuone,noselect set completeopt=menu,menuone,noselect

View file

@ -1,42 +0,0 @@
#!/bin/sh
# theme="$(cat ~/.theme)"
# if test "$theme" = dark; then
# # Rose Pine
# export bg=191724
# export bg2=26233a
# export fg=e0def4
# export fg2=6e6a86
# export hl=c4a7e7
# else
# # Rose Pine Dawn
# export bg=faf4ed
# export bg2=f2e9de
# export fg=575279
# export fg2=6e6a86
# export hl=907aa9
# fi
# Selenized Black
# https://github.com/jan-warchol/selenized/blob/e93e0d9fb47c7485f18fa16f9bdb70c2ee7fb5db/the-values.md
export bg_0=181818
export bg_1=252525
export bg_2=3b3b3b
export dim_0=777777
export fg_0=b9b9b9
export fg_1=dedede
export fg_accent=368aeb
# solarized light
# export bg=fdf6e3
# export bg2=eee8d5
# export fg=657b83
# export fg2=93a1a1
# export hl=d33682
# gruvbox dark
# export bg=282828
# export bg2=3c3836
# export fg=ebdbb2
# export hl=83a598

View file

@ -19,8 +19,6 @@ riverctl spawn "pgrep -x river-tag-overl || river-tag-overlay --anchors=1:0:0:0"
# yambar spawned by load-colors # yambar spawned by load-colors
riverctl spawn "pgrep -x kanshi || kanshi" riverctl spawn "pgrep -x kanshi || kanshi"
# riverctl spawn "swaybg -m fill -i ~/Pictures/flower.jpg"
riverctl set-repeat 30 190 riverctl set-repeat 30 190
riverctl xcursor-theme Adwaita riverctl xcursor-theme Adwaita
@ -31,6 +29,8 @@ riverctl input 2:7:SynPS/2_Synaptics_TouchPad tap enabled
riverctl float-filter-add title Picture-in-Picture riverctl float-filter-add title Picture-in-Picture
riverctl float-filter-add title "Firefox — Sharing Indicator" riverctl float-filter-add title "Firefox — Sharing Indicator"
riverctl csd-filter-add app-id firefox
~/.config/river/keys ~/.config/river/keys
riverctl default-layout stacktile riverctl default-layout stacktile

View file

@ -1,8 +1,14 @@
#!/bin/sh #!/bin/sh
. ~/.config/river/colors . ~/.config/river/colors
riverctl background-color 0x$bg_0 riverctl background-color 0x$background
riverctl border-color-focused 0x$fg_1 riverctl border-color-focused 0x$border_focused
riverctl border-color-unfocused 0x$dim_0 riverctl border-color-unfocused 0x$border_unfocused
riverctl border-width 2 riverctl border-width 2
riverctl spawn yambar-run riverctl spawn 'killall yambar ; yambar'
if $dark; then
riverctl spawn 'killall swaybg ; swaybg -m fill -i ~/.config/river/windows-11-wallpapers/win21.jpg'
else
riverctl spawn 'killall swaybg ; swaybg -m fill -i ~/.config/river/windows-11-wallpapers/win13.jpg'
fi

74
.config/themer/foot.ini.sh Executable file
View file

@ -0,0 +1,74 @@
#!/bin/sh
set -e
# https://github.com/jan-warchol/selenized/blob/e93e0d9fb47c7485f18fa16f9bdb70c2ee7fb5db/the-values.md
echo "# Autogenerated by ~/.config/themer/foot.ini.sh
font=JetBrains Mono:style=Regular:size=9
font-bold=JetBrains Mono:style=Bold:size=9
font-italic=JetBrains Mono:style=Italic:size=9
font-bold-italic=JetBrains Mono:style=Bold Italic:size=9
pad=5x5
[scrollback]
lines = 10000
" > ~/.config/foot/foot.ini
rose_pine () {
if $dark; then
alpha=0.8
else
alpha=1
fi
echo "
[cursor]
color = $inactive $text
[colors]
background = $base
foreground = $text
alpha = $alpha
selection-foreground = $text
selection-background = $highlight
urls = $iris
regular0 = $overlay
regular1 = $love
regular2 = $pine
regular3 = $gold
regular4 = $foam
regular5 = $iris
regular6 = $rose
regular7 = $text
bright0 = $subtle
bright1 = $love
bright2 = $pine
bright3 = $gold
bright4 = $foam
bright5 = $iris
bright6 = $rose
bright7 = $text
" >> ~/.config/foot/foot.ini
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi

47
.config/themer/fuzzel.sh Executable file
View file

@ -0,0 +1,47 @@
#!/bin/sh
set -e
echo "#!/bin/sh
# Autogenerated by ~/.config/themer/fuzzel.sh
" > ~/.local/bin/fuzzel-run
rose_pine () {
echo "
export background=$base
export foreground=$text
export selection_background=$highlight
export selection_foreground=$text
export border=$text
export accent=$iris
" >> ~/.local/bin/fuzzel-run
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi
echo "
exec fuzzel --terminal=footclient --font='Inter:style=Bold:size=11' \
--prompt='➦ ' \
--no-icons \
--width=20 \
--background=\${background}ff --text-color=\${foreground}ff \
--match-color=\${accent}ff \
--selection-color=\${selection_background}ff --selection-text-color=\${selection_foreground}ff \
--horizontal-pad=12 \
--border-width=1 --border-color=\${border}ff --border-radius=2 \"\$@\"
" >> ~/.local/bin/fuzzel-run

37
.config/themer/gtk.sh Executable file
View file

@ -0,0 +1,37 @@
#!/bin/sh
set -e
rose_pine () {
if "$dark"; then
gsettings set org.gnome.desktop.interface gtk-theme Adwaita
# gsettings set org.freedesktop.appearance color-scheme 1
echo '# Autogenerated by ~/.config/themer/gtk.sh
gtk-theme-name="Adwaita-dark"' > ~/.gtkrc-2.0
else
gsettings set org.gnome.desktop.interface gtk-theme Adwaita-light
# gsettings set org.freedesktop.appearance color-scheme 2
echo '# Autogenerated by ~/.config/themer/gtk.sh
gtk-theme-name="Adwaita"' > ~/.gtkrc-2.0
fi
echo "# Autogenerated by ~/.config/themer/gtk.sh
[Settings]
gtk-application-prefer-dark-theme = $dark
gtk-decoration-layout=menu:" > ~/.config/gtk-3.0/settings.ini
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi

28
.config/themer/lock.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
set -e
rose_pine () {
echo "#!/bin/sh
# Autogenerated by ~/.config/themer/lock.sh
setsid -f swaylockd --color $base \
--show-failed-attempts
sleep 1
" > ~/.local/bin/lock
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi

40
.config/themer/river-colors.sh Executable file
View file

@ -0,0 +1,40 @@
#!/bin/sh
set -e
echo "#!/bin/sh
# Autogenerated by ~/.config/themer/river-colors.sh
" > ~/.config/river/colors
rose_pine () {
if $dark; then
border_focused=$iris
border_unfocused=$inactive
else
border_focused=$subtle
border_unfocused=$surface
fi
echo "
export background=$base
export border_focused=$border_focused
export border_unfocused=$border_unfocused
export dark=$dark
" >> ~/.config/river/colors
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi

View file

@ -0,0 +1,17 @@
#!/bin/sh
export base=faf4ed
export surface=fffaf3
export overlay=f2e9de
export inactive=9893a5
export subtle=6e6a86
export text=575279
export love=b4637a
export gold=ea9d34
export rose=d7827e
export pine=286983
export foam=56949f
export iris=907aa9
export highlight=eee9e6
export highlightInactive=f2ede9
export highlightOverlay=e4dfde
export dark=false

View file

@ -0,0 +1,17 @@
#!/bin/sh
export base=232136
export surface=2a273f
export overlay=393552
export inactive=59546d
export subtle=817c9c
export text=e0def4
export love=eb6f92
export gold=f6c177
export rose=ea9a97
export pine=3e8fb0
export foam=9ccfd8
export iris=c4a7e7
export highlight=312f44
export highlightInactive=2a283d
export highlightOverlay=3f3c53
export dark=true

View file

@ -0,0 +1,17 @@
#!/bin/sh
export base=191724
export surface=1f1d2e
export overlay=26233a
export inactive=555169
export subtle=6e6a86
export text=e0def4
export love=eb6f92
export gold=f6c177
export rose=ebbcba
export pine=31748f
export foam=9ccfd8
export iris=c4a7e7
export highlight=2a2837
export highlightInactive=211f2d
export highlightOverlay=3a384a
export dark=true

28
.config/themer/waylock.sh Executable file
View file

@ -0,0 +1,28 @@
#!/bin/sh
set -e
rose_pine () {
echo "# Autogenerated by ~/.config/themer/waylock.sh
[colors]
init_color = 0x$base
input_color = 0x$pine
fail_color = 0x$love
" > ~/.config/waylock/waylock.toml
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi

30
.config/themer/yambar.sh Executable file
View file

@ -0,0 +1,30 @@
#!/bin/sh
set -e
rose_pine () {
echo "# Autogenerated by ~/.config/themer/yambar.sh
background: &bg ${base}dd
background2: &bg2 ${surface}ff
foreground: &fg ${text}ff
accent: &accent ${iris}ff
" > ~/.config/yambar/config.yml
}
if test "$1" = rose-pine; then
. ~/.config/themer/themes/rose-pine.sh
rose_pine
elif test "$1" = rose-pine-dawn; then
. ~/.config/themer/themes/rose-pine-dawn.sh
rose_pine
elif test "$1" = rose-pine-moon; then
. ~/.config/themer/themes/rose-pine-moon.sh
rose_pine
else
if test -n "$1"; then
echo "I don't know that theme"
else
echo "No theme specified"
fi
exit 1
fi
cat ~/.config/yambar/real-config.yml >> ~/.config/yambar/config.yml

View file

@ -1,12 +1,8 @@
nerd: &nerd Overpass Nerd Font:size=16 nerd: &nerd Overpass Nerd Font:size=16
# Automatically set by yambar-run
# background: &bg 1f1d2eff
# foreground: &fg e0def4ff
bar: bar:
height: 28 height: 24
location: bottom location: top
layer: top layer: top
spacing: 8 spacing: 8
right-margin: 8 right-margin: 8

View file

@ -1,12 +0,0 @@
#!/bin/sh
. ~/.config/river/colors
exec fuzzel --terminal=footclient --font='Inter:style=Bold:size=11' \
--prompt="➦ " \
--no-icons \
--width=20 \
--background=${bg_0}ff --text-color=${fg_0}ff \
--match-color=${fg_accent}ff \
--selection-color=${bg_1}ff --selection-text-color=${fg_0}ff \
--horizontal-pad=12 \
--border-width=1 --border-color=${fg_0}ff --border-radius=2

View file

@ -1,4 +0,0 @@
#!/bin/sh
. ~/.config/river/colors
setsid -f swaylockd --color "$bg_0"
sleep 1

16
.local/bin/themer Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
set -e
if test -n "$1"; then
~/.config/themer/river-colors.sh "$1"
~/.config/themer/foot.ini.sh "$1"
~/.config/themer/yambar.sh "$1"
~/.config/themer/fuzzel.sh "$1"
~/.config/themer/lock.sh "$1"
~/.config/themer/waylock.sh "$1"
~/.config/themer/gtk.sh "$1"
~/.config/river/load-colors
else
echo "No theme specified"
exit 1
fi

View file

@ -1,17 +0,0 @@
#!/bin/sh
. ~/.config/river/colors
killall yambar
config="$(mktemp)"
echo "background: &bg ${bg_0}ff
background2: &bg2 ${bg_1}ff
foreground: &fg ${fg_0}ff
foreground2: &fg2 ${fg_1}ff
accent: &accent ${fg_accent}ff
" > "$config"
cat ~/.config/yambar/config.yml >> "$config"
yambar --config="$config"
rm "$config"