feat(ags): set bar time to 12h format
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
71058f3ea6
commit
3e4486dc33
3 changed files with 24 additions and 2 deletions
|
@ -8,9 +8,16 @@ export default () => Label({ class_name: 'clock' })
|
||||||
|
|
||||||
const dayName = time.format('%a. ');
|
const dayName = time.format('%a. ');
|
||||||
const dayNum = time.get_day_of_month();
|
const dayNum = time.get_day_of_month();
|
||||||
const date = time.format(' %b. %H:%M');
|
const date = time.format(' %b. ');
|
||||||
|
const hour = (new Date().toLocaleString([], {
|
||||||
|
hour: 'numeric',
|
||||||
|
minute: 'numeric',
|
||||||
|
hour12: true,
|
||||||
|
}) ?? '')
|
||||||
|
.replace('a.m.', 'AM')
|
||||||
|
.replace('p.m.', 'PM');
|
||||||
|
|
||||||
if (dayNum && dayName && date) {
|
if (dayNum && dayName && date) {
|
||||||
self.label = dayName + dayNum + date;
|
self.label = dayName + dayNum + date + hour;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -19,6 +19,7 @@ Places Icons Static Size=22
|
||||||
1920x1200 screen: Height=567
|
1920x1200 screen: Height=567
|
||||||
1920x1200 screen: Width=604
|
1920x1200 screen: Width=604
|
||||||
1920x1200 screen: Window-Maximized=true
|
1920x1200 screen: Window-Maximized=true
|
||||||
|
3 screens: Window-Maximized=true
|
||||||
|
|
||||||
[MainWindow]
|
[MainWindow]
|
||||||
MenuBar=Disabled
|
MenuBar=Disabled
|
||||||
|
|
|
@ -195,6 +195,20 @@ in {
|
||||||
--add-flags "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland"
|
--add-flags "--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer --ozone-platform=wayland"
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(pkgs.symlinkJoin {
|
||||||
|
name = "rstudio";
|
||||||
|
paths = [
|
||||||
|
(pkgs.rstudioWrapper.override {packages = with pkgs.rPackages; [ggplot2 dplyr xts];})
|
||||||
|
];
|
||||||
|
buildInputs = [pkgs.makeWrapper];
|
||||||
|
postBuild = ''
|
||||||
|
wrapProgram $out/bin/rstudio --prefix LD_LIBRARY_PATH : "${makeLibraryPath [
|
||||||
|
pkgs.addOpenGLRunpath.driverLink
|
||||||
|
pkgs.libglvnd
|
||||||
|
]}"
|
||||||
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
|
|
Loading…
Reference in a new issue