fuzzel conf and scripts

This commit is contained in:
2025-07-09 06:59:04 +03:00
parent 0bdc797e98
commit 44471d2877
5 changed files with 197 additions and 16 deletions

7
config
View File

@@ -162,9 +162,6 @@ bindsym $mod+Shift+Return exec xdg-open http://
## Launch // Application // <> Space ##
bindsym $mod+space exec $menu
## Launch // Command // <><Shift> Space ##
bindsym $mod+Shift+space exec $term
## Navigate // Window by Name // <><Ctrl> Space ##
bindsym $mod+Ctrl+space exec swaymsg -t get_tree | jq -r '..|select(.pid? and .visible?)|.name+" ["+.app_id+"]"' | fuzzel --dmenu | xargs -I {} swaymsg '[title="{}"] focus'
@@ -482,10 +479,10 @@ bar {
separator #666666
# border backgr. text
focused_workspace #ffffff #000000 #ffffff
focused_workspace #000000 #ffffff #000000
active_workspace #000000 #000000 #ffffff
inactive_workspace #000000 #000000 #ffffff
urgent_workspace #000000 #000000 #ffffff
urgent_workspace #000000 #ff0000 #000000
}
}

View File

@@ -0,0 +1,117 @@
# output=<not set>
font=monospace:size=10
# dpi-aware=auto
# use-bold=no
# prompt="> "
# placeholder=
# icon-theme=default
# icons-enabled=yes
# hide-before-typing=no
# fields=filename,name,generic
# password-character=*
# filter-desktop=no
# match-mode=fzf
# sort-result=yes
# match-counter=no
# delayed-filter-ms=300
# delayed-filter-limit=20000
# show-actions=no
# terminal=$TERMINAL -e # Note: you cannot actually use environment variables here
# launch-prefix=<not set>
# list-executables-in-path=no
# anchor=center
# x-margin=0
# y-margin=0
# lines=15
# minimal-lines=no
width=35
# tabs=8
horizontal-pad=10
vertical-pad=10
inner-pad=10
# scaling-filter=box
# image-size-ratio=0.5
# gamma-correct-blending=no
# line-height=<use font metrics>
# letter-spacing=0
# layer=overlay
# keyboard-focus=exclusive
# exit-on-keyboard-focus-loss=yes
# cache=<not set>
# render-workers=<number of logical CPUs>
# match-workers=<number of logical CPUs>
[colors]
background=1e1e2edd
text=cdd6f4ff
prompt=bac2deff
placeholder=7f849cff
input=cdd6f4ff
match=89dcebff
selection=585b70ff
selection-text=cdd6f4ff
selection-match=89dcebff
counter=7f849cff
border=89dcebff
[border]
width=2
radius=3
[key-bindings]
# cancel=Escape Control+g Control+c Control+bracketleft
# execute=Return KP_Enter Control+y
# execute-or-next=Tab
# execute-input=Shift+Return Shift+KP_Enter
# cursor-left=Left Control+b
# cursor-left-word=Control+Left Mod1+b
# cursor-right=Right Control+f
# cursor-right-word=Control+Right Mod1+f
# cursor-home=Home Control+a
# cursor-end=End Control+e
# delete-line=Control+Shift+BackSpace
# delete-prev=BackSpace Control+h
# delete-prev-word=Mod1+BackSpace Control+BackSpace Control+w
# delete-line-backward=Control+u
# delete-next=Delete KP_Delete Control+d
# delete-next-word=Mod1+d Control+Delete Control+KP_Delete
# delete-line-forward=Control+k
# prev=Up Control+p
# prev-with-wrap=ISO_Left_Tab
# prev-page=Page_Up KP_Page_Up
# next=Down Control+n
# next-with-wrap=none
# next-page=Page_Down KP_Page_Down
# expunge=Shift+Delete
# clipboard-paste=Control+v XF86Paste
# primary-paste=Shift+Insert Shift+KP_Insert
# custom-N: *dmenu mode only*. Like execute, but with a non-zero
# exit-code; custom-1 exits with code 10, custom-2 with 11, custom-3
# with 12, and so on.
# custom-1=Mod1+1
# custom-2=Mod1+2
# custom-3=Mod1+3
# custom-4=Mod1+4
# custom-5=Mod1+5
# custom-6=Mod1+6
# custom-7=Mod1+7
# custom-8=Mod1+8
# custom-9=Mod1+9
# custom-10=Mod1+0
# custom-11=Mod1+exclam
# custom-12=Mod1+at
# custom-13=Mod1+numbersign
# custom-14=Mod1+dollar
# custom-15=Mod1+percent
# custom-16=Mod1+dead_circumflex
# custom-17=Mod1+ampersand
# custom-18=Mod1+asterix
# custom-19=Mod1+parentleft

View File

@@ -5,22 +5,89 @@
set -e
echo "Installing dotfiles..."
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color
# Function for colored output
print_status() {
echo -e "${BLUE}[INFO]${NC} $1"
}
print_success() {
echo -e "${GREEN}[SUCCESS]${NC} $1"
}
print_warning() {
echo -e "${YELLOW}[WARNING]${NC} $1"
}
print_error() {
echo -e "${RED}[ERROR]${NC} $1"
}
echo -e "${PURPLE}================================${NC}"
echo -e "${PURPLE} Arch Linux Dotfiles Installer${NC}"
echo -e "${PURPLE}================================${NC}"
echo ""
print_status "Starting dotfiles installation..."
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
print_status "Script directory: $SCRIPT_DIR"
# Copy .zshrc to home directory
echo "Copying .zshrc to home directory..."
cp "$SCRIPT_DIR/.zshrc" ~/.zshrc
echo ""
print_status "Installing .zshrc configuration..."
if cp "$SCRIPT_DIR/.zshrc" ~/.zshrc; then
print_success ".zshrc installed to ~/.zshrc"
else
print_error "Failed to copy .zshrc"
exit 1
fi
# Copy .p10k.zsh to home directory
echo "Copying .p10k.zsh to home directory..."
cp "$SCRIPT_DIR/.p10k.zsh" ~/.p10k.zsh
echo "Dotfiles installation complete!"
echo ""
echo "Next steps:"
echo "1. Restart your terminal or run 'source ~/.zshrc'"
echo "2. Powerlevel10k configuration has been copied - no need to run 'p10k configure'"
echo "3. If you haven't already, run the install-arch-dotfiles-requirements.sh script first"
print_status "Installing Powerlevel10k configuration..."
if cp "$SCRIPT_DIR/.p10k.zsh" ~/.p10k.zsh; then
print_success ".p10k.zsh installed to ~/.p10k.zsh"
else
print_error "Failed to copy .p10k.zsh"
exit 1
fi
# === FUZZEL CONFIG ===
# Comment out this section if you don't want fuzzel configuration
echo ""
print_status "Installing fuzzel configuration..."
if mkdir -p ~/.config/fuzzel; then
print_success "Created fuzzel config directory"
else
print_error "Failed to create fuzzel config directory"
exit 1
fi
if cp "$SCRIPT_DIR/.config/fuzzel/fuzzel.ini" ~/.config/fuzzel/fuzzel.ini; then
print_success "Fuzzel config installed to ~/.config/fuzzel/fuzzel.ini"
else
print_warning "Failed to copy fuzzel config - file may not exist"
fi
echo ""
echo -e "${CYAN}================================${NC}"
echo -e "${CYAN} Installation Complete! 🎉${NC}"
echo -e "${CYAN}================================${NC}"
echo ""
print_status "Next steps:"
echo -e " ${YELLOW}1.${NC} Restart your terminal or run 'source ~/.zshrc'"
echo -e " ${YELLOW}2.${NC} Powerlevel10k configuration has been copied - no need to run 'p10k configure'"
echo -e " ${YELLOW}3.${NC} If you haven't already, run the install-arch-dotfiles-requirements.sh script first"
echo ""
print_warning "Note: Make sure you have installed the required dependencies first!"