Upload from GitHub

This commit is contained in:
2025-02-28 11:41:18 +01:00
commit c1afb50799
302 changed files with 37418 additions and 0 deletions

98
pc/configs/waybar/config.jsonc Executable file
View File

@@ -0,0 +1,98 @@
{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 0,
"modules-left": [
"clock",
"cpu",
"memory",
"hyprland/workspaces"
],
"modules-center": ["hyprland/window"],
"modules-right": [
"tray",
"network",
"custom/dualsense",
"pulseaudio",
"pulseaudio#microphone",
"custom/powerMenu"
],
"hyprland/window": {
"format": "{}"
},
"tray": {
"icon-size": 14,
"spacing": 8
},
"custom/dualsense": {
"tooltip": false,
"return-type": "json",
"exec": "$HOME/.config/waybar/dualsense-notifier.sh",
"on-click": "dualsensectl power-off"
},
"custom/powerMenu": {
"format": "⏻",
"on-click": "rofi -show p -modi p:rofi-power-menu -theme ~/.config/rofi/themes/power.rasi"
},
"network": {
"format-disconnected": " Net",
"format-wifi": "{icon} {essid}",
"format-ethernet": " Wired",
"tooltip-format-ethernet": "<big>Ethernet</big>\nInterface: {ifname}\nIP: {ipaddr}\nUp/Down (bps): {bandwidthUpBits}/{bandwidthDownBits}",
"tooltip-format-wifi": "<big>Wi-Fi</big>\nSSID: {essid}\nIP: {ipaddr}\nSignal strength: {signalStrength}%\nUp/Down (bps): {bandwidthUpBits}/{bandwidthDownBits}\nFrequency: {frequency}GHz",
"tooltip-format-disconnected": "<big>Networking</big>\n{ifname} disconnected",
"on-click": "terminator -x nmtui",
"format-icons": ["", "", "", ""]
},
"clock": {
"format": "{:%a, %d.%m %H:%M:%S}",
"tooltip-format": "<big>Calendar</big>\n<tt><small>{calendar}</small></tt>",
"interval": 1
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"on-click": "activate",
"format": "{icon}"
},
"cpu": {
"tooltip-format": "<big>CPU</big>\n<tt>Total: {usage}</tt>",
"format": " {usage}",
"interval": 5
},
"memory": {
"format": " {percentage}",
"interval": 5
},
"pulseaudio": {
"format": "{icon} {volume}",
"tooltip": true,
"format-muted": " Off",
"on-click": "pamixer -t",
"on-scroll-up": "pamixer -i 5",
"on-scroll-down": "pamixer -d 5",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "🏎",
"default": ["", "", ""]
}
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume}",
"format-source-muted": " 0",
"on-click": "pamixer --default-source -t",
"on-scroll-up": "pamixer --default-source -i 5",
"on-scroll-down": "pamixer --default-source -d 5",
"scroll-step": 5
}
}

View File

@@ -0,0 +1,117 @@
* {
border: none;
border-radius: 0;
font-family: Cartograph CF Nerd Font, monospace;
font-weight: bold;
font-size: 13px;
min-height: 0;
margin-left: 3px;
margin-right: 3px;
}
window#waybar {
background: rgba(0, 0, 0, 0.8);
color: #cdd6f4;
}
tooltip {
background: #1e1e2e;
border-radius: 10px;
border-width: 2px;
border-style: solid;
border-color: #11111b;
}
#workspaces button {
padding: 3px;
color: #313244;
margin-right: 5px;
}
#workspaces button.active {
color: #a6adc8;
}
#workspaces button.focused {
color: #a6adc8;
background: #eba0ac;
border-radius: 10px;
}
#workspaces button.urgent {
color: #11111b;
background: #a6e3a1;
border-radius: 10px;
}
#workspaces button:hover {
background: #11111b;
color: #cdd6f4;
border-radius: 10px;
}
#workspaces {
background: #1e1e2e;
border-radius: 10px;
margin-left: 10px;
padding-right: 0px;
padding-left: 5px;
}
#window,
#clock,
#custom-powerMenu,
#pulseaudio,
#memory,
#tray,
#custom-dualsense,
#network,
#workspaces,
#cpu {
background: #000024;
padding: 4px 12px;
margin: 3px 2px;
margin-top: 9px;
border: 1px solid #181825;
border-radius: 10px;
}
#tray {
border-radius: 10px;
margin-right: 10px;
}
#cpu {
margin-right: 0;
border-radius: 10px 0px 0px 10px;
background-color: #222244;
}
#memory {
color: #89b4fa;
margin-left: 0;
border-radius: 0px 10px 10px 0px;
background-color: #222244;
}
#window {
border-radius: 10px;
margin-left: 60px;
margin-right: 60px;
}
#clock {
color: #a6f7ad;
}
#pulseaudio {
color: #89b4fa;
border-left: 0px;
border-right: 0px;
}
#pulseaudio.microphone {
color: #a6f7ad;
border-left: 0px;
border-right: 0px;
}

View File

@@ -0,0 +1,34 @@
#!/bin/bash
notify_id=-1
icon="/usr/share/icons/breeze-dark/devices/64/input-gamepad.svg"
dev=$(echo $DS_DEV | tr '[:lower:]' '[:upper:]')
case "$1" in
add)
notify_id=$(notify-desktop -r $notify_id -i $icon "$dev" "Controller connected")
while true; do
class=""
battery=$(dualsensectl battery 2> /dev/null)
perc=$(echo $battery | cut -d' ' -f1)
state=$(echo $perc | cut -d' ' -f2)
if [ -z "$perc" -o -z "$state" ]; then
exit;
fi
if [ $perc -lt 15 -a "$state" != "charging" ]; then
notify_id=$(notify-desktop -r $notify_id -i $icon "$dev" "Low battery ${perc}%")
fi
echo "{\"class\": \"$class\", \"text\": \" ${perc}%\"}"
sleep 5m
done
;;
remove)
notify_id=$(notify-desktop -r $notify_id -i $icon "$dev" "Controller disconnected")
echo "{\"text\": \"\"}"
;;
*)
echo "{\"text\": \"\"}"
exec dualsensectl monitor add "${BASH_SOURCE[0]} add" remove "${BASH_SOURCE[0]} remove"
;;
esac

View File

@@ -0,0 +1,112 @@
* {
border: none;
border-radius: 0;
font-family: Cartograph CF Nerd Font, monospace;
font-weight: bold;
font-size: 13px;
min-height: 0;
margin-left: 3px;
margin-right: 3px;
}
window#waybar {
background: rgba(0, 0, 0, 0);
color: #cc5c00;
}
tooltip {
background: black;
border-radius: 10px;
border-width: 2px;
border-style: solid;
border-color: #cc5c00;
}
#workspaces button {
padding: 3px;
color: #a79f9d;
margin-right: 5px;
}
#workspaces button.active {
color: white;
}
#workspaces button.focused {
color: white;
background: #cc5c00;
border-radius: 10px;
}
#workspaces button.urgent {
color: white;
background: #cc5c00;
border-radius: 10px;
}
#workspaces button:hover {
background: white;
color: #cc5c00;
border-radius: 10px;
}
#workspaces {
background: black;
border-radius: 10px;
margin-left: 10px;
padding-right: 0px;
padding-left: 5px;
}
#window,
#clock,
#custom-powerMenu,
#pulseaudio,
#memory,
#tray,
#custom-dualsense,
#network,
#workspaces,
#cpu {
background: black;
padding: 4px 12px;
margin: 3px 2px;
margin-top: 9px;
border: 1px solid rgb(204, 92, 0);
border-radius: 10px;
}
#tray {
border-radius: 10px;
margin-right: 10px;
}
#cpu {
margin-right: 0;
border-radius: 10px 0px 0px 10px;
background-color: #010006;
}
#memory {
margin-left: 0;
border-radius: 0px 10px 10px 0px;
background-color: #010006;
}
#window {
border-radius: 10px;
margin-left: 60px;
margin-right: 60px;
}
#clock {
color: #009e58;
}
#pulseaudio {
color: #9b1603;
}
#pulseaudio.microphone {
color: rgb(167, 159, 157);
}

113
pc/configs/waybar/style.css Executable file
View File

@@ -0,0 +1,113 @@
* {
border: none;
border-radius: 0;
font-family: 'FluentSystemIcons-Regular,Comfortaa', monospace;
font-weight: bold;
font-size: 13px;
min-height: 0;
margin-left: 3px;
margin-right: 3px;
}
window#waybar {
background: rgba(0, 0, 0, 0);
color: #cc5c00;
}
tooltip {
background: black;
border-radius: 10px;
border-width: 2px;
border-style: solid;
border-color: #cc5c00;
}
#workspaces button {
padding: 3px;
color: #a79f9d;
margin-right: 5px;
}
#workspaces button.active {
color: white;
}
#workspaces button.focused {
color: white;
background: #cc5c00;
border-radius: 10px;
}
#workspaces button.urgent {
color: white;
background: #cc5c00;
border-radius: 10px;
}
#workspaces button:hover {
background: white;
color: #cc5c00;
border-radius: 10px;
}
#workspaces {
background: black;
border-radius: 10px;
margin-left: 10px;
padding-right: 0px;
padding-left: 5px;
}
#window,
#clock,
#custom-powerMenu,
#pulseaudio,
#memory,
#tray,
#custom-dualsense,
#network,
#workspaces,
#cpu {
background: black;
padding: 4px 12px;
margin: 3px 2px;
margin-top: 9px;
border: 1px solid rgb(204, 92, 0);
border-radius: 10px;
}
#tray {
border-radius: 10px;
margin-right: 10px;
}
#cpu {
margin-right: 0;
border-radius: 10px 0px 0px 10px;
background-color: #010006;
}
#memory {
margin-left: 0;
border-radius: 0px 10px 10px 0px;
background-color: #010006;
}
#window {
border-radius: 10px;
margin-left: 60px;
margin-right: 60px;
}
#clock {
color: #009e58;
min-width: 125px;
}
#pulseaudio {
color: #9b1603;
}
#pulseaudio.microphone {
color: rgb(167, 159, 157);
}