phuhl / linux_notification_center

A notification daemon/center for linux
BSD 3-Clause "New" or "Revised" License
1.01k stars 40 forks source link

[Request] Change date/time at top of notification to a string #113

Open Barbaross93 opened 3 years ago

Barbaross93 commented 3 years ago

Hello,

Thanks for sharing this project! It's very cool; Much nicer for more all-out setups than the minimalist-by-design dunst. One thing I'd like to change and I can't seem to find it anywhere in the config options (and I apologize if I overlooked it) is the ability to replace the date/time at the top of the notification center to a string such as "Deadd Notification Center" or just "Notification Center". Maybe putting the time as a smaller component underneath the main title. If it's not achievable as a config option, could you point to where in the code I could modify it?

Thanks again!

phuhl commented 3 years ago

Hey, thanks for the praise :)

Currently there is no config option for this. I think, the easiest way to achieve what you want is to modify the https://github.com/phuhl/linux_notification_center/blob/master/notification_center.glade file. You should look into this tool to modify the file. After you did, you can recompile from source and your changes should be working. Let me know if it works or if you have issues. If you get it working and are interested, you could create a PR for the main Readme where you describe what you did, for future reference.

MyriaCore commented 3 years ago

Maybe we should provide a setting for a format string? If users don't wanna see the date, they could set it to a constant with no date-time formatting things.