feat:migrate hyprland config with nwg tools

This commit is contained in:
grassblock 2025-06-04 15:08:49 +08:00
parent 54ea69dd8e
commit fc39a811c9
251 changed files with 23198 additions and 118 deletions

View file

@ -0,0 +1,531 @@
[
{
"name": "panel-top",
"output": "",
"layer": "bottom",
"position": "top",
"controls": "off",
"width": "auto",
"height": 30,
"homogeneous": true,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 0,
"padding-vertical": 0,
"spacing": 0,
"items-padding": 0,
"icons": "",
"css-name": "panel-top",
"modules-left": [
"button-sample",
"playerctl"
],
"modules-center": [
"clock"
],
"modules-right": [
"sway-mode"
],
"controls-settings": {
"components": [
"brightness",
"volume",
"battery"
],
"commands": {
"battery": ""
},
"show-values": false,
"interval": 1,
"icon-size": 16,
"hover-opens": false,
"leave-closes": true,
"click-closes": false,
"css-name": "controls-window",
"custom-items": [
{
"name": "Panel settings",
"icon": "nwg-panel",
"cmd": "nwg-panel-config"
}
],
"menu": {
"name": "Exit",
"icon": "system-shutdown-symbolic",
"items": [
{
"name": "Lock",
"cmd": "swaylock -f -c 000000"
},
{
"name": "Logout",
"cmd": "swaymsg exit"
},
{
"name": "Reboot",
"cmd": "systemctl reboot"
},
{
"name": "Shutdown",
"cmd": "systemctl -i poweroff"
}
]
}
},
"tray": {
"root-css-name": "tray",
"inner-css-name": "inner-tray"
},
"sway-taskbar": {
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"name-max-len": 20,
"image-size": 16,
"workspaces-spacing": 0,
"task-padding": 0,
"show-app-icon": true,
"show-app-name": true,
"show-layout": true,
"workspace-buttons": false,
"all-workspaces": true,
"mark-autotiling": true,
"mark-xwayland": true,
"all-outputs": true
},
"sway-workspaces": {
"numbers": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
]
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock",
"interval": 1
},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"scroll": false,
"button-css-name": "",
"label-css-name": "",
"interval": 1,
"show-cover": true,
"cover-size": 24,
"angle": 0.0
},
"button-sample": {
"command": "notify-send 'sample button'",
"icon": "view-grid",
"label": "",
"label-position": "right",
"css-name": "button-custom",
"icon-size": 16
},
"menu-start": "off",
"exclusive-zone": false,
"sigrt": 64,
"use-sigrt": false,
"scratchpad": {},
"sway-mode": {},
"openweather": {},
"brightness-slider": {},
"dwl-tags": {},
"hyprland-taskbar": {},
"hyprland-workspaces": {},
"run-if-output-exist": [],
"run-if-output-absent": [],
"monitor": "",
"width-as-percentage": false,
"start-hidden": false,
"hyprland-submap": {},
"keyboard-layout": {
"keyboard-device-hyprland": "",
"root-css-name": "root-executor",
"css-name": "executor-label",
"show-icon": true,
"icon-size": 16,
"interval": 0,
"icon-placement": "left",
"tooltip-text": "LMB: Next layout, RMB: Menu",
"angle": 0.0
},
"niri-taskbar": {},
"random-wallpaper": {}
},
{
"name": "panel-bottom",
"output": "",
"layer": "bottom",
"position": "bottom",
"controls": "off",
"width": "auto",
"height": 30,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 6,
"padding-vertical": 0,
"spacing": 0,
"items-padding": 0,
"icons": "",
"css-name": "panel-bottom",
"modules-left": [
"sway-taskbar"
],
"modules-center": [],
"modules-right": [
"executor-weather"
],
"controls-settings": {
"components": [
"brightness",
"volume",
"battery"
],
"commands": {
"battery": ""
},
"show-values": false,
"interval": 1,
"icon-size": 16,
"hover-opens": false,
"leave-closes": true,
"click-closes": false,
"css-name": "controls-window",
"custom-items": [
{
"name": "Panel settings",
"icon": "nwg-panel",
"cmd": "nwg-panel-config"
}
],
"menu": {
"name": "unnamed",
"icon": "",
"items": []
}
},
"sway-taskbar": {
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"name-max-len": 20,
"image-size": 16,
"workspaces-spacing": 0,
"task-padding": 0,
"show-app-icon": true,
"show-app-name": true,
"show-layout": true,
"workspace-buttons": false,
"all-workspaces": true,
"mark-autotiling": true,
"mark-xwayland": true,
"all-outputs": false
},
"sway-workspaces": {
"numbers": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
]
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"css-name": "clock",
"interval": 1
},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"scroll": false,
"button-css-name": "",
"label-css-name": "",
"interval": 1
},
"executor-weather": {
"script": "curl https://wttr.in/?format=1 -s",
"interval": 1800,
"css-name": "weather",
"on-right-click": "",
"icon-size": 16,
"show-icon": true,
"tooltip-text": "",
"on-left-click": "",
"on-middle-click": "",
"on-scroll-up": "",
"on-scroll-down": ""
}
},
{
"name": "",
"output": "",
"run-if-output-exist": [],
"run-if-output-absent": [],
"layer": "bottom",
"position": "top",
"controls": "off",
"menu-start": "off",
"width": "auto",
"height": 0,
"margin-top": 0,
"margin-bottom": 0,
"padding-horizontal": 0,
"padding-vertical": 0,
"spacing": 0,
"icons": "",
"css-name": "",
"modules-left": [],
"modules-center": [],
"modules-right": [],
"controls-settings": {
"components": [
"brightness",
"volume",
"battery"
],
"commands": {
"battery": ""
},
"show-brightness": false,
"show-volume": false,
"show-battery": true,
"interval": 1,
"icon-size": 16,
"hover-opens": false,
"leave-closes": true,
"click-closes": false,
"root-css-name": "controls-overview",
"css-name": "controls-window",
"battery-low-level": 20,
"battery-low-interval": 3,
"custom-items": [
{
"name": "Panel settings",
"icon": "nwg-panel",
"cmd": "nwg-panel-config"
}
],
"menu": {
"name": "unnamed",
"icon": "",
"items": []
}
},
"menu-start-settings": {
"cmd-lock": "swaylock -f -c 000000",
"cmd-logout": "swaymsg exit",
"cmd-restart": "systemctl reboot",
"cmd-shutdown": "systemctl -i poweroff",
"autohide": true,
"file-manager": "thunar",
"height": 0,
"icon-size-large": 32,
"icon-size-small": 16,
"icon-size-button": 16,
"margin-bottom": 0,
"margin-left": 0,
"margin-right": 0,
"margin-top": 0,
"padding": 2,
"terminal": "foot",
"width": 0
},
"sway-taskbar": {
"workspace-menu": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"name-max-len": 20,
"image-size": 16,
"workspaces-spacing": 0,
"task-padding": 0,
"show-app-icon": true,
"show-app-name": true,
"show-layout": true,
"workspace-buttons": true,
"all-workspaces": true,
"mark-autotiling": true,
"mark-xwayland": true,
"all-outputs": false
},
"hyprland-taskbar": {
"name-max-len": 24,
"icon-size": 16,
"workspaces-spacing": 0,
"client-padding": 0,
"show-app-icon": true,
"show-app-name": true,
"show-layout": true,
"all-outputs": false,
"mark-xwayland": true,
"angle": 0.0
},
"sway-workspaces": {
"numbers": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8"
],
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 40,
"mark-autotiling": true,
"mark-content": true,
"hide-empty": false,
"show-layout": true
},
"hyprland-workspaces": {
"num-ws": 10,
"show-icon": true,
"image-size": 16,
"show-name": true,
"name-length": 40,
"show-empty": true,
"mark-content": true,
"show-names": true,
"mark-floating": true,
"mark-xwayland": true,
"angle": 0.0
},
"clock": {
"format": "%a, %d. %b %H:%M:%S",
"tooltip-text": "",
"tooltip-date-format": false,
"on-left-click": "",
"on-middle-click": "",
"on-right-click": "",
"on-scroll-up": "",
"on-scroll-down": "",
"root-css-name": "root-clock",
"css-name": "clock",
"interval": 1,
"angle": 0.0
},
"playerctl": {
"buttons-position": "left",
"icon-size": 16,
"chars": 30,
"scroll": false,
"button-css-name": "",
"label-css-name": "",
"interval": 1
},
"scratchpad": {
"css-name": "",
"icon-size": 16
},
"dwl-tags": {
"tag-names": "1 2 3 4 5 6 7 8 9",
"title-limit": 55
},
"openweather": {
"appid": "",
"weatherbit-api-key": "",
"lat": null,
"long": null,
"lang": "en",
"units": "metric",
"interval": 1800,
"loc-name": "",
"weather-icons": "color",
"on-right-click": "",
"on-middle-click": "",
"on-scroll": "",
"icon-placement": "start",
"icon-size": 24,
"css-name": "weather",
"show-name": false,
"angle": 0.0,
"ow-popup-icons": "light",
"popup-icon-size": 24,
"popup-text-size": "medium",
"popup-css-name": "weather-forecast",
"popup-placement": "right",
"popup-margin-horizontal": 0,
"popup-margin-top": 0,
"popup-margin-bottom": 0,
"show-humidity": true,
"show-wind": true,
"show-pressure": true,
"show-cloudiness": true,
"show-visibility": true,
"show-pop": true,
"show-volume": true
},
"brightness-slider": {
"show-values": true,
"icon-size": 16,
"interval": 10,
"hover-opens": false,
"leave-closes": false,
"root-css-name": "brightness-module",
"css-name": "brightness-popup",
"angle": 0.0,
"icon-placement": "start",
"backlight-device": "",
"backlight-controller": "brightnessctl",
"slider-orientation": "horizontal",
"slider-inverted": false,
"popup-icon-placement": "start",
"popup-horizontal-alignment": "left",
"popup-vertical-alignment": "top",
"popup-width": 256,
"popup-height": 64,
"popup-horizontal-margin": 0,
"popup-vertical-margin": 0,
"step-size": 1
}
}
]