From ddc15dc545c6f252808b602c41f43d6ce1ce8b7c Mon Sep 17 00:00:00 2001 From: frosty Date: Fri, 17 May 2024 20:46:22 -0400 Subject: [PATCH] add stuff --- .Xresources | 6 + .bash_profile | 3 + .bashrc | 14 ++ .config/VSCodium/User/settings.json | 12 ++ .config/VSCodium/product.json | 8 ++ .config/fastfetch/config.jsonc | 48 +++++++ .config/fontconfig/fonts.conf | 10 ++ .config/git/config | 7 + .config/gtk-2.0/gtkrc | 16 +++ .config/gtk-3.0/settings.ini | 15 +++ .config/mimeapps.list | 5 + .config/nsxiv/exec/key-handler | 9 ++ .config/picom/picom.conf | 121 ++++++++++++++++++ .config/shell/aliases | 23 ++++ .config/shell/environment | 31 +++++ .config/shell/functions/skinstall | 7 + .config/user-dirs.dirs | 10 ++ .local/bin/proton-nv | 20 +++ .local/bin/runners/run-i3lock | 10 ++ .local/bin/screenlayout | 6 + .local/bin/screenlayouts/sl-external | 2 + .local/bin/statusbar/sb-battery | 5 + .local/bin/statusbar/sb-date | 5 + .local/bin/statusbar/sb-memory | 5 + .local/bin/statusbar/sb-volume | 21 +++ .local/bin/wallpaper | 14 ++ .local/share/applications/browser.desktop | 5 + .local/share/applications/editor.desktop | 5 + .local/share/applications/file.desktop | 5 + .local/share/applications/nxm-handler.desktop | 6 + .local/share/applications/terminal.desktop | 5 + .local/share/icons/default/index.theme | 4 + .local/share/runit/sv/dunst/run | 3 + .local/share/runit/sv/picom/run | 3 + .local/share/runit/sv/pipewire-pulse/run | 5 + .local/share/runit/sv/pipewire/run | 3 + .local/share/runit/sv/sxhkd/run | 3 + .local/share/runit/sv/udiskie/run | 3 + .local/share/runit/sv/wireplumber/run | 5 + .local/share/screenlayout | 1 + .local/share/wallpaper | 1 + .xinitrc | 21 +++ .zprofile | 3 + .zshrc | 24 ++++ 44 files changed, 538 insertions(+) create mode 100644 .Xresources create mode 100644 .bash_profile create mode 100644 .bashrc create mode 100644 .config/VSCodium/User/settings.json create mode 100644 .config/VSCodium/product.json create mode 100644 .config/fastfetch/config.jsonc create mode 100644 .config/fontconfig/fonts.conf create mode 100644 .config/git/config create mode 100644 .config/gtk-2.0/gtkrc create mode 100644 .config/gtk-3.0/settings.ini create mode 100644 .config/mimeapps.list create mode 100755 .config/nsxiv/exec/key-handler create mode 100644 .config/picom/picom.conf create mode 100755 .config/shell/aliases create mode 100644 .config/shell/environment create mode 100755 .config/shell/functions/skinstall create mode 100644 .config/user-dirs.dirs create mode 100755 .local/bin/proton-nv create mode 100755 .local/bin/runners/run-i3lock create mode 100755 .local/bin/screenlayout create mode 100755 .local/bin/screenlayouts/sl-external create mode 100755 .local/bin/statusbar/sb-battery create mode 100755 .local/bin/statusbar/sb-date create mode 100755 .local/bin/statusbar/sb-memory create mode 100755 .local/bin/statusbar/sb-volume create mode 100755 .local/bin/wallpaper create mode 100755 .local/share/applications/browser.desktop create mode 100755 .local/share/applications/editor.desktop create mode 100755 .local/share/applications/file.desktop create mode 100755 .local/share/applications/nxm-handler.desktop create mode 100755 .local/share/applications/terminal.desktop create mode 100644 .local/share/icons/default/index.theme create mode 100755 .local/share/runit/sv/dunst/run create mode 100755 .local/share/runit/sv/picom/run create mode 100755 .local/share/runit/sv/pipewire-pulse/run create mode 100755 .local/share/runit/sv/pipewire/run create mode 100755 .local/share/runit/sv/sxhkd/run create mode 100755 .local/share/runit/sv/udiskie/run create mode 100755 .local/share/runit/sv/wireplumber/run create mode 120000 .local/share/screenlayout create mode 120000 .local/share/wallpaper create mode 100755 .xinitrc create mode 100644 .zprofile create mode 100644 .zshrc diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..01718ec --- /dev/null +++ b/.Xresources @@ -0,0 +1,6 @@ +Nsxiv.window.background: #111111 +Nsxiv.window.foreground: #bbbbbb +Nsxiv.mark.foreground: #bbbbbb +Nsxiv.bar.background: #bbbbbb +Nsxiv.bar.foreground: #111111 +Nsxiv.bar.font: monospace:pixelsize=12 diff --git a/.bash_profile b/.bash_profile new file mode 100644 index 0000000..0be2233 --- /dev/null +++ b/.bash_profile @@ -0,0 +1,3 @@ +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/environment" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/environment" + +[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc" diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..323feda --- /dev/null +++ b/.bashrc @@ -0,0 +1,14 @@ +shopt -s autocd +shopt -s nocaseglob +shopt -s histverify + +PS1='\[\033[34m\]\w $(if [ "$?" -eq 0 ]; then printf "\033[32m"; else printf "\033[31m"; fi)\$ \[\033[0m\]' + +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases" + +if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/shell/functions" ]; then + for func in "${XDG_CONFIG_HOME:-$HOME/.config}"/shell/functions/*; do + . "$func" + done + unset func +fi diff --git a/.config/VSCodium/User/settings.json b/.config/VSCodium/User/settings.json new file mode 100644 index 0000000..f35dbea --- /dev/null +++ b/.config/VSCodium/User/settings.json @@ -0,0 +1,12 @@ +{ + "workbench.sideBar.location": "right", + "workbench.activityBar.location": "top", + "workbench.layoutControl.enabled": false, + "window.commandCenter": false, + "window.menuBarVisibility": "toggle", + "workbench.startupEditor": "none", + "editor.minimap.enabled": false, + "workbench.editor.editorActionsLocation": "hidden", + "workbench.colorTheme": "Default Dark+", + "editor.fontSize": 13 +} \ No newline at end of file diff --git a/.config/VSCodium/product.json b/.config/VSCodium/product.json new file mode 100644 index 0000000..de01346 --- /dev/null +++ b/.config/VSCodium/product.json @@ -0,0 +1,8 @@ +{ + "extensionsGallery": { + "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery", + "itemUrl": "https://marketplace.visualstudio.com/items", + "cacheUrl": "https://vscode.blob.core.windows.ne/gallery/index", + "controlUrl": "" + } +} diff --git a/.config/fastfetch/config.jsonc b/.config/fastfetch/config.jsonc new file mode 100644 index 0000000..db6f588 --- /dev/null +++ b/.config/fastfetch/config.jsonc @@ -0,0 +1,48 @@ +{ + "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json", + "logo": { + "type": "small", + "padding": { + "right": 2 + } + }, + "display": { + "separator": "", + "keyWidth": 8 + }, + "modules": [ + { + "type": "os", + "key": "os", + "format": "{2}" + }, + { + "type": "host", + "key": "host", + "format": "{2}" + }, + { + "type": "kernel", + "key": "kernel" + }, + { + "type": "uptime", + "key": "uptime" + }, + { + "type": "packages", + "key": "pkgs", + "format": "{1}" + }, + { + "type": "shell", + "key": "shell", + "format": "{1}" + }, + { + "type": "wm", + "key": "wm", + "format": "{1}" + } + ] +} diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf new file mode 100644 index 0000000..28d76a8 --- /dev/null +++ b/.config/fontconfig/fonts.conf @@ -0,0 +1,10 @@ + + + + + monospace + + Noto Sans Mono + + + diff --git a/.config/git/config b/.config/git/config new file mode 100644 index 0000000..bac0a4a --- /dev/null +++ b/.config/git/config @@ -0,0 +1,7 @@ +[user] + name = frosty + email = passedgoandgot200@gmail.com +[init] + defaultBranch = master + +# vim: ft=gitconfig diff --git a/.config/gtk-2.0/gtkrc b/.config/gtk-2.0/gtkrc new file mode 100644 index 0000000..b5c7444 --- /dev/null +++ b/.config/gtk-2.0/gtkrc @@ -0,0 +1,16 @@ +gtk-theme-name="Adwaita-dark" +gtk-icon-theme-name="elementary" +gtk-font-name="Cantarell 11" +gtk-cursor-theme-name="elementary" +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=0 +gtk-enable-input-feedback-sounds=0 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle="hintfull" + +# vim: ft=dosini diff --git a/.config/gtk-3.0/settings.ini b/.config/gtk-3.0/settings.ini new file mode 100644 index 0000000..9bf4068 --- /dev/null +++ b/.config/gtk-3.0/settings.ini @@ -0,0 +1,15 @@ +[Settings] +gtk-theme-name=Adwaita-dark +gtk-icon-theme-name=elementary +gtk-font-name=Cantarell 11 +gtk-cursor-theme-name=elementary +gtk-cursor-theme-size=0 +gtk-toolbar-style=GTK_TOOLBAR_BOTH +gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images=1 +gtk-menu-images=1 +gtk-enable-event-sounds=0 +gtk-enable-input-feedback-sounds=0 +gtk-xft-antialias=1 +gtk-xft-hinting=1 +gtk-xft-hintstyle=hintfull diff --git a/.config/mimeapps.list b/.config/mimeapps.list new file mode 100644 index 0000000..5dbb23a --- /dev/null +++ b/.config/mimeapps.list @@ -0,0 +1,5 @@ +[Default Applications] +x-scheme-handler/nxm=nxm-handler.desktop +image/jpeg=nsxiv.desktop + +# vim: ft=dosini diff --git a/.config/nsxiv/exec/key-handler b/.config/nsxiv/exec/key-handler new file mode 100755 index 0000000..b61dc35 --- /dev/null +++ b/.config/nsxiv/exec/key-handler @@ -0,0 +1,9 @@ +#!/bin/sh + +while read -r file; do + case "$1" in + w) + wallpaper write "$file" + ;; + esac +done diff --git a/.config/picom/picom.conf b/.config/picom/picom.conf new file mode 100644 index 0000000..726053c --- /dev/null +++ b/.config/picom/picom.conf @@ -0,0 +1,121 @@ +################################# +# Shadows # +################################# + +# Enabled client-side shadows on windows. +shadow = false + +# The blur radius for shadows, in pixels. +shadow-radius = 10 + +# The opacity of shadows. (0.0 - 1.0) +shadow-opacity = 0.35 + +# The left offset for shadows, in pixels. +shadow-offset-x = -7 + +# The top offset for shadows, in pixels. +shadow-offset-y = -7 + +# Hex string color value of shadow. +shadow-color = "#030303" + +# Specify a list of conditions of windows that should have no shadow. +shadow-exclude = [ + "class_g = 'Tint2'", + "name = 'Notification'" +] + +################################# +# Fading # +################################# + +# Fade windows in/out when opening/closing and when opacity changes, +# unless no-fading-openclose is used. +fading = false + +# Opacity change between steps while fading in. (0.01 - 1.0) +fade-in-step = 0.16 + +# Opacity change between steps while fading out. (0.01 - 1.0) +fade-out-step = 0.16 + +# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. +no-fading-destroyed-argb = true + +################################# +# Transparency / Opacity # +################################# + +# Opacity of inactive windows. (0.1 - 1.0) +inactive-opacity = 1 + +# Opacity of window titlebars and borders. (0.1 - 1.0) +frame-opacity = 1 + +# Let inactive opacity set by -i override the '_NET_WM_WINDOW_OPACITY' values of windows. +inactive-opacity-override = false + +# Default opacity for active windows. (0.0 - 1.0) +active-opacity = 1.0 + +# Dim inactive windows. (0.0 - 1.0) +inactive-dim = 0.05 + +# Specify a list of conditions of windows that should never be considered focused. +focus-exclude = [ + "class_g = 'Cairo-clock'", + "name *= 'Picture-in-Picture'" +] + +################################# +# Corners # +################################# + +# Sets the radius of rounded window corners. +corner-radius = 0 + +################################# +# Background-Blurring # +################################# + +# Parameters for background blurring, see the *BLUR* section for more information. +# blur-method = "dual_kawase" +# blur-size = 1 +# blur-strength = 5 + +# Specify the blur convolution kernel. +# blur-kern = "3x3box" + +# Exclude conditions for background blur. +# blur-background-exclude = [ +# "window_type = 'dock'", +# "window_type = 'desktop'", +# "_GTK_FRAME_EXTENTS@" +# ] + +################################# +# General Settings # +################################# + +# Specify the backend to use: `xrender`, `glx`, `egl` or `xr_glx_hybrid`. +backend = "glx" + +# Use higher precision during rendering, and apply dither when presenting the +# rendered screen. Reduces banding artifacts, but might cause performance +# degradation. Only works with OpenGL. +dithered-present = false + +# Enable/disable VSync. +vsync = true + +# Disable the use of damage information. +# This cause the whole screen to be redrawn every time, instead of the part of the screen +# has actually changed. Potentially degrades the performance, but might fix some artifacts. +use-damage = true + +# Set the log level. Possible values are: "trace", "debug", "info", "warn", "error" +# in increasing level of importance. Case doesn't matter. +# If using the "TRACE" log level, it's better to log into a file +# using *--log-file*, since it can generate a huge stream of logs. +log-level = "warn" diff --git a/.config/shell/aliases b/.config/shell/aliases new file mode 100755 index 0000000..eb07888 --- /dev/null +++ b/.config/shell/aliases @@ -0,0 +1,23 @@ +#!/bin/sh + +alias sudo='doas' +alias vim='nvim' +alias code='codium' +alias fetch='fastfetch' + +alias cp='cp -iv' +alias mv='mv -iv' +alias rm='rm -vI' +alias mkdir='mkdir -pv' + +alias df='df -h' +alias free='free -h' + +alias ll='ls -alF' +alias la='ls -A' +alias l='ls -CF' + +alias ls='ls --color=auto' +alias grep='grep --color=auto' +alias cat='bat --style=plain' +alias xdg-ninja='xdg-ninja --skip-unsupported' diff --git a/.config/shell/environment b/.config/shell/environment new file mode 100644 index 0000000..1e2542b --- /dev/null +++ b/.config/shell/environment @@ -0,0 +1,31 @@ +#!/bin/sh + +# XDG base directories +[ -z "$XDG_DATA_HOME" ] && export XDG_DATA_HOME="$HOME/.local/share" +[ -z "$XDG_CONFIG_HOME" ] && export XDG_CONFIG_HOME="$HOME/.config" +[ -z "$XDG_STATE_HOME" ] && export XDG_STATE_HOME="$HOME/.local/state" +[ -z "$XDG_CACHE_HOME" ] && export XDG_CACHE_HOME="$HOME/.cache" + +# Local directories in $PATH +[ -d "$HOME/.local/bin" ] && export PATH="$PATH:$HOME/.local/bin" +[ -d "$HOME/.local/bin/runners" ] && export PATH="$PATH:$HOME/.local/bin/runners" +[ -d "$HOME/.local/bin/screenlayouts" ] && export PATH="$PATH:$HOME/.local/bin/screenlayouts" +[ -d "$HOME/.local/bin/statusbar" ] && export PATH="$PATH:$HOME/.local/bin/statusbar" + +# Default programs +export TERMINAL="${TERMINAL:-st}" +export EDITOR="${EDITOR:-nvim}" +export VISUAL="${VISUAL:-codium}" +export BROWSER="${BROWSER:-firefox}" + +# $HOME cleanup +export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" +export GOPATH="$XDG_DATA_HOME/go" +export RUSTUP_HOME="$XDG_DATA_HOME/rustup" +export CARGO_HOME="$XDG_DATA_HOME/cargo" +export XCURSOR_PATH="/usr/share/icons:$XDG_DATA_HOME/icons" +export GNUPGHOME="$XDG_DATA_HOME/gnupg" +export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history" +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" +export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv" +export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" diff --git a/.config/shell/functions/skinstall b/.config/shell/functions/skinstall new file mode 100755 index 0000000..524e787 --- /dev/null +++ b/.config/shell/functions/skinstall @@ -0,0 +1,7 @@ +#!/bin/sh + +skinstall() { + rm config.h + make || return + doas make install +} diff --git a/.config/user-dirs.dirs b/.config/user-dirs.dirs new file mode 100644 index 0000000..dae7f21 --- /dev/null +++ b/.config/user-dirs.dirs @@ -0,0 +1,10 @@ +XDG_DESKTOP_DIR="$HOME/" +XDG_DOCUMENTS_DIR="$HOME/documents" +XDG_DOWNLOAD_DIR="$HOME/downloads" +XDG_MUSIC_DIR="$HOME/music" +XDG_PICTURES_DIR="$HOME/pictures" +XDG_VIDEOS_DIR="$HOME/videos" +XDG_TEMPLATES_DIR="$HOME/templates" +XDG_PUBLICSHARE_DIR="$HOME/public" + +# vim: ft=sh diff --git a/.local/bin/proton-nv b/.local/bin/proton-nv new file mode 100755 index 0000000..d0be0b2 --- /dev/null +++ b/.local/bin/proton-nv @@ -0,0 +1,20 @@ +#!/bin/sh + +# Wrapper around Valve's Proton to launch Fallout: New Vegas + +set -u + +APPID=22380 +STEAM="/mnt/storage/Steam" +PROTON="$STEAM/steamapps/common/Proton - Experimental/files" + +export WINEESYNC=1 +export WINEFSYNC=1 +export WINEARCH=win64 +export WINEPREFIX="$STEAM/steamapps/compatdata/$APPID/pfx" +export WINESERVER="$PROTON/bin/wineserver" +export WINELOADER="$PROTON/bin/wine" +export WINEDLLPATH="$PROTON/lib/wine:$PROTON/lib64/wine" +export PATH="$PROTON/bin:$PATH" + +exec "$@" diff --git a/.local/bin/runners/run-i3lock b/.local/bin/runners/run-i3lock new file mode 100755 index 0000000..207ab4e --- /dev/null +++ b/.local/bin/runners/run-i3lock @@ -0,0 +1,10 @@ +#!/bin/sh + +file_name=$(readlink -f "$XDG_DATA_HOME/wallpaper") +file_name=${file_name##*/} + +destination=/tmp/lock_${file_name} + +[ -f "$destination" ] || convert -quality 80 -resize 1920x1080 "$XDG_DATA_HOME/wallpaper" "$destination" + +i3lock -i "$destination" -F diff --git a/.local/bin/screenlayout b/.local/bin/screenlayout new file mode 100755 index 0000000..5bb41b6 --- /dev/null +++ b/.local/bin/screenlayout @@ -0,0 +1,6 @@ +#!/bin/sh + +choice="$HOME/.local/bin/screenlayouts/$(find "$HOME/.local/bin/screenlayouts" -type f -printf '%f\n' | sort | dmenu -p screenlayout)" || exit 0 + +ln -sf "$choice" "$XDG_DATA_HOME/screenlayout" +. "$XDG_DATA_HOME/screenlayout" diff --git a/.local/bin/screenlayouts/sl-external b/.local/bin/screenlayouts/sl-external new file mode 100755 index 0000000..66d808c --- /dev/null +++ b/.local/bin/screenlayouts/sl-external @@ -0,0 +1,2 @@ +#!/bin/sh +xrandr --output eDP-1 --off --output DP-1 --off --output HDMI-1 --off --output HDMI-2 --primary --mode 1920x1080 --pos 0x0 --rotate normal diff --git a/.local/bin/statusbar/sb-battery b/.local/bin/statusbar/sb-battery new file mode 100755 index 0000000..83394da --- /dev/null +++ b/.local/bin/statusbar/sb-battery @@ -0,0 +1,5 @@ +#!/bin/sh + +read -r capacity < /sys/class/power_supply/BAT1/capacity + +printf '[BAT %s%%]\n' "$capacity" diff --git a/.local/bin/statusbar/sb-date b/.local/bin/statusbar/sb-date new file mode 100755 index 0000000..4dd2188 --- /dev/null +++ b/.local/bin/statusbar/sb-date @@ -0,0 +1,5 @@ +#!/bin/sh + +_date=$(date '+%b %-d %Y %-I:%M %p') + +printf '[%s]\n' "$_date" diff --git a/.local/bin/statusbar/sb-memory b/.local/bin/statusbar/sb-memory new file mode 100755 index 0000000..4b6b428 --- /dev/null +++ b/.local/bin/statusbar/sb-memory @@ -0,0 +1,5 @@ +#!/bin/sh + +memory=$(free -h | awk '/Mem/ {printf "%s/%s\n", $3, $2}' | sed 's/Gi/G/g; s/Mi/M/g') + +printf '[MEM %s]\n' "$memory" diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume new file mode 100755 index 0000000..e4d6428 --- /dev/null +++ b/.local/bin/statusbar/sb-volume @@ -0,0 +1,21 @@ +#!/bin/sh + +volume=$(wpctl get-volume @DEFAULT_AUDIO_SINK@) +volume=${volume##Volume: } +volume=${volume%%.*}${volume##*.} + +case "$volume" in + *MUTED*) + muted=1 + volume=${volume%% \[MUTED\]} + ;; +esac + +volume=${volume#0} +volume=${volume#0} + +if [ -z "$muted" ]; then + printf '[VOL %s%%]\n' "$volume" +else + printf '[VOL %s%% M]\n' "$volume" +fi diff --git a/.local/bin/wallpaper b/.local/bin/wallpaper new file mode 100755 index 0000000..2ef5b58 --- /dev/null +++ b/.local/bin/wallpaper @@ -0,0 +1,14 @@ +#!/bin/sh + +case "$1" in + view) + find "$HOME/pictures/wallpapers" -type f -name '*.jpg' -o -name '*.jpeg' -o -name '*.png' | shuf | nsxiv -it + ;; + write) + ln -sf "$2" "$XDG_DATA_HOME/wallpaper" + xwallpaper --zoom "$XDG_DATA_HOME/wallpaper" + ;; + restore) + xwallpaper --zoom "$XDG_DATA_HOME/wallpaper" + ;; +esac diff --git a/.local/share/applications/browser.desktop b/.local/share/applications/browser.desktop new file mode 100755 index 0000000..4f9ed0c --- /dev/null +++ b/.local/share/applications/browser.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Browser +Exec=firefox %u +Icon=firefox diff --git a/.local/share/applications/editor.desktop b/.local/share/applications/editor.desktop new file mode 100755 index 0000000..e710c52 --- /dev/null +++ b/.local/share/applications/editor.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Text Editor +Exec=codium %u +Icon=vscodium diff --git a/.local/share/applications/file.desktop b/.local/share/applications/file.desktop new file mode 100755 index 0000000..0aca098 --- /dev/null +++ b/.local/share/applications/file.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=File Manager +Exec=thunar %u +Icon=org.xfce.thunar diff --git a/.local/share/applications/nxm-handler.desktop b/.local/share/applications/nxm-handler.desktop new file mode 100755 index 0000000..5ef0565 --- /dev/null +++ b/.local/share/applications/nxm-handler.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=NXM Scheme Handler +Exec=newvegas wine /mnt/storage/Software/ModOrganizer2/nxmhandler.exe %u +StartupNotify=false +MimeType=x-scheme-handler/nxm diff --git a/.local/share/applications/terminal.desktop b/.local/share/applications/terminal.desktop new file mode 100755 index 0000000..a8888ad --- /dev/null +++ b/.local/share/applications/terminal.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Type=Application +Name=Terminal +Exec=st %u +Icon=utilities-terminal diff --git a/.local/share/icons/default/index.theme b/.local/share/icons/default/index.theme new file mode 100644 index 0000000..e836c91 --- /dev/null +++ b/.local/share/icons/default/index.theme @@ -0,0 +1,4 @@ +[Icon Theme] +Name=Default +Comment=Default Cursor Theme +Inherits=elementary diff --git a/.local/share/runit/sv/dunst/run b/.local/share/runit/sv/dunst/run new file mode 100755 index 0000000..e84b9ea --- /dev/null +++ b/.local/share/runit/sv/dunst/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec dunst 2>&1 diff --git a/.local/share/runit/sv/picom/run b/.local/share/runit/sv/picom/run new file mode 100755 index 0000000..0749b9a --- /dev/null +++ b/.local/share/runit/sv/picom/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec picom 2>&1 diff --git a/.local/share/runit/sv/pipewire-pulse/run b/.local/share/runit/sv/pipewire-pulse/run new file mode 100755 index 0000000..6bd84a3 --- /dev/null +++ b/.local/share/runit/sv/pipewire-pulse/run @@ -0,0 +1,5 @@ +#!/bin/sh + +sv check "$HOME/.runit/sv/wireplumber" >/dev/null || exit 1 + +exec pipewire-pulse 2>&1 diff --git a/.local/share/runit/sv/pipewire/run b/.local/share/runit/sv/pipewire/run new file mode 100755 index 0000000..32744c8 --- /dev/null +++ b/.local/share/runit/sv/pipewire/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec pipewire 2>&1 diff --git a/.local/share/runit/sv/sxhkd/run b/.local/share/runit/sv/sxhkd/run new file mode 100755 index 0000000..2c8fb58 --- /dev/null +++ b/.local/share/runit/sv/sxhkd/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec sxhkd 2>&1 diff --git a/.local/share/runit/sv/udiskie/run b/.local/share/runit/sv/udiskie/run new file mode 100755 index 0000000..d525bb1 --- /dev/null +++ b/.local/share/runit/sv/udiskie/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec udiskie diff --git a/.local/share/runit/sv/wireplumber/run b/.local/share/runit/sv/wireplumber/run new file mode 100755 index 0000000..ced7e05 --- /dev/null +++ b/.local/share/runit/sv/wireplumber/run @@ -0,0 +1,5 @@ +#!/bin/sh + +sv check "$HOME/.runit/sv/pipewire" >/dev/null || exit 1 + +exec wireplumber 2>&1 \ No newline at end of file diff --git a/.local/share/screenlayout b/.local/share/screenlayout new file mode 120000 index 0000000..3337b2a --- /dev/null +++ b/.local/share/screenlayout @@ -0,0 +1 @@ +/home/frosty/.local/bin/screenlayouts/sl-external \ No newline at end of file diff --git a/.local/share/wallpaper b/.local/share/wallpaper new file mode 120000 index 0000000..be73aec --- /dev/null +++ b/.local/share/wallpaper @@ -0,0 +1 @@ +/home/frosty/pictures/wallpapers/1706124226302274.jpg \ No newline at end of file diff --git a/.xinitrc b/.xinitrc new file mode 100755 index 0000000..707ccc9 --- /dev/null +++ b/.xinitrc @@ -0,0 +1,21 @@ +#!/bin/sh + +xrandr --dpi 96 +# shellcheck disable=SC1091 +. "$XDG_DATA_HOME/screenlayout" +xwallpaper --zoom "$XDG_DATA_HOME/wallpaper" +xrdb -merge "$HOME/.Xresources" + +xinput set-prop "SOAI USB Gaming Mouse" "libinput Accel Profile Enabled" 0 1 0 +xinput set-prop "SOAI USB Gaming Mouse" "libinput Accel Speed" 0 + +pipewire & +wireplumber & +pipewire-pulse & +udiskie & +dunst & +picom & +sxhkd & +dwmblocks & + +exec dbus-launch dwm diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..0be2233 --- /dev/null +++ b/.zprofile @@ -0,0 +1,3 @@ +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/environment" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/environment" + +[ -f "$HOME/.bashrc" ] && . "$HOME/.bashrc" diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..5948f11 --- /dev/null +++ b/.zshrc @@ -0,0 +1,24 @@ +setopt autocd +setopt nocaseglob +setopt histverify +setopt correct +setopt histreduceblanks + +PS1='%F{blue}%~ %(?.%F{green}.%F{red})%#%f ' + +[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/aliases" + +if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/shell/functions" ]; then + for func in "${XDG_CONFIG_HOME:-$HOME/.config}"/shell/functions/*; do + . "$func" + done + unset func +fi + +if [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/zsh/plugins" ]; then + for plug in "${XDG_DATA_HOME:-$HOME/.local/share}"/zsh/plugins/*/*.plugin.zsh; do + # shellcheck disable=SC1090 + . "$plug" + done + unset plug +fi