usr

Modulate your userpace into POSIX-compliant shell scripts!
git clone git://clone.theohenson.com/usr.git
Log | Files | Refs | README

commit 8c5b7de7a0738ae9486853d9365df2c776855c5d
parent b59c0946e95d7c415d5df6745947c5c45e4471d8
Author: Theo Henson <[email protected]>
Date:   Wed, 18 Aug 2021 10:17:49 -0400

Fix directories, font, create theme module

Diffstat:
Ahome/.local/share/themes/Mint-Y-Dark.tar.gz | 0
Mhome/src/suk/dwm/config.h | 4++--
Amodules/mint_y_dark.mod.sh | 25+++++++++++++++++++++++++
Mmodules/theo_apt.mod.sh | 2+-
Mmodules/theo_dirs.mod.sh | 3---
Mmodules/theo_dotfiles.mod.sh | 1+
Mmodules/theo_pacman.mod.sh | 2+-
Mmodules/theo_scripts.mod.sh | 2+-
8 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/home/.local/share/themes/Mint-Y-Dark.tar.gz b/home/.local/share/themes/Mint-Y-Dark.tar.gz Binary files differ. diff --git a/home/src/suk/dwm/config.h b/home/src/suk/dwm/config.h @@ -8,8 +8,8 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */ -static const char *fonts[] = { "Fira Mono:size=9" }; -static const char dmenufont[] = "Fira Mono:size=9"; +static const char *fonts[] = { "Fira Code:size=9" }; +static const char dmenufont[] = "Fira Code:size=9"; static const char bg_norm[] = "#282828"; static const char border_norm[] = "#282828"; diff --git a/modules/mint_y_dark.mod.sh b/modules/mint_y_dark.mod.sh @@ -0,0 +1,25 @@ +: "${XDG_DATA_HOME:=$HOME/.local/share}" +DATA_DIR="${XDG_DATA_HOME#$HOME/}" + +mint_y_dark_add() { + cd "$DATA_DIR/themes" + printf "mint_y_dark: extracting theme" + tar xf Mint-Y-Dark.tar.gz + rm Mint-Y-Dark.tar.gz +} + +mint_y_dark_remove() { + rm -rf "$DATA_DIR/themes/Mint-Y-Dark" +} + +mint_y_dark_info() { + printf "This module installs the Mint-Y-Dark theme.\n" +} + +mint_y_dark_dirs() { + printf "$DATA_DIR/themes" +} + +mint_y_dark_files() { + printf "$DATA_DIR/themes/Mint-Y-Dark.tar.gz" +} diff --git a/modules/theo_apt.mod.sh b/modules/theo_apt.mod.sh @@ -3,7 +3,7 @@ theo_pacman_add() { sudo pacman -S --needed --noconfirm --quiet libxinerama-dev libxft-dev libfontconfig-dev make gcc \ neovim vim curl wget git dunst npm sxiv lxpolkit fish xwallpaper picom sxhkd maim \ xinit fzf pcmanfm zathura tmux newsboat mpv pulseaudio pulsemixer gpgconf gpg-agent \ - alsa-utils papirus-icon-theme ipython3 firefox-esr + alsa-utils papirus-icon-theme ipython3 firefox-esr fonts-firacode } theo_pacman_remove() { diff --git a/modules/theo_dirs.mod.sh b/modules/theo_dirs.mod.sh @@ -8,8 +8,6 @@ theo_dirs_add() { mkdir -p "$HOME"/src/git/aur mkdir -p "$HOME"/src/git/ghw mkdir -p "$HOME"/src/git/ghf - mkdir -p "$HOME"/src/git/ghf - mkdir -p "$HOME"/.local/bin/opt mkdir -p "$HOME"/.local/share mkdir -p "$HOME"/.config printf "theo_dirs: copying some wallpapers\n" @@ -30,7 +28,6 @@ theo_dirs_remove() { rmdir "$HOME"/src/git/ghf rmdir "$HOME"/src/git rmdir "$HOME"/src - rmdir "$HOME"/.local/bin/opt rmdir "$HOME"/.local/bin rmdir "$HOME"/.local/share rmdir "$HOME/.local" diff --git a/modules/theo_dotfiles.mod.sh b/modules/theo_dotfiles.mod.sh @@ -11,6 +11,7 @@ theo_dotfiles_add() { printf "theo_dotfiles: making directory %s/%s\n" "$HOME" "$DIR" fi done + chmod 700 "$DATA_DIR/gnupg" for FILE in $(theo_dotfiles_files) ; do [ -f "$HOME/$FILE" ] && mv "$HOME/$FILE" "$HOME/$FILE".orig && \ diff --git a/modules/theo_pacman.mod.sh b/modules/theo_pacman.mod.sh @@ -3,7 +3,7 @@ theo_pacman_add() { sudo pacman -S --needed --noconfirm --quiet libxinerama libxft libx11 freetype2 make gcc \ neovim vim curl wget git dunst npm sxiv lxpolkit xorg fish xwallpaper picom sxhkd \ xorg-xinit fzf pcmanfm zathura zathura-pdf-mupdf tmux newsboat mpv pulsemixer \ - alsa-utils papirus-icon-theme ipython3 maim firefox + alsa-utils papirus-icon-theme ipython3 maim firefox ttf-fira-code } theo_pacman_remove() { diff --git a/modules/theo_scripts.mod.sh b/modules/theo_scripts.mod.sh @@ -20,7 +20,7 @@ theo_scripts_info() { } theo_scripts_dirs() { - printf ".local/bin/opt" + printf "" } theo_scripts_files() {