Add idle inhibitor module
This commit is contained in:
40
README.org
40
README.org
@@ -48,6 +48,7 @@
|
|||||||
- [[#dunst][Dunst]]
|
- [[#dunst][Dunst]]
|
||||||
- [[#dwl][dwl]]
|
- [[#dwl][dwl]]
|
||||||
- [[#disk][Disk]]
|
- [[#disk][Disk]]
|
||||||
|
- [[#idle-inhibitor][Idle Inhibitor]]
|
||||||
- [[#memory][Memory]]
|
- [[#memory][Memory]]
|
||||||
- [[#playerctl][Playerctl]]
|
- [[#playerctl][Playerctl]]
|
||||||
- [[#power-menu][Power Menu]]
|
- [[#power-menu][Power Menu]]
|
||||||
@@ -522,7 +523,6 @@ killall waybar
|
|||||||
"position": "top", // Waybar position (top|bottom|left|right)
|
"position": "top", // Waybar position (top|bottom|left|right)
|
||||||
// "height": 25, // Waybar height (to be removed for auto height)
|
// "height": 25, // Waybar height (to be removed for auto height)
|
||||||
// "width": 1280, // Waybar width
|
// "width": 1280, // Waybar width
|
||||||
// Choose the order of the modules
|
|
||||||
"spacing": 4, // Gaps between modules (4px)
|
"spacing": 4, // Gaps between modules (4px)
|
||||||
"mode": "dock",
|
"mode": "dock",
|
||||||
"start_hidden": false,
|
"start_hidden": false,
|
||||||
@@ -538,6 +538,7 @@ killall waybar
|
|||||||
"modules-right": [
|
"modules-right": [
|
||||||
"group/media-playing",
|
"group/media-playing",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
|
"idle_inhibitor",
|
||||||
"custom/system76-power",
|
"custom/system76-power",
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
@@ -604,7 +605,7 @@ window#waybar {
|
|||||||
|
|
||||||
.module,button {
|
.module,button {
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
padding: 0px 3px;
|
padding: 0px 4px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-family: Ubuntu Nerd Font;
|
font-family: Ubuntu Nerd Font;
|
||||||
margin: 0px 0px;
|
margin: 0px 0px;
|
||||||
@@ -797,7 +798,7 @@ fi
|
|||||||
#+BEGIN_SRC css :tangle waybar/style.css
|
#+BEGIN_SRC css :tangle waybar/style.css
|
||||||
#tags button {
|
#tags button {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #44475a;
|
color: #6272a4;
|
||||||
}
|
}
|
||||||
#tags button.occupied {
|
#tags button.occupied {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -844,6 +845,37 @@ fi
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
*** Idle Inhibitor
|
||||||
|
|
||||||
|
**** Configuration
|
||||||
|
|
||||||
|
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": " on",
|
||||||
|
"deactivated": " off",
|
||||||
|
},
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format-activated": "Idle Inhibitor: {status}",
|
||||||
|
"tooltip-format-deactivated": "Idle Inhibitor: {status}",
|
||||||
|
"start-activated": false,
|
||||||
|
},
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
**** Styling
|
||||||
|
|
||||||
|
#+BEGIN_SRC css :tangle waybar/style.css
|
||||||
|
#idle_inhibitor.activated {
|
||||||
|
background: transparent;
|
||||||
|
color: #f1fa8c;
|
||||||
|
}
|
||||||
|
#idle_inhibitor.deactivated {
|
||||||
|
background: transparent;
|
||||||
|
color: #6272a4;
|
||||||
|
}
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** Memory
|
*** Memory
|
||||||
|
|
||||||
**** Configuration
|
**** Configuration
|
||||||
@@ -851,7 +883,7 @@ fi
|
|||||||
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc
|
#+BEGIN_SRC jsonc :tangle waybar/config.jsonc
|
||||||
"memory": {
|
"memory": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": " {percentage}%",
|
"format": " {percentage}%",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB",
|
"tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB",
|
||||||
"on-click-right": "kitty btop",
|
"on-click-right": "kitty btop",
|
||||||
|
@@ -6,7 +6,6 @@
|
|||||||
"position": "top", // Waybar position (top|bottom|left|right)
|
"position": "top", // Waybar position (top|bottom|left|right)
|
||||||
// "height": 25, // Waybar height (to be removed for auto height)
|
// "height": 25, // Waybar height (to be removed for auto height)
|
||||||
// "width": 1280, // Waybar width
|
// "width": 1280, // Waybar width
|
||||||
// Choose the order of the modules
|
|
||||||
"spacing": 4, // Gaps between modules (4px)
|
"spacing": 4, // Gaps between modules (4px)
|
||||||
"mode": "dock",
|
"mode": "dock",
|
||||||
"start_hidden": false,
|
"start_hidden": false,
|
||||||
@@ -22,6 +21,7 @@
|
|||||||
"modules-right": [
|
"modules-right": [
|
||||||
"group/media-playing",
|
"group/media-playing",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
|
"idle_inhibitor",
|
||||||
"custom/system76-power",
|
"custom/system76-power",
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
@@ -174,9 +174,21 @@
|
|||||||
"on-click-right": "qdirstat",
|
"on-click-right": "qdirstat",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": " on",
|
||||||
|
"deactivated": " off",
|
||||||
|
},
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format-activated": "Idle Inhibitor: {status}",
|
||||||
|
"tooltip-format-deactivated": "Idle Inhibitor: {status}",
|
||||||
|
"start-activated": false,
|
||||||
|
},
|
||||||
|
|
||||||
"memory": {
|
"memory": {
|
||||||
"interval": 5,
|
"interval": 5,
|
||||||
"format": " {percentage}%",
|
"format": " {percentage}%",
|
||||||
"tooltip": true,
|
"tooltip": true,
|
||||||
"tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB",
|
"tooltip-format": "RAM:\n\tUsed: {used} GiB ({percentage}%)\n\tFree: {avail} GiB\n\tTotal: {total} GiB\nSwap:\n\tUsed: {swapUsed} GiB ({swapPercentage}%)\n\tFree: {swapAvail} GiB\n\tTotal: {swapTotal} GiB",
|
||||||
"on-click-right": "kitty btop",
|
"on-click-right": "kitty btop",
|
||||||
|
@@ -4,7 +4,7 @@ window#waybar {
|
|||||||
|
|
||||||
.module,button {
|
.module,button {
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
padding: 0px 3px;
|
padding: 0px 4px;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-family: Ubuntu Nerd Font;
|
font-family: Ubuntu Nerd Font;
|
||||||
margin: 0px 0px;
|
margin: 0px 0px;
|
||||||
@@ -44,7 +44,7 @@ window#waybar {
|
|||||||
|
|
||||||
#tags button {
|
#tags button {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #44475a;
|
color: #6272a4;
|
||||||
}
|
}
|
||||||
#tags button.occupied {
|
#tags button.occupied {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
@@ -72,6 +72,15 @@ window#waybar {
|
|||||||
color: #f1fa8c;
|
color: #f1fa8c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#idle_inhibitor.activated {
|
||||||
|
background: transparent;
|
||||||
|
color: #f1fa8c;
|
||||||
|
}
|
||||||
|
#idle_inhibitor.deactivated {
|
||||||
|
background: transparent;
|
||||||
|
color: #6272a4;
|
||||||
|
}
|
||||||
|
|
||||||
#memory {
|
#memory {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
color: #8be9fd;
|
color: #8be9fd;
|
||||||
|
Reference in New Issue
Block a user