diff --git a/config/hyprland/hyprland.conf b/config/hyprland/hyprland.conf index 9f508d9d..ebcbda92 100644 --- a/config/hyprland/hyprland.conf +++ b/config/hyprland/hyprland.conf @@ -166,14 +166,15 @@ $mainMod = SUPER bind = $mainMod, Q, killactive bind = $mainMod, V, togglefloating bind = $mainMod, F, fullscreen -bind = $mainMod, C, exec, clipman pick --tool=rofi --tool-args="-theme ~/NixFlake/config/rofi/rofi.rasi" # TODO: Theme + Generate this in a include file from nixos, depending on the menu option +bind = $mainMod, V, exec, clipman pick --tool=rofi --tool-args="-theme ~/NixFlake/config/rofi/rofi.rasi" # TODO: Theme + Generate this in a include file from nixos, depending on the menu option # Rofi bind = $mainMod, A, exec, rofi -show drun -theme ~/NixFlake/config/rofi/rofi.rasi bind = $mainMod, R, exec, rofi -show run -theme ~/NixFlake/config/rofi/rofi.rasi bind = $mainMod, B, exec, rofi -show filebrowser -theme ~/NixFlake/config/rofi/rofi.rasi bind = $mainMod, D, exec, ~/NixFlake/config/rofi/menus/systemd-podman.fish -bind = $mainMod, P, exec, ~/NixFlake/config/rofi/menus/power.fish +bind = $mainMod, escape, exec, ~/NixFlake/config/rofi/menus/power.fish +bind = $mainMod, L, exec, ~/NixFlake/config/rofi/menus/lectures.fish # Launch apps bind = $mainMod, T, exec, kitty diff --git a/config/rofi/menus/lectures.fish b/config/rofi/menus/lectures.fish new file mode 100755 index 00000000..2397e8b3 --- /dev/null +++ b/config/rofi/menus/lectures.fish @@ -0,0 +1,15 @@ +#!/usr/bin/env fish + +# User chooses lecture +set LECTURE (exa -1 -D ~/Notes/TU | rofi -theme ~/NixFlake/config/rofi/rofi.rasi -dmenu -p "lecture" -i) +if test -z $LECTURE + exit +end + +# User chooses slides +set DECK (exa -1 ~/Notes/TU/$LECTURE/Lecture | grep ".pdf" | rofi -theme ~/NixFlake/config/rofi/rofi.rasi -dmenu -p "deck" -i) +if test -z $DECK + exit +end + +xdg-open ~/Notes/TU/$LECTURE/Lecture/$DECK