all repos — dotfiles @ 4e9e1252fc3259ca13a881cc8295728d224abe36

my *nix dotfiles

Bunch of shit -- now on KISS!

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Sun, 12 Jan 2020 18:29:39 +0000
commit

4e9e1252fc3259ca13a881cc8295728d224abe36

parent

9bd89662d29e18d97b5bb92a919319fcc853caad

M .Xresources.Xresources

@@ -28,7 +28,7 @@ *background: [background_opacity]base00

#else *background: base00 #endif -*cursorColor: base05 +*cursorColor: base09 *color0: base00 *color1: base08

@@ -50,7 +50,7 @@ *color15: base07

! Urxvt config !--------------------- -URxvt.font: xft:Roboto Mono:style=Medium:size=14:antialias=true, xft:Noto Sans:size=14:style=Medium:antialias=true +URxvt.font: xft:Roboto Mono:style=Medium:size=14:antialias=true,xft:Noto Sans:size=14:style=Medium:antialias=true URxvt.scrollBar: false URxvt.cursorBlink: true URxvt.internalBorder: 30
M bash/.bashrc.d/04-exports.bashbash/.bashrc.d/04-exports.bash

@@ -1,7 +1,6 @@

# export thingys -export ZSH=/home/$USER/.oh-my-zsh export BROWSER=/usr/bin/firefox -export EDITOR=/usr/bin/nvim +export EDITOR=/usr/bin/vim export SSH_KEY_PATH="~/.ssh/id_rsa" export PATH=$HOME/bin:$PATH export GPG_TTY=$(tty)

@@ -13,3 +12,16 @@ export PATH=$PATH:/usr/local/go/bin

export PW_DIR=~/passwords export PW_KEY=x@icyphox.sh export _Z_CMD="j" +export CFLAGS="-O3 -pipe -march=native" +export CXXFLAGS="-O3 -pipe -march=native" +export MAKEFLAGS="-j8" + +# gpg-agent + +[[ -f "$HOME/.gpg-agent-info" ]] && { + . "$HOME/.gpg-agent-info" + export GPG_AGENT_INFO + export SSH_AUTH_SOCK + export SSH_AGENT_PID +} +
M bash/.bashrc.d/90-aliases.bashbash/.bashrc.d/90-aliases.bash

@@ -1,5 +1,5 @@

alias gah='sudo $(fc -ln -1)' -alias nvime="nvim ~/.config/nvim/init.vim" +alias vime="vim .vimrc" alias socks="ssh -D 8008 emerald -fN" alias o="xdg-open" alias gc="git commit -v -s"

@@ -8,10 +8,7 @@ alias ga="git add"

alias gd="git diff --minimal" alias gl="git log --oneline --decorate --graph" alias ls="ls --color" -alias vim="nvim" -alias xi="sudo xbps-install -S" -alias xr="sudo xbps-remove -R" -alias xs="xbps-query -Rs" +alias vim="vim" function up { ~/bin/icyup.sh "$1"
M bin/infobin/info

@@ -17,7 +17,7 @@ BCYN="\e[36m"

WHT="\e[37m" RST="\e[0m" -BAR="█▓▒░" +BAR="████" ((LEN = ${#BAR} * 6)) COLOR_BARS="$RED$BAR$GRN$BAR$YLW$BAR$BLU$BAR$PUR$BAR$CYN$BAR$RST"

@@ -41,11 +41,12 @@ wm=${wm/*_NET_WM_NAME = }

wm=${wm/\"} wm=${wm/\"*} wm=${wm,,} + wm="2bwm" export wm } pkgs() { - pkgs=$(xbps-query -l | wc -l) + pkgs="$(kiss l | wc -l)" export pkgs }

@@ -54,6 +55,7 @@ os

wm pkgs + COL=$(tput cols) ROW=$(tput lines) ((PADY = ROW / 2 - 1 - ${#ENTS[@]} / 2))

@@ -71,18 +73,18 @@ clear

printf "%b" "$PADR" -#printf "%s%b" "$PADC" "┏┓╋╋╋╋╋┏┓ \n" -#printf "%s%b" "$PADC" "┣╋━┳┳┳━┫┗┳━┳┳┓ \n" -#printf "%s%b" "$PADC" "┃┃━┫┃┃╋┃┃┃╋┣┃┫ \n" -#printf "%s%b" "$PADC" "┗┻━╋┓┃┏┻┻┻━┻┻┛ \n" -#printf "%s%b" "$PADC" "╋╋╋┗━┻┛\n\n" +printf "%s%b" "$PADC" "┏┓╋╋╋╋╋┏┓ \n" +printf "%s%b" "$PADC" "┣╋━┳┳┳━┫┗┳━┳┳┓ \n" +printf "%s%b" "$PADC" "┃┃━┫┃┃╋┃┃┃╋┣┃┫ \n" +printf "%s%b" "$PADC" "┗┻━╋┓┃┏┻┻┻━┻┻┛ \n" +printf "%s%b" "$PADC" "╋╋╋┗━┻┛\n\n" #printf "%s%b" "$PADC" "$COLOR_BARS\n\n" printf "%s%b" "$PADC" "${CYN}$user${RST}@${CYN}$host${RST}\n" printf "%s%b" "$PADC" "os: ${CYN}$os${RST}\n" -printf "%s%b" "$PADC" "kernel: ${CYN}$kernel${RST}\n" +printf "%s%b" "$PADC" "kernel: ${CYN}$kernel${RST}\n" printf "%s%b" "$PADC" "pkgs: ${CYN}$pkgs${RST}\n" -printf "%s%b" "$PADC" "wm: ${CYN}$wm${RST}\n" +printf "%s%b" "$PADC" "wm: ${CYN}$wm${RST}\n" printf "%s%b" "$PADC" "shell: ${CYN}$shell${RST}\n" printf "%s%b" "$PADC" "$COLOR_BARS\n"
M bin/scrbin/scr

@@ -18,19 +18,16 @@ do

case $option in f) import -window root "$scr_path/$output.png" - notify-send "screenshot taken!" ;; w) import -window "$(xdotool getwindowfocus)" "$scr_path/$output.png" convert "$scr_path/$output.png" \( +clone -background transparent -shadow 60x40+0+15 \) \ +swap -background white -layers merge +repage "$scr_path/$output.png" - notify-send "window screenshot taken!" ;; s) g=$(slop --highlight --tolerance=0 --color=0.3,0.4,0.6,0.4) sleep 1 import -window root -crop "$g" +repage "$scr_path/$output.png" - notify-send "selection screenshot taken!" ;; * | ?) usage
A bin/wpa.sh

@@ -0,0 +1,5 @@

+#!/usr/bin/env bash + +sudo wpa_supplicant -i wlp2s0 -B -c /etc/wpa_supplicant.conf +sudo wpa_cli -i wlp2s0 select_network 1 +sudo dhcpcd wlp2s0
M config/compton.confconfig/compton.conf

@@ -1,54 +1,9 @@

-# Thank you code_nomad: http://9m.no/ꪯ鵞 - -################################# -# -# Backend -# -################################# - -# Backend to use: "xrender" or "glx". -# GLX backend is typically much faster but depends on a sane driver. -backend = "glx"; - -################################# -# -# GLX backend -# -################################# - +backend = "xrender"; glx-no-stencil = true; - -# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. -# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, -# but a 20% increase when only 1/4 is. -# My tests on nouveau show terrible slowdown. -# Useful with --glx-swap-method, as well. glx-copy-from-front = false; - -# GLX backend: Use MESA_copy_sub_buffer to do partial screen update. -# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. -# May break VSync and is not available on some drivers. -# Overrides --glx-copy-from-front. -# glx-use-copysubbuffermesa = true; - -# GLX backend: Avoid rebinding pixmap on window damage. -# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). -# Recommended if it works. -# glx-no-rebind-pixmap = true; - - -# GLX backend: GLX buffer swap method we assume. -# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). -# undefined is the slowest and the safest, and the default value. -# copy is fastest, but may fail on some drivers, -# 2-6 are gradually slower but safer (6 is still faster than 0). -# Usually, double buffer means 2, triple buffer means 3. -# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers. -# Useless with --glx-use-copysubbuffermesa. -# Partially breaks --resize-damage. -# Defaults to undefined. glx-swap-method = "undefined"; - +# rounded corners +corner-radius = 12; ################################# # # Shadows

@@ -56,46 +11,37 @@ #

################################# # Enabled client-side shadows on windows. -shadow = false; +shadow = true; # Don't draw shadows on DND windows. -no-dnd-shadow = true; +no-dnd-shadow = false; # Avoid drawing shadows on dock/panel windows. no-dock-shadow = true; # Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows. -shadow-radius = 4; -shadow-opacity = 0.6; -shadow-offset-x = -6; -shadow-offset-y = -2;clear-shadow = true; -# The blur radius for shadows. (default 12) - -# Set if you want different colour shadows -# shadow-red = 0.0; -# shadow-green = 0.0; -# shadow-blue = 0.0; - -# The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches -# (most applications are fine, only apps that do weird things with xshapes or argb are affected). -# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher. -shadow-exclude = [ - "! name~=''", - "name = 'Notification'", - "name = 'Plank'", - "name = 'Docky'", - "name = 'Kupfer'", - "name = 'xfce4-notifyd'", - "name *= 'VLC'", - "name *= 'compton'", - "name *= 'Chromium'", - "name *= 'Chrome'", - "class_g = 'Conky'", - "class_g = 'Kupfer'", - "class_g = 'Synapse'", - "class_g ?= 'Notify-osd'", - "class_g ?= 'Cairo-dock'", - "class_g ?= 'Xfce4-notifyd'", - "class_g ?= 'Xfce4-power-manager'", - "_GTK_FRAME_EXTENTS@:c" -]; +shadow-radius = 60; +shadow-opacity = 0.4; +shadow-offset-x = -60; +shadow-offset-y = -60; +clear-shadow = false; +#shadow-exclude = [ +# "! name~=''", +# "name = 'Notification'", +# "name = 'Plank'", +# "name = 'Docky'", +# "name = 'Kupfer'", +# "name = 'xfce4-notifyd'", +# "name *= 'VLC'", +# "name *= 'compton'", +# "name *= 'Chromium'", +# "name *= 'Chrome'", +# "class_g = 'Conky'", +# "class_g = 'Kupfer'", +# "class_g = 'Synapse'", +# "class_g ?= 'Notify-osd'", +# "class_g ?= 'Cairo-dock'", +# "class_g ?= 'Xfce4-notifyd'", +# "class_g ?= 'Xfce4-power-manager'", +# "_GTK_FRAME_EXTENTS@:c" +#]; # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) shadow-ignore-shaped = false;

@@ -111,16 +57,7 @@ active-opacity = 1;

frame-opacity = 1; inactive-opacity-override = false; alpha-step = 0.06; - -# Dim inactive windows. (0.0 - 1.0) -#inactive-dim = 0.2; -# Do not let dimness adjust based on window opacity. -# inactive-dim-fixed = true; -# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. - blur-background = true; -# Blur background of opaque windows with transparent frames as well. -# blur-background-frame = true; -# Do not let blur radius adjust based on window opacity. +blur-background = true; blur-background-fixed = false; blur-background-exclude = [ "window_type = 'dock'",

@@ -174,25 +111,9 @@ # Specify refresh rate of the screen.

# If not specified or 0, compton will try detecting this with X RandR extension. refresh-rate = 0; -# Set VSync method. VSync methods currently available: -# none: No VSync -# drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers. -# opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers. -# opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers. -# opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental. -# opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use. -# (Note some VSync methods may not be enabled at compile time.) vsync = "opengl-swc"; - -# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. -# Reported to have no effect, though. dbe = false; -# Painting on X Composite overlay window. Recommended. paint-on-overlay = true; - -# Limit compton to repaint at most once every 1 / refresh_rate second to boost performance. -# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, -# unless you wish to specify a lower refresh rate than the actual value. sw-opti = true; # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
M config/nvim/init.vimconfig/nvim/init.vim

@@ -19,7 +19,6 @@ Plug 'ervandew/supertab'

Plug 'zah/nim.vim' Plug 'wellle/targets.vim' Plug 'NerdyPepper/agila.vim' -Plug 'w0rp/ale' call plug#end() " indentation
M config/sxhkd/sxhkdrcconfig/sxhkd/sxhkdrc

@@ -5,11 +5,11 @@ #\__ \> <| | | | < (_| | | | (__

#|___/_/\_\_| |_|_|\_\__,_|_| \___| # -super + Return - alacritty +#super + Return +# alacritty -super + d - dmenu_run +#super + d +# dmenu_run super + ctrl + l ~/bin/lock.sh

@@ -27,10 +27,10 @@ XF86AudioMute

pamixer -t XF86MonBrightnessUp - xbacklight -inc 5 + lux -a 20 XF86MonBrightnessDown - xbacklight -dec 5 + lux -s 20 Print scr -f
M git/.gitconfiggit/.gitconfig

@@ -1,9 +1,9 @@

[user] - name = Anirudh Oppiliappan - email = x@icyphox.sh - signingkey = 8A93F96F78C5D4C4 + name = Anirudh Oppiliappan + email = x@icyphox.sh + signingkey = 8A93F96F78C5D4C4 [commit] - gpgsign = true - verbose = true + gpgsign = true + verbose = true [gpg] - program = gpg2 + program = gpg2
M readme.mdreadme.md

@@ -1,5 +1,5 @@

# dotfiles > my Linux configs -![scrot](https://x.icyphox.sh/WSX.png) +![scrot](https://x.icyphox.sh/kPj.png)
M weechat/weechat.confweechat/weechat.conf

@@ -90,6 +90,7 @@ mouse = on

mouse_timer_delay = 100 nick_color_force = "" nick_color_hash = djb2 +nick_color_hash_salt = "" nick_color_stop_chars = "_|[" nick_prefix = " " nick_suffix = ""

@@ -314,7 +315,7 @@ input.conditions = ""

input.filling_left_right = vertical input.filling_top_bottom = horizontal input.hidden = off -input.items = "; ,input_text" +input.items = "@buffer:▲ ,input_text" input.position = bottom input.priority = 1000 input.separator = on

@@ -341,7 +342,7 @@ nicklist.color_fg = 8

nicklist.conditions = "nicklist" nicklist.filling_left_right = vertical nicklist.filling_top_bottom = columns_vertical -nicklist.hidden = off +nicklist.hidden = on nicklist.items = "buffer_nicklist" nicklist.position = right nicklist.priority = 200

@@ -369,7 +370,7 @@ title.color_fg = default

title.conditions = "" title.filling_left_right = vertical title.filling_top_bottom = horizontal -title.hidden = off +title.hidden = on title.items = "buffer_title" title.position = top title.priority = 500

@@ -382,18 +383,15 @@ [layout]

default.buffer = "core;weechat;1" default.buffer = "irc;server.rizon;1" default.buffer = "irc;server.freenode;1" -default.buffer = "irc;freenode.#alpine-linux;2" -default.buffer = "irc;freenode.#kisslinux;3" -default.buffer = "irc;freenode.#lobsters;4" -default.buffer = "irc;freenode.#ncurses;5" -default.buffer = "irc;freenode.#rice;6" -default.buffer = "irc;freenode.##security;7" -default.buffer = "irc;rizon.#bullshit;8" -default.buffer = "irc;rizon.#code;9" -default.buffer = "irc;rizon.#crimson;10" -default.buffer = "irc;rizon.#homescreen;11" -default.buffer = "irc;rizon.#linux;12" -default.buffer = "irc;rizon.#rice;13" +default.buffer = "irc;freenode.#kisslinux;2" +default.buffer = "irc;freenode.#lobsters;3" +default.buffer = "irc;freenode.##security;4" +default.buffer = "irc;rizon.#bullshit;5" +default.buffer = "irc;rizon.#code;6" +default.buffer = "irc;rizon.#crimson;7" +default.buffer = "irc;rizon.#homescreen;8" +default.buffer = "irc;rizon.#rice;9" +default.buffer = "fset;fset;10" default.window = "1;0;0;0;irc;rizon.Carp" default.current = on
M x/.xinitrcx/.xinitrc

@@ -1,4 +1,4 @@

-#!/usr/bin/env bash +#!/bin/sh # _ _ _ # __ _(_)_ __ (_) |_ _ __ ___

@@ -8,11 +8,10 @@ #(_)_/\_\_|_| |_|_|\__|_| \___|

# setxkbmap -option 'grp:alt_shift_toggle' -layout us,ru -option 'compose:caps' -urxvtd & -devmon & +#devmon & ~/.fehbg & -eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh) +eval "$(gpg-agent --daemon --enable-ssh-support --write-env-file "${HOME}/.gpg-agent-info")" sxhkd & -~/bin/bar.sh & xrdb -l ~/.Xresources -exec xfwm4 +st & +exec ~/leet/2bwm/2bwm