Added hostname to waybar
This commit is contained in:
parent
3f98b593ea
commit
39825c8fbb
@ -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
2
hostname.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
hostname | awk '{ print toupper($0) }'
|
||||
Loading…
x
Reference in New Issue
Block a user