diff --git a/.bashrc b/.bashrc index 00ef249..e714b39 100644 --- a/.bashrc +++ b/.bashrc @@ -62,3 +62,4 @@ function y() { eval "$(starship init bash)" fastfetch --logo-color-1 red --logo-color-2 red --color red -l ~/Dotfiles/pin.txt +. "$HOME/.cargo/env" diff --git a/desktopenvs/hyprland/eww/eww.yuck b/desktopenvs/hyprland/eww/eww.yuck index 1f0449a..846185d 100644 --- a/desktopenvs/hyprland/eww/eww.yuck +++ b/desktopenvs/hyprland/eww/eww.yuck @@ -26,7 +26,7 @@ (box :orientation "h" :space-evenly false :halign "start" (box :class "music" {"${battery}"}) (workspaceWidget :monitor monitor) - (box :class "music" {" ${activewindow}"}) + (box :onclick "scripts/windowswitcher" :class "music" {" ${activewindow}"}) (box :class "music" {"󰛳 ${IP}"}) ) ) diff --git a/desktopenvs/hyprland/eww/scripts/windowswitcher b/desktopenvs/hyprland/eww/scripts/windowswitcher new file mode 100755 index 0000000..2ca011b --- /dev/null +++ b/desktopenvs/hyprland/eww/scripts/windowswitcher @@ -0,0 +1,2 @@ +#!/bin/bash + hyprctl dispatch focuswindow address:"$(hyprctl -j clients | jq 'map("\(.workspace.id) ∴ \(.workspace.name) ┇ \(.title) ┇ \(.address)")' | sed "s/,$//; s/^\[//; s/^\]//; s/^[[:blank:]]*//; s/^\"//; s/\"$//" | grep -v "^$" | wofi -dO alphabetical | grep -o "0x.*$")" diff --git a/desktopenvs/hyprland/hypr-usr/binds.conf b/desktopenvs/hyprland/hypr-usr/binds.conf index 182c2ea..76bd1cb 100644 --- a/desktopenvs/hyprland/hypr-usr/binds.conf +++ b/desktopenvs/hyprland/hypr-usr/binds.conf @@ -9,6 +9,7 @@ $terminal = kitty $fileManager = kitty -e yazi $editor = kitty micro $menu = wofi --show=drun +$winswitch = hyprctl dispatch focuswindow address:"$(hyprctl -j clients | jq 'map("\(.workspace.id) ∴ \(.workspace.name) ┇ \(.title) ┇ \(.address)")' | sed "s/,$//; s/^\[//; s/^\]//; s/^[[:blank:]]*//; s/^\"//; s/\"$//" | grep -v "^$" | wofi -dO alphabetical | grep -o "0x.*$")" #################### ### KEYBINDINGSS ### @@ -117,6 +118,7 @@ binde = $mainMod, XF86AudioMute, togglespecialworkspace, magic binde = $mainMod SHIFT, XF86AudioMute, movetoworkspace, special:magic bind = $mainMod, TAB, cyclenext +bind = $mainMod SHIFT, TAB, exec, $winswitch bind = $mainMod ALT CTRL SHIFT, END, exit diff --git a/nvim/init.vim b/nvim/init.vim index 14d053c..c4a2ee0 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -11,6 +11,7 @@ Plug 'junegunn/fzf.vim' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'voldikss/vim-floaterm' +Plug 'rust-lang/rust.vim' call plug#end() colorscheme cyberqueer let g:airline_powerline_fonts = 1 @@ -22,6 +23,9 @@ set number set cursorline set cursorcolumn +syntax enable +filetype plugin indent on + " Set shift width to 4 spaces. set shiftwidth=4