~dvko/dotfiles

0f75fa64d2dab0c9fea19121333fd3f1216087eb — Danny van Kooten 5 months ago 1ea650d
add fontawesome5 installation to install.sh
3 files changed, 21 insertions(+), 8 deletions(-)

M .config/waybar/config
M .config/waybar/style.css
M install.sh
M .config/waybar/config => .config/waybar/config +6 -5
@@ 7,7 7,7 @@
    // Choose the order of the modules
    "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
    "modules-center": ["sway/window"],
    "modules-right": [ "idle_inhibitor", "pulseaudio", "network", "disk", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
    "modules-right": [ "idle_inhibitor", "pulseaudio", "network", "disk", "cpu", "memory", "temperature", "backlight", "battery", "custom/clock", "tray"],
    // Modules configuration
    // "sway/workspaces": {
    //     "disable-scroll": true,


@@ 97,9 97,6 @@
        // "format-full": "",
        "format-icons": ["", "", "", "", ""]
    },
    "battery#bat2": {
        "bat": "BAT2"
    },
    "network": {
        // "interface": "wlp2*", // (Optional) To force the use of this interface
        "format-wifi": "{essid} ({signalStrength}%) ",


@@ 140,7 137,11 @@
        "escape": true,
        "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
        // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
    }
    },
     "custom/clock": {
         "exec": "date +'%H:%M:%S'",
         "interval": 1
     },
}



M .config/waybar/style.css => .config/waybar/style.css +6 -3
@@ 1,6 1,6 @@
* {
    /* `otf-font-awesome` is required to be installed for icons */
    font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
    font-family: Arial, "Font Awesome 5 Free", sans-serif;
    font-size: 13px;
}



@@ 86,7 86,8 @@ button:hover {
#mode,
#idle_inhibitor,
#scratchpad,
#mpd {
#mpd,
#custom-clock {
    padding: 0 10px;
    color: #ffffff;
}


@@ 137,7 138,9 @@ label:focus {
    color: #2a5c45;
    min-width: 100px;
}

#custom-clock {
    font-family: Arial, sans-serif;
}
#custom-media.custom-spotify {
    background-color: #66cc99;
}

M install.sh => install.sh +9 -0
@@ 27,3 27,12 @@ if type -q pacman
	./archlinux/install.sh
end 

# Install custom fonts
if not test -d $HOME/.fonts 
    echo "Installing FontAwesome5 font"
    wget https://use.fontawesome.com/releases/v5.15.1/fontawesome-free-5.15.1-desktop.zip -O /tmp/fontawesome.zip 
    mkdir $HOME/.fonts
    unzip /tmp/fontawesome.zip -d /tmp/fontawesome 
    cp /tmp/fontawesome/fontawesome-free-5.15.1-desktop/otfs/*.otf $HOME/.fonts/
    fc-cache -f -v 
end