- hyprland & qtile

This commit is contained in:
tuxwarrior
2024-05-12 14:14:13 -05:00
parent 3915d438b3
commit bd71ae832a
12 changed files with 270 additions and 53 deletions

View File

@@ -0,0 +1,165 @@
/*
klevstul
*/
{
"layer": "top" // Waybar at top layer
, "position": "bottom" // Waybar position (top|bottom|left|right)
, "height": 30
, "modules-left":
[
"hyprland/workspaces"
, "tray"
]
, "modules-center":
[
"hyprland/window" // display title of focused window
]
, "modules-right":
[
"idle_inhibitor"
, "pulseaudio"
, "network"
, "memory"
, "disk"
, "cpu"
, "battery"
, "temperature"
, "clock"
]
// https://github.com/Alexays/Waybar/wiki/Module:-Battery
, "battery":
{
"format": "{capacity}% {icon}"
, "format-icons": ["", "", "", "", ""]
}
// # https://github.com/Alexays/Waybar/wiki/Module:-Clock
, "clock":
{
"format": "{:%H:%M}  "
, "format-alt": "{:%A, %B %d, %Y (%R)}  "
, "tooltip-format": "<tt><small>{calendar}</small></tt>"
, "calendar":
{
"mode": "year"
, "mode-mon-col": 3
, "weeks-pos": "right"
, "on-scroll": 1
, "on-click-right": "mode"
, "format":
{
"months": "<span color='#ffead3'><b>{}</b></span>"
, "days": "<span color='#ecc6d9'><b>{}</b></span>"
, "weeks": "<span color='#99ffdd'><b>W{}</b></span>"
, "weekdays": "<span color='#ffcc66'><b>{}</b></span>"
, "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
}
}
, "actions":
{
"on-click-right": "mode"
, "on-click-forward": "tz_up"
, "on-click-backward": "tz_down"
, "on-scroll-up": "shift_up"
, "on-scroll-down": "shift_down"
}
}
// https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#window-title-is-missing
// https://manpages.opensuse.org/Tumbleweed/waybar/waybar-hyprland-window.5.en.html
, "hyprland/window":
{
"max-length": 200
, "separate-outputs": true
}
// https://github.com/Alexays/Waybar/wiki/Module:-Workspaces
// https://github.com/Alexays/Waybar/wiki/Module:-Hyprland
, "hyprland/workspaces":
{
"format": "{icon}{name}"
, "format-icons":
{
"default": " "
, "active": " ."
, "urgent": " !"
}
, "on-scroll-up": "hyprctl dispatch workspace e+1"
, "on-scroll-down": "hyprctl dispatch workspace e-1"
}
// The idle_inhibitor module can inhibit idle behavior such as screen blanking,
// locking, and screensaving, also known as "presentation mode".
// https://github.com/Alexays/Waybar/wiki/Module:-Idle-Inhibitor
, "idle_inhibitor":
{
"format": "{icon}"
, "format-icons":
{
"activated": ""
, "deactivated": ""
}
}
// https://github.com/Alexays/Waybar/wiki/Module:-CPU
, "cpu":
{
"interval": 10
, "format": "{}% "
, "max-length": 10
}
// https://github.com/Alexays/Waybar/wiki/Module:-Disk
, "disk":
{
"interval": 30
, "format": "{path}:{used}/{total} ({percentage_used}%)"
, "path": "/"
}
// https://github.com/Alexays/Waybar/wiki/Module:-Memory
, "memory":
{
"interval": 30
, "format": "{used:0.1f}/{total:0.1f}G ({}%) "
}
// https://github.com/Alexays/Waybar/wiki/Module:-Network
, "network":
{
//"interface" = "wlp2s0";
"format": "{ifname}"
, "format-wifi": "{essid} ({signalStrength}%) "
, "format-ethernet": "{ipaddr}/{cidr} 󰊗"
, "format-disconnected": " " // An empty format will hide the module
, "tooltip-format": "{ifname} via {gwaddr} 󰊗"
, "tooltip-format-wifi": "{essid} ({signalStrength}%) "
, "tooltip-format-ethernet": "{ifname} "
, "tooltip-format-disconnected": "Disconnected"
, "max-length": 50
, "on-click": "nm-applet"
}
// https://github.com/Alexays/Waybar/wiki/Module:-PulseAudio
, "pulseaudio":
{
"format": "{volume}% {icon}"
, "format-bluetooth": "{volume}% {icon}"
, "format-muted": ""
, "format-icons":
{
"headphone": ""
, "hands-free": ""
, "headset": ""
, "phone": ""
, "portable": ""
, "car": ""
, "default": ["", ""]
}
, "scroll-step": 1
, "on-click": "pavucontrol"
, "ignored-sinks": ["Easy Effects Sink"]
}
// https://github.com/Alexays/Waybar/wiki/Module:-Temperature
, "temperature":
{
// "thermal-zone": 2
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input"
// "critical-threshold": 80
// "format-critical": "{temperatureC}°C "
"format": "{temperatureC}°C "
}
}

View File

@@ -0,0 +1,127 @@
/*
https://gist.github.com/genofire/07234e810fcd16f9077710d4303f9a9e
*/
* {
border: none;
border-radius: 0;
font-family: "monospace";
font-size: 9px;
min-height: 0;
margin: 0px;
}
window#waybar {
background: rgba(0, 0, 0, 0.7);
color: rgba(255, 0, 200, 1);
}
window {
color: #e4e4e4;
font-weight: bold;
}
workspaces {
padding: 0px;
margin: 0px;
}
workspaces button {
padding: 0 2px;
margin: 0px;
background: transparent;
color: #ff8700;
/*
color: #00afd7;
color: #ffffff;
border: 1px solid #00afd7;
*/
border: 1px solid #1b1d1e;
font-weight: bold;
}
workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
}
workspaces button.focused {
background: #e88939;
background: #00afd7;
color: #1b1d1e;
}
workspaces button.urgent {
background: #af005f;
color: #1b1d1e;
}
mode {
background: #af005f;
color: #1b1d1e;
}
clock, #battery, #clock, #cpu, #disk, #idle_inhibitor, #memory, #network, #pulseaudio, #temperature {
padding: 0 3px;
margin: 0 2px;
}
clock {
}
battery {
}
battery icon {
color: red;
}
battery.charging {
}
@keyframes blink {
to {
background-color: #af005f;
}
}
battery.warning:not(.charging) {
background-color: #ff8700;
color: #1b1d1e;
}
battery.critical:not(.charging) {
color: white;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
cpu {
}
memory {
}
network {
}
network.disconnected {
background: #f53c3c;
}
pulseaudio {
}
pulseaudio.muted {
}
custom-spotify {
color: rgb(102, 220, 105);
}
tray {
}