first commit

This commit is contained in:
Jeena 2025-08-28 11:23:01 +09:00
commit 8e85fe845b
22 changed files with 1449 additions and 0 deletions

215
waybar/config Normal file
View file

@ -0,0 +1,215 @@
// -*- mode: jsonc -*-
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
// "height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"hyprland/workspaces",
"hyprland/window"
],
"modules-center": [
"clock",
],
"modules-right": [
"custom/date",
"wireplumber",
"network",
"hyprland/language",
"custom/power"
],
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"warp-on-scroll": false,
"format": "{name}",
"format-icons": {
"urgent": "",
"active": "",
"default": ""
}
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{layout} {variant}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"hyprland/language": {
"format": "<big>󰌌</big> {long}",
"format-us": "US",
"format-se": "SE",
"format-kr": "KR",
"keyboard-name": "typematrix.com-usb-keyboard",
"on-click": "hyprctl switchxkblayout all next"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"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": 5,
"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,
// "icons": {
// "blueman": "bluetooth",
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
// }
},
"clock": {
"format": "{:%H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"on-click": "gnome-calendar"
},
"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-full": "{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": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"power-profiles-daemon": {
"format": "{icon}",
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "",
"performance": "",
"balanced": "",
"power-saver": ""
}
},
"network": {
"format-wifi": " {essid}",
"format-ethernet": "<big>󰈀</big> Wired",
"on-click": "kitty -e nmtui"
},
"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"
},
"wireplumber": {
"format": " {volume}% · {node_name}",
"format-muted": "",
"reverse-scrolling": 1,
"on-click": "$HOME/.config/tofi/select_audio.py",
},
"custom/media": {
"format": "{icon} {text}",
"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
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/power": {
"format" : " ⏻ ",
"tooltip": false,
"on-click": "wlogout --protocol layer-shell",
},
"custom/arch": {
"format" : "󰣇",
"tooltip": false,
"on-click": "$HOME/.config/hypr/launch-tofi.sh"
},
"custom/date": {
"format": "{}",
"exec": "date +\"󰸗 %A %Y-%m-%d\"",
"on-click": "gnome-calendar",
"interval": 60
}
}

12
waybar/launch-waybar.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
CONFIG_FILES="$HOME/.config/waybar/config $HOME/.config/waybar/style.css"
trap "killall waybar" EXIT
while true; do
waybar &
inotifywait -e create,modify $CONFIG_FILES
killall waybar
done

121
waybar/style.css Normal file
View file

@ -0,0 +1,121 @@
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 14px;
min-height: 0;
margin: 0;
padding: 0;
}
window#waybar {
background: rgba(0, 0, 0, 0.2);
margin: 0;
padding: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: transparent;
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces {
margin: 8px 2px;
}
#workspaces button:first-child, #workspaces button.active:first-child {
border-top-left-radius: 9999px;
border-bottom-left-radius: 9999px;
border-width: 3px 0 3px 3px;
padding-left: 13px;
border-color: #C1B3BB;
}
#workspaces button:last-child, #workspaces button.active:last-child {
border-top-right-radius: 9999px;
border-bottom-right-radius: 9999px;
border-width: 3px 3px 3px 0;
padding-right: 13px;
border-color: #C1B3BB;
}
#workspaces button {
margin: 0;
padding: 2px 10px 0 10px;
border: 3px solid #C1B3BB;
border-width: 3px 0;
border-radius: 0;
background: rgba(255, 255, 255, 0.1);
transition: background 0.5s ease, color 0.5s ease;
}
#workspaces button.active {
background: #C1B3BB;
color: black;
}
#workspaces button:hover {
background: rgba(255, 255, 255, 0.2);
}
#workspaces button.active:hover {
background: #C1B3BB;
}
#clock,
#custom-date,
#custom-arch,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#window,
#custom-power,
#language,
#mpd {
margin: 8px 2px;
padding: 0 18px 0 18px;
color: black;
background: rgba(255, 255, 255, 0.7);
border-radius: 9999px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
#clock {
padding: 0;
margin: 0;
font-family: Curved Square;
font-size: 50px;
color: rgba(255, 255, 255, 0.7);
background: transparent;
}
#language {
background: rgba(255, 255, 255, 0.7);
}
#custom-power {
padding: 0;
font-size: 20px;
}