scorpion-26
39cf17c30f
SNI: Use our object path for ItemPropertyChanged
...
ItemPropertyChanged is called multiple times per actual icon change.
senderName is the same, objectPath is the same, but our registered name
for the callback differs.
We can't use the provided name for item searching, since that *can*
differ from the one we registered with (Looking at you, Discord. Discord
registers with org.kde.StatusNotifierItem-*, but calls back with :*.*)
Since then the object path will sometimes be wrong for the name, we just
use the one from the icon we originally registered with. This causes
multiple icons to reload though
Potential fix for https://github.com/scorpion-26/gBar/issues/26
2023-07-26 13:37:11 +02:00
scorpion-26
fe7b02b10c
SNI: Honor XDG_DATA_DIRS as icon directory
...
Also don't crash in Utils::FindFileWithName when directory doesn't exist
Potential fix for https://github.com/scorpion-26/gBar/issues/25
2023-07-25 01:47:17 +02:00
scorpion-26
c12bef29d2
BluetoothDevices: Honor Location
2023-07-23 17:56:24 +02:00
scorpion-26
abd3774c7d
Fix SNI angle for top bar
2023-07-21 01:29:25 +02:00
scorpion-26
42a0710551
Fix SNIPaddingTop for sideways bar
2023-07-21 01:24:25 +02:00
scorpion-26
f78758c4ee
SNI: Allow bar rotation
...
Texture was also rewritten, so it doesn't need the SNIPaddingTop hack as much
anymore
2023-07-21 01:08:38 +02:00
scorpion-26
4cbada766e
Fix margins for the audio flyin
2023-07-19 01:49:31 +02:00
scorpion-26
138aa9318b
Add a "Location" config.
...
Partially implements https://github.com/scorpion-26/gBar/issues/20
2023-07-19 01:13:57 +02:00
scorpion-26
b0c13801f6
Add GetHeight for Window
2023-07-19 01:13:57 +02:00
scorpion-26
4a9ac0ff5b
Add angle property to widgets
...
This allows us to rotate various widgets.
2023-07-19 01:13:57 +02:00
scorpion-26
e4be65a348
Fix stupid comparison bug
...
Previously, dim.width < dim.height would never return true, since it is
already checked by dim.height >= dim.width.
2023-07-19 01:13:57 +02:00
scorpion-26
ba366729fe
Add margin to Transform
2023-07-19 01:13:57 +02:00
scorpion-26
342ff57ba7
Add char to config
2023-07-19 01:13:57 +02:00
scorpion-26
43dd0777a8
Remove tmp files on SIGINT
...
This allows the use of Ctrl-C without leaving stale files behind which
need to be deleted
2023-07-14 19:46:27 +02:00
scorpion-26
fcf4d75ea0
Only allow one instance of the bluetooth widget
...
This works analogous to the audio flyin
Fixes https://github.com/scorpion-26/gBar/issues/21
2023-07-14 19:37:21 +02:00
scorpion-26
18f3e123ed
SNI: Allow IconPath to be empty
...
Fixes network-manager-applet
2023-07-04 12:21:19 +02:00
scorpion-26
7567465454
Refactor Wayland code out
2023-06-15 13:25:19 +02:00
scorpion-26
f2dc5a806c
Log workspace dispatching
2023-06-15 00:23:02 +02:00
scorpion-26
1f56e6ba15
Greatly reduce clipping when CenterTime is set
...
Giving each main box element (left, center, right) caused the window to
resize and clip out of the monitor when
e.g. the right part was larger than the 1/3 of the window.
Now we have a size for the center widget and try to manually center a box with
that size by setting the left widget's size accordingly. This allows the
right widget to have more room, so it can go right up to the center widget without issues.
2023-06-10 23:50:09 +02:00
scorpion-26
a34ffd8334
Add Window::GetWidth()
2023-06-10 23:49:13 +02:00
scorpion-26
6815d8e017
Initialise GTK early
2023-06-10 23:49:13 +02:00
scorpion-26
2a66f1d64c
Format BluetoothDevices.cpp
2023-06-10 23:49:13 +02:00
faulTTY
9aa310fd07
Make datetime format configurable ( #18 )
...
Co-authored-by: Sciu-Crak <sciu-crak@crak-tower.ironyworld>
Co-authored-by: FaulTTY <faultty@localhost>
2023-05-26 08:57:02 +02:00
scorpion-26
77924b5097
Add confirmation to power PowerWidget
...
For it to actually do something, we need to click twice within 2s. The
clicked button also changes color for visual indication on what was
pressed
See https://github.com/scorpion-26/gBar/issues/17
2023-05-23 22:40:03 +02:00
scorpion-26
c51fadbc79
Consider capacity for battery sensor
2023-05-10 13:08:17 +02:00
scorpion-26
80ade2b06e
Fix inconsistent whitespace
2023-05-05 23:13:35 +02:00
scorpion-26
259083a904
Fix off by one error in default update script
2023-05-05 12:47:40 +02:00
scorpion-26
1c6cd3bd2b
Update more icons
...
Seems like I missed some in the first round
2023-05-04 23:26:30 +02:00
scorpion-26
e9c9d3abb1
SNI: Add Icon positioning config options
2023-05-04 16:14:18 +02:00
scorpion-26
79e78826e0
SNI: Only add to clientsToQuery once
2023-05-04 15:04:06 +02:00
scorpion-26
31e070a3da
SNI: Add config
2023-05-04 13:57:50 +02:00
scorpion-26
b7a92e50d9
SNI: Add context menu
...
Since it uses a 13 year old library, it is broken. The popup size is
hard-fixed at 200x200, with looks really ugly with non-transparent
background.
2023-05-04 13:57:50 +02:00
scorpion-26
40115befdd
SNI: Improve logging
2023-05-04 13:57:50 +02:00
scorpion-26
25912c7e35
SNI: Add tooltip
2023-05-04 13:57:50 +02:00
scorpion-26
6bd5a450b1
SNI: Implement changing properties
2023-05-04 13:57:50 +02:00
scorpion-26
b50ecb0f6c
SNI: Fix freeze when connecting to Qt SNI apps
...
Qt waits until the callback to RegisterItem is done. Thus, we can't
query the item and need to defer it
2023-05-04 13:57:50 +02:00
scorpion-26
a02bce9b91
SNI: Remove items on bus name vanish
2023-05-04 13:57:50 +02:00
scorpion-26
d4ffac395b
SNI: Proper alignment for the icons
2023-05-04 13:57:50 +02:00
scorpion-26
1241d7c87c
SNI: Initial proof of concept
...
Implements a rough outline of the SNI (StatusNotifierItem) d-bus
protocol for tray icons.
Note: This is currently *very* WIP
Full implementation will close https://github.com/scorpion-26/gBar/issues/5
2023-05-04 13:57:50 +02:00
scorpion-26
05e7635c80
Fix CI
2023-05-04 13:53:15 +02:00
scorpion-26
ecc52a81a5
Update all deprecated Material Design icons
...
All Material Design icons should now use their new code points.
This unbreaks gBar with Nerd Fonts v3.0.0
2023-05-03 23:21:21 +02:00
scorpion-26
be47a62880
Properly escape the default package command
...
/bin/sh would remove any newlines without ""
2023-05-03 23:20:29 +02:00
scorpion-26
c101449ba6
Allow Package widget to be anywhere
2023-05-03 19:02:26 +02:00
scorpion-26
aa08206e4b
Fix default packages command
2023-05-03 19:00:39 +02:00
scorpion-26
299b497748
Add package widget
...
Polling is done via user script and a pipe. Since it is only run every
5 minutes by default, this should be fine
Partially implements https://github.com/scorpion-26/gBar/issues/14
2023-05-03 18:40:45 +02:00
scorpion-26
3517fa5de8
Widget: Fix delayed "SetText"
2023-03-25 21:15:35 +01:00
scorpion-26
507cf222fb
Audio: Add Min/Max volume
...
AudioMinVolume/AudioMaxVolume remap the range 0%-100% to
AudioMinVolume-AudioMaxVolume
https://github.com/scorpion-26/gBar/issues/13
2023-03-21 22:09:56 +01:00
scorpion-26
d6610f2594
Config: Support double values
2023-03-21 22:08:59 +01:00
scorpion-26
2fa23a2d54
Audio: Log SetVolume*** events
2023-03-21 17:49:30 +01:00
scorpion-26
c2c38dcae7
Workspaces: Add config option for Hyprland IPC
...
ext_workspace wasn't as perfect of a replacement as I thought it was...
2023-03-11 00:24:50 +01:00