mirror of
https://github.com/elisspace/dotfiles.git
synced 2026-08-29 15:43:57 +00:00
Initial commits
This commit is contained in:
28
dot_bashrc
Normal file
28
dot_bashrc
Normal file
@@ -0,0 +1,28 @@
|
||||
# .bashrc
|
||||
|
||||
# Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
# User specific environment
|
||||
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
||||
then
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
fi
|
||||
export PATH
|
||||
|
||||
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
||||
# export SYSTEMD_PAGER=
|
||||
|
||||
# User specific aliases and functions
|
||||
if [ -d ~/.bashrc.d ]; then
|
||||
for rc in ~/.bashrc.d/*; do
|
||||
if [ -f "$rc" ]; then
|
||||
. "$rc"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
unset rc
|
||||
. "$HOME/.cargo/env"
|
||||
7
dot_config/espanso/config/default.yml
Normal file
7
dot_config/espanso/config/default.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
# Automatically generated by espanso migration tool
|
||||
# Original file: default.yml
|
||||
|
||||
{
|
||||
search_shortcut: ALT+SHIFT+SPACE
|
||||
}
|
||||
|
||||
167
dot_config/espanso/match/base.yml
Normal file
167
dot_config/espanso/match/base.yml
Normal file
@@ -0,0 +1,167 @@
|
||||
# Automatically generated by espanso migration tool
|
||||
# Original file: default.yml
|
||||
|
||||
matches:
|
||||
- trigger: :resume
|
||||
replace: https://drive.proton.me/urls/XBK5XWE9F0#E9NGEVsf8Ogp
|
||||
|
||||
- trigger: :li
|
||||
replace: https://www.linkedin.com/in/eli-gaultney/
|
||||
- trigger: :tw
|
||||
replace: https://twitter.com/eligaultney
|
||||
- trigger: :gh
|
||||
replace: https://github.com/elisspace
|
||||
- trigger: ":espanso"
|
||||
replace: Hi there!
|
||||
- trigger: cmp
|
||||
replace: comprehension
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: rcmp
|
||||
replace: reading comprehension
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: ss
|
||||
replace: students
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: xfer
|
||||
replace: transfer
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: str
|
||||
replace: struggles
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: cmt
|
||||
replace: comparatives
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: prpl
|
||||
replace: prepositions of place
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: pron
|
||||
replace: pronunciation
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: ans
|
||||
replace: answer
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: pss
|
||||
replace: plural /s/
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: pcont
|
||||
replace: present continuous
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: psimp
|
||||
replace: present simple
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: biz
|
||||
replace: business
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: govt
|
||||
replace: government
|
||||
word: true
|
||||
propagate_case: true
|
||||
- trigger: ":h1"
|
||||
replace: "# "
|
||||
- trigger: ":h2"
|
||||
replace: "## "
|
||||
- trigger: ":h3"
|
||||
replace: "### "
|
||||
- trigger: ":h4"
|
||||
replace: "#### "
|
||||
- trigger: ":h5"
|
||||
replace: "##### "
|
||||
- trigger: ":h6"
|
||||
replace: "###### "
|
||||
- trigger: ":k1"
|
||||
replace: "Kid's Box 1 (RAI/Pre-A1)"
|
||||
- trigger: ":k2"
|
||||
replace: "Kid's Box 2 (COM/Pre-A1)"
|
||||
- trigger: ":k3"
|
||||
replace: "Kid's Box 3 (STA/A1)"
|
||||
- trigger: ":k4"
|
||||
replace: "Kid's Box 4 (HER/A1+)"
|
||||
- trigger: ":k5"
|
||||
replace: "Kid's Box 5 (LEA/A2)"
|
||||
- trigger: ":k6"
|
||||
replace: "Kid's Box 6 (LEG/A2+)"
|
||||
- trigger: ":ts"
|
||||
replace: Think Starter (COL/A1)
|
||||
- trigger: ":t1"
|
||||
replace: Think 1 (DIS/A2)
|
||||
- trigger: ":t2"
|
||||
replace: Think 2 (CHA/B1)
|
||||
- trigger: ":t3"
|
||||
replace: Think 3 (ATL/B1+)
|
||||
- trigger: ":t4"
|
||||
replace: Think 4 (END/B2)
|
||||
- trigger: ":t5"
|
||||
replace: Think 5 (PIO/C1)
|
||||
- trigger: ":aegd"
|
||||
replace: |-
|
||||
## {{mydate}}
|
||||
###
|
||||
-
|
||||
vars:
|
||||
- name: mydate
|
||||
type: date
|
||||
params:
|
||||
format: "%d/%m/%Y"
|
||||
- trigger: ":ielts"
|
||||
replace: |
|
||||
# Name
|
||||
### Speaking Task
|
||||
##### Positives:
|
||||
|
||||
|
||||
##### Improvement Areas:
|
||||
|
||||
|
||||
### Speaking:
|
||||
##### Fluency and Coherence:
|
||||
-
|
||||
##### Lexical Resource:
|
||||
-
|
||||
##### Grammatical Range and Accuracy:
|
||||
-
|
||||
##### Pronunciation:
|
||||
-
|
||||
|
||||
### Writing Task 2:
|
||||
##### Task Response:
|
||||
-
|
||||
##### Coherence and Cohesion:
|
||||
-
|
||||
##### Lexical Resources:
|
||||
-
|
||||
##### Grammatical Range and Accuracy:
|
||||
-
|
||||
- trigger: ":date"
|
||||
replace: "{{mydate}}"
|
||||
vars:
|
||||
- name: mydate
|
||||
type: date
|
||||
params:
|
||||
format: "%d/%m/%Y"
|
||||
- trigger: ":time"
|
||||
replace: "{{mydate}}"
|
||||
vars:
|
||||
- name: mydate
|
||||
type: date
|
||||
params:
|
||||
format: "%T"
|
||||
- trigger: ":shell"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: echo $HOME
|
||||
10
dot_config/espanso/match/packages/all-emojis/README.md
Normal file
10
dot_config/espanso/match/packages/all-emojis/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
All emojis, with all non-conflicting alt names, provided by [gemoji](https://github.com/github/gemoji).
|
||||
|
||||
### Usage
|
||||
|
||||
To use this package, just type the name of the emoji between two colons. For example, to use the `smile`
|
||||
emoji 😄, you can type: `:smile:`
|
||||
|
||||
A list of all the possibile emoji expansions can be found [here](https://www.webfx.com/tools/emoji-cheat-sheet/).
|
||||
|
||||
**Note**: all underscores have been replaced with spaces to make them easier to type. For example `:neutral_face:` is `:neutral face:` in the package.
|
||||
@@ -0,0 +1,7 @@
|
||||
author: FoxxMD
|
||||
description: All emojis, with alt names, provided by gemoji
|
||||
name: all-emojis
|
||||
title: All Emojis
|
||||
version: 0.1.0
|
||||
homepage: "https://github.com/FoxxMD/espanso-all-emojis"
|
||||
tags: ["emoji", "chat"]
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
hub
|
||||
3817
dot_config/espanso/match/packages/all-emojis/package.yml
Normal file
3817
dot_config/espanso/match/packages/all-emojis/package.yml
Normal file
File diff suppressed because it is too large
Load Diff
13
dot_config/espanso/match/packages/shruggie/README.md
Normal file
13
dot_config/espanso/match/packages/shruggie/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
This package inserts ¯\\_(ツ)_/¯ (the Shruggie) when you type :shrug.
|
||||
|
||||
### Installation
|
||||
|
||||
Install the package with:
|
||||
|
||||
```
|
||||
espanso install shruggie
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
Type `:shrug` get ¯\\_(ツ)_/¯
|
||||
7
dot_config/espanso/match/packages/shruggie/_manifest.yml
Normal file
7
dot_config/espanso/match/packages/shruggie/_manifest.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
author: Spike Ilacqua
|
||||
description: "Display the text emoticon ¯\\_(ツ)_/¯ AKA the Shruggie"
|
||||
name: shruggie
|
||||
title: Shruggie
|
||||
version: 0.1.0
|
||||
homepage: "https://github.com/spikex/shruggie"
|
||||
tags: ["fun", "meme", "emoji", "kaimoji", "ascii"]
|
||||
@@ -0,0 +1,2 @@
|
||||
---
|
||||
hub
|
||||
5
dot_config/espanso/match/packages/shruggie/package.yml
Normal file
5
dot_config/espanso/match/packages/shruggie/package.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
# Shruggie package
|
||||
|
||||
matches:
|
||||
- trigger: ":shrug"
|
||||
replace: "¯\\_(ツ)_/¯"
|
||||
254
dot_config/sway/config
Normal file
254
dot_config/sway/config
Normal file
@@ -0,0 +1,254 @@
|
||||
# Default config for sway
|
||||
#
|
||||
# Copy this to ~/.config/sway/config and edit it to your liking.
|
||||
#
|
||||
# Read `man 5 sway` for a complete reference.
|
||||
|
||||
### Variables
|
||||
#
|
||||
# Logo key. Use Mod1 for Alt.
|
||||
set $mod Mod4
|
||||
# Home row direction keys, like vim
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
# Your preferred terminal emulator
|
||||
set $term foot --term xterm-256color
|
||||
# Your preferred application launcher
|
||||
# Note: pass the final command to swaymsg so that the resulting window can be opened
|
||||
# on the original workspace that the command was run on.
|
||||
set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||
|
||||
### Output configuration
|
||||
#
|
||||
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/)
|
||||
output * bg /usr/share/backgrounds/default.png fill
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# output HDMI-A-1 resolution 1920x1080 position 1920,0
|
||||
#
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
|
||||
### Idle configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# exec swayidle -w \
|
||||
# timeout 300 'swaylock -f -c 000000' \
|
||||
# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
# before-sleep 'swaylock -f -c 000000'
|
||||
#
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
#
|
||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
|
||||
### Key bindings
|
||||
#
|
||||
# Basics:
|
||||
#
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Drag floating windows by holding down $mod and left mouse button.
|
||||
# Resize them with right mouse button + $mod.
|
||||
# Despite the name, also works for non-floating windows.
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
|
||||
#
|
||||
# Moving around:
|
||||
#
|
||||
# Move your focus around
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# Move the focused window with the same, but add Shift
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
# Ditto, with arrow 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
|
||||
#
|
||||
# Workspaces:
|
||||
#
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace number 1
|
||||
bindsym $mod+2 workspace number 2
|
||||
bindsym $mod+3 workspace number 3
|
||||
bindsym $mod+4 workspace number 4
|
||||
bindsym $mod+5 workspace number 5
|
||||
bindsym $mod+6 workspace number 6
|
||||
bindsym $mod+7 workspace number 7
|
||||
bindsym $mod+8 workspace number 8
|
||||
bindsym $mod+9 workspace number 9
|
||||
bindsym $mod+0 workspace number 10
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace number 1
|
||||
bindsym $mod+Shift+2 move container to workspace number 2
|
||||
bindsym $mod+Shift+3 move container to workspace number 3
|
||||
bindsym $mod+Shift+4 move container to workspace number 4
|
||||
bindsym $mod+Shift+5 move container to workspace number 5
|
||||
bindsym $mod+Shift+6 move container to workspace number 6
|
||||
bindsym $mod+Shift+7 move container to workspace number 7
|
||||
bindsym $mod+Shift+8 move container to workspace number 8
|
||||
bindsym $mod+Shift+9 move container to workspace number 9
|
||||
bindsym $mod+Shift+0 move container to workspace number 10
|
||||
# Note: workspaces can have any name you want, not just numbers.
|
||||
# We just use 1-10 as the default.
|
||||
#
|
||||
# Layout stuff:
|
||||
#
|
||||
# You can "split" the current object of your focus with
|
||||
# $mod+b or $mod+v, for horizontal and vertical splits
|
||||
# respectively.
|
||||
bindsym $mod+b splith
|
||||
bindsym $mod+v splitv
|
||||
|
||||
# Switch the current container between different layout styles
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# Move focus to the parent container
|
||||
bindsym $mod+a focus parent
|
||||
#
|
||||
# Scratchpad:
|
||||
#
|
||||
# Sway has a "scratchpad", which is a bag of holding for windows.
|
||||
# You can send windows there and get them back later.
|
||||
|
||||
# Move the currently focused window to the scratchpad
|
||||
bindsym $mod+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 $mod+minus scratchpad show
|
||||
#
|
||||
# Resizing containers:
|
||||
#
|
||||
mode "resize" {
|
||||
# left will shrink the containers width
|
||||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 10px
|
||||
bindsym $down resize grow height 10px
|
||||
bindsym $up resize shrink height 10px
|
||||
bindsym $right resize grow width 10px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 10px
|
||||
bindsym Down resize grow height 10px
|
||||
bindsym Up resize shrink height 10px
|
||||
bindsym Right resize grow width 10px
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Default settings; saved for posterity's sake
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
#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 date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done
|
||||
#
|
||||
# colors {
|
||||
# statusline #ffffff
|
||||
# background #323232
|
||||
# inactive_workspace #32323200 #32323200 #5c5c5c
|
||||
# }
|
||||
#}
|
||||
output eDP-1 scale 1.4
|
||||
default_border pixel 2
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
||||
input type:touchpad {
|
||||
tap enabled
|
||||
natural_scroll enabled
|
||||
dwt enabled
|
||||
scroll_method two_finger
|
||||
tap_button_map lrm
|
||||
}
|
||||
|
||||
#
|
||||
# Screenshots
|
||||
#
|
||||
# capture all screens to clipboard
|
||||
bindsym Shift+Alt+Print exec grim -t png - | wl-copy -t image/png
|
||||
|
||||
# capture the specified screen area to clipboard
|
||||
bindsym Shift+Print exec grim -g "$(slurp)" -t png - | wl-copy -t image/png
|
||||
|
||||
# capture the focused monitor to clipboard
|
||||
bindsym Shift+Control+Print exec grim -o $(swaymsg -t get_outputs | jq -r '.[] | select(.focused) | .name') -t png - | wl-copy -t image/png
|
||||
|
||||
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
bindsym XF86MonBrightnessDown exec brightnessctl -d intel_backlight s 10%-
|
||||
bindsym XF86MonBrightnessUp exec brightnessctl -d intel_backlight s 10%+
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
bindsym XF86Search exec bemenu-run
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
|
||||
160
dot_config/waybar/config
Normal file
160
dot_config/waybar/config
Normal file
@@ -0,0 +1,160 @@
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "custom/media", "sway/window"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "battery", "battery#bat2", "clock", "tray"],
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"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": "{:%H:%M %m-%d}"
|
||||
//"format-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"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": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
}
|
||||
}
|
||||
|
||||
159
dot_config/waybar/config.bak
Normal file
159
dot_config/waybar/config.bak
Normal file
@@ -0,0 +1,159 @@
|
||||
{
|
||||
// "layer": "top", // Waybar at top layer
|
||||
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
||||
"height": 30, // Waybar height (to be removed for auto height)
|
||||
// "width": 1280, // Waybar width
|
||||
"spacing": 4, // Gaps between modules (4px)
|
||||
// Choose the order of the modules
|
||||
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"],
|
||||
// Modules configuration
|
||||
// "sway/workspaces": {
|
||||
// "disable-scroll": true,
|
||||
// "all-outputs": true,
|
||||
// "format": "{name}: {icon}",
|
||||
// "format-icons": {
|
||||
// "1": "",
|
||||
// "2": "",
|
||||
// "3": "",
|
||||
// "4": "",
|
||||
// "5": "",
|
||||
// "urgent": "",
|
||||
// "focused": "",
|
||||
// "default": ""
|
||||
// }
|
||||
// },
|
||||
"keyboard-state": {
|
||||
"numlock": true,
|
||||
"capslock": true,
|
||||
"format": "{name} {icon}",
|
||||
"format-icons": {
|
||||
"locked": "",
|
||||
"unlocked": ""
|
||||
}
|
||||
},
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"mpd": {
|
||||
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
|
||||
"format-disconnected": "Disconnected ",
|
||||
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
|
||||
"unknown-tag": "N/A",
|
||||
"interval": 2,
|
||||
"consume-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"random-icons": {
|
||||
"off": "<span color=\"#f53c3c\"></span> ",
|
||||
"on": " "
|
||||
},
|
||||
"repeat-icons": {
|
||||
"on": " "
|
||||
},
|
||||
"single-icons": {
|
||||
"on": "1 "
|
||||
},
|
||||
"state-icons": {
|
||||
"paused": "",
|
||||
"playing": ""
|
||||
},
|
||||
"tooltip-format": "MPD (connected)",
|
||||
"tooltip-format-disconnected": "MPD (disconnected)"
|
||||
},
|
||||
"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-alt": "{:%Y-%m-%d}"
|
||||
},
|
||||
"cpu": {
|
||||
"format": "{usage}% ",
|
||||
"tooltip": false
|
||||
},
|
||||
"memory": {
|
||||
"format": "{}% "
|
||||
},
|
||||
"temperature": {
|
||||
// "thermal-zone": 2,
|
||||
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||
"critical-threshold": 80,
|
||||
// "format-critical": "{temperatureC}°C {icon}",
|
||||
"format": "{temperatureC}°C {icon}",
|
||||
"format-icons": ["", "", ""]
|
||||
},
|
||||
"backlight": {
|
||||
// "device": "acpi_video1",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", ""]
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
// "format-good": "", // An empty format will hide the module
|
||||
// "format-full": "",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"battery#bat2": {
|
||||
"bat": "BAT2"
|
||||
},
|
||||
"network": {
|
||||
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
||||
"format-wifi": "{essid} ({signalStrength}%) ",
|
||||
"format-ethernet": "{ipaddr}/{cidr} ",
|
||||
"tooltip-format": "{ifname} via {gwaddr} ",
|
||||
"format-linked": "{ifname} (No IP) ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"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": ["", "", ""]
|
||||
},
|
||||
"on-click": "pavucontrol"
|
||||
},
|
||||
"custom/media": {
|
||||
"format": "{icon} {}",
|
||||
"return-type": "json",
|
||||
"max-length": 40,
|
||||
"format-icons": {
|
||||
"spotify": "",
|
||||
"default": "🎜"
|
||||
},
|
||||
"escape": true,
|
||||
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
||||
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
|
||||
}
|
||||
}
|
||||
|
||||
254
dot_config/waybar/style.css
Normal file
254
dot_config/waybar/style.css
Normal file
@@ -0,0 +1,254 @@
|
||||
* {
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.5);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
/*
|
||||
window#waybar.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
window#waybar.solo {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
*/
|
||||
|
||||
window#waybar.termite {
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
window#waybar.chromium {
|
||||
background-color: #000000;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each workspace name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
#workspaces button:hover {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: #9b59b6;
|
||||
}
|
||||
|
||||
#disk {
|
||||
background-color: #964B00;
|
||||
}
|
||||
|
||||
#backlight {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#network {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
background-color: #90b1b1;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#custom-media {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
min-width: 100px;
|
||||
}
|
||||
|
||||
#custom-media.custom-spotify {
|
||||
background-color: #66cc99;
|
||||
}
|
||||
|
||||
#custom-media.custom-vlc {
|
||||
background-color: #ffa000;
|
||||
}
|
||||
|
||||
#temperature {
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#tray {
|
||||
background-color: #2980b9;
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
-gtk-icon-effect: dim;
|
||||
}
|
||||
|
||||
#tray > .needs-attention {
|
||||
-gtk-icon-effect: highlight;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
background-color: #2d3436;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
background-color: #ecf0f1;
|
||||
color: #2d3436;
|
||||
}
|
||||
|
||||
#mpd {
|
||||
background-color: #66cc99;
|
||||
color: #2a5c45;
|
||||
}
|
||||
|
||||
#mpd.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
|
||||
#mpd.stopped {
|
||||
background-color: #90b1b1;
|
||||
}
|
||||
|
||||
#mpd.paused {
|
||||
background-color: #51a37a;
|
||||
}
|
||||
|
||||
#language {
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state {
|
||||
background: #97e1ad;
|
||||
color: #000000;
|
||||
padding: 0 0px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
}
|
||||
|
||||
#keyboard-state > label {
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
#keyboard-state > label.locked {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
27
dot_vimrc
Normal file
27
dot_vimrc
Normal file
@@ -0,0 +1,27 @@
|
||||
" highlight syntax
|
||||
syntax on
|
||||
|
||||
" show line numbers
|
||||
set number
|
||||
" (also `set nu` works)
|
||||
|
||||
" disable the swapfile
|
||||
set noswapfile
|
||||
|
||||
" highlight all results
|
||||
set hlsearch
|
||||
|
||||
" ignore case in search
|
||||
set ignorecase
|
||||
|
||||
" remap escape key for leaving insert mode
|
||||
inoremap jk <ESC>
|
||||
|
||||
" change your leader key for shortcuts
|
||||
let mapleader = "'"
|
||||
|
||||
" show search results as you type
|
||||
set incsearch
|
||||
|
||||
" enable filetype detction, and loading of filetype plugins
|
||||
filetype plugin on
|
||||
129
dot_zshrc
Normal file
129
dot_zshrc
Normal file
@@ -0,0 +1,129 @@
|
||||
# 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="robbyrussell"
|
||||
|
||||
# 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
|
||||
python
|
||||
pip
|
||||
colored-man-pages
|
||||
cp
|
||||
safe-paste
|
||||
web-search
|
||||
zsh-syntax-highlighting
|
||||
zsh-autosuggestions
|
||||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Set preferred editor as vim
|
||||
export EDITOR='vim'
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# Add path items the zsh way
|
||||
path+=~/go/bin
|
||||
path+=/opt/metasploit-framework/bin
|
||||
# Prompt
|
||||
PROMPT="%F{red}┌[%f%F{cyan}%m%f%F{red}]─[%f%F{yellow}%D{%H:%M-%d/%m}%f%F{red}]─[%f%F{magenta}%d%f%F{red}]%f"$'\n'"%F{red}└╼%f%F{green}$USER%f%F{yellow}$%f"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
alias ls='ls -lAh --color'
|
||||
alias discord='Discord'
|
||||
alias obs='cd /home/eli/Applications && ./Obsidian-0.14.6.AppImage'
|
||||
|
||||
### Optional version to replace `take` functionality that only oh-my-zsh has
|
||||
#mkd() {
|
||||
#mkdir -p "$@" && cd "$@"
|
||||
#}
|
||||
eval "$(starship init zsh)"
|
||||
142
readme.md
Normal file
142
readme.md
Normal file
@@ -0,0 +1,142 @@
|
||||
# Linux
|
||||
|
||||
## Codium
|
||||
1. Use this [link](https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo)
|
||||
|
||||
## ExploitDB / Searchsploit
|
||||
On \*nix systems, all you really need is either “CoreUtils” or “utilities” (e.g. bash, sed, grep, awk, etc.), as well as git. These are installed by default on many different Linux distributions, including OS X/macOS.
|
||||
|
||||
In `~/git`:
|
||||
`git clone https://github.com/offensive-security/exploitdb.git`
|
||||
|
||||
To run:
|
||||
`~/git/searchsploit [search term]`
|
||||
|
||||
## Fedora
|
||||
1. (RHEL-based) `sudo dnf upgrade`
|
||||
|
||||
### VMs
|
||||
1. Look at instructions [here]([200~https://docs.fedoraproject.org/en-US/quick-docs/getting-started-with-virtualization/)
|
||||
2. (not sure) Install `spice-vdagent` on guest OS?
|
||||
3. `systemctl start spice-vdagent` on host (Fedora)
|
||||
1. Enable it?
|
||||
|
||||
### Espanso
|
||||
1. Follow Wayland instructions and [compile from source](https://espanso.org/docs/install/linux/#install-on-wayland)
|
||||
1. copy to usual git folder in home directory (`~/git`)
|
||||
2. mv compiled binary to /usr/local/bin per instructions; consider a link in the future?
|
||||
3. `cp -r ~/git/dotfiles/espanso ~/.config`
|
||||
|
||||
### Vim
|
||||
1. `sudo dnf install vim-enhanced` as it comes with vi-minimal initially
|
||||
2. `cp ~/git/dotfiles/vimrc ~/.vimrc`
|
||||
|
||||
### VirtualBox
|
||||
1. Disable Secure Boot before installing rpm downloaded from official site, otherwise looks like you have to manually install everything
|
||||
|
||||
## Ubuntu
|
||||
|
||||
### Update System
|
||||
1. (Debian-based) `sudo apt-get update && sudo apt-get dist-upgrade -y`
|
||||
2. Install essential tools `sudo apt-get install build-essential curl file git`
|
||||
3. Set up zsh `sudo dnf install zsh`
|
||||
1. Install oh-my-zsh same as ubuntu
|
||||
2. Install `sudo dnf install powerline powerline-fonts`
|
||||
3. Clone autosuggestions/syntax highlighting per Ubuntu instructions as well
|
||||
|
||||
### Set up ufw (while still as root, otherwise add `sudo`) on servers
|
||||
1. `ufw app list` to see what's available
|
||||
2. `ufw allow OpenSSH` for initial set-up, although we'll change this port later and need to update the firewall rules at that time
|
||||
3. `ufw enable` and `ufw status` to make sure it's working
|
||||
4. Log out and back in to make sure you haven't borked something and blocked yourself
|
||||
|
||||
### Add Non-Root User
|
||||
1. `adduser eli`
|
||||
2. give new user sudo permissions
|
||||
1. (option 1) `visudo` and add `eli ALL=(ALL) ALL`
|
||||
2. (option 2 - Ubuntu/Debian) `apt-get install sudo && usermod -a -G sudo eli`
|
||||
|
||||
### Change to new user
|
||||
1. Log out, and log back in using new user's pass to make sure it's working
|
||||
|
||||
### Configure Vim
|
||||
1. `sudo apt install vim`
|
||||
2. `vim --version`. If it's neovim, skip to step 4. Otherwise follow step 3.
|
||||
3. (option 1) Update `~/.vimrc` to match [vimrc](vimrc)
|
||||
1. (optional) Remap CTRL key for keyboard to CAPS LOCK
|
||||
1. `sudo apt install gnome-tweak-tool`
|
||||
2. open tweak tool
|
||||
3. _Keyboard & Mouse_ > _Additional Layout Options_ > _Caps Lock Behavior_ > select _Caps Lock is also a Ctrl_
|
||||
4. (option 2) Update `$HOME/.config/nvim/init.vim` to match (or include) .vimrc for Neovim, which seems to be a default installation in Parrot OS
|
||||
1. More simply, just add `source ~/.vimrc` to this `init.vim` file after following previous instructions
|
||||
2. You can check which files are being checked upon opening vim via `:scriptnames`. If you don't see ~/.vimrc there's a good chance you're using neovim.
|
||||
|
||||
### Configure CLI
|
||||
1. install zsh, oh-my-zsh
|
||||
1. `sudo apt install zsh`
|
||||
2. `sudo apt install git-core curl fonts-powerline`
|
||||
3. `sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"`
|
||||
2. Install zsh-autosuggestions
|
||||
1. `sudo git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions`
|
||||
3. Install zsh-syntax-highlighting
|
||||
1. `sudo git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting`
|
||||
4. use [zshrc file](zshrc) file in this directory and put it in ~/.zshrc
|
||||
5. create `greeting.txt` in `$HOME` starting [here](http://www.patorjk.com/software/taag/#p=display&f=Doom&t=once%20more%0Ainto%20the%20%0Abreach)
|
||||
6. `source .zshrc` to make sure it's working
|
||||
7. Update default profile of terminal to start with zsh
|
||||
1. open terminal
|
||||
2. go to `Edit` > `Profile Preferences` > `Title and Command` > `Run a custom command instead of my shell` > Type `zsh` > Close
|
||||
8. (optional) Copy over `.zsh_history` to `$HOME` and `chown [eli] .zsh_history`
|
||||
9. move espanso to __ folders (Not sure on Linux atm)
|
||||
|
||||
### Install Keepass
|
||||
1. `sudo apt install keepassxc`
|
||||
2. Import key database from other device
|
||||
|
||||
### Setting up SSH (for remote access devices only)
|
||||
1. `ssh-copy-id -i id_rsa.pub eli@[host]`
|
||||
2. Edit `/etc/ssh/sshd_config` to include
|
||||
1. `PasswordAuthentication no`
|
||||
2. `Port [non-default port #]`
|
||||
3. `PermitRootLogin no`
|
||||
4. `AllowUsers eli`
|
||||
5. `ufw allow [non-default port #]/tcp`
|
||||
6. `sudo systemctl restart sshd`
|
||||
7. Finally, log in via `ssh eli@[host] -p [non-default port #]
|
||||
|
||||
### Install Obsidian
|
||||
1. Download [latest appimage](https://obsidian.md/download).
|
||||
2. `mkdir ~/AppImages`
|
||||
3. `mv [Obsidian.AppImage] ~/AppImages`
|
||||
4. `chmod +x [Obsidian.AppImage]`
|
||||
5. Add to menus (depends on OS)
|
||||
1. Use [this logo](obsidian-logo.png) for the thumbnail
|
||||
6. Open Obsidian
|
||||
7. Create New Vault named `ElisSpace`
|
||||
8. Go to `Core Plugins` and turn on `Sync`
|
||||
9. Go to sync options and log in
|
||||
10. Go to sync options again, link to ElisSpace remote vault
|
||||
11. DO NOT `Start Syncing` yet. First, turn on all options for syncing so _everything_ is synced.
|
||||
|
||||
### Configure burpsuite
|
||||
1. install burpsuite
|
||||
1. download from [portswigger website](https://portswigger.net/burp/releases/community/latest)
|
||||
2. `chmod +x` [burpsuite file]
|
||||
3. `./[burpsuite file]`
|
||||
4. keep default options in installer
|
||||
3. add `export _JAVA_OPTIONS="-Dsun.java2d.uiScale=2"` after the shebang to the executable `$HOME\BurpSuiteCommunity\BurpSuiteCommunity`
|
||||
|
||||
### Configure OpenVPN server and clients
|
||||
1. Thanks [digital ocean](https://www.digitalocean.com/community/tutorials/how-to-set-up-and-configure-an-openvpn-server-on-ubuntu-20-04)
|
||||
|
||||
### Configure Screenshotting
|
||||
1. `sudo apt install gnome-screenshot`
|
||||
2. Create new entry in _keyboard shortcuts_ settings:
|
||||
1. Name: `Screenshot Selection and Copy to Clipboard`
|
||||
2. Command: `/usr/bin/gnome-screenshot -a -c`
|
||||
3. Save, and double-click to set shortcut: `Shift + Mod4 + S`
|
||||
---
|
||||
# Windows
|
||||
1. move espanso folders to `C:\\Users\\PC\\AppData\\Local\\espanso`
|
||||
2. Right Click espanso icon > "Reload Config"
|
||||
|
||||
Reference in New Issue
Block a user