edit M1Pro waybar and hyprland configs

This commit is contained in:
tonizz_m1pro
2024-06-10 22:38:38 -07:00
parent c62a65cbd5
commit 179c38c7fa
3 changed files with 190 additions and 6 deletions

View File

@@ -0,0 +1,115 @@
{
"layer": "bottom",
"position": "top",
"height": 28,
"reload_style_on_change": true,
"height": 4,
"margin-top": 4,
"margin-left": 10,
"margin-right": 10,
"modules-left": [ "custom/spotify", "custom/cpu", "memory", "disk" ],
"modules-center": [ "hyprland/workspaces" ],
"modules-right": [ "battery", "clock#time", "tray", "idle_inhibitor" ],
"custom/spotify": {
"exec": "$HOME/.config/waybar/scripts/spotify.py --player spotify",
"format": "<span size='10000' foreground='#98971a'> </span>{}",
"return-type": "json",
"on-click": "playerctl -p spotify play-pause",
"on-scroll-up": "playerctl -p spotify next",
"on-scroll-down": "playerctl -p spotify previous",
"on-click-right-release": "hyprctl dispatch workspace 6",
"tooltip": false
},
"memory": {
"interval": 1,
"format": "<span foreground='#d79921'> </span>{used:0.1f}GiB"
},
"disk": {
"interval": 60,
"format": "<span foreground='#d79921'> </span>{used}",
"tooltip": false
},
"hyprland/workspaces": {
"format": "{icon}",
"on-click-release": "activate",
"sort-by-numbers": false,
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
"format-icons": {
"1": "I",
"2": "II",
"3": "III",
"4": "IV",
"5": "V",
"6": "VI",
"7": "VII",
"8": "VIII",
"9": "IX",
"10": "X"
}
},
/* "network": {
"interval": 1,
"format-wifi": "<span foreground='#d79921'>{icon} </span>{essid}<span foreground='#d79921'>  </span>{bandwidthUpBytes}<span foreground='#d79921'>  </span>{bandwidthDownBytes} ",
"format-disconnected": "",
"format-ethernet": "<span foreground='#d79921'> </span>Connected",
"on-click-right-release": "alacritty --class nmtui -T 'Network Settings' -e nmtui",
"on-click-release": "$HOME/.config/waybar/scripts/network.sh",
"format-icons": [
"󰤯 ",
"󰤟 ",
"󰤢 ",
"󰤥 ",
"󰤨 "
]
},
*/
"clock#time": {
"interval": 1,
"format": "<span foreground='#d79921' size='10000'> </span>{:%I:%M %p} ",
"tooltip": false,
"on-click-release": "bash $HOME/.config/waybar/scripts/date.sh"
},
"custom/cpu": {
"exec": "$HOME/.config/waybar/scripts/monitoring/cpu-temp.c",
"format": "<span foreground='#d79921'> </span>{}",
"tooltip": false
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "󰆪 ",
"deactivated":"󰗥 "
}
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-charging": "\udb80\udc84 {capacity}%",
"format-plugged": "\udb81\udea5 {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["\udb80\udc7a", "\udb80\udc7b", "\udb80\udc7c", "\udb80\udc7d", "\udb80\udc7e", "\udb80\udc7f", "\udb80\udc80", "\udb80\udc81", "\udb80\udc82", "\udb80\udc79"]
},
"tray": {
"icon-size": 14,
"spacing": 10,
"show-passive-items": true
}
}
// vim:ft=jsonc

View File

@@ -0,0 +1,67 @@
* {
border: none;
font-family: JetBrainsMono Nerd Font;
font-weight: bold;
font-size: 12px;
min-height: 0;
border-radius: 20;
padding-right: 4px;
padding-left: 4px;
}
tooltip {
background: #282828;
border: 0px solid;
border-radius: 18px;
}
window#waybar {
background: #282828;
color: #ebdbb2;
}
#workspaces button {
padding: 0 0.6em;
color: #a89984;
background: #504945;
border-radius: 0px;
margin-right: 4px;
margin-left: 4px;
margin-top: 2px;
margin-bottom: 2px;
}
#workspaces button.active {
color: #ebdbb2;
background: #665c54;
}
#workspaces button.urgent {
color: #1d2021;
background: #fb4934;
}
#workspaces button:hover {
background: #665c54;
}
#disk,
#clock,
#memory,
/*#network,*/
#workspaces,
#battery,
#idle_inhibitor,
#custom-cpu,
#custom-spotify,
#tray {
color: #d5c4a1;
background: #433e3c;
padding: 0 0.6em;
margin-right: 4px;
margin-left: 2px;
margin-top: 4px;
margin-bottom: 4px;
border-radius: 18px;
}