From a86a9b0100fd406b910467f078b86fc40f240a5d Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Mon, 30 Oct 2023 17:54:49 +0100 Subject: added .Xresources to tracked files --- .Xresources | 47 +++++++++++++++++++++++++++++++++++ .config/neofetch/config.conf | 58 +++++++++++++++++++++++++++++--------------- .config/shell/aliasrc | 24 ++++++++---------- .config/x11/xinitrc | 12 ++++----- 4 files changed, 101 insertions(+), 40 deletions(-) create mode 100644 .Xresources diff --git a/.Xresources b/.Xresources new file mode 100644 index 0000000..14fc10e --- /dev/null +++ b/.Xresources @@ -0,0 +1,47 @@ +URxvt*font: xft:Hack Nerd Font Mono:size=11:antialias=True,xft:JoyPixels:pixelsize=10 + +!! colors and stuff +URxvt.letterSpace: 0 +URxvt.scrollBar: False +URxvt.depth: 32 +URxvt.background: [90]#000000 +URxvt.foreground: #ffffff +URxvt.externalBorder: 0 +URxvt.internalBorder: 0 +URxvt.backgroundBorder: 0 +URxvt.borderLess: False +!! black +URxvt.color0: #000000 +URxvt.color8: #343636 +!! red +URxvt.color1: #e74c7c +URxvt.color9: #c26f6f +!! green +URxvt.color2: #6bb05d +URxvt.color10: #8dc776 +!! yellow +URxvt.color3: #e59e67 +URxvt.color11: #e7ac7e +!! indigo +URxvt.color4: #5b98a9 +URxvt.color12: #7ab3c3 +!! lavender +URxvt.color5: #b185db +URxvt.color13: #bb84e5 +!! cyan +URxvt.color6: #51a39f +URxvt.color14: #6db0ad +!! white +URxvt.color7: #c4c4c4 +URxvt.color15: #cccccc + + +!! perl extensions +URxvt.perl-ext-common: default,url-select,resize-font,selection-to-clipboard +URxvt.matcher.button: 1 +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.url-select.launcher: /usr/bin/xdg-open +URxvt.url-select.underline: true + +URxvt.iso14755: False +URxvt.iso14755_52: False 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 & -- cgit v1.2.3