From 8496501f885099a100b80d8f4f136fbab1a919ae Mon Sep 17 00:00:00 2001 From: hesam-init Date: Tue, 12 Mar 2024 17:39:50 +0330 Subject: [PATCH] feat: package list required for system apps --- configs/hyprland/hypr/conf/rules/windows.conf | 4 ++- configs/hyprland/mimeapps.list | 1 + configs/zsh/.zsh/aliases/dir.zsh | 2 ++ configs/zsh/.zsh/aliases/git.zsh | 17 +++++++++++ configs/zsh/.zsh/aliases/index.zsh | 28 ++++++------------- configs/zsh/.zshrc | 2 +- guides/system-apps.md | 4 +-- scripts/pkgs-installer.sh | 5 ++-- 8 files changed, 37 insertions(+), 26 deletions(-) create mode 100644 configs/zsh/.zsh/aliases/dir.zsh create mode 100644 configs/zsh/.zsh/aliases/git.zsh diff --git a/configs/hyprland/hypr/conf/rules/windows.conf b/configs/hyprland/hypr/conf/rules/windows.conf index 66e897c..7402d3b 100644 --- a/configs/hyprland/hypr/conf/rules/windows.conf +++ b/configs/hyprland/hypr/conf/rules/windows.conf @@ -6,7 +6,9 @@ windowrulev2 = bordercolor rgb(FF0000) rgb(880808) 15deg,fullscreen:1 # global rules: windowrulev2 = animation popin,class:^(alacritty|Alacritty|pavucontrol|org.kde.polkit-kde-authentication-agent-1)$ -windowrulev2 = float,class:^(pavucontrol|wlogout|dunst|Dunst|org.kde.polkit-kde-authentication-agent-1)$ +windowrulev2 = float,class:^(nemo|pavucontrol|wlogout|dunst|Dunst|org.kde.polkit-kde-authentication-agent-1)$ +windowrulev2 = size 65%,class:^(nemo)$ +windowrulev2 = center,class:^(nemo)$ # bluetooth managers rules : windowrulev2 = float, class:^(blueman-manager)$ diff --git a/configs/hyprland/mimeapps.list b/configs/hyprland/mimeapps.list index 996a119..35262c4 100644 --- a/configs/hyprland/mimeapps.list +++ b/configs/hyprland/mimeapps.list @@ -12,6 +12,7 @@ application/x-extension-xht=userapp-Firefox-Q5DTJ2.desktop video/mp4=vlc.desktop application/pdf=org.gnome.Evince.desktop image/png=org.gnome.eog.desktop +inode/directory=nemo.desktop [Added Associations] x-scheme-handler/http=userapp-Firefox-QKWUJ2.desktop;userapp-Firefox-Q5DTJ2.desktop; diff --git a/configs/zsh/.zsh/aliases/dir.zsh b/configs/zsh/.zsh/aliases/dir.zsh new file mode 100644 index 0000000..96ef691 --- /dev/null +++ b/configs/zsh/.zsh/aliases/dir.zsh @@ -0,0 +1,2 @@ +alias dotfiles="cd $DOTFILES && ls" +alias projects="cd $HOME/Code && ls" diff --git a/configs/zsh/.zsh/aliases/git.zsh b/configs/zsh/.zsh/aliases/git.zsh new file mode 100644 index 0000000..69a2e12 --- /dev/null +++ b/configs/zsh/.zsh/aliases/git.zsh @@ -0,0 +1,17 @@ +alias lg="lazygit" +alias gst="git status" +alias gb="git branch" +alias gc="git checkout" +alias gl="git log --oneline --decorate --color" +alias amend="git add . && git commit --amend --no-edit" +alias commit="git add . && git commit -m" +alias diff="git diff" +alias force="git push --force" +alias nuke="git clean -df && git reset --hard" +alias pop="git stash pop" +alias pull="git pull" +alias push="git push" +alias resolve="git add . && git commit --no-edit" +alias stash="git stash -u" +alias unstage="git restore --staged ." +alias wip="commit wip" diff --git a/configs/zsh/.zsh/aliases/index.zsh b/configs/zsh/.zsh/aliases/index.zsh index 3ddff9a..06748cc 100644 --- a/configs/zsh/.zsh/aliases/index.zsh +++ b/configs/zsh/.zsh/aliases/index.zsh @@ -1,8 +1,9 @@ +source ~/.zsh/aliases/dir.zsh +source ~/.zsh/aliases/git.zsh + alias fclean="flatpak uninstall --unused --delete-data" alias fdir="cd $HOME/.var/app && ls" -alias dotfiles="cd $DOTFILES && ls" -alias projects="cd $HOME/Code && ls" alias grub-path="cd /etc/default" alias z="zellij" @@ -13,7 +14,6 @@ alias snk="sudo $NEKORAY_PATH" alias vscode="$CODE_PATH --no-sandbox" alias steam="steam -forcedesktopscaling=1" alias serve="miniserve -z" -alias fl="eza --header -l" alias myip="curl "http://ip-api.com/json/" | pp_json" alias reloadshell="omz reload" alias yo="echo '¯\_(ツ)_/¯'" @@ -23,20 +23,8 @@ alias dsu="dust -d 1 -b" alias edit-dns="sudo nano /etc/resolv.conf" alias dns-changer="sudo $DNS_CHANGER" -alias lg="lazygit" -alias gst="git status" -alias gb="git branch" -alias gc="git checkout" -alias gl="git log --oneline --decorate --color" -alias amend="git add . && git commit --amend --no-edit" -alias commit="git add . && git commit -m" -alias diff="git diff" -alias force="git push --force" -alias nuke="git clean -df && git reset --hard" -alias pop="git stash pop" -alias pull="git pull" -alias push="git push" -alias resolve="git add . && git commit --no-edit" -alias stash="git stash -u" -alias unstage="git restore --staged ." -alias wip="commit wip" +alias lt="eza --header --icons -l" +alias lf="eza -lF --color=always" +alias ld="eza -lD --header" +alias lh="eza -dl .* --group-directories-first" +alias ll="eza -al --group-directories-first" diff --git a/configs/zsh/.zshrc b/configs/zsh/.zshrc index 5c48ad6..6c6a46f 100644 --- a/configs/zsh/.zshrc +++ b/configs/zsh/.zshrc @@ -20,4 +20,4 @@ source $ZSH/oh-my-zsh.sh source ~/.zsh/aliases/index.zsh source ~/.zsh/functions/index.zsh -# eval "$(atuin init zsh)" +eval "$(atuin init zsh)" diff --git a/guides/system-apps.md b/guides/system-apps.md index 5351860..33485fe 100644 --- a/guides/system-apps.md +++ b/guides/system-apps.md @@ -5,7 +5,6 @@ Enhance your productivity on Void Linux with these curated applications: ## Terminal and Shell Tools - **alacritty**: Modern GPU-accelerated terminal emulator. - **zellij**: Tmux-like terminal workspace manager. -- **octoxbps**: Graphical package manager for XBPS. - **neofetch**: Visually appealing system information display. - **fzf**: Command-line fuzzy finder. - **bat**: Better cat replacement. @@ -15,9 +14,10 @@ Enhance your productivity on Void Linux with these curated applications: - [**atuin**](https://docs.atuin.sh/guide/installation/): Command-line history with search. ## Desktop Utilities -- **fontmanager**: Simplifies font management. - **nemo**: User-friendly file manager. - **eog**: Eye of gnome a nice image viewer. +- **octoxbps**: Graphical package manager for XBPS. +- **fontmanager**: Simplifies font management. - **pavucontrol**: Graphical audio settings manager. - **gnome-system-monitor**: Graphical system resource monitor. - **hardinfo**: Hardware info. diff --git a/scripts/pkgs-installer.sh b/scripts/pkgs-installer.sh index 83f95a0..cad5ce4 100755 --- a/scripts/pkgs-installer.sh +++ b/scripts/pkgs-installer.sh @@ -5,9 +5,10 @@ CLEAR_CACHE=false DISABLE_GRUB_MENU=false declare -A PACKAGES=( - ["BASE_PACKAGES"]="git stow dbus seatd elogind polkit NetworkManager gnome-keyring polkit-gnome mesa-dri pipewire wireplumber inotify-tools void-repo-multilib void-repo-nonfree wpa_supplicant wifish wpa-cute wpa_gui xorg gnome-keyring polkit-gnome mtpfs inotify-tools ffmpeg libnotify git base-devel" - ["HYPRLAND_PACKAGES"]="Waybar rofi avizo dunst swaybg mpvpaper grim jq slurp cliphist wl-clipboard swayidle pavucontrol" + ["BASE_PACKAGES"]="git stow eza dbus seatd elogind polkit NetworkManager gnome-keyring polkit-gnome mesa-dri pipewire wireplumber inotify-tools void-repo-multilib void-repo-nonfree wpa_supplicant wifish wpa-cute wpa_gui xorg gnome-keyring polkit-gnome mtpfs inotify-tools ffmpeg libnotify git base-devel" ["AMD_DRIVERS"]="opencv Vulkan-Headers Vulkan-Tools Vulkan-ValidationLayers-32bit mesa-vulkan-radeon mesa-vulkan-radeon-32bit vulkan-loader vulkan-loader-32bit libspa-vulkan libspa-vulkan-32bit amdvlk mesa-dri" + ["HYPRLAND_PACKAGES"]="Waybar rofi avizo dunst swaybg mpvpaper grim jq slurp cliphist wl-clipboard swayidle pavucontrol nemo eog pavucontrol evince" + ["SYSTEM_APPS"]="alacritty zellij bat dust aria2 fzf neofetch bat octoxbps" ) exec 1> >(tee "../hyprland_setup_log")