Added hostname to waybar

This commit is contained in:
Christoffer Martinsson 2025-04-24 22:07:47 +02:00
parent 3f98b593ea
commit 39825c8fbb
3 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@
"hyprland/workspaces",
],
"modules-center": [
"custom/hostname",
"clock",
],
"modules-right": [
@ -41,6 +42,13 @@
// Modules
// -------------------------------------------------------------------------
"custom/hostname": {
"format": "{text} - ",
"exec": "$HOME/code_server/hostname.sh",
"interval": "once",
"tooltip": false
},
"custom/separator": {
"format": "|",
"interval": "once",

2
hostname.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
hostname | awk '{ print toupper($0) }'