Commit d7f5f6b2 authored by Ethan G.'s avatar Ethan G.

Ajout de la config d'alacritty et de waybar

parent a9361e13
This diff is collapsed.
{
"layer": "top", // Waybar at top layer
"position": "top", // Waybar position (top|bottom|left|right)
// "height": 30, // Waybar height
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": false,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
"focused": "",
"default": ""
}
},
"sway/mode": {
"format": "{}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% "
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C ",
"format": "{temperatureC}°C "
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-disconnected": "Disconnected ⚠"
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol"
},
"custom/media": {
"format": "{icon} {}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
}
}
* {
border: none;
border-radius: 0;
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
min-height: 0;
}
window#waybar {
background: rgba(0, 0, 0, 0);
border-bottom: 3px solid rgba(0, 0, 0, 0);
color: #cb4b16;
border-top: .25em solid #073642;
}
#window {
padding: 0 10px;
margin-right: 1em;
border-radius: 0 0 1em 1em;
border-top: .5em solid #073642;
background: #002b36;
color: #b58900;
transition-duration: 0.5s;
transition-property: border-radius, border, background, color, width;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button {
padding: 0 5px;
margin-left: 1em;
background: #002b36;
color: #b58900;
border-radius: 0 0 1em 1em;
/*border-bottom: .5em solid #000;*/
transition-duration: 0.5s;
border-top: .5em solid #073642;
transition-property: border-radius, border, background, color;
}
#workspaces button.focused {
/*background: rgba(0, 0, 0, 0.25);*/
background: #002b36;
color: #FFF;
border-bottom: .25em solid #b58900;
border-radius: 0 0 1em 1em;
}
#workspaces button.urgent {
background-color: rgba(255, 0, 0, 0.25);
border-bottom: .25em solid #ff0000;
border-radius: 10px;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
border-bottom: .5em solid #b58900;
}
#mode {
background: #64727D;
border-bottom: .25em solid #b58900;
margin-left: 1em;
}
#clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor {
padding: 0 10px;
margin-right: 1em;
border-radius: 0 0 1em 1em;
border-top: .5em solid #073642;
background: #002b36;
color: #b58900;
/*border-bottom: .5em solid;*/
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
#battery.critical:not(.charging) {
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment