Added hostname to waybar
This commit is contained in:
parent
3f98b593ea
commit
39825c8fbb
@ -22,6 +22,7 @@
|
|||||||
"hyprland/workspaces",
|
"hyprland/workspaces",
|
||||||
],
|
],
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
|
"custom/hostname",
|
||||||
"clock",
|
"clock",
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
@ -41,6 +42,13 @@
|
|||||||
// Modules
|
// Modules
|
||||||
// -------------------------------------------------------------------------
|
// -------------------------------------------------------------------------
|
||||||
|
|
||||||
|
"custom/hostname": {
|
||||||
|
"format": "{text} - ",
|
||||||
|
"exec": "$HOME/code_server/hostname.sh",
|
||||||
|
"interval": "once",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
|
||||||
"custom/separator": {
|
"custom/separator": {
|
||||||
"format": "|",
|
"format": "|",
|
||||||
"interval": "once",
|
"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