made otter work on new hyprland and also added hyprland in the first place
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user