move dragon to hyprland, add wezterm long-command-finished notifications, update mako styles to be transparent and rounded, use mise by default

This commit is contained in:
Daniel Flanagan 2024-12-20 10:14:12 -06:00
parent d32bba279a
commit 0e38f4dd2a
6 changed files with 25 additions and 9 deletions

View file

@ -336,7 +336,7 @@
virtual-machines virtual-machines
virtual-machines-gui virtual-machines-gui
music-production music-production
plasma6 # plasma6
gaming gaming
slippi.nixosModules.default slippi.nixosModules.default

View file

@ -61,6 +61,9 @@ end
function _last_cmd_duration function _last_cmd_duration
set_color -b normal green set_color -b normal green
set -q CMD_DURATION && printf " %dms" $CMD_DURATION set -q CMD_DURATION && printf " %dms" $CMD_DURATION
if test $CMD_DURATION -gt 5000
printf "\e]777;notify;%s;%s\e\\" "WezTerm: Command Finished" (history --max 1)
end
end end
function _maybe_jobs_summary function _maybe_jobs_summary

View file

@ -53,7 +53,6 @@ in {
"firefox" "firefox"
"wezterm" "wezterm"
"xwaylandvideobridge" "xwaylandvideobridge"
"dbus-update-activation-environment --systemd --all"
"systemctl --user import-environment QT_QPA_PLATFORMTHEME" "systemctl --user import-environment QT_QPA_PLATFORMTHEME"
# "wezterm" # "wezterm"
# NOTE: maybe check out hypridle? # NOTE: maybe check out hypridle?
@ -80,7 +79,6 @@ in {
"before-sleep 'swaylock --daemonize'" "before-sleep 'swaylock --daemonize'"
]) ])
''swayidle -w timeout 600 'notify-send "Locking in 30 seconds..."' timeout 630 'swaylock -f' timeout 660 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on && maybe-good-morning' before-sleep 'swaylock -f'"'' ''swayidle -w timeout 600 'notify-send "Locking in 30 seconds..."' timeout 630 'swaylock -f' timeout 660 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on && maybe-good-morning' before-sleep 'swaylock -f'"''
"dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP"
]; ];
env = [ env = [

View file

@ -23,14 +23,18 @@
home.file."${config.xdg.configHome}/mako/config" = { home.file."${config.xdg.configHome}/mako/config" = {
enable = true; enable = true;
text = with style.colors.withHashPrefix; '' text = with style.colors.withHashPrefix; ''
border-size=1 border-size=2
border-radius=5
padding=10,15
max-visible=5 max-visible=5
default-timeout=15000 default-timeout=15000
font=Symbols Nerd Font ${toString style.font.size},${style.font.name} ${toString style.font.size} font=Symbols Nerd Font ${toString style.font.size},${style.font.name} ${toString style.font.size}
anchor=top-right anchor=top-right
on-notify=exec ${pkgs.mpv}/bin/mpv --volume=50 ~/.notify.wav on-notify=exec ${pkgs.mpv}/bin/mpv --volume=50 ~/.notify.wav
actions=1
icons=1
background-color=${bg} background-color=${bg}AA
text-color=${text} text-color=${text}
border-color=${primary} border-color=${primary}
progress-color=${primary} progress-color=${primary}
@ -39,7 +43,7 @@
border-color=${urgent} border-color=${urgent}
[urgency=high] [urgency=high]
background-color=${urgent} background-color=${urgent}AA
border-color=${urgent} border-color=${urgent}
text-color=${bg} text-color=${bg}
''; '';
@ -147,7 +151,7 @@
startup = [ startup = [
{command = "kdeconnect-indicator";} {command = "kdeconnect-indicator";}
# {command = "mako";} {command = "mako";}
{ {
command = "swaybg -i $HOME/.wallpaper"; command = "swaybg -i $HOME/.wallpaper";
} }

View file

@ -22,6 +22,7 @@ config.tab_bar_at_bottom = true
config.window_background_opacity = 1.0 config.window_background_opacity = 1.0
config.enable_kitty_keyboard = true config.enable_kitty_keyboard = true
config.show_new_tab_button_in_tab_bar = true config.show_new_tab_button_in_tab_bar = true
config.notification_handling = "SuppressFromFocusedTab"
-- config.front_end = "WebGpu" -- config.front_end = "WebGpu"
-- config.webgpu_power_preference = 'HighPerformance' -- config.webgpu_power_preference = 'HighPerformance'

View file

@ -116,7 +116,7 @@
libinput libinput
libinput-gestures libinput-gestures
libnotify libnotify
# mako mako
noto-fonts noto-fonts
pamixer pamixer
playerctl playerctl
@ -482,7 +482,6 @@
oils-for-unix oils-for-unix
watchexec watchexec
android-tools android-tools
kubectl
stern stern
libresprite libresprite
# logseq # logseq
@ -522,6 +521,17 @@
yubico-piv-tool yubico-piv-tool
]; ];
programs.direnv.mise = {
enable = true;
};
programs.mise = {
enable = true;
enableFishIntegration = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
programs.thunderbird = { programs.thunderbird = {
enable = true; enable = true;