diff --git a/.config/hypr b/.config/hypr index b5a73c5c..16b266ca 160000 --- a/.config/hypr +++ b/.config/hypr @@ -1 +1 @@ -Subproject commit b5a73c5cacadb9346fc4e3bd613b154c8d5ea299 +Subproject commit 16b266ca1c16865530008858f3b389b409c353ef diff --git a/.config/otter-launcher/config.toml b/.config/otter-launcher/config.toml index 35c978a2..ce834ffb 100644 --- a/.config/otter-launcher/config.toml +++ b/.config/otter-launcher/config.toml @@ -49,31 +49,21 @@ chafa -s 20x20 ~/.config/otter-launcher/cat.png """ overlay_trimmed_lines = 1 - -# modules are defined as followed -[[modules]] -description = "google search" -prefix = "gg" -cmd = "firefox --new-window https://www.google.com/search?q='{}'" -with_argument = true # if true, {} in cmd will be replaced with user input. if not explicitly set, taken as false. -url_encode = true # should be true when calling webpages; this ensures special characters in url being readable to browsers; taken as false if not explicitly set -unbind_proc = true # run cmd in a forked shell as opposed to as a child process (simply by prepending setsid -f to the configured cmd); useful for launching gui programs; taken as false if not explicitly set - [[modules]] description = "programs" prefix = "app" cmd = """ -hyprctl dispatch resizeactive 300 500 && -hyprctl dispatch centerwindow && -hyprctl dispatch exec $(fsel --no-exec) +hyprctl dispatch 'hl.dsp.window.resize({x = 700, y = 700, window = activewindow})' && +hyprctl dispatch 'hl.dsp.window.center({window = activewindow})'&& +hyprctl dispatch "hl.dsp.exec_cmd('$(fsel --no-exec)')" """ [[modules]] description = "bluetooth" prefix = "bl" cmd = """ -hyprctl dispatch resizeactive 300 250 && -hyprctl dispatch centerwindow && +hyprctl dispatch 'hl.dsp.window.resize({x = 650, y = 400, window = activewindow})' && +hyprctl dispatch 'hl.dsp.window.center({window = activewindow})'&& bluetui """ @@ -81,32 +71,13 @@ bluetui description = "nerd icons" prefix = "nerd" cmd = """ -hyprctl dispatch resizeactive 300 500 && -hyprctl dispatch centerwindow && -hyprctl dispatch exec wl-copy $(cat ~/.config/otter-launcher/icons.json | jq -r '. | to_entries[] | "\\(.value.char) \\(.key)"' | fzf | awk '{print $1}' | tr -d '\n') -""" - -[[modules]] -description = "command" -prefix = "sh" -cmd = """ -hyprctl dispatch exec 'kitty -e zsh -c "{}"' -""" -with_argument = true -unbind_proc = true - -[[modules]] -description = "notes" -prefix = "n" -cmd = """ -hyprctl dispatch exec "kitty -e nvim --cmd 'cd ~/Notes/'" """ [[modules]] description = "nixos wiki" prefix = "nw" cmd = """ -hyprctl dispatch exec "firefox --new-window 'https://wiki.nixos.org/w/index.php?search={}'" +hyprctl dispatch "hl.dsp.exec_cmd('firefox --new-window https://wiki.nixos.org/w/index.php?search={}')" """ with_argument = true url_encode = true @@ -116,17 +87,7 @@ unbind_proc = true description = "nixpkgs" prefix = "nix" cmd = """ -hyprctl dispatch exec "firefox --new-window 'https://search.nixos.org/packages?query={}'" -""" -with_argument = true -url_encode = true -unbind_proc = true - -[[modules]] -description = "dict" -prefix = "dc" -cmd = """ -hyprctl dispatch exec "firefox --new-window 'https://dictionary.cambridge.org/dictionary/english/{}'" +hyprctl dispatch "hl.dsp.exec_cmd('firefox --new-window https://search.nixos.org/packages?query={}')" """ with_argument = true url_encode = true @@ -136,22 +97,24 @@ unbind_proc = true description = "open folder" prefix = "path" cmd = """ -hyprctl dispatch resizeactive 300 500 && -hyprctl dispatch centerwindow & -hyprctl dispatch exec thunar $(find . -maxdepth 2 -type d | fzf) +hyprctl dispatch 'hl.dsp.window.resize({x = 700, y = 700, window = activewindow})' && +hyprctl dispatch 'hl.dsp.window.center({window = activewindow})'&& +hyprctl dispatch "hl.dsp.exec_cmd('nemo $(find . -maxdepth 2 -type d | fzf)')" """ [[modules]] description = "jellyfin" prefix = "jf" cmd = """ -hyprctl dispatch exec '[workspace special:music]' 'kitty --class jf-tui -e jellyfin-tui' +hyprctl dispatch 'hl.dsp.exec_cmd("kitty --class jf-tui -e jellyfin-tui", {workspace = "special:music"})' """ [[modules]] description = "youtube" prefix = "y" -cmd = "hyprctl dispatch exec 'firefox --new-window https://www.youtube.com'" +cmd = """ +hyprctl dispatch "hl.dsp.exec_cmd('firefox --new-window https://www.youtube.com')" +""" with_argument = false url_encode = true unbind_proc = true @@ -159,7 +122,9 @@ unbind_proc = true [[modules]] description = "whatsapp" prefix = "w" -cmd = "hyprctl dispatch exec 'firefox --new-window https://web.whatsapp.com'" +cmd = """ +hyprctl dispatch "hl.dsp.exec_cmd('firefox --new-window https://web.whatsapp.com')" +""" with_argument = false url_encode = true unbind_proc = true diff --git a/.nixos b/.nixos index 3c836758..2f714213 160000 --- a/.nixos +++ b/.nixos @@ -1 +1 @@ -Subproject commit 3c836758af0fd596cbbc89dbf4a369820e825e0d +Subproject commit 2f7142135fc4df3abb59b8bb6f5f9b63270d1aac