diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 62c8935..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -.idea/ \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index 2e5da9f..0000000 --- a/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Faulty's Dotfiles -Version: 3 - ---- - -## file sync -files in `./files` are synced across the system. -files in `./files/home` are synced to the home of the user running the script. -files in `./files/root` are synced with sudo to the root of the script. \ No newline at end of file diff --git a/compatibility/fedora.sh b/compatibility/fedora.sh deleted file mode 100755 index bc85691..0000000 --- a/compatibility/fedora.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -export SUDO=sudo - -export PM=dnf -export PM_INSTALL=install -export PM_NOCONFIRM=-y - -$SUDO dnf update -[ "${NO_GRAPHICS:-no}" = "yes" ] || $SUDO $PM $PM_INSTALL $PM_NOCONFIRM libX11-devel libXft-devel libXinerama-devel libXrandr-devel xorg-x11-xinit-session - -[ -f ./sync.sh ] && ./sync.sh $@ || (cd .. && ./sync.sh $@) \ No newline at end of file diff --git a/crates/00-system/crate.arch.sh b/crates/00-system/crate.arch.sh new file mode 100644 index 0000000..ce3f7dd --- /dev/null +++ b/crates/00-system/crate.arch.sh @@ -0,0 +1,11 @@ +super_apply() { + pacman -S --needed sudo reflector + if ! grep -q "Reflector" /etc/pacman.d/mirrorlist; then + cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak + reflector -c NL -f 10 --threads 4 --save /etc/pacman.d/mirrorlist + else + echo "err: reflector already executed -- skipping..." + fi + + cp files/pacman.conf /etc/pacman.conf +} \ No newline at end of file diff --git a/crates/00-system/crate.sh b/crates/00-system/crate.sh new file mode 100644 index 0000000..2a73944 --- /dev/null +++ b/crates/00-system/crate.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +describe="Install stuff on the system!" + +super_apply() { + cp files/sudoers /etc/sudoers +} \ No newline at end of file diff --git a/crates/00-system/files/pacman.conf b/crates/00-system/files/pacman.conf new file mode 100644 index 0000000..e63be35 --- /dev/null +++ b/crates/00-system/files/pacman.conf @@ -0,0 +1,31 @@ +[options] +HoldPkg = pacman glibc yay +Architecture = auto + +Color +CheckSpace +ParallelDownloads = 5 + +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional + +#[testing] +#Include = /etc/pacman.d/mirrorlist + +[core] +Include = /etc/pacman.d/mirrorlist + +[extra] +Include = /etc/pacman.d/mirrorlist + +#[community-testing] +#Include = /etc/pacman.d/mirrorlist + +[community] +Include = /etc/pacman.d/mirrorlist + +#[multilib-testing] +#Include = /etc/pacman.d/mirrorlist + +[multilib] +Include = /etc/pacman.d/mirrorlist diff --git a/crates/00-system/files/sudoers b/crates/00-system/files/sudoers new file mode 100644 index 0000000..e77799b --- /dev/null +++ b/crates/00-system/files/sudoers @@ -0,0 +1,4 @@ +root ALL=(ALL:ALL) ALL +%wheel ALL=(ALL:ALL) ALL +%root ALL=(ALL:ALL) NOPASSWD: ALL +@includedir /etc/sudoers.d diff --git a/crates/10-zsh/crate.arch.sh b/crates/10-zsh/crate.arch.sh new file mode 100644 index 0000000..b44c9ed --- /dev/null +++ b/crates/10-zsh/crate.arch.sh @@ -0,0 +1,7 @@ +super_apply() { + pacman -S --needed zsh cmake +} + +super_undo() { + pacman -R zsh +} \ No newline at end of file diff --git a/crates/10-zsh/crate.sh b/crates/10-zsh/crate.sh new file mode 100644 index 0000000..2e470d8 --- /dev/null +++ b/crates/10-zsh/crate.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +describe="Install zsh and oh-my-zsh!" +scripts="@distro @self" + +super_apply() { + [ -d /tmp/fastfetch ] || git clone https://github.com/LinusDierheimer/fastfetch /tmp/fastfetch + + if ! command -v fastfetch &> /dev/null; then + cd /tmp/fastfetch + mkdir -p build + cd build + cmake .. + cmake --build . --target fastfetch + mv fastfetch /usr/local/bin/fastfetch + fi + + usermod $USER --shell /bin/zsh +} + +super_undo() { + usermod $USER --shell /bin/bash +} + +apply() { + if [ ! -d "$HOME/.oh-my-zsh" ]; then + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended + + PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions + [ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-autosuggestions $PL_DIR + PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting + [ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $PL_DIR + fi + + [ -e "$HOME/.zshrc" ] || ln files/.zshrc $HOME/.zshrc +} + +undo() { + unlink $HOME/.zshrc + rm -rf $HOME/.oh-my-zsh +} \ No newline at end of file diff --git a/files/home/.zshrc b/crates/10-zsh/files/.zshrc similarity index 61% rename from files/home/.zshrc rename to crates/10-zsh/files/.zshrc index ec4a6f4..58358a2 100644 --- a/files/home/.zshrc +++ b/crates/10-zsh/files/.zshrc @@ -1,10 +1,8 @@ export GPG_TTY=$(tty) -source ~/.zsh_preferences # paths export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" -if [ $_ZSH_PREF_NO_NONSENSE != 1 ]; then # ZSH export ZSH="$HOME/.oh-my-zsh" @@ -12,24 +10,14 @@ ZSH_THEME="afowler" plugins=(git docker docker-compose node zsh-autosuggestions zsh-syntax-highlighting) source $ZSH/oh-my-zsh.sh -source ~/.zsh_scripts - # ALIASES alias open="xdg-open" alias nobeep="sudo modprobe -r pcspkr" -alias bl="sudo light -S" -alias kssh="kitty +kitten ssh" -alias get_idf='. $HOME/esp/esp-idf/export.sh' -alias get_rust='. $HOME/.cargo/env' alias s="title $HOST && cmatrix -rs && clear" +alias q="exit" # COSMETICS -if [ $_ZSH_PREF_NO_PFETCH != 1 ]; then fastfetch; fi +fastfetch -else -PS1="$(whoami)@$(cat /etc/hostname) $ " -fi - -alias q="exit" export PATH="${PATH}:/home/${USER}/.local/bin" export SSH_AUTH_SOCK="/run/user/1000/keyring/ssh" diff --git a/crates/20-vim/crate.arch.sh b/crates/20-vim/crate.arch.sh new file mode 100644 index 0000000..d95ce2d --- /dev/null +++ b/crates/20-vim/crate.arch.sh @@ -0,0 +1,7 @@ +super_apply() { + pacman -S --needed vim +} + +super_undo() { + echo "we never uninstall vim -_-" +} \ No newline at end of file diff --git a/crates/20-vim/crate.sh b/crates/20-vim/crate.sh new file mode 100644 index 0000000..3210eac --- /dev/null +++ b/crates/20-vim/crate.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +describe="Install vim and it's stuff" +scripts="@distro @self" + +apply() { + [ -e "$HOME/.vimrc" ] || ln files/.vimrc $HOME/.vimrc + [ -e "$HOME/.ideavimrc" ] || ln files/.ideavimrc $HOME/.ideavimrc +} + +undo() { + unlink $HOME/.vimrc + unlink $HOME/.ideavimrc +} \ No newline at end of file diff --git a/crates/20-vim/files/.ideavimrc b/crates/20-vim/files/.ideavimrc new file mode 100644 index 0000000..115e47f --- /dev/null +++ b/crates/20-vim/files/.ideavimrc @@ -0,0 +1,10 @@ +source ~/.vimrc + +set scrolloff=5 +set incsearch + +map Q gq + +Plug 'machakann/vim-highlightedyank' +Plug 'tpope/vim-commentary' +Plug 'wellle/targets.vim' diff --git a/files/home/.vimrc b/crates/20-vim/files/.vimrc old mode 100755 new mode 100644 similarity index 100% rename from files/home/.vimrc rename to crates/20-vim/files/.vimrc diff --git a/crates/30-alacritty/crate.arch.sh b/crates/30-alacritty/crate.arch.sh new file mode 100644 index 0000000..a91b78b --- /dev/null +++ b/crates/30-alacritty/crate.arch.sh @@ -0,0 +1,7 @@ +super_apply() { + pacman -S --needed alacritty +} + +super_undo() { + pacman -R alacritty +} \ No newline at end of file diff --git a/crates/30-alacritty/crate.sh b/crates/30-alacritty/crate.sh new file mode 100644 index 0000000..3a433d2 --- /dev/null +++ b/crates/30-alacritty/crate.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +describe="Installs alacritty and configs" +scripts="@distro @self" + +apply() { + [ -e "$HOME/.config/alacritty/alacritty.yml" ] || ln files/alacritty.yml $HOME/.config/alacritty/alacritty.yml +} + +undo() { + unlink $HOME/.config/alacritty/alacritty.yml +} \ No newline at end of file diff --git a/files/home/.config/alacritty/alacritty.yml b/crates/30-alacritty/files/alacritty.yml similarity index 56% rename from files/home/.config/alacritty/alacritty.yml rename to crates/30-alacritty/files/alacritty.yml index 3bc0096..1a30120 100644 --- a/files/home/.config/alacritty/alacritty.yml +++ b/crates/30-alacritty/files/alacritty.yml @@ -1,7 +1,3 @@ -bell: - animation: 'Ease' - duration: 50 - color: '#555555' cursor: style: shape: 'Block' diff --git a/dot b/dot new file mode 100755 index 0000000..7993255 --- /dev/null +++ b/dot @@ -0,0 +1,85 @@ +#!/bin/sh + +ask=0 + +is_function() { + type "$1" 2> /dev/null | sed "s/$1//" | grep -qwi function +} + +curr_distro() { + cat /etc/os-release | grep -G "^ID=" | sed 's/ID=//' +} + +include() { + [ -f "$1" ] || return 1 + . $1 + return 0 +} + +func() { + if is_function $(echo "super_$2"); then + sudo sh -c ". $1 && super_$2" + fi + is_function $2 && $2 +} + +get_command() { + case $1 in + a*) + printf "apply" + ;; + u*) + printf "undo" + ;; + *) + echo "err: not supported" >&2 + exit 1 + ;; + esac +} + +# only run this *in crate dir* +run_crate() { + include ./crate.sh || exit 1 + if [ -n "$describe" ]; then + echo "desc($(basename $PWD)): $describe" + fi + cmd=$(get_command $1) + scripts=${scripts:-"@self @distro"} + for s in $scripts; do + echo "exec($(basename $PWD)): $s/$cmd" + case $s in + @self) + func ./crate.sh $cmd + ;; + @distro) + unset -f super_$cmd + unset -f $cmd + include ./crate.$(curr_distro).sh + func ./crate.$(curr_distro).sh $cmd + unset -f super_$cmd + unset -f $cmd + include ./crate.sh + ;; + *) + sh $s + ;; + esac + done +} + +if [ $# -eq 2 ]; then + [ -d crates/*$1 ] || exit 1 + cd crates/*$1 + run_crate $2 + cd ../.. +else + [ $# -eq 0 ] && exit 2 + for crate in $(find ./crates -mindepth 1 -maxdepth 1 -type d | sort); do + cd $crate + run_crate $1 + cd ../.. + done +fi + + \ No newline at end of file diff --git a/files/dwm/config.h b/files/dwm/config.h deleted file mode 100644 index d957645..0000000 --- a/files/dwm/config.h +++ /dev/null @@ -1,158 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -#include - -/* appearance */ -static const unsigned int borderpx = 2; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ -static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ -static const unsigned int systrayonleft = 0; /* 0: systray in the right corner, >0: systray on left of status text */ -static const unsigned int systrayspacing = 2; /* systray spacing */ -static const int systraypinningfailfirst = 1; /* 1: if pinning fails, display systray on the first monitor, False: display systray on the last monitor*/ -static const int showsystray = 1; /* 0 means no systray */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "monospace:size=10" }; -static const char dmenufont[] = "monospace:size=10"; - -static const char col_bg_inactive[] = "#444444"; -static const char col_fg_inactive[] = "#bbbbbb"; - -static const char col_bg_highlight[] = "#ffaaaa"; -static const char col_fg_highlight[] = "#000000"; - -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_fg_inactive, col_bg_inactive, col_bg_inactive }, - [SchemeSel] = { col_fg_highlight, col_bg_highlight, col_bg_highlight } -}; - -/* tagging */ -static const char *tags[] = { "main", "term", "www", "chat", "5", "6", "7", "8", "9", }; - -static const Rule rules[] = { - /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, True, -1 }, - { "firefox", NULL, NULL, 1 << 2, False, -1 }, - { "discord", NULL, NULL, 1 << 3, False, -1 }, - { "Thunderbird", NULL, NULL, 2, False, -1 }, - { "stalonetray", NULL, NULL, 1, False, -1 }, - { "chrome", NULL, NULL, 4, False, -1 }, -}; - -/* layout(s) */ -static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ -static const Bool resizehints = True; /* True means respect size hints in tiled resizals */ -static const int nmaster = 1; /* number of clients in master area */ -static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ - -static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, -}; - -/* key definitions */ -#define MODKEY Mod4Mask -#define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, - -/* helper for spawning shell commands in the pre dwm-5.0 fashion */ -#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } - -/* commands */ - -// dmenu -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { - "dmenu_run", - "-m", dmenumon, - "-fn", dmenufont, - "-nb", col_bg_inactive, - "-nf", col_fg_inactive, - "-sb", col_bg_highlight, - "-sf", col_fg_highlight, NULL }; - -// terminal -static const char *termcmd[] = { "alacritty", NULL }; - -// general & sys -static const char *locksaver[] = { "/usr/local/bin/dwm-lock", NULL }; -static const char *vol_up[] = { "amixer", "set", "Master", "5%+", NULL }; -static const char *vol_down[] = { "amixer", "set", "Master", "5%-", NULL }; -static const char *vol_mute[] = { "amixer", "set", "Master", "toggle", NULL }; -static const char *light_up[] = {"light", "-A", "5", NULL}; -static const char *light_down[] = {"light", "-U", "5", NULL}; - -// screenshots -static const char *screenshot[] = {"flameshot", "full", "-c", NULL}; -static const char *screenshot_partial[] = {"flameshot", "gui", "-c", NULL}; - -// kill dwm -static const char *dwmdie[] = {"/bin/sh", "-c", "pkill dwm-start && pkill dwm", "null"}; - -static Key keys[] = { - /* modifier key function argument */ - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - { MODKEY|ShiftMask, XK_d, spawn, {.v = dmenucmd } }, - { MODKEY|ShiftMask, XK_e, spawn, {.v = dwmdie } }, - { MODKEY, XK_l, spawn, {.v = locksaver } }, - { MODKEY, XK_b, togglebar, {0} }, - { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, - { MODKEY|Mod1Mask, XK_h, incnmaster, {.i = +1} }, - { MODKEY|Mod1Mask, XK_u, incnmaster, {.i = -1} }, - { MODKEY|ShiftMask, XK_Return, zoom, {0} }, - { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_c, killclient, {0} }, - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, - { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, - { MODKEY, XK_space, setlayout, {0} }, - { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - { 0, XK_Print, spawn, {.v = screenshot } }, - { Mod1Mask, XK_Print, spawn, {.v = screenshot_partial } }, - { 0, XF86XK_AudioRaiseVolume, spawn, {.v = vol_up } }, - { 0, XF86XK_AudioLowerVolume, spawn, {.v = vol_down } }, - { 0, XF86XK_AudioMute, spawn, {.v = vol_mute } }, - { 0, XF86XK_MonBrightnessUp, spawn, {.v = light_up} }, - { 0, XF86XK_MonBrightnessDown, spawn, {.v = light_down} }, - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) - TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask|Mod1Mask, XK_q, quit, {0} }, -}; - -/* button definitions */ -/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, -}; - diff --git a/files/dwm/dwm-lock.sh b/files/dwm/dwm-lock.sh deleted file mode 100755 index 2ce99e0..0000000 --- a/files/dwm/dwm-lock.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh - -touch /tmp/$USER-screen.lock -i3lock ${@:--nefc "#000000"} -rm -f /tmp/$USER-screen.lock diff --git a/files/dwm/dwm-start.sh b/files/dwm/dwm-start.sh deleted file mode 100755 index 88c7cd4..0000000 --- a/files/dwm/dwm-start.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -LITE=${LITE:-no} - -xsetroot -solid black - -start_apps() { - nm-applet & - flameshot & - discord & - firefox & -} - -[ "$LITE" = "yes" ] || /usr/local/bin/dwm-status & -[ "$LITE" = "yes" ] || (sleep 1 && start_apps) & - -feh -zZ --bg-scale $HOME/Pictures/background.* -[ "${NO_DWM:-no}" = "yes" ] || exec dwm >/dev/null diff --git a/files/dwm/dwm-status.sh b/files/dwm/dwm-status.sh deleted file mode 100755 index bfa8a91..0000000 --- a/files/dwm/dwm-status.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -xsetroot -solid black -name "starting dwm..." - -#while loop to update statusbar with some goodies -while true; do - sleep 1 - [ -f /tmp/$USER-screen.lock ] && continue - #memfreak to get it in MB - memfree=$(grep MemFree /proc/meminfo | awk '{ print $2 }') - memtotal=$(grep MemTotal /proc/meminfo | awk '{ print $2 }') - memfreak=$(((memtotal - memfree) / 1024)) - #time - CLK=$(date +'%a %b %d %R:%S %Z') - #volume - VOL=$(amixer get Master | tail -1 | awk '{ print $5 }' | tr -d '[]') - #loadavg - AVG=$(cat /proc/loadavg | cut -d ' ' -f -3) - #network stats in Bytes - NW=$(dstat -n --nocolor 1 1 | tail -1 | awk '{ print $1, $2}') - battper=$(cat /sys/class/power_supply/BAT0/capacity) - #this one is not so good, increases a delay of 1-2s of the updating. - #put it in the xsetrootname plz (tip of the day, do not put | as first char after " - xsetroot -name "$AVG | $memfreak MB | Bat: $battper% | Vol: $VOL | $CLK |" -done - diff --git a/files/dwm/dwm-sync.sh b/files/dwm/dwm-sync.sh deleted file mode 100755 index eb2f276..0000000 --- a/files/dwm/dwm-sync.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -pushd ~/.local/dotfiles -./sync.sh 30-dwm.sh -popd - -loginctl kill-user $USER \ No newline at end of file diff --git a/files/dwm/dwm.desktop b/files/dwm/dwm.desktop deleted file mode 100644 index 2f8e70f..0000000 --- a/files/dwm/dwm.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Encoding=UTF-8 -Name=dwm -Comment=This session starts dwm -Exec=/usr/local/bin/dwm-start -Type=Application \ No newline at end of file diff --git a/files/home/.config/kanshi/config b/files/home/.config/kanshi/config deleted file mode 100644 index 5a245d2..0000000 --- a/files/home/.config/kanshi/config +++ /dev/null @@ -1,9 +0,0 @@ -profile school { - output "Iiyama North America PL2483H 1156290962278" mode 1920x1080 position 0,0 - output eDP-1 mode 1920x1080 position 1920,0 -} - -#profile sharing { -# output HDMI-A-1 mode 1920x1080 position 0,1080 -# output eDP-1 mode 1920x1080 position 0,0 -#} diff --git a/files/home/.config/kitty/kitty.conf b/files/home/.config/kitty/kitty.conf deleted file mode 120000 index de7259e..0000000 --- a/files/home/.config/kitty/kitty.conf +++ /dev/null @@ -1 +0,0 @@ -/home/didier/.local/dotfiles/./files/kitty/kitty.conf \ No newline at end of file diff --git a/files/home/.config/rofi/config.rasi b/files/home/.config/rofi/config.rasi deleted file mode 100755 index 1efb65f..0000000 --- a/files/home/.config/rofi/config.rasi +++ /dev/null @@ -1 +0,0 @@ -@theme "Arc-Dark" diff --git a/files/home/.config/sway/config b/files/home/.config/sway/config deleted file mode 100755 index 2b78650..0000000 --- a/files/home/.config/sway/config +++ /dev/null @@ -1,248 +0,0 @@ -# Faulty's sway Config - - -set $mod Mod1 -set $sup Mod4 -set $terminal alacritty #sway-sensible-terminal -set $browser firefox -set $editor gedit - -#font pango:monospace 8 -font pango:DejaVu Sans Mono 8 - -#! Startup Applications -exec --no-startup-id kanshi -exec --no-startup-id xss-lock --transfer-sleep-lock -- swaylock --nofork -exec --no-startup-id gnome-keyring-daemon --start --components=ssh,secrets,pkcs11 -exec --no-startup-id nm-applet -exec thunderbird -exec discord - -set $lock swaylock -c "#000000" - -set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (Shift+r) reboot, (Shift+s) shutdown -mode "$mode_system" { - bindsym l exec --no-startup-id $lock, mode "default" - bindsym e exec --no-startup-id sway exit, mode "default" - bindsym s exec --no-startup-id $lock && systemctl suspend, mode "default" - bindsym h exec --no-startup-id $lock && systemctl hibernate, mode "default" - bindsym Shift+r exec --no-startup-id systemctl reboot, mode "default" - bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" - - # back to normal: Enter or Escape - bindsym Return mode "default" - bindsym Escape mode "default" - -} -bindsym $sup+Delete mode "$mode_system" -bindsym $sup+l exec --no-startup-id $lock - -#! Media -bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_swaystatus -bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_swaystatus -bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_swaystatus -bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_swaystatus - -#! Light -bindsym XF86MonBrightnessUp exec light -A 10 # increase screen brightness -bindsym XF86MonBrightnessDown exec light -U 10 # decrease screen brightness - -#! Customization -# class border backgr. text indicator child_border -client.focused #000000 #222299 #ffffff #000000 #222222 -client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a -client.unfocused #333333 #222222 #888888 #292d2e #222222 -client.urgent #EF2929 #900000 #ffffff #900000 #900000 -client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c -client.background #888A85 -#exec --no-startup-id xsetroot -solid "#333333" -exec --no-startup-id swaybg -i ~/Pictures/background.png -no_focus [class="Fig" instance="fig" window_role="autocomplete"] -for_window [class="Fig" instance="fig" window_role="autocomplete"] border pixel 0 - -#! Navigation -set $up l -set $down k -set $left j -set $right semicolon - -# use Mouse+Mod1 to drag floating windows to their wanted position -floating_modifier $sup - -#! Applications -bindsym $sup+Return exec $terminal -bindsym $sup+q exec $browser -bindsym $sup+d exec rofi -show run -bindsym $sup+Shift+d exec --no-startup-id rofi -show drun -bindsym Ctrl+Print exec --no-startup-id grim ~/Pictures/Screenshots/$(date +"%d-%m-%y_%H:%M:%S").png -bindsym Print exec --no-startup-id grim - | xclip -selection clipboard -t image/png - -# kill focused window -bindsym $sup+Shift+q kill - -# change focus -bindsym $mod+$left focus left -bindsym $mod+$down focus down -bindsym $mod+$up focus up -bindsym $mod+$right focus right - -# alternatively, you can use the cursor keys: -bindsym $mod+Left focus left -bindsym $mod+Down focus down -bindsym $mod+Up focus up -bindsym $mod+Right focus right - -# move focused window -bindsym $mod+Shift+$left move left -bindsym $mod+Shift+$down move down -bindsym $mod+Shift+$up move up -bindsym $mod+Shift+$right move right - -# alternatively, you can use the cursor keys: -bindsym $mod+Shift+Left move left -bindsym $mod+Shift+Down move down -bindsym $mod+Shift+Up move up -bindsym $mod+Shift+Right move right - -# split in horizontal orientation -bindsym $mod+h split h - -# split in vertical orientation -bindsym $mod+v split v - -# enter fullscreen mode for the focused container -bindsym $mod+f fullscreen toggle - -#! Layouts -# change container layout (stacked, tabbed, toggle split) -bindsym $sup+s layout stacking -bindsym $sup+w layout tabbed -bindsym $sup+e layout toggle split - -# toggle tiling / floating -bindsym $mod+Shift+space floating toggle - -# change focus between tiling / floating windows -bindsym $mod+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -#bindsym Mod1+d focus child - -# move the currently focused window to the scratchpad -bindsym $sup+Shift+minus move scratchpad - -# Show the next scratchpad window or hide the focused scratchpad window. -# If there are multiple scratchpad windows, this command cycles through them. -bindsym $sup+minus scratchpad show - -# Define names for default workspaces for which we configure key bindings later on. -# We use variables to avoid repeating the names in multiple places. -#! Workspaces -set $ws1 "1: main" -set $ws2 "2: browse" -set $ws3 "3: term" -set $ws4 "4: other" -set $ws5 "5: other" -set $ws6 "6: other" -set $ws7 "7: other" -set $ws8 "8: business" -set $ws9 "9: talk" -set $ws10 "10: misc" - -#! Assignments -assign [class="Spotify"] $ws10 -assign [class="firefox"] $ws2 -assign [class="thunderbird"] $ws8 -assign [class="discord"] $ws9 -assign [class="jetbrains-idea-ce"] $ws1 - -bindsym $sup+$left workspace prev -bindsym $sup+$right workspace next -# alter.. youknow what is coming -bindsym $sup+Left workspace prev -bindsym $sup+Right workspace next - -# switch to workspace -bindsym $sup+1 workspace number $ws1 -bindsym $sup+2 workspace number $ws2 -bindsym $sup+3 workspace number $ws3 -bindsym $sup+4 workspace number $ws4 -bindsym $sup+5 workspace number $ws5 -bindsym $sup+6 workspace number $ws6 -bindsym $sup+7 workspace number $ws7 -bindsym $sup+8 workspace number $ws8 -bindsym $sup+9 workspace number $ws9 -bindsym $sup+0 workspace number $ws10 - -# move focused container to workspace -bindsym $sup+Shift+1 move container to workspace number $ws1 -bindsym $sup+Shift+2 move container to workspace number $ws2 -bindsym $sup+Shift+3 move container to workspace number $ws3 -bindsym $sup+Shift+4 move container to workspace number $ws4 -bindsym $sup+Shift+5 move container to workspace number $ws5 -bindsym $sup+Shift+6 move container to workspace number $ws6 -bindsym $sup+Shift+7 move container to workspace number $ws7 -bindsym $sup+Shift+8 move container to workspace number $ws8 -bindsym $sup+Shift+9 move container to workspace number $ws9 -bindsym $sup+Shift+0 move container to workspace number $ws10 - -#! sway manage -# reload the configuration file -bindsym $sup+Shift+c reload -# restart sway inplace (preserves your layout/session, can be used to upgrade sway) -bindsym $sup+Shift+r restart -# exit sway (logs you out of your wayland session) -#bindsym $sup+Shift+e exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your X session.' -B 'Yes, exit sway' 'sway exit'" -bindsym $sup+Shift+e exec wlogout -# edit config -bindsym $sup+Shift+Alt+c exec "$editor ~/.config/sway/config" - -#! Resize -# resize window (you can also use the mouse for that) -mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the windowโ€™s width. - # Pressing right will grow the windowโ€™s width. - # Pressing up will shrink the windowโ€™s height. - # Pressing down will grow the windowโ€™s height. - bindsym $left resize shrink width 10 px or 10 ppt - bindsym $down resize grow height 10 px or 10 ppt - bindsym $up resize shrink height 10 px or 10 ppt - bindsym $right resize grow width 10 px or 10 ppt - - # same bindings, but for the arrow keys - bindsym Left resize shrink width 10 px or 10 ppt - bindsym Down resize grow height 10 px or 10 ppt - bindsym Up resize shrink height 10 px or 10 ppt - bindsym Right resize grow width 10 px or 10 ppt - - # back to normal: Enter or Escape or Mod1+r - bindsym Return mode "default" - bindsym Escape mode "default" - bindsym $sup+r mode "default" -} - -bindsym $sup+r mode "resize" - -input "1102:4629:ALP0016:00_044E:1215" { - tap enabled - natural_scroll enabled -} - -bar { - position top - - # When the status_command prints a new line to stdout, swaybar updates. - # The default just shows the current date and time. - status_command while ~/.config/sway/status.sh; do printf ''; done - - colors { - statusline #ffffff - background #323232 - inactive_workspace #32323200 #32323200 #5c5c5c - } -} diff --git a/files/home/.config/sway/status.py b/files/home/.config/sway/status.py deleted file mode 100755 index 5a89322..0000000 --- a/files/home/.config/sway/status.py +++ /dev/null @@ -1,25 +0,0 @@ -import socket -from datetime import datetime -from psutil import disk_usage, sensors_battery -from psutil._common import bytes2human -import socket -from subprocess import check_output -from sys import stdout -from time import sleep - -def write(data): - stdout.write('%s\n' % data) - stdout.flush() - -def refresh(): - disk = f"{bytes2human(disk_usage('/').used)} / {bytes2human(disk_usage('/').total)} ({bytes2human(disk_usage('/').free)})" - hostname = socket.gethostname() - ip = socket.gethostbyname(hostname+".") - battery = int(sensors_battery().percent) - status = "Charging" if sensors_battery().power_plugged else "Discharging" - date = datetime.now().strftime('%h %d %A %H:%M:%S') - write(f"d: {disk} | n: {hostname} @ {ip} | b: {battery}% ({status.lower()[:3]}) | {date}") - -while True: - refresh() - sleep(1) diff --git a/files/home/.config/sway/status.sh b/files/home/.config/sway/status.sh deleted file mode 100755 index c8bcfc3..0000000 --- a/files/home/.config/sway/status.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh -uptimef=$(uptime | cut -d ',' -f1 | cut -d ' ' -f4,5) -datef=$(date "+%a %F %H:%M:%S") -linux_version=$(uname -r | cut -d '-' -f1) -battery_status=$(cat /sys/class/power_supply/BAT0/status) -battery_percent=$(cat /sys/class/power_supply/BAT0/capacity) -#audio_volume=$(awk -F"[][]" '/Left:/ { print $2 }' <(amixer sget Master)) -audio_volume=$(pamixer --get-volume)% -disk_usage=$(df -kh / | grep dev | awk '{print $5}') -mem_used=$(free | awk '/Mem/{printf("%.2f%"), $3/$2*100}') -local_ip=$(ip addr show wlp58s0 | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1') - -# ๐Ÿ’Ž ๐Ÿ’ป ๐Ÿ’ก ๐Ÿ”Œ โšก ๐Ÿ“ \| -printf "๐Ÿ“ %3s | ๐Ÿ’Ž %7s | ๐Ÿ’ป %s | ๐Ÿ“ถ %s | ๐Ÿง %7s | ๐Ÿ”‹ %7s | ๐Ÿ”‰ %4s | %s\n" \ - "$disk_usage" "$mem_used" "$uptimef" "$local_ip" "$linux_version" "$battery_percent% ($battery_status)" "$audio_volume" "$datef" -sleep 1 diff --git a/files/home/.zsh_preferences b/files/home/.zsh_preferences deleted file mode 100644 index 2677a0e..0000000 --- a/files/home/.zsh_preferences +++ /dev/null @@ -1,2 +0,0 @@ -_ZSH_PREF_NO_PFETCH=0 -_ZSH_PREF_NO_NONSENSE=0 \ No newline at end of file diff --git a/files/home/.zsh_scripts b/files/home/.zsh_scripts deleted file mode 100644 index 7537861..0000000 --- a/files/home/.zsh_scripts +++ /dev/null @@ -1,49 +0,0 @@ -__is_arch() { - . /etc/os-release - if [ "$ID" = "arch" ]; then return 0; else return 1; fi -} - -pkg_once() { - if [ ! __is_arch ]; then - printf "This command is only for Arch Linux.\n" - return - fi - if [ ! -n "$1" ]; then - printf "Usage: pkg_once [command]\n" - printf "command is optional; if there is no command the package name is ran\n" - return - fi - printf "Installing $1...\n" - yay -S --noconfirm $1 > /dev/null - - if [ ! -n "$2" ]; then $1; else $2; fi - printf "Remoiving $1..." - yay -R --noconfirm $1 > /dev/null - echo "done.\n" -} - -rando () { - case $1 in - *|d|default) tr -dc A-Za-z0-9 ?@[\]^_`{|}~' > $file - fi - chmod +x $file - printf '%s' $file -} - -alias docurr="docker run -itd --rm --name current" diff --git a/files/root/etc/pacman.conf b/files/root/etc/pacman.conf deleted file mode 100644 index 12cabfa..0000000 --- a/files/root/etc/pacman.conf +++ /dev/null @@ -1,100 +0,0 @@ -# -# /etc/pacman.conf -# -# See the pacman.conf(5) manpage for option and repository directives - -# -# GENERAL OPTIONS -# -[options] -# The following paths are commented out with their default values listed. -# If you wish to use different paths, uncomment and update the paths. -#RootDir = / -#DBPath = /var/lib/pacman/ -#CacheDir = /var/cache/pacman/pkg/ -#LogFile = /var/log/pacman.log -#GPGDir = /etc/pacman.d/gnupg/ -#HookDir = /etc/pacman.d/hooks/ -HoldPkg = pacman glibc -#XferCommand = /usr/bin/curl -L -C - -f -o %o %u -#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u -#CleanMethod = KeepInstalled -Architecture = auto - -# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup -#IgnorePkg = -#IgnoreGroup = - -#NoUpgrade = -#NoExtract = - -# Misc options -#UseSyslog -#Color -#NoProgressBar -CheckSpace -#VerbosePkgLists -ParallelDownloads = 5 - -# By default, pacman accepts packages signed by keys that its local keyring -# trusts (see pacman-key and its man page), as well as unsigned packages. -SigLevel = Required DatabaseOptional -LocalFileSigLevel = Optional -#RemoteFileSigLevel = Required - -# NOTE: You must run `pacman-key --init` before first using pacman; the local -# keyring can then be populated with the keys of all official Arch Linux -# packagers with `pacman-key --populate archlinux`. - -# -# REPOSITORIES -# - can be defined here or included from another file -# - pacman will search repositories in the order defined here -# - local/custom mirrors can be added here or in separate files -# - repositories listed first will take precedence when packages -# have identical names, regardless of version number -# - URLs will have $repo replaced by the name of the current repo -# - URLs will have $arch replaced by the name of the architecture -# -# Repository entries are of the format: -# [repo-name] -# Server = ServerName -# Include = IncludePath -# -# The header [repo-name] is crucial - it must be present and -# uncommented to enable the repo. -# - -# The testing repositories are disabled by default. To enable, uncomment the -# repo name header and Include lines. You can add preferred servers immediately -# after the header, and they will be used before the default mirrors. - -#[testing] -#Include = /etc/pacman.d/mirrorlist - -[core] -Include = /etc/pacman.d/mirrorlist - -[extra] -Include = /etc/pacman.d/mirrorlist - -#[community-testing] -#Include = /etc/pacman.d/mirrorlist - -[community] -Include = /etc/pacman.d/mirrorlist - -# If you want to run 32 bit applications on your x86_64 system, -# enable the multilib repositories as required here. - -#[multilib-testing] -#Include = /etc/pacman.d/mirrorlist - -[multilib] -Include = /etc/pacman.d/mirrorlist - -# An example of a custom package repository. See the pacman manpage for -# tips on creating your own repositories. -#[custom] -#SigLevel = Optional TrustAll -#Server = file:///home/custompkgs diff --git a/files/root/etc/pacman.d/mirrorlist b/files/root/etc/pacman.d/mirrorlist deleted file mode 100644 index 013da94..0000000 --- a/files/root/etc/pacman.d/mirrorlist +++ /dev/null @@ -1,11 +0,0 @@ -# Mirrorlist for NL setup - -# Private mirror -Server = https://arch.neo.faulty.nl/$repo/os/$arch - -# Public mirrors -Server = http://mirror.mikrogravitation.org/archlinux/$repo/os/$arch -Server = http://mirror.wtnet.de/archlinux/$repo/os/$arch -Server = http://mirror.pagenotfound.de/archlinux/$repo/os/$arch -Server = http://mirror.informatik.tu-freiberg.de/arch/$repo/os/$arch -Server = http://ftp.snt.utwente.nl/pub/os/linux/archlinux/$repo/os/$arch diff --git a/gpackage.list b/gpackage.list deleted file mode 100644 index 2f78a0b..0000000 --- a/gpackage.list +++ /dev/null @@ -1,3 +0,0 @@ -alacritty -sway -kanshi diff --git a/hop.sh b/hop.sh deleted file mode 100755 index 06a1d1b..0000000 --- a/hop.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -# need to hop? this script copies the important stuff. - -tar \ - --exclude={node_modules,target,dist,cache} \ - -cvf \ - ${TAR_FILE:-backup.tar} \ - ~/.ssh \ - ~/.config \ - ~/.mozilla \ - ~/Documents \ - ~/Pictures \ - ~/code \ - ~/environments diff --git a/package.list b/package.list deleted file mode 100644 index 1e45b12..0000000 --- a/package.list +++ /dev/null @@ -1,4 +0,0 @@ -curl -vim -zsh -docker diff --git a/scripts/00-install-requirements.sh b/scripts/00-install-requirements.sh deleted file mode 100644 index 33a1cf5..0000000 --- a/scripts/00-install-requirements.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -# This file only installs what is needed for the sync to perform... - -$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \ - rsync \ No newline at end of file diff --git a/scripts/05-zsh.sh b/scripts/05-zsh.sh deleted file mode 100644 index 5a2c865..0000000 --- a/scripts/05-zsh.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \ - zsh \ - cmake # for fastfetch - -# install fastfetch -[ -d /tmp/fastfetch ] || \ - git clone https://github.com/LinusDierheimer/fastfetch /tmp/fastfetch - -if [ ! -f /tmp/fastfetch/build/fastfetch ]; then -pushd /tmp/fastfetch - mkdir -p build - pushd build - cmake .. - cmake --build . --target fastfetch - $SUDO mv fastfetch /usr/local/bin/fastfetch - popd -popd -fi - -# install omz -bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended || echo "zsh not installed" - -# favourite omz plugins -PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions -[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-autosuggestions $PL_DIR -PL_DIR=${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting -[ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $PL_DIR - -# set default shell -$SUDO usermod $USER --shell /bin/zsh \ No newline at end of file diff --git a/scripts/10-copy-files.sh b/scripts/10-copy-files.sh deleted file mode 100644 index e5c4941..0000000 --- a/scripts/10-copy-files.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -HOME_FILES=${HOME_FILES:-./files/home} -ROOT_FILES=${ROOT_FILES:-./files/root} - -# overwrite files but preserve files surrounding -rsync -av $HOME_FILES/ $HOME -$SUDO rsync -av $ROOT_FILES/ / \ No newline at end of file diff --git a/scripts/20-install-pkgs.sh b/scripts/20-install-pkgs.sh deleted file mode 100644 index 912f9cc..0000000 --- a/scripts/20-install-pkgs.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -PACKAGE_LIST=${PACKAGE_LIST:-./package.list} -GRAPHICAL_PACKAGE_LIST=${GRAPHICAL_PACKAGE_LIST:-./gpackage.list} - -_APPLICATIONS="" -while read -r pkg; do - [ -z "$pkg" ] && continue - [ "$(echo "$pkg" | cut -c1)" = "#" ] && continue - _APPLICATIONS="$_APPLICATIONS $pkg" -done < "$PACKAGE_LIST" - -if [ "${NO_GRAPHICS:-no}" = "no" ]; then - if [ -f "$GRAPHICAL_PACKAGE_LIST" ]; then - while read -r pkg; do - [ -z "$pkg" ] && continue - [ "$(echo "$pkg" | cut -c1)" = "#" ] && continue - _APPLICATIONS="$_APPLICATIONS $pkg" - done < "$GRAPHICAL_PACKAGE_LIST" - fi -fi - -$SUDO $PM $PM_INSTALL $PM_NOCONFIRM $_APPLICATIONS diff --git a/scripts/30-dwm.sh b/scripts/30-dwm.sh deleted file mode 100644 index 10a440a..0000000 --- a/scripts/30-dwm.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/sh - -# This file configures builds and installs DWM. - -[ "${NO_GRAPHICS:-no}" = "yes" ] && return 0 - -# install dependencies -$SUDO $PM $PM_INSTALL $PM_NOCONFIRM \ - feh \ - network-manager-applet \ - alsa-utils \ - dstat \ - curl \ - flameshot \ - dmenu \ - i3lock - -# clone -[ -d /tmp/dotfiles-dwm ] || git clone https://git.suckless.org/dwm /tmp/dotfiles-dwm - -# config -cp ./files/dwm/config.h /tmp/dotfiles-dwm/config.h - -# build, patch and install -pushd /tmp/dotfiles-dwm - -# patches -curl https://dwm.suckless.org/patches/systray/dwm-systray-6.4.diff -o /tmp/dwm-systray.diff -git apply -3 /tmp/dwm-systray.diff - -$SUDO make install -popd - -# dwm boot/manage scripts -chmod +x ./files/dwm/*.sh - -$SUDO cp ./files/dwm/dwm-start.sh /usr/local/bin/dwm-start -$SUDO cp ./files/dwm/dwm-status.sh /usr/local/bin/dwm-status -$SUDO cp ./files/dwm/dwm-sync.sh /usr/local/bin/dwm-sync -$SUDO cp ./files/dwm/dwm-lock.sh /usr/local/bin/dwm-lock - -$SUDO chmod +x /usr/local/bin/dwm-* - -# DM entry -$SUDO cp ./files/dwm/dwm.desktop /usr/share/xsessions/dwm.desktop - -# background -rm -rf $HOME/Pictures/background.* -curl https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/i/9757d496-239b-46c5-baea-6873cbfe9b3d/ddkbeml-015b05e6-6f8f-471e-a3a4-1c4360127ea6.jpg -o $HOME/Pictures/background.jpg diff --git a/sync.sh b/sync.sh deleted file mode 100755 index b44e920..0000000 --- a/sync.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -SUDO=${SUDO:-sudo} - -PM=${PM:-pacman} -PM_INSTALL=${PM_INSTALL:--S} -PM_NOCONFIRM=${PM_NOCONFIRM:---noconfirm} - -set -e - -main() { - if [ ! -z "$@" ]; then - . ./scripts/$@ - exit 0 - fi - for script in ./scripts/* ; do - echo "# exec $script" - . $script - done -} - -main "$@" - -echo "# OK"