Browse Source

Tue 25 Jul 2023 18:21:19 ACST

master
parent
commit
466e4b1291
7 changed files with 18 additions and 13 deletions
  1. +1
    -1
      .config/aliasrc
  2. +2
    -1
      .local/bin/dwm-sss
  3. +8
    -0
      .local/bin/flask-unsign
  4. +1
    -1
      .local/bin/remap-keys
  5. +1
    -1
      .local/bin/setbg
  6. +1
    -1
      .xinitrc
  7. +4
    -8
      .zshrc

+ 1
- 1
.config/aliasrc View File

@ -9,7 +9,7 @@ alias \
grep='grep --color=auto' \ grep='grep --color=auto' \
p='sudo pacman' \ p='sudo pacman' \
extip='curl -s www.icanhazip.com' \ extip='curl -s www.icanhazip.com' \
gitup='git push origin $(git rev-parse --abbrev-ref HEAD)' \
gitup='git remote | xargs -L1 git push --all' \
gco='git checkout' \ gco='git checkout' \
gbls='git --no-pager branch -a' \ gbls='git --no-pager branch -a' \
vv='nvim ~/.config/nvim/init.lua' \ vv='nvim ~/.config/nvim/init.lua' \


+ 2
- 1
.local/bin/dwm-sss View File

@ -3,13 +3,14 @@
while true; while true;
do do
f=$(cat /sys/class/thermal/thermal_zone0/temp) f=$(cat /sys/class/thermal/thermal_zone0/temp)
t=$(echo $f | cut -b -2).$(echo $f | cut -b 2-)°C
t=$(echo $f | cut -b -2)°C
d=$(date '+%a %b %d, %H:%M') d=$(date '+%a %b %d, %H:%M')
p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l) p=$(pacman -Qu | grep -v "\[ignored\]" | wc -l)
pi=$(pacman -Q | wc -l) pi=$(pacman -Q | wc -l)
c=$(docker ps -q | wc -l) c=$(docker ps -q | wc -l)
n=$(cat /sys/class/net/eno1/operstate) n=$(cat /sys/class/net/eno1/operstate)
s=$(df -h / | tail -n 1 | awk '{ print $4 }') s=$(df -h / | tail -n 1 | awk '{ print $4 }')
# temp=$(curl "http://wttr.in/Adelaide?format=%t")
xsetroot -name " D: ${c} | /: ${s} | Pkgs: ${p}/${pi} | Net: ${n} | ${t} | ${d} " xsetroot -name " D: ${c} | /: ${s} | Pkgs: ${p}/${pi} | Net: ${n} | ${t} | ${d} "
sleep 60; sleep 60;
done; done;

+ 8
- 0
.local/bin/flask-unsign View File

@ -0,0 +1,8 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask_unsign.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

+ 1
- 1
.local/bin/remap-keys View File

@ -2,6 +2,6 @@
xmodmap -e 'clear Lock' & xmodmap -e 'clear Lock' &
xmodmap -e 'keycode 135 = Super_R' & xmodmap -e 'keycode 135 = Super_R' &
xmodmap -e 'keycode 66 = Escape' & xmodmap -e 'keycode 66 = Escape' &
xmodmap -e 'keycode 9 = Caps_Lock' &
xmodmap -e 'keycode 9 = grave' &

+ 1
- 1
.local/bin/setbg View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
feh --bg-fill ~/Pictures/wp/cyb/$(ls ~/Pictures/wp/cyb/ | shuf -n 1)
feh --bg-fill ~/Pictures/background.png

+ 1
- 1
.xinitrc View File

@ -34,7 +34,7 @@ fi
systemctl --user import-environment DISPLAY systemctl --user import-environment DISPLAY
xrandr --output DVI-D-0 --auto --left-of HDMI-0
# xrandr --output DVI-D-1 --off
xset r rate 200 25 xset r rate 200 25


+ 4
- 8
.zshrc View File

@ -13,9 +13,9 @@ fi
export HOMEBREW_NO_AUTO_UPDATE=1 export HOMEBREW_NO_AUTO_UPDATE=1
export GIT_AUTHOR_NAME="Tovi Jaeschke-Rogers" export GIT_AUTHOR_NAME="Tovi Jaeschke-Rogers"
export GIT_AUTHOR_EMAIL="tovi.jaeschke-rogers@four.io"
export GIT_AUTHOR_EMAIL="tovi@tovijaeschke.xyz"
export GIT_COMMITTER_NAME="Tovi Jaeschke-Rogers" export GIT_COMMITTER_NAME="Tovi Jaeschke-Rogers"
export GIT_COMMITTER_EMAIL="tovi.jaeschke-rogers@four.io"
export GIT_COMMITTER_EMAIL="tovi@tovijaeschke.xyz"
export CASE_SENSITIVE="true" export CASE_SENSITIVE="true"
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}' zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
@ -81,11 +81,9 @@ fi
[[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search [[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search
[[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search [[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search
# Default prompt
#PS1="%n@%m %1~ %# "
autoload -U colors && colors # Load colors autoload -U colors && colors # Load colors
PROMPT="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%1d%{$fg[red]%}]%{$reset_color%}$%b "
PROMPT="%{$fg[blue]%}%1~ %{$fg[green]%}>%{$reset_color%} "
setopt autocd # Automatically cd into typed directory. setopt autocd # Automatically cd into typed directory.
# Useful support for interacting with Terminal.app or other terminal programs # Useful support for interacting with Terminal.app or other terminal programs
@ -98,8 +96,6 @@ source ~/.config/aliasrc
zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash zstyle ':completion:*:*:git:*' script ~/.zsh/git-completion.bash
fpath=(~/.zsh $fpath) fpath=(~/.zsh $fpath)
autoload -Uz compinit && compinit
# Basic auto/tab complete: # Basic auto/tab complete:
autoload -U compinit autoload -U compinit
zstyle ':completion:*' menu select zstyle ':completion:*' menu select


Loading…
Cancel
Save