Add rofi lecture picker + fix double keybinding
This commit is contained in:
@ -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
|
||||
|
15
config/rofi/menus/lectures.fish
Executable file
15
config/rofi/menus/lectures.fish
Executable file
@ -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
|
Reference in New Issue
Block a user