Add XDG user directories configuration file and fish function to mount microSD card

This commit is contained in:
adrien 2024-04-18 16:16:04 +02:00
parent 3fa7ed3610
commit 816409f27d
Signed by: adrien
GPG Key ID: 4F17BEA67707AC21
4 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,3 @@
function microsd
/usr/bin/sudo /usr/bin/mount /dev/mmcblk0p1 /mnt/microsd/ --options uid=1000,gid=984
end

15
.config/user-dirs.dirs Normal file
View File

@ -0,0 +1,15 @@
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/"
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/pictures"
XDG_VIDEOS_DIR="$HOME/"

2
.fehbg
View File

@ -1,3 +1,3 @@
#! /usr/bin/env fish #! /usr/bin/env fish
/usr/bin/feh --no-fehbg --bg-scale ~/Pictures/wallpaper.jpg /usr/bin/feh --no-fehbg --bg-scale ~/pictures/wallpaper.jpg

View File

@ -3,12 +3,13 @@
## Bulk commands ## Bulk commands
``` ```
yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh xf86-video-intel librewolf-bin cifs-utils pulseaudio-alsa pulseaudio-ctl slock xautolock zip unzip alsa-utils redshift-minimal numlockx usbutils cmatrix yubikey-touch-detector tlp powertop phinger-cursors yay -S spectrwm fish openssh rofi xorg xorg-server scrot xorg-xinit alacritty ranger feh xf86-video-intel librewolf-bin cifs-utils pulseaudio-alsa pulseaudio-ctl slock xautolock zip unzip alsa-utils redshift-minimal numlockx usbutils cmatrix yubikey-touch-detector tlp powertop phinger-cursors xdg-user-dirs
cp dotfiles/.xinitrc ~/ cp dotfiles/.xinitrc ~/
cp dotfiles/.fehbg ~/ cp dotfiles/.fehbg ~/
cp dotfiles/.bash_profile ~/ cp dotfiles/.bash_profile ~/
cp dotfiles/.tmux.conf ~/ cp dotfiles/.tmux.conf ~/
cp dotfiles/.gemrc ~/ cp dotfiles/.gemrc ~/
cp dotfiles/.Xresources ~/
mkdir -p ~/.gnupg && cp dotfiles/.gnupg/gpg.conf ~/.gnupg/ mkdir -p ~/.gnupg && cp dotfiles/.gnupg/gpg.conf ~/.gnupg/
chmod +x ~/.fehbg chmod +x ~/.fehbg
mkdir -p ~/.config/{spectrwm,alacritty,rofi,fish/functions} mkdir -p ~/.config/{spectrwm,alacritty,rofi,fish/functions}
@ -17,6 +18,7 @@ cp dotfiles/.config/alacritty/alacritty.yml ~/.config/alacritty/
cp dotfiles/.config/rofi/config.rasi ~/.config/rofi/ cp dotfiles/.config/rofi/config.rasi ~/.config/rofi/
cp dotfiles/.config/fish/config.fish ~/.config/fish/ cp dotfiles/.config/fish/config.fish ~/.config/fish/
cp dotfiles/.config/fish/functions/* ~/.config/fish/functions/ cp dotfiles/.config/fish/functions/* ~/.config/fish/functions/
cp dotfiles/.config/user-dirs.dirs ~/.config/
sudo sed -i "s/autospawn = no/autospawn = yes/" /etc/pulse/client.conf sudo sed -i "s/autospawn = no/autospawn = yes/" /etc/pulse/client.conf
sudo cp dotfiles/X11/xorg.conf /etc/X11/ sudo cp dotfiles/X11/xorg.conf /etc/X11/
sudo cp dotfiles/system/slock@.service /etc/systemd/system/slock@.service sudo cp dotfiles/system/slock@.service /etc/systemd/system/slock@.service