Added more laptop configs
This commit is contained in:
45
laptop/dotfiles/config
Normal file
45
laptop/dotfiles/config
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
manager_directory = "/home/eesim/.dotfiles"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.config/sway/config"
|
||||||
|
manager_path = "laptop/sway/config"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.config/alacritty/alacritty.toml"
|
||||||
|
manager_path = "laptop/alacritty/alacritty.toml"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.config/rofi/config.rasi"
|
||||||
|
manager_path = "laptop/rofi/config.rasi"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.config/nvim/init.lua"
|
||||||
|
manager_path = "laptop/nvim/init.lua"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.config/nvim/lua/config"
|
||||||
|
manager_path = "laptop/nvim/lua/config"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.tmux.conf"
|
||||||
|
manager_path = "laptop/tmux/.tmux.conf"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.zshrc"
|
||||||
|
manager_path = "laptop/zsh/.zshrc"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.zimrc"
|
||||||
|
manager_path = "laptop/zsh/.zimrc"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.gitconfig"
|
||||||
|
manager_path = "laptop/git/.gitconfig"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.config/waybar"
|
||||||
|
manager_path = "laptop/waybar"
|
||||||
|
|
||||||
|
[[dotfiles]]
|
||||||
|
system_path = "/home/eesim/.config/dotfiles/config"
|
||||||
|
manager_path = "laptop/dotfiles/config"
|
||||||
5
laptop/git/.gitconfig
Normal file
5
laptop/git/.gitconfig
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
[user]
|
||||||
|
name = Simmer505
|
||||||
|
email = eesimmons9105@gmail.com
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
20
laptop/tmux/.tmux.conf
Normal file
20
laptop/tmux/.tmux.conf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
unbind C-b
|
||||||
|
set-option -g prefix C-a
|
||||||
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
|
unbind-key '"'
|
||||||
|
unbind-key %
|
||||||
|
bind-key | split-window -h -c "#{pane_current_path}"
|
||||||
|
bind-key - split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
bind-key h select-pane -L
|
||||||
|
bind-key j select-pane -D
|
||||||
|
bind-key k select-pane -U
|
||||||
|
bind-key l select-pane -R
|
||||||
|
bind-key -r H resize-pane -L 5
|
||||||
|
bind-key -r J resize-pane -D 5
|
||||||
|
bind-key -r K resize-pane -U 5
|
||||||
|
bind-key -r L resize-pane -R 5
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
80
laptop/waybar/config
Normal file
80
laptop/waybar/config
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
{
|
||||||
|
"layer": "top", // Waybar at top layer
|
||||||
|
"output": "eDP-1",
|
||||||
|
"position": "top", // Waybar position (top|bottom|left|right)
|
||||||
|
"height": 30, // Waybar height (to be removed for auto height)
|
||||||
|
"spacing": 4, // Gaps between modules (4px)
|
||||||
|
// Choose the order of the modules
|
||||||
|
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
|
||||||
|
"modules-center": ["sway/window"],
|
||||||
|
"modules-right": ["idle_inhibitor", "pulseaudio", "cpu", "memory", "battery", "clock"],
|
||||||
|
// Modules configuration
|
||||||
|
"sway/workspaces": {
|
||||||
|
"disable-scroll": true,
|
||||||
|
"all-outputs": false,
|
||||||
|
"format": "{name}: {icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"1": "",
|
||||||
|
"2": "",
|
||||||
|
"3": "",
|
||||||
|
"urgent": "",
|
||||||
|
"focused": "",
|
||||||
|
"default": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sway/mode": {
|
||||||
|
"format": "<span style=\"italic\">{}</span>"
|
||||||
|
},
|
||||||
|
"sway/scratchpad": {
|
||||||
|
"format": "{icon} {count}",
|
||||||
|
"show-empty": false,
|
||||||
|
"format-icons": ["", ""],
|
||||||
|
"tooltip": true,
|
||||||
|
"tooltip-format": "{app}: {title}"
|
||||||
|
},
|
||||||
|
"idle_inhibitor": {
|
||||||
|
"format": "{icon}",
|
||||||
|
"format-icons": {
|
||||||
|
"activated": "",
|
||||||
|
"deactivated": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tray": {
|
||||||
|
// "icon-size": 21,
|
||||||
|
"spacing": 10
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
// "timezone": "America/New_York",
|
||||||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||||||
|
"format": "{:%I:%M %p}",
|
||||||
|
"format-alt": "{:%Y-%m-%d}"
|
||||||
|
},
|
||||||
|
"battery": {
|
||||||
|
"format": "{capacity}% "
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": "{usage}% ",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"memory": {
|
||||||
|
"format": "{}% "
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
// "scroll-step": 1, // %, can be a float
|
||||||
|
"format": "{volume}% {icon}",
|
||||||
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||||
|
"format-bluetooth-muted": " {icon} {format_source}",
|
||||||
|
"format-muted": " {format_source}",
|
||||||
|
"format-source": "{volume}% ",
|
||||||
|
"format-source-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"headphone": "",
|
||||||
|
"hands-free": "",
|
||||||
|
"headset": "",
|
||||||
|
"phone": "",
|
||||||
|
"portable": "",
|
||||||
|
"car": "",
|
||||||
|
"default": ["", "", ""]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
102
laptop/waybar/style.css
Normal file
102
laptop/waybar/style.css
Normal file
@@ -0,0 +1,102 @@
|
|||||||
|
* {
|
||||||
|
border: none;
|
||||||
|
border-radius: 0;
|
||||||
|
font-family: "Ubuntu Nerd Font";
|
||||||
|
font-size: 16px;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#window {
|
||||||
|
font-weight: bold;
|
||||||
|
font-family: "Ubuntu";
|
||||||
|
}
|
||||||
|
/*
|
||||||
|
#workspaces {
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
padding: 0 5px;
|
||||||
|
background: transparent;
|
||||||
|
color: white;
|
||||||
|
border-top: 2px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.focused {
|
||||||
|
color: #c9545d;
|
||||||
|
border-top: 2px solid #c9545d;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mode {
|
||||||
|
background: #64727D;
|
||||||
|
border-bottom: 3px solid white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #mode, #idle_inhibitor {
|
||||||
|
padding: 0 8px;
|
||||||
|
margin: 0 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery icon {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.charging {
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
to {
|
||||||
|
background-color: #ffffff;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.warning:not(.charging) {
|
||||||
|
color: white;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu {
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory {
|
||||||
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected {
|
||||||
|
background: #f53c3c;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio.muted {
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-spotify {
|
||||||
|
color: rgb(102, 220, 105);
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
64
laptop/zsh/.zimrc
Normal file
64
laptop/zsh/.zimrc
Normal file
@@ -0,0 +1,64 @@
|
|||||||
|
# Start configuration added by Zim install {{{
|
||||||
|
#
|
||||||
|
# This is not sourced during shell startup, and it's only used to configure the
|
||||||
|
# zimfw plugin manager.
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Modules
|
||||||
|
#
|
||||||
|
|
||||||
|
# Sets sane Zsh built-in environment options.
|
||||||
|
zmodule environment
|
||||||
|
# Provides handy git aliases and functions.
|
||||||
|
zmodule git
|
||||||
|
# Applies correct bindkeys for input events.
|
||||||
|
zmodule input
|
||||||
|
# Sets a custom terminal title.
|
||||||
|
zmodule termtitle
|
||||||
|
# Utility aliases and functions. Adds colour to ls, grep and less.
|
||||||
|
zmodule utility
|
||||||
|
|
||||||
|
#
|
||||||
|
# Prompt
|
||||||
|
#
|
||||||
|
|
||||||
|
# Exposes to prompts how long the last command took to execute, used by asciiship.
|
||||||
|
zmodule duration-info
|
||||||
|
# Exposes git repository status information to prompts, used by asciiship.
|
||||||
|
zmodule git-info
|
||||||
|
# A heavily reduced, ASCII-only version of the Spaceship and Starship prompts.
|
||||||
|
zmodule asciiship
|
||||||
|
|
||||||
|
#
|
||||||
|
# Completion
|
||||||
|
#
|
||||||
|
|
||||||
|
# Additional completion definitions for Zsh.
|
||||||
|
zmodule zsh-users/zsh-completions --fpath src
|
||||||
|
# Enables and configures smart and extensive tab completion.
|
||||||
|
# completion must be sourced after all modules that add completion definitions.
|
||||||
|
zmodule completion
|
||||||
|
|
||||||
|
#
|
||||||
|
# Modules that must be initialized last
|
||||||
|
#
|
||||||
|
|
||||||
|
# Fish-like syntax highlighting for Zsh.
|
||||||
|
# zsh-users/zsh-syntax-highlighting must be sourced after completion
|
||||||
|
zmodule zsh-users/zsh-syntax-highlighting
|
||||||
|
# Fish-like history search (up arrow) for Zsh.
|
||||||
|
# zsh-users/zsh-history-substring-search must be sourced after zsh-users/zsh-syntax-highlighting
|
||||||
|
zmodule zsh-users/zsh-history-substring-search
|
||||||
|
# Fish-like autosuggestions for Zsh.
|
||||||
|
zmodule zsh-users/zsh-autosuggestions
|
||||||
|
# }}} End configuration added by Zim install
|
||||||
|
|
||||||
|
zmodule minimal
|
||||||
|
zmodule git-info
|
||||||
|
zmodule prompt-pwd
|
||||||
|
|
||||||
|
zmodule zsh-users/zsh-syntax-highlighting
|
||||||
|
zmodule zsh-users/zsh-autosuggestions
|
||||||
|
|
||||||
|
zmodule jeffreytse/zsh-vi-mode
|
||||||
150
laptop/zsh/.zshrc
Normal file
150
laptop/zsh/.zshrc
Normal file
@@ -0,0 +1,150 @@
|
|||||||
|
# Start configuration added by Zim install {{{
|
||||||
|
#
|
||||||
|
# User configuration sourced by interactive shells
|
||||||
|
#
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# Zsh configuration
|
||||||
|
# -----------------
|
||||||
|
|
||||||
|
#
|
||||||
|
# History
|
||||||
|
#
|
||||||
|
|
||||||
|
# Remove older command from the history if a duplicate is to be added.
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input/output
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set editor default keymap to emacs (`-e`) or vi (`-v`)
|
||||||
|
bindkey -e
|
||||||
|
|
||||||
|
# Prompt for spelling correction of commands.
|
||||||
|
#setopt CORRECT
|
||||||
|
|
||||||
|
# Customize spelling correction prompt.
|
||||||
|
#SPROMPT='zsh: correct %F{red}%R%f to %F{green}%r%f [nyae]? '
|
||||||
|
|
||||||
|
# Remove path separator from WORDCHARS.
|
||||||
|
WORDCHARS=${WORDCHARS//[\/]}
|
||||||
|
|
||||||
|
# -----------------
|
||||||
|
# Zim configuration
|
||||||
|
# -----------------
|
||||||
|
|
||||||
|
# Use degit instead of git as the default tool to install and update modules.
|
||||||
|
#zstyle ':zim:zmodule' use 'degit'
|
||||||
|
|
||||||
|
# --------------------
|
||||||
|
# Module configuration
|
||||||
|
# --------------------
|
||||||
|
|
||||||
|
#
|
||||||
|
# git
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set a custom prefix for the generated aliases. The default prefix is 'G'.
|
||||||
|
#zstyle ':zim:git' aliases-prefix 'g'
|
||||||
|
|
||||||
|
#
|
||||||
|
# input
|
||||||
|
#
|
||||||
|
|
||||||
|
# Append `../` to your input for each `.` you type after an initial `..`
|
||||||
|
#zstyle ':zim:input' double-dot-expand yes
|
||||||
|
|
||||||
|
#
|
||||||
|
# termtitle
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set a custom terminal title format using prompt expansion escape sequences.
|
||||||
|
# See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes
|
||||||
|
# If none is provided, the default '%n@%m: %~' is used.
|
||||||
|
#zstyle ':zim:termtitle' format '%1~'
|
||||||
|
|
||||||
|
#
|
||||||
|
# zsh-autosuggestions
|
||||||
|
#
|
||||||
|
|
||||||
|
# Disable automatic widget re-binding on each precmd. This can be set when
|
||||||
|
# zsh-users/zsh-autosuggestions is the last module in your ~/.zimrc.
|
||||||
|
ZSH_AUTOSUGGEST_MANUAL_REBIND=1
|
||||||
|
|
||||||
|
# Customize the style that the suggestions are shown with.
|
||||||
|
# See https://github.com/zsh-users/zsh-autosuggestions/blob/master/README.md#suggestion-highlight-style
|
||||||
|
#ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=242'
|
||||||
|
|
||||||
|
#
|
||||||
|
# zsh-syntax-highlighting
|
||||||
|
#
|
||||||
|
|
||||||
|
# Set what highlighters will be used.
|
||||||
|
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
|
||||||
|
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets)
|
||||||
|
|
||||||
|
# Customize the main highlighter styles.
|
||||||
|
# See https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters/main.md#how-to-tweak-it
|
||||||
|
#typeset -A ZSH_HIGHLIGHT_STYLES
|
||||||
|
#ZSH_HIGHLIGHT_STYLES[comment]='fg=242'
|
||||||
|
|
||||||
|
# ------------------
|
||||||
|
# Initialize modules
|
||||||
|
# ------------------
|
||||||
|
|
||||||
|
ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
|
||||||
|
# Download zimfw plugin manager if missing.
|
||||||
|
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then
|
||||||
|
if (( ${+commands[curl]} )); then
|
||||||
|
curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \
|
||||||
|
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
|
||||||
|
else
|
||||||
|
mkdir -p ${ZIM_HOME} && wget -nv -O ${ZIM_HOME}/zimfw.zsh \
|
||||||
|
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# Install missing modules, and update ${ZIM_HOME}/init.zsh if missing or outdated.
|
||||||
|
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
|
||||||
|
source ${ZIM_HOME}/zimfw.zsh init -q
|
||||||
|
fi
|
||||||
|
# Initialize modules.
|
||||||
|
source ${ZIM_HOME}/init.zsh
|
||||||
|
|
||||||
|
# ------------------------------
|
||||||
|
# Post-init module configuration
|
||||||
|
# ------------------------------
|
||||||
|
|
||||||
|
#
|
||||||
|
# zsh-history-substring-search
|
||||||
|
#
|
||||||
|
|
||||||
|
zmodload -F zsh/terminfo +p:terminfo
|
||||||
|
# Bind ^[[A/^[[B manually so up/down works both before and after zle-line-init
|
||||||
|
for key ('^[[A' '^P' ${terminfo[kcuu1]}) bindkey ${key} history-substring-search-up
|
||||||
|
for key ('^[[B' '^N' ${terminfo[kcud1]}) bindkey ${key} history-substring-search-down
|
||||||
|
for key ('k') bindkey -M vicmd ${key} history-substring-search-up
|
||||||
|
for key ('j') bindkey -M vicmd ${key} history-substring-search-down
|
||||||
|
unset key
|
||||||
|
# }}} End configuration added by Zim install
|
||||||
|
|
||||||
|
export SUDO_EDITOR=nvim
|
||||||
|
export PATH=$PATH:$HOME/.cargo/bin
|
||||||
|
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
|
||||||
|
alias lftpcapella='lftp -u simmer,abc sftp://capella.usbx.me'
|
||||||
|
alias vim=nvim
|
||||||
|
alias docsearch='cd /usr/share/doc/arch-wiki/html/en/ && fzf | xargs firefox'
|
||||||
|
|
||||||
|
# Download zimfw plugin manager if missing.
|
||||||
|
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then
|
||||||
|
curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \
|
||||||
|
https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install missing modules, and update ${ZIM_HOME}/init.zsh if missing or outdated.
|
||||||
|
if [[ ! ${ZIM_HOME}/init.zsh -nt ${ZDOTDIR:-${HOME}}/.zimrc ]]; then
|
||||||
|
source ${ZIM_HOME}/zimfw.zsh init -q
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user