2023-02-10 16:20:26 +00:00
# Example configuration.
2023-01-29 16:38:40 +00:00
# Everything after '#' is ignored
# Format of the variables:
# [variable]: [value]
# Whitespaces are ignored in the following locations:
# - Before the variable
# - After the ':'
# - After the value
2023-10-31 23:22:32 +00:00
#
# String variables can be escaped ([Notation in config] -> "Result"):
2023-11-21 23:53:44 +00:00
# - foo\\bar -> "foo<backlash>bar"
2023-10-31 23:22:32 +00:00
# - foo\nbar -> "foo<newline>bar"
2023-11-21 23:53:44 +00:00
# - foo\sbar -> "foo bar"
2023-01-29 16:38:40 +00:00
2024-04-14 15:56:02 +00:00
# If true, gBar ignores *.scss files and only tries to load *.css files.
# This is useful, if you don't want to SCSS, or if you want to use newer SCSS features,
# that libsass (the backend gBar uses) doesn't support.
ForceCSS: false
2023-10-21 16:32:51 +00:00
# The following three options control the ordering of the widgets.
# Reordering can cause slight margin inconsistencies,
# so it is recommend to only make minor adjustments to the default layout.
# Adding the same widget multiple times to the layout is *not* supported and will cause issues.
# Widgets to show on the left side
WidgetsLeft: [Workspaces]
# Widgets to center
WidgetsCenter: [Time]
# Widgets to display on the right side
WidgetsRight: [Tray, Packages, Audio, Bluetooth, Network, Disk, VRAM, GPU, RAM, CPU, Battery, Power]
2023-01-29 16:38:40 +00:00
# The CPU sensor to use
2023-01-28 17:04:12 +00:00
CPUThermalZone: /sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon2/temp1_input
2023-01-29 16:38:40 +00:00
2024-04-24 15:31:40 +00:00
# The card to poll when using AMDGPU. If you don't have an AMD card, you can skip this config.
# Possible values can be found by querying /sys/class/drm
DrmAmdCard: card0
# Relative path to AMD gpu thermal sensor, appended after /sys/class/drm/<DrmAmdCard>
AmdGPUThermalZone: /device/hwmon/hwmon1/temp1_input
2023-01-29 16:38:40 +00:00
# The command to execute on suspend
2023-01-28 17:04:12 +00:00
SuspendCommand: ~/.config/scripts/sys.sh suspend
2023-01-29 16:38:40 +00:00
# The command to execute on lock
2023-01-28 17:04:12 +00:00
LockCommand: ~/.config/scripts/sys.sh lock
2023-01-29 16:38:40 +00:00
# The command to execute on exit
2023-01-28 17:04:12 +00:00
ExitCommand: killall Hyprland
2023-01-29 16:38:40 +00:00
# The folder, where the battery sensors reside
2023-01-28 22:47:55 +00:00
BatteryFolder: /sys/class/power_supply/BAT1
2023-01-29 16:38:40 +00:00
2024-02-12 20:05:24 +00:00
# Threshold, when the battery is considered low and a different color (as specified by the 'battery-warning' CSS property) is applied
BatteryWarnThreshold: 20
2023-09-08 14:34:17 +00:00
# The partition to monitor with disk sensor
DiskPartition: /
2023-09-01 22:05:08 +00:00
# Overrides the icon of the nth (in this case the first) workspace.
# Please note the missing space between "," and the symbol. Adding a space here adds it to the bar too!
#WorkspaceSymbol: 1,
2023-01-29 16:38:40 +00:00
# The default symbol for the workspaces
2023-01-29 11:07:24 +00:00
DefaultWorkspaceSymbol:
2023-01-29 20:31:00 +00:00
2023-11-21 23:54:41 +00:00
# All of the icons that can be modified.
# Please note that some icons require a space ("\s") (e.g. default ShutdownIcon)
ShutdownIcon: \s
RebootIcon:
SleepIcon:
LockIcon:
ExitIcon:
BTOffIcon:
BTOnIcon:
BTConnectedIcon:
DevKeyboardIcon: \s
DevMouseIcon: \s
DevHeadsetIcon: \s
DevControllerIcon: \s
DevUnknownIcon: \s
SpeakerMutedIcon:
SpeakerHighIcon:
MicMutedIcon:
MicHighIcon:
PackageOutOfDateIcon: \s
2023-02-12 13:57:32 +00:00
# Scroll through the workspaces of the current monitor instead of all workspaces
WorkspaceScrollOnMonitor: true
# When true: Scroll up -> Next workspace instead of previous workspace. Analogous with scroll down
WorkspaceScrollInvert: false
2023-09-01 22:05:08 +00:00
# Number of workspaces to display. Displayed workspace IDs are 1-n (Default: 1-9)
NumWorkspaces: 9
2024-08-01 20:58:11 +00:00
# Hide trailing unused workspaces (by ID). A workspace is considered unused, if it has no window on it
WorkspaceHideUnused: true
2023-03-10 23:24:50 +00:00
# Use Hyprland IPC instead of the ext_workspace protocol for workspace polling.
# Hyprland IPC is *slightly* less performant (+0.1% one core), but way less bug prone,
# since the protocol is not as feature complete as Hyprland IPC.
2023-09-01 15:53:17 +00:00
# NOTE: Hyprland no longer supports ext-workspace-unstable-v1 as of commit bb09334.
# Hyprland IPC is thus *required* for workspace support under Hyprland >=v0.30.0!
UseHyprlandIPC: true
2023-03-10 23:24:50 +00:00
2023-07-18 23:07:32 +00:00
# The location of the bar
# Needs to be capitalized!!
# Values are: L (Left), R (Right), T (Top), B (bottom)
Location: T
2023-10-31 23:34:33 +00:00
# When the location is set to side, this option forces everything (even text) to be right-side up.
# *Always* make sure to enable SensorTooltips when enabling this option. Failure to do so *will* cause graphical issues.
IconsAlwaysUp: false
2024-03-17 14:39:39 +00:00
# Forces the widgets in the center to be centered.
2023-07-19 01:01:56 +00:00
# This can cause the right widget to clip outside, if there is not enough space on screen (e.g. when opening the text)
2024-03-17 14:39:39 +00:00
# Setting this to false will definitely fix this issue, but it won't look very good, since the widgets will be off-center.
# So try to decrease "CenterSpace" first, before setting this configuration to false.
# Legacy name: CenterTime
CenterWidgets: true
2023-02-04 14:07:05 +00:00
2024-03-17 14:39:39 +00:00
# How much space should be reserved for the center widgets. Setting this too high can cause the right widgets to clip outside.
2023-06-10 21:44:28 +00:00
# Therefore try to set it as low as possible if you experience clipping.
# Although keep in mind, that a value that is too low can cause the widget to be be off-center,
# which can also cause clipping.
2024-03-17 14:39:39 +00:00
# If you can't find an optimal value, consider setting 'CenterWidgets' to false
# Legacy name: TimeSpace
CenterSpace: 300
2023-06-10 21:44:28 +00:00
2023-05-26 06:57:02 +00:00
# Set datetime style
2023-09-07 23:01:02 +00:00
DateTimeStyle: %a %D - %H:%M:%S %Z
2023-05-26 06:57:02 +00:00
2023-09-01 00:14:13 +00:00
# Set datetime locale (defaults to system locale if not set or set to empty string)
2023-09-07 23:01:02 +00:00
#DateTimeLocale: de_DE.utf8
2023-09-01 00:14:13 +00:00
2024-03-17 14:46:45 +00:00
# How many characters of the title can be displayed. Note that higher values *will* cause styling issues, especially when it is in the center.
# If you have the title in the center, consider also increasing "CenterSpace"
MaxTitleLength: 30
2023-02-22 15:45:29 +00:00
# Adds a audio input(aka. microphone) widget
AudioInput: false
2023-02-04 14:46:54 +00:00
# Sets the audio slider to be on reveal (Just like the sensors) when true. Only affects the bar.
AudioRevealer: false
2023-02-10 16:20:26 +00:00
2023-02-20 22:04:37 +00:00
# Sets the rate of change of the slider on each scroll. In Percent
AudioScrollSpeed: 5
2023-08-21 16:19:46 +00:00
# Display numbers instead of a slider for the two audio widgets. Doesn't affect the audio flyin
AudioNumbers: false
2024-10-13 21:37:41 +00:00
# Manually perform the flyin animation for the audio widget. Enabling this can cause some graphical issues (Damage tracking issues after the flyin disappers) on Hyprland.
# So it is recommended to disable this on Hyprland and configure the flyin animation there:
# layerrule = animation slide, gbar-audio
ManualFlyinAnimation: false
2023-05-03 16:37:36 +00:00
# Command that is run to check if there are out-of-date packages.
# The script should return *ONLY* a number. If it doesn't output a number, updates are no longer checked.
2023-05-05 10:47:40 +00:00
# Default value is applicable for Arch Linux. (See data/update.sh for a human-readable version)
CheckPackagesCommand: p="$(checkupdates)"; e=$?; if [ $e -eq 127 ] ; then exit 127; fi; if [ $e -eq 2 ] ; then echo "0" && exit 0; fi; echo "$p" | wc -l
2023-05-03 16:37:36 +00:00
# How often to check for updates. In seconds
CheckUpdateInterval: 300
2023-03-21 21:09:56 +00:00
# Limits the range of the audio slider. Only works for audio output.
# Slider "empty" is AudioMinVolume, Slider "full" is AudioMaxVolume
# AudioMinVolume: 30 # Audio can't get below 30%
# AudioMaxVolume: 120 # Audio can't get above 120%
2023-02-10 16:20:26 +00:00
# The network adapter to use. You can query /sys/class/net for all possible values
NetworkAdapter: eno1
# Disables the network widget when set to false
NetworkWidget: true
2023-09-07 15:24:41 +00:00
# Use tooltips instead of sliders for the sensors
SensorTooltips: false
2023-11-23 22:37:57 +00:00
# The size of the of the circular sensors
SensorSize: 24
# The size of the network icon
NetworkIconSize: 24
2023-05-03 18:57:24 +00:00
# Enables tray icons
EnableSNI: true
2023-05-04 14:30:44 +00:00
# SNIIconSize sets the icon size for a SNI icon.
# SNIPaddingTop Can be used to push the Icon down. Negative values are allowed
2023-12-03 21:48:00 +00:00
# SNIIconName overrides what icon from an icon theme to display.
2023-12-03 21:48:31 +00:00
# SNIDisabled prevents an icon from being registered.
2023-12-03 21:48:00 +00:00
# For all SNI properties: The first parameter is a filter of the tooltip(The text that pops up, when the icon is hovered) of the icon.
2023-12-03 21:48:31 +00:00
# The wildcard filter '*' does not work for SNIIconName and SNIDisabled
2023-05-04 14:30:44 +00:00
# Scale everything down to 25 pixels ('*' as filter means everything)
2023-09-07 23:01:02 +00:00
#SNIIconSize: *, 25
2023-05-04 14:30:44 +00:00
# Explicitly make OBS a bit smaller than default
2023-09-07 23:01:02 +00:00
#SNIIconSize: OBS, 23
2023-05-04 14:30:44 +00:00
# Nudges the Discord icon a bit down
2023-09-07 23:01:02 +00:00
#SNIPaddingTop: Discord, 5
2023-12-03 21:48:00 +00:00
# Override the default icon given to gBar by discord to an icon theme supplied one (Example is from papirus theme)
#SNIIconName: Discord, discord-tray
2023-12-03 21:48:31 +00:00
# Prevents steam from displaying. Note: Steam doesn't have a tooltip, which means the object path is filtered instead.
#SNIDisabled: steam, true
2023-05-04 14:30:44 +00:00
2023-02-10 16:20:26 +00:00
# These set the range for the network widget. The widget changes colors at six intervals:
# - Below Min...Bytes ("under")
# - Between ]0%;25%]. 0% = Min...Bytes; 100% = Max...Bytes ("low")
# - Between ]25%;50%]. 0% = Min...Bytes; 100% = Max...Bytes ("mid-low")
# - Between ]50%;75%]. 0% = Min...Bytes; 100% = Max...Bytes ("mid-high")
# - Between ]75%;100%]. 0% = Min...Bytes; 100% = Max...Bytes ("high")
# - Above Max...Bytes ("over")
MinDownloadBytes: 0
MaxDownloadBytes: 10485760 # 10 * 1024 * 1024 = 10 MiB
MinUploadBytes: 0
MaxUploadBytes: 5242880 # 5 * 1024 * 1024 = 5 MiB