-
-
Save 4ban/1110d8f134463199abeea81692cbbb56 to your computer and use it in GitHub Desktop.
Awesome ban configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if __has_include(".extend.Xresources") | |
#include ".extend.Xresources" | |
#endif | |
#include ".xrdb/color/blur" | |
Xft.dpi: 96 | |
Xft.antialias: true | |
Xft.hinting: true | |
Xft.rgba: rgb | |
Xft.autohint: false | |
Xft.hintstyle: hintslight | |
Xft.lcdfilter: lcddefault | |
!XTerm*background: bg_color | |
!XTerm*foreground: fg_color | |
!XTerm*pointerColor: cursor_color | |
XTerm*faceName: MesloLGS:Regular | |
XTerm*faceSize: 10 | |
XTerm*geometry: 90x23 | |
URxvt.internalBorder: 1 | |
URxvt.externalBorder: 1 | |
!URxvt.lineSpace: 0 | |
!urxvt*shading: 30 | |
URxvt.depth: 24 | |
URxvt.saveLines: 10000 | |
URxvt*geometry: 96x23 | |
URxvt*terminalName: rxvt-unicode-256color | |
URxvt*visualBell: false | |
URxvt.perl-ext-common: tabbed | |
!URxvt.tabbed.tabcmds.1: N|htop}htop | |
!URxvt.tabbed.tabcmds.2: R|shell | |
!URxvt.tabbed.tabcmds.3: M|shell | |
!URxvt*session: N|R|M | |
!! Scrollbar | |
!URxvt.scrollStyle: rxvt | |
URxvt.scrollBar: false | |
URxvt*scrollTtyOutput: false | |
URxvt*scrollWithBuffer: true | |
URxvt*scrollTtyKeypress: true | |
URxvt*transparent: false | |
!URxvt*shading: 70 | |
!! Fonts | |
URxvt*font: xft:MesloLGS:Regular:size=10 | |
!URxvt*boldFont: xft:MesloLGS:Bold:size=10 | |
!URxvt*italicFont: xft:MesloLGS:Regular:size=10 | |
!URxvt*boldItalicFont: xft:MesloLGS:Regular:size=10 | |
URxvt.letterSpace: true | |
!! Keybinding | |
URxvt.keysym.C-Up: perl:font-size:increase | |
URxvt.keysym.C-Down: perl:font-size:decrease | |
URxvt.keysym.C-S-Up: perl:font-size:incglobal | |
URxvt.keysym.C-S-Down: perl:font-size:decglobal | |
!Home and End keys to jump to the beginning and end of lines | |
URxvt*keysym.Home: \033[1~ | |
URxvt*keysym.End: \033[4~ | |
!! Tabs [COLORS] | |
URxvt.tabbed.tabbar-bg: -1 | |
URxvt.tabbed.tabbar-fg: 13 | |
URxvt.tabbed.tab-bg: 13 | |
URxvt.tabbed.tab-fg: -1 | |
URxvt.tabbed.title-bg: -1 | |
URxvt.tabbed.title-fg: -2 | |
URxvt.tabbed.autohide: true | |
URxvt.tabbed.new-button: false | |
URxvt.tabbed.title: true | |
!! Disable the stupid ctrl+shift 'feature' | |
URxvt.iso14755: false | |
URxvt.iso14755_52: false | |
!! Cursor | |
URxvt.colorUL: #83a598 | |
Xcursor.theme: Adwaita | |
!! Pointer | |
!URxvt.pointerBlank: true | |
yeahconsole*toggleKey: None+F1 | |
yeahconsole*consoleHeight: 25 | |
yeahconsole*aniDelay: 0 | |
yeahconsole*stepSize: 10 | |
yeahconsole*inheritPixmap: false | |
yeahconsole*faceName: MesloLGS:Regular | |
yeahconsole*faceSize: 10 | |
!yeahconsole*background: bg_color | |
!yeahconsole*foreground: fg_color | |
!yeahconsole*cursorColor: cursor_color | |
yeahconsole*restart:1 | |
yeahconsole*keySmaller:Control+KP_Subtract | |
yeahconsole*keyBigger:Control+KP_Add | |
! yeahconsole*faceName: SourceCodePro-Regular:size=8 | |
! yeahconsole*faceName: MesloLGS-Regular:size=8 | |
yeahconsole*metaSendsEscape:true | |
yeahconsole*xOffset: 0 | |
yeahconsole*screenWidth: 1600 | |
!yeahconsole*consoleHeight: 15 | |
yeahconsole*handleWidth: 1 | |
!yeahconsoled | |
yeahconsole*loginShell: true | |
yeahconsole*savelines: 10000 | |
yeahconsole*toolBar: false | |
yeahconsole*term: urxvt | |
! transparency percentage | |
!100% - FF | |
!95% - F2 | |
!90% - E6 | |
!85% - D9 | |
!80% - CC | |
!75% - BF | |
!70% - B3 | |
!65% - A6 | |
!60% - 99 | |
!55% - 8C | |
!50% - 80 | |
!45% - 73 | |
!40% - 66 | |
!35% - 59 | |
!30% - 4D | |
!25% - 40 | |
!20% - 33 | |
!15% - 26 | |
!10% - 1A | |
!5% - 0D | |
!0% - 00 | |
rofi.color-enabled: true | |
rofi.color-window: #4d32302f, #4d32302f, #0032302f | |
rofi.color-normal: #0032302f, #d8dee9, #0032302f, #cc458588, #32302f | |
rofi.color-active: #4d1b2b34, #6699cc, #4d343d46, #4d6699cc, #d8dee9 | |
rofi.color-urgent: #4d1b2b34, #ec5f67, #4d343d46, #4dec5f67, #d8dee9 | |
rofi.modi: run,ssh,window | |
rofi.separator-style: solid | |
rofi.show-icons: true | |
rofi.drun-icon-theme: Paper | |
rofi.sidebar-mode: true | |
rofi.padding: 10 | |
rofi.bw: 0 | |
rofi.scrollbar-width: 0 | |
rofi.line-margin: 0 | |
rofi.lines: 10 | |
rofi.terminal: urxvt | |
rofi.case-sensitive: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Segment drawing | |
# A few utility functions to make it easy and re-usable to draw segmented prompts | |
CURRENT_BG='NONE' | |
# Special Powerline characters | |
() { | |
local LC_ALL="" LC_CTYPE="en_US.UTF-8" | |
# NOTE: This segment separator character is correct. In 2012, Powerline changed | |
# the code points they use for their special characters. This is the new code point. | |
# If this is not working for you, you probably have an old version of the | |
# Powerline-patched fonts installed. Download and install the new version. | |
# Do not submit PRs to change this unless you have reviewed the Powerline code point | |
# history and have new information. | |
# This is defined using a Unicode escape sequence so it is unambiguously readable, regardless of | |
# what font the user is viewing this source code in. Do not replace the | |
# escape sequence with a single literal character. | |
# Do not change this! Do not make it '\u2b80'; that is the old, wrong code point. | |
#SEGMENT_SEPARATOR=$'\ue0b0' | |
SEGMENT_SEPARATOR=$'' | |
} | |
# Begin a segment | |
# Takes two arguments, background and foreground. Both can be omitted, | |
# rendering default background/foreground. | |
prompt_segment() { | |
local bg fg | |
[[ -n $1 ]] && bg="%K{$1}" || bg="%k" | |
[[ -n $2 ]] && fg="%F{$2}" || fg="%f" | |
if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then | |
echo -n " %{$bg%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{$fg%} " | |
else | |
echo -n "%{$bg%}%{$fg%} " | |
fi | |
CURRENT_BG=$1 | |
[[ -n $3 ]] && echo -n $3 | |
} | |
# End the prompt, closing any open segments | |
prompt_end() { | |
if [[ -n $CURRENT_BG ]]; then | |
echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR" | |
else | |
echo -n "%{%k%}" | |
fi | |
echo -n "%{%f%}" | |
CURRENT_BG='' | |
} | |
prompt_context() { | |
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then | |
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER" | |
fi | |
} | |
prompt_git() { | |
(( $+commands[git] )) || return | |
local PL_BRANCH_CHAR | |
() { | |
local LC_ALL="" LC_CTYPE="en_US.UTF-8" | |
#PL_BRANCH_CHAR=$'\ue0a0' # | |
PL_BRANCH_CHAR=$'' | |
} | |
local ref dirty mode repo_path | |
repo_path=$(git rev-parse --git-dir 2>/dev/null) | |
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then | |
dirty=$(parse_git_dirty) | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git rev-parse --short HEAD 2> /dev/null)" | |
if [[ -n $dirty ]]; then | |
prompt_segment yellow black | |
else | |
prompt_segment green black | |
fi | |
if [[ -e "${repo_path}/BISECT_LOG" ]]; then | |
mode=" <B>" | |
elif [[ -e "${repo_path}/MERGE_HEAD" ]]; then | |
mode=" >M<" | |
elif [[ -e "${repo_path}/rebase" || -e "${repo_path}/rebase-apply" || -e "${repo_path}/rebase-merge" || -e "${repo_path}/../.dotest" ]]; then | |
mode=" >R>" | |
fi | |
setopt promptsubst | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' enable git | |
zstyle ':vcs_info:*' get-revision true | |
zstyle ':vcs_info:*' check-for-changes true | |
zstyle ':vcs_info:*' stagedstr '+' | |
zstyle ':vcs_info:*' unstagedstr '**' | |
zstyle ':vcs_info:*' formats ' %u%c' | |
zstyle ':vcs_info:*' actionformats ' %u%c' | |
vcs_info | |
echo -n "${ref/refs\/heads\//$PL_BRANCH_CHAR }${vcs_info_msg_0_%% }${mode}" | |
fi | |
} | |
# Dir: current working directory | |
prompt_dir() { | |
prompt_segment magenta black '%3~' | |
} | |
prompt_mes() { | |
prompt_segment magenta black '>' | |
} | |
# Virtualenv: current working virtualenv | |
prompt_virtualenv() { | |
local virtualenv_path="$VIRTUAL_ENV" | |
if [[ -n $virtualenv_path && -n $VIRTUAL_ENV_DISABLE_PROMPT ]]; then | |
prompt_segment green black "(`basename $virtualenv_path`)" | |
fi | |
} | |
prompt_status() { | |
local symbols | |
symbols=() | |
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘" | |
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡" | |
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙" | |
[[ -n "$symbols" ]] && prompt_segment black default "$symbols" | |
} | |
## Main left prompt | |
build_prompt() { | |
RETVAL=$? | |
prompt_virtualenv | |
prompt_context | |
prompt_mes | |
prompt_end | |
} | |
build_rprompt() { | |
RETVAL=$? | |
prompt_status | |
prompt_dir | |
prompt_git | |
prompt_end | |
} | |
PROMPT='%{%f%b%k%}$(build_prompt) ' | |
RPROMPT='%{%f%b%k%}$(build_rprompt)' | |
#PROMPT='%{$FG[001]%}> %{$reset_color%}' | |
#RPROMPT='%{$FG[001]%}%2~ $(git_prompt_info)$(git_prompt_status)%{$reset_color%}' | |
#ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[yellow]%}✗%{$reset_color%}" | |
#ZSH_THEME_GIT_PROMPT_PREFIX="(" | |
#ZSH_THEME_GIT_PROMPT_SUFFIX=")" | |
#ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[magenta]%}[" | |
#ZSH_THEME_GIT_PROMPT_SUFFIX="]%{$reset_color%}" | |
#ZSH_THEME_GIT_PROMPT_DIRTY="" | |
#ZSH_THEME_GIT_PROMPT_CLEAN="" | |
#ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}+" | |
#ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[yellow]%}*" | |
#ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%}x" | |
#ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[blue]%}~" | |
#ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[magenta]%}><" | |
#ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[white]%}**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! special | |
*.foreground: #DCE0D9 | |
*.background: #282828 | |
*.cursorColor: #c8ccd4 | |
! black | |
*.color0: #32302f | |
*.color8: #928374 | |
! red | |
*.color1: #d64d4d | |
*.color9: #F45B69 | |
! green | |
*.color2: #00b159 | |
*.color10: #00b159 | |
! yellow | |
*.color3: #f18e38 | |
*.color11: #cc9c00 | |
! blue | |
*.color4: #428bca | |
*.color12: #428bca | |
! magenta | |
*.color5: #B85C8A | |
*.color13: #B85C8A | |
! cyan | |
*.color6: #087E8B | |
*.color14: #129490 | |
! white | |
*.color7: #a89984 | |
*.color15: #f2efed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shadow = true; | |
no-dnd-shadow = true; | |
no-dock-shadow = true; | |
clear-shadow = true; | |
shadow-radius = 7; | |
shadow-offset-x = -7; | |
shadow-offset-y = -7; | |
shadow-opacity = 0.7; | |
shadow-red = 0.0; | |
shadow-green = 0.0; | |
shadow-blue = 0.0; | |
shadow-exclude = [ | |
"! name~=''", | |
"name = 'Notification'", | |
"name = 'Plank'", | |
"name = 'Docky'", | |
"name = 'Kupfer'", | |
"name = 'xfce4-notifyd'", | |
"name *= 'VLC'", | |
"name *= 'compton'", | |
"class_g *= 'Compton'", | |
"name *= 'Chromium'", | |
"name *= 'Chrome'", | |
"name *= 'Firefox'", | |
"class_g = 'Firefox' && argb", | |
"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'", | |
"_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", | |
]; | |
# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) | |
shadow-ignore-shaped = false; | |
xinerama-shadow-crop = false; | |
menu-opacity = 0.8; | |
inactive-opacity = 0.8; | |
active-opacity = 0.8; | |
frame-opacity = 0.7; | |
inactive-opacity-override = false; | |
alpha-step = 0.06; | |
inactive-dim = 0.1; | |
opacity-rule = [ | |
"99:class_g = 'Subl3'", | |
"99:class_g = 'Code'", | |
"99:class_g = 'Vivaldi-snapshot'", | |
"99:class_g = 'Firefox'", | |
"99:class_g = 'Opera'", | |
"99:class_g = 'mpv'", | |
"99:class_g = 'viewnior'", | |
"99:class_g = 'Caja'", | |
"99:class_g = 'Tilda'", | |
"99:class_g = 'jetbrains-webstorm'", | |
"99:class_g = 'jetbrains-idea'", | |
"99:class_g = 'jetbrains-pycharm'", | |
"99:class_g = 'Vivaldi-stable'", | |
"99:class_g = 'Google-chrome'", | |
"99:class_g = 'Google-chrome-unstable'", | |
"99:class_g = 'Transmission-gtk'", | |
"99:class_g = 'TelegramDesktop'", | |
"99:class_g = 'Messenger for Desktop'", | |
"99:class_g = 'XTerm'", | |
"99:class_g = 'llpp'", | |
]; | |
blur-kern = "3x3box"; | |
blur-method = "kawase"; | |
blur-strength = 15; | |
blur-background-fixed = false; | |
blur-background-exclude = [ | |
"window_type = 'dock'", | |
"window_type = 'desktop'", | |
# "class_g = 'Subl3'", | |
# "class_g = 'Vivaldi-snapshot'", | |
# "class_g = 'Firefox'", | |
# "class_g = 'Opera'", | |
# "class_g = 'mpv'", | |
# "class_g = 'Caja'", | |
# "class_g = 'Tilda'", | |
# "class_g = 'jetbrains-webstorm'", | |
# "class_g = 'jetbrains-idea'", | |
# "class_g = 'jetbrains-pycharm'", | |
# "class_g = 'Vivaldi-stable'", | |
# "class_g = 'Google-chrome'", | |
# "class_g = 'Google-chrome-unstable'", | |
# "class_g = 'Transmission-gtk'", | |
# "class_g = 'TelegramDesktop'", | |
# "class_g = 'XTerm'", | |
# "class_g = 'llpp'", | |
]; | |
fading = true; | |
fade-delta = 4; | |
fade-in-step = 0.03; | |
fade-out-step = 0.03; | |
fade-exclude = [ | |
"class_g = 'Subl3'", | |
"class_g = 'Vivaldi-snapshot'", | |
"class_g = 'Firefox'", | |
"class_g = 'Opera'", | |
"class_g = 'mpv'", | |
# "class_g = 'Caja'", | |
"class_g = 'Tilda'", | |
"class_g = 'jetbrains-webstorm'", | |
"class_g = 'jetbrains-idea'", | |
"class_g = 'jetbrains-pycharm'", | |
"class_g = 'Vivaldi-stable'", | |
"class_g = 'Google-chrome'", | |
"class_g = 'Google-chrome-unstable'", | |
# "class_g = 'Transmission-gtk'", | |
# "class_g = 'TelegramDesktop'", | |
"class_g = 'XTerm'", | |
"class_g = 'llpp'", | |
"width >= 1900", | |
"fullscreen" | |
]; | |
backend = "glx"; | |
mark-wmwin-focused = true; | |
mark-ovredir-focused = true; | |
detect-rounded-corners = true; | |
detect-client-opacity = true; | |
refresh-rate = 0; | |
vsync = "opengl-swc"; | |
dbe = false; | |
paint-on-overlay = true; | |
sw-opti = false; | |
unredir-if-possible = true; | |
detect-transient = true; | |
detect-client-leader = true; | |
invert-color-include = [ ]; | |
glx-no-stencil = true; | |
glx-copy-from-front = false; | |
# glx-swap-method = "undefined"; | |
glx-swap-method = 1; | |
glx-use-gpushader4 = true; | |
glx-no-rebind-pixmap = true; | |
use-ewmh-active-win = true; | |
wintypes : | |
{ | |
tooltip : | |
{ | |
fade = true; | |
shadow = false; | |
opacity = 0.75; | |
focus = true; | |
}; | |
}; | |
blur-background = true; | |
blur-background-frame = false; | |
focus-exclude = [ | |
"x = 400 && y = 350 && override_redirect = true", | |
"x = 0 && y = 0 && override_redirect = true", | |
"_NET_WM_NAME@:s = 'rofi'", | |
"_NET_WM_NAME@:s = 'dmenu'", | |
"class_g = 'mpv'" | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment