From 816409f27ddb30773501458c5d1e05e6820cfdc9 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 18 Apr 2024 16:16:04 +0200 Subject: [PATCH] Add XDG user directories configuration file and fish function to mount microSD card --- .config/fish/functions/microsd.fish | 3 +++ .config/user-dirs.dirs | 15 +++++++++++++++ .fehbg | 2 +- README.md | 4 +++- 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .config/fish/functions/microsd.fish create mode 100644 .config/user-dirs.dirs diff --git a/.config/fish/functions/microsd.fish b/.config/fish/functions/microsd.fish new file mode 100644 index 0000000..a094bcb --- /dev/null +++ b/.config/fish/functions/microsd.fish @@ -0,0 +1,3 @@ +function microsd + /usr/bin/sudo /usr/bin/mount /dev/mmcblk0p1 /mnt/microsd/ --options uid=1000,gid=984 +end diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs new file mode 100644 index 0000000..f3d147d --- /dev/null +++ b/.config/user-dirs.dirs @@ -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/" diff --git a/.fehbg b/.fehbg index 148569c..c94258c 100755 --- a/.fehbg +++ b/.fehbg @@ -1,3 +1,3 @@ #! /usr/bin/env fish -/usr/bin/feh --no-fehbg --bg-scale ~/Pictures/wallpaper.jpg +/usr/bin/feh --no-fehbg --bg-scale ~/pictures/wallpaper.jpg diff --git a/README.md b/README.md index 4e15846..7246e13 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,13 @@ ## 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/.fehbg ~/ cp dotfiles/.bash_profile ~/ cp dotfiles/.tmux.conf ~/ cp dotfiles/.gemrc ~/ +cp dotfiles/.Xresources ~/ mkdir -p ~/.gnupg && cp dotfiles/.gnupg/gpg.conf ~/.gnupg/ chmod +x ~/.fehbg 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/fish/config.fish ~/.config/fish/ 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 cp dotfiles/X11/xorg.conf /etc/X11/ sudo cp dotfiles/system/slock@.service /etc/systemd/system/slock@.service