1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-05 04:55:18 +00:00

Switch to Arch instead of Fedora

This commit is contained in:
Phantop 2023-04-09 03:46:35 +00:00
parent 13646c8218
commit 1c939ab170
12 changed files with 35 additions and 100 deletions

View file

@ -47,7 +47,6 @@ a rmlinks 'ff -t l -x rm'
a qb 'qutebrowser --target auto'
a re 'systemctl reboot -i'
a s 'sudo env "PATH=$PATH"'
a se 's dnf'
a sus 'systemctl suspend'
a tar bsdtar
a tcsv 'curl -sL http://torrents-csv.ml/service/search?q=$argv | jq ".[]|.name,.infohash,.seeders";:'
@ -55,7 +54,6 @@ a temp 'curl temp.sh -T'
a tldr 'curl -s https://raw.githubusercontent.com/tldr-pages/tldr/main/pages/{common,linux}/$argv.md;:'
a transfer 'curl https://transfer.sh/(basename $argv) -T'
a uneopkg 'parallel "unzip -op {} install.tar.xz | tar xf -" ::: *.eopkg'
a up 'se update -y'
a v vi
a venv 'python3 -m venv venv && source venv/bin/activate.fish && pip3 install -r requirements.txt'
a vi nvim

View file

@ -1,24 +1,7 @@
#!/bin/sh
HIFI=~/Music/HiFi
LOFI=/tmp/foo
test -f /usr/share/man/man3/Parallel::ForkManager.3pm || sudo eopkg it perl-parallel-forkmanager
if test $# -eq 0; then
mkdir "$LOFI"
fusermount -u "$LOFI"
ifuse --documents com.foobar2000.mobile "$LOFI" || exit 1
else
LOFI=$1
fi
if ! test -d "$LOFI"; then
cd "$HIFI" || exit 1
fd -t d -x mkdir -p "$LOFI"/{}
fd -e flac -x opusenc --bitrate 128 {} "$LOFI"/'{.}'.opus
fi
mkdir foo
ifuse --documents com.foobar2000.mobile foo || exit 1
# https://github.com/smxi/acxi/raw/stable/acxi
acxi -s "$HIFI" -d "$LOFI" -o opus -q 128 --clean sync -F 16 -c mp3,m4a,opus,ogg
fusermount -u "$LOFI"
rmdir "$LOFI"
acxi -s ~/Music/HiFi -d "$PWD/foo" -o opus -q 128 --clean sync -F 16 -c mp3,m4a,opus,ogg
fusermount -u foo
rmdir foo

View file

@ -1,25 +1,26 @@
#!/bin/sh
# shellcheck disable=SC2086
set -e
alias s=sudo se="s dnf -y" g=git
alias s=sudo g=git
gnome="clapper gnome-photos gnome-mpv gnome-terminal nautilus rhythmbox"
se remove $gnome firefox libreoffice onboard PackageKit-command-not-found thunderbird
s pacman -Syu git
git clone https://aur.archlinux.org/yay-bin.git ~/.yay
cd ~/.yay && makepkg -si
pkgs="advancecomp aria2 audacious audacity autojump avidemux bleachbit bsdtar bzip3
caja ccache corectrl dolphin-emu engrampa fd-find fish fzf gifsicle gimp
git-credential-libsecret git-extras htop ifuse innoextract intel-clear-sans-fonts
jdupes jpegoptim keepassxc kernel-tools kitty libjxl-utils lynx megatools mkvtoolnix
moreutils mpv ncdu netsurf neovim nicotine+ nnn opus-tools oxipng p7zip pandoc
parallel pipx pngquant qt-creator qutebrowser python3-readability-lxml qrencode
ripgrep rofi sass shellcheck spectacle starship stow sxiv syncthing tig tlp tor
torsocks ubuntumono-nerd-fonts upx usbmuxd wimlib-utils yt-dlp zathura-pdf-mupdf
zathura-plugins-all"
se update; se install $pkgs
pkgs="abiword arch-install-scripts aria2 audacious audacity autojump apparmor avidemux-qt
bleachbit bzip3 ccache cpupower dolphin-emu dracula-gtk-theme dwarfs-git engrampa fd
fish flyctl-bin fq fzf gifsicle gimp gnome-disk-utility gnome-keyring gnome-system-monitor gurk-bin
hblock htop ifuse imagemagick innoextract intel-media-driver jdupes jpegoptim jq keepassxc
kitty libjxl lynx man-db man-pages megatools mkvtoolnix-gui moreutils mpv musikcube
ncdu netsurf neovim nicotine+ nnn noto-fonts noto-fonts-cjk noto-fonts-emoji opus-tools
oxipng p7zip pandoc parallel pdfjs perl-parallel-forkmanager pngquant power-profiles-daemon
proot pup-bin python-adblock python-pipx python-readability-lxml qrencode qt5-styleplugins
qt6gtk2 qutebrowser ripgrep-all rofi sass shellcheck sof-firmware spek squashfs-tools
squashfuse starship stow sxiv syncthing tig ttf-ubuntu-font-family torsocks tuc-bin
upx usbmuxd wimlib wit xsel yt-dlp zathura-cb zathura-djvu zathura-pdf-mupdf"
yay -S $pkgs
stow --no-folding -d ~/.dotfiles -t ~/.config .
rm ~/.gtkrc-2.0
ln -s ~/.config/gtk-3.0/gtkrc ~/.gtkrc-2.0
mkdir -p ~/.parallel/will-cite
wget https://github.com/dracula/rofi/raw/main/theme/config2.rasi -P ~/.config/rofi
@ -31,26 +32,25 @@ wget https://github.com/savq/paq-nvim/raw/master/lua/paq.lua -P ~/.config/nvim/l
wget https://source.netsurf-browser.org/netsurf.git/plain/resources/adblock.css\
https://nitter.it/css/themes/dracula.css -P ~/.config/qutebrowser
q=qutebrowser; wget https://github.com/$q/$q/raw/master/misc/userscripts/readability\
https://github.com/$q/$q/raw/master/misc/userscripts/qr -P ~/.config/$q/userscripts
chmod +x ~/.config/qutebrowser/userscripts/*
un(){ F=$(mktemp); mkdir -p "$2"; curl https://api.github.com/repos/"$1"/releases |\
grep -om1 http.\*zip | wget -i- -O"$F"; unzip "$F" -d "$2";}
un bloc97/Anime4k ~/.config/mpv/shaders
un mozilla/pdf.js ~/.local/share/qutebrowser/pdfjs
chsh -s "$(which fish)"
fish -c "aliases;clean"
fish -c "aliases"
echo options i915 enable_rc6=1 enable_fbc=1 lvds_downclock=1 enable__psr=1 | s tee -a /etc/modprobe.d/i915.conf
echo options lsm=landlock,lockdown,yama,integrity,apparmor,bpf | s tee -a /boot/loader/entries/*.conf
echo kernel.core_pattern=/dev/null | s tee -a /etc/sysctl.d/50-coredump.conf
g g p:appdwarf ~/.appdwarf
g g p:phantop.github.io ~/.site
g g p:haiku-icons ~/.local/share/icons/Haiku
g g gh:dracula/gtk ~/.local/share/themes/dracula
nvim +PaqInstall +q
parallel gsettings set org.gnome.desktop.interface {}-theme Haiku ::: cursor icon
gsettings set org.gnome.desktop.interface gtk-theme dracula
gsettings set org.gnome.desktop.interface gtk-theme Dracula
gsettings set org.gnome.desktop.peripherals.touchpad disable-while-typing false
for i in ~/.dotfiles/dconf/*; do
dconf reset -f "$(basename $i | sed 's/^/./;s#\.#/#g;s#.toml#/#')"

View file

@ -24,7 +24,7 @@ name='Settings'
[custom-keybindings/custom3]
binding='<Super>s'
command='spectacle'
command='org.buddiesofbudgie.BudgieScreenshot -i'
name='Screenshot'
[custom-keybindings/custom4]

View file

@ -1,6 +1,6 @@
fish_add_path -g ~/.appdwarf/{,apps/bin} ~/{.dotfiles,.local,,Games}/bin /usr/lib64/ccache /sbin
fish_add_path -g ~/.appdwarf/{,apps/bin} ~/{.dotfiles,.local,,Games}/bin /usr/lib64/ccache/bin
export EDITOR=nvim MANPAGER='nvim +Man!' USE_CCACHE=1
export QT_QPA_PLATFORMTHEME=gtk2 GTK2_RC_FILES=$HOME/.local/share/themes/dracula/gtk-2.0/gtkrc
export QT_QPA_PLATFORMTHEME=gtk2
set fish_greeting
set fish_color_command --bold

View file

@ -1,4 +0,0 @@
gtk-theme-name="dracula"
gtk-cursor-theme-name="Haiku"
gtk-icon-theme-name="Haiku"
gtk-font-name = "Clear Sans 12"

View file

@ -1,4 +1,4 @@
font_family UbuntuMono Nerd Font
font_family Ubuntu Mono
font_size 12.5
include dracula.conf

View file

@ -1,9 +1,7 @@
require "paq" {
'ackyshake/vimcompletesme';
'ctrlpvim/ctrlp.vim';
'dense-analysis/ale';
'dracula/vim';
'easymotion/vim-easymotion';
'godlygeek/tabular';
'lervag/vimtex';
'lewis6991/gitsigns.nvim';
@ -13,7 +11,7 @@ require "paq" {
'tpope/vim-commentary';
'tpope/vim-sensible';
'tpope/vim-sleuth';
'tpope/vim-surround';
'valloric/youcompleteme';
'vim-airline/vim-airline';
}
require("nnn").setup()
@ -41,11 +39,8 @@ vim.keymap.set('', '<F7>', 'mzgg=G`z')
vim.keymap.set('', 'r', '"_d')
vim.cmd [[
autocmd FileType * se tw=0
colorscheme dracula
command Q q!
filetype plugin indent on
syntax enable
PaqSync
autocmd BufReadPost,FileReadPost *.bz3 call gzip#read("bzip3 -d")

View file

@ -1,6 +1,3 @@
c.fonts.default_family = "UbuntuMono Nerd Font"
c.fonts.default_size = "11.5pt"
c.zoom.default = "125%"
cc = c.colors
ccc = cc.completion
cct = cc.tabs

View file

@ -19,7 +19,7 @@
@each $i in $aria {[aria-label$="#{$i}"] {display: none}}
[class^="private"] [class^="search"], [href="/store"] {display: none}
font-family: "UbuntuMono Nerd Font";
font-family: "Ubuntu Mono";
background: url(
"https://cdn.discordapp.com/attachments/773556458234052608/929383713932992512/0dKbZO5-16-9.webp"
)}

View file

@ -4,4 +4,4 @@ configuration {
run-command: "fish -c '{cmd}'";
run-list-command: "'fish -c functions'";
}
* { font: "UbuntuMono Nerd Font 15"; }
* { font: "Ubuntu Mono 15"; }

View file

@ -1,34 +0,0 @@
[VisualStyles]
ColorizationColor=0XD91A4666
[Control Panel\Colors]
Scrollbar=148 160 175
Background=26 58 99
ActiveTitle=26 70 102
InactiveTitle=28 33 38
Menu=57 66 77
Window=23 27 31
WindowFrame=0 0 0
MenuText=255 255 255
WindowText=245 247 250
TitleText=245 247 250
ActiveBorder=57 66 77
InactiveBorder=57 66 77
AppWorkspace=28 33 38
Hilight=7 77 117
HilightText=255 255 255
ButtonFace=57 66 77
ButtonShadow=27 33 39
GrayText=133 136 140
ButtonText=255 255 255
InactiveTitleText=245 247 250
ButtonHilight=107 113 122
ButtonDkShadow=7 9 10
ButtonLight=57 66 77
InfoText=0 0 0
InfoWindow=243 242 219
ButtonAlternateFace=181 181 181
HotTrackingColor=47 138 202
GradientActiveTitle=26 70 102
GradientInactiveTitle=28 33 38
MenuHilight=7 77 117
MenuBar=57 66 77