This commit is contained in:
Sam A. 2024-02-18 16:48:28 +01:00
parent 7bf3548668
commit 36337553ff
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
4 changed files with 5 additions and 19 deletions

View File

@ -11,9 +11,6 @@ echo "=> Determining OS..."
if [ "$(. /etc/os-release && echo $ID)" = "artix" ]; then
set -- "alacritty" "git" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
INSTALL="sudo pacman -S"
elif [ "$(. /etc/os-release && echo $ID)" = "fedora" ]; then
set -- "alacritty" "nvim" "scripts" "zsh"
INSTALL="sudo dnf install"
else
echo "OS not supported!"
exit 1

View File

@ -1,7 +1,7 @@
#!/usr/bin/env dash
[ "$(. /etc/os-release && echo $ID)" = "artix" ] && { paru -Syu; echo; }
[ "$(. /etc/os-release && echo $ID)" = "fedora" ] && { sudo dnf --refresh upgrade; echo; }
[ "$(. /etc/os-release && echo $ID)" = "artix" ] &&
{ paru -Syu; echo; }
command -v flatpak >/dev/null 2>&1 &&
{ flatpak update; echo; }

View File

@ -29,8 +29,8 @@ bindsym $mod+Shift+r exec swaynag -t reboot -m 'Reboot?' -b 'Yes' 'sudo reboot'
bindsym $mod+Shift+q exec swaynag -t shutdown -m 'Shut down?' -b 'Yes' 'sudo poweroff'
# Screenshotting
bindsym $mod+Shift+S exec --no-startup-id grimshot --notify copy area
bindsym Ctrl+$mod+Shift+S exec --no-startup-id grimshot --notify save area
bindsym $mod+Shift+S exec --no-startup-id grimshot --notify save area
bindsym Ctrl+$mod+Shift+S exec --no-startup-id grimshot --notify copy area
# Move focus to different container
bindsym $mod+$left focus left

View File

@ -62,17 +62,14 @@ alias q="exit 0"
alias visudo="sudo EDITOR=\"rvim -nc 'set nobackup nowritebackup'\" visudo"
(( ${+commands[tmux]} )) &&
alias tmux="tmux -2u"
(( ${+commands[dotnet]} )) &&
alias dnup="dotnet tool list --global | tail -n +3 | awk '{print \$1}' | xargs -l dotnet tool update --global"
(( ${+commands[bat]} )) && {
alias pbat="bat -pp"
alias bless="bat -p --paging=always"
alias bless="bat --style=plain --paging=always"
alias nbless="bat --paging=always"
}
# Platform specific
if [[ $(. /etc/os-release && echo $ID) == "artix" ]]; then
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias pacin="sudo pacman -S"
alias pacls="pacman -Qkl"
alias pacown="pacman -Qo"
@ -81,12 +78,4 @@ if [[ $(. /etc/os-release && echo $ID) == "artix" ]]; then
alias pacrm="sudo pacman -Rcsu"
alias pacsi="pacman -Si"
alias pacss="pacman -Ss"
elif [[ $(. /etc/os-release && echo $ID) == "fedora" ]]; then
alias code="codium"
alias dnfin="sudo dnf install"
alias dnfqi="rpm -qi"
alias dnfqs="rpm -qa"
alias dnfrm="sudo dnf remove"
alias dnfsi="sudo dnf info"
alias dnfss="sudo dnf search"
fi