hyprland config

This commit is contained in:
thatscringebro
2023-09-21 18:37:25 -04:00
parent fd3d6567dc
commit 98f7bd2701
62 changed files with 2843 additions and 0 deletions

163
hyprland/waybar/config Normal file
View File

@@ -0,0 +1,163 @@
{
"layer": "top",
"exclusive": true,
"passthrough": false,
"position": "bottom",
"spacing": 3,
"fixed-center": true,
"ipc": true,
"margin-top": 6,
"margin-left": 8,
"margin-right": 8,
"modules-left": [
"hyprland/workspaces",
"custom/separator",
"cpu",
"memory",
"disk"
],
"modules-center": [
"clock",
"custom/lock"
],
"modules-right": [
"tray",
"network",
"pulseaudio",
"pulseaudio#microphone",
"custom/power"
],
"hyprland/window": {
"format": "{}"
},
"hyprland/workspaces": {
"format": "{name}",
},
"cpu": {
"interval": 10,
"format": " {usage}%",
"max-length": 10,
"on-click": ""
},
"memory": {
"interval": 30,
"format": " {}%",
"on-click": "killall btop || kitty --title btop sh -c 'btop'",
"max-length": 50
},
"disk": {
"format": " {percentage_used}%",
"tooltip": true,
"interval": 30
},
"custom/separator": {
"format": ""
},
"tray": {
"icon-size": 14,
"tooltip": false,
"spacing": 10
},
"battery": {
"interval": 5,
"states": {
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-plugged": "󰂄 {capacity}%",
"format-icons": [
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
]
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": [
"󰃚",
"󰃛",
"󰃜",
"󰃝",
"󰃝",
"󰃞",
"󰃟",
"󰃠"
],
"scroll-step": 5
},
"pulseaudio": {
"format": "{icon} {volume}%",
"tooltip": false,
"format-muted": "󰖁 Mute",
"on-click-right": "pamixer -t",
"on-click": "killall pavucontrol || pavucontrol",
"on-scroll-up": "pamixer -i 5",
"on-scroll-down": "pamixer -d 5",
"scroll-step": 5,
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": [
"",
"",
"󰕾",
""
]
}
},
"pulseaudio#microphone": {
"format": "{format_source}",
"format-source": " {volume} %",
"format-source-muted": "",
"on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic",
"on-click-right": "pavucontrol",
"on-scroll-up": "~/.config/hypr/scripts/Volume.sh --mic-inc",
"on-scroll-down": "~/.config/hypr/scripts/Volume.sh --mic-dec",
"scroll-step": 5,
},
"network": {
"format": "{ifname}",
"format-wifi": " {signalStrength}%",
"format-ethernet": "󰈀 ",
"format-disconnected": "󰈂 Disconnected",
"tooltip-format": "{ifname} via {gwaddr} ",
"tooltip-format-wifi": "{essid} ({signalStrength}%) ",
"tooltip-format-ethernet": "{ifname} | {ipaddr}/{cidr} ",
"tooltip-format-disconnected": "Disconnected",
"on-click": "killall nm-connection-editor || nm-connection-editor ",
"max-length": 50
},
"hyprland/language": {
"format": " {}",
"format-en": "en-us",
"format-pt": "pt-br"
},
"clock": {
"format": "{:<span color='#ffffff'>󱑒</span> %I:%M %p <span color='#ffffff'> </span>%b %d}"
},
"custom/lock": {
"format": "",
"on-click": "~/.config/hypr/scripts/LockScreen.sh",
"tooltip": false,
},
"custom/power": {
"format": "  ",
"tooltip": false,
"on-click": "sh -c '(sleep 0.5s; wlogout --protocol layer-shell)' & disown"
}
}

151
hyprland/waybar/style.css Normal file
View File

@@ -0,0 +1,151 @@
*{
font-family: "JetBrainsMono Nerd Font";
font-weight: bold;
min-height: 0;
/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */
font-size: 100%;
font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
padding: 0px;
margin-top: 1px;
margin-bottom: 1px;
}
window#waybar {
background: rgba(0, 0, 0, 0);
/*border-bottom: 1px solid @unfocused_borders;*/
/*border-radius: 10px;*/
/*color: #cba6f7;*/
/*border: 1px solid #cba6f7;*/
}
window#waybar.hidden {
opacity: 0.5;
}
tooltip {
background: rgba(0, 0, 0, 0.6);
border-radius: 10px;
/*border: 1px solid #cba6f7;*/
}
tooltip label {
color: #5AE058;
margin-right: 2px;
margin-left: 2px;
}
/*-----module groups----*/
.modules-right {
background-color: rgba(0, 0, 0, 0.6);
border: 0px solid #b4befe;
border-radius: 10px;
}
.modules-center {
background-color: rgba(0, 0, 0, 0.6);
border: 0px solid #b4befe;
border-radius: 10px;
}
.modules-left {
background-color: rgba(0, 0, 0, 0.6);
border: 0px solid #b4befe;
border-radius: 10px;
}
#workspaces button {
padding: 2px;
color: #6E6A86;
margin-right: 5px;
}
#workspaces button.active {
color: #3FB5A3;
border-radius: 15px 15px 15px 15px;
}
#workspaces button.focused {
color: #d8dee9;
}
#workspaces button.urgent {
color: #11111b;
border-radius: 10px;
}
#workspaces button:hover {
color: #9CCFD8;
border-radius: 15px;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#network,
#pulseaudio,
#wireplumber,
#mode,
#tray,
#cava,
#backlight,
#window,
#idle_inhibitor,
#mpd,
#bluetooth,
#taskbar,
#taskbar button,
#workspaces,
#custom-light_dark,
#custom-updater,
#custom-menu,
#custom-cycle_wall,
#custom-power,
#custom-spotify,
#custom-weather,
#custom-power,
#custom-lock,
#custom-weather.severe,
#custom-weather.sunnyDay,
#custom-weather.clearNight,
#custom-weather.cloudyFoggyDay,
#custom-weather.cloudyFoggyNight,
#custom-weather.rainyDay,
#custom-weather.rainyNight,
#custom-weather.showyIcyDay,
#custom-weather.snowyIcyNight,
#custom-weather.default,
#idle_inhibitor {
color: #5AE058;
padding: 0px 10px;
border-radius: 10px;
}
#temperature.critical {
background-color: #ff0000;
}
@keyframes blink {
to {
color: #000000;
}
}
#taskbar button.active {
background-color: #7f849c;
}
#battery.critical:not(.charging) {
color: #f53c3c;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}