diff --git a/dot_config/hypr/hypridle.conf b/dot_config/hypr/hypridle.conf index 8bf72ac..945c18f 100644 --- a/dot_config/hypr/hypridle.conf +++ b/dot_config/hypr/hypridle.conf @@ -9,16 +9,17 @@ general { after_sleep_cmd = echo as # command ran after sleep ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) ignore_systemd_inhibit = false # whether to ignore systemd-inhibit --what=idle inhibitors + ignore_wayland_inhibit = true # whether to ignore systemd-inhibit --what=idle inhibitors } listener { - timeout = 600 # in seconds + timeout = 600 # in seconds, 600 on-timeout = hyprctl dispatch dpms off # command to run on timeout on-resume = hyprctl dispatch dpms on # command to run on resume } listener { - timeout = 610 # in seconds + timeout = 610 # in seconds, 610 on-timeout = ~/.config/hypr/lights.sh off on-resume = ~/.config/hypr/lights.sh on } diff --git a/dot_config/hypr/hyprland.conf b/dot_config/hypr/hyprland.conf index 7ec1c6a..fa3ab3c 100644 --- a/dot_config/hypr/hyprland.conf +++ b/dot_config/hypr/hyprland.conf @@ -81,8 +81,8 @@ exec-once = systemctl --user start hyprland-session.target exec-once = systemctl --user start hyprpolkitagent # Auto-Mount exec-once = udiskie --smart-tray -# Some Env variables for systemd -exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_MENU_PREFIX +# Some Env variables for systemd and D-Bus activation +exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_MENU_PREFIX XDG_DATA_DIRS # Load hypr Plugins exec-once = hyprctl plugin load "$HYPR_PLUGIN_DIR/lib/libhyprexpo.so" @@ -121,6 +121,9 @@ env = HYPRCURSOR_SIZE,24 # fix for KDE mime things. kbuildsycoca6 env = XDG_MENU_PREFIX,plasma- +# Keep Hyprland-specific D-Bus service overrides out of Plasma sessions. +env = XDG_DATA_DIRS,/home/misti/.local/share-hyprland:/home/misti/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share + # From the wiki recommended settings env = GDK_BACKEND,wayland,x11,* env = QT_QPA_PLATFORM,wayland;xcb @@ -271,6 +274,8 @@ misc { force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :( middle_click_paste = false + mouse_move_enables_dpms = false + key_press_enables_dpms = true } cursor { diff --git a/dot_config/opencode/opencode.json b/dot_config/opencode/opencode.json index c140df4..d2d722e 100644 --- a/dot_config/opencode/opencode.json +++ b/dot_config/opencode/opencode.json @@ -231,7 +231,13 @@ "xargs *": "allow", "yq *": "allow", "nslookup *": "allow", - "getent *": "allow" + "getent *": "allow", + + "gofmt *": "allow", + "go test *": "allow", + "go mod tidy": "allow", + + "pnpm *": "allow" } } } diff --git a/dot_config/waybar/config.jsonc b/dot_config/waybar/config.jsonc index 0fc9ae1..9947b2c 100644 --- a/dot_config/waybar/config.jsonc +++ b/dot_config/waybar/config.jsonc @@ -4,7 +4,7 @@ // Main "include": [ "~/.config/waybar/shared_modules.jsonc", - "~/.config/waybar/hyprland-workspaces.jsonc" + "~/.config/waybar/hyprland-workspaces.jsonc", ], "height": 38, "spacing": 4, @@ -26,7 +26,9 @@ "custom/updates", //"custom/claude", "custom/codex", + "custom/habits", "wireplumber", + "custom/daily-plan", "clock", ], }, @@ -34,7 +36,7 @@ // Secondary "include": [ "~/.config/waybar/shared_modules.jsonc", - "~/.config/waybar/hyprland-workspaces.jsonc" + "~/.config/waybar/hyprland-workspaces.jsonc", ], "height": 38, "spacing": 4, diff --git a/dot_config/waybar/hyprland-workspaces.jsonc b/dot_config/waybar/hyprland-workspaces.jsonc index bab0549..317fcd6 100644 --- a/dot_config/waybar/hyprland-workspaces.jsonc +++ b/dot_config/waybar/hyprland-workspaces.jsonc @@ -35,7 +35,13 @@ "class": "", "class": "", "class": "", - "class": "" + "class": "", + "class": "", + "class": "", + "class": "", + "class": "", + "class": "", + "class": "" } } } diff --git a/dot_config/waybar/shared_modules.jsonc b/dot_config/waybar/shared_modules.jsonc index ed59dd7..effc14c 100644 --- a/dot_config/waybar/shared_modules.jsonc +++ b/dot_config/waybar/shared_modules.jsonc @@ -190,6 +190,27 @@ "escape": true, }, + "custom/daily-plan": { + "return-type": "json", + "exec": "/home/misti/opencode/4week/waybar_daily_plan.py", + "interval": 30, + "signal": 12, + "format": "{text}", + "tooltip": true, + "on-click": "/home/misti/opencode/4week/daily_plan_window.py", + "escape": false, + }, + + "custom/habits": { + "return-type": "json", + "exec": "/home/misti/source/habits/waybar/habits_summary.py", + "format": "{text}", + "interval": 30, + "tooltip": true, + "on-click": "/home/misti/source/habits/waybar/habits_summary.py --toggle", + "escape": false, + }, + "gamemode": { "format": "{glyph}", "format-alt": "{glyph} {count}", @@ -237,7 +258,8 @@ "return-type": "json", "exec": "/home/misti/opencode/weight-unlock/show_weight_waybar.py", "on-click": "/home/misti/opencode/weight-unlock/show_weight_waybar.py --toggle; pkill -RTMIN+11 waybar", - "interval": 300, + "tooltip": true, + "interval": 60, "signal": 11, }, diff --git a/dot_config/waybar/style.css b/dot_config/waybar/style.css index fc7583e..40d5cad 100644 --- a/dot_config/waybar/style.css +++ b/dot_config/waybar/style.css @@ -101,8 +101,10 @@ box.#workspaces { #custom-systemd-failed-units, #custom-k8s-alerts, #custom-hypridle, +#custom-habits, #custom-weight, #custom-sleep, +#custom-daily-plan, #tray, #wireplumber, #cpu, @@ -123,9 +125,11 @@ box.#workspaces { #custom-garage-velero:hover, #custom-gpu:hover, #custom-sleep:hover, +#custom-daily-plan:hover, #custom-scrcpy-active:hover, #custom-k8s-alerts:hover, #custom-hypridle:hover, +#custom-habits:hover, #custom-weight:hover, #wireplumber:hover, #gamemode:hover, @@ -214,6 +218,21 @@ box.#workspaces { color: @green; } +#custom-weight.trend-down { + background-color: alpha(@green, 0.14); + border-color: alpha(@green, 0.35); +} + +#custom-weight.trend-up { + background-color: alpha(@red, 0.14); + border-color: alpha(@red, 0.35); +} + +#custom-weight.trend-flat { + background-color: alpha(@yellow, 0.12); + border-color: alpha(@yellow, 0.3); +} + #clock { color: @lavender; } @@ -471,3 +490,47 @@ tooltip { border: 3px solid @rosewater; border-radius: 8px; } + +#custom-daily-plan { + padding: 0 10px; +} + +#custom-habits { + padding: 0 10px; +} + +#custom-habits.pending { + background-color: shade(alpha(@red, 0.5), 0.4); +} + +#custom-habits.active { + background-color: shade(alpha(@teal, 0.5), 0.7); +} + +#custom-habits.done { + background-color: shade(alpha(@green, 0.5), 0.6); +} + +#custom-habits.empty { + background-color: shade(alpha(@surface0, 0.5), 0.5); +} + +#custom-habits.error { + background-color: shade(alpha(@red, 0.5), 0.5); +} + +#custom-daily-plan.pending { + background-color: shade(alpha(@red, 0.5), 0.4); +} +#custom-daily-plan.active { + background-color: shade(alpha(@teal, 0.5), 0.7); +} +#custom-daily-plan.done { + background-color: shade(alpha(@green, 0.5), 0.6); +} +#custom-daily-plan.empty { + background-color: shade(alpha(@surface0, 0.5), 0.5); +} +#custom-daily-plan.error { + background-color: shade(alpha(@red, 0.5), 0.5); +} diff --git a/dot_local/share-hyprland/dbus-1/services/org.kde.kded6.service b/dot_local/share-hyprland/dbus-1/services/org.kde.kded6.service new file mode 100644 index 0000000..02ecbfe --- /dev/null +++ b/dot_local/share-hyprland/dbus-1/services/org.kde.kded6.service @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=org.kde.kded6 +Exec=/bin/false