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 if [ "$(. /etc/os-release && echo $ID)" = "artix" ]; then
set -- "alacritty" "git" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh" set -- "alacritty" "git" "mako" "nvim" "scripts" "sway" "swaylock" "swaynag" "waybar" "zsh"
INSTALL="sudo pacman -S" INSTALL="sudo pacman -S"
elif [ "$(. /etc/os-release && echo $ID)" = "fedora" ]; then
set -- "alacritty" "nvim" "scripts" "zsh"
INSTALL="sudo dnf install"
else else
echo "OS not supported!" echo "OS not supported!"
exit 1 exit 1

View file

@ -1,7 +1,7 @@
#!/usr/bin/env dash #!/usr/bin/env dash
[ "$(. /etc/os-release && echo $ID)" = "artix" ] && { paru -Syu; echo; } [ "$(. /etc/os-release && echo $ID)" = "artix" ] &&
[ "$(. /etc/os-release && echo $ID)" = "fedora" ] && { sudo dnf --refresh upgrade; echo; } { paru -Syu; echo; }
command -v flatpak >/dev/null 2>&1 && command -v flatpak >/dev/null 2>&1 &&
{ flatpak update; echo; } { 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' bindsym $mod+Shift+q exec swaynag -t shutdown -m 'Shut down?' -b 'Yes' 'sudo poweroff'
# Screenshotting # Screenshotting
bindsym $mod+Shift+S exec --no-startup-id grimshot --notify copy area bindsym $mod+Shift+S exec --no-startup-id grimshot --notify save area
bindsym Ctrl+$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 # Move focus to different container
bindsym $mod+$left focus left 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" alias visudo="sudo EDITOR=\"rvim -nc 'set nobackup nowritebackup'\" visudo"
(( ${+commands[tmux]} )) && (( ${+commands[tmux]} )) &&
alias tmux="tmux -2u" 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]} )) && { (( ${+commands[bat]} )) && {
alias pbat="bat -pp" alias pbat="bat -pp"
alias bless="bat -p --paging=always" alias bless="bat --style=plain --paging=always"
alias nbless="bat --paging=always" alias nbless="bat --paging=always"
} }
# Platform specific # Platform specific
if [[ $(. /etc/os-release && echo $ID) == "artix" ]]; then if [[ $(. /etc/os-release && echo $ID) == "artix" ]]; then
alias code="codium --enable-features=UseOzonePlatform --ozone-platform=wayland"
alias pacin="sudo pacman -S" alias pacin="sudo pacman -S"
alias pacls="pacman -Qkl" alias pacls="pacman -Qkl"
alias pacown="pacman -Qo" alias pacown="pacman -Qo"
@ -81,12 +78,4 @@ if [[ $(. /etc/os-release && echo $ID) == "artix" ]]; then
alias pacrm="sudo pacman -Rcsu" alias pacrm="sudo pacman -Rcsu"
alias pacsi="pacman -Si" alias pacsi="pacman -Si"
alias pacss="pacman -Ss" 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 fi