Compare commits

...

3 commits

5 changed files with 37 additions and 19 deletions

View file

@ -19,7 +19,7 @@ in
./wlogout.nix ./wlogout.nix
# ./swappy.nix # ./swappy.nix
./alacritty.nix ./alacritty.nix
./swayosd.nix ./audio.nix
./sway-notification-center.nix ./sway-notification-center.nix
./ntfy-sh.nix ./ntfy-sh.nix
]; ];

View file

@ -91,7 +91,6 @@ in
''$mod, RETURN, exec, footclient'' ''$mod, RETURN, exec, footclient''
"$mod, E, exec, thunar" "$mod, E, exec, thunar"
"$mod, B, exec, microsoft-edge" "$mod, B, exec, microsoft-edge"
"$mod, D, exec, rofi -show drun -replace -i"
"$mod, BackSpace, exec, wlogout" "$mod, BackSpace, exec, wlogout"
''$mod, F, exec, ${select-window.path}'' ''$mod, F, exec, ${select-window.path}''
"$mod, W, exec, pypr wall next" "$mod, W, exec, pypr wall next"
@ -151,24 +150,11 @@ in
"$mod, mouse:272, movewindow" "$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow" "$mod, mouse:273, resizewindow"
]; ];
# e -> repeat, will repeat when held.
# l -> even when locked
bindel = [
# Media
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise --max-volume 150"
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower --max-volume 150"
# Light
", XF86MonBrightnessUp, exec, swayosd-client --brightness +10"
", XF86MonBrightnessDown, exec, swayosd-client --brightness -10"
];
bindl = [ bindl = [
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
", XF86AudioPlay, exec, playerctl play-pause" ", XF86AudioPlay, exec, playerctl play-pause"
", XF86AudioPause, exec, playerctl pause" ", XF86AudioPause, exec, playerctl pause"
", XF86AudioNext, exec, playerctl next" ", XF86AudioNext, exec, playerctl next"
", XF86AudioPrev, exec, playerctl previous" ", XF86AudioPrev, exec, playerctl previous"
", XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
", XF86Calculator, exec, qalculate-gtk" ", XF86Calculator, exec, qalculate-gtk"
]; ];

View file

@ -12,5 +12,9 @@ in
source = ./rofi; source = ./rofi;
recursive = true; recursive = true;
}; };
wayland.windowManager.hyprland.settings.bind = [
"$mod, D, exec, rofi -show drun -replace -i"
];
}; };
} }

View file

@ -12,9 +12,26 @@ in
swayosd swayosd
]; ];
wayland.windowManager.hyprland.settings.exec-once = [ wayland.windowManager.hyprland.settings = {
"swayosd-libinput-backend" exec-once = [
"swayosd-server" "swayosd-libinput-backend"
]; "swayosd-server"
];
bindl = [
", XF86AudioMute, exec, swayosd-client --output-volume mute-toggle"
", XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle"
];
# e -> repeat, will repeat when held.
# l -> even when locked
bindel = [
# Media
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise --max-volume 150"
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower --max-volume 150"
# Light
", XF86MonBrightnessUp, exec, swayosd-client --brightness +10"
", XF86MonBrightnessDown, exec, swayosd-client --brightness -10"
];
};
}; };
} }

View file

@ -39,6 +39,17 @@ in
}; };
services.caddy.virtualHosts."couchdb.tigor.web.id".extraConfig = '' services.caddy.virtualHosts."couchdb.tigor.web.id".extraConfig = ''
@obsidian header Origin "app://obsidian.md"
header @obsidian {
Access-Control-Allow-Origin "app://obsidian.md"
Access-Control-Allow-Methods "OPTIONS,HEAD,GET,POST,PUT,PATCH,DELETE"
Access-Control-Allow-Credentials "true"
Access-Control-Allow-Headers "Authorization,Content-Type"
defer
}
@options method OPTIONS
respond @options 204
reverse_proxy localhost:5984 reverse_proxy localhost:5984
''; '';