added windowswitcher

main
The_miro 2025-03-29 15:31:09 +01:00
parent 0b61468412
commit 6b0a91fb24
5 changed files with 10 additions and 1 deletions

View File

@ -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"

View File

@ -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}"})
)
)

View File

@ -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.*$")"

View File

@ -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

View File

@ -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