diff --git a/.aliases.ps1 b/.aliases.ps1 new file mode 100755 index 0000000..4df1e84 --- /dev/null +++ b/.aliases.ps1 @@ -0,0 +1,57 @@ +####################################### +############ don't edit lol ########### +####################################### + +function ealias { + Start-Process -FilePath "$npp" -ArgumentList `"$ps_profile`" -Verb RunAs +} +function projects { + Set-Location $env:userprofile\projs +} + + +function projs { + projects +} +function dilf { + Set-Location $_dilf +} +function .. { + Set-Location .. +} +function .... { + Set-Location ../.. +} +function no { + node --help +} +function twrp { + adb reboot bootloader; fastboot boot C:\Users\Corinthe\androidstuffz\twrp.img +} +function baksmalibasefunc { java -jar "C:\Users\Corinthe\ApkProjects\baksmali.jar" $args } + New-Alias -Name baksmali -Value baksmalibasefunc -Force -Option AllScope + +function zipcmd { & "C:\Program Files\zippy\zip.exe" $args } + New-Alias -Name zip -Value zipcmd -Force -Option AllScope + +function uberapk { java -jar C:\Users\Corinthe\.apklab\uber-apk-signer-1.2.1.jar -a $args --allowResign --overwrite } + New-Alias -Name signapk -Value uberapk -Force -Option AllScope + +function trueapksigner { C:\Users\Corinthe\asdk\build-tools\32.0.0\apksigner.bat $args } + New-Alias -Name apksigner -Value trueapksigner -Force -Option AllScope + +function nanoo { & C:\cygwin\bin\nano.exe $args } + New-Alias -Name nano -Value nanoo -Force -Option AllScope +function gitbash { & "C:\Program Files\Git\git-bash.exe" $args } + New-Alias -Name gbash -Value gitbash -Force -Option AllScope + +function newCmdWin { cmd /c start cmd /b /k $args } + New-Alias -Name "new-command" -Value newCmdWin -Force -Option AllScope + +function cyg { C:\cygwin\Cygwin.bat $args } + New-Alias -Name cygwin -Value cyg -Force -Option AllScope + + +function rtmux { /cygwin/bin/script.exe -c "export LC_ALL=en_US.UTF-8; export LANG=en_US.UTF-8; /bin/tmux -f ~/.dotfiles/tmux/tmux.conf" /dev/null $args } + New-Alias -Name tmux -Value rtmux -Force -Option AllScope +# -f ~/.dotfiles/tmux/tmux.conf diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.gitmodules b/.gitmodules old mode 100644 new mode 100755 diff --git a/.poshrc.ps1 b/.poshrc.ps1 new file mode 100755 index 0000000..06b8e16 --- /dev/null +++ b/.poshrc.ps1 @@ -0,0 +1 @@ +(@(& 'C:/Users/Corinthe/AppData/Local/Programs/oh-my-posh/bin/oh-my-posh.exe' init pwsh --config='C:\Users\Corinthe\tabletsTurquoise.omp.json' --print) -join "`n") | Invoke-Expression diff --git a/.psrc.ps1 b/.psrc.ps1 new file mode 100755 index 0000000..868aea2 --- /dev/null +++ b/.psrc.ps1 @@ -0,0 +1,27 @@ +$aliasFilePath="$env:USERPROFILE\.dotfiles\.aliases.ps1" +function New-CommandAlias { + param( + [parameter(Mandatory=$true)]$Name, + [parameter(Mandatory=$true)]$Cmd, + [parameter(Mandatory=$true)]$Alias + ) + + $functionFormat = "function $Name { $Cmd `$args } + New-Alias -Name $Alias -Value $Name -Force -Option AllScope" + + $newLine = [Environment]::NewLine + Add-Content -Path $aliasFilePath -Value "$newLine$functionFormat" + . $aliasFilePath + } + + . $aliasFilePath +function bg() {Start-Process -NoNewWindow @args} + +$repo="$env:USERPROFILE\Desktop\ART\@tablets-stuff" +. $env:USERPROFILE\.completion.ps1 +# function Prompt { +# $date=$(Get-Date -Format "dddd, dd/MM/yyyy hh:mm:ss.FFF tt") +# Write-Host ("$date | $(Get-Location) `n▻") -ForegroundColor 3 -NoNewline +# return " " +# } +. $env:USERPROFILE\.dotfiles\.poshrc.ps1 diff --git a/.tmux/.tmux-powerlinerc b/.tmux/.tmux-powerlinerc old mode 100644 new mode 100755 diff --git a/htop/htoprc b/htop/htoprc old mode 100644 new mode 100755 diff --git a/micro/buffers/history b/micro/buffers/history old mode 100644 new mode 100755 diff --git a/micro/settings.json b/micro/settings.json old mode 100644 new mode 100755 diff --git a/neofetch/config.conf b/neofetch/config.conf old mode 100644 new mode 100755 diff --git a/tmux-powerline/config.sh b/tmux-powerline/config.sh old mode 100644 new mode 100755 diff --git a/tmux-powerline/themes/tablet.sh b/tmux-powerline/themes/tablet.sh old mode 100644 new mode 100755 index a4e2a0a..6209fa9 --- a/tmux-powerline/themes/tablet.sh +++ b/tmux-powerline/themes/tablet.sh @@ -83,10 +83,10 @@ if [ -z $TMUX_POWERLINE_LEFT_STATUS_SEGMENTS ]; then # "ifstat 30 255" \ #"ifstat_sys 30 255" \ - "cpu #cb00f3 0" \ + "cpu #9318ff 255" \ # "battery #cb46ff 255" \ #"wan_ip #9318ff 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \ - "pwd #1289FF 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \ + "pwd #1289FF 0 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \ "now_playing #00e7e3 235 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} #00e7e3 #333333 default" \ #"lan_ip #affffe 235 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} '#000000' '#000000'" \ # Metallica - Inamorata  diff --git a/tmux.conf.not b/tmux.conf.not old mode 100644 new mode 100755 diff --git a/tmux/tmux.conf b/tmux/tmux.conf old mode 100644 new mode 100755 index c137004..45d75ec --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -1,3 +1,4 @@ +#set -g default-terminal "screen-256color" unbind C-b set-option -g prefix C-a bind-key C-a send-prefix @@ -8,38 +9,50 @@ bind - split-window -v unbind '"' unbind % -#set-option -g autom - bind r source-file ~/.dotfiles/tmux/tmux.conf set-window-option -g clock-mode-style 12 -set-option clock-mode-colour "#00e7e3" -set -g window-status-current-format '' - -set -g status-bg "#232323" -#set-option -g status-fg "#000011" -set -g pane-border-status top -set -g message-style 'bg=#00d9db,fg=#000011' +set-window-option monitor-activity on set -g base-index 1 set -g mouse on - -set -g pane-border-style 'fg=#affffe' -set -g pane-active-border-style 'fg=#00e7e3' set -g pane-border-lines "single" - set -g visual-activity on set -g visual-bell on +set -g mode-keys vi +### powerline ### + +set-option status-left-length 140 +set-option status-right-length 75 +run-shell 'alias powerline-config=~/.dotfiles/powerline-bin/bin/powerline-config' +run-shell '~/.dotfiles/powerline-bin/bin/powerline-daemon --replace' +#run-shell ~/.dotfiles/powerline/bin/powerline-daemon -q +set -g window-status-current-format "" +set-environment -g POWERLINE_CONFIG_COMMAND ~/.dotfiles/powerline-bin/bin/powerline-config +source ~/.dotfiles/powerline-bin/powerline/bindings/tmux/powerline.conf +if-shell '[ ! -z $PREFIX ]' { + run-shell 'ln -sf ~/.dotfiles/powerline/powerline/scripts/powerline $PREFIX/bin' + run-shell 'ln -sf ~/.dotfiles/powerline/powerline/scripts/powerline-daemon $PREFIX/bin' +} +set-option clock-mode-colour "#00e7e3" +set -g status-bg "#262626" +#set-option -g status-fg "#000011" +set -g status-style "fg=#ffffff,bg=#262626" +set -g pane-border-status top +set -g message-style 'bg=#00d9db,fg=#262626' +set -g pane-border-style 'fg=#affffe' +set -g pane-active-border-style 'fg=#00e7e3' +set -g menu-selected-style 'fg=#000000,bg=#00d9db' +set -g mode-style 'fg=#000000,bg=#00d9db' ### plugins ### set-environment -g TMUX_PLUGIN_MANAGER_PATH ~/.dotfiles/.tmux/plugins set-environment -g TMPDIR $PREFIX/tmp -run-shell 'ln -s ~/.dotfiles/powerline/scripts/powerline $PREFIX/bin' # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'erikw/tmux-powerline' -set -g @plugin 'thewtex/tmux-mem-cpu-load' +#set -g @plugin 'erikw/tmux-powerline' +#set -g @plugin 'git@git.tablet.sh:the-btfash-foundation/tmux-mem-cpu-load' # set -g @plugin 'thewtex/tmux-mem-cpu-load' # Other examples: