My own config starting to come alive

This commit is contained in:
pika 2024-06-09 09:43:13 +02:00
parent 187e1286d8
commit 2bb659730c
10 changed files with 299 additions and 1398 deletions

362
config
View file

@ -1,213 +1,169 @@
// -*- mode: json -*-
{
"layer": "top",
"position": "top",
"spacing": 4,
"margin-top": 3,
"margin-bottom": 3,
"margin-left": 3,
"margin-right": 5,
"layer": "top",
"position": "top",
"margin": 0,
"spacing": 4,
"modules-left": [
"custom/icon",
"hyprland/workspaces",
"hyprland/window",
"custom/spotify",
],
"modules-left": ["hyprland/workspaces","hyprland/window"],
"modules-center": [
"clock"
],
"modules-center": ["clock","tray"],
"modules-right": [
"tray",
"backlight",
"cpu",
"pulseaudio",
"network",
"memory",
"battery",
"idle_inhibitor",
"custom/notification",
"custom/power",
],
"modules-right": ["pulseaudio","battery","network","group/info","group/power"],
"custom/icon": {
"format": "󰣇",
"on-click-right": "rofi -config $HOME/.config/rofi/ssh-config.rasi -show ssh",
"on-click": "pkill rofi || rofi -show drun -modi drun,filebrowser,run,window,ssh",
"on-click-middle": "nwg-look",
"tooltip": false
},
"cpu": {
"interval": 10,
"format": " {usage}%",
"max-length": 10,
"tooltip": false,
"on-click-right": "kitty --class floating -e btop"
},
"clock": {
"format": "<b>󰥔 {:%H:%M 󰃭 %d/%m}</b> ",
//"format": "{:%a}",
"tooltip-format": "<tt>{calendar}</tt>",
"calendar": {
"mode" : "month",
"format": {
"months": "<span color='#cdd6f4'><b>{}</b></span>",
"days": "<span color='#cdd6f4'><b>{}</b></span>",
"weeks": "<span color='#cdd6f4'><b>W{}</b></span>",
"weekdays": "<span color='#cdd6f4'><b>{}</b></span>",
"today": "<span color='#f38ba8'><b>{}</b></span>"
}
},
},
"memory": {
"interval": 30,
"format": " {used}GiB",
"format-alt": " {used:0.1f}G",
"on-click-right": "kitty --class floating -e btop",
"max-length": 10
},
"temperature": {
"format": " {temperatureF}°F"
},
"hyprland/window": {
"format": " {}",
"on-click-right": "$HOME/.config/hypr/scripts/screenshot_area",
"rewrite": {
"(.*) - NVIM": " NeoVim",
"(.*) — Mozilla Firefox": "󰈹 Firefox",
" ": "󰇄 Desktop",
"(.*) Spotify Free": "󰓇 Spotify",
"(.*) Spotify": "󰓇 Spotify",
" ~": " pika@home",
"(.*) - Obsidian(.*)": "󱓧 Obsidian",
}
},
"hyprland/workspaces" : {
"on-click": "activate",
"active-only": false,
"all-outputs": true,
"format": "{icon}",
"format-icons": {
"urgent": "",
"active": "",
"default": ""
"group/power": {
"orientation": "inherit",
"drawer": {
"transition-duration": 500,
"children-class": "not-power",
"transition-left-to-right": false,
},
"modules": [
"custom/power", // First element is the "group leader" and won't ever be hidden
"custom/powerm",
"custom/quit",
"custom/lock",
"custom/reboot",
]
},
"custom/quit": {
"format": "󰗼",
"tooltip": false,
"on-click": "hyprctl dispatch exit"
},
"custom/lock": {
"format": "󰍁",
"tooltip": false,
"on-click": "swaylock"
},
"custom/reboot": {
"format": "󰜉",
"tooltip": false,
"on-click": "reboot"
},
"custom/powerm": {
"format": "",
"tooltip": false,
"on-click": "shutdown now"
},
"group/info": {
"orientation": "inherit",
"drawer": {
"children-class": "info",
"parent-class": "p_info",
"transition-left-to-right": false,
},
"modules": [
"memory", "disk", "cpu"
]
},
"persistent-workspaces": {
"*": 4
}
},
"backlight": {
"format": "{icon} <b>{percent}%</b>",
"format-icons": ["󰃞", "󰃟", "󰃠"],
"tooltip": false,
},
"hyprland/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{name}: {icon} [ {windows} ]",
"format-icons": {
"1": "󰁕",
"2": "󰁕",
"3": "󰁕",
"4": "󰁕",
"urgent": "󰊰",
"active": "󰢚",
"special": "󰮯",
"default": "󰁕"
},
"window-rewrite-default": "",
"window-rewrite": {
"nvim": " ",
"foot": " ",
"Thorium": "󰊯 ",
"mercury": " ",
"title<.*youtube.*>": " ",
"title<*netflix.*>": "󰝆",
"Invidious": " ",
"class<mercury*> title<.*github.*>": "", // Windows whose class is "firefox" and title contains "github". Note that "class" always comes first.
},
},
"hyprland/window": {
"format": " {}",
"rewrite": {
"(.*) — Mozilla Firefox": "🌎 $1",
},
"separate-outputs": false
},
"pulseaudio": {
"format": "{icon} <b>{volume}%</b>",
"format-bluetooth": "{icon}  <b>{volume}%</b>",
"format-bluetooth-muted": "󰝟 ",
"format-muted": " 󰝟 ",
"format-icons": {
"headset": "",
"default": ["󰕿", "󰖀", "󰕾"],
},
"tooltip": false,
"on-click": "pavucontrol",
},
"network": {
"interval": 30,
"on-click": "wl-copy $(ip address show up scope global | grep inet | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c5-)",
"on-click-right": "kitty --class floating $HOME/.config/hypr/scripts/wlan.sh",
"format-wifi": "󰤨 {essid}",
"format-ethernet": "󰈀 Wired",
"fomat-disconnected": "󱚵 Disconnected",
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
},
"battery": {
"states": {
"warning": 45,
"critical": 20
},
"format": "{icon} {capacity}%",
"format-icons": ["󰂎", "󰁻", "󰁽", "󰁿", "󰂁", "󰁹"],
"max-length": 25,
"tooltip": false,
"on-click-right": "kitty --class floating $HOME/.config/hypr/scripts/wlan.sh",
},
"tray": {
"icon-size": 18,
"spacing": 10,
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "󰈈 ",
"deactivated": "󰈉 "
},
},
"custom/separator-space": {
"format": " ",
"tooltip": false,
},
"custom/separator-gap": {
"format": " ",
"tooltip": false,
},
"custom/separator-arrow": {
"format": "  ",
"tooltip": false,
},
"custom/power": {
"format": "󰐥",
"on-click": "wlogout",
"tooltip": false,
},
"custom/notification": {
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "󱅫 ",
"none": "󰂚 ",
"dnd-notification": "󰵙 ",
"dnd-none": "󰂛 ",
"inhibited-notification": "󱅫 ",
"inhibited-none": "󰂚 ",
"dnd-inhibited-notification": "󰵙 ",
"dnd-inhibited-none": "󰂛​ "
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
},
"custom/updates": {
"format": " {}",
"tooltip-format": "{}",
"escape": true,
"return-type": "json",
"restart-interval": 60,
"tooltip": false
},
"clock": {
"format": "{:%H:%M}",
"tooltip": false
},
"network": {
"interval": 30,
"on-click": "wl-copy $(ip address show up scope global | grep inet | head -n1 | cut -d/ -f 1 | tr -d [:space:] | cut -c5-)",
"on-click-right": "kitty --class floating $HOME/.config/hypr/scripts/wlan.sh",
"format-wifi": "󰤨 {essid}",
"format-ethernet": "󰈀 Wired",
"fomat-disconnected": "󰤯 Disconnected",
"tooltip-format-wifi": "{essid} ({signalStrength}%)",
"tooltip-format-ethernet": "{ifname} ",
"tooltip-format-disconnected": "Disconnected",
},
"pulseaudio": {
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": " ",
"format-icons": {
"headphones": " ",
"default": [
" ",
" "
]
},
"scroll-step": 5,
"on-click": "pamixer -t",
"on-click-right": "pavucontrol"
},
"memory": {
"interval": 8,
"format": "{icon} {avail}GiB",
"format-icons": "󰝪 ",
"on-click": {
"format": "{icon} {avail}GiB/{total}GiB"
},
},
"cpu": {
"interval": 2,
"format": "{icon} {load}%",
"format-icons": " "
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"disk": {
"interval": 32,
"format": "Disk {percentage_used:2}%",
"path": "/"
},
"tray": {
"icon-size": 20,
"spacing": 10
},
"custom/power": {
"format": "⏼",
"on-click": "wlogout"
},
"css-name": "style.css"
}