This commit is contained in:
2023-12-24 17:32:03 +10:00
commit fb64ea71f4
16 changed files with 3212 additions and 0 deletions

167
waybar/config Normal file
View File

@@ -0,0 +1,167 @@
{
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 25, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": [
"custom/fedora",
"cpu",
"memory",
"hyprland/workspaces",
"tray"
],
"modules-center": [
"hyprland/window"
],
// "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "sway/language", "battery", "clock", "tray"],
"modules-right": [
"network",
"wireplumber",
"backlight",
"battery",
"clock"
],
"hyprland/workspaces": {
"active-only": true,
"format": "{icon}",
"format-icons": {
"1": "1",
"2": "2",
"3": "3",
"4": "4",
"5": "5",
"default": ""
},
"window-rewrite-default": "",
"window-rewrite": {
"firefox": "",
"alacritty": "",
"code": "󰨞"
},
"persistent-workspaces": {
"*": 5
}
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"format": "{:%H:%M %a %b %d}",
"tooltip": false
},
"cpu": {
"format": " {usage}%",
"tooltip": false
},
"memory": {
"format": " {}%",
"tooltip": false
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{icon} {temperatureC}°C",
"format-icons": [
"",
"",
"",
"",
""
],
"tooltip": false
},
"backlight": {
"device": "apple-panel-bl",
"format": "{icon} {percent}%",
"format-icons": [
""
],
"tooltip": true
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
// "format-discharging": " {capacity}%",
"format-alt": "{icon} {time}",
"format-icons": [
"",
"",
"",
"",
""
],
"tooltip": false
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": " {essid} ({signalStrength}%)",
"format-ethernet": " {ifname}: {ipaddr}/{cidr}",
"format-linked": " {ifname} (No IP)",
"format-disconnected": "⚠ Disconnected",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"tooltip": false
},
"wireplumber": {
// "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-muted": "󰸈",
"format-icons": [
"",
"",
""
],
"on-click": "pavucontrol"
},
"custom/fedora": {
"format": "",
"on-click": "wlogout",
"tooltip": false
},
// "custom/notch": {
// "format": "",
// "tooltip": false
// }
}

4
waybar/launch.sh Normal file
View File

@@ -0,0 +1,4 @@
#!/bin/sh
killall -q waybar
waybar

297
waybar/style.css Normal file
View File

@@ -0,0 +1,297 @@
@keyframes blink-warning {
70% {
color: @light;
}
to {
color: @light;
background-color: @warning;
}
}
@keyframes blink-critical {
70% {
color: @light;
}
to {
color: @light;
background-color: @critical;
}
}
/* -----------------------------------------------------------------------------
* Styles
* -------------------------------------------------------------------------- */
/* COLORS */
/* Dracula */
/* @define-color bg #353C4A;
@define-color light #eceff4;
@define-color dark #2e3440;
@define-color warning #ebcb8b;
@define-color critical #d08770;
@define-color mode #4c566a;
@define-color workspaces @bg;
@define-color workspacesfocused #434C5E;
@define-color tray @workspacesfocused;
@define-color sound #46536A;
@define-color network #5D7096;
@define-color memory #546484;
@define-color cpu #596A8D;
@define-color temp #4D5C78;
@define-color layout #5e81ac;
@define-color battery #88d089;
@define-color date #2e3440;
@define-color time #3A4253;
@define-color backlight #3F495D; */
@define-color bg #353C4A;
@define-color light #f8f8f2;
@define-color dark #9580ff;
@define-color warning #ffca80;
@define-color critical #ff9570;
@define-color mode #22212C;
@define-color workspaces #22212C;
@define-color workspacesfocused #22212C;
@define-color tray @workspacesfocused;
@define-color sound #22212C;
@define-color network #22212C;
@define-color memory #22212C;
@define-color cpu #22212C;
@define-color temp #22212C;
@define-color layout #22212C;
@define-color battery #22212C;
@define-color date #22212C;
@define-color time #f8f8f2;
@define-color backlight #22212C;
@define-color apple #22212C;
/* Reset all styles */
* {
border: none;
border-radius: 0;
min-height: 0;
margin: 0;
padding: 0;
}
/* The whole bar */
#waybar {
background: rgba(0, 0, 0, 0);
color: @light;
font-family: "FiraCode Nerd Font", "Noto Sans", "Font Awesome 6 Free";
font-size: 12px;
font-weight: bold;
}
/* Each module */
#battery,
#cpu,
#custom-layout,
#memory,
#mode,
#network,
#wireplumber,
#temperature,
#custom-alsa,
#tray,
#backlight {
padding-left: 10px;
padding-right: 10px;
margin-left: 5px;
margin-top: 4px;
padding-top: 5px;
padding-bottom: 5px;
margin-bottom: 3px;
}
#clock {
padding-left: 10px;
padding-right: 10px;
margin-right: 5px;
margin-top: 4px;
padding-top: 5px;
padding-bottom: 5px;
margin-bottom: 3px;
}
#custom-fedora {
padding-left: 8px;
padding-right: 8px;
margin-right: 5px;
margin-top: 4px;
padding-top: 2px;
padding-bottom: 2px;
margin-bottom: 3px;
}
/* Each module that should blink */
#mode,
#memory,
#temperature,
#battery {
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
/* Each critical module */
#memory.critical,
#cpu.critical,
#temperature.critical,
#battery.critical {
color: @critical;
}
/* Each critical that should blink */
#mode,
#memory.critical,
#temperature.critical,
#battery.critical.discharging {
animation-name: blink-critical;
animation-duration: 2s;
}
/* Each warning */
#network.disconnected,
#memory.warning,
#cpu.warning,
#temperature.warning,
#battery.warning {
color: @warning;
}
/* Each warning that should blink */
#battery.warning.discharging {
animation-name: blink-warning;
animation-duration: 3s;
}
/* And now modules themselves in their respective order */
#mode {
/* Shown current Sway mode (resize etc.) */
color: @light;
background: @mode;
}
/* Workspaces stuff */
/* #workspaces {
border-radius: 8px;
} */
#workspaces button {
font-weight: bold;
padding-left: 5px;
padding-right: 5px;
color: @light;
background: @workspaces;
border-radius: 8px;
margin-top: 4px;
padding-top: 5px;
padding-bottom: 5px;
margin-bottom: 3px;
margin-right: 1px;
}
#workspaces button.active {
color: #ff79c6;
}
#workspaces button.urgent {
color: #ff5555;
}
#window {
margin-right: 40px;
margin-left: 40px;
}
#custom-alsa {
background: @sound;
border-radius: 8px;
}
#network {
background: @network;
border-radius: 8px;
}
#memory {
background: @memory;
border-radius: 8px;
margin-right: 5px;
}
#cpu {
background: @cpu;
border-radius: 8px;
}
#temperature {
background: @temp;
border-radius: 8px;
}
#custom-layout {
background: @layout;
border-radius: 8px;
}
#battery {
background: @battery;
border-radius: 8px;
margin-right: 5px;
/* border-top-left-radius: 10px;
border-bottom-left-radius: 10px; */
}
#backlight {
background: @backlight;
border-radius: 8px;
}
#clock {
background: @date;
border-radius: 8px;
/* border-top-right-radius: 10px;
border-bottom-right-radius: 10px; */
}
#wireplumber {
background: @sound;
border-radius: 8px;
}
#tray {
background: @tray;
border-radius: 8px;
}
#custom-fedora {
background: @apple;
border-radius: 8px;
margin-left: 5px;
padding-left: 14px;
padding-right: 14px;
}
#custom-notch {
margin-left: 100px;
margin-right: 100px;
padding-left: 14px;
padding-right: 14px;
}