Compare commits

..

2 commits

Author SHA1 Message Date
2ceae5e293 add missing configs for wayland wm 2025-01-29 16:19:45 -03:00
1088826254 add support for hyprland config syntax in nvim 2025-01-29 16:19:07 -03:00
8 changed files with 388 additions and 0 deletions

11
config/mako/config Normal file
View file

@ -0,0 +1,11 @@
default-timeout=5000
# Colors
background-color=#24273a
text-color=#cad3f5
border-color=#8aadf4
progress-color=over #363a4f
[urgency=high]
border-color=#f5a97f

View file

@ -128,5 +128,6 @@ vim.filetype.add({
["%.env%.[%w_.-]+"] = "dotenv",
[".*%.blade%.php"] = "blade",
[".*%.hurl.*"] = "hurl",
[".*/hypr/.*%.conf"] = "hyprlang",
},
})

View file

@ -100,6 +100,7 @@ return {
},
harper_ls = {},
html = {},
hyprls = {},
marksman = {},
phpactor = {},
gopls = {

10
config/swappy/config Normal file
View file

@ -0,0 +1,10 @@
[Default]
save_dir=$HOME/Pictures
save_filename_format=screenshot-%Y%m%d-%H%M%S.png
show_panel=true
line_size=5
text_size=20
text_font=sans-serif
paint_mode=arrow
early_exit=true
fill_shape=false

147
config/waybar/config Normal file
View file

@ -0,0 +1,147 @@
{
// "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": [
"idle_inhibitor",
"pulseaudio",
"network",
"battery",
"clock"
],
// Modules configuration
"hyprland/workspaces": {
"disable-scroll": true,
"warp-on-scroll": true,
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"9": "",
"10": "󰌳",
"default": ""
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"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)"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "󰅶",
"deactivated": "󰾪"
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"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}"
},
"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": ["", "", "", "", "", "", "", "", ""]
},
"battery": {
"states": {
// "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": ["", "", "", "", ""]
},
"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}"
},
"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": ["", "", ""]
},
"on-click": "pavucontrol"
}
}

179
config/waybar/style.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;
}

13
config/waybar/sway-bar.sh Normal file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
# Date
date=$(date "+%a %F %R")
# Battery
battery=$(cat /sys/class/power_supply/BAT*/capacity)
# Alsa master volume
volume=$(amixer get Master | grep "Right:" | cut -f 7,8 -d " ")
# Status bar
echo "Vol: $volume | Bat: ${battery}% | $date"

View file

@ -0,0 +1,26 @@
@define-color rosewater #f4dbd6;
@define-color flamingo #f0c6c6;
@define-color pink #f5bde6;
@define-color mauve #c6a0f6;
@define-color red #ed8796;
@define-color maroon #ee99a0;
@define-color peach #f5a97f;
@define-color yellow #eed49f;
@define-color green #a6da95;
@define-color teal #8bd5ca;
@define-color sky #91d7e3;
@define-color sapphire #7dc4e4;
@define-color blue #8aadf4;
@define-color lavender #b7bdf8;
@define-color text #cad3f5;
@define-color subtext1 #b8c0e0;
@define-color subtext0 #a5adcb;
@define-color overlay2 #939ab7;
@define-color overlay1 #8087a2;
@define-color overlay0 #6e738d;
@define-color surface2 #5b6078;
@define-color surface1 #494d64;
@define-color surface0 #363a4f;
@define-color base #24273a;
@define-color mantle #1e2030;
@define-color crust #181926;