Initial Commit

This commit is contained in:
2026-04-18 15:05:01 +01:00
commit 801c9d74d0
22 changed files with 644 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
@define-color bg0 #1d2021;
@define-color bg1 #282828;
@define-color bg2 #3c3838;
@define-color bg3 #504945;
@define-color bg4 #665c54;
@define-color fg #ebdbb2;
@define-color red #cc241d;
@define-color orange #d65d0e;
@define-color yellow #d79921;
@define-color green #98971a;
@define-color aqua #689d6a;
@define-color blue #458588;
@define-color purple #b16286;
@define-color grey0 #a89984;
@define-color grey1 #928374;
@define-color grey2 #7c6e75;
+72
View File
@@ -0,0 +1,72 @@
{
"spacing": 18,
"margin-top": 20,
"modules-center": [
"clock",
"hyprland/workspaces",
"pulseaudio",
"custom/network",
],
"clock": {
"interval": 60,
"format": "{:%H:%M}",
},
"hyprland/workspaces": {
"format": "{name}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
"8": "",
"9": "",
"10": "",
"active": "",
"default": "",
},
"persistent-workspaces": {
"DP-1": ["1", "2", "3", "4", "5"],
"DP-2": ["6", "7", "8", "9", "10"],
},
"on-click": "activate",
"on-scroll-down": "hyprctl dispatch workspace e+1",
"on-scroll-up": "hyprctl dispatch workspace e-1",
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"phone-muted": "",
"portable": "",
"car": "",
"default": ["", ""],
},
"scroll-step": 1,
"on-click": "pavucontrol",
"ignored-sinks": ["Easy Effects Sink"],
},
"custom/network": {
"exec": "~/.config/waybar/scripts/network.sh",
"return-type": "json",
"interval": 10,
"format": "{}",
"tooltip": false,
"max-length": 50,
"on-click": "~/.config/wofi/wifi/wifi.sh &",
"on-click-right": "~/.config/wofi/wifi/wifinew.sh &",
},
}
+3
View File
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
pkill waybar || waybar &
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
# Fetch the active connection name and type
# -t: Terse output
# -f: Specific fields
ACTIVE_CONN=$(nmcli -t -f NAME,TYPE connection show --active | grep -E '802-3-ethernet|802-11-wireless' | head -n 1)
# If no connection is found, output nothing
if [ -z "$ACTIVE_CONN" ]; then
echo ""
exit 0
fi
# Extract the name and type using parameter expansion (faster than cut)
CONN_NAME="${ACTIVE_CONN%%:*}"
CONN_TYPE="${ACTIVE_CONN##*:}"
# Output JSON for Waybar custom module
if [[ "$CONN_TYPE" == *"802-11-wireless"* ]]; then
# It's Wi-Fi
echo "{\"text\": \"$CONN_NAME \", \"class\": \"wifi\"}"
else
# It's Ethernet
echo "{\"text\": \"$CONN_NAME 󰊗\", \"class\": \"ethernet\"}"
fi
+54
View File
@@ -0,0 +1,54 @@
@import "./colors/custom/gruvbox-dark.css";
* {
all: unset;
font-family:
"Rubik", "JetBrainsMono Nerd Front Propo", "Noto Sans CJK JP",
"Noto Sans CJK KR";
}
.tooltip {
background-color: @bg1;
color: @fg;
margin: 10px;
padding: 10px;
border-radius: 12px;
}
.modules-center {
background-color: @bg1;
color: @fg;
padding: 2px 8px;
border-radius: 99px;
}
#clock {
font-weight: 500;
}
#workspaces {
background-color: @bg2;
padding: 2px 4px;
margin: 2px 0;
border-radius: 99px;
}
#workspaces button {
background-color: @bg3;
padding: 2px 4px;
border-radius: 99px;
margin: 0 2px;
transition: all 300ms ease-in-out;
min-width: 7px;
}
#workspaces button.empty {
color: @grey0;
}
#workspaces button.active {
background-color: @bg1;
min-width: 1.5rem;
font-weight: 500;
transition: none;
}