update hyprland config

This commit is contained in:
Alexander Navarro 2025-01-29 22:18:15 -03:00
parent 5a3ec56f81
commit add1b86ba7
4 changed files with 354 additions and 304 deletions

View file

@ -1,7 +1,3 @@
# ╭────────────────────────────────────────────────────────────────────╮
# _ _ _ _
# | | | |_ _ _ __ _ __| | __ _ _ __ __| |
# | |_| | | | | '_ \| '__| |/ _` | '_ \ / _` |
# | _ | |_| | |_) | | | | (_| | | | | (_| |
# |_| |_|\__, | .__/|_| |_|\__,_|_| |_|\__,_|
@ -15,7 +11,10 @@
# ╰──────────────────────────────────────────────────────────╯
# Execute your favorite apps at launch
exec-once = waybar & hyprpaper & mako
exec-once = pipewire
exec-once = waybar
exec-once = hyprpaper
exec-once = mako
# ╭──────────────────────────────────────────────────────────╮
# │ Config │
@ -106,7 +105,8 @@ master {
$mainMod = SUPER
$menu = bemenu-run -iwn --binding vim --vim-esc-exits --scrollbar autohide --fixed-height --counter always -l 20 -P '>' -p 'Open:' -B 2 -R 5 --cw '5x' --fn 'JetBrainsMono 13' --bdr '##$tealAlpha' --ab '##$baseAlpha' --af '##$textAlpha' --fb '##$baseAlpha' --ff '##$textAlpha' --cf '##$mauveAlpha' --hb '##$surface0Alpha' --hf '##$tealAlpha' --nb '##$baseAlpha' --nf '##$textAlpha' --tb '##$mauveAlpha' --tf '##$baseAlpha' --scb '##$surface0Alpha' --scf '##$mauveAlpha'
# $menu = bemenu-run -iwn --binding vim --vim-esc-exits --scrollbar autohide --fixed-height --counter always -l 20 -P '>' -p 'Open:' -B 2 -R 5 --cw '5x' --fn 'JetBrainsMono 13' --bdr '##$tealAlpha' --ab '##$baseAlpha' --af '##$textAlpha' --fb '##$baseAlpha' --ff '##$textAlpha' --cf '##$mauveAlpha' --hb '##$surface0Alpha' --hf '##$tealAlpha' --nb '##$baseAlpha' --nf '##$textAlpha' --tb '##$mauveAlpha' --tf '##$baseAlpha' --scb '##$surface0Alpha' --scf '##$mauveAlpha'
$menu = rofi -show drun
# ── Spawn ─────────────────────────────────────────────────────────────
bind = $mainMod SHIFT, E, exit,
@ -121,15 +121,15 @@ bind = $mainMod SHIFT, Print, exec, grim -g "$(slurp -d)" - | wl-copy
# screenshot area and edit it
bind = $mainMod CTRL, Print, exec, grim -g "$(slurp -d)" - | swappy -f -
bind = $mainMod, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
bind = $mainMod, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-
bind = $mainMod, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bind = $mainMod, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bind = $mainMod, XF86AudioPlay, exec, playerctl play-pause
bind = $mainMod, XF86AudioNext, exec, playerctl next
bind = $mainMod, XF86AudioPrev, exec, playerctl previous
bind = $mainMod, XF86MonBrightnessUp, exec, brightnessctl set +5%
bind = $mainMod, XF86MonBrightnessDown, exec, brightnessctl set 5%-
bind = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
bind = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-
bind = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bind = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bind = , XF86AudioPlay, exec, playerctl play-pause
bind = , XF86AudioNext, exec, playerctl next
bind = , XF86AudioPrev, exec, playerctl previous
bind = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bind = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
# ── Window Options ────────────────────────────────────────────────────
bind = $mainMod SHIFT, space, togglefloating,

View file

@ -1,147 +1,128 @@
{
// "layer": "top", // Waybar at top layer
// "height": 30, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"hyprland/workspaces",
],
"modules-center": [
"tray"
],
"modules-right": [
"layer":"top",
"position":"top",
"reload_style_on_change":true,
"height":20,
"margin-bottom":5,
"margin-left": 5,
"margin-right":5,
"modules-left":["hyprland/workspaces"],
"modules-center":["clock"],
"modules-right":[
"custom/notification",
"idle_inhibitor",
"pulseaudio",
"network",
"bluetooth",
"backlight",
"wireplumber",
"clock#time",
"battery",
"clock"
"custom/power"
],
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": true,
"warp-on-scroll": true,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"9": "",
"10": "󰌳",
"default": ""
}
"1": "✨",
"2": "🌈",
"3": "💕",
"4": "🎄",
"5": "🌊",
"6": "🌷",
"7": "🪷",
"8": "😽",
"9": "🌙",
"10": "🦋",
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
"on-scroll-up": "hyprctl dispatch workspace e+1 1>/dev/null",
"on-scroll-down": "hyprctl dispatch workspace e-1 1>/dev/null",
"sort-by-number": true,
"active-only": false,
},
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"unknown-tag": "N/A",
"interval": 2,
"consume-icons": {
"on": " "
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ",
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
"backlight":{
"format": "<span color='#8ccf7e'>󱩖 </span> {percent}% ",
"device": "intel_backlight",
"on-scroll-down": "brightnessctl s 5%-",
"on-scroll-up": "brightnessctl s +5%"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "󰅶",
"deactivated": "󰾪"
}
"activated": "",
"deactivated": ""
},
"tray": {
// "icon-size": 21,
"spacing": 10
"tooltip": "true"
},
"wireplumber": {
"on-click": "pavucontrol",
"on-click-right": "amixer sset Master toggle 1>/dev/null",
"format": "<span foreground='#e5c76b'>{icon}</span> {volume}%",
"format-muted": "<span foreground='#e5c76b'></span> Muted",
"format-icons": {
"headphone": " ",
"hands-free": " ",
"headset": " ",
"phone": " ",
"portable": " ",
"car": " ",
"default": [" ", " ", " "]
},
},
"network": {
"format-wifi": "<span color='#67b0e8'></span> {essid} ",
"format-ethernet": "<span color='#67b0e8'></span> {ifname}",
"format-linked": "<span color='#67b0e8'></span> {ifname} (No IP)",
"format": "<span color='#67b0e8'></span> Connected",
"format-disconnected": "<span color='#67b0e8'></span> Disconnected",
"interval": 60,
"on-click":"~/.config/rofi/rofi-wifi-menu.sh"
},
"clock": {
// "timezone": "America/New_York",
"format": "{:%I:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
"format": "<span color='#ee5396'></span> {:%A %e %B}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", "", "", "", "", "", "", "", ""]
"clock#time": {
"format": "<span color='#e57474'></span> {:%H:%M}"
},
"battery": {
"interval": 2,
"states": {
// "good": 95,
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
"format": "<span color='#8ccf7e'>{icon}</span> {capacity}%",
"format-charging": "<span color='#8ccf7e'></span> {capacity}%",
"format-plugged": "<span color='#8ccf7e'></span> {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
"bluetooth":{
"format-on": "<span color='#e57474'></span> Turned On",
"format-off": "<span color='#e57474'></span> Turned Off",
"format-disabled": "<span color='#e57474'></span> Disabled",
"format-connected": "<span color='#e57474'></span> Connected",
"format": "<span color='#e57474'></span> Disabled",
"on-click":"blueman-manager &"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}",
"format-bluetooth": "{volume}% {icon} {format_source}",
"format-bluetooth-muted": " {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
"custom/power":{
"format":"",
"on-click":"~/.config/rofi/powermenu/type-4/powermenu.sh"
},
"on-click": "pavucontrol"
"custom/notification":{
"format": "󱅫",
"on-click": "swaync-client -t -sw"
}
}

179
config/waybar/style-bkp.css Normal file
View file

@ -0,0 +1,179 @@
@import "./themes/catppuccin-macchiato.css";
@keyframes blink_red {
to {
background-color: @red;
color: @base;
}
}
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: JetBrainsMono Roboto, Helvetica, Arial, sans-serif;
font-size: 1rem;
}
box.modules-left,
box.modules-center,
box.modules-right {
border-radius: 1rem;
background-color: @base;
}
.warning,
.critical,
.urgent {
animation-name: blink_red;
animation-duration: 800ms;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#mode,
#clock,
#memory,
#temperature,
#cpu,
#custom-weather,
#mpd,
#idle_inhibitor,
#backlight,
#pulseaudio,
#network,
#battery,
#custom-powermenu,
#custom-cava-internal,
#custom-launcher,
#tray,
#disk,
#custom-pacman,
#custom-scratchpad-indicator {
padding: 0 0.6rem;
background-color: @red;
}
/* Bar */
window#waybar {
background-color: transparent;
}
window > box {
background-color: transparent;
margin: 5px 11px;
margin-bottom: 0;
}
window#waybar button:not(:first-child),
window#waybar button:not(:last-child) {
border-radius: 0;
}
window#waybar button:first-child {
border-radius: 1rem 0 0 1rem;
}
window#waybar button:last-child {
border-radius: 0 1rem 1rem 0;
}
/* Workspaces */
#workspaces button {
padding: 0.2rem 0.75rem;
color: @text;
}
#workspaces button label {
background-color: transparent;
font-size: 1.2rem;
}
#workspaces button:not(:first-child) label {
/* Fix fontawesome miss alignment, depends of the padding above and font size */
margin-right: 0.45rem;
}
#workspaces button.focused {
color: @teal;
background-color: alpha(@teal, 0.15);
}
#workspaces button:hover {
/* border: .2px solid transparent; */
background: alpha(@blue, 0.15);
color: @blue;
border-color: transparent;
box-shadow: inherit;
text-shadow: inherit;
}
/* Tooltip */
tooltip {
background-color: @base;
}
tooltip label {
color: @rosewater;
}
/* battery */
#battery {
color: @mauve;
padding-right: 1.15rem;
}
#battery.full {
color: @green;
}
#battery.charging {
color: @teal;
}
#battery.discharging {
color: @peach;
}
#battery.critical:not(.charging) {
color: @pink;
}
#custom-powermenu {
color: @red;
}
#memory {
color: @peach;
}
#cpu {
color: @blue;
}
#clock {
color: @rosewater;
}
#idle_inhibitor {
color: @green;
padding-right: 0.9rem;
}
#temperature {
color: @sapphire;
}
#backlight {
color: @green;
}
#pulseaudio {
color: @mauve; /* not active */
}
#network {
color: @pink; /* not active */
}
#network.disconnected {
color: @foreground; /* not active */
}
#disk {
color: @maroon;
}
#custom-pacman {
color: @sky;
}
#custom-scratchpad-indicator {
color: @yellow;
}
#custom-weather {
color: @red;
}

View file

@ -1,179 +1,69 @@
@import "./themes/catppuccin-macchiato.css";
@keyframes blink_red {
to {
background-color: @red;
color: @base;
}
}
* {
/* `otf-font-awesome` is required to be installed for icons */
*{
font-size: 13px;
font-family: JetBrainsMono Roboto, Helvetica, Arial, sans-serif;
font-size: 1rem;
color: @text;
}
#waybar {
background: transparent;
border-radius: 5px;
}
#workspaces{
border-radius:5px;
box-shadow:0px 0px black;
}
box.modules-left,
box.modules-center,
box.modules-right {
border-radius: 1rem;
border-radius: 6px;
background-color: @base;
}
.warning,
.critical,
.urgent {
animation-name: blink_red;
animation-duration: 800ms;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#mode,
#clock,
#memory,
#temperature,
#cpu,
#custom-weather,
#mpd,
#idle_inhibitor,
#backlight,
#pulseaudio,
#workspaces,
#network,
#backlight,
#wireplumber,
#clock,
#battery,
#custom-powermenu,
#custom-cava-internal,
#custom-launcher,
#tray,
#disk,
#custom-pacman,
#custom-scratchpad-indicator {
#idle_inhibitor,
#bluetooth,
#custom-power,
#custom-notification{
padding: 0 0.6rem;
background-color: @red;
}
/* Bar */
window#waybar {
background-color: transparent;
#network,
#wireplumber,
#backlight,
#bluetooth{
margin:0px;
}
#backlight,
#bluetooth{
border-radius:0px;
}
#wireplumber{
border-radius: 0px 5px 5px 0px;
}
window > box {
background-color: transparent;
margin: 5px 11px;
margin-bottom: 0;
#idle_inhibitor,
#clock,
#workspaces,
#custom-lizzy,
#custom-power,
#battery,
#custom-notification{
border-radius: 5px;
}
window#waybar button:not(:first-child),
window#waybar button:not(:last-child) {
border-radius: 0;
#idle_inhibitor.activated{
color:#e57474;
}
window#waybar button:first-child {
border-radius: 1rem 0 0 1rem;
}
window#waybar button:last-child {
border-radius: 0 1rem 1rem 0;
}
/* Workspaces */
#workspaces button {
padding: 0.2rem 0.75rem;
color: @text;
}
#workspaces button label {
background-color: transparent;
font-size: 1.2rem;
}
#workspaces button:not(:first-child) label {
/* Fix fontawesome miss alignment, depends of the padding above and font size */
margin-right: 0.45rem;
}
#workspaces button.focused {
color: @teal;
background-color: alpha(@teal, 0.15);
}
#workspaces button:hover {
/* border: .2px solid transparent; */
background: alpha(@blue, 0.15);
color: @blue;
border-color: transparent;
box-shadow: inherit;
text-shadow: inherit;
}
/* Tooltip */
tooltip {
background-color: @base;
}
tooltip label {
color: @rosewater;
}
/* battery */
#battery {
color: @mauve;
padding-right: 1.15rem;
}
#battery.full {
color: @green;
}
#battery.charging {
color: @teal;
}
#battery.discharging {
color: @peach;
}
#battery.critical:not(.charging) {
color: @pink;
}
#custom-powermenu {
color: @red;
}
#memory {
color: @peach;
}
#cpu {
color: @blue;
}
#clock {
color: @rosewater;
}
#idle_inhibitor {
color: @green;
padding-right: 0.9rem;
}
#temperature {
color: @sapphire;
}
#backlight {
color: @green;
}
#pulseaudio {
color: @mauve; /* not active */
}
#network {
color: @pink; /* not active */
}
#network.disconnected {
color: @foreground; /* not active */
}
#disk {
color: @maroon;
}
#custom-pacman {
color: @sky;
}
#custom-scratchpad-indicator {
color: @yellow;
}
#custom-weather {
color: @red;
#custom-power{
color:#c47fd5;
margin-right:10px;
padding-right:14px;
}