feat: allow custom icons on custom modules (#351)
* feat: allow custom icons on custom modules * Update options.ts * Update customModules/config.ts --------- Co-authored-by: Jas Singh <jaskiratpal.singh@outlook.com>
This commit is contained in:
24
options.ts
24
options.ts
@@ -1,14 +1,6 @@
|
||||
import { opt, mkOptions } from 'lib/option';
|
||||
import {
|
||||
NetstatIcon,
|
||||
NetstatLabelType,
|
||||
PowerIcon,
|
||||
RateUnit,
|
||||
ResourceLabelType,
|
||||
StorageIcon,
|
||||
UpdatesIcon,
|
||||
} from 'lib/types/bar';
|
||||
import { KbIcon, KbLabelType } from 'lib/types/customModules/kbLayout';
|
||||
import { NetstatLabelType, RateUnit, ResourceLabelType } from 'lib/types/bar';
|
||||
import { KbLabelType } from 'lib/types/customModules/kbLayout';
|
||||
import {
|
||||
ActiveWsIndicator,
|
||||
BarButtonStyles,
|
||||
@@ -951,6 +943,7 @@ const options = mkOptions(OPTIONS, {
|
||||
customModules: {
|
||||
scrollSpeed: opt(5),
|
||||
ram: {
|
||||
icon: opt(''),
|
||||
label: opt(true),
|
||||
labelType: opt<ResourceLabelType>('percentage'),
|
||||
round: opt(true),
|
||||
@@ -960,6 +953,7 @@ const options = mkOptions(OPTIONS, {
|
||||
middleClick: opt(''),
|
||||
},
|
||||
cpu: {
|
||||
icon: opt(''),
|
||||
label: opt(true),
|
||||
round: opt(true),
|
||||
pollingInterval: opt(2000),
|
||||
@@ -971,7 +965,7 @@ const options = mkOptions(OPTIONS, {
|
||||
},
|
||||
storage: {
|
||||
label: opt(true),
|
||||
icon: opt<StorageIcon>(''),
|
||||
icon: opt(''),
|
||||
round: opt(false),
|
||||
labelType: opt<ResourceLabelType>('percentage'),
|
||||
pollingInterval: opt(2000),
|
||||
@@ -982,7 +976,7 @@ const options = mkOptions(OPTIONS, {
|
||||
netstat: {
|
||||
label: opt(true),
|
||||
networkInterface: opt(''),
|
||||
icon: opt<NetstatIcon>(''),
|
||||
icon: opt(''),
|
||||
round: opt(true),
|
||||
labelType: opt<NetstatLabelType>('full'),
|
||||
rateUnit: opt<RateUnit>('auto'),
|
||||
@@ -994,7 +988,7 @@ const options = mkOptions(OPTIONS, {
|
||||
kbLayout: {
|
||||
label: opt(true),
|
||||
labelType: opt<KbLabelType>('code'),
|
||||
icon: opt<KbIcon>(''),
|
||||
icon: opt(''),
|
||||
leftClick: opt(''),
|
||||
rightClick: opt(''),
|
||||
middleClick: opt(''),
|
||||
@@ -1005,7 +999,7 @@ const options = mkOptions(OPTIONS, {
|
||||
updateCommand: opt('$HOME/.config/ags/scripts/checkUpdates.sh -arch'),
|
||||
label: opt(true),
|
||||
padZero: opt(true),
|
||||
icon: opt<UpdatesIcon>(''),
|
||||
icon: opt(''),
|
||||
pollingInterval: opt(1000 * 60 * 60 * 6),
|
||||
leftClick: opt(''),
|
||||
rightClick: opt(''),
|
||||
@@ -1036,7 +1030,7 @@ const options = mkOptions(OPTIONS, {
|
||||
scrollDown: opt(''),
|
||||
},
|
||||
power: {
|
||||
icon: opt<PowerIcon>(''),
|
||||
icon: opt(''),
|
||||
showLabel: opt(true),
|
||||
leftClick: opt('menu:powerdropdown'),
|
||||
rightClick: opt(''),
|
||||
|
||||
Reference in New Issue
Block a user