Adjusts notification and added hour reminders

This commit is contained in:
Michel Fedde 2025-07-07 22:30:03 +02:00
parent 00195f6d38
commit 869b01ee34
9 changed files with 43 additions and 5 deletions

View file

@ -10,5 +10,6 @@ $secondary=DP-2
monitor=$primary, preferred, 0x0, 1
monitor=$secondary, preferred, auto-left, 1
monitor=sunshine, 1920x1080@60, auto, 1
exec=xrandr --output $primary --primary

View file

@ -14,5 +14,5 @@ workspace = 3, name:Discord,monitor:$secondary, default:true
workspace = 4, name:Gaming, monitor:$primary, default:true
workspace = 5, name:Music
workspace = 6, name:Programming, monitor:$primary, default:true
workspace = 20, name:Sunshine, monitor:sunshine, default:true

View file

@ -9,7 +9,7 @@
"flash.nvim": { "branch": "main", "commit": "3c942666f115e2811e959eabbdd361a025db8b63" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"git-conflict.nvim": { "branch": "main", "commit": "4bbfdd92d547d2862a75b4e80afaf30e73f7bbb4" },
"gitsigns.nvim": { "branch": "main", "commit": "6e3ee68bc9f65b21a21582a3d80e270c7e4f2992" },
"gitsigns.nvim": { "branch": "main", "commit": "362fe61f9f19e9bceff178792780df5cce118a7d" },
"grug-far.nvim": { "branch": "main", "commit": "b3f9412b1ed76f14cfc68e1ee899873544330c80" },
"gruvbox.nvim": { "branch": "main", "commit": "58a2cda2e953a99e2f87c12b7fb4602da4e0709c" },
"hererocks": { "branch": "master", "commit": "4ce92131e9858950440ab99a25db9a9b43db8cd4" },
@ -28,7 +28,7 @@
"noice.nvim": { "branch": "main", "commit": "0427460c2d7f673ad60eb02b35f5e9926cf67c59" },
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
"nvim-lint": { "branch": "master", "commit": "3c5e34c24834a67b1cb37600ab7663eefd2b0390" },
"nvim-lspconfig": { "branch": "master", "commit": "d8f03bfd5b54b10352276a0ed1f2ffe9c2e0676f" },
"nvim-lspconfig": { "branch": "master", "commit": "7fac9025a967a4d0846660f751cd392fac6bb788" },
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "89ebe73cd2836db80a22d9748999ace0241917a5" },

8
.config/scripts/NotifyHour.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/env sh
currentHour=$(date +"%H")
notify-send --icon "/usr/share/icons/Gruvbox-Material-Dark/16x16/actions/amarok_clock.svg" \
--app-name="Current Hour" \
"Ding Dong..." \
"It's currently: ${currentHour}:00"

View file

@ -1,7 +1,7 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "center",
"positionY": "bottom",
"positionX": "right",
"positionY": "top",
"widgets": [
"inhibitors",
"title",

View file

@ -0,0 +1,10 @@
[Unit]
Description=Do some thing
After=network.target
[Service]
Type=oneshot
ExecStart=bash -c '/home/${USER}/.config/scripts/NotifyHour.sh'
[Install]
WantedBy=default.target

View file

@ -0,0 +1,8 @@
[Unit]
Description=Sends notification for every hour
[Timer]
OnCalendar=hourly
[Install]
WantedBy=timers.target

View file

@ -12,6 +12,12 @@
box-shadow: $box-shadow-inner-less;
.text-box {
margin-left: 0.5rem;
}
&:hover {
border-color: $foreground;
background: rgba($background, 0.6);

5
.gitignore vendored
View file

@ -38,6 +38,11 @@
!/.config/xdg-desktop-portal/
!/.config/xdg-desktop-portal-termfilechooser/
!/.config/scripts/
!/.config/systemd/
/.config/systemd/*
!/.config/systemd/user/
/.config/systemd/user/*
!/.config/systemd/user/hour-reminder.*
!/.ssh/
/.ssh/*