Add Hyprland work config
This commit is contained in:
136
hyprland-work/.config/waybar/config
Normal file
136
hyprland-work/.config/waybar/config
Normal file
@@ -0,0 +1,136 @@
|
||||
[{
|
||||
"id": "top",
|
||||
"name": "top",
|
||||
"layer": "top",
|
||||
"height": 40,
|
||||
"margin-top": 16,
|
||||
"margin-left": 16,
|
||||
"margin-right": 16,
|
||||
"modules-left": ["hyprland/workspaces", "hyprland/window", "sway/mode"],
|
||||
"modules-right": ["tray"],
|
||||
"hyprland/workspaces": {
|
||||
"all-outputs": false,
|
||||
"disable-scroll": true,
|
||||
"persistent-workspaces": {
|
||||
"eDP-1": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ],
|
||||
"DP-1": [ 1, 2, 3, 4, 5, 6, 7 ],
|
||||
"DP-2": [ 8, 9, 10, 11 ]
|
||||
}
|
||||
},
|
||||
"hyprland/window": {
|
||||
"separate-outputs": true,
|
||||
"format": "{}"
|
||||
},
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 10
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bottom",
|
||||
"name": "bottom",
|
||||
"layer": "top",
|
||||
"position": "bottom",
|
||||
"height": 40,
|
||||
"margin-bottom": 16,
|
||||
"margin-left": 16,
|
||||
"margin-right": 16,
|
||||
"modules-left": ["gamemode", "custom/flatpak", "custom/backup", "battery", "temperature", "cpu", "memory", "network"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["mpris", "pulseaudio", "backlight", "idle_inhibitor", "clock"],
|
||||
"clock": {
|
||||
"format": "{:%a %b %d %I:%M %p}",
|
||||
"tooltip": false
|
||||
},
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format": " {bandwidthUpBytes} {bandwidthDownBytes}",
|
||||
"format-disconnected": ""
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"good": 100,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": "{icon} {capacity}%",
|
||||
"format-plugged": "{icon} {capacity}%",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
"format": " {percent}%"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": ""
|
||||
},
|
||||
"gamemode": {
|
||||
"format": "{glyph}",
|
||||
"glyph": "",
|
||||
"use-icon": false,
|
||||
"icon-spacing": 0,
|
||||
"icon-size": 0
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 5,
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "{icon}",
|
||||
"format-icons": {
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"scroll-step": 1,
|
||||
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
|
||||
},
|
||||
"cpu": {
|
||||
"interval": 3,
|
||||
"format": " {usage}%",
|
||||
"states": {
|
||||
"critical": 90,
|
||||
"warning": 80,
|
||||
"regular": 50
|
||||
}
|
||||
},
|
||||
"memory": {
|
||||
"interval": 5,
|
||||
"format": " {percentage}% <span font-size=\"7pt\">{swapPercentage}%</span>",
|
||||
"states": {
|
||||
"critical": 90,
|
||||
"warning": 80,
|
||||
"regular": 50
|
||||
}
|
||||
},
|
||||
"temperature": {
|
||||
"format": " {temperatureC}°",
|
||||
"critical-threshold": 80
|
||||
},
|
||||
"mpris": {
|
||||
"interval": 1,
|
||||
"artist-len": 30,
|
||||
"album-len": 30,
|
||||
"title-len": 40,
|
||||
"format": "{player_icon} - {dynamic}",
|
||||
"ignored-players": [
|
||||
"firefox"
|
||||
],
|
||||
"player-icons": {
|
||||
"default": "♫"
|
||||
},
|
||||
"status-icons": {
|
||||
"playing": "⏵",
|
||||
"paused": "⏸",
|
||||
"stopped": "⏹"
|
||||
}
|
||||
},
|
||||
"custom/flatpak": {
|
||||
"interval": 180,
|
||||
"tooltip-format": "{} pending Flatpak updates available",
|
||||
"format": " {}",
|
||||
"exec": "flatpak remote-ls --updates --app | wc -l",
|
||||
"exec-if": "test $(flatpak remote-ls --updates --app | wc -l) -gt 0"
|
||||
},
|
||||
"custom/backup": {
|
||||
"interval": 60,
|
||||
"format": "",
|
||||
"exec": "systemctl is-failed backup.service"
|
||||
}
|
||||
}]
|
210
hyprland-work/.config/waybar/style.css
Normal file
210
hyprland-work/.config/waybar/style.css
Normal file
@@ -0,0 +1,210 @@
|
||||
/*
|
||||
* style.css
|
||||
* Copyright (C) 2021 Vintage Salt
|
||||
*
|
||||
* Distributed under terms of the MIT license.
|
||||
*/
|
||||
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "IBM Plex Sans", "Font Awesome 6 Free", sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
}
|
||||
.modules-left {
|
||||
background: rgba(235, 219, 178, 0.8);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.modules-right {
|
||||
background: rgba(235, 219, 178, 0.8);
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
/* Hypr stuff */
|
||||
#workspaces {
|
||||
}
|
||||
#workspaces button {
|
||||
/* Any random button */
|
||||
background: transparent;
|
||||
color: #7c6f64;
|
||||
padding: 0 0.9em;
|
||||
border-radius: 8px;
|
||||
}
|
||||
#workspaces button.persistent {
|
||||
color: rgba(40, 40, 40, 0.8);
|
||||
}
|
||||
#workspaces button.empty {
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#workspaces button:hover {
|
||||
/* A button that is currently being hovered over by the mouse cursor */
|
||||
/* This comes with free transitions */
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
background-color: #928374;
|
||||
}
|
||||
#workspaces button.focused {
|
||||
color: rgba(235, 219, 178, 0.8);
|
||||
background: #928374;
|
||||
font-weight: bold;
|
||||
}
|
||||
#workspaces button.visible {
|
||||
color: rgba(235, 219, 178, 0.8);
|
||||
background: #076678;
|
||||
font-weight: bold;
|
||||
}
|
||||
#workspaces button.active {
|
||||
color: rgba(235, 219, 178, 0.8);
|
||||
background: #458588;
|
||||
font-weight: bold;
|
||||
}
|
||||
#workspaces button.urgent {
|
||||
color: #d79921;
|
||||
font-weight: bold;
|
||||
}
|
||||
/* Window and mode display */
|
||||
#window {
|
||||
color: rgba(40, 40, 40, 0.4);
|
||||
padding: 0 1em;
|
||||
border-radius: 8px;
|
||||
}
|
||||
window#waybar.empty #window {
|
||||
/* We do this so it properly hides when on an empty workspace */
|
||||
padding: 0;
|
||||
}
|
||||
window#waybar.solo #window {
|
||||
/* Nothing */
|
||||
}
|
||||
window#waybar.floating #window {
|
||||
/* Workspace contains only floating windows */
|
||||
color: rgba(235, 219, 178, 0.8);
|
||||
background: #689d6a;
|
||||
}
|
||||
window#waybar.fullscreen #window {
|
||||
/* Workspace containing a "fullscreen" window (note that this includes fullscreen, 1, which is maximize) */
|
||||
color: rgba(235, 219, 178, 0.8);
|
||||
background: #b16286;
|
||||
}
|
||||
|
||||
/* widgets */
|
||||
#pulseaudio {
|
||||
padding: 0 1em;
|
||||
color: #282828;
|
||||
border-radius: 8px;
|
||||
}
|
||||
#pulseaudio.muted {
|
||||
border-radius: 8px;
|
||||
background: #cc241d;
|
||||
color: #ebdbb2;
|
||||
}
|
||||
#tray {
|
||||
padding: 0 1em;
|
||||
}
|
||||
#mpris {
|
||||
padding: 0 1em;
|
||||
}
|
||||
#mpris.playing {
|
||||
color: #b16286;
|
||||
}
|
||||
#mpris.paused, #mpris.stopped {
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
|
||||
#network {
|
||||
padding: 0 1em;
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#network.disconnected {
|
||||
color: #cc241d;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
padding: 0 1em;
|
||||
}
|
||||
#idle_inhibitor.deactivated {
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#idle_inhibitor.activated {
|
||||
color: #282828;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
padding: 0 1em;
|
||||
color: #282828;
|
||||
}
|
||||
#gamemode {
|
||||
padding: 0 1em;
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#gamemode.running {
|
||||
color: #b8bb26;
|
||||
}
|
||||
/* Memory */
|
||||
#memory {
|
||||
padding: 0 1em;
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#memory.critical {
|
||||
color: #cc241d;
|
||||
}
|
||||
#memory.warning {
|
||||
color: #d79921;
|
||||
}
|
||||
#memory.regular {
|
||||
color: #282828;
|
||||
}
|
||||
/* CPU */
|
||||
#cpu {
|
||||
padding: 0 1em;
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#cpu.critical {
|
||||
color: #cc241d;
|
||||
}
|
||||
#cpu.warning {
|
||||
color: #d79921;
|
||||
}
|
||||
#cpu.regular {
|
||||
color: #282828;
|
||||
}
|
||||
/* Battery */
|
||||
#battery {
|
||||
padding: 0 1em;
|
||||
}
|
||||
#battery.charging {
|
||||
color: #b8bb26;
|
||||
}
|
||||
#battery.good {
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#battery.discharging.warning {
|
||||
color: #d79921;
|
||||
}
|
||||
#battery.discharging.critical {
|
||||
color: #cc241d;
|
||||
}
|
||||
#clock {
|
||||
color: #282828;
|
||||
padding: 0 1em;
|
||||
}
|
||||
/* Temperature*/
|
||||
#temperature {
|
||||
padding: 0 1em;
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
}
|
||||
#temperature.critical {
|
||||
color: #cc241d;
|
||||
}
|
||||
/* Custom modules */
|
||||
#custom-backup {
|
||||
color: #cc241d;
|
||||
padding: 0 1em;
|
||||
}
|
||||
#custom-flatpak {
|
||||
color: rgba(40, 40, 40, 0.2);
|
||||
padding: 0 1em;
|
||||
}
|
Reference in New Issue
Block a user