Updates
This commit is contained in:
@@ -241,7 +241,7 @@ bindd = SUPER, RETURN, Terminal, exec, uwsm-app -- xdg-terminal-exec # --dir="$(
|
|||||||
# bindd = SUPER ALT, RETURN, Tmux, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)" tmux new
|
# bindd = SUPER ALT, RETURN, Tmux, exec, uwsm-app -- xdg-terminal-exec --dir="$(omarchy-cmd-terminal-cwd)" tmux new
|
||||||
# bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window
|
# bindd = SUPER SHIFT, F, File manager, exec, uwsm-app -- nautilus --new-window
|
||||||
# bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)"
|
# bindd = SUPER ALT SHIFT, F, File manager (cwd), exec, uwsm-app -- nautilus --new-window "$(omarchy-cmd-terminal-cwd)"
|
||||||
# bindd = SUPER SHIFT, B, Browser, exec, omarchy-launch-browser
|
bindd = SUPER SHIFT, B, Browser, exec, station-launch-browser
|
||||||
# bindd = SUPER SHIFT ALT, B, Browser (private), exec, omarchy-launch-browser --private
|
# bindd = SUPER SHIFT ALT, B, Browser (private), exec, omarchy-launch-browser --private
|
||||||
# bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
|
# bindd = SUPER SHIFT, M, Music, exec, omarchy-launch-or-focus spotify
|
||||||
# bindd = SUPER SHIFT, N, Editor, exec, omarchy-launch-editor
|
# bindd = SUPER SHIFT, N, Editor, exec, omarchy-launch-editor
|
||||||
|
|||||||
Submodule .config/nvim updated: cc7139c2ff...6f74961fc6
17
.local/bin/station-launch-browser
Executable file
17
.local/bin/station-launch-browser
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#! bash
|
||||||
|
|
||||||
|
# Launch the default browser as determined by xdg-settings.
|
||||||
|
# Automatically converts --private into the correct flag for the given browser.
|
||||||
|
|
||||||
|
default_browser=$(xdg-settings get default-web-browser)
|
||||||
|
browser_exec=$(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,~/.nix-profile,/usr}/share/applications/$default_browser 2>/dev/null | head -1)
|
||||||
|
|
||||||
|
if $browser_exec --help | grep -q MOZ_LOG; then
|
||||||
|
private_flag="--private-window"
|
||||||
|
elif [[ $browser_exec =~ edge ]]; then
|
||||||
|
private_flag="--inprivate"
|
||||||
|
else
|
||||||
|
private_flag="--incognito"
|
||||||
|
fi
|
||||||
|
|
||||||
|
exec setsid uwsm-app -- "$browser_exec" "${@/--private/$private_flag}"
|
||||||
Reference in New Issue
Block a user