From 937a1fd08ab91c9b6af4cf41dce4284a1c469b9a Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Tue, 22 Dec 2020 18:50:18 +0100 Subject: [PATCH] style --- dotfiles/.config/waybar/style.css | 66 +++++++++++++++++++++++++++++++ setup.sh | 13 +++++- 2 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 dotfiles/.config/waybar/style.css diff --git a/dotfiles/.config/waybar/style.css b/dotfiles/.config/waybar/style.css new file mode 100644 index 0000000..bc6cbdd --- /dev/null +++ b/dotfiles/.config/waybar/style.css @@ -0,0 +1,66 @@ +* { + border: none; + border-radius: 0; + font-family: Roboto, Helvetica, Arial, sans-serif; + font-size: 18px; + min-height: 0; +} + +window#waybar { + background: rgba(43, 48, 59, 0.5); + border-bottom: 3px solid rgba(100, 114, 125, 0.5); + color: white; +} + +#workspaces button { + padding: 0 5px; + background: transparent; + color: white; + border-bottom: 3px solid transparent; +} + +#workspaces button.focused { + background: #64727D; + border-bottom: 3px solid white; +} + +#mode, #clock, #battery { + padding: 0 10px; + margin: 0 5px; +} + +#mode { + background: #64727D; + border-bottom: 3px solid white; +} + +#clock { + background-color: #64727D; +} + +#battery { + background-color: #ffffff; + color: black; +} + +#battery.charging { + color: white; + background-color: #26A65B; +} + +@keyframes blink { + to { + background-color: #ffffff; + color: black; + } +} + +#battery.warning:not(.charging) { + background: #f53c3c; + color: white; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; +} diff --git a/setup.sh b/setup.sh index 801902d..508754b 100644 --- a/setup.sh +++ b/setup.sh @@ -11,12 +11,20 @@ GREETDENVS="/etc/greetd/environments" SWAYRUN="/usr/local/bin/sway-run.sh" WAYLAND_ENABLE="/usr/local/bin/wayland_enablement.sh" +# Add linux-libre repo +wget -O - 'https://jxself.org/gpg.asc' | sudo apt-key add - +echo 'deb mirror://linux-libre.fsfla.org/pub/linux-libre/freesh/mirrors.txt freesh main +' | sudo tee /etc/apt/sources.list.d/linux-libre.list + # Add repo for tlpnuisudo -curl 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1cc3d16e460a94ee17fe581cea8cacc073c3db2a' | sudo apt-key add - +wget -O - 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1cc3d16e460a94ee17fe581cea8cacc073c3db2a' | sudo apt-key add - echo 'deb http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal main deb-src http://ppa.launchpad.net/linuxuprising/apps/ubuntu focal main -' | sudo tee etc/apt/sources.list.d/linuxuprising-apps.list +' | sudo tee /etc/apt/sources.list.d/linuxuprising-apps.list + +# Update repos sudo apt update + # Install software from repo sudo apt install \ acpi \ @@ -51,6 +59,7 @@ sudo apt install \ libxcb1-dev \ libxkbcommon-dev \ light \ + linux-libre \ lxappearance \ meson \ mpv \