@@ 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
+ },
}
@@ 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;
}
@@ 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