ケロロリちゃんのドットファイル
このコミットが含まれているのは:
コミット
50c69c75c5
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# ~/.Xclients
|
||||||
|
#
|
||||||
|
# Executed by xdm/gdm/kdm at login
|
||||||
|
#
|
||||||
|
|
||||||
|
/bin/bash --login -i ~/.xinitrc
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#
|
||||||
|
# ~/.bash_profile
|
||||||
|
#
|
||||||
|
|
||||||
|
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
|
@ -0,0 +1,139 @@
|
||||||
|
#
|
||||||
|
# ~/.bashrc
|
||||||
|
#
|
||||||
|
|
||||||
|
[[ $- != *i* ]] && return
|
||||||
|
|
||||||
|
colors() {
|
||||||
|
local fgc bgc vals seq0
|
||||||
|
|
||||||
|
printf "Color escapes are %s\n" '\e[${value};...;${value}m'
|
||||||
|
printf "Values 30..37 are \e[33mforeground colors\e[m\n"
|
||||||
|
printf "Values 40..47 are \e[43mbackground colors\e[m\n"
|
||||||
|
printf "Value 1 gives a \e[1mbold-faced look\e[m\n\n"
|
||||||
|
|
||||||
|
# foreground colors
|
||||||
|
for fgc in {30..37}; do
|
||||||
|
# background colors
|
||||||
|
for bgc in {40..47}; do
|
||||||
|
fgc=${fgc#37} # white
|
||||||
|
bgc=${bgc#40} # black
|
||||||
|
|
||||||
|
vals="${fgc:+$fgc;}${bgc}"
|
||||||
|
vals=${vals%%;}
|
||||||
|
|
||||||
|
seq0="${vals:+\e[${vals}m}"
|
||||||
|
printf " %-9s" "${seq0:-(default)}"
|
||||||
|
printf " ${seq0}TEXT\e[m"
|
||||||
|
printf " \e[${vals:+${vals+$vals;}}1mBOLD\e[m"
|
||||||
|
done
|
||||||
|
echo; echo
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
|
||||||
|
|
||||||
|
# Change the window title of X terminals
|
||||||
|
case ${TERM} in
|
||||||
|
xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|interix|konsole*)
|
||||||
|
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"'
|
||||||
|
;;
|
||||||
|
screen*)
|
||||||
|
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
use_color=true
|
||||||
|
|
||||||
|
# Set colorful PS1 only on colorful terminals.
|
||||||
|
# dircolors --print-database uses its own built-in database
|
||||||
|
# instead of using /etc/DIR_COLORS. Try to use the external file
|
||||||
|
# first to take advantage of user additions. Use internal bash
|
||||||
|
# globbing instead of external grep binary.
|
||||||
|
safe_term=${TERM//[^[:alnum:]]/?} # sanitize TERM
|
||||||
|
match_lhs=""
|
||||||
|
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
|
||||||
|
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
|
||||||
|
[[ -z ${match_lhs} ]] \
|
||||||
|
&& type -P dircolors >/dev/null \
|
||||||
|
&& match_lhs=$(dircolors --print-database)
|
||||||
|
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
|
||||||
|
|
||||||
|
if ${use_color} ; then
|
||||||
|
# Enable colors for ls, etc. Prefer ~/.dir_colors #64489
|
||||||
|
if type -P dircolors >/dev/null ; then
|
||||||
|
if [[ -f ~/.dir_colors ]] ; then
|
||||||
|
eval $(dircolors -b ~/.dir_colors)
|
||||||
|
elif [[ -f /etc/DIR_COLORS ]] ; then
|
||||||
|
eval $(dircolors -b /etc/DIR_COLORS)
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
|
PS1='\[\033[01;31m\][\h\[\033[01;36m\] \W\[\033[01;31m\]]\$\[\033[00m\] '
|
||||||
|
else
|
||||||
|
PS1='\[\033[01;32m\][\u@\h\[\033[01;37m\] \W\[\033[01;32m\]]\$\[\033[00m\] '
|
||||||
|
fi
|
||||||
|
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias grep='grep --colour=auto'
|
||||||
|
alias egrep='egrep --colour=auto'
|
||||||
|
alias fgrep='fgrep --colour=auto'
|
||||||
|
else
|
||||||
|
if [[ ${EUID} == 0 ]] ; then
|
||||||
|
# show root@ when we don't have colors
|
||||||
|
PS1='\u@\h \W \$ '
|
||||||
|
else
|
||||||
|
PS1='\u@\h \w \$ '
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
unset use_color safe_term match_lhs sh
|
||||||
|
|
||||||
|
alias cp="cp -i" # confirm before overwriting something
|
||||||
|
alias df='df -h' # human-readable sizes
|
||||||
|
alias free='free -m' # show sizes in MB
|
||||||
|
alias np='nano -w PKGBUILD'
|
||||||
|
alias more=less
|
||||||
|
|
||||||
|
xhost +local:root > /dev/null 2>&1
|
||||||
|
|
||||||
|
complete -cf sudo
|
||||||
|
|
||||||
|
# Bash won't get SIGWINCH if another process is in the foreground.
|
||||||
|
# Enable checkwinsize so that bash will check the terminal size when
|
||||||
|
# it regains control. #65623
|
||||||
|
# http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11)
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|
||||||
|
shopt -s expand_aliases
|
||||||
|
|
||||||
|
# export QT_SELECT=4
|
||||||
|
|
||||||
|
# Enable history appending instead of overwriting. #139609
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
|
#
|
||||||
|
# # ex - archive extractor
|
||||||
|
# # usage: ex <file>
|
||||||
|
ex ()
|
||||||
|
{
|
||||||
|
if [ -f $1 ] ; then
|
||||||
|
case $1 in
|
||||||
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
|
*.tar.gz) tar xzf $1 ;;
|
||||||
|
*.bz2) bunzip2 $1 ;;
|
||||||
|
*.rar) unrar x $1 ;;
|
||||||
|
*.gz) gunzip $1 ;;
|
||||||
|
*.tar) tar xf $1 ;;
|
||||||
|
*.tbz2) tar xjf $1 ;;
|
||||||
|
*.tgz) tar xzf $1 ;;
|
||||||
|
*.zip) unzip $1 ;;
|
||||||
|
*.Z) uncompress $1;;
|
||||||
|
*.7z) 7z x $1 ;;
|
||||||
|
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
echo "'$1' is not a valid file"
|
||||||
|
fi
|
||||||
|
}
|
|
@ -0,0 +1,540 @@
|
||||||
|
# Configuration for Alacritty, the GPU enhanced terminal emulator
|
||||||
|
|
||||||
|
# Any items in the `env` entry below will be added as
|
||||||
|
# environment variables. Some entries may override variables
|
||||||
|
# set by alacritty it self.
|
||||||
|
# env:
|
||||||
|
# TERM env customization.
|
||||||
|
#
|
||||||
|
# If this property is not set, alacritty will set it to xterm-256color.
|
||||||
|
#
|
||||||
|
# Note that some xterm terminfo databases don't declare support for italics.
|
||||||
|
# You can verify this by checking for the presence of `smso` and `sitm` in
|
||||||
|
# `infocmp xterm-256color`.
|
||||||
|
# TERM: xterm-256color-italic
|
||||||
|
|
||||||
|
window:
|
||||||
|
# Window dimensions (changes require restart)
|
||||||
|
#
|
||||||
|
# Specified in number of columns/lines, not pixels. If both are zero this
|
||||||
|
# setting is ignored.
|
||||||
|
dimensions:
|
||||||
|
columns: 100
|
||||||
|
lines: 85
|
||||||
|
|
||||||
|
# Window padding (changes require restart)
|
||||||
|
#
|
||||||
|
# Blank space added around the window in pixels. This padding is not scaled by
|
||||||
|
# DPI and the specified value is always added at both opposing sides.
|
||||||
|
padding:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
|
||||||
|
# Spread additional padding evenly around the terminal content.
|
||||||
|
dynamic_padding: false
|
||||||
|
|
||||||
|
# Window decorations
|
||||||
|
#
|
||||||
|
# Available values:
|
||||||
|
# - full: borders and title bar
|
||||||
|
# - none: neither borders nor title bar
|
||||||
|
# - transparent: title bar, transparent background and title bar buttons
|
||||||
|
# - buttonless: title bar, transparent background, but no title bar buttons
|
||||||
|
decorations: none
|
||||||
|
|
||||||
|
# Startup Mode (changes require restart)
|
||||||
|
#
|
||||||
|
# Values for `startup_mode`:
|
||||||
|
# - Windowed
|
||||||
|
# - Maximized
|
||||||
|
# - Fullscreen
|
||||||
|
#
|
||||||
|
# Values for `startup_mode` (macOS only):
|
||||||
|
# - SimpleFullscreen
|
||||||
|
startup_mode: Windowed
|
||||||
|
|
||||||
|
scrolling:
|
||||||
|
# maximum number of lines in the scrollback buffer. Specifying '0' will
|
||||||
|
# disable scrolling.
|
||||||
|
history: 1000
|
||||||
|
|
||||||
|
# Number of lines the viewport will move for every line scrolled when
|
||||||
|
# scrollback is enabled (history > 0).
|
||||||
|
multiplier: 3
|
||||||
|
|
||||||
|
# Font configuration (changes require restart)
|
||||||
|
font:
|
||||||
|
# The normal (roman) font face to use.
|
||||||
|
# Style can be specified to pick a specific face.
|
||||||
|
normal:
|
||||||
|
family: Monospace
|
||||||
|
style: Regular
|
||||||
|
# family: "Fira Code"
|
||||||
|
# family: "Source Code Pro"
|
||||||
|
# style: Retina
|
||||||
|
|
||||||
|
# The bold font face
|
||||||
|
bold:
|
||||||
|
family: Monospace
|
||||||
|
style: Bold
|
||||||
|
# family: "Fira Code"
|
||||||
|
# family: "Source Code Pro"
|
||||||
|
|
||||||
|
# The italic font face
|
||||||
|
italic:
|
||||||
|
family: Monospace
|
||||||
|
style: Italic
|
||||||
|
# style: "Light Oblique"
|
||||||
|
# family: "Fira Code"
|
||||||
|
# family: "Source Code Pro"
|
||||||
|
# style: "Medium Italic"
|
||||||
|
|
||||||
|
# Point size of the font
|
||||||
|
size: 12.0
|
||||||
|
|
||||||
|
# Offset is the extra space around each character. offset.y can be thought of
|
||||||
|
# as modifying the linespacing, and offset.x as modifying the letter spacing.
|
||||||
|
offset:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
|
||||||
|
# Glyph offset determines the locations of the glyphs within their cells with
|
||||||
|
# the default being at the bottom. Increase the x offset to move the glyph to
|
||||||
|
# the right, increase the y offset to move the glyph upward.
|
||||||
|
glyph_offset:
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
|
||||||
|
# Thin stroke font rendering (macOS only)
|
||||||
|
#
|
||||||
|
# Thin strokes are suitable for retina displays, but for non-retina you
|
||||||
|
# probably want this set to false.
|
||||||
|
#
|
||||||
|
# macOS >= 10.14.x:
|
||||||
|
#
|
||||||
|
# If the font quality on non-retina display looks bad then set
|
||||||
|
# `use_thin_strokes` to `true` and enable font smoothing by running the
|
||||||
|
# following command:
|
||||||
|
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
|
||||||
|
#
|
||||||
|
# This is a global setting and will require a log out or restart to take
|
||||||
|
# effect.
|
||||||
|
use_thin_strokes: true
|
||||||
|
|
||||||
|
# When true, bold text is drawn using the bright variant of colors.
|
||||||
|
draw_bold_text_with_bright_colors: true
|
||||||
|
|
||||||
|
# Use custom cursor colors. If true, display the cursor in the cursor.foreground
|
||||||
|
# and cursor.background colors, otherwise invert the colors of the cursor.
|
||||||
|
custom_cursor_colors: true
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
colors:
|
||||||
|
|
||||||
|
# Tomorrow (https://github.com/aarowill/base17-alacritty/blob/master/colors/base16-tomorrow.yml)
|
||||||
|
# Default colors
|
||||||
|
primary:
|
||||||
|
background: '0x232629'
|
||||||
|
foreground: '0xfcfcfc'
|
||||||
|
# Colors the cursor will use if `custom_cursor_colors` is true
|
||||||
|
cursor:
|
||||||
|
text: '0x232629'
|
||||||
|
cursor: '0xfcfcfc'
|
||||||
|
# Normal colors
|
||||||
|
normal:
|
||||||
|
black: '0x232629'
|
||||||
|
red: '0xda4453'
|
||||||
|
green: '0x27ae60'
|
||||||
|
yellow: '0xfdbc4b'
|
||||||
|
blue: '0x3daee9'
|
||||||
|
magenta: '0xea81e8'
|
||||||
|
cyan: '0x93cee9'
|
||||||
|
white: '0xfcfcfc'
|
||||||
|
# Bright colors
|
||||||
|
bright:
|
||||||
|
black: "0x928374"
|
||||||
|
red: "0xfb4934"
|
||||||
|
green: "0xb8bb26"
|
||||||
|
yellow: "0xfabd2f"
|
||||||
|
blue: "0x83a598"
|
||||||
|
magenta: "0xd3869b"
|
||||||
|
cyan: "0x8ec07c"
|
||||||
|
white: "0xebdbb2"
|
||||||
|
|
||||||
|
# Visual Bell
|
||||||
|
#
|
||||||
|
# Any time the BEL code is received, Alacritty "rings" the visual bell. Once
|
||||||
|
# rung, the terminal background will be set to white and transition back to the
|
||||||
|
# default background color. You can control the rate of this transition by
|
||||||
|
# setting the `duration` property (represented in milliseconds). You can also
|
||||||
|
# configure the transition function by setting the `animation` property.
|
||||||
|
#
|
||||||
|
# Possible values for `animation`
|
||||||
|
# `Ease`
|
||||||
|
# `EaseOut`
|
||||||
|
# `EaseOutSine`
|
||||||
|
# `EaseOutQuad`
|
||||||
|
# `EaseOutCubic`
|
||||||
|
# `EaseOutQuart`
|
||||||
|
# `EaseOutQuint`
|
||||||
|
# `EaseOutExpo`
|
||||||
|
# `EaseOutCirc`
|
||||||
|
# `Linear`
|
||||||
|
#
|
||||||
|
# To completely disable the visual bell, set its duration to 0.
|
||||||
|
#
|
||||||
|
bell:
|
||||||
|
animation: EaseOutExpo
|
||||||
|
color: '0xffffff'
|
||||||
|
duration: 0
|
||||||
|
|
||||||
|
# Background opacity
|
||||||
|
background_opacity: 1.0
|
||||||
|
|
||||||
|
# Key bindings
|
||||||
|
#
|
||||||
|
# Key bindings are specified as a list of objects. Each binding will specify a
|
||||||
|
# key and modifiers required to trigger it, terminal modes where the binding is
|
||||||
|
# applicable, and what should be done when the key binding fires. It can either
|
||||||
|
# send a byte sequence to the running application (`chars`), execute a
|
||||||
|
# predefined action (`action`) or fork and execute a specified command plus
|
||||||
|
# arguments (`command`).
|
||||||
|
#
|
||||||
|
# Bindings are always filled by default, but will be replaced when a new binding
|
||||||
|
# with the same triggers is defined. To unset a default binding, it can be
|
||||||
|
# mapped to the `None` action.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# `- { key: V, mods: Control|Shift, action: Paste }`
|
||||||
|
#
|
||||||
|
# Available fields:
|
||||||
|
# - key
|
||||||
|
# - mods (optional)
|
||||||
|
# - chars | action | command (exactly one required)
|
||||||
|
# - mode (optional)
|
||||||
|
#
|
||||||
|
# Values for `key`:
|
||||||
|
# - `A` -> `Z`
|
||||||
|
# - `F1` -> `F12`
|
||||||
|
# - `Key1` -> `Key0`
|
||||||
|
#
|
||||||
|
# A full list with available key codes can be found here:
|
||||||
|
# https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
|
||||||
|
#
|
||||||
|
# Instead of using the name of the keys, the `key` field also supports using
|
||||||
|
# the scancode of the desired key. Scancodes have to be specified as a
|
||||||
|
# decimal number.
|
||||||
|
# This command will allow you to display the hex scancodes for certain keys:
|
||||||
|
# `showkey --scancodes`
|
||||||
|
#
|
||||||
|
# Values for `mods`:
|
||||||
|
# - Command
|
||||||
|
# - Control
|
||||||
|
# - Option
|
||||||
|
# - Super
|
||||||
|
# - Shift
|
||||||
|
# - Alt
|
||||||
|
#
|
||||||
|
# Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
|
||||||
|
# Whitespace and capitalization is relevant and must match the example.
|
||||||
|
#
|
||||||
|
# Values for `chars`:
|
||||||
|
# The `chars` field writes the specified string to the terminal. This makes
|
||||||
|
# it possible to pass escape sequences.
|
||||||
|
# To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
|
||||||
|
# the command `showkey -a` outside of tmux.
|
||||||
|
# Note that applications use terminfo to map escape sequences back to
|
||||||
|
# keys. It is therefore required to update the terminfo when
|
||||||
|
# changing an escape sequence.
|
||||||
|
#
|
||||||
|
# Values for `action`:
|
||||||
|
# - Paste
|
||||||
|
# - PasteSelection
|
||||||
|
# - Copy
|
||||||
|
# - IncreaseFontSize
|
||||||
|
# - DecreaseFontSize
|
||||||
|
# - ResetFontSize
|
||||||
|
# - ScrollPageUp
|
||||||
|
# - ScrollPageDown
|
||||||
|
# - ScrollLineUp
|
||||||
|
# - ScrollLineDown
|
||||||
|
# - ScrollToTop
|
||||||
|
# - ScrollToBottom
|
||||||
|
# - ClearHistory
|
||||||
|
# - Hide
|
||||||
|
# - Quit
|
||||||
|
# - ClearLogNotice
|
||||||
|
# - SpawnNewInstance
|
||||||
|
# - ToggleFullscreen
|
||||||
|
# - None
|
||||||
|
#
|
||||||
|
# Values for `action` (macOS only):
|
||||||
|
# - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
|
||||||
|
#
|
||||||
|
# Values for `command`:
|
||||||
|
# The `command` field must be a map containing a `program` string and
|
||||||
|
# an `args` array of command line parameter strings.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# `command: { program: "alacritty", args: ["-e", "vttest"] }`
|
||||||
|
#
|
||||||
|
# Values for `mode`:
|
||||||
|
# - ~AppCursor
|
||||||
|
# - AppCursor
|
||||||
|
# - ~AppKeypad
|
||||||
|
# - AppKeypad
|
||||||
|
#
|
||||||
|
key_bindings:
|
||||||
|
|
||||||
|
# (Windows/Linux only)
|
||||||
|
#- { key: V, mods: Control|Shift, action: Paste }
|
||||||
|
#- { key: C, mods: Control|Shift, action: Copy }
|
||||||
|
#- { key: Insert, mods: Shift, action: PasteSelection }
|
||||||
|
#- { key: Key0, mods: Control, action: ResetFontSize }
|
||||||
|
#- { key: Equals, mods: Control, action: IncreaseFontSize }
|
||||||
|
#- { key: Add, mods: Control, action: IncreaseFontSize }
|
||||||
|
#- { key: Subtract, mods: Control, action: DecreaseFontSize }
|
||||||
|
#- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||||
|
#- { key: Return, mods: Alt, action: ToggleFullscreen }
|
||||||
|
|
||||||
|
# (macOS only)
|
||||||
|
#- { key: Key0, mods: Command, action: ResetFontSize }
|
||||||
|
#- { key: Equals, mods: Command, action: IncreaseFontSize }
|
||||||
|
#- { key: Add, mods: Command, action: IncreaseFontSize }
|
||||||
|
#- { key: Minus, mods: Command, action: DecreaseFontSize }
|
||||||
|
#- { key: K, mods: Command, action: ClearHistory }
|
||||||
|
#- { key: K, mods: Command, chars: "\x0c" }
|
||||||
|
#- { key: V, mods: Command, action: Paste }
|
||||||
|
#- { key: C, mods: Command, action: Copy }
|
||||||
|
#- { key: H, mods: Command, action: Hide }
|
||||||
|
#- { key: Q, mods: Command, action: Quit }
|
||||||
|
#- { key: W, mods: Command, action: Quit }
|
||||||
|
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
|
||||||
|
|
||||||
|
- { key: Paste, action: Paste }
|
||||||
|
- { key: Copy, action: Copy }
|
||||||
|
- { key: L, mods: Control, action: ClearLogNotice }
|
||||||
|
- { key: L, mods: Control, chars: "\x0c" }
|
||||||
|
- { key: Home, mods: Alt, chars: "\x1b[1;3H" }
|
||||||
|
- { key: Home, chars: "\x1bOH", mode: AppCursor }
|
||||||
|
- { key: Home, chars: "\x1b[H", mode: ~AppCursor }
|
||||||
|
- { key: End, mods: Alt, chars: "\x1b[1;3F" }
|
||||||
|
- { key: End, chars: "\x1bOF", mode: AppCursor }
|
||||||
|
- { key: End, chars: "\x1b[F", mode: ~AppCursor }
|
||||||
|
- { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
|
||||||
|
- { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
|
||||||
|
- { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
|
||||||
|
- { key: PageUp, mods: Alt, chars: "\x1b[5;3~" }
|
||||||
|
- { key: PageUp, chars: "\x1b[5~" }
|
||||||
|
- { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
|
||||||
|
- { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
|
||||||
|
- { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
|
||||||
|
- { key: PageDown, mods: Alt, chars: "\x1b[6;3~" }
|
||||||
|
- { key: PageDown, chars: "\x1b[6~" }
|
||||||
|
- { key: Tab, mods: Shift, chars: "\x1b[Z" }
|
||||||
|
- { key: Back, chars: "\x7f" }
|
||||||
|
- { key: Back, mods: Alt, chars: "\x1b\x7f" }
|
||||||
|
- { key: Insert, chars: "\x1b[2~" }
|
||||||
|
- { key: Delete, chars: "\x1b[3~" }
|
||||||
|
- { key: Left, mods: Shift, chars: "\x1b[1;2D" }
|
||||||
|
- { key: Left, mods: Control, chars: "\x1b[1;5D" }
|
||||||
|
- { key: Left, mods: Alt, chars: "\x1b[1;3D" }
|
||||||
|
- { key: Left, chars: "\x1b[D", mode: ~AppCursor }
|
||||||
|
- { key: Left, chars: "\x1bOD", mode: AppCursor }
|
||||||
|
- { key: Right, mods: Shift, chars: "\x1b[1;2C" }
|
||||||
|
- { key: Right, mods: Control, chars: "\x1b[1;5C" }
|
||||||
|
- { key: Right, mods: Alt, chars: "\x1b[1;3C" }
|
||||||
|
- { key: Right, chars: "\x1b[C", mode: ~AppCursor }
|
||||||
|
- { key: Right, chars: "\x1bOC", mode: AppCursor }
|
||||||
|
- { key: Up, mods: Shift, chars: "\x1b[1;2A" }
|
||||||
|
- { key: Up, mods: Control, chars: "\x1b[1;5A" }
|
||||||
|
- { key: Up, mods: Alt, chars: "\x1b[1;3A" }
|
||||||
|
- { key: Up, chars: "\x1b[A", mode: ~AppCursor }
|
||||||
|
- { key: Up, chars: "\x1bOA", mode: AppCursor }
|
||||||
|
- { key: Down, mods: Shift, chars: "\x1b[1;2B" }
|
||||||
|
- { key: Down, mods: Control, chars: "\x1b[1;5B" }
|
||||||
|
- { key: Down, mods: Alt, chars: "\x1b[1;3B" }
|
||||||
|
- { key: Down, chars: "\x1b[B", mode: ~AppCursor }
|
||||||
|
- { key: Down, chars: "\x1bOB", mode: AppCursor }
|
||||||
|
- { key: F1, chars: "\x1bOP" }
|
||||||
|
- { key: F2, chars: "\x1bOQ" }
|
||||||
|
- { key: F3, chars: "\x1bOR" }
|
||||||
|
- { key: F4, chars: "\x1bOS" }
|
||||||
|
- { key: F5, chars: "\x1b[15~" }
|
||||||
|
- { key: F6, chars: "\x1b[17~" }
|
||||||
|
- { key: F7, chars: "\x1b[18~" }
|
||||||
|
- { key: F8, chars: "\x1b[19~" }
|
||||||
|
- { key: F9, chars: "\x1b[20~" }
|
||||||
|
- { key: F10, chars: "\x1b[21~" }
|
||||||
|
- { key: F11, chars: "\x1b[23~" }
|
||||||
|
- { key: F12, chars: "\x1b[24~" }
|
||||||
|
- { key: F1, mods: Shift, chars: "\x1b[1;2P" }
|
||||||
|
- { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
|
||||||
|
- { key: F3, mods: Shift, chars: "\x1b[1;2R" }
|
||||||
|
- { key: F4, mods: Shift, chars: "\x1b[1;2S" }
|
||||||
|
- { key: F5, mods: Shift, chars: "\x1b[15;2~" }
|
||||||
|
- { key: F6, mods: Shift, chars: "\x1b[17;2~" }
|
||||||
|
- { key: F7, mods: Shift, chars: "\x1b[18;2~" }
|
||||||
|
- { key: F8, mods: Shift, chars: "\x1b[19;2~" }
|
||||||
|
- { key: F9, mods: Shift, chars: "\x1b[20;2~" }
|
||||||
|
- { key: F10, mods: Shift, chars: "\x1b[21;2~" }
|
||||||
|
- { key: F11, mods: Shift, chars: "\x1b[23;2~" }
|
||||||
|
- { key: F12, mods: Shift, chars: "\x1b[24;2~" }
|
||||||
|
- { key: F1, mods: Control, chars: "\x1b[1;5P" }
|
||||||
|
- { key: F2, mods: Control, chars: "\x1b[1;5Q" }
|
||||||
|
- { key: F3, mods: Control, chars: "\x1b[1;5R" }
|
||||||
|
- { key: F4, mods: Control, chars: "\x1b[1;5S" }
|
||||||
|
- { key: F5, mods: Control, chars: "\x1b[15;5~" }
|
||||||
|
- { key: F6, mods: Control, chars: "\x1b[17;5~" }
|
||||||
|
- { key: F7, mods: Control, chars: "\x1b[18;5~" }
|
||||||
|
- { key: F8, mods: Control, chars: "\x1b[19;5~" }
|
||||||
|
- { key: F9, mods: Control, chars: "\x1b[20;5~" }
|
||||||
|
- { key: F10, mods: Control, chars: "\x1b[21;5~" }
|
||||||
|
- { key: F11, mods: Control, chars: "\x1b[23;5~" }
|
||||||
|
- { key: F12, mods: Control, chars: "\x1b[24;5~" }
|
||||||
|
- { key: F1, mods: Alt, chars: "\x1b[1;6P" }
|
||||||
|
- { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
|
||||||
|
- { key: F3, mods: Alt, chars: "\x1b[1;6R" }
|
||||||
|
- { key: F4, mods: Alt, chars: "\x1b[1;6S" }
|
||||||
|
- { key: F5, mods: Alt, chars: "\x1b[15;6~" }
|
||||||
|
- { key: F6, mods: Alt, chars: "\x1b[17;6~" }
|
||||||
|
- { key: F7, mods: Alt, chars: "\x1b[18;6~" }
|
||||||
|
- { key: F8, mods: Alt, chars: "\x1b[19;6~" }
|
||||||
|
- { key: F9, mods: Alt, chars: "\x1b[20;6~" }
|
||||||
|
- { key: F10, mods: Alt, chars: "\x1b[21;6~" }
|
||||||
|
- { key: F11, mods: Alt, chars: "\x1b[23;6~" }
|
||||||
|
- { key: F12, mods: Alt, chars: "\x1b[24;6~" }
|
||||||
|
- { key: F1, mods: Super, chars: "\x1b[1;3P" }
|
||||||
|
- { key: F2, mods: Super, chars: "\x1b[1;3Q" }
|
||||||
|
- { key: F3, mods: Super, chars: "\x1b[1;3R" }
|
||||||
|
- { key: F4, mods: Super, chars: "\x1b[1;3S" }
|
||||||
|
- { key: F5, mods: Super, chars: "\x1b[15;3~" }
|
||||||
|
- { key: F6, mods: Super, chars: "\x1b[17;3~" }
|
||||||
|
- { key: F7, mods: Super, chars: "\x1b[18;3~" }
|
||||||
|
- { key: F8, mods: Super, chars: "\x1b[19;3~" }
|
||||||
|
- { key: F9, mods: Super, chars: "\x1b[20;3~" }
|
||||||
|
- { key: F10, mods: Super, chars: "\x1b[21;3~" }
|
||||||
|
- { key: F11, mods: Super, chars: "\x1b[23;3~" }
|
||||||
|
- { key: F12, mods: Super, chars: "\x1b[24;3~" }
|
||||||
|
- { key: NumpadEnter, chars: "\n" }
|
||||||
|
|
||||||
|
mouse:
|
||||||
|
# Click settings
|
||||||
|
#
|
||||||
|
# The `double_click` and `triple_click` settings control the time
|
||||||
|
# alacritty should wait for accepting multiple clicks as one double
|
||||||
|
# or triple click.
|
||||||
|
double_click: { threshold: 300 }
|
||||||
|
triple_click: { threshold: 300 }
|
||||||
|
|
||||||
|
# If this is `true`, the cursor is temporarily hidden when typing.
|
||||||
|
hide_when_typing: true
|
||||||
|
|
||||||
|
# URL launcher
|
||||||
|
# url:
|
||||||
|
# This program is executed when clicking on a text which is recognized as a URL.
|
||||||
|
# The URL is always added to the command as the last parameter.
|
||||||
|
#
|
||||||
|
# When set to `None`, URL launching will be disabled completely.
|
||||||
|
#
|
||||||
|
# Default:
|
||||||
|
# - (macOS) open
|
||||||
|
# - (Linux) xdg-open
|
||||||
|
# - (Windows) explorer
|
||||||
|
# launcher:
|
||||||
|
# program: xdg-open
|
||||||
|
# args: []
|
||||||
|
|
||||||
|
# These are the modifiers that need to be held down for opening URLs when clicking
|
||||||
|
# on them. The available modifiers are documented in the key binding section.
|
||||||
|
# modifiers: Control|Shift
|
||||||
|
|
||||||
|
selection:
|
||||||
|
semantic_escape_chars: ",│`|:\"' ()[]{}<>"
|
||||||
|
|
||||||
|
# When set to `true`, selected text will be copied to the primary clipboard.
|
||||||
|
save_to_clipboard: false
|
||||||
|
|
||||||
|
# Startup directory
|
||||||
|
#
|
||||||
|
# Directory the shell is started in. If this is unset, or `None`, the working
|
||||||
|
# directory of the parent process will be used.
|
||||||
|
working_directory: None
|
||||||
|
|
||||||
|
# Send ESC (\x1b) before characters when alt is pressed.
|
||||||
|
alt_send_esc: true
|
||||||
|
|
||||||
|
# Mouse bindings
|
||||||
|
#
|
||||||
|
# Available fields:
|
||||||
|
# - mouse
|
||||||
|
# - action
|
||||||
|
# - mods (optional)
|
||||||
|
#
|
||||||
|
# Values for `mouse`:
|
||||||
|
# - Middle
|
||||||
|
# - Left
|
||||||
|
# - Right
|
||||||
|
# - Numeric identifier such as `5`
|
||||||
|
#
|
||||||
|
# All available `mods` and `action` values are documented in the key binding
|
||||||
|
# section.
|
||||||
|
mouse_bindings:
|
||||||
|
- { mouse: Middle, action: PasteSelection }
|
||||||
|
|
||||||
|
cursor:
|
||||||
|
# Cursor style
|
||||||
|
#
|
||||||
|
# Values for 'style':
|
||||||
|
# - ▇ Block
|
||||||
|
# - _ Underline
|
||||||
|
# - | Beam
|
||||||
|
style:
|
||||||
|
blinking: Always
|
||||||
|
blinking_interval: 500
|
||||||
|
|
||||||
|
# If this is `true`, the cursor will be rendered as a hollow box when the
|
||||||
|
# window is not focused.
|
||||||
|
unfocused_hollow: true
|
||||||
|
|
||||||
|
# dynamic_title: false
|
||||||
|
|
||||||
|
# Live config reload (changes require restart)
|
||||||
|
live_config_reload: true
|
||||||
|
|
||||||
|
debug:
|
||||||
|
# Should display the render timer
|
||||||
|
render_timer: false
|
||||||
|
|
||||||
|
# Keep the log file after quitting Alacritty.
|
||||||
|
persistent_logging: false
|
||||||
|
|
||||||
|
# Log level
|
||||||
|
#
|
||||||
|
# Values for `log_level`:
|
||||||
|
# - OFF
|
||||||
|
# - ERROR
|
||||||
|
# - WARN
|
||||||
|
# - INFO
|
||||||
|
# - DEBUG
|
||||||
|
# - TRACE
|
||||||
|
log_level: OFF
|
||||||
|
|
||||||
|
# Print all received window events.
|
||||||
|
print_events: false
|
||||||
|
|
||||||
|
# Record all characters and escape sequences as test data.
|
||||||
|
ref_test: false
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
#
|
||||||
|
# You can set shell.program to the path of your favorite shell, e.g. /bin/fish.
|
||||||
|
# Entries in shell.args are passed unmodified as arguments to the shell.
|
||||||
|
#shell:
|
||||||
|
# program: /usr/bin/zsh
|
||||||
|
# args:
|
||||||
|
# - -l
|
||||||
|
# - -c
|
||||||
|
# - "tmux"
|
||||||
|
|
||||||
|
# vim: nospell
|
|
@ -0,0 +1,81 @@
|
||||||
|
-- Conky, a system monitor https://github.com/brndnmtthws/conky
|
||||||
|
--
|
||||||
|
-- This configuration file is Lua code. You can write code in here, and it will
|
||||||
|
-- execute when Conky loads. You can use it to generate your own advanced
|
||||||
|
-- configurations.
|
||||||
|
--
|
||||||
|
-- Try this (remove the `--`):
|
||||||
|
--
|
||||||
|
-- print("Loading Conky config")
|
||||||
|
--
|
||||||
|
-- For more on Lua, see:
|
||||||
|
-- https://www.lua.org/pil/contents.html
|
||||||
|
|
||||||
|
conky.config = {
|
||||||
|
alignment = 'top_right',
|
||||||
|
background = true,
|
||||||
|
border_width = 1,
|
||||||
|
cpu_avg_samples = 2,
|
||||||
|
default_color = 'white',
|
||||||
|
default_outline_color = 'white',
|
||||||
|
default_shade_color = 'white',
|
||||||
|
double_buffer = true,
|
||||||
|
draw_borders = false,
|
||||||
|
draw_graph_borders = true,
|
||||||
|
draw_outline = false,
|
||||||
|
draw_shades = false,
|
||||||
|
extra_newline = false,
|
||||||
|
font = 'DejaVu Sans Mono:size=12',
|
||||||
|
gap_x = 18,
|
||||||
|
gap_y = 50,
|
||||||
|
minimum_height = 5,
|
||||||
|
minimum_width = 5,
|
||||||
|
net_avg_samples = 2,
|
||||||
|
no_buffers = true,
|
||||||
|
out_to_console = false,
|
||||||
|
out_to_ncurses = false,
|
||||||
|
out_to_stderr = false,
|
||||||
|
out_to_x = true,
|
||||||
|
own_window = true,
|
||||||
|
own_window_class = 'Conky',
|
||||||
|
own_window_transparent = false,
|
||||||
|
own_window_argb_visual = true,
|
||||||
|
own_window_argb_value = 60,
|
||||||
|
own_window_type = 'override',
|
||||||
|
show_graph_range = false,
|
||||||
|
show_graph_scale = false,
|
||||||
|
stippled_borders = 0,
|
||||||
|
update_interval = 1.0,
|
||||||
|
uppercase = false,
|
||||||
|
use_spacer = 'none',
|
||||||
|
use_xft = true,
|
||||||
|
}
|
||||||
|
|
||||||
|
conky.text = [[
|
||||||
|
${color magenta}INF:$color $sysname $kernel $machine
|
||||||
|
$hr
|
||||||
|
${color magenta}UPT:$color $uptime
|
||||||
|
${color magenta}FRQ:$color $freq MHz
|
||||||
|
${color magenta}FRQ:$color $freq_g GHz
|
||||||
|
${color magenta}RAM:$color $mem/$memmax - $memperc% ${membar 4}
|
||||||
|
${color magenta}SWP:$color $swap/$swapmax - $swapperc% ${swapbar 4}
|
||||||
|
${color magenta}CPU:$color $cpu% ${cpubar 4}
|
||||||
|
${color magenta}PRO:$color $processes ${color magenta}RUN:$color $running_processes
|
||||||
|
$hr
|
||||||
|
${color magenta}SDA: $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
|
||||||
|
${color magenta}SDB: $color${fs_used /run/media/suwako/5ee60164-691b-424d-93e0-378c8c39db8e}/${fs_size /run/media/suwako/5ee60164-691b-424d-93e0-378c8c39db8e} ${fs_bar 6 /run/media/suwako/5ee60164-691b-424d-93e0-378c8c39db8e}
|
||||||
|
${color magenta}SDC: $color${fs_used /run/media/suwako/MEGA-SSD}/${fs_size /run/media/suwako/MEGA-SSD} ${fs_bar 6 /run/media/suwako/MEGA-SSD}
|
||||||
|
$hr
|
||||||
|
${color magenta}NET:
|
||||||
|
U:$color ${upspeed} ${color magenta} - D:$color ${downspeed}
|
||||||
|
${color magenta}IP: $color${addr enp8s0}
|
||||||
|
$hr
|
||||||
|
${color orange}XMR: $color${curl rate.sx/1xmr}
|
||||||
|
${color orange}BTC: $color${curl rate.sx/1btc}
|
||||||
|
$hr
|
||||||
|
${color magenta}Name PID CPU% MEM%
|
||||||
|
${color cyan} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
|
||||||
|
${color cyan} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
|
||||||
|
${color cyan} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
|
||||||
|
${color cyan} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
|
||||||
|
]]
|
|
@ -0,0 +1,175 @@
|
||||||
|
# set modifier
|
||||||
|
set $super Mod4
|
||||||
|
set $alt Mod1
|
||||||
|
|
||||||
|
# set font
|
||||||
|
font pango: Noto Sans 8
|
||||||
|
|
||||||
|
# Use Mouse+$super to drag floating windows to their wanted position
|
||||||
|
floating_modifier $super
|
||||||
|
|
||||||
|
# autostart
|
||||||
|
exec --no-startup-id fcitx5
|
||||||
|
exec --no-startup-id hsetroot -center ~/.local/share/wallpapers/89596288_p0.png
|
||||||
|
exec --no-startup-id xsettingsd &
|
||||||
|
#exec --no-startup-id compton -b -i 1 --shadow-red 1.0 --shadow-blue 1.0 --inactive-dim 0.5 --shadow-offset-x 1 --shadow-offset-y 1
|
||||||
|
exec --no-startup-id picom -b -i 1 --inactive-dim 0.5
|
||||||
|
|
||||||
|
# screenlock
|
||||||
|
exec --no-startup-id xset s off
|
||||||
|
exec --no-startup-id xset -dpms
|
||||||
|
exec --no-startup-id xset s noblank
|
||||||
|
|
||||||
|
# start a terminal
|
||||||
|
bindsym $super+Return exec alacritty
|
||||||
|
|
||||||
|
# start dmenu (a program launcher)
|
||||||
|
bindsym $super+Shift+d exec i3-dmenu-desktop --dmenu="dmenu -i -fn 'Noto Sans:size=8'"
|
||||||
|
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3 -font 'Noto Sans 8'
|
||||||
|
|
||||||
|
# common apps keybinds
|
||||||
|
bindsym Print exec scrot 'Cheese_%a-%d%b%y_%H.%M.png' -e 'sxiv ~/$f'
|
||||||
|
bindsym $super+l exec i3lock -i ~/.local/share/wallpapers/d-abstract-k--wallpaper-1920x1080-wallpaper.jpg
|
||||||
|
bindsym $super+Shift+w exec firefox
|
||||||
|
bindsym $super+Shift+f exec thunar;workspace 3;focus
|
||||||
|
bindsym $super+Shift+g exec geany
|
||||||
|
|
||||||
|
#change volume
|
||||||
|
bindsym XF86AudioRaiseVolume exec amixer -q set Master 5%+
|
||||||
|
bindsym XF86AudioLowerVolume exec amixer -q set Master 5%-
|
||||||
|
bindsym XF86AudioMute exec amixer set Master toggle
|
||||||
|
|
||||||
|
# music control
|
||||||
|
bindsym XF86AudioNext exec mpc next
|
||||||
|
bindsym XF86AudioPrev exec mpc prev
|
||||||
|
bindsym XF86AudioPlay exec mpc toggle
|
||||||
|
bindsym XF86AudioStop exec mpc stop
|
||||||
|
|
||||||
|
# kill focused window
|
||||||
|
bindsym $super+c kill
|
||||||
|
bindsym $alt+F4 kill
|
||||||
|
|
||||||
|
# change focus
|
||||||
|
bindsym $super+Left focus left
|
||||||
|
bindsym $super+Down focus down
|
||||||
|
bindsym $super+Up focus up
|
||||||
|
bindsym $super+Right focus right
|
||||||
|
|
||||||
|
# move focused window
|
||||||
|
bindsym $super+Shift+Left move left
|
||||||
|
bindsym $super+Shift+Down move down
|
||||||
|
bindsym $super+Shift+Up move up
|
||||||
|
bindsym $super+Shift+Right move right
|
||||||
|
|
||||||
|
# split in horizontal orientation
|
||||||
|
bindsym $super+h split h
|
||||||
|
|
||||||
|
# split in vertical orientation
|
||||||
|
bindsym $super+v split v
|
||||||
|
|
||||||
|
# enter fullscreen mode for the focused container
|
||||||
|
bindsym $super+f fullscreen toggle
|
||||||
|
|
||||||
|
# change container layout split
|
||||||
|
bindsym $super+s layout toggle split
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
bindsym $super+space floating toggle
|
||||||
|
|
||||||
|
# change focus between tiling / floating windows
|
||||||
|
bindsym $super+Shift+space focus mode_toggle
|
||||||
|
|
||||||
|
# switch to workspace
|
||||||
|
bindsym $alt+Control+Right workspace next
|
||||||
|
bindsym $alt+Control+Left workspace prev
|
||||||
|
bindsym $super+1 workspace 1
|
||||||
|
bindsym $super+2 workspace 2
|
||||||
|
bindsym $super+3 workspace 3
|
||||||
|
bindsym $super+4 workspace 4
|
||||||
|
bindsym $super+5 workspace 5
|
||||||
|
bindsym $super+6 workspace 6
|
||||||
|
bindsym $super+7 workspace 7
|
||||||
|
bindsym $super+8 workspace 8
|
||||||
|
bindsym $super+9 workspace 9
|
||||||
|
|
||||||
|
# move focused container to workspace
|
||||||
|
bindsym $super+Shift+1 move container to workspace 1
|
||||||
|
bindsym $super+Shift+2 move container to workspace 2
|
||||||
|
bindsym $super+Shift+3 move container to workspace 3
|
||||||
|
bindsym $super+Shift+4 move container to workspace 4
|
||||||
|
bindsym $super+Shift+5 move container to workspace 5
|
||||||
|
bindsym $super+Shift+6 move container to workspace 6
|
||||||
|
bindsym $super+Shift+7 move container to workspace 7
|
||||||
|
bindsym $super+Shift+8 move container to workspace 8
|
||||||
|
bindsym $super+Shift+9 move container to workspace 9
|
||||||
|
|
||||||
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
|
bindsym $super+Shift+r restart
|
||||||
|
|
||||||
|
# exit i3
|
||||||
|
bindsym $super+q exec "i3-nagbar -t warning -m 'ログアウトするの?' -b 'Yes' 'i3-msg exit'"
|
||||||
|
bindsym $super+Shift+q exec "i3-nagbar -t warning -m 'シャットダウンするの?' -b 'Yes' 'shutdown -h now'"
|
||||||
|
|
||||||
|
# resize window (you can also use the mouse for that)
|
||||||
|
mode "resize" {
|
||||||
|
bindsym Left resize shrink width 5 px or 5 ppt
|
||||||
|
bindsym Down resize grow height 5 px or 5 ppt
|
||||||
|
bindsym Up resize shrink height 5 px or 5 ppt
|
||||||
|
bindsym Right resize grow width 5 px or 5 ppt
|
||||||
|
bindsym Return mode "default"
|
||||||
|
bindsym Escape mode "default"
|
||||||
|
}
|
||||||
|
bindsym $super+r mode "resize"
|
||||||
|
|
||||||
|
# panel
|
||||||
|
#bar {
|
||||||
|
# workspace_buttons yes
|
||||||
|
# position top
|
||||||
|
# colors {
|
||||||
|
# background #232629
|
||||||
|
# statusline #232629
|
||||||
|
# separator #4f4f4f
|
||||||
|
#
|
||||||
|
# # colour of border, background, and text
|
||||||
|
# focused_workspace #ed1515 #da4453 #fcfcfc
|
||||||
|
# active_workspace #95a5a6 #31363b #fcfcfc
|
||||||
|
# inactive_workspace #95a5a6 #31363b #fcfcfc
|
||||||
|
# urgent_workspace #2f343f #ebcb8b #2f343f
|
||||||
|
# }
|
||||||
|
# status_command i3status
|
||||||
|
#}
|
||||||
|
|
||||||
|
# Start polybar instead of i3bar
|
||||||
|
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
||||||
|
exec_always --no-startup-id conky
|
||||||
|
|
||||||
|
# window rules, you can find the window class using xprop
|
||||||
|
for_window [class=".*"] border pixel 4
|
||||||
|
assign [class=qutebrowser] 1
|
||||||
|
assign [class=Gajim|nheko|Geary] 2
|
||||||
|
assign [class=Thunar|File-roller] 3
|
||||||
|
assign [class=Geany|Evince|Gucharmap|Soffice|libreoffice*] 4
|
||||||
|
assign [class=Audacity|Vlc|mpv|Ghb|Xfburn|Gimp*|Inkscape] 5
|
||||||
|
assign [class=Lxappearance|System-config-printer.py|Lxtask|GParted|Pavucontrol|Exo-helper*|Lxrandr|Arandr] 6
|
||||||
|
for_window [class=sxiv|feh|Audacious|File-roller|Lxappearance|Lxtask|Pavucontrol] floating enable
|
||||||
|
for_window [class=URxvt|Firefox|Geany|Evince|Soffice|libreoffice*|mpv|Ghb|Xfburn|Gimp*|Inkscape|Vlc|Lxappearance|Audacity] focus
|
||||||
|
for_window [class=Xfburn|GParted|System-config-printer.py|Lxtask|Pavucontrol|Exo-helper*|Lxrandr|Arandr] focus
|
||||||
|
|
||||||
|
# colour of border, background, text, indicator, and child_border
|
||||||
|
client.focused #bf616a #232629 #fcfcfc #e93de9 #e93de9
|
||||||
|
client.focused_inactive #232629 #232629 #fcfcfc #232629 #232629
|
||||||
|
client.unfocused #232629 #232629 #fcfcfc #232629 #232629
|
||||||
|
client.urgent #232629 #232629 #fcfcfc #232629 #232629
|
||||||
|
client.placeholder #232629 #232629 #fcfcfc #232629 #232629
|
||||||
|
client.background #232629
|
||||||
|
|
||||||
|
for_window [class=".*"] border pixel 4
|
||||||
|
for_window [class=".*"] border_radius 50
|
||||||
|
#gaps inner all set 20
|
||||||
|
gaps inner 14
|
||||||
|
gaps outer 10
|
||||||
|
#smart_gaps on
|
||||||
|
smart_gaps inverse_outer
|
||||||
|
|
||||||
|
smart_borders on
|
||||||
|
#smart_borders no_gaps
|
|
@ -0,0 +1,254 @@
|
||||||
|
" vim: set sw=2 ts=2 et foldlevel=0 foldmethod=marker:
|
||||||
|
"
|
||||||
|
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
|
||||||
|
silent !curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs
|
||||||
|
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
|
endif
|
||||||
|
|
||||||
|
call plug#begin('~/.vim/plugged')
|
||||||
|
" Plug 'takac/vim-hardtime'
|
||||||
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --no-bash' }
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
|
Plug 'scrooloose/nerdtree'
|
||||||
|
Plug 'jiangmiao/auto-pairs'
|
||||||
|
Plug 'itchyny/lightline.vim'
|
||||||
|
Plug 'nvim-lua/popup.nvim'
|
||||||
|
Plug 'nvim-lua/plenary.nvim'
|
||||||
|
"Plug 'nvim-cmp'
|
||||||
|
Plug 'nvim-telescope/telescope.nvim'
|
||||||
|
Plug 'kyazdani42/nvim-web-devicons'
|
||||||
|
Plug 'hoob3rt/lualine.nvim'
|
||||||
|
" {{{
|
||||||
|
if 0 " toggle 0/1 for powerline
|
||||||
|
let g:lightline = {
|
||||||
|
\ 'colorscheme': 'seoul256',
|
||||||
|
\ 'separator': { 'left': '', 'right': '' },
|
||||||
|
\ 'subseparator': { 'left': '', 'right': '' },
|
||||||
|
\ 'component': {
|
||||||
|
\ 'readonly': '%{&readonly?"":""}',
|
||||||
|
\ }
|
||||||
|
\ }
|
||||||
|
else
|
||||||
|
let g:lightline = {
|
||||||
|
\ 'colorscheme': 'solarized',
|
||||||
|
\ 'subseparator': { 'left': '>', 'right': '' }
|
||||||
|
\ }
|
||||||
|
" \ 'separator': { 'left': '▓▒░', 'right': '░▒▓' },
|
||||||
|
endif
|
||||||
|
" }}}
|
||||||
|
"Plug 'yuezk/vim-js'
|
||||||
|
"Plug 'maxmellon/vim-jsx-pretty'
|
||||||
|
""{{{
|
||||||
|
"let g:polyglot_disabled = ['jsx']
|
||||||
|
""}}}
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
Plug 'tpope/vim-commentary'
|
||||||
|
Plug 'tpope/vim-fugitive'
|
||||||
|
" Plug 'joshdick/onedark.vim'
|
||||||
|
" Plug 'Th3Whit3Wolf/one-nvim'
|
||||||
|
Plug 'airblade/vim-rooter'
|
||||||
|
"Plug 'styled-components/vim-styled-components', { 'branch': 'main' }
|
||||||
|
Plug 'djoshea/vim-autoread'
|
||||||
|
Plug 'bkad/camelcasemotion'
|
||||||
|
Plug 'tpope/vim-surround'
|
||||||
|
Plug 'maxbrunsfeld/vim-yankstack'
|
||||||
|
Plug 'simeji/winresizer'
|
||||||
|
Plug 'neovim/nvim-lspconfig'
|
||||||
|
Plug 'hrsh7th/nvim-compe'
|
||||||
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||||
|
" Plug 'christianchiarulli/nvcode-color-schemes.vim'
|
||||||
|
Plug 'smarquez1/nvcode-color-schemes.vim', { 'branch': 'patch-1' }
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
" Split window nativation
|
||||||
|
" CTRL + W → h = horizontal split
|
||||||
|
" CTRL + W → s = vertical split
|
||||||
|
nmap <silent> <A-Up> :wincmd k<CR>
|
||||||
|
nmap <silent> <A-Down> :wincmd j<CR>
|
||||||
|
nmap <silent> <A-Left> :wincmd h<CR>
|
||||||
|
nmap <silent> <A-Right> :wincmd l<CR>
|
||||||
|
|
||||||
|
" Split window resize
|
||||||
|
nmap <silent> <M-k> <C-W>-
|
||||||
|
nmap <silent> <M-j> <C-W>+
|
||||||
|
nmap <silent> <M-h> <C-W><
|
||||||
|
nmap <silent> <M-l> <C-W>>
|
||||||
|
|
||||||
|
" Color scheme configuration
|
||||||
|
set termguicolors
|
||||||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
|
colorscheme onedark
|
||||||
|
set mousefocus
|
||||||
|
|
||||||
|
" Relative line numbers + current line as absolute
|
||||||
|
set number relativenumber
|
||||||
|
set nu rnu
|
||||||
|
|
||||||
|
" Open NERDTree when directory is opened
|
||||||
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
|
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
|
||||||
|
|
||||||
|
" Execute NERDTreeFind on ctrl+n
|
||||||
|
function MyNerdToggle()
|
||||||
|
if &filetype == 'nerdtree' || exists("g:NERDTree") && g:NERDTree.IsOpen()
|
||||||
|
:NERDTreeToggle
|
||||||
|
else
|
||||||
|
:NERDTreeFind
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
nnoremap <C-n> :call MyNerdToggle()<CR>
|
||||||
|
let g:NERDTreeMapActivateNode = ''
|
||||||
|
let g:NERDTreeMapOpenInTab = 't'
|
||||||
|
let g:NERDTreeWinPos = "left"
|
||||||
|
nmap ,n :NERDTreeToggle<CR>
|
||||||
|
|
||||||
|
" Space as leader
|
||||||
|
let mapleader = " "
|
||||||
|
|
||||||
|
" Change leader key timeout
|
||||||
|
set timeoutlen=1500
|
||||||
|
|
||||||
|
" Two spaces for fzf
|
||||||
|
nnoremap <silent> <Leader><Space> :Files<CR>
|
||||||
|
|
||||||
|
" Enable syntax highlight
|
||||||
|
syntax on
|
||||||
|
|
||||||
|
" if hidden is not set, TextEdit might fail.
|
||||||
|
set hidden
|
||||||
|
set lazyredraw
|
||||||
|
set tabstop=2
|
||||||
|
|
||||||
|
set shiftwidth=2
|
||||||
|
set shiftround
|
||||||
|
|
||||||
|
" Some servers have issues with backup files, see #649
|
||||||
|
set nobackup
|
||||||
|
set nowritebackup
|
||||||
|
|
||||||
|
" You will have bad experience for diagnostic messages when it's default 4000.
|
||||||
|
set updatetime=300
|
||||||
|
|
||||||
|
" don't give |ins-completion-menu| messages.
|
||||||
|
set shortmess+=c
|
||||||
|
|
||||||
|
" always show signcolumns
|
||||||
|
set signcolumn=yes
|
||||||
|
|
||||||
|
" Use system buffer
|
||||||
|
set clipboard+=unnamedplus
|
||||||
|
|
||||||
|
" Save on focus loose
|
||||||
|
:au FocusLost * :wa
|
||||||
|
|
||||||
|
" Spaces instead of tabs
|
||||||
|
set softtabstop=2
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
" Enable mouse clicks
|
||||||
|
set mouse=a
|
||||||
|
map <ScrollWheelUp> <C-Y>
|
||||||
|
map <ScrollWheelDown> <C-E>
|
||||||
|
|
||||||
|
" Open git status after space gst
|
||||||
|
nnoremap <silent> <Leader>gst :GFiles?<CR>
|
||||||
|
nnoremap <leader>gf <cmd>GFiles<cr>
|
||||||
|
|
||||||
|
" Telescope
|
||||||
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
||||||
|
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
||||||
|
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
||||||
|
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|
||||||
|
|
||||||
|
|
||||||
|
" Start searching before pressing enter
|
||||||
|
set incsearch
|
||||||
|
|
||||||
|
" Use camel case motion for words
|
||||||
|
map <silent> w <Plug>CamelCaseMotion_w
|
||||||
|
map <silent> b <Plug>CamelCaseMotion_b
|
||||||
|
map <silent> e <Plug>CamelCaseMotion_e
|
||||||
|
map <silent> ge <Plug>CamelCaseMotion_ge
|
||||||
|
sunmap w
|
||||||
|
sunmap b
|
||||||
|
sunmap e
|
||||||
|
sunmap ge
|
||||||
|
|
||||||
|
" Remap autopair to prevent conflict with yarn-stack
|
||||||
|
let g:AutoPairsShortcutToggle = '<M-q>'
|
||||||
|
|
||||||
|
|
||||||
|
" Import LSP configs
|
||||||
|
lua require('lsp-config')
|
||||||
|
|
||||||
|
" nvim-compe
|
||||||
|
set completeopt=menuone,noselect
|
||||||
|
let g:compe = {}
|
||||||
|
let g:compe.enabled = v:true
|
||||||
|
let g:compe.autocomplete = v:true
|
||||||
|
let g:compe.debug = v:false
|
||||||
|
let g:compe.min_length = 1
|
||||||
|
let g:compe.preselect = 'enable'
|
||||||
|
let g:compe.throttle_time = 80
|
||||||
|
let g:compe.source_timeout = 200
|
||||||
|
let g:compe.incomplete_delay = 400
|
||||||
|
let g:compe.max_abbr_width = 100
|
||||||
|
let g:compe.max_kind_width = 100
|
||||||
|
let g:compe.max_menu_width = 100
|
||||||
|
let g:compe.documentation = v:true
|
||||||
|
|
||||||
|
let g:compe.source = {}
|
||||||
|
let g:compe.source.path = v:true
|
||||||
|
let g:compe.source.buffer = v:true
|
||||||
|
let g:compe.source.calc = v:true
|
||||||
|
let g:compe.source.nvim_lsp = v:true
|
||||||
|
let g:compe.source.nvim_lua = v:true
|
||||||
|
let g:compe.source.vsnip = v:true
|
||||||
|
|
||||||
|
" Show diagnostics in popup
|
||||||
|
autocmd CursorHold * lua vim.diagnostic.open_float()
|
||||||
|
autocmd CursorHoldI * silent! lua vim.lsp.buf.signature_help()
|
||||||
|
|
||||||
|
let g:winresizer_start_key = '<Leader><C-r>'
|
||||||
|
|
||||||
|
" Tabline
|
||||||
|
function MyTabLine()
|
||||||
|
let s = ''
|
||||||
|
for i in range(tabpagenr('$'))
|
||||||
|
" select the highlighting
|
||||||
|
if i + 1 == tabpagenr()
|
||||||
|
let s .= '%#TabLineSel#'
|
||||||
|
else
|
||||||
|
let s .= '%#TabLine#'
|
||||||
|
endif
|
||||||
|
" set the tab page number (for mouse clicks)
|
||||||
|
let s .= '%' . (i + 1) . 'T'
|
||||||
|
" the label is made by MyTabLabel()
|
||||||
|
let s .= ' %{MyTabLabel(' . (i + 1) . ')} '
|
||||||
|
if i + 1 == tabpagenr()
|
||||||
|
let s .= '%#TabLineSep#'
|
||||||
|
elseif i + 2 == tabpagenr()
|
||||||
|
let s .= '%#TabLineSep2#'
|
||||||
|
else
|
||||||
|
let s .= ''
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
" after the last tab fill with TabLineFill and reset tab page nr
|
||||||
|
let s .= '%#TabLineFill#%T'
|
||||||
|
" right-align the label to close the current tab page
|
||||||
|
if tabpagenr('$') > 1
|
||||||
|
let s .= '%=%#TabLine#%999X'
|
||||||
|
endif
|
||||||
|
return s
|
||||||
|
endfunction
|
||||||
|
function MyTabLabel(n)
|
||||||
|
let buflist = tabpagebuflist(a:n)
|
||||||
|
let winnr = tabpagewinnr(a:n)
|
||||||
|
let name = bufname(buflist[winnr - 1])
|
||||||
|
let label = fnamemodify(name, ':t')
|
||||||
|
return len(label) == 0 ? '[No Name]' : label
|
||||||
|
endfunction
|
||||||
|
set tabline=%!MyTabLine()
|
||||||
|
|
|
@ -0,0 +1,103 @@
|
||||||
|
local nvim_lsp = require("lspconfig")
|
||||||
|
|
||||||
|
-- Add various shortcuts
|
||||||
|
local on_attach = function(client, bufnr)
|
||||||
|
local buf_map = vim.api.nvim_buf_set_keymap
|
||||||
|
vim.cmd("command! LspDef lua vim.lsp.buf.definition()")
|
||||||
|
vim.cmd("command! LspFormatting lua vim.lsp.buf.formatting()")
|
||||||
|
vim.cmd("command! LspCodeAction lua vim.lsp.buf.code_action()")
|
||||||
|
vim.cmd("command! LspHover lua vim.lsp.buf.hover()")
|
||||||
|
vim.cmd("command! LspRename lua vim.lsp.buf.rename()")
|
||||||
|
vim.cmd("command! LspRefs lua vim.lsp.buf.references()")
|
||||||
|
vim.cmd("command! LspTypeDef lua vim.lsp.buf.type_definition()")
|
||||||
|
vim.cmd("command! LspImplementation lua vim.lsp.buf.implementation()")
|
||||||
|
vim.cmd("command! LspDiagPrev lua vim.lsp.diagnostic.goto_prev()")
|
||||||
|
vim.cmd("command! LspDiagNext lua vim.lsp.diagnostic.goto_next()")
|
||||||
|
vim.cmd(
|
||||||
|
"command! LspDiagLine lua vim.diagnostic.open_float()")
|
||||||
|
vim.cmd("command! LspSignatureHelp lua vim.lsp.buf.signature_help()")
|
||||||
|
|
||||||
|
buf_map(bufnr, "n", "gd", ":LspDef<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "rn", ":LspRename<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "gr", ":LspRefs<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "gi", ":LspImplementation<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "gy", ":LspTypeDef<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "K", ":LspHover<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "[c", ":LspDiagPrev<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "]c", ":LspDiagNext<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "ga", ":LspCodeAction<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "n", "<Leader>a", ":LspDiagLine<CR>", {silent = true})
|
||||||
|
buf_map(bufnr, "i", "<C-x><C-x>", "<cmd> LspSignatureHelp<CR>", {silent = true})
|
||||||
|
|
||||||
|
if client.resolved_capabilities.document_formatting then
|
||||||
|
vim.api.nvim_exec([[
|
||||||
|
augroup LspAutocommands
|
||||||
|
autocmd! * <buffer>
|
||||||
|
autocmd BufWritePost <buffer> LspFormatting
|
||||||
|
augroup END
|
||||||
|
]], true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Typescript setup
|
||||||
|
nvim_lsp.tsserver.setup {
|
||||||
|
on_attach = function(client)
|
||||||
|
client.resolved_capabilities.document_formatting = false
|
||||||
|
on_attach(client)
|
||||||
|
end
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Formatter setup
|
||||||
|
local eslint = {
|
||||||
|
lintCommand = "eslint_d -f unix --stdin --stdin-filename ${INPUT}",
|
||||||
|
lintStdin = true,
|
||||||
|
lintFormats = {"%f:%l:%c: %m"},
|
||||||
|
lintIgnoreExitCode = true,
|
||||||
|
formatCommand = "eslint_d --fix-to-stdout --stdin --stdin-filename=${INPUT}",
|
||||||
|
formatStdin = true
|
||||||
|
}
|
||||||
|
nvim_lsp.efm.setup {
|
||||||
|
on_attach = function(client)
|
||||||
|
client.resolved_capabilities.document_formatting = true
|
||||||
|
client.resolved_capabilities.goto_definition = false
|
||||||
|
on_attach(client)
|
||||||
|
end,
|
||||||
|
root_dir = function()
|
||||||
|
return vim.fn.getcwd()
|
||||||
|
end,
|
||||||
|
settings = {
|
||||||
|
languages = {
|
||||||
|
javascript = {eslint},
|
||||||
|
javascriptreact = {eslint},
|
||||||
|
["javascript.jsx"] = {eslint},
|
||||||
|
typescript = {eslint},
|
||||||
|
["typescript.tsx"] = {eslint},
|
||||||
|
typescriptreact = {eslint}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
filetypes = {
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"javascript.jsx",
|
||||||
|
"typescript",
|
||||||
|
"typescript.tsx",
|
||||||
|
"typescriptreact"
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Show diagnostics in popup
|
||||||
|
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
|
||||||
|
vim.lsp.diagnostic.on_publish_diagnostics, {
|
||||||
|
virtual_text = false,
|
||||||
|
underline = true,
|
||||||
|
signs = true,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
-- Tree sitter setup
|
||||||
|
require'nvim-treesitter.configs'.setup {
|
||||||
|
ensure_installed = "maintained",
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
}
|
|
@ -0,0 +1,419 @@
|
||||||
|
#################################
|
||||||
|
# Shadows #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Enabled client-side shadows on windows. Note desktop windows
|
||||||
|
# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow,
|
||||||
|
# unless explicitly requested using the wintypes option.
|
||||||
|
#
|
||||||
|
# shadow = false
|
||||||
|
shadow = true;
|
||||||
|
|
||||||
|
# The blur radius for shadows, in pixels. (defaults to 12)
|
||||||
|
# shadow-radius = 12
|
||||||
|
shadow-radius = 7;
|
||||||
|
|
||||||
|
# The opacity of shadows. (0.0 - 1.0, defaults to 0.75)
|
||||||
|
# shadow-opacity = .75
|
||||||
|
|
||||||
|
# The left offset for shadows, in pixels. (defaults to -15)
|
||||||
|
# shadow-offset-x = -15
|
||||||
|
shadow-offset-x = -7;
|
||||||
|
|
||||||
|
# The top offset for shadows, in pixels. (defaults to -15)
|
||||||
|
# shadow-offset-y = -15
|
||||||
|
shadow-offset-y = -7;
|
||||||
|
|
||||||
|
# Red color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-red = 0
|
||||||
|
|
||||||
|
# Green color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-green = 0
|
||||||
|
|
||||||
|
# Blue color value of shadow (0.0 - 1.0, defaults to 0).
|
||||||
|
# shadow-blue = 0
|
||||||
|
|
||||||
|
# Hex string color value of shadow (#000000 - #FFFFFF, defaults to #000000). This option will override options set shadow-(red/green/blue)
|
||||||
|
# shadow-color = "#000000"
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should have no shadow.
|
||||||
|
#
|
||||||
|
# examples:
|
||||||
|
# shadow-exclude = "n:e:Notification";
|
||||||
|
#
|
||||||
|
# shadow-exclude = []
|
||||||
|
shadow-exclude = [
|
||||||
|
"name = 'Notification'",
|
||||||
|
"class_g = 'Conky'",
|
||||||
|
"class_g ?= 'Notify-osd'",
|
||||||
|
"class_g = 'Cairo-clock'",
|
||||||
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
|
];
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should have no shadow painted over, such as a dock window.
|
||||||
|
# clip-shadow-above = []
|
||||||
|
|
||||||
|
# Specify a X geometry that describes the region in which shadow should not
|
||||||
|
# be painted in, such as a dock window region. Use
|
||||||
|
# shadow-exclude-reg = "x10+0+0"
|
||||||
|
# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on.
|
||||||
|
#
|
||||||
|
# shadow-exclude-reg = ""
|
||||||
|
|
||||||
|
# Crop shadow of a window fully on a particular Xinerama screen to the screen.
|
||||||
|
# xinerama-shadow-crop = false
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Fading #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Fade windows in/out when opening/closing and when opacity changes,
|
||||||
|
# unless no-fading-openclose is used.
|
||||||
|
#fading = false
|
||||||
|
fading = true;
|
||||||
|
|
||||||
|
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
|
||||||
|
# fade-in-step = 0.028
|
||||||
|
fade-in-step = 0.03;
|
||||||
|
|
||||||
|
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
|
||||||
|
# fade-out-step = 0.03
|
||||||
|
fade-out-step = 0.03;
|
||||||
|
|
||||||
|
# The time between steps in fade step, in milliseconds. (> 0, defaults to 10)
|
||||||
|
# fade-delta = 10
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should not be faded.
|
||||||
|
# fade-exclude = []
|
||||||
|
|
||||||
|
# Do not fade on window open/close.
|
||||||
|
# no-fading-openclose = false
|
||||||
|
|
||||||
|
# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc.
|
||||||
|
# no-fading-destroyed-argb = false
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Transparency / Opacity #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0)
|
||||||
|
inactive-opacity = 1
|
||||||
|
#inactive-opacity = 0.8;
|
||||||
|
|
||||||
|
# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default)
|
||||||
|
# frame-opacity = 1.0
|
||||||
|
frame-opacity = 0.7;
|
||||||
|
|
||||||
|
# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows.
|
||||||
|
# inactive-opacity-override = true
|
||||||
|
inactive-opacity-override = false;
|
||||||
|
|
||||||
|
# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0)
|
||||||
|
# active-opacity = 1.0
|
||||||
|
|
||||||
|
# Dim inactive windows. (0.0 - 1.0, defaults to 0.0)
|
||||||
|
inactive-dim = 0.5
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should never be considered focused.
|
||||||
|
# focus-exclude = []
|
||||||
|
focus-exclude = [ "class_g = 'Cairo-clock'" ];
|
||||||
|
|
||||||
|
# Use fixed inactive dim value, instead of adjusting according to window opacity.
|
||||||
|
# inactive-dim-fixed = 1.0
|
||||||
|
|
||||||
|
# Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
|
||||||
|
# like `50:name *= "Firefox"`. picom-trans is recommended over this.
|
||||||
|
# Note we don't make any guarantee about possible conflicts with other
|
||||||
|
# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
|
||||||
|
# example:
|
||||||
|
# opacity-rule = [ "80:class_g = 'URxvt'" ];
|
||||||
|
#
|
||||||
|
# opacity-rule = []
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Corners #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Sets the radius of rounded window corners. When > 0, the compositor will
|
||||||
|
# round the corners of windows. Does not interact well with
|
||||||
|
# `transparent-clipping`.
|
||||||
|
corner-radius = 0
|
||||||
|
|
||||||
|
# Exclude conditions for rounded corners.
|
||||||
|
rounded-corners-exclude = [
|
||||||
|
"window_type = 'dock'",
|
||||||
|
"window_type = 'desktop'"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# Background-Blurring #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
|
||||||
|
# Parameters for background blurring, see the *BLUR* section for more information.
|
||||||
|
#blur-method = "kernel"
|
||||||
|
blur-size = 92
|
||||||
|
|
||||||
|
blur-deviation = false
|
||||||
|
|
||||||
|
blur-strength = 99
|
||||||
|
|
||||||
|
# Blur background of semi-transparent / ARGB windows.
|
||||||
|
# Bad in performance, with driver-dependent behavior.
|
||||||
|
# The name of the switch may change without prior notifications.
|
||||||
|
#
|
||||||
|
blur-background = false
|
||||||
|
|
||||||
|
# Blur background of windows when the window frame is not opaque.
|
||||||
|
# Implies:
|
||||||
|
# blur-background
|
||||||
|
# Bad in performance, with driver-dependent behavior. The name may change.
|
||||||
|
#
|
||||||
|
blur-background-frame = false
|
||||||
|
|
||||||
|
|
||||||
|
# Use fixed blur strength rather than adjusting according to window opacity.
|
||||||
|
blur-background-fixed = false
|
||||||
|
|
||||||
|
|
||||||
|
# Specify the blur convolution kernel, with the following format:
|
||||||
|
# example:
|
||||||
|
# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1";
|
||||||
|
#
|
||||||
|
# blur-kern = ""
|
||||||
|
blur-kern = "3x3box";
|
||||||
|
|
||||||
|
|
||||||
|
# Exclude conditions for background blur.
|
||||||
|
# blur-background-exclude = []
|
||||||
|
blur-background-exclude = [
|
||||||
|
"window_type = 'dock'",
|
||||||
|
#"window_type = 'desktop'",
|
||||||
|
"_GTK_FRAME_EXTENTS@:c"
|
||||||
|
];
|
||||||
|
|
||||||
|
#################################
|
||||||
|
# General Settings #
|
||||||
|
#################################
|
||||||
|
|
||||||
|
# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers.
|
||||||
|
# daemon = false
|
||||||
|
|
||||||
|
# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
|
||||||
|
# `xrender` is the default one.
|
||||||
|
#
|
||||||
|
# backend = "glx"
|
||||||
|
backend = "xrender";
|
||||||
|
|
||||||
|
# Enable/disable VSync.
|
||||||
|
# vsync = false
|
||||||
|
vsync = true;
|
||||||
|
|
||||||
|
# Enable remote control via D-Bus. See the *D-BUS API* section below for more details.
|
||||||
|
# dbus = false
|
||||||
|
|
||||||
|
# Try to detect WM windows (a non-override-redirect window with no
|
||||||
|
# child that has 'WM_STATE') and mark them as active.
|
||||||
|
#
|
||||||
|
# mark-wmwin-focused = false
|
||||||
|
mark-wmwin-focused = true;
|
||||||
|
|
||||||
|
# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused.
|
||||||
|
# mark-ovredir-focused = false
|
||||||
|
mark-ovredir-focused = true;
|
||||||
|
|
||||||
|
# Try to detect windows with rounded corners and don't consider them
|
||||||
|
# shaped windows. The accuracy is not very high, unfortunately.
|
||||||
|
#
|
||||||
|
# detect-rounded-corners = false
|
||||||
|
detect-rounded-corners = true;
|
||||||
|
|
||||||
|
# Detect '_NET_WM_OPACITY' on client windows, useful for window managers
|
||||||
|
# not passing '_NET_WM_OPACITY' of client windows to frame windows.
|
||||||
|
#
|
||||||
|
# detect-client-opacity = false
|
||||||
|
detect-client-opacity = true;
|
||||||
|
|
||||||
|
# Specify refresh rate of the screen. If not specified or 0, picom will
|
||||||
|
# try detecting this with X RandR extension.
|
||||||
|
#
|
||||||
|
# refresh-rate = 60
|
||||||
|
refresh-rate = 0;
|
||||||
|
|
||||||
|
# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window,
|
||||||
|
# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy,
|
||||||
|
# provided that the WM supports it.
|
||||||
|
#
|
||||||
|
# use-ewmh-active-win = false
|
||||||
|
|
||||||
|
# Unredirect all windows if a full-screen opaque window is detected,
|
||||||
|
# to maximize performance for full-screen windows. Known to cause flickering
|
||||||
|
# when redirecting/unredirecting windows.
|
||||||
|
#
|
||||||
|
# unredir-if-possible = false
|
||||||
|
|
||||||
|
# Delay before unredirecting the window, in milliseconds. Defaults to 0.
|
||||||
|
# unredir-if-possible-delay = 0
|
||||||
|
|
||||||
|
# Conditions of windows that shouldn't be considered full-screen for unredirecting screen.
|
||||||
|
# unredir-if-possible-exclude = []
|
||||||
|
|
||||||
|
# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows
|
||||||
|
# in the same group focused at the same time.
|
||||||
|
#
|
||||||
|
# detect-transient = false
|
||||||
|
detect-transient = true;
|
||||||
|
|
||||||
|
# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same
|
||||||
|
# group focused at the same time. This usually means windows from the same application
|
||||||
|
# will be considered focused or unfocused at the same time.
|
||||||
|
# 'WM_TRANSIENT_FOR' has higher priority if detect-transient is enabled, too.
|
||||||
|
#
|
||||||
|
# detect-client-leader = false
|
||||||
|
|
||||||
|
# Resize damaged region by a specific number of pixels.
|
||||||
|
# A positive value enlarges it while a negative one shrinks it.
|
||||||
|
# If the value is positive, those additional pixels will not be actually painted
|
||||||
|
# to screen, only used in blur calculation, and such. (Due to technical limitations,
|
||||||
|
# with use-damage, those pixels will still be incorrectly painted to screen.)
|
||||||
|
# Primarily used to fix the line corruption issues of blur,
|
||||||
|
# in which case you should use the blur radius value here
|
||||||
|
# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`,
|
||||||
|
# with a 5x5 one you use `--resize-damage 2`, and so on).
|
||||||
|
# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly.
|
||||||
|
#
|
||||||
|
# resize-damage = 1
|
||||||
|
|
||||||
|
# Specify a list of conditions of windows that should be painted with inverted color.
|
||||||
|
# Resource-hogging, and is not well tested.
|
||||||
|
#
|
||||||
|
# invert-color-include = []
|
||||||
|
|
||||||
|
# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer.
|
||||||
|
# Might cause incorrect opacity when rendering transparent content (but never
|
||||||
|
# practically happened) and may not work with blur-background.
|
||||||
|
# My tests show a 15% performance boost. Recommended.
|
||||||
|
#
|
||||||
|
# glx-no-stencil = false
|
||||||
|
|
||||||
|
# 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, xf86-video-intel, etc.).
|
||||||
|
# Recommended if it works.
|
||||||
|
#
|
||||||
|
# glx-no-rebind-pixmap = false
|
||||||
|
|
||||||
|
# Disable the use of damage information.
|
||||||
|
# This cause the whole screen to be redrawn everytime, instead of the part of the screen
|
||||||
|
# has actually changed. Potentially degrades the performance, but might fix some artifacts.
|
||||||
|
# The opposing option is use-damage
|
||||||
|
#
|
||||||
|
# no-use-damage = false
|
||||||
|
use-damage = true;
|
||||||
|
|
||||||
|
# Use X Sync fence to sync clients' draw calls, to make sure all draw
|
||||||
|
# calls are finished before picom starts drawing. Needed on nvidia-drivers
|
||||||
|
# with GLX backend for some users.
|
||||||
|
#
|
||||||
|
# xrender-sync-fence = false
|
||||||
|
|
||||||
|
# GLX backend: Use specified GLSL fragment shader for rendering window contents.
|
||||||
|
# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl`
|
||||||
|
# in the source tree for examples.
|
||||||
|
#
|
||||||
|
# glx-fshader-win = ""
|
||||||
|
|
||||||
|
# Force all windows to be painted with blending. Useful if you
|
||||||
|
# have a glx-fshader-win that could turn opaque pixels transparent.
|
||||||
|
#
|
||||||
|
# force-win-blend = false
|
||||||
|
|
||||||
|
# Do not use EWMH to detect fullscreen windows.
|
||||||
|
# Reverts to checking if a window is fullscreen based only on its size and coordinates.
|
||||||
|
#
|
||||||
|
# no-ewmh-fullscreen = false
|
||||||
|
|
||||||
|
# Dimming bright windows so their brightness doesn't exceed this set value.
|
||||||
|
# Brightness of a window is estimated by averaging all pixels in the window,
|
||||||
|
# so this could comes with a performance hit.
|
||||||
|
# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0)
|
||||||
|
#
|
||||||
|
# max-brightness = 1.0
|
||||||
|
|
||||||
|
# Make transparent windows clip other windows like non-transparent windows do,
|
||||||
|
# instead of blending on top of them.
|
||||||
|
#
|
||||||
|
# transparent-clipping = false
|
||||||
|
|
||||||
|
# Set the log level. Possible values are:
|
||||||
|
# "trace", "debug", "info", "warn", "error"
|
||||||
|
# in increasing level of importance. Case doesn't matter.
|
||||||
|
# If using the "TRACE" log level, it's better to log into a file
|
||||||
|
# using *--log-file*, since it can generate a huge stream of logs.
|
||||||
|
#
|
||||||
|
# log-level = "debug"
|
||||||
|
log-level = "warn";
|
||||||
|
|
||||||
|
# Set the log file.
|
||||||
|
# If *--log-file* is never specified, logs will be written to stderr.
|
||||||
|
# Otherwise, logs will to written to the given file, though some of the early
|
||||||
|
# logs might still be written to the stderr.
|
||||||
|
# When setting this option from the config file, it is recommended to use an absolute path.
|
||||||
|
#
|
||||||
|
# log-file = "/path/to/your/log/file"
|
||||||
|
|
||||||
|
# Show all X errors (for debugging)
|
||||||
|
# show-all-xerrors = false
|
||||||
|
|
||||||
|
# Write process ID to a file.
|
||||||
|
# write-pid-path = "/path/to/your/log/file"
|
||||||
|
|
||||||
|
# Window type settings
|
||||||
|
#
|
||||||
|
# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard:
|
||||||
|
# "unknown", "desktop", "dock", "toolbar", "menu", "utility",
|
||||||
|
# "splash", "dialog", "normal", "dropdown_menu", "popup_menu",
|
||||||
|
# "tooltip", "notification", "combo", and "dnd".
|
||||||
|
#
|
||||||
|
# Following per window-type options are available: ::
|
||||||
|
#
|
||||||
|
# fade, shadow:::
|
||||||
|
# Controls window-type-specific shadow and fade settings.
|
||||||
|
#
|
||||||
|
# opacity:::
|
||||||
|
# Controls default opacity of the window type.
|
||||||
|
#
|
||||||
|
# focus:::
|
||||||
|
# Controls whether the window of this type is to be always considered focused.
|
||||||
|
# (By default, all window types except "normal" and "dialog" has this on.)
|
||||||
|
#
|
||||||
|
# full-shadow:::
|
||||||
|
# Controls whether shadow is drawn under the parts of the window that you
|
||||||
|
# normally won't be able to see. Useful when the window has parts of it
|
||||||
|
# transparent, and you want shadows in those areas.
|
||||||
|
#
|
||||||
|
# clip-shadow-above:::
|
||||||
|
# Controls wether shadows that would have been drawn above the window should
|
||||||
|
# be clipped. Useful for dock windows that should have no shadow painted on top.
|
||||||
|
#
|
||||||
|
# redir-ignore:::
|
||||||
|
# Controls whether this type of windows should cause screen to become
|
||||||
|
# redirected again after been unredirected. If you have unredir-if-possible
|
||||||
|
# set, and doesn't want certain window to cause unnecessary screen redirection,
|
||||||
|
# you can set this to `true`.
|
||||||
|
#
|
||||||
|
wintypes:
|
||||||
|
{
|
||||||
|
tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; };
|
||||||
|
dock = { shadow = false; clip-shadow-above = true; }
|
||||||
|
dnd = { shadow = false; }
|
||||||
|
popup_menu = { opacity = 0.8; }
|
||||||
|
dropdown_menu = { opacity = 0.8; }
|
||||||
|
};
|
|
@ -0,0 +1,50 @@
|
||||||
|
[bar/example]
|
||||||
|
;monitor = ${env:MONITOR:HDMI-1}
|
||||||
|
monitor = ${env:MONITOR:}
|
||||||
|
width = 100%
|
||||||
|
height = 30
|
||||||
|
;offset-x = 1%
|
||||||
|
;offset-y = 1%
|
||||||
|
radius = 6.0
|
||||||
|
fixed-center = false
|
||||||
|
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
line-size = 3
|
||||||
|
line-color = #f00
|
||||||
|
|
||||||
|
border-size = 4
|
||||||
|
border-color = #00000000
|
||||||
|
|
||||||
|
padding-left = 0
|
||||||
|
padding-right = 2
|
||||||
|
|
||||||
|
module-margin-left = 1
|
||||||
|
module-margin-right = 2
|
||||||
|
|
||||||
|
font-0 = "SauceCodePro Nerd Font:style=Regular:size=15;4"
|
||||||
|
font-1 = "FontAwesome:style=Regular:size=10;4"
|
||||||
|
font-2 = "Noto Sans:size=11;1"
|
||||||
|
|
||||||
|
modules-left = bspwm i3
|
||||||
|
;modules-center = mpd
|
||||||
|
modules-right = filesystem xbacklight alsa pulseaudio xkeyboard memory cpu wlan eth battery temperature date fcitx powermenu
|
||||||
|
|
||||||
|
tray-position = right
|
||||||
|
tray-padding = 2
|
||||||
|
;tray-background = #0063ff
|
||||||
|
|
||||||
|
;wm-restack = bspwm
|
||||||
|
wm-restack = i3
|
||||||
|
|
||||||
|
;override-redirect = true
|
||||||
|
|
||||||
|
;scroll-up = bspwm-desknext
|
||||||
|
;scroll-down = bspwm-deskprev
|
||||||
|
|
||||||
|
scroll-up = i3-next
|
||||||
|
scroll-down = i3-prev
|
||||||
|
|
||||||
|
cursor-click = pointer
|
||||||
|
cursor-scroll = ns-resize
|
|
@ -0,0 +1,29 @@
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar block module (none)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
; block (each module begin and end)
|
||||||
|
[module/block-base]
|
||||||
|
type = custom/text
|
||||||
|
content-background = ${color.bg-bar}
|
||||||
|
content-foreground = ${color.block}
|
||||||
|
[module/left-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
[module/left-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
[module/right-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
[module/right-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
|
@ -0,0 +1,33 @@
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar block module (round)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
; block (each module begin and end)
|
||||||
|
[module/block-base]
|
||||||
|
type = custom/text
|
||||||
|
content-background = ${color.bg-bar}
|
||||||
|
content-foreground = ${color.block}
|
||||||
|
; (|
|
||||||
|
[module/left-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = ""
|
||||||
|
; |)
|
||||||
|
[module/left-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
; (|
|
||||||
|
[module/right-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = ""
|
||||||
|
; |)
|
||||||
|
[module/right-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar block module (sharp)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
; block (each module begin and end)
|
||||||
|
[module/block-base]
|
||||||
|
type = custom/text
|
||||||
|
content-background = ${color.bg-bar}
|
||||||
|
content-foreground = ${color.block}
|
||||||
|
; \|
|
||||||
|
[module/left-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
; |\
|
||||||
|
[module/left-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
; /|
|
||||||
|
[module/right-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
; |/
|
||||||
|
[module/right-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
|
@ -0,0 +1,33 @@
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar block module (sharp)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
; block (each module begin and end)
|
||||||
|
[module/block-base]
|
||||||
|
type = custom/text
|
||||||
|
content-background = ${color.bg-bar}
|
||||||
|
content-foreground = ${color.block}
|
||||||
|
;\|
|
||||||
|
[module/right-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
; |\
|
||||||
|
[module/right-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
; /|
|
||||||
|
[module/left-begin]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
||||||
|
; |/
|
||||||
|
[module/left-end]
|
||||||
|
inherit = module/block-base
|
||||||
|
content = " "
|
|
@ -0,0 +1,16 @@
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar color list (clear dark)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
[color]
|
||||||
|
bg-bar = #66393d55
|
||||||
|
bg-mod = #cc131527
|
||||||
|
block = #ae131527
|
||||||
|
mod = #dddddd
|
|
@ -0,0 +1,10 @@
|
||||||
|
[colors]
|
||||||
|
;background = ${xrdb:color0:#222}
|
||||||
|
background = #232629
|
||||||
|
background-alt = #444
|
||||||
|
;foreground = ${xrdb:color7:#222}
|
||||||
|
foreground = #fcfcfc
|
||||||
|
foreground-alt = #555
|
||||||
|
primary = #ffb52a
|
||||||
|
secondary = #e60053
|
||||||
|
alert = #bd2c40
|
|
@ -0,0 +1,16 @@
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar color list (unclear dark)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
[color]
|
||||||
|
bg-bar = #393d55
|
||||||
|
bg-mod = #131527
|
||||||
|
block = #131527
|
||||||
|
mod = #bbbbbb
|
|
@ -0,0 +1,18 @@
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar icon color list (colorful)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
[color]
|
||||||
|
icon_launcher= #15d1a8
|
||||||
|
icon_cpu = #fff030
|
||||||
|
icon_memory = #ad4dd8
|
||||||
|
icon_network = #3796f0
|
||||||
|
icon_battery = #40db68
|
||||||
|
icon_power = #ff4e26
|
|
@ -0,0 +1,18 @@
|
||||||
|
; ---------------------------------------------
|
||||||
|
; Alter Linux i3wm edition
|
||||||
|
; polybar icon color list (colorful)
|
||||||
|
;
|
||||||
|
; Watasuke
|
||||||
|
; Twitter: @Watasuke102
|
||||||
|
; Email : Watasuke102@gmail.com
|
||||||
|
;
|
||||||
|
; (c) 2020 Fascode Network.
|
||||||
|
; ---------------------------------------------
|
||||||
|
|
||||||
|
[color]
|
||||||
|
icon_launcher= #ddd
|
||||||
|
icon_cpu = #ddd
|
||||||
|
icon_memory = #ddd
|
||||||
|
icon_network = #ddd
|
||||||
|
icon_battery = #ddd
|
||||||
|
icon_power = #ddd
|
|
@ -0,0 +1,29 @@
|
||||||
|
;==========================================================
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||||
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||||
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||||
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||||
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||||
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; To learn more about how to configure Polybar
|
||||||
|
; go to https://github.com/jaagr/polybar
|
||||||
|
;
|
||||||
|
; The README contains alot of information
|
||||||
|
;
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[global/wm]
|
||||||
|
include-file = ~/.config/polybar/colors/colors_orig.ini
|
||||||
|
;include-file = ~/.config/polybar/colors/colors_unclear_dark.ini
|
||||||
|
include-file = ~/.config/polybar/colors/icons/icons_colorful_dark.ini
|
||||||
|
include-file = ~/.config/polybar/blocks/blocks_none.ini
|
||||||
|
include-file = ~/.config/polybar/modules.ini
|
||||||
|
|
||||||
|
include-file = ~/.config/polybar/bar.ini
|
||||||
|
|
||||||
|
include-file = ~/.config/polybar/settings.ini
|
||||||
|
include-file = ~/.config/polybar/wm.ini
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Terminate already running bar instances
|
||||||
|
killall -q polybar
|
||||||
|
|
||||||
|
# Wait until the processes have been shut down
|
||||||
|
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
# Launch bar1 and bar2
|
||||||
|
if type "xrandr"; then
|
||||||
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
|
MONITOR=$m polybar --reload example &
|
||||||
|
done
|
||||||
|
else
|
||||||
|
polybar --reload example &
|
||||||
|
fi
|
||||||
|
|
||||||
|
#polybar example
|
||||||
|
|
||||||
|
echo "Bars launched..."
|
|
@ -0,0 +1,19 @@
|
||||||
|
include-file = ~/.config/polybar/modules/fcitx.ini
|
||||||
|
include-file = ~/.config/polybar/modules/xwindow.ini
|
||||||
|
include-file = ~/.config/polybar/modules/xkeyboard.ini
|
||||||
|
include-file = ~/.config/polybar/modules/filesystem.ini
|
||||||
|
include-file = ~/.config/polybar/modules/bspwm.ini
|
||||||
|
include-file = ~/.config/polybar/modules/i3.ini
|
||||||
|
include-file = ~/.config/polybar/modules/mpd.ini
|
||||||
|
include-file = ~/.config/polybar/modules/xbacklight.ini
|
||||||
|
include-file = ~/.config/polybar/modules/backlight-acpi.ini
|
||||||
|
include-file = ~/.config/polybar/modules/cpu.ini
|
||||||
|
include-file = ~/.config/polybar/modules/memory.ini
|
||||||
|
include-file = ~/.config/polybar/modules/wlan.ini
|
||||||
|
include-file = ~/.config/polybar/modules/eth.ini
|
||||||
|
include-file = ~/.config/polybar/modules/date.ini
|
||||||
|
include-file = ~/.config/polybar/modules/pulseaudio.ini
|
||||||
|
include-file = ~/.config/polybar/modules/alsa.ini
|
||||||
|
include-file = ~/.config/polybar/modules/battery.ini
|
||||||
|
include-file = ~/.config/polybar/modules/temperature.ini
|
||||||
|
include-file = ~/.config/polybar/modules/powermenu.ini
|
|
@ -0,0 +1,27 @@
|
||||||
|
[module/alsa]
|
||||||
|
type = internal/alsa
|
||||||
|
|
||||||
|
format-volume = <label-volume> <bar-volume>
|
||||||
|
label-volume = VOL
|
||||||
|
label-volume-foreground = ${root.foreground}
|
||||||
|
|
||||||
|
format-muted-prefix = " "
|
||||||
|
format-muted-foreground = ${colors.foreground-alt}
|
||||||
|
label-muted = sound muted
|
||||||
|
|
||||||
|
bar-volume-width = 10
|
||||||
|
bar-volume-foreground-0 = #55aa55
|
||||||
|
bar-volume-foreground-1 = #55aa55
|
||||||
|
bar-volume-foreground-2 = #55aa55
|
||||||
|
bar-volume-foreground-3 = #55aa55
|
||||||
|
bar-volume-foreground-4 = #55aa55
|
||||||
|
bar-volume-foreground-5 = #f5a70a
|
||||||
|
bar-volume-foreground-6 = #ff5555
|
||||||
|
bar-volume-gradient = false
|
||||||
|
bar-volume-indicator = |
|
||||||
|
bar-volume-indicator-font = 2
|
||||||
|
bar-volume-fill = ─
|
||||||
|
bar-volume-fill-font = 2
|
||||||
|
bar-volume-empty = ─
|
||||||
|
bar-volume-empty-font = 2
|
||||||
|
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
@ -0,0 +1,4 @@
|
||||||
|
[module/backlight-acpi]
|
||||||
|
inherit = module/xbacklight
|
||||||
|
type = internal/backlight
|
||||||
|
card = intel_backlight
|
|
@ -0,0 +1,32 @@
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
battery = BAT0
|
||||||
|
adapter = AC
|
||||||
|
full-at = 98
|
||||||
|
|
||||||
|
format-charging = <animation-charging> <label-charging>
|
||||||
|
format-charging-underline = #ffb52a
|
||||||
|
|
||||||
|
format-discharging = <animation-discharging> <label-discharging>
|
||||||
|
format-discharging-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
|
format-full-prefix = " "
|
||||||
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-full-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
|
ramp-capacity-0 =
|
||||||
|
ramp-capacity-1 =
|
||||||
|
ramp-capacity-2 =
|
||||||
|
ramp-capacity-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
animation-charging-0 =
|
||||||
|
animation-charging-1 =
|
||||||
|
animation-charging-2 =
|
||||||
|
animation-charging-foreground = ${colors.foreground-alt}
|
||||||
|
animation-charging-framerate = 750
|
||||||
|
|
||||||
|
animation-discharging-0 =
|
||||||
|
animation-discharging-1 =
|
||||||
|
animation-discharging-2 =
|
||||||
|
animation-discharging-foreground = ${colors.foreground-alt}
|
||||||
|
animation-discharging-framerate = 750
|
|
@ -0,0 +1,21 @@
|
||||||
|
[module/bspwm]
|
||||||
|
type = internal/bspwm
|
||||||
|
|
||||||
|
label-focused = %index%
|
||||||
|
label-focused-background = ${colors.background-alt}
|
||||||
|
label-focused-underline= ${colors.primary}
|
||||||
|
label-focused-padding = 2
|
||||||
|
|
||||||
|
label-occupied = %index%
|
||||||
|
label-occupied-padding = 2
|
||||||
|
|
||||||
|
label-urgent = %index%!
|
||||||
|
label-urgent-background = ${colors.alert}
|
||||||
|
label-urgent-padding = 2
|
||||||
|
|
||||||
|
label-empty = %index%
|
||||||
|
label-empty-foreground = ${colors.foreground-alt}
|
||||||
|
label-empty-padding = 2
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
; label-separator = |
|
|
@ -0,0 +1,7 @@
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #f90000
|
||||||
|
label = %percentage:2%%
|
|
@ -0,0 +1,17 @@
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
interval = 1.0
|
||||||
|
|
||||||
|
date = %Y年%m月%d日 (%a)
|
||||||
|
date-alt = %Y-%m-%d%
|
||||||
|
|
||||||
|
time = %H:%M:%S
|
||||||
|
time-alt = %H:%M:%S
|
||||||
|
|
||||||
|
format-prefix = 🕓
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #fc54f9
|
||||||
|
|
||||||
|
label = %date% %time%
|
||||||
|
label-font = 3
|
||||||
|
label-foreground = #ea81e8
|
|
@ -0,0 +1,15 @@
|
||||||
|
[module/eth]
|
||||||
|
type = internal/network
|
||||||
|
interface = enp0s25
|
||||||
|
interval = 3.0
|
||||||
|
|
||||||
|
format-connected-underline = #55aa55
|
||||||
|
format-connected-prefix = " "
|
||||||
|
format-connected-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
label-connected = %local_ip%
|
||||||
|
|
||||||
|
format-disconnected =
|
||||||
|
;format-disconnected = <label-disconnected>
|
||||||
|
;format-disconnected-underline = ${self.format-connected-underline}
|
||||||
|
;label-disconnected = %ifname% disconnected
|
||||||
|
;label-disconnected-foreground = ${colors.foreground-alt}
|
|
@ -0,0 +1,6 @@
|
||||||
|
[module/fcitx]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/.config/polybar/polybar-fcitx5-script.sh
|
||||||
|
tail = true
|
||||||
|
interval = 0
|
||||||
|
format-prefix = "KBD"
|
|
@ -0,0 +1,9 @@
|
||||||
|
[module/filesystem]
|
||||||
|
type = internal/fs
|
||||||
|
interval = 25
|
||||||
|
|
||||||
|
mount-0 = /
|
||||||
|
|
||||||
|
label-mounted = %{F#0a81f5}%mountpoint%%{F-}: %percentage_used%%
|
||||||
|
label-unmounted = %mountpoint% not mounted
|
||||||
|
label-unmounted-foreground = ${colors.foreground-alt}
|
|
@ -0,0 +1,37 @@
|
||||||
|
[module/i3]
|
||||||
|
type = internal/i3
|
||||||
|
format = <label-state> <label-mode>
|
||||||
|
format-foreground = ${color.mod}
|
||||||
|
format-background = ${color.bg-mod}
|
||||||
|
index-sort = true
|
||||||
|
wrapping-scroll = false
|
||||||
|
|
||||||
|
; Only show workspaces on the same output as the bar
|
||||||
|
;pin-workspaces = true
|
||||||
|
|
||||||
|
label-mode-padding = 2
|
||||||
|
label-mode-foreground = #000
|
||||||
|
label-mode-background = ${colors.primary}
|
||||||
|
; focused = Active workspace on focused monitor
|
||||||
|
label-focused = %index%
|
||||||
|
label-focused-background = ${module/bspwm.label-focused-background}
|
||||||
|
label-focused-underline = ${module/bspwm.label-focused-underline}
|
||||||
|
label-focused-padding = ${module/bspwm.label-focused-padding}
|
||||||
|
|
||||||
|
; unfocused = Inactive workspace on any monitor
|
||||||
|
label-unfocused = %index%
|
||||||
|
label-unfocused-padding = ${module/bspwm.label-occupied-padding}
|
||||||
|
|
||||||
|
; visible = Active workspace on unfocused monitor
|
||||||
|
label-visible = %index%
|
||||||
|
label-visible-background = ${self.label-focused-background}
|
||||||
|
label-visible-underline = ${self.label-focused-underline}
|
||||||
|
label-visible-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
|
; urgent = Workspace with urgency hint set
|
||||||
|
label-urgent = %index%
|
||||||
|
label-urgent-background = ${module/bspwm.label-urgent-background}
|
||||||
|
label-urgent-padding = ${module/bspwm.label-urgent-padding}
|
||||||
|
|
||||||
|
; Separator in between workspaces
|
||||||
|
; label-separator = |
|
|
@ -0,0 +1,7 @@
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #4bffdc
|
||||||
|
label = %percentage_used%%
|
|
@ -0,0 +1,37 @@
|
||||||
|
[module/mpd]
|
||||||
|
type = internal/mpd
|
||||||
|
|
||||||
|
; Host where mpd is running (either ip or domain name)
|
||||||
|
; Can also be the full path to a unix socket where mpd is running.
|
||||||
|
host = 127.0.0.1
|
||||||
|
port = 6600
|
||||||
|
;password = mysecretpassword
|
||||||
|
|
||||||
|
format-online = <icon-prev> <icon-seekb> <icon-stop> <toggle> <icon-seekf> <icon-next> <icon-repeat> <icon-random>>
|
||||||
|
label-song = 𝄞 %artist% - %title%
|
||||||
|
label-offline = 🎜 mpd is offline
|
||||||
|
|
||||||
|
icon-play = ⏵
|
||||||
|
icon-pause = ⏸
|
||||||
|
icon-stop = ⏹
|
||||||
|
icon-prev = ⏮
|
||||||
|
icon-next = ⏭
|
||||||
|
icon-seekb = ⏪
|
||||||
|
icon-seekf = ⏩
|
||||||
|
icon-random = 🔀
|
||||||
|
icon-repeat = 🔁
|
||||||
|
icon-repeatone = 🔂
|
||||||
|
icon-single = 🔂
|
||||||
|
icon-consume = ✀
|
||||||
|
|
||||||
|
toggle-on-foreground = #ff
|
||||||
|
toggle-off-foreground = #55
|
||||||
|
|
||||||
|
bar-progress-width = 45
|
||||||
|
bar-progress-indicator = |
|
||||||
|
bar-progress-fill = ─
|
||||||
|
bar-progress-empty = ─
|
||||||
|
|
||||||
|
; Seconds to sleep between progressbar/song timer sync
|
||||||
|
; Default: 1
|
||||||
|
interval = 2
|
|
@ -0,0 +1,32 @@
|
||||||
|
[module/powermenu]
|
||||||
|
type = custom/menu
|
||||||
|
content = "%{T1} %{T-}"
|
||||||
|
content-foreground = ${color.icon_power}
|
||||||
|
content-background = ${color.bg-mod}
|
||||||
|
click-left = exec rofi -show power
|
||||||
|
|
||||||
|
expand-right = true
|
||||||
|
|
||||||
|
format-spacing = 1
|
||||||
|
|
||||||
|
label-open =
|
||||||
|
label-open-foreground = ${colors.secondary}
|
||||||
|
label-close = cancel
|
||||||
|
label-close-foreground = ${colors.secondary}
|
||||||
|
label-separator = |
|
||||||
|
label-separator-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
menu-0-0 = reboot
|
||||||
|
menu-0-0-exec = menu-open-1
|
||||||
|
menu-0-1 = power off
|
||||||
|
menu-0-1-exec = menu-open-2
|
||||||
|
|
||||||
|
menu-1-0 = cancel
|
||||||
|
menu-1-0-exec = menu-open-0
|
||||||
|
menu-1-1 = reboot
|
||||||
|
menu-1-1-exec = sudo reboot
|
||||||
|
|
||||||
|
menu-2-0 = power off
|
||||||
|
menu-2-0-exec = sudo poweroff
|
||||||
|
menu-2-1 = cancel
|
||||||
|
menu-2-1-exec = menu-open-0
|
|
@ -0,0 +1,26 @@
|
||||||
|
[module/pulseaudio]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
|
||||||
|
format-volume = <label-volume> <bar-volume>
|
||||||
|
label-volume = VOL %percentage%%
|
||||||
|
label-volume-foreground = ${root.foreground}
|
||||||
|
|
||||||
|
label-muted = 🔇 muted
|
||||||
|
label-muted-foreground = #666
|
||||||
|
|
||||||
|
bar-volume-width = 10
|
||||||
|
bar-volume-foreground-0 = #55aa55
|
||||||
|
bar-volume-foreground-1 = #55aa55
|
||||||
|
bar-volume-foreground-2 = #55aa55
|
||||||
|
bar-volume-foreground-3 = #55aa55
|
||||||
|
bar-volume-foreground-4 = #55aa55
|
||||||
|
bar-volume-foreground-5 = #f5a70a
|
||||||
|
bar-volume-foreground-6 = #ff5555
|
||||||
|
bar-volume-gradient = false
|
||||||
|
bar-volume-indicator = |
|
||||||
|
bar-volume-indicator-font = 2
|
||||||
|
bar-volume-fill = ─
|
||||||
|
bar-volume-fill-font = 2
|
||||||
|
bar-volume-empty = ─
|
||||||
|
bar-volume-empty-font = 2
|
||||||
|
bar-volume-empty-foreground = ${colors.foreground-alt}
|
|
@ -0,0 +1,18 @@
|
||||||
|
[module/temperature]
|
||||||
|
type = internal/temperature
|
||||||
|
thermal-zone = 0
|
||||||
|
warn-temperature = 60
|
||||||
|
|
||||||
|
format = <ramp> <label>
|
||||||
|
format-underline = #f50a4d
|
||||||
|
format-warn = <ramp> <label-warn>
|
||||||
|
format-warn-underline = ${self.format-underline}
|
||||||
|
|
||||||
|
label = %temperature-c%
|
||||||
|
label-warn = %temperature-c%
|
||||||
|
label-warn-foreground = ${colors.secondary}
|
||||||
|
|
||||||
|
ramp-0 =
|
||||||
|
ramp-1 =
|
||||||
|
ramp-2 =
|
||||||
|
ramp-foreground = ${colors.foreground-alt}
|
|
@ -0,0 +1,21 @@
|
||||||
|
[module/wlan]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlan0
|
||||||
|
interval = 3.0
|
||||||
|
|
||||||
|
format-connected = <ramp-signal> <label-connected>
|
||||||
|
format-connected-underline = #9f78e1
|
||||||
|
label-connected = %essid%
|
||||||
|
|
||||||
|
format-disconnected =
|
||||||
|
;format-disconnected = <label-disconnected>
|
||||||
|
;format-disconnected-underline = ${self.format-connected-underline}
|
||||||
|
;label-disconnected = %ifname% disconnected
|
||||||
|
;label-disconnected-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
ramp-signal-0 =
|
||||||
|
ramp-signal-1 =
|
||||||
|
ramp-signal-2 =
|
||||||
|
ramp-signal-3 =
|
||||||
|
ramp-signal-4 =
|
||||||
|
ramp-signal-foreground = ${colors.foreground-alt}
|
|
@ -0,0 +1,16 @@
|
||||||
|
[module/xbacklight]
|
||||||
|
type = internal/xbacklight
|
||||||
|
|
||||||
|
format = <label> <bar>
|
||||||
|
label = BL
|
||||||
|
|
||||||
|
bar-width = 10
|
||||||
|
bar-indicator = |
|
||||||
|
bar-indicator-foreground = #fff
|
||||||
|
bar-indicator-font = 2
|
||||||
|
bar-fill = ─
|
||||||
|
bar-fill-font = 2
|
||||||
|
bar-fill-foreground = #9f78e1
|
||||||
|
bar-empty = ─
|
||||||
|
bar-empty-font = 2
|
||||||
|
bar-empty-foreground = ${colors.foreground-alt}
|
|
@ -0,0 +1,15 @@
|
||||||
|
[module/xkeyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
blacklist-0 = num lock
|
||||||
|
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-prefix-underline = ${colors.secondary}
|
||||||
|
|
||||||
|
label-layout = %layout%
|
||||||
|
label-layout-underline = ${colors.secondary}
|
||||||
|
|
||||||
|
label-indicator-padding = 2
|
||||||
|
label-indicator-margin = 1
|
||||||
|
label-indicator-background = ${colors.secondary}
|
||||||
|
label-indicator-underline = ${colors.secondary}
|
|
@ -0,0 +1,3 @@
|
||||||
|
[module/xwindow]
|
||||||
|
type = internal/xwindow
|
||||||
|
label = %title:0:30:...%
|
|
@ -0,0 +1,83 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
CAPS_SYMBOL="%{F#c0392b}⇧%{F-}"
|
||||||
|
IMLIST_FILE="/tmp/fcitx5-imlist"
|
||||||
|
|
||||||
|
capslock() {
|
||||||
|
xset -q | grep Caps | grep -q on && {
|
||||||
|
echo on
|
||||||
|
return 0
|
||||||
|
} || {
|
||||||
|
echo off
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Print out identifier of current input method
|
||||||
|
current() {
|
||||||
|
dbus-send --session --print-reply \
|
||||||
|
--dest=org.fcitx.Fcitx5 \
|
||||||
|
/controller \
|
||||||
|
org.fcitx.Fcitx.Controller1.CurrentInputMethod \
|
||||||
|
| grep -Po '(?<=")[^"]+'
|
||||||
|
}
|
||||||
|
|
||||||
|
# List all input methods added to Fcitx
|
||||||
|
imlist() {
|
||||||
|
if [ ! -f "${IMLIST_FILE}" ]; then
|
||||||
|
dbus-send --session --print-reply \
|
||||||
|
--dest=org.fcitx.Fcitx5 \
|
||||||
|
/controller \
|
||||||
|
org.fcitx.Fcitx.Controller1.AvailableInputMethods \
|
||||||
|
| awk 'BEGIN{i=0}{
|
||||||
|
if($0~/struct {/) i=0;
|
||||||
|
else if(i<6){gsub(/"/,"",$2); printf("%s,",$2); i++}
|
||||||
|
else if(i==6){printf("%s\n",$2); i++}
|
||||||
|
}' > ${IMLIST_FILE}
|
||||||
|
# Output like this:
|
||||||
|
# pinyin, 拼音, 拼音, fcitx-pinyin, 拼, zh_CN, true
|
||||||
|
# rime, 中州韻, , fcitx-rime, ㄓ, zh, true
|
||||||
|
# ......
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat ${IMLIST_FILE}
|
||||||
|
}
|
||||||
|
|
||||||
|
# This script wait for events from `watch` and
|
||||||
|
# update the text by printing a new line.
|
||||||
|
#
|
||||||
|
# Strip `Keyboard - ` part from IM name then print
|
||||||
|
print_pretty_name() {
|
||||||
|
name=$(imlist | grep "^$(current)," | cut -d',' -f5)
|
||||||
|
if [[ -z "$name" ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
if capslock > /dev/null; then
|
||||||
|
# ${var^^} means uppercase, when CapsLock is on, let the name uppercase
|
||||||
|
name="${name^^}${CAPS_SYMBOL}"
|
||||||
|
fi
|
||||||
|
echo "${name}"
|
||||||
|
}
|
||||||
|
|
||||||
|
react() {
|
||||||
|
# Without this, Polybar will display empty
|
||||||
|
# string until you switch input method.
|
||||||
|
print_pretty_name
|
||||||
|
|
||||||
|
# Track input method changes. Each new line read is an event fired from IM switch
|
||||||
|
while true; do
|
||||||
|
# When read someting from dbus-monitor
|
||||||
|
read -r unused
|
||||||
|
print_pretty_name
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
##
|
||||||
|
# Watch for events from Fcitx.
|
||||||
|
#
|
||||||
|
# Because this script won't stop, I have to put the event handling part
|
||||||
|
# in another file named `react`.
|
||||||
|
##
|
||||||
|
|
||||||
|
# Need --line-buffered to avoid messages being hold in buffer
|
||||||
|
dbus-monitor --session destination=org.freedesktop.IBus | grep --line-buffered '65505\|65509' | react
|
|
@ -0,0 +1,7 @@
|
||||||
|
[settings]
|
||||||
|
screenchange-reload = true
|
||||||
|
;compositing-background = xor
|
||||||
|
;compositing-background = screen
|
||||||
|
;compositing-foreground = source
|
||||||
|
;compositing-border = over
|
||||||
|
;pseudo-transparency = false
|
|
@ -0,0 +1,5 @@
|
||||||
|
[global/wm]
|
||||||
|
margin-top = 5
|
||||||
|
margin-bottom = 5
|
||||||
|
|
||||||
|
; vim:ft=dosini
|
|
@ -0,0 +1,10 @@
|
||||||
|
# If a config.py file exists, this file is ignored unless it's explicitly loaded
|
||||||
|
# via config.load_autoconfig(). For more information, see:
|
||||||
|
# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml
|
||||||
|
# DO NOT edit this file by hand, qutebrowser will overwrite it.
|
||||||
|
# Instead, create a config.py - see :help for details.
|
||||||
|
|
||||||
|
config_version: 2
|
||||||
|
settings:
|
||||||
|
content.javascript.enabled:
|
||||||
|
global: true
|
|
@ -0,0 +1,302 @@
|
||||||
|
# Autogenerated config.py
|
||||||
|
#
|
||||||
|
# NOTE: config.py is intended for advanced users who are comfortable
|
||||||
|
# with manually migrating the config file on qutebrowser upgrades. If
|
||||||
|
# you prefer, you can also configure qutebrowser using the
|
||||||
|
# :set/:bind/:config-* commands without having to write a config.py
|
||||||
|
# file.
|
||||||
|
#
|
||||||
|
# Documentation:
|
||||||
|
# qute://help/configuring.html
|
||||||
|
# qute://help/settings.html
|
||||||
|
|
||||||
|
# Change the argument to True to still load settings configured via autoconfig.yml
|
||||||
|
config.load_autoconfig(False)
|
||||||
|
|
||||||
|
# Always restore open sites when qutebrowser is reopened. Without this
|
||||||
|
# option set, `:wq` (`:quit --save`) needs to be used to save open tabs
|
||||||
|
# (and restore them), while quitting qutebrowser in any other way will
|
||||||
|
# not save/restore the session. By default, this will save to the
|
||||||
|
# session which was last loaded. This behavior can be customized via the
|
||||||
|
# `session.default_name` setting.
|
||||||
|
# Type: Bool
|
||||||
|
c.auto_save.session = True
|
||||||
|
|
||||||
|
# Allow websites to read canvas elements. Note this is needed for some
|
||||||
|
# websites to work properly.
|
||||||
|
# Type: Bool
|
||||||
|
c.content.canvas_reading = False
|
||||||
|
|
||||||
|
# Which cookies to accept. With QtWebEngine, this setting also controls
|
||||||
|
# other features with tracking capabilities similar to those of cookies;
|
||||||
|
# including IndexedDB, DOM storage, filesystem API, service workers, and
|
||||||
|
# AppCache. Note that with QtWebKit, only `all` and `never` are
|
||||||
|
# supported as per-domain values. Setting `no-3rdparty` or `no-
|
||||||
|
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
|
||||||
|
# `all`. If this setting is used with URL patterns, the pattern gets
|
||||||
|
# applied to the origin/first party URL of the page making the request,
|
||||||
|
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
|
||||||
|
# from URLs, so URL patterns using paths will not match. With
|
||||||
|
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
|
||||||
|
# you will typically need to set this setting for `example.com` when the
|
||||||
|
# cookie is set on `somesubdomain.example.com` for it to work properly.
|
||||||
|
# To debug issues with this setting, start qutebrowser with `--debug
|
||||||
|
# --logfilter network --debug-flag log-cookies` which will show all
|
||||||
|
# cookies being set.
|
||||||
|
# Type: String
|
||||||
|
# Valid values:
|
||||||
|
# - all: Accept all cookies.
|
||||||
|
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
|
||||||
|
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
|
||||||
|
# - never: Don't accept cookies at all.
|
||||||
|
config.set('content.cookies.accept', 'all', 'chrome-devtools://*')
|
||||||
|
|
||||||
|
# Dark mode.
|
||||||
|
config.set('colors.webpage.darkmode.enabled', False)
|
||||||
|
config.set('colors.webpage.darkmode.threshold.background', 205)
|
||||||
|
config.set('colors.webpage.darkmode.threshold.text', 150)
|
||||||
|
|
||||||
|
# Which cookies to accept. With QtWebEngine, this setting also controls
|
||||||
|
# other features with tracking capabilities similar to those of cookies;
|
||||||
|
# including IndexedDB, DOM storage, filesystem API, service workers, and
|
||||||
|
# AppCache. Note that with QtWebKit, only `all` and `never` are
|
||||||
|
# supported as per-domain values. Setting `no-3rdparty` or `no-
|
||||||
|
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
|
||||||
|
# `all`. If this setting is used with URL patterns, the pattern gets
|
||||||
|
# applied to the origin/first party URL of the page making the request,
|
||||||
|
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
|
||||||
|
# from URLs, so URL patterns using paths will not match. With
|
||||||
|
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
|
||||||
|
# you will typically need to set this setting for `example.com` when the
|
||||||
|
# cookie is set on `somesubdomain.example.com` for it to work properly.
|
||||||
|
# To debug issues with this setting, start qutebrowser with `--debug
|
||||||
|
# --logfilter network --debug-flag log-cookies` which will show all
|
||||||
|
# cookies being set.
|
||||||
|
# Type: String
|
||||||
|
# Valid values:
|
||||||
|
# - all: Accept all cookies.
|
||||||
|
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
|
||||||
|
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
|
||||||
|
# - never: Don't accept cookies at all.
|
||||||
|
config.set('content.cookies.accept', 'all', 'devtools://*')
|
||||||
|
|
||||||
|
# Value to send in the `Accept-Language` header. Note that the value
|
||||||
|
# read from JavaScript is always the global value.
|
||||||
|
# Type: String
|
||||||
|
c.content.headers.accept_language = 'ja-JP,ja;q=0.9'
|
||||||
|
|
||||||
|
# Value to send in the `Accept-Language` header. Note that the value
|
||||||
|
# read from JavaScript is always the global value.
|
||||||
|
# Type: String
|
||||||
|
config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*')
|
||||||
|
|
||||||
|
# User agent to send. The following placeholders are defined: *
|
||||||
|
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
||||||
|
# The underlying WebKit version (set to a fixed value with
|
||||||
|
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
||||||
|
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
||||||
|
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
||||||
|
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
||||||
|
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
||||||
|
# running qutebrowser version. The default value is equal to the
|
||||||
|
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
||||||
|
# read from JavaScript is always the global value. With QtWebEngine
|
||||||
|
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
||||||
|
# JavaScript requires a restart.
|
||||||
|
# Type: FormatString
|
||||||
|
#config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/')
|
||||||
|
|
||||||
|
# User agent to send. The following placeholders are defined: *
|
||||||
|
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
||||||
|
# The underlying WebKit version (set to a fixed value with
|
||||||
|
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
||||||
|
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
||||||
|
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
||||||
|
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
||||||
|
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
||||||
|
# running qutebrowser version. The default value is equal to the
|
||||||
|
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
||||||
|
# read from JavaScript is always the global value. With QtWebEngine
|
||||||
|
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
||||||
|
# JavaScript requires a restart.
|
||||||
|
# Type: FormatString
|
||||||
|
#config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version} Edg/{upstream_browser_version}', 'https://accounts.google.com/*')
|
||||||
|
|
||||||
|
# User agent to send. The following placeholders are defined: *
|
||||||
|
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
|
||||||
|
# The underlying WebKit version (set to a fixed value with
|
||||||
|
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
|
||||||
|
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
|
||||||
|
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
|
||||||
|
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
|
||||||
|
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
|
||||||
|
# running qutebrowser version. The default value is equal to the
|
||||||
|
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
|
||||||
|
# read from JavaScript is always the global value. With QtWebEngine
|
||||||
|
# between 5.12 and 5.14 (inclusive), changing the value exposed to
|
||||||
|
# JavaScript requires a restart.
|
||||||
|
# Type: FormatString
|
||||||
|
#config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')
|
||||||
|
|
||||||
|
# List of URLs to ABP-style adblocking rulesets. Only used when Brave's
|
||||||
|
# ABP-style adblocker is used (see `content.blocking.method`). You can
|
||||||
|
# find an overview of available lists here:
|
||||||
|
# https://adblockplus.org/en/subscriptions - note that the special
|
||||||
|
# `subscribe.adblockplus.org` links aren't handled by qutebrowser, you
|
||||||
|
# will instead need to find the link to the raw `.txt` file (e.g. by
|
||||||
|
# extracting it from the `location` parameter of the subscribe URL and
|
||||||
|
# URL-decoding it).
|
||||||
|
# Type: List of Url
|
||||||
|
c.content.blocking.adblock.lists = ['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt', 'https://secure.fanboy.co.nz/fanboy-annoyance.txt', 'https://raw.githubusercontent.com/bogachenko/fuckfuckadblock/master/fuckfuckadblock.txt', 'https://www.i-dont-care-about-cookies.eu/abp/', 'https://abp.oisd.nl/']
|
||||||
|
|
||||||
|
c.content.blocking.hosts.lists = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts", "https://git.076.ne.jp/TechnicalSuwako/anti-malware-hostfile/raw/branch/master/goolag", "https://git.076.ne.jp/TechnicalSuwako/anti-malware-hostfile/raw/branch/master/koukoku", "https://git.076.ne.jp/TechnicalSuwako/anti-malware-hostfile/raw/branch/master/massmediatube", "https://git.076.ne.jp/TechnicalSuwako/anti-malware-hostfile/raw/branch/master/fakebook", "https://git.076.ne.jp/TechnicalSuwako/anti-malware-hostfile/raw/branch/master/crimeflare", "https://git.076.ne.jp/TechnicalSuwako/anti-malware-hostfile/raw/branch/master/twitter"]
|
||||||
|
|
||||||
|
#c.content.headers.user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/QtWebEngine (KHTML, like Gecko) QtWebEngine/{qt_version} {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}"
|
||||||
|
#c.content.headers.user_agent = "Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {qt_key}/{qt_version} {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}"
|
||||||
|
|
||||||
|
# Load images automatically in web pages.
|
||||||
|
# Type: Bool
|
||||||
|
config.set('content.images', True, 'chrome-devtools://*')
|
||||||
|
|
||||||
|
# Load images automatically in web pages.
|
||||||
|
# Type: Bool
|
||||||
|
config.set('content.images', True, 'devtools://*')
|
||||||
|
|
||||||
|
# Enable JavaScript.
|
||||||
|
# Type: Bool
|
||||||
|
config.set('content.javascript.enabled', True, 'chrome-devtools://*')
|
||||||
|
|
||||||
|
# Enable JavaScript.
|
||||||
|
# Type: Bool
|
||||||
|
config.set('content.javascript.enabled', True, 'devtools://*')
|
||||||
|
|
||||||
|
# Enable JavaScript.
|
||||||
|
# Type: Bool
|
||||||
|
config.set('content.javascript.enabled', True, 'chrome://*/*')
|
||||||
|
|
||||||
|
# Enable JavaScript.
|
||||||
|
# Type: Bool
|
||||||
|
config.set('content.javascript.enabled', True, 'qute://*/*')
|
||||||
|
|
||||||
|
# Enable WebGL.
|
||||||
|
# Type: Bool
|
||||||
|
c.content.webgl = False
|
||||||
|
|
||||||
|
# Page to open if :open -t/-b/-w is used without URL. Use `about:blank`
|
||||||
|
# for a blank page.
|
||||||
|
# Type: FuzzyUrl
|
||||||
|
#c.url.default_page = 'https://search.076.ne.jp/'
|
||||||
|
c.url.default_page = 'https://www.technicalsuwako.jp'
|
||||||
|
|
||||||
|
# Search engines which can be used via the address bar. Maps a search
|
||||||
|
# engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}`
|
||||||
|
# placeholder. The placeholder will be replaced by the search term, use
|
||||||
|
# `{{` and `}}` for literal `{`/`}` braces. The following further
|
||||||
|
# placeholds are defined to configure how special characters in the
|
||||||
|
# search terms are replaced by safe characters (called 'quoting'): *
|
||||||
|
# `{}` and `{semiquoted}` quote everything except slashes; this is the
|
||||||
|
# most sensible choice for almost all search engines (for the search
|
||||||
|
# term `slash/and&` this placeholder expands to `slash/and%26amp`).
|
||||||
|
# * `{quoted}` quotes all characters (for `slash/and&` this
|
||||||
|
# placeholder expands to `slash%2Fand%26amp`). * `{unquoted}` quotes
|
||||||
|
# nothing (for `slash/and&` this placeholder expands to
|
||||||
|
# `slash/and&`). * `{0}` means the same as `{}`, but can be used
|
||||||
|
# multiple times. The search engine named `DEFAULT` is used when
|
||||||
|
# `url.auto_search` is turned on and something else than a URL was
|
||||||
|
# entered to be opened. Other search engines can be used by prepending
|
||||||
|
# the search engine name to the search term, e.g. `:open google
|
||||||
|
# qutebrowser`.
|
||||||
|
# Type: Dict
|
||||||
|
#c.url.searchengines = {'DEFAULT': 'https://search.076.ne.jp/yacysearch.html?query={}'}
|
||||||
|
c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}'}
|
||||||
|
|
||||||
|
# Page(s) to open at the start.
|
||||||
|
# Type: List of FuzzyUrl, or FuzzyUrl
|
||||||
|
#c.url.start_pages = 'https://search.076.ne.jp'
|
||||||
|
c.url.start_pages = 'https://www.technicalsuwako.jp'
|
||||||
|
|
||||||
|
# Custom key
|
||||||
|
config.bind('M', 'hint links spawn vlc {hint-url}') # 動画URLはVLCに開く
|
||||||
|
config.bind('Z', 'hint links spawn st -e yt-dlp {hint-url}') # YouTubeの動画URLを保存する
|
||||||
|
config.bind('t', ':set-cmd-text -s :open -t') # 新しいタブに開く
|
||||||
|
config.bind('pt', ':set-cmd-text -s :open -p') # 新しいURLをプライベートウィンドウに開く
|
||||||
|
config.bind('po', ':set-cmd-text -s :open -p {url}'); # 現在のURLをプライベートウィンドウに開く
|
||||||
|
config.bind('xb', 'config-cycle statusbar.show always never') # 下にある状況バーの有無
|
||||||
|
config.bind('xt', 'config-cycle tabs.show always never') #上にあるタブバーの有無
|
||||||
|
config.bind('xx', 'config-cycle statusbar.show always never;; config-cycle tabs.show always never') # 両方のバー同時にの有無
|
||||||
|
config.bind('xd', 'config-cycle colors.webpage.darkmode.enabled true false') # ダークモードの有無
|
||||||
|
config.bind('xj', 'config-cycle content.javascript.enabled true false') # JSの有無
|
||||||
|
config.bind('xp', 'config-cycle content.proxy system socks://localhost:9050/') # 普通↔Torの交換
|
||||||
|
config.bind(';i', 'hint images spawn --output-messages wget -P "/home/suwako/ダウンロード" {hint-url}') # 画像等の保存
|
||||||
|
config.bind('gh', 'back') # 戻る
|
||||||
|
config.bind('gl', 'forward') # 次
|
||||||
|
config.bind('ee', ':set-cmd-text -s :open {url}') # 現在のURLの編集
|
||||||
|
|
||||||
|
c.content.proxy = 'system'
|
||||||
|
c.content.javascript.enabled = True
|
||||||
|
|
||||||
|
# TODO: まだ機能していない
|
||||||
|
#config.set('content.javascript.enabled', True, '*://*.076.ne.jp/')
|
||||||
|
#config.set('content.javascript.enabled', True, '*://odysee.com/')
|
||||||
|
#config.set('content.javascript.enabled', True, '*://bitchute.com/')
|
||||||
|
#config.set('content.javascript.enabled', True, '*://tradeogre.com/')
|
||||||
|
#config.set('content.javascript.enabled', True, '*://app.slack.com/')
|
||||||
|
|
||||||
|
# Theme
|
||||||
|
c.colors.completion.category.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #46195a, stop:1 #341242)'
|
||||||
|
c.colors.completion.category.border.bottom = '#232629'
|
||||||
|
c.colors.completion.category.border.top = '#232629'
|
||||||
|
c.colors.completion.even.bg = '#232629'
|
||||||
|
c.colors.completion.item.selected.bg = '#61237c'
|
||||||
|
c.colors.completion.item.selected.border.bottom = '#cb81ea'
|
||||||
|
c.colors.completion.item.selected.border.top = '#cb81ea'
|
||||||
|
c.colors.completion.item.selected.fg = '#fcfcfc'
|
||||||
|
c.colors.completion.item.selected.match.fg = '#f31de8'
|
||||||
|
c.colors.completion.match.fg = '#f31de8'
|
||||||
|
c.colors.completion.odd.bg = '#31363b'
|
||||||
|
c.colors.completion.scrollbar.bg = '#31363b'
|
||||||
|
c.colors.completion.scrollbar.fg = '#cb81ea'
|
||||||
|
|
||||||
|
c.colors.downloads.bar.bg = '#31363b'
|
||||||
|
c.colors.downloads.error.bg = '#ff3636'
|
||||||
|
c.colors.downloads.error.fg = '#fcfcfc'
|
||||||
|
c.colors.downloads.start.bg = '#1d99f3'
|
||||||
|
c.colors.downloads.start.fg = '#fcfcfc'
|
||||||
|
c.colors.downloads.stop.bg = '#27ae60'
|
||||||
|
c.colors.downloads.stop.fg = '#fcfcfc'
|
||||||
|
|
||||||
|
c.colors.hints.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(234, 129, 232, 0.8), stop:1 rgba(229, 153, 229, 0.8))'
|
||||||
|
c.colors.hints.fg = '#fcfcfc'
|
||||||
|
|
||||||
|
c.colors.statusbar.command.bg = '#c0392b'
|
||||||
|
c.colors.statusbar.command.fg = '#fcfcfc'
|
||||||
|
c.colors.statusbar.command.private.bg = '#611e24'
|
||||||
|
c.colors.statusbar.command.private.fg = '#fcfcfc'
|
||||||
|
|
||||||
|
c.colors.statusbar.insert.bg = '#27ae60'
|
||||||
|
c.colors.statusbar.insert.fg = '#fcfcfc'
|
||||||
|
c.colors.statusbar.normal.bg = '#31363b'
|
||||||
|
c.colors.statusbar.normal.fg = '#fcfcfc'
|
||||||
|
c.colors.statusbar.passthrough.bg = '#1d99f3'
|
||||||
|
c.colors.statusbar.passthrough.fg = '#fcfcfc'
|
||||||
|
c.colors.statusbar.private.bg = '#6c29b9'
|
||||||
|
c.colors.statusbar.private.fg = '#fcfcfc'
|
||||||
|
|
||||||
|
|
||||||
|
c.colors.tabs.bar.bg = '#232629'
|
||||||
|
c.colors.tabs.even.bg = '#4d4d4d'
|
||||||
|
c.colors.tabs.even.fg = '#fcfcfc'
|
||||||
|
c.colors.tabs.indicator.error = '#ff3636'
|
||||||
|
c.colors.tabs.indicator.start = '#1d99f3'
|
||||||
|
c.colors.tabs.indicator.stop = '#27ae60'
|
||||||
|
|
||||||
|
c.colors.tabs.odd.bg = '#727272'
|
||||||
|
c.colors.tabs.odd.fg = '#fcfcfc'
|
||||||
|
c.colors.tabs.selected.even.bg = '#232629'
|
||||||
|
c.colors.tabs.selected.even.fg = '#fcfcfc'
|
||||||
|
c.colors.tabs.selected.odd.bg = '#232629'
|
||||||
|
c.colors.tabs.selected.odd.fg = '#fcfcfc'
|
||||||
|
|
||||||
|
c.hints.border = '1px solid #b459b6'
|
||||||
|
|
||||||
|
c.qt.force_software_rendering = 'qt-quick'
|
|
@ -0,0 +1,17 @@
|
||||||
|
// ==UserScript==
|
||||||
|
// @description Redirects Youtube URLs to Invidio.us
|
||||||
|
// @name Invidious Redirect
|
||||||
|
// @namespace Backend
|
||||||
|
// @include http://www.youtube.com/*
|
||||||
|
// @include https://www.youtube.com/*
|
||||||
|
// @version 1.2
|
||||||
|
// @run-at document-start
|
||||||
|
// @grant none
|
||||||
|
// ==/UserScript==
|
||||||
|
var a = 0;
|
||||||
|
setInterval(function () {
|
||||||
|
if (a === 0 && window.location.href.indexOf('watch?') > -1 && window.location.href.indexOf('list=WL') < 0) {
|
||||||
|
a = '//youtube.076.ne.jp/watch?' + window.parent.location.href.split('?')[1];
|
||||||
|
window.location.replace(a);
|
||||||
|
}
|
||||||
|
}, 10);
|
|
@ -0,0 +1 @@
|
||||||
|
o
|
|
@ -0,0 +1,142 @@
|
||||||
|
/**
|
||||||
|
* ROFI Color theme
|
||||||
|
* User: Qball
|
||||||
|
* Copyright: Dave Davenport
|
||||||
|
*/
|
||||||
|
|
||||||
|
* {
|
||||||
|
selected-normal-foreground: rgba ( 232, 234, 246, 100 % );
|
||||||
|
foreground: rgba ( 232, 234, 246, 100 % );
|
||||||
|
normal-foreground: @foreground;
|
||||||
|
alternate-normal-background: rgba ( 40, 53, 147, 100 % );
|
||||||
|
red: rgba ( 220, 50, 47, 100 % );
|
||||||
|
selected-urgent-foreground: rgba ( 183, 28, 28, 100 % );
|
||||||
|
blue: rgba ( 38, 139, 210, 100 % );
|
||||||
|
urgent-foreground: rgba ( 255, 205, 210, 100 % );
|
||||||
|
alternate-urgent-background: rgba ( 183, 28, 28, 100 % );
|
||||||
|
active-foreground: rgba ( 178, 235, 242, 100 % );
|
||||||
|
lightbg: rgba ( 238, 232, 213, 100 % );
|
||||||
|
selected-active-foreground: rgba ( 0, 96, 100, 100 % );
|
||||||
|
alternate-active-background: rgba ( 0, 96, 100, 100 % );
|
||||||
|
background: rgba ( 26, 35, 126, 100 % );
|
||||||
|
bordercolor: rgba ( 232, 234, 246, 100 % );
|
||||||
|
alternate-normal-foreground: @foreground;
|
||||||
|
normal-background: rgba ( 152, 108, 128, 3 % );
|
||||||
|
lightfg: rgba ( 88, 104, 117, 100 % );
|
||||||
|
selected-normal-background: rgba ( 63, 81, 181, 100 % );
|
||||||
|
border-color: @foreground;
|
||||||
|
spacing: 2;
|
||||||
|
separatorcolor: rgba ( 232, 234, 246, 100 % );
|
||||||
|
urgent-background: rgba ( 223, 110, 0, 6 % );
|
||||||
|
selected-urgent-background: rgba ( 255, 205, 210, 100 % );
|
||||||
|
alternate-urgent-foreground: @urgent-foreground;
|
||||||
|
background-color: rgba ( 0, 0, 0, 0 % );
|
||||||
|
alternate-active-foreground: @active-foreground;
|
||||||
|
active-background: rgba ( 223, 110, 0, 6 % );
|
||||||
|
selected-active-background: rgba ( 178, 235, 242, 100 % );
|
||||||
|
}
|
||||||
|
window {
|
||||||
|
background-color: @background;
|
||||||
|
border: 1;
|
||||||
|
padding: 5;
|
||||||
|
}
|
||||||
|
mainbox {
|
||||||
|
border: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
message {
|
||||||
|
border: 2px 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
textbox {
|
||||||
|
text-color: @foreground;
|
||||||
|
}
|
||||||
|
listview {
|
||||||
|
fixed-height: 0;
|
||||||
|
border: 2px 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
spacing: 2px ;
|
||||||
|
scrollbar: true;
|
||||||
|
padding: 2px 0px 0px ;
|
||||||
|
}
|
||||||
|
element {
|
||||||
|
border: 0;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
element.normal.normal {
|
||||||
|
background-color: @normal-background;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
element.normal.urgent {
|
||||||
|
background-color: @urgent-background;
|
||||||
|
text-color: @urgent-foreground;
|
||||||
|
}
|
||||||
|
element.normal.active {
|
||||||
|
background-color: @active-background;
|
||||||
|
text-color: @active-foreground;
|
||||||
|
}
|
||||||
|
element.selected.normal {
|
||||||
|
background-color: @selected-normal-background;
|
||||||
|
text-color: @selected-normal-foreground;
|
||||||
|
}
|
||||||
|
element.selected.urgent {
|
||||||
|
background-color: @selected-urgent-background;
|
||||||
|
text-color: @selected-urgent-foreground;
|
||||||
|
}
|
||||||
|
element.selected.active {
|
||||||
|
background-color: @selected-active-background;
|
||||||
|
text-color: @selected-active-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.normal {
|
||||||
|
background-color: @alternate-normal-background;
|
||||||
|
text-color: @alternate-normal-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.urgent {
|
||||||
|
background-color: @alternate-urgent-background;
|
||||||
|
text-color: @alternate-urgent-foreground;
|
||||||
|
}
|
||||||
|
element.alternate.active {
|
||||||
|
background-color: @alternate-active-background;
|
||||||
|
text-color: @alternate-active-foreground;
|
||||||
|
}
|
||||||
|
scrollbar {
|
||||||
|
width: 4px ;
|
||||||
|
border: 0;
|
||||||
|
handle-width: 8px ;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
mode-switcher {
|
||||||
|
border: 2px 0px 0px ;
|
||||||
|
border-color: @separatorcolor;
|
||||||
|
}
|
||||||
|
button.selected {
|
||||||
|
background-color: @selected-normal-background;
|
||||||
|
text-color: @selected-normal-foreground;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
padding: 1px ;
|
||||||
|
}
|
||||||
|
case-indicator {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
entry {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
prompt {
|
||||||
|
spacing: 0;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
||||||
|
inputbar {
|
||||||
|
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||||
|
}
|
||||||
|
textbox-prompt-colon {
|
||||||
|
expand: false;
|
||||||
|
str: ":";
|
||||||
|
margin: 0px 0.3em 0em 0em ;
|
||||||
|
text-color: @normal-foreground;
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
//rofi.theme: /usr/share/rofi/themes/sidebar.rasi
|
||||||
|
//@theme "/usr/share/rofi/themes/sidebar.rasi"
|
||||||
|
//@theme "/usr/share/rofi/themes/purple.rasi"
|
||||||
|
//@theme "/usr/share/rofi/themes/sidebar.rasi"
|
||||||
|
//@theme "/usr/share/rofi/themes/iggy.rasi"
|
||||||
|
//@theme "/usr/share/rofi/themes/fancy.rasi"
|
||||||
|
@theme "/usr/share/rofi/themes/glue_pro_blue.rasi"
|
|
@ -0,0 +1,243 @@
|
||||||
|
# Configuration file for dircolors, a utility to help you set the
|
||||||
|
# LS_COLORS environment variable used by GNU ls with the --color option.
|
||||||
|
|
||||||
|
# Copyright (C) 1996-2014 Free Software Foundation, Inc.
|
||||||
|
# Copying and distribution of this file, with or without modification,
|
||||||
|
# are permitted provided the copyright notice and this notice are preserved.
|
||||||
|
|
||||||
|
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
|
||||||
|
# slackware version of dircolors) are recognized but ignored.
|
||||||
|
|
||||||
|
# You can copy this file to .dir_colors in your $HOME directory to override
|
||||||
|
# the system defaults.
|
||||||
|
|
||||||
|
# Below, there should be one TERM entry for each termtype that is colorizable
|
||||||
|
TERM Eterm
|
||||||
|
TERM ansi
|
||||||
|
TERM color-xterm
|
||||||
|
TERM con132x25
|
||||||
|
TERM con132x30
|
||||||
|
TERM con132x43
|
||||||
|
TERM con132x60
|
||||||
|
TERM con80x25
|
||||||
|
TERM con80x28
|
||||||
|
TERM con80x30
|
||||||
|
TERM con80x43
|
||||||
|
TERM con80x50
|
||||||
|
TERM con80x60
|
||||||
|
TERM cons25
|
||||||
|
TERM console
|
||||||
|
TERM cygwin
|
||||||
|
TERM dtterm
|
||||||
|
TERM eterm-color
|
||||||
|
TERM gnome
|
||||||
|
TERM gnome-256color
|
||||||
|
TERM hurd
|
||||||
|
TERM jfbterm
|
||||||
|
TERM konsole
|
||||||
|
TERM kterm
|
||||||
|
TERM linux
|
||||||
|
TERM linux-c
|
||||||
|
TERM mach-color
|
||||||
|
TERM mach-gnu-color
|
||||||
|
TERM mlterm
|
||||||
|
TERM putty
|
||||||
|
TERM putty-256color
|
||||||
|
TERM rxvt
|
||||||
|
TERM rxvt-256color
|
||||||
|
TERM rxvt-cygwin
|
||||||
|
TERM rxvt-cygwin-native
|
||||||
|
TERM rxvt-unicode
|
||||||
|
TERM rxvt-unicode-256color
|
||||||
|
TERM rxvt-unicode256
|
||||||
|
TERM screen
|
||||||
|
TERM screen-256color
|
||||||
|
TERM screen-256color-bce
|
||||||
|
TERM screen-bce
|
||||||
|
TERM screen-w
|
||||||
|
TERM screen.Eterm
|
||||||
|
TERM screen.rxvt
|
||||||
|
TERM screen.linux
|
||||||
|
TERM st
|
||||||
|
TERM st-256color
|
||||||
|
TERM terminator
|
||||||
|
TERM vt100
|
||||||
|
TERM xterm
|
||||||
|
TERM xterm-16color
|
||||||
|
TERM xterm-256color
|
||||||
|
TERM xterm-88color
|
||||||
|
TERM xterm-color
|
||||||
|
TERM xterm-debian
|
||||||
|
|
||||||
|
# Below are the color init strings for the basic file types. A color init
|
||||||
|
# string consists of one or more of the following numeric codes:
|
||||||
|
# Attribute codes:
|
||||||
|
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
|
||||||
|
# Text color codes:
|
||||||
|
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
|
||||||
|
# Background color codes:
|
||||||
|
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
|
||||||
|
#NORMAL 00 # no color code at all
|
||||||
|
#FILE 00 # regular file: use no color at all
|
||||||
|
RESET 0 # reset to "normal" color
|
||||||
|
DIR 01;34 # directory
|
||||||
|
LINK 01;36 # symbolic link. (If you set this to 'target' instead of a
|
||||||
|
# numerical value, the color is as for the file pointed to.)
|
||||||
|
MULTIHARDLINK 00 # regular file with more than one link
|
||||||
|
FIFO 40;33 # pipe
|
||||||
|
SOCK 01;35 # socket
|
||||||
|
DOOR 01;35 # door
|
||||||
|
BLK 40;33;01 # block device driver
|
||||||
|
CHR 40;33;01 # character device driver
|
||||||
|
ORPHAN 01;05;37;41 # orphaned syminks
|
||||||
|
MISSING 01;05;37;41 # ... and the files they point to
|
||||||
|
SETUID 37;41 # file that is setuid (u+s)
|
||||||
|
SETGID 30;43 # file that is setgid (g+s)
|
||||||
|
CAPABILITY 30;41 # file with capability
|
||||||
|
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
|
||||||
|
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky
|
||||||
|
STICKY 37;44 # dir with the sticky bit set (+t) and not other-writable
|
||||||
|
|
||||||
|
# This is for files with execute permission:
|
||||||
|
EXEC 01;32
|
||||||
|
|
||||||
|
# List any file extensions like '.gz' or '.tar' that you would like ls
|
||||||
|
# to colorize below. Put the extension, a space, and the color init string.
|
||||||
|
# (and any comments you want to add after a '#')
|
||||||
|
|
||||||
|
# If you use DOS-style suffixes, you may want to uncomment the following:
|
||||||
|
#.cmd 01;32 # executables (bright green)
|
||||||
|
#.exe 01;32
|
||||||
|
#.com 01;32
|
||||||
|
#.btm 01;32
|
||||||
|
#.bat 01;32
|
||||||
|
# Or if you want to colorize scripts even if they do not have the
|
||||||
|
# executable bit actually set.
|
||||||
|
#.sh 01;32
|
||||||
|
#.csh 01;32
|
||||||
|
|
||||||
|
# archives or compressed (bright red)
|
||||||
|
.tar 01;31
|
||||||
|
.tgz 01;31
|
||||||
|
.arc 01;31
|
||||||
|
.arj 01;31
|
||||||
|
.taz 01;31
|
||||||
|
.lha 01;31
|
||||||
|
.lz4 01;31
|
||||||
|
.lzh 01;31
|
||||||
|
.lzma 01;31
|
||||||
|
.tlz 01;31
|
||||||
|
.txz 01;31
|
||||||
|
.tzo 01;31
|
||||||
|
.t7z 01;31
|
||||||
|
.zip 01;31
|
||||||
|
.z 01;31
|
||||||
|
.Z 01;31
|
||||||
|
.dz 01;31
|
||||||
|
.gz 01;31
|
||||||
|
.lrz 01;31
|
||||||
|
.lz 01;31
|
||||||
|
.lzo 01;31
|
||||||
|
.xz 01;31
|
||||||
|
.bz2 01;31
|
||||||
|
.bz 01;31
|
||||||
|
.tbz 01;31
|
||||||
|
.tbz2 01;31
|
||||||
|
.tz 01;31
|
||||||
|
.deb 01;31
|
||||||
|
.rpm 01;31
|
||||||
|
.jar 01;31
|
||||||
|
.war 01;31
|
||||||
|
.ear 01;31
|
||||||
|
.sar 01;31
|
||||||
|
.rar 01;31
|
||||||
|
.alz 01;31
|
||||||
|
.ace 01;31
|
||||||
|
.zoo 01;31
|
||||||
|
.cpio 01;31
|
||||||
|
.7z 01;31
|
||||||
|
.rz 01;31
|
||||||
|
.cab 01;31
|
||||||
|
|
||||||
|
# image formats
|
||||||
|
.jpg 01;35
|
||||||
|
.jpeg 01;35
|
||||||
|
.gif 01;35
|
||||||
|
.bmp 01;35
|
||||||
|
.pbm 01;35
|
||||||
|
.pgm 01;35
|
||||||
|
.ppm 01;35
|
||||||
|
.tga 01;35
|
||||||
|
.xbm 01;35
|
||||||
|
.xpm 01;35
|
||||||
|
.tif 01;35
|
||||||
|
.tiff 01;35
|
||||||
|
.png 01;35
|
||||||
|
.svg 01;35
|
||||||
|
.svgz 01;35
|
||||||
|
.mng 01;35
|
||||||
|
.pcx 01;35
|
||||||
|
.mov 01;35
|
||||||
|
.mpg 01;35
|
||||||
|
.mpeg 01;35
|
||||||
|
.m2v 01;35
|
||||||
|
.mkv 01;35
|
||||||
|
.webm 01;35
|
||||||
|
.ogm 01;35
|
||||||
|
.mp4 01;35
|
||||||
|
.m4v 01;35
|
||||||
|
.mp4v 01;35
|
||||||
|
.vob 01;35
|
||||||
|
.qt 01;35
|
||||||
|
.nuv 01;35
|
||||||
|
.wmv 01;35
|
||||||
|
.asf 01;35
|
||||||
|
.rm 01;35
|
||||||
|
.rmvb 01;35
|
||||||
|
.flc 01;35
|
||||||
|
.avi 01;35
|
||||||
|
.fli 01;35
|
||||||
|
.flv 01;35
|
||||||
|
.gl 01;35
|
||||||
|
.dl 01;35
|
||||||
|
.xcf 01;35
|
||||||
|
.xwd 01;35
|
||||||
|
.yuv 01;35
|
||||||
|
.cgm 01;35
|
||||||
|
.emf 01;35
|
||||||
|
|
||||||
|
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
||||||
|
.axv 01;35
|
||||||
|
.anx 01;35
|
||||||
|
.ogv 01;35
|
||||||
|
.ogx 01;35
|
||||||
|
|
||||||
|
# Document files
|
||||||
|
.pdf 00;32
|
||||||
|
.ps 00;32
|
||||||
|
.txt 00;32
|
||||||
|
.patch 00;32
|
||||||
|
.diff 00;32
|
||||||
|
.log 00;32
|
||||||
|
.tex 00;32
|
||||||
|
.doc 00;32
|
||||||
|
|
||||||
|
# audio formats
|
||||||
|
.aac 00;36
|
||||||
|
.au 00;36
|
||||||
|
.flac 00;36
|
||||||
|
.m4a 00;36
|
||||||
|
.mid 00;36
|
||||||
|
.midi 00;36
|
||||||
|
.mka 00;36
|
||||||
|
.mp3 00;36
|
||||||
|
.mpc 00;36
|
||||||
|
.ogg 00;36
|
||||||
|
.ra 00;36
|
||||||
|
.wav 00;36
|
||||||
|
|
||||||
|
# http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions
|
||||||
|
.axa 00;36
|
||||||
|
.oga 00;36
|
||||||
|
.spx 00;36
|
||||||
|
.xspf 00;36
|
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 632 KiB |
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 380 KiB |
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 3.2 MiB |
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 548 KiB |
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 2.2 MiB |
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 31d63ea884e8ef56a40bed8771cdd8d3aec131f9
|
|
@ -0,0 +1,89 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# ~/.xinitrc
|
||||||
|
#
|
||||||
|
# Executed by startx (run your window manager from here)
|
||||||
|
|
||||||
|
userresources=$HOME/.Xresources
|
||||||
|
usermodmap=$HOME/.Xmodmap
|
||||||
|
sysresources=/etc/X11/xinit/.Xresources
|
||||||
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||||
|
|
||||||
|
#DEFAULT_SESSION=startkde
|
||||||
|
#GTK_THEME=Adwaita:dark
|
||||||
|
|
||||||
|
export DefaultImModule=fcitx
|
||||||
|
export GTK_IM_MODULE=fcitx
|
||||||
|
export QT_IM_MODULE=fcitx
|
||||||
|
export XMODIFIERS=@im=fcitx
|
||||||
|
export BROWSER="/usr/bin/qutebrowser"
|
||||||
|
|
||||||
|
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources
|
||||||
|
|
||||||
|
#export QT_QPA_PLATFORMTHEME="qt5ct"
|
||||||
|
#QT_STYLE_OVERRIDE=breeze
|
||||||
|
#DEFAULT_SESSION=gnstartkde
|
||||||
|
|
||||||
|
xset s off
|
||||||
|
xset -dpms
|
||||||
|
xset s noblank
|
||||||
|
|
||||||
|
# merge in defaults and keymaps
|
||||||
|
|
||||||
|
if [ -f $sysresources ]; then
|
||||||
|
xrdb -merge $sysresources
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $sysmodmap ]; then
|
||||||
|
xmodmap $sysmodmap
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$userresources" ]; then
|
||||||
|
xrdb -merge "$userresources"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "$usermodmap" ]; then
|
||||||
|
xmodmap "$usermodmap"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# start some nice programs
|
||||||
|
|
||||||
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||||
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||||
|
[ -x "$f" ] && . "$f"
|
||||||
|
done
|
||||||
|
unset f
|
||||||
|
fi
|
||||||
|
|
||||||
|
get_session(){
|
||||||
|
local dbus_args=(--sh-syntax --exit-with-session)
|
||||||
|
case $1 in
|
||||||
|
awesome) dbus_args+=(awesome) ;;
|
||||||
|
bspwm) dbus_args+=(bspwm-session) ;;
|
||||||
|
budgie) dbus_args+=(budgie-desktop) ;;
|
||||||
|
cinnamon) dbus_args+=(cinnamon-session) ;;
|
||||||
|
deepin) dbus_args+=(startdde) ;;
|
||||||
|
enlightenment) dbus_args+=(enlightenment_start) ;;
|
||||||
|
fluxbox) dbus_args+=(startfluxbox) ;;
|
||||||
|
gnome) dbus_args+=(gnome-session) ;;
|
||||||
|
i3|i3wm) dbus_args+=(i3 --shmlog-size 0) ;;
|
||||||
|
jwm) dbus_args+=(jwm) ;;
|
||||||
|
kde) dbus_args+=(startplasma-x11) ;;
|
||||||
|
lxde) dbus_args+=(startlxde) ;;
|
||||||
|
lxqt) dbus_args+=(lxqt-session) ;;
|
||||||
|
mate) dbus_args+=(mate-session) ;;
|
||||||
|
xfce) dbus_args+=(xfce4-session) ;;
|
||||||
|
openbox) dbus_args+=(openbox-session) ;;
|
||||||
|
*) dbus_args+=($DEFAULT_SESSION) ;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
echo "dbus-launch ${dbus_args[*]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
# Statusbar
|
||||||
|
#/home/$USER/dev/dwm-bar/dwm_bar.sh &
|
||||||
|
|
||||||
|
# Start dwm
|
||||||
|
#exec dwm
|
||||||
|
|
||||||
|
exec $(get_session "$1")
|
|
@ -0,0 +1,118 @@
|
||||||
|
# If you come from bash you might have to change your $PATH.
|
||||||
|
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
# Path to your oh-my-zsh installation.
|
||||||
|
export ZSH="/home/suwako/.oh-my-zsh"
|
||||||
|
|
||||||
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
|
export UPDATE_ZSH_DAYS=14
|
||||||
|
ZSH_CUSTOM_AUTOUPDATE_QUIET=true
|
||||||
|
|
||||||
|
export LC_ALL=ja_JP.UTF-8
|
||||||
|
export LANG=ja_JP.UTF-8
|
||||||
|
export LANGUAGE=ja_JP.UTF-8
|
||||||
|
|
||||||
|
export EDITOR="nvim"
|
||||||
|
|
||||||
|
alias g="git"
|
||||||
|
alias nr="npm run"
|
||||||
|
alias ni="npm i"
|
||||||
|
alias nig="npm i -g"
|
||||||
|
alias pas="php artisan serve"
|
||||||
|
|
||||||
|
export NVM_DIR="/home/suwako/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
|
|
||||||
|
# Set name of the theme to load --- if set to "random", it will
|
||||||
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||||
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||||
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
||||||
|
ZSH_THEME="agnoster"
|
||||||
|
|
||||||
|
# Set list of themes to pick from when loading at random
|
||||||
|
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||||
|
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
|
||||||
|
# If set to an empty array, this variable will have no effect.
|
||||||
|
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||||
|
|
||||||
|
# Uncomment the following line to use case-sensitive completion.
|
||||||
|
# CASE_SENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to use hyphen-insensitive completion.
|
||||||
|
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||||
|
# HYPHEN_INSENSITIVE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||||
|
# DISABLE_AUTO_UPDATE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to change how often to auto-update (in days).
|
||||||
|
# export UPDATE_ZSH_DAYS=13
|
||||||
|
|
||||||
|
# Uncomment the following line to disable colors in ls.
|
||||||
|
# DISABLE_LS_COLORS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to disable auto-setting terminal title.
|
||||||
|
# DISABLE_AUTO_TITLE="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to enable command auto-correction.
|
||||||
|
# ENABLE_CORRECTION="true"
|
||||||
|
|
||||||
|
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||||
|
# COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to disable marking untracked files
|
||||||
|
# under VCS as dirty. This makes repository status check for large repositories
|
||||||
|
# much, much faster.
|
||||||
|
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||||
|
|
||||||
|
# Uncomment the following line if you want to change the command execution time
|
||||||
|
# stamp shown in the history command output.
|
||||||
|
# You can set one of the optional three formats:
|
||||||
|
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||||
|
# or set a custom format using the strftime function format specifications,
|
||||||
|
# see 'man strftime' for details.
|
||||||
|
# HIST_STAMPS="mm/dd/yyyy"
|
||||||
|
|
||||||
|
# Would you like to use another custom folder than $ZSH/custom?
|
||||||
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||||
|
|
||||||
|
# Which plugins would you like to load?
|
||||||
|
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
|
||||||
|
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||||
|
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||||
|
# Add wisely, as too many plugins slow down shell startup.
|
||||||
|
plugins=(git)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
|
||||||
|
# export MANPATH="/usr/local/man:$MANPATH"
|
||||||
|
|
||||||
|
# You may need to manually set your language environment
|
||||||
|
# export LANG=en_US.UTF-8
|
||||||
|
|
||||||
|
# Preferred editor for local and remote sessions
|
||||||
|
# if [[ -n $SSH_CONNECTION ]]; then
|
||||||
|
# export EDITOR='vim'
|
||||||
|
# else
|
||||||
|
# export EDITOR='mvim'
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# Compilation flags
|
||||||
|
# export ARCHFLAGS="-arch x86_64"
|
||||||
|
|
||||||
|
# ssh
|
||||||
|
# export SSH_KEY_PATH="~/.ssh/rsa_id"
|
||||||
|
|
||||||
|
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||||
|
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||||
|
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||||
|
# For a full list of active aliases, run `alias`.
|
||||||
|
#
|
||||||
|
# Example aliases
|
||||||
|
# alias zshconfig="mate ~/.zshrc"
|
||||||
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
|
|
||||||
|
|
||||||
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
@ -0,0 +1,176 @@
|
||||||
|
必要な物
|
||||||
|
|
||||||
|
Artix
|
||||||
|
```
|
||||||
|
# 更新
|
||||||
|
sudo pacman -Syyu
|
||||||
|
|
||||||
|
# AUR を有効様にする
|
||||||
|
sudo pacman -S yay base-devel
|
||||||
|
|
||||||
|
# 基本のアプリ
|
||||||
|
yay -S curl git unzip unarchiver fish tor wget
|
||||||
|
|
||||||
|
# 入力
|
||||||
|
yay -S fcitx5 fcitx5-gtk fcitx5-qt fcitx5-mozc fcitx5-configtool fcitx5-table-other fcitx5-table-extra adobe-source-code-pro-fonts adobe-source-sans-fonts
|
||||||
|
|
||||||
|
# よく使うアプリ
|
||||||
|
yay -S qutebrowser neovim ranger pass pass-otp alacritty picom toot termshark vlc mpv conky gajim gajim-plugin-omemo gajim-plugin-urlimagepreview claws-mail claws-mail-themes clawsker newsboat w3m pcmanfm spectacle obs-studio wine winetricks wine-mono arandr weechat hexchat sxiv cmake freetype2 fontconfig pkg-config make libxcb libxkbcommon python zbar yt-dlp
|
||||||
|
|
||||||
|
# 必要はないですが、確かに好むかもしん
|
||||||
|
yay -S airshipper veloren-nightly-bin minetest minetest-common wyeb-git wyebadblock-git vimb kristall tor-browser geary gimp kdenlive krita proton protontricks
|
||||||
|
|
||||||
|
# i3の場合
|
||||||
|
yay -S i3-gaps i3lock polybar rofi scrot hsetroot xsettingsd
|
||||||
|
|
||||||
|
# swayの場合 sway swaylock waybar wofi wf-recorder grim wdisplays swaybg
|
||||||
|
|
||||||
|
# IceWMの場合
|
||||||
|
yay -S icewm scrot
|
||||||
|
```
|
||||||
|
|
||||||
|
Void
|
||||||
|
```
|
||||||
|
# 更新
|
||||||
|
sudo xbps-install -Su
|
||||||
|
|
||||||
|
# 基本のアプリ
|
||||||
|
sudo xbps-install -S curl git unzip unar fish-shell tor wget
|
||||||
|
|
||||||
|
# 入力
|
||||||
|
sudo xbps-install -S fcitx5 fcitx-gtk+2 fcitx5-gtk+3 fcitx5-gtk4 fcitx5-qt5 fcitx-qt6 fcitx5-mozc fcitx5-configtool fcitx5-table-other font-adobe-source-code-pro
|
||||||
|
|
||||||
|
# よく使うアプリ
|
||||||
|
sudo xbps-install -S qutebrowser neovim ranger pass pass-otp alacritty picom toot termshark vlc mpv conky gajim gajim-omemo claws-mail newsboat w3m pcmanfm spectacle obs wine winetricks wine-mono arandr weechat hexchat sxiv cmake freetype-devel expat-devel fontconfig-devel libxcb-devel pkg-config python3 zbar yt-dlp
|
||||||
|
|
||||||
|
# 必要はないですが、確かに好むかもしん
|
||||||
|
sudo xbps-install -S minetest vimb kristall torbrowser-launcher geary gimp kdenlive krita proton protontricks webkit2gtk-devel webkit2gtk perl-File-MimeInfo discount
|
||||||
|
|
||||||
|
wget https://github.com/veloren/airshipper/releases/latest/download/airshipper-linux.tar.gz
|
||||||
|
|
||||||
|
git clone https://github.com/jun7/wyeb.git
|
||||||
|
cd wyeb
|
||||||
|
make && sudo make install
|
||||||
|
|
||||||
|
# i3の場合
|
||||||
|
sudo xbps-install -S i3-gaps i3lock polybar rofi scrot hsetroot xsettingsd
|
||||||
|
|
||||||
|
# swayの場合
|
||||||
|
sudo xbps-install -S sway swaylock Waybar wofi wf-recorder grim wdisplays swaybg
|
||||||
|
|
||||||
|
# IceWMの場合
|
||||||
|
sudo xbps-install -S icewm xdgmenumaker scrot
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
Devuan
|
||||||
|
```
|
||||||
|
# 更新
|
||||||
|
sudo apt update && sudo apt upgrade && sudo apt autoremove
|
||||||
|
|
||||||
|
# 基本のアプリ
|
||||||
|
sudo apt install curl git unzip unarchiver fish wget
|
||||||
|
|
||||||
|
# 入力
|
||||||
|
sudo apt install fcitx5 fcitx5-frontend-gtk2 fcitx5-frontend-gtk3 fcitx5-frontend-qt5 fictx5-mozc fcitx5-config-qt fcitx5-table fcitx5-modules
|
||||||
|
# TODO: フォント
|
||||||
|
|
||||||
|
# よく使うアプリ
|
||||||
|
sudo apt install qutebrowser neovim ranger ranger pass picom toot termshark vlc mpc mpd conky gajim gajim-omemo gajim-plugininstaller gajim-appindicatorintegration gajim-plugininstaller gajim-urlimagepreview gajim-syntaxhighlight gajim-triggers claws-mail claws-mail-themes claws-mail-extra-plugins claws-mail-i18n claws-mail-plugins claws-mail-pgpmime claws-mail-tools newsboat w3m w3m-img pcmanfm kde-spectacle obs-studio wine winetricks arandr weechat weechat-curses weechat-core hexchat sxiv cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3 pass-extension-otp zbar-tools
|
||||||
|
# TODO: alacritty, yt-dlp
|
||||||
|
|
||||||
|
# 必要はないですが、確かに好むかもしん
|
||||||
|
sudo xbps-install -S minetest vimb kristall torbrowser-launcher geary gimp kdenlive krita proton protontricks libwebkit2gtk-4.0-dev discount libfile-mimeinfo-perl
|
||||||
|
|
||||||
|
sudo add-apt-repository ppa:frinksy/airshipper
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt install airshipper
|
||||||
|
|
||||||
|
git clone https://github.com/jun7/wyeb.git
|
||||||
|
cd wyeb
|
||||||
|
make && sudo make install
|
||||||
|
|
||||||
|
# i3の場合
|
||||||
|
sudo apt install i3-wm i3lock polybar rofi scrot hsetroot xsettingsd
|
||||||
|
|
||||||
|
# swayの場合
|
||||||
|
sudo apt install sway swaylock waybar wofi wf-recorder grim wdisplays swaybg
|
||||||
|
|
||||||
|
# IceWMの場合
|
||||||
|
sudo apt install icewm icewm-common scrot
|
||||||
|
```
|
||||||
|
|
||||||
|
その他便利なコマンド
|
||||||
|
```
|
||||||
|
# 天気予報、「tokyo」は自分の場所で交換して下さい
|
||||||
|
curl wttr.in/tokyo
|
||||||
|
|
||||||
|
# 仮想通貨の確認
|
||||||
|
## 1 モネロ→米ドル
|
||||||
|
curl rate.sx/1xmr
|
||||||
|
## モネロのグラフ
|
||||||
|
curl rate.sx/xmr
|
||||||
|
```
|
||||||
|
|
||||||
|
パッケージ一覧(アルファ順)
|
||||||
|
```
|
||||||
|
adobe-source-code-pro-fonts と adobe-source-sans-fonts # 日本文字フォント
|
||||||
|
airshipper # veloren用ラウンジャー
|
||||||
|
alacritty # ターミナル
|
||||||
|
arandr # 複数画面を持っている場合、簡単に画面を管理出来る
|
||||||
|
claws-mail # メールクライアント(plain textのみ)
|
||||||
|
conky # ステータスバー
|
||||||
|
curl # Curl
|
||||||
|
dmenu # i3用メニュー
|
||||||
|
fcitx5 # 日本語で入力出来るソフト
|
||||||
|
fish # シェル
|
||||||
|
gajim # XMPPクライアント
|
||||||
|
geary # メールクライアント(claws-mailと違いは、HTMLメールも対応です)
|
||||||
|
git # Git
|
||||||
|
gimp # 画像編集
|
||||||
|
hexchat # IRCクライエント
|
||||||
|
hsetroot # 背景を設定
|
||||||
|
i3-gaps # タイル方式のウィンドウマネージャ
|
||||||
|
i3lock # i3用ロック画面
|
||||||
|
i3-nagbar # i3用報告バー
|
||||||
|
icewm # 浮遊のウィンドウマネージャ
|
||||||
|
kdenlive # 画像編集(漫画家にオススメ)
|
||||||
|
kristall # geminiネットワーク用ブラウザ
|
||||||
|
krita # 動画編集
|
||||||
|
minetest # オープンソース系マインクラフトみたいなゲーム
|
||||||
|
mpv # 音楽・動画プレイヤー
|
||||||
|
neovim # テキストエディター(コマンドライン)
|
||||||
|
newsboat # RSSリーダー(コマンドライン)
|
||||||
|
obs-studio # 録画と配信ツール
|
||||||
|
pass # パスワードマネージャー(コマンドライン)
|
||||||
|
pass-otp # 2FAを使える
|
||||||
|
pcmanfm # ファイルマネージャー
|
||||||
|
picom # ウィンドウマネージャ
|
||||||
|
polybar # i3用状況バー
|
||||||
|
profanity # XMPPクライエント(コマンドライン)
|
||||||
|
proton # valve産wine
|
||||||
|
qutebrowser # ウェブブラウザ
|
||||||
|
ranger # ファイルマネージャー(コマンドライン)
|
||||||
|
rofi # アプリメニュー
|
||||||
|
scrot # スクリーンショットツール(X11のみ。Waylandの場合はgrimを使って下さい)
|
||||||
|
spectacle # スクリーンショットツール
|
||||||
|
termshark # ネットワークスキャン(wiresharkと同じですが、ターミナルで使える)
|
||||||
|
toot # mastodon、pleroma、misskey用クライアント(コマンドライン)
|
||||||
|
tor # 匿名ネットワーク
|
||||||
|
tor-browser # torネットワーク用ブラウザ
|
||||||
|
unzip # ZIPファイルを解凍出来るソフト
|
||||||
|
unarchiver # すべて解凍出来るソフト
|
||||||
|
veloren # マインクラフトみたいなMMORPGゲーム
|
||||||
|
viewnoir # 画像表示
|
||||||
|
vimb # qutebrowserみたいなブラウザ(firefoxベース)
|
||||||
|
vlc # 音楽・動画プレイヤー
|
||||||
|
w3m # ウェブブラウザ(コマンドライン、でも画像も表示出来る)
|
||||||
|
weechat # IRCクライアント(コマンドライン)
|
||||||
|
wine # Windowsアプリを使える
|
||||||
|
winetricks # 簡単にWindowsアプリ用ライブラリをインストール出来る
|
||||||
|
wtfutil # ダッシュボード(コマンドライン)
|
||||||
|
wttr # 天気予報
|
||||||
|
wyeb # qutebrowserみたいなブラウザ(firefoxベース)
|
||||||
|
xsettingsd
|
||||||
|
yay # AURヘルパー(Artix、Arch、Manjaroのみ)
|
||||||
|
```
|
読み込み中…
新しいイシューから参照