start porting configuration to Hyprland/wayland
This commit is contained in:
78
dotfiles/config/waybar/config
Normal file
78
dotfiles/config/waybar/config
Normal file
@ -0,0 +1,78 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 24,
|
||||
// "width": 1366,
|
||||
// Choose the order of the modules
|
||||
"margin-left":5,
|
||||
"margin-right":5,
|
||||
"output":"eDP-1",
|
||||
"modules-left": ["hyprland/workspaces", "custom/music"],
|
||||
"modules-center": ["hyprland/window"],
|
||||
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "clock"],
|
||||
|
||||
"hyprland/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": false,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1:1": "1",
|
||||
"2:2": "2",
|
||||
"3:3": "3",
|
||||
"4:4": "4",
|
||||
"5:5": "5",
|
||||
"6:6": "6",
|
||||
}
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"interval" : 1,
|
||||
"format-alt": "{:%Y-%m-%d}",
|
||||
"format" : "{:%H:%M:%S}"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"format": "{usage}% |"
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"format": "{}% |"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"bat": "BAT0",
|
||||
"states": {
|
||||
"good": 79,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format-time": " {H}:{m}",
|
||||
"format": "{icon}{capacity}%{time}|",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": [" ", " ", " ", " ", " "],
|
||||
"interval":10
|
||||
},
|
||||
"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"
|
||||
},
|
||||
}
|
76
dotfiles/config/waybar/style.css
Normal file
76
dotfiles/config/waybar/style.css
Normal file
@ -0,0 +1,76 @@
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: "Iosevka Nerd Font";
|
||||
font-size: 15px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background: transparent;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#window {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background: transparent;
|
||||
color: white;
|
||||
border-top: 2px solid transparent;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: #c9545d;
|
||||
border-top: 2px solid #c9545d;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background: #64727D;
|
||||
border-bottom: 3px solid white;
|
||||
}
|
||||
|
||||
#clock {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#battery {
|
||||
}
|
||||
|
||||
#battery icon {
|
||||
color: red;
|
||||
}
|
||||
|
||||
#battery.charging {
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.warning: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 {
|
||||
color: #f53c3c;
|
||||
font-weight:bold;
|
||||
}
|
Reference in New Issue
Block a user