Compare commits

..

No commits in common. "d5d9687875de0016f68c72c06f0100db1d28cf52" and "c49c53598795d19d66e9e6ccf87b2edfef49819a" have entirely different histories.

16 changed files with 9 additions and 707 deletions

View File

@ -1,13 +1,11 @@
[credentials] [credentials]
helper = store helper = store
[user] [user]
name = John Doe name = Michael Scalzetti
email = jdoe@example.com email = maestromike5@gmail.com
[credential] [credential]
helper = store helper = store
[git] [git]
rebase = false rebase = false
[pull] [pull]
rebase = false rebase = false
[init]
defaultBranch = main

14
.zshrc
View File

@ -43,25 +43,25 @@ promptinit
PROMPT="[%F{001}%n%F{reset}] %F{069}%1~%F{reset} > " PROMPT="[%F{001}%n%F{reset}] %F{069}%1~%F{reset} > "
RPROMPT=$'$(vcs_info_wrapper) %h | %T' RPROMPT=$'$(vcs_info_wrapper) %h | %T'
export PATH="/usr/sbin:/home/$USER/.local/bin:$PATH" export PATH="/usr/sbin:/home/michael/.local/bin/:$PATH"
bindkey '\e[F' end-of-line bindkey '\e[F' end-of-line
bindkey '\e[H' beginning-of-line bindkey '\e[H' beginning-of-line
bindkey '^[[3~' delete-char
# ALIASES # ALIASES
alias k="kubectl" alias k="kubectl"
alias d="docker" alias d="docker"
alias dc="docker compose" alias dc="docker-compose"
alias docker-compose="docker compose"
alias dl="curl -LOJ" alias dl="curl -LOJ"
alias outline="/home/michael/Applications/Outline-Client.AppImage 1>/dev/null 2>/dev/null &" alias outline="/home/michael/Applications/Outline-Client.AppImage 1>/dev/null 2>/dev/null &"
alias la="ls -la --color=auto" alias la="ls -la"
alias ls="ls --color=auto"
tmp(){ tmp(){
cd $(mktemp -d) cd $(mktemp -d)
} }
# ALIASES # ALIASES
fastfetch neofetch

View File

@ -1,248 +0,0 @@
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod 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 9
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Start picom compositor
exec --no-startup-id picom --config ~/.config/picom/picom.conf -b
# Start XDG autostart .desktop files using dex. See also
# https://wiki.archlinux.org/index.php/XDG_Autostart
exec --no-startup-id dex --autostart --environment i3
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- lock
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Set Background
exec --no-startup-id feh --bg-scale ~/Pictures/Backgrounds/current
# Set inverted scroll
exec --no-startup-id synclient VertScrollDelta=-64
# i3 Gaps
gaps outer -2
gaps inner 5
for_window [class="^.*"] border pixel 1
# Multimedia Keys
# volume
#bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+ && pkill -RTMIN+1 i3blocks
bindsym XF86AudioRaiseVolume exec pamixer --set-limit 200 --allow-boost -i 5 && pkill -RTMIN+1 i3blocks
#bindsym XF86AudioLowerVolume exec amixer sset Master 5%- && pkill -RTMIN+1 i3blocks
bindsym XF86AudioLowerVolume exec pamixer --set-limit 200 --allow-boost -d 5 && pkill -RTMIN+1 i3blocks
# gradular volume control
#bindsym $mod+XF86AudioRaiseVolume exec amixer sset Master 1%+ && pkill -RTMIN+1 i3blocks
bindsym $mod+XF86AudioRaiseVolume exec pamixer --set-limit 200 --allow-boost -i 1 && pkill -RTMIN+1 i3blocks
#bindsym $mod+XF86AudioLowerVolume exec amixer sset Master 1%- && pkill -RTMIN+1 i3blocks
bindsym $mod+XF86AudioLowerVolume exec pamixer --set-limit 200 --allow-boost -d 1 && pkill -RTMIN+1 i3blocks
# mute
bindsym XF86AudioMute exec amixer sset Master toggle && killall -USR1 i3blocks
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
# Brightnessctl mod
bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
bindsym $mod+XF86MonBrightnessUp exec --no-startup-id brightnessctl set +1%
bindsym $mod+XF86MonBrightnessDown exec --no-startup-id brightnessctl set 1%-
# Calculator
bindsym XF86Calculator exec --no-startup-id xcalc
# i3 lock mod
bindsym $mod+Escape exec --no-startup-id ~/.local/bin/lock
#bindsym $mod+Delete exec --no-startup-id ~/.local/bin/sleeplock
# flameshot
bindsym $mod+Shift+s exec --no-startup-id flameshot gui
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec --no-startup-id rofi -show run -theme ~/.rofi/selection
bindsym $mod+z exec --no-startup-id rofi -show run -theme ~/.rofi/selection
#bindsym $mod+d exec --no-startup-id dmenu_run
#bindsym $mod+z exec --no-startup-id dmenu_run
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus right
bindsym $mod+i focus up
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move right
bindsym $mod+Shift+i move up
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
bindsym i resize shrink height 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
set $refresh_i3status pkill -9 polybar
# Set i3status to restart on i3 refresh
#set $refresh_i3status killall -SIGUSR1 i3status
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
#bar {
# status_command i3status
#}
exec_always --no-startup-id ~/.config/polybar/launch.sh

View File

@ -1,293 +0,0 @@
[bar/main]
background = #aa005555
foreground = ${colors.white}
separator = " / "
modules-right = wired wireless ram cpu wattage life capacity
modules-center = playing
modules-left = i3 date audio backlight
radius = 5
font-0 = "Iosevka Nerd Font:pixelsize=10;4"
font-1 = "Iosevka Nerd Font:pixelsize=13;4"
[module/wired]
type = internal/network
interface = lan0
interface-type = wired
interval = 10
label-connected =
; %local_ip%
;format-connected = <ramp-signal> <label-connected>
format-connected = <label-connected>
;format-packetloss = <animation-packetloss> <label-connected>
format-packetloss = <label-connected> PL
format-disconnected = <label-disconnected>
[module/wireless]
type = internal/network
interface = wlan0
interface-type = wireless
interval = 5
format-foreground = #ffb52a
;${colors.cyan}
label-connected = %essid% 
;-%signal% %local_ip%
format-connected = <label-connected>
;<ramp-signal> <label-connected>
format-packetloss = <label-connected> PL
;<animation-packetloss> <label-connected>
format-disconnected = <label-disconnected>
[module/cpu]
type = internal/cpu
interval = 0.5
warn-percentage = 50
;label-warn = ﲅ WCPU %percentage%%
label-warn = WCPU %percentage%%
label = CPU %percentage%%
format = <label> <ramp-load>
ramp-load-0-weight = 2
ramp-load-0 =
ramp-load-1 =
ramp-load-2 =
ramp-load-3 =
ramp-load-4 =
;format-background = ${colors.green}
[module/ram]
type = internal/memory
interval = 0.5
format = <label> <ramp-used>
label = RAM %percentage_used%%
#label = RAM %used%/%free%
#label = RAM %gb_used%/%gb_free%
ramp-used-0-weight = 2
ramp-used-0 =
ramp-used-1 =
ramp-used-2 =
ramp-used-3 =
ramp-used-4 =
[module/date]
type = internal/date
date = %m-%d %H:%M%
;format-foreground = ${colors.white}
[module/i3]
type = internal/xworkspaces
;pin-workspaces = true
enable-click = true
format = <label-state>
label-active = [%index%]
label-active-padding = 1
label-occupied = %icon%
label-occupied-padding = 1
label-urgent = %icon%
label-urgent-padding = 1
label-urgent-background = ${color.background}
label-urgent-foreground = #CC6666
label-empty = %icon%
label-empty-padding = 1
label-empty-background = ${color.background}
label-empty-foreground = ${color.foreground-alt}
icon-0 = 0;
icon-1 = 1;
icon-2 = 2;
icon-3 = 3;
icon-4 = 4;
icon-5 = 5;
icon-6 = 6;
icon-7 = 7;
icon-8 = 8;
icon-9 = 9;
icon-10 = 10;
icon-default =
[module/playing]
type = custom/script
exec = ~/.config/polybar/scripts/media/playing.sh
interval = 5
[module/audio]
type = internal/pulseaudio
use-ui-max = true
interval = 15
format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-muted = 婢 %percentage%%
#墳奄奔婢
#label-muted-foreground = #666
ramp-volume-0-weight = 2
ramp-volume-0 =
ramp-volume-1 = 奔
ramp-volume-2 =
#click-left = pavucontrol
click-right = pavucontrol
[module/wattage]
type = custom/script
exec = ~/.config/polybar/scripts/battery/wattage.sh
interval = 1
[module/life]
type = custom/script
exec = ~/.config/polybar/scripts/battery/life.sh
interval = 3
[module/capacity]
type = internal/battery
;interval = 10
battery = BAT0
adapter = ADP1
low-at = 20
full-at = 100
format-charging = <animation-charging> <label-charging>
format-discharging = <ramp-capacity> <label-discharging>
label-charging = %percentage%%
label-discharging = %percentage%%
label-full = Full
animation-charging-framerate = 500
animation-charging-0 =
animation-charging-1 =
animation-charging-2 =
animation-charging-3 =
animation-charging-4 =
animation-charging-5 =
animation-charging-6 =
bar-capacity-width = 5
ramp-capacity-0 =
ramp-capacity-1 =
ramp-capacity-2 =
ramp-capacity-3 =
ramp-capacity-4 =
ramp-capacity-5 =
ramp-capacity-6 =
ramp-capacity-7 =
ramp-capacity-8 =
ramp-capacity-9 =
ramp-capacity-10 =
[module/backlight]
;type = internal/xbacklight
type = internal/backlight
; Use the following command to list available cards:
; $ ls -1 /sys/class/backlight/
;card = intel_backlight
card = amdgpu_bl0
; Available tags:
; <label> (default)
; <ramp>
; <bar>
format = <ramp> <label>
format-background = ${color.shade3}
format-padding = 2
; Available tokens:
; %percentage% (default)
label = %percentage%%
; Only applies if <ramp> is used
ramp-0 =
ramp-1 =
ramp-2 =
ramp-3 =
ramp-4 =
ramp-font = 2
[settings]
screenchange-reload = true
[colors]
black = ${colors.color0}
black2 = ${colors.color8}
red = ${colors.color1}
red2 = ${colors.color9}
green = ${colors.color2}
green2 = ${colors.color10}
yellow = ${colors.color3}
yellow2 = ${colors.color11}
blue = ${colors.color4}
blue2 = ${colors.color12}
magenta = ${colors.color5}
magenta2 = ${colors.color13}
cyan = ${colors.color6}
cyan2 = ${colors.color14}
white = ${colors.color7}
white2 = ${colors.color15}
foregroundColor = #efefef
backgroundColor = #181818
cursorColor = #bbbbbb
; Black
color0 = #242424
color8 = #4b4b4b
; Red
color1 = #d71c15
color9 = #fc1c18
; Green
color2 = #5aa513
color10 = #6bc219
; Yellow
color3 = #fdb40c
color11 = #fec80e
; Blue
color4 = #063b8c
color12 = #0955ff
;
; Magenta
color5 = #e40038
color13 = #fb0050
; Cyan
color6 = #2595e1
color14 = #3ea8fc
; White
color7 = #efefef
color15 = #8c00ec
; Bold, Italic, Underline
colorBD = #ffffff

View File

@ -1,2 +0,0 @@
pkill -9 polybar
polybar --reload

View File

@ -1,57 +0,0 @@
#! /bin/bash
battery=$(cat /sys/class/power_supply/BAT0/capacity)
charging=$(acpi | grep Charging -o)
if [ "$charging" = "Charging" ];
then
s0=""
s1=""
s2=""
s3=""
s4=""
s5=""
s6=""
s7=""
else
s0=""
s1=""
s2=""
s3=""
s4=""
s5=""
s6=""
s7=""
fi
# check capacity
if(( $battery>95 ))
then
batt_out="$s0"
elif(( $battery>85 ))
then
batt_out="$s1"
elif(( $battery>70 ))
then
batt_out="$s2"
elif(( $battery>60 ))
then
batt_out="$s3"
elif(( $battery>45 ))
then
batt_out="$s4"
elif(( $battery>30 ))
then
batt_out="$s5"
elif(( $battery>20 ))
then
batt_out="$s6"
#echo $batt_out $battery% | grep --color .
#exit
else
batt_out="$s7"
#echo $batt_out $battery% | grep --color .
#exit
fi
echo $batt_out $battery%

View File

@ -1,3 +0,0 @@
#! /bin/sh
echo $(acpi -b | grep -P "\\d+:\\d+:\\d+\\s" -o)

View File

@ -1,14 +0,0 @@
#! /bin/bash
wattage=$(awk '{printf ("%.1f\n", $1*10^-6+.05)}' /sys/class/power_supply/BAT0/power_now)
wattage_round=$(awk '{print $1*10^-6+.5}' /sys/class/power_supply/BAT0/power_now | cut -d '.' -f 1)
watt_out="$wattage W"
# Check wattage
if(( $wattage_round<=4 ))
then
watt_out="$wattage W"
fi
echo $watt_out

View File

@ -1,29 +0,0 @@
#! /bin/sh
MAX_SONG_LEN=45
MAX_ARTIST_LEN=30
song=$(playerctl metadata title 2>/dev/null)
if [ "$song" = "" ]
then
echo " "
exit
fi
short_song=$(echo $song | head -c $MAX_SONG_LEN)
if [ "$song" = "$short_song" ]
then
echo -n
else
song="$short_song..."
fi
artist=$(playerctl metadata artist)
short_artist=$(echo $artist | head -c $MAX_ARTIST_LEN)
if [ "$artist" = "$short_artist" ]
then
echo -n
else
artist="$short_artist..."
fi
echo$song - $artist
#echo $song

View File

@ -1 +0,0 @@


View File

@ -1,17 +0,0 @@
#! /bin/bash
wireless="wlan0"
lan="lan0"
wup=$(ethtool $wireless 2>/dev/null| grep -oP "Link detected:.*")
lup=$(ethtool $lan 2>/dev/null| grep -oP "Link detected:.*")
for i in "$wireless" "$lan";
do
echo "$wup" | grep "yes"
#if [ $(echo "$wup" | grep "yes") = "" ];
if [ "$wup" = "" ];
then
echo 1
fi;
done;

View File

@ -1,6 +0,0 @@
#! /bin/sh
local_interface=$(route | awk '/^default/{print $NF}')
local_ip=$(ip addr show "$local_interface" | grep -w "inet" | awk '{ print $2; }' | sed 's/\/.*$//')
echo "# $local_ip"

View File

@ -1,10 +0,0 @@
#! /bin/bash
active_conns=$(netstat -tun | grep -P "tcp.*:22 ")
if [ "$active_conns" = "" ];
then
echo -n
else
echo "#"
fi

View File

@ -1 +0,0 @@


View File

@ -1,14 +0,0 @@
#! /bin/bash
# 
# You can add more drives like so default_drives="drive1\|drive2"
default_drives="nvme0n1"
devices=$(lsblk -lnd | grep -v $default_drives )
if [ "$devices" = "" ];
then
echo -n
exit
else
echo ""
fi

View File

@ -1 +0,0 @@
date