feat: initial commit of Ela's Arch config. :)
This commit is contained in:
commit
9ed00ff30c
59 changed files with 2769 additions and 0 deletions
69
waybar/.config/waybar/config.jsonc
Normal file
69
waybar/.config/waybar/config.jsonc
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["custom/tasks"],
|
||||
"modules-right": [
|
||||
"custom/updates",
|
||||
"custom/containers",
|
||||
"wireplumber",
|
||||
"bluetooth",
|
||||
"network",
|
||||
"battery",
|
||||
"clock"
|
||||
],
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 20,
|
||||
"critical": 10
|
||||
},
|
||||
"format": "<span size=\"96%\">{icon}</span>",
|
||||
"format-icons": {
|
||||
"default": ["", "", "", "", "", "", "", "", ""],
|
||||
"charging": ["", "", "", "", "", "", "", "", "", ""],
|
||||
"critical": [""]
|
||||
},
|
||||
"tooltip-format": "Battery at {capacity}%"
|
||||
},
|
||||
"clock": {
|
||||
"format": "{:%a %d %b %H:%M}",
|
||||
"tooltip-format": "<big>{:%B %Y}</big>\n\n<tt><small>{calendar}</small></tt>"
|
||||
},
|
||||
"network": {
|
||||
"format-ethernet": "",
|
||||
"format-wifi": "{icon}",
|
||||
"format-linked": "",
|
||||
"format-disconnected": "",
|
||||
"format-icons": ["", "", "", "", ""],
|
||||
"tooltip-format-wifi": "{essid} at {signalStrength}%"
|
||||
},
|
||||
"wireplumber": {
|
||||
"format": "<span size=\"120%\">{icon}</span>",
|
||||
"format-muted": "<span size=\"120%\"></span>",
|
||||
"format-icons": ["", "", ""],
|
||||
"tooltip-format": "Volume at {volume}%"
|
||||
},
|
||||
"bluetooth": {
|
||||
"format": "",
|
||||
"format-on": "<span size=\"105%\"></span>",
|
||||
"format-connected": "<span size=\"105%\"></span>",
|
||||
"tooltip-format-on": "Bluetooth {status}",
|
||||
"tooltip-format-connected": "Connected to {device_alias}"
|
||||
},
|
||||
"custom/tasks": {
|
||||
"exec": "~/.config/waybar/scripts/tasks.sh",
|
||||
"exec-if": "which task",
|
||||
"interval": 60
|
||||
},
|
||||
"custom/updates": {
|
||||
"format": "<span size=\"110%\"></span> {}",
|
||||
"exec": "~/.config/waybar/scripts/updates-arch-combined.sh",
|
||||
"interval": 7200,
|
||||
"on-click": "alacritty --command paru -Syu --noconfirm",
|
||||
"signal": 8
|
||||
},
|
||||
"custom/containers": {
|
||||
"exec": "~/.config/waybar/scripts/containers.sh",
|
||||
"exec-if": "which podman",
|
||||
"interval": 60,
|
||||
"return-type": "json"
|
||||
}
|
||||
}
|
||||
21
waybar/.config/waybar/scripts/containers.sh
Executable file
21
waybar/.config/waybar/scripts/containers.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -u
|
||||
|
||||
if [ ! -x "$(command -v podman)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
running_container_count=$(podman ps --noheading | wc -l)
|
||||
|
||||
if [ "$running_container_count" -eq 0 ]; then
|
||||
echo ''
|
||||
exit 0
|
||||
fi
|
||||
|
||||
suffix=""
|
||||
if [ "$running_container_count" -gt 1 ]; then
|
||||
suffix="s"
|
||||
fi
|
||||
|
||||
echo "{\"text\": \"\", \"tooltip\": \"${running_container_count} container${suffix} running\"}"
|
||||
21
waybar/.config/waybar/scripts/tasks.sh
Executable file
21
waybar/.config/waybar/scripts/tasks.sh
Executable file
|
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -u
|
||||
|
||||
if [ ! -x "$(command -v task)" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
active_task=$(task rc.verbose=nothing rc.report.activedesc.filter=+ACTIVE rc.report.activedesc.columns:description rc.report.activedesc.sort:urgency- rc.report.activedesc.columns:description activedesc limit:1 | head -n 1)
|
||||
if [ -n "$active_task" ]; then
|
||||
echo " $active_task"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
ready_task=$(task rc.verbose=nothing rc.report.readydesc.filter=+READY rc.report.readydesc.columns:description rc.report.readydesc.sort:urgency- rc.report.readydesc.columns:description readydesc limit:1 | head -n 1)
|
||||
if [ -z "$ready_task" ]; then
|
||||
echo ""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo " $ready_task"
|
||||
17
waybar/.config/waybar/scripts/updates-arch-combined.sh
Executable file
17
waybar/.config/waybar/scripts/updates-arch-combined.sh
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
if ! update_count_pacman=$(checkupdates | wc -l); then
|
||||
update_count_pacman=0
|
||||
fi
|
||||
|
||||
if ! update_count_aur=$(paru -Qum 2>/dev/null | wc -l); then
|
||||
update_count_aur=0
|
||||
fi
|
||||
|
||||
update_count=$((update_count_pacman + update_count_aur))
|
||||
|
||||
if [ "$update_count" -gt 0 ]; then
|
||||
echo "$update_count"
|
||||
else
|
||||
echo ''
|
||||
fi
|
||||
65
waybar/.config/waybar/style.css
Normal file
65
waybar/.config/waybar/style.css
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
/* General */
|
||||
* {
|
||||
border-radius: 0;
|
||||
font-family: "FiraCode Nerd Font";
|
||||
font-size: 13px;
|
||||
color: #c0caf5;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #1a1b26;
|
||||
}
|
||||
|
||||
tooltip {
|
||||
background-color: #15161e;
|
||||
}
|
||||
|
||||
/* Workspaces */
|
||||
#workspaces button {
|
||||
margin: 4px;
|
||||
padding: 0 8px;
|
||||
border-radius: 9999px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
border-color: transparent;
|
||||
box-shadow: none;
|
||||
background: #414868;
|
||||
}
|
||||
|
||||
#workspaces button.focused,
|
||||
#workspaces button.active {
|
||||
padding: 0 13px;
|
||||
background: #2f334d;
|
||||
}
|
||||
|
||||
/* Modules */
|
||||
#clock,
|
||||
#network,
|
||||
#wireplumber,
|
||||
#bluetooth,
|
||||
#battery,
|
||||
#custom-updates,
|
||||
#custom-tasks,
|
||||
#custom-containers,
|
||||
#mode {
|
||||
margin: 4px;
|
||||
padding: 0 13px;
|
||||
border-radius: 9999px;
|
||||
background-color: #2f334d;
|
||||
}
|
||||
|
||||
#network {
|
||||
padding: 0 15px 0 11px;
|
||||
}
|
||||
|
||||
#mode,
|
||||
#custom-updates {
|
||||
color: #bb9af7;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#battery.critical {
|
||||
color: #f7768e;
|
||||
font-weight: bold;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue