From 7326392a88498f90a8449ac17a8fb15f2a1520ed Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 28 May 2023 19:23:05 -0400 Subject: [PATCH] add configs i forgot the credits fo --- TODO | 1 + waybar/config | 106 +++++++++++++++++++++++++++ waybar/scripts/.heart | 0 waybar/scripts/heart.sh | 8 +++ waybar/scripts/toggle-heart.sh | 8 +++ waybar/style.css | 128 +++++++++++++++++++++++++++++++++ wofi/style.css | 44 ++++++++++++ 7 files changed, 295 insertions(+) create mode 100644 TODO create mode 100644 waybar/config create mode 100644 waybar/scripts/.heart create mode 100755 waybar/scripts/heart.sh create mode 100755 waybar/scripts/toggle-heart.sh create mode 100644 waybar/style.css create mode 100644 wofi/style.css diff --git a/TODO b/TODO new file mode 100644 index 00000000..1c4c35a5 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +find credits for wofi, waybar, swaylock diff --git a/waybar/config b/waybar/config new file mode 100644 index 00000000..8409fd8a --- /dev/null +++ b/waybar/config @@ -0,0 +1,106 @@ +{ + "ipc": true, + "height": 20, + "margin-top":5, + "margin-left":5, + "margin-right":5, + "spacing": 1, + "modules-left": ["custom/osk", "custom/tablet", "sway/workspaces", "sway/mode", "tray", "custom/mowayah"], + "modules-center": ["sway/window"], + "modules-right": ["pulseaudio", "backlight", "battery", "clock", "custom/quicksettings"], + "sway/mode": { + "format": "{}" + }, + "idle_inhibitor": { + "format": "{icon}", + "format-icons": { + "activated": "", + "deactivated": "" + } + }, + "tray": { + "icon-size": 26, + "spacing": 5 + }, + "clock": { + "tooltip-format": "{:%Y %B}\n{calendar}", + "format-alt": "{:%Y-%m-%d}" + }, + "cpu": { + "format": "{usage}% ", + "tooltip": false + }, + "memory": { + "interval": 30, + "format": "{used:0.1f}G/{total:0.1f}G " + }, + "backlight": { + // "device": "acpi_video1", + "format": "{percent}% {icon}", + "format-icons": ["🌑","🌒","🌒","🌓","🌓","🌔","🌔","🌕","🌕"] + }, + "battery": { + "states": { + // "good": 95, + "warning": 30, + "critical": 15 + }, + "format": "{capacity}% {icon}", + "format-charging": "{capacity}%⚡", + "format-plugged": "{capacity}% ", + "format-alt": "{time} {icon}", + "format-icons": [" ", " ", " ", " ", " "] + }, + "network": { + "format-wifi": "{essid} ({signalStrength}%) ", + "format-ethernet": "{ipaddr}/{cidr} ", + "tooltip-format": "{ifname} via {gwaddr}", + "format-linked": "{ifname} (No IP) ", + "format-disconnected": "Disconnected ⚠", + "format-alt": "{ifname}: {ipaddr}/{cidr}" + }, + "pulseaudio": { + "format": "{volume}% {icon}", + "format-bluetooth": "{volume}% {icon}", + "format-bluetooth-muted": " {icon}", + "format-muted": " ", + "format-source": "{volume}% ", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["", "", ""] + }, + "on-click": "amixer -D pipewire sset Master toggle-mute" + }, + "sway/workspaces": { + "format":" {name} ", + }, + "custom/osk": { + "format":" 󰌌 ", + "on-click": "$HOME/.scripts/osk-toggle.sh", + "restart-interval": 1, + }, + + "custom/quicksettings": { + "format":"  ", + "on-click": "$HOME/.scripts/quick-toggle.sh", + "restart-interval": 1, + }, + + "custom/tablet": { + "format":" 󰦧 ", + "on-click": "$HOME/.scripts/tablet-toggle.sh", + "restart-interval": 1, + }, + + "custom/mowayah": { + "exec": "$HOME/.config/waybar/scripts/heart.sh", + "on-click": "$HOME/.config/waybar/scripts/toggle-heart.sh", + "restart-interval": 1, + } +} diff --git a/waybar/scripts/.heart b/waybar/scripts/.heart new file mode 100644 index 00000000..e69de29b diff --git a/waybar/scripts/heart.sh b/waybar/scripts/heart.sh new file mode 100755 index 00000000..7154904c --- /dev/null +++ b/waybar/scripts/heart.sh @@ -0,0 +1,8 @@ +#!/bin/bash +TOGGLE=$HOME/.config/waybar/scripts/.heart + +if [ ! -e $TOGGLE ]; then + echo " 󰣐 " +else + echo "  " +fi diff --git a/waybar/scripts/toggle-heart.sh b/waybar/scripts/toggle-heart.sh new file mode 100755 index 00000000..d218d291 --- /dev/null +++ b/waybar/scripts/toggle-heart.sh @@ -0,0 +1,8 @@ +#!/bin/bash +TOGGLE=$HOME/.config/waybar/scripts/.heart + +if [ ! -e $TOGGLE ]; then + touch $TOGGLE +else + rm $TOGGLE +fi diff --git a/waybar/style.css b/waybar/style.css new file mode 100644 index 00000000..a2e7132e --- /dev/null +++ b/waybar/style.css @@ -0,0 +1,128 @@ +* { + border: none; + /*font-family: 'SF Mono', Consolas, 'Font Awesome 5 Free Solid', Roboto;*/ + font-family: UbuntuMono; + font-size: 18px + } + + window#waybar { + /* background-color: rgba(18, 21, 29, 0.98); */ + /*background-color: rgba(49, 50, 68, 0.8);*/ + background-color: rgba(0, 0, 0, 0); + border-bottom: 0px solid #181825; + border-radius: 80px; + color: #CBA6F7; + transition-property: background-color; + transition-duration: .5s; + } + + window#waybar.hidden { + opacity: 0.5; + } + + #workspaces, + #cpu, + #memory, + #pulseaudio, + #clock, + #backlight, + #battery, + #tray, + #network { + background-color: rgba(69, 71, 90, 0.3); + padding: 2 16; + /*color: #CDD6F4;*/ + color: #CBA6F7; + border-color: #11111B; + margin: 0px 2px 0px 2px; + border: 6px solid rgba(0, 0, 0, 0); + border-radius: 80px; + background-clip: padding-box; + } + + #workspaces button { + border-radius: 80px; + padding: 0 5px; + min-width: 25px; + /*color: #74C7EC;*/ + color: #CDD6F4; + font-size: 16px; + } + + #workspaces button:hover { + background-color: #7F849C; + } + + #workspaces button.focused { + background-color: #616578; + color: #CBA6F7; + + font-weight: bolder; + } + + #workspaces button.urgent { + color: #F80000; + } + + #backlight { + color: #F9E2AF; + } + + #battery { + color: #A6E3A1; + } + + #battery.charging, #battery.plugged { + background-color: #98c379; + color: #1e222a; + } + + @keyframes blink { + to { + background-color: #1e222a; + color: #e06c75; + } + } + + #battery.critical:not(.charging) { + background-color: #F38BA8; + color: #1e222a; + animation-name: blink; + animation-duration: 0.5s; + animation-timing-function: linear; + animation-iteration-count: infinite; + animation-direction: alternate; + } + + #network.disconnected { + background-color: #F38BA8; + color: #1e222a; + } + + #custom-osk { + font-size: 26px; + background-color: rgba(69, 71, 90, 0.3); + padding: 0 6px 0 0; + border-color: #11111B; + margin: 0px 0px 0px 0px; + border: 6px solid rgba(0, 0, 0, 0); + border-radius: 80px; + background-clip: padding-box; + } + + #custom-tablet { + font-size: 26px; + background-color: rgba(69, 71, 90, 0.3); + padding: 0 8px 0 0; + border-color: #11111B; + margin: 0px 0px 0px 0px; + border: 6px solid rgba(0, 0, 0, 0); + border-radius: 80px; + background-clip: padding-box; + } + + #custom-quicksettings { + font-size: 26px; + background-color: rgba(0, 0, 0, 0); + padding: 0 8px 0 0; + } diff --git a/wofi/style.css b/wofi/style.css new file mode 100644 index 00000000..33a5a949 --- /dev/null +++ b/wofi/style.css @@ -0,0 +1,44 @@ +window { +margin: 0px; +border: none; +border-radius: 10px; +background-color: RGBA(40, 42, 54, 0.5); +} + +#input { +margin: 5px; +border: none; +color: #f8f8f2; +background-color: #44475a; +} + +#inner-box { +margin: 5px; +border: none; +border-radius: 10px; +background-color: RGBA(40, 42, 54, 0); +} + +#outer-box { +margin: 5px; +border: none; +border-radius: 10px; +background-color: RGBA(40, 42, 54, 0.5); +} + +#scroll { +margin: 0px; +border: none; +border-radius: 10px; +} + +#text { +margin: 5px; +border: none; +color: #f8f8f2; +font: SF Pro; +} + +#entry:selected { +background-color: RGBA(68, 71, 90, 0.5); +}