Skip to content

Commit

Permalink
Instalacion tema firefox, tema dinamico para firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
PAC97 committed Aug 26, 2020
1 parent d1b8f35 commit 10415b9
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 58 deletions.
82 changes: 38 additions & 44 deletions PAC97/.config/bspwm/bin/bspcolors
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# A script to get colours from xrdb & deploy it to polybar, termite & rofi.
# A script to get colours from xrdb & deploy it to polybar, kitty & rofi.

DIR="$HOME/.config/bspwm"
DIR2="$HOME/.config"
Expand Down Expand Up @@ -52,50 +52,31 @@ bspbar () {
}

bspterm () {
sed -i '/colors/Q' $DIR2/alacritty/alacritty.yml
cat >> $DIR2/alacritty/alacritty.yml <<- EOF
colors:
# Default colors
primary:
background: '${BACKGROUND}'
foreground: '${FOREGROUND}'
# Normal colors
normal:
black: '${BLACK}'
red: '${RED}'
green: '${GREEN}'
yellow: '${YELLOW}'
blue: '${BLUE}'
magenta: '${MAGENTA}'
cyan: '${CYAN}'
white: '${WHITE}'
# Bright colors
bright:
black: '${ALTBLACK}'
red: '${ALTRED}'
green: '${ALTGREEN}'
yellow: '${ALTYELLOW}'
blue: '${ALTBLUE}'
magenta: '${ALTMAGENTA}'
cyan: '${ALTCYAN}'
white: '${ALTWHITE}'
font:
bold:
family: JetBrains Mono
italic:
family: JetBrains Mono
normal:
family: JetBrains Mono
style: Regular
size: 10.5
window:
padding:
x: 5
y: 5
cat > $DIR2/kitty/theme.conf <<- EOF
foreground ${FOREGROUND}
background ${BACKGROUND}
selection_foreground ${BLACK}
selection_background ${WHITE}
url_color ${CURSOR}
cursor ${CURSOR}
color0 ${BLACK}
color8 ${ALTBLACK}
color1 ${RED}
color9 ${ALTRED}
color2 ${GREEN}
color10 ${ALTGREEN}
color3 ${YELLOW}
color11 ${ALTYELLOW}
color4 ${BLUE}
color12 ${ALTBLUE}
color5 ${MAGENTA}
color13 ${ALTMAGENTA}
color6 ${CYAN}
color14 ${ALTCYAN}
color7 ${WHITE}
color15 ${ALTWHITE}
EOF

killall -USR1 kitty
}

bsprofi () {
Expand All @@ -111,11 +92,24 @@ bsprofi () {
EOF
}

bspfirefox () {
cat > $HOME/.mozilla/firefox/uh4008ra.default-release/chrome/theme.css <<- EOF
:root{
--mff-bg: ${BACKGROUND};
--mff-tab-selected-bg: ${BLUE};
--mff-tab-soundplaying-bg: ${MAGENTA};
--mff-tab-color: ${BLACK};
--mff-close-button: ${GREEN};
}
EOF
}

main () {
getcolors
bspbar
bspterm
bsprofi
bspfirefox
}

main
2 changes: 1 addition & 1 deletion PAC97/.config/bspwm/bin/bspterm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# launch termite with other config
if [ "$1" == "-f" ]; then
#alacritty --class alacritty-float,alacritty-float -d 72 20 --config-file ~/.config/alacritty/alacritty.yml
kitty --class alacritty-float
kitty --class kitty-float
else
kitty
fi
3 changes: 3 additions & 0 deletions PAC97/.config/bspwm/bin/kitty_nvim
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

kitty --class kitty-nvim -e nvim &
5 changes: 5 additions & 0 deletions PAC97/.config/bspwm/bin/kitty_player
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

kitty --class kitty-player -e cava &


3 changes: 3 additions & 0 deletions PAC97/.config/bspwm/bin/kitty_player2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

kitty --class kitty-player2 -e ncmpcpp-ueberzug &
8 changes: 4 additions & 4 deletions PAC97/.config/bspwm/bspwmrc
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ for i in ${settings[@]}; do
bspc rule -a $i desktop='^7' state=floating follow=on focus=on; done

# special rules
bspc rule -a alacritty-float state=floating follow=on focus=on center=true rectangle=700x400+0+0
bspc rule -a alacritty-nvim desktop='^2' follow=on focus=on
bspc rule -a alacritty-player desktop='^6' state=floating follow=on focus=on rectangle=500x250+855+510
bspc rule -a alacritty-player2 desktop='^6' state=floating follow=on rectangle=700x250+5+510
bspc rule -a kitty-float state=floating follow=on focus=on center=true rectangle=700x400+0+0
bspc rule -a kitty-nvim desktop='^2' follow=on focus=on
bspc rule -a kitty-player desktop='^6' state=floating follow=on focus=on rectangle=500x250+855+510
bspc rule -a kitty-player2 desktop='^6' state=floating follow=on rectangle=700x250+5+510
bspc rule -a Pcmanfm state=floating follow=on focus=on
bspc rule -a Onboard state=floating follow=on focus=on
bspc rule -a Audacious state=floating follow=on focus=on
Expand Down
2 changes: 1 addition & 1 deletion PAC97/.config/bspwm/themes/gotham
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

! black
*.color0: #0a0f14
*.color8: #10151b
*.color8: #edb54b

! red
*.color1: #c33027
Expand Down
1 change: 1 addition & 0 deletions PAC97/chrome/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
--mff-tab-selected-bg: #195465;
--mff-tab-soundplaying-bg: #4e5165;
--mff-tab-color: #0a0f14;
--mff-close-button: #26a98b;
}
28 changes: 20 additions & 8 deletions PAC97/chrome/userChrome.css
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
@import "theme.css";
:root {

/* Minimal Functional Fox variables*/
--mff-bg: #292f36;
--mff-icon-color: #e0fbfc;
--mff-nav-toolbar-padding: 8px;
--mff-sidebar-bg: var(--mff-bg);
--mff-sidebar-color: #e0fbfc;
--mff-tab-border-radius: 0px;
--mff-tab-color: #fefefa;
--mff-tab-font-family: "Cantarell", sans;
--mff-tab-font-family: "JetBrains Mono";
--mff-tab-font-size: 11pt;
--mff-tab-font-weight: 400;
--mff-tab-height: 32px;
--mff-tab-pinned-bg: #70c1b3;
--mff-tab-selected-bg: #ee6c4d;
--mff-tab-soundplaying-bg: #9c89b8;
--mff-urlbar-color: #98c1d9;
--mff-urlbar-focused-color: #e0fbfc;
--mff-urlbar-font-family: "Cantarell", serif;
--mff-urlbar-font-family: "JetBrains Mono";
--mff-urlbar-font-size: 12pt;
--mff-urlbar-font-weight: 700;
--mff-urlbar-results-color: #e0fbfc;
--mff-urlbar-results-font-family: "mononoki Nerd Font", serif;
--mff-urlbar-results-font-family: "JetBrains Mono";
--mff-urlbar-results-font-size: 12pt;
--mff-urlbar-results-font-weight: 700;
--mff-urlbar-results-url-color: #98c1d9;
Expand Down Expand Up @@ -75,16 +72,31 @@
}

.tab-close-button {
display: none !important;
display: block !important;
}

.tab-close-button:hover {
background-color:var(--mff-close-button) !important;
fill: var(--mff-tab-color) !important;
border: 0.5px solid var(--mff-tab-color);
border-radius: 3px;

}

.tab-text {
font-family: var(--mff-tab-font-family);
font-weight: var(--mff-tab-font-weight);
font-size: var(--mff-tab-font-size) !important;
color: var(--mff-tab-color);
}

.tab-text:not([selected="true"]) {
font-family: var(--mff-tab-font-family);
font-weight: var(--mff-tab-font-weight);
font-size: var(--mff-tab-font-size) !important;
color: var(--mff-urlbar-focused-color);
}

/* Hide the favicon for tabs */
hbox.tab-content .tab-icon-image {
display: none !important;
Expand Down

0 comments on commit 10415b9

Please sign in to comment.