From e92c55a8065072e71559bb527584dd401033a036 Mon Sep 17 00:00:00 2001 From: The_miro Date: Mon, 18 Nov 2024 23:46:30 +0100 Subject: [PATCH] figured out how to open in shell --- .zshrc | 1 + desktopenvs/hyprland/dunst/dunst | 1 + desktopenvs/hyprland/hypr/hyprland.conf | 5 ++--- desktopenvs/hyprland/kitty/kitty | 1 + desktopenvs/hyprland/waybar/waybar | 1 + desktopenvs/hyprland/wofi/wofi | 1 + micro/micro | 1 + yazi/keymap.toml | 7 ++++++- yazi/yazi.toml | 2 ++ zshplugins.sh | 4 ++++ 10 files changed, 20 insertions(+), 4 deletions(-) mode change 100644 => 100755 .zshrc create mode 120000 desktopenvs/hyprland/dunst/dunst create mode 120000 desktopenvs/hyprland/kitty/kitty create mode 120000 desktopenvs/hyprland/waybar/waybar create mode 120000 desktopenvs/hyprland/wofi/wofi create mode 120000 micro/micro create mode 100644 zshplugins.sh diff --git a/.zshrc b/.zshrc old mode 100644 new mode 100755 index 2ae3491..01b83f5 --- a/.zshrc +++ b/.zshrc @@ -138,6 +138,7 @@ function y() { rm -f -- "$tmp" } + eval "$(starship init zsh)" fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt diff --git a/desktopenvs/hyprland/dunst/dunst b/desktopenvs/hyprland/dunst/dunst new file mode 120000 index 0000000..5b21566 --- /dev/null +++ b/desktopenvs/hyprland/dunst/dunst @@ -0,0 +1 @@ +/home/themiro/Dotfiles/desktopenvs/hyprland/dunst/ \ No newline at end of file diff --git a/desktopenvs/hyprland/hypr/hyprland.conf b/desktopenvs/hyprland/hypr/hyprland.conf index 4360402..d73aa03 100644 --- a/desktopenvs/hyprland/hypr/hyprland.conf +++ b/desktopenvs/hyprland/hypr/hyprland.conf @@ -1,4 +1,3 @@ - # ####################################################################################### # AUTOGENERATED HYPR CONFIG. # PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, @@ -53,7 +52,7 @@ env = XCURSOR_SIZE,32 # Set programs that you use $terminal = kitty -$fileManager = kitty zsh y +$fileManager = kitty -e yazi $editor = kitty micro $menu = wofi @@ -174,7 +173,7 @@ input { kb_model = kb_options = kb_rules = - left_handed = true + #left_handed = true follow_mouse = 1 sensitivity = 0 # -1.0 - 1.0, 0 means no modification. diff --git a/desktopenvs/hyprland/kitty/kitty b/desktopenvs/hyprland/kitty/kitty new file mode 120000 index 0000000..a2145b4 --- /dev/null +++ b/desktopenvs/hyprland/kitty/kitty @@ -0,0 +1 @@ +/home/themiro/Dotfiles/desktopenvs/hyprland/kitty/ \ No newline at end of file diff --git a/desktopenvs/hyprland/waybar/waybar b/desktopenvs/hyprland/waybar/waybar new file mode 120000 index 0000000..3d2635e --- /dev/null +++ b/desktopenvs/hyprland/waybar/waybar @@ -0,0 +1 @@ +/home/themiro/Dotfiles/desktopenvs/hyprland/waybar/ \ No newline at end of file diff --git a/desktopenvs/hyprland/wofi/wofi b/desktopenvs/hyprland/wofi/wofi new file mode 120000 index 0000000..526ebf3 --- /dev/null +++ b/desktopenvs/hyprland/wofi/wofi @@ -0,0 +1 @@ +/home/themiro/Dotfiles/desktopenvs/hyprland/wofi/ \ No newline at end of file diff --git a/micro/micro b/micro/micro new file mode 120000 index 0000000..fc263d1 --- /dev/null +++ b/micro/micro @@ -0,0 +1 @@ +/home/themiro/Dotfiles/micro/ \ No newline at end of file diff --git a/yazi/keymap.toml b/yazi/keymap.toml index 8baed1b..fe7a964 100644 --- a/yazi/keymap.toml +++ b/yazi/keymap.toml @@ -2,6 +2,11 @@ # If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas. "$schema" = "https://yazi-rs.github.io/schemas/keymap.json" +[[manager.prepend_keymap]] +on = "z" +run = 'shell "$SHELL" --block --confirm' +desc = "Open shell here" + [manager] keymap = [ @@ -69,9 +74,9 @@ keymap = [ { on = "s", run = "search fd", desc = "Search files by name using fd" }, { on = "S", run = "search rg", desc = "Search files by content using ripgrep" }, { on = "", run = "escape --search", desc = "Cancel the ongoing search" }, - { on = "z", run = "plugin zoxide", desc = "Jump to a directory using zoxide" }, { on = "Z", run = "plugin fzf", desc = "Jump to a directory or reveal a file using fzf" }, + # Linemode { on = [ "m", "s" ], run = "linemode size", desc = "Set linemode to size" }, { on = [ "m", "p" ], run = "linemode permissions", desc = "Set linemode to permissions" }, diff --git a/yazi/yazi.toml b/yazi/yazi.toml index f930866..1a04617 100644 --- a/yazi/yazi.toml +++ b/yazi/yazi.toml @@ -14,5 +14,7 @@ inkscape = [ [open] prepend_rules = [ { name = "*.svg", use = "inkscape" }, + { name = "*/", use = "kitty" }, + ] diff --git a/zshplugins.sh b/zshplugins.sh new file mode 100644 index 0000000..962423b --- /dev/null +++ b/zshplugins.sh @@ -0,0 +1,4 @@ +#ohmyzsh plugins +echo "Installing oh my zsh plugins" +git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions