diff options
Diffstat (limited to '.config')
| -rw-r--r-- | .config/neofetch/config.conf | 58 | ||||
| -rw-r--r-- | .config/shell/aliasrc | 24 | ||||
| -rw-r--r-- | .config/x11/xinitrc | 12 |
3 files changed, 54 insertions, 40 deletions
diff --git a/.config/neofetch/config.conf b/.config/neofetch/config.conf index 342ef76..14bb86b 100644 --- a/.config/neofetch/config.conf +++ b/.config/neofetch/config.conf @@ -1,31 +1,49 @@ # See this wiki page for more info # https://github.com/dylanaraps/neofetch/wiki/Customizing-Info + print_info() { info title - # prin "\n \n " "$(curl wttr.in/?0?q?T | awk '/°(C|F)/ {printf $(NF-1) $(NF) " ("a")"} /,/ {a=$0}')" - prin "${cl9}┌────────────────────────────────────────────────────┐" - info "\n \n OS" distro - info "\n \n Host" model - info "\n \n Kernel" kernel - info "\n \n Uptime" uptime - info "\n \n Packages" packages - info "\n \n Shell" shell - info "\n \n Screens" resolution - info "\n \n WM" wm - info "\n \n Terminal" term - info "\n \n CPU" cpu - info "\n \n GPU" gpu - info "\n \n Memory" memory - info "\n \n " disk - prin "${cl9}└─────────────────────────────────── $(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) $(color 8) ${cl9}┘" + prin "\n" + prin "${cl9}┌─────────────────────────────────────────────────────┐" + info "\n \n " distro + info "\n \n " model + info "\n \n " kernel + info "\n \n " uptime + info "\n \n " packages + info "\n \n " shell + info "\n \n " resolution + info "\n \n " de + info "\n \n "theme + info "\n \n " term + info "\n \n " term_font + info "\n \n " cpu + info "\n \n " gpu + info "\n \n " memory + info "\n \n " disk + prin "${cl9}└──────────────────────────────────── ${cl0} ${cl1} ${cl2} ${cl3} ${cl4} ${cl5} ${cl6} $(color 15) ${cl9}┘" prin "\n" } reset="\033[0m" - +gray="\033[1;90m" +red="\033[1;31m" +green="\033[1;32m" +yellow="\033[1;33m" +blue="\033[1;34m" +magenta="\033[1;35m" +cyan="\033[1;36m" +white="\033[1;37m" + +cl0="${gray}" +cl1="${red}" +cl2="${green}" +cl3="${yellow}" +cl4="${blue}" +cl5="${magenta}" +cl6="${cyan}" +cl7="${white}" cl9="${reset}" - # Title @@ -388,7 +406,7 @@ disk_show=('/' '/home' '/dev/sda1' '/dev/sdb1') # none: 'Disk: 74G / 118G (66%)' # 'Disk: 74G / 118G (66%)' # 'Disk: 74G / 118G (66%)' -disk_subtitle="dir" +disk_subtitle="none" # Disk percent. # Show/Hide disk percent. @@ -537,7 +555,7 @@ underline_char="-" # Example: # separator="->": 'Shell-> bash' # separator=" =": 'WM = dwm' -separator=":" +separator=" " # Color Blocks diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 4358402..e6a5114 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -4,20 +4,20 @@ alias reboot='sudo reboot' alias poweroff='sudo poweroff' alias refresh='. $ZDOTDIR/.zshrc' -alias zzz='sudo zzz' +alias zzz='sudo pm-suspend' alias fuck='sudo $(fc -Lln -1)' alias open='xdg-open' alias mutt='cd ~/.mutt/attachments; mutt; cd -' alias jpwine='LANG=ja_JP.UTF-8 WINEDEBUG=-all wine' -alias emacsd='/usr/local/bin/emacs --daemon &' -alias em='emacsclient -c -a "emacs"' +alias emd='/usr/local/bin/emacs --daemon &' +alias emc='emacsclient -c -a "emacs"' alias vi='$EDITOR' alias z='zathura' alias nnn='nnn -Hde' alias cn='clear;neofetch' alias ea='vi ~/.config/shell/aliasrc' alias ez='vi ~/.config/zsh/.zshrc' -alias sr='su - root' +alias lr='su - root' alias cam='mpv --profile=low-latency --untimed /dev/video0' alias df='df -h' alias tma='tmux a -t' @@ -72,7 +72,6 @@ gls() { # control audio alias headset="wpctl set-default $(wpctl status | grep 'Headphones' | cut -b11-12)" alias speakers="wpctl set-default $(wpctl status | grep 'Speakers' | cut -b11-12)" -alias setvol='pactl set-sink-volume @DEFAULT_SINK@' # monitor settings alias rmlr='xrandr --auto --output HDMI-A-0 --mode 640x480 --primary' @@ -145,12 +144,9 @@ alias dcomm='dfiles commit -m' alias dpush='dfiles push origin' # package manager -alias pacin='sudo pacman -S' -alias pacrm='sudo pacman -Rns' -alias pacup='sudo pacman -Syu' -alias pacsr='pacman -Ss' -alias pacbr='pacman -Slq | fzf --preview "pacman -Si {}" --layout=reverse' -alias yayin='yay -S' -alias yayrm='yay -Rns' -alias yayup='yay -Syu' -alias yaysr='yay -Ss' +alias aptsr='apt search' +alias aptin='sudo apt install' +alias aptrm='sudo apt remove' +alias aptupd='sudo apt update' +alias aptupg='sudo apt upgrade' +alias aptup='aptupd && aptupg' diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index b879037..4305681 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -1,22 +1,22 @@ #!/bin/sh -# if command -v dbus-launch > /dev/null && test -z "${DBUS_SESSION_BUS_ADDRESS}"; then -# eval $(dbus-launch --sh-syntax --exit-with-session) -# fi +if command -v dbus-launch > /dev/null && test -z "${DBUS_SESSION_BUS_ADDRESS}"; then + eval $(dbus-launch --sh-syntax --exit-with-session) +fi -# eval "$(gpg-agent --daemon --allow-preset-passphrase)" +eval "$(gpg-agent --daemon --allow-preset-passphrase)" eval "$(ssh-agent)" xrandr --auto --output HDMI-A-0 --mode 1920x1080 --primary xrandr --auto --output DisplayPort-2 --mode 1600x900 --left-of HDMI-A-0 -xset r rate 200 20 +xset r rate 250 30 xset s off -dpms setxkbmap -layout us,us -variant dvorak, -option "ctrl:nocaps,lv3:rwin_switch,grp:alt_space_toggle" xrdb -merge ~/.Xresources ~/.local/bin/set-wallpaper & -# /usr/bin/emacs --daemon & +/usr/bin/emacs --daemon & urxvtd -q -o -f & pipewire & |
