diff --git a/LICENSE b/LICENSE index d0a4298..3baa36d 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Riley Smith +Copyright (c) 2021 Riley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dot_bashrc b/dot_bashrc deleted file mode 100644 index 4867274..0000000 --- a/dot_bashrc +++ /dev/null @@ -1,33 +0,0 @@ -# -# ~/.bashrc -# - -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -# alias ls='ls --color=auto' -# PS1='[\u@\h \W]\$ ' - - -# Change the window title of X terminals -case ${TERM} in - xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*) - PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' - ;; - screen*) - PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' - ;; -esac - - -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -export SVDIR=/run/runit/service -export LC_ALL=en_US.UTF-8 -export EDITOR=nvim - - -# BEGIN_KITTY_SHELL_INTEGRATION -if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi -# END_KITTY_SHELL_INTEGRATION diff --git a/dot_config/i3/config b/dot_config/i3/config index 030cb15..54d805b 100644 --- a/dot_config/i3/config +++ b/dot_config/i3/config @@ -10,7 +10,7 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 - +floating_modifier Mod4 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 @@ -30,7 +30,9 @@ exec --no-startup-id dex --autostart --environment i3 # screen before suspend. Use loginctl lock-session to lock your screen. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork -#exec_always --no-startup-id $HOME/.config/polybar/launch.sh +exec_always --no-startup-id $HOME/.config/polybar/launch.sh + +exec --no-startup-id feh --bg-scale Downloads/wallhaven-z8odwg.jpg # Use pactl to adjust volume in PulseAudio. set $refresh_i3status killall -SIGUSR1 i3status @@ -193,8 +195,8 @@ default_floating_border pixel 1 hide_edge_borders smart #gaps -gaps inner 15 -gaps top 5 +gaps inner 8 +gaps top 2 # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) diff --git a/dot_config/polybar/config b/dot_config/polybar/config index 99968ad..557f9d0 100644 --- a/dot_config/polybar/config +++ b/dot_config/polybar/config @@ -29,7 +29,7 @@ secondary = #e60053 alert = #bd2c40 [bar/example] -;monitor = ${env:MONITOR:DP-3} +monitor = ${env:MONITOR:} width = 100% height = 24 ;offset-x = 1% diff --git a/dot_config/polybar/executable_launch.sh b/dot_config/polybar/executable_launch.sh index 8f68a84..957f4d6 100644 --- a/dot_config/polybar/executable_launch.sh +++ b/dot_config/polybar/executable_launch.sh @@ -5,8 +5,15 @@ killall -q polybar # If all your bars have ipc enabled, you can also use # polybar-msg cmd quit -# Launch bar1 and bar2 -echo "---" | tee -a /tmp/polybar1.log -polybar main 2>&1 | tee -a /tmp/polybar1.log & disown +#echo "---" | tee -a /tmp/polybar1.log +#polybar example 2>&1 | tee -a /tmp/polybar1.log & disown + +if type "xrandr"; then + for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do + MONITOR=$m polybar --reload example & + done +else + polybar --reload example & +fi echo "Bars launched..." diff --git a/dot_config/rofi/config.rasi b/dot_config/rofi/config.rasi index d562ecb..219e0ee 100644 --- a/dot_config/rofi/config.rasi +++ b/dot_config/rofi/config.rasi @@ -144,3 +144,4 @@ configuration { sorting-method: "name"; } } +@theme "/usr/share/rofi/themes/Arc-Dark.rasi" diff --git a/dot_zshenv b/dot_zshenv new file mode 100644 index 0000000..bb15fff --- /dev/null +++ b/dot_zshenv @@ -0,0 +1,6 @@ +if [ -n "$DESKTOP_SESSION" ];then + eval $(gnome-keyring-daemon --start) + export SSH_AUTH_SOCK +fi + +export SHELL=/bin/zsh diff --git a/dot_zshrc b/dot_zshrc new file mode 100644 index 0000000..a52803c --- /dev/null +++ b/dot_zshrc @@ -0,0 +1,104 @@ +# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. +# Initialization code that may require console input (password prompts, [y/n] +# confirmations, etc.) must go above this block; everything else may go below. +if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then + source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" +fi + +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:/usr/local/bin:$PATH + +# Path to your oh-my-zsh installation. +export ZSH="$HOME/.oh-my-zsh" + +# Set name of the theme to load --- if set to "random", it will +# load a random theme each time oh-my-zsh is loaded, in which case, +# to know which specific one was loaded, run: echo $RANDOM_THEME +# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes +ZSH_THEME="powerlevel10k/powerlevel10k" + +# Set list of themes to pick from when loading at random +# Setting this variable when ZSH_THEME=random will cause zsh to load +# a theme from this variable instead of looking in $ZSH/themes/ +# If set to an empty array, this variable will have no effect. +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) + +# Uncomment the following line to use case-sensitive completion. +# CASE_SENSITIVE="true" + +# Uncomment the following line to use hyphen-insensitive completion. +# Case-sensitive completion must be off. _ and - will be interchangeable. +# HYPHEN_INSENSITIVE="true" + +# Uncomment one of the following lines to change the auto-update behavior +# zstyle ':omz:update' mode disabled # disable automatic updates +# zstyle ':omz:update' mode auto # update automatically without asking +# zstyle ':omz:update' mode reminder # just remind me to update when it's time + +# Uncomment the following line to change how often to auto-update (in days). +# zstyle ':omz:update' frequency 13 + +# Uncomment the following line if pasting URLs and other text is messed up. +# DISABLE_MAGIC_FUNCTIONS="true" + +# Uncomment the following line to disable colors in ls. +# DISABLE_LS_COLORS="true" + +# Uncomment the following line to disable auto-setting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment the following line to enable command auto-correction. +# ENABLE_CORRECTION="true" + +# Uncomment the following line to display red dots whilst waiting for completion. +# You can also set it to another string to have that shown instead of the default red dots. +# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" +# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) +# COMPLETION_WAITING_DOTS="true" + +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. +# DISABLE_UNTRACKED_FILES_DIRTY="true" + +# Uncomment the following line if you want to change the command execution time +# stamp shown in the history command output. +# You can set one of the optional three formats: +# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# or set a custom format using the strftime function format specifications, +# see 'man strftime' for details. +# HIST_STAMPS="mm/dd/yyyy" + +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder + +# Which plugins would you like to load? +# Standard plugins can be found in $ZSH/plugins/ +# Custom plugins may be added to $ZSH_CUSTOM/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(git) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +# aliases +# replace ls with exa +alias ls="exa" + +#replace cat with bat +alias cat="bat" + +#replace vim and vi with nvim +alias vim="nvim" +alias vi="nvim" + +export MOZ_DBUS_REMOTE=1 +export MOZ_ENABLE_WAYLAND=1 +export VOLTA_HOME="$HOME/.volta" +export PATH="$HOME/Local Repos/depot_tools:$VOLTA_HOME/bin:$PATH" +export CHROME_EXECUTABLE=/usr/bin/chromium +# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. +[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh +export PATH=$PATH:/home/pixel/.spicetify