Compare commits
No commits in common. "main" and "wayland" have entirely different histories.
58
.config/.old/fish/bobthefish.config
Normal file
58
.config/.old/fish/bobthefish.config
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# _____ _
|
||||||
|
# _____ ___ |___ |__| |__ Swy7ch's fish shell config file
|
||||||
|
# / __\ \ /\ / / | | | / / __| '_ \
|
||||||
|
# \__ \\ V V /| |_| |/ / (__| | | |
|
||||||
|
# |___/ \_/\_/ \__, /_/ \___|_| |_|
|
||||||
|
# |___/
|
||||||
|
|
||||||
|
# Start X at login
|
||||||
|
if status is-login
|
||||||
|
if test -z "$DISPLAY" -a $XDG_VTNR = 1
|
||||||
|
exec startx -- -keeptty
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# True gruvbox colors in vim
|
||||||
|
#bash $HOME/.vim/plugins/gruvbox/gruvbox_256palette.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
function fish_greeting
|
||||||
|
set_color $fish_color_autosuggestion
|
||||||
|
uname -msr
|
||||||
|
|
||||||
|
command -s uptime >/dev/null
|
||||||
|
and uptime
|
||||||
|
|
||||||
|
set_color normal
|
||||||
|
end
|
||||||
|
|
||||||
|
# Set less colors (-> manpages)
|
||||||
|
set -xU LESS_TERMCAP_md (printf "\e[01;36m")
|
||||||
|
set -xU LESS_TERMCAP_me (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_se (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_so (printf "\e[01;44;33em")
|
||||||
|
set -xU LESS_TERMCAP_ue (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
|
||||||
|
|
||||||
|
#################################################
|
||||||
|
############### PROMPT CONFIG ################
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
# change colorscheme
|
||||||
|
set -g theme_color_scheme gruvbox
|
||||||
|
|
||||||
|
# show the name of the process in polybar
|
||||||
|
set -g theme_title_display_process yes
|
||||||
|
|
||||||
|
# set the right date formate
|
||||||
|
set -g theme_date_format "+%X"
|
||||||
|
|
||||||
|
# to use nerd fonts
|
||||||
|
# set -g theme_nerd_fonts yes
|
||||||
|
|
||||||
|
# do not alert untracked files in git
|
||||||
|
# set -g theme_display_git_untracked no
|
||||||
|
|
||||||
|
# changes to git glyphs
|
||||||
|
set -g git_plus_glyph \uF4A7 '' # PLUS
|
||||||
|
set -g git_minus_glyph \uF48B '' # MINUS
|
1
.config/.old/fish/completions/fisher.fish
Normal file
1
.config/.old/fish/completions/fisher.fish
Normal file
@ -0,0 +1 @@
|
|||||||
|
fisher complete
|
30
.config/.old/fish/config.fish
Normal file
30
.config/.old/fish/config.fish
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Swy7ch' config file for the FiSHell
|
||||||
|
|
||||||
|
# Start X at login
|
||||||
|
if status is-login
|
||||||
|
if test -z "$DISPLAY" -a $XDG_VTNR = 1
|
||||||
|
exec startx -- -keeptty
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# True gruvbox colors in vim
|
||||||
|
#bash $HOME/.vim/plugins/gruvbox/gruvbox_256palette.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
function fish_greeting
|
||||||
|
set_color $fish_color_autosuggestion
|
||||||
|
uname -msr
|
||||||
|
|
||||||
|
command -s uptime >/dev/null
|
||||||
|
and uptime
|
||||||
|
|
||||||
|
set_color normal
|
||||||
|
end
|
||||||
|
|
||||||
|
# Set less colors (-> manpages)
|
||||||
|
set -xU LESS_TERMCAP_md (printf "\e[01;36m")
|
||||||
|
set -xU LESS_TERMCAP_me (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_se (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_so (printf "\e[01;44;33em")
|
||||||
|
set -xU LESS_TERMCAP_ue (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
|
50
.config/.old/fish/fish_variables
Normal file
50
.config/.old/fish/fish_variables
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
# This file contains fish universal variable definitions.
|
||||||
|
# VERSION: 3.0
|
||||||
|
SETUVAR --export LESS_TERMCAP_md:\x1b\x5b01\x3b36m
|
||||||
|
SETUVAR --export LESS_TERMCAP_me:\x1b\x5b0m
|
||||||
|
SETUVAR --export LESS_TERMCAP_se:\x1b\x5b0m
|
||||||
|
SETUVAR --export LESS_TERMCAP_so:\x1b\x5b01\x3b44\x3b33em
|
||||||
|
SETUVAR --export LESS_TERMCAP_ue:\x1b\x5b0m
|
||||||
|
SETUVAR --export LESS_TERMCAP_us:\x1b\x5b01\x3b32m
|
||||||
|
SETUVAR __fish_init_2_39_8:\x1d
|
||||||
|
SETUVAR __fish_init_2_3_0:\x1d
|
||||||
|
SETUVAR __fish_init_3_x:\x1d
|
||||||
|
SETUVAR _fish_abbr_backup:sudo\x20/usr/local/bin/snapbackup\x2esh
|
||||||
|
SETUVAR _fish_abbr_gu:git\x20fetch\x20upstream\x20\x26\x26\x20git\x20merge\x20upstream/master
|
||||||
|
SETUVAR _fish_abbr_hs:htop\x20\x2du\x20swytch
|
||||||
|
SETUVAR _fish_abbr_nf:neofetch
|
||||||
|
SETUVAR _fish_abbr_pc:sudo\x20pacman\x20\x2dRsn\x20\x28pacman\x20\x2dQdtq\x29
|
||||||
|
SETUVAR _fish_abbr_pd:expac\x20\x2d\x2dtimefmt\x3d\x27\x25Y\x2d\x25m\x2d\x25d\x20\x25T\x27\x20\x27\x25l\x5ct\x25n\x27\x20\x7c\x20sort\x20\x7c\x20tail\x20\x2dn\x2020
|
||||||
|
SETUVAR _fish_abbr_rbup:sudo\x20rsync\x20\x2daAXv\x20\x2d\x2dexclude\x3d\x7b\x22/dev/\x2a\x22\x2c\x22/proc/\x2a\x22\x2c\x22/sys/\x2a\x22\x2c\x22/tmp/\x2a\x22\x2c\x22/run/\x2a\x22\x2c\x22/mnt/\x2a\x22\x2c\x22/media/\x2a\x22\x2c\x22/lost\x2bfound\x22\x2c\x22home\x22\x7d\x20/\x20/mnt/backup/root/
|
||||||
|
SETUVAR _fish_abbr_sdn:shutdown\x20now
|
||||||
|
SETUVAR _fish_abbr_um:unimatrix\x20\x2da\x20\x2df\x20\x2dc\x3dcyan\x20\x2ds\x3d95
|
||||||
|
SETUVAR _fish_abbr_untar:tar\x20zxvf
|
||||||
|
SETUVAR _fish_abbr_yayu:yay\x20\x2dSyu
|
||||||
|
SETUVAR fish_color_autosuggestion:969896
|
||||||
|
SETUVAR fish_color_cancel:normal
|
||||||
|
SETUVAR fish_color_command:afd75f
|
||||||
|
SETUVAR fish_color_comment:f0c674
|
||||||
|
SETUVAR fish_color_cwd:008000
|
||||||
|
SETUVAR fish_color_cwd_root:800000
|
||||||
|
SETUVAR fish_color_end:b294bb
|
||||||
|
SETUVAR fish_color_error:cc6666
|
||||||
|
SETUVAR fish_color_escape:00a6b2
|
||||||
|
SETUVAR fish_color_history_current:normal
|
||||||
|
SETUVAR fish_color_host:normal
|
||||||
|
SETUVAR fish_color_match:normal
|
||||||
|
SETUVAR fish_color_normal:normal
|
||||||
|
SETUVAR fish_color_operator:00a6b2
|
||||||
|
SETUVAR fish_color_param:f0c674
|
||||||
|
SETUVAR fish_color_quote:b294bb
|
||||||
|
SETUVAR fish_color_redirection:8abeb7
|
||||||
|
SETUVAR fish_color_search_match:ffff00
|
||||||
|
SETUVAR fish_color_selection:c0c0c0
|
||||||
|
SETUVAR fish_color_status:red
|
||||||
|
SETUVAR fish_color_user:00ff00
|
||||||
|
SETUVAR fish_color_valid_path:normal
|
||||||
|
SETUVAR fish_greeting:\x1d
|
||||||
|
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||||
|
SETUVAR fish_pager_color_completion:normal
|
||||||
|
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||||
|
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||||
|
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
1
.config/.old/fish/fishfile
Normal file
1
.config/.old/fish/fishfile
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
45
.config/.old/fish/functions/fish_prompt.fish
Normal file
45
.config/.old/fish/functions/fish_prompt.fish
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
# Options
|
||||||
|
#set __fish_git_prompt_showupstream "informative"
|
||||||
|
#set __fish_git_prompt_showdirtystate 1
|
||||||
|
#set __fish_git_prompt_showstashstate 1
|
||||||
|
#set __fish_git_prompt_showuntrackedfiles 1
|
||||||
|
set __fish_git_prompt_showcolorhints
|
||||||
|
set __fish_git_prompt_show_informative_status
|
||||||
|
|
||||||
|
# Colors
|
||||||
|
set green (set_color green)
|
||||||
|
set magenta (set_color magenta)
|
||||||
|
set normal (set_color normal)
|
||||||
|
set red (set_color red)
|
||||||
|
set yellow (set_color yellow)
|
||||||
|
|
||||||
|
set __fish_git_prompt_color_branch magenta --bold
|
||||||
|
set __fish_git_prompt_color_dirtystate white --bold
|
||||||
|
set __fish_git_prompt_color_stashstate magenta
|
||||||
|
set __fish_git_prompt_color_invalidstate red
|
||||||
|
set __fish_git_prompt_color_merging yellow
|
||||||
|
set __fish_git_prompt_color_stagedstate yellow
|
||||||
|
set __fish_git_prompt_color_upstream yellow --bold
|
||||||
|
|
||||||
|
# Icons
|
||||||
|
set __fish_git_prompt_char_cleanstate ' '
|
||||||
|
set __fish_git_prompt_char_invalidstate ' '
|
||||||
|
set __fish_git_prompt_char_dirtystate ' !'
|
||||||
|
set __fish_git_prompt_char_stagedstate ' '
|
||||||
|
set __fish_git_prompt_char_stashstate ' $'
|
||||||
|
set __fish_git_prompt_char_stateseparator ' |'
|
||||||
|
set __fish_git_prompt_char_untrackedfiles ' ?'
|
||||||
|
set __fish_git_prompt_char_upstream_ahead ' '
|
||||||
|
set __fish_git_prompt_char_upstream_behind ' '
|
||||||
|
set __fish_git_prompt_char_upstream_diverged ' 祈'
|
||||||
|
|
||||||
|
function fish_prompt
|
||||||
|
set last_status $status
|
||||||
|
|
||||||
|
set_color cyan --bold
|
||||||
|
printf '%s' (prompt_pwd)
|
||||||
|
set_color normal
|
||||||
|
|
||||||
|
printf '%s ' (__fish_git_prompt)
|
||||||
|
set_color normal
|
||||||
|
end
|
86
.config/.old/fish/spacefish.config
Normal file
86
.config/.old/fish/spacefish.config
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
# David JULIEN - GitLab@Swy7ch
|
||||||
|
# _____ _
|
||||||
|
# _____ ___ |___ |__| |__
|
||||||
|
# / __\ \ /\ / / | | | / / __| '_ \
|
||||||
|
# \__ \\ V V /| |_| |/ / (__| | | |
|
||||||
|
# |___/ \_/\_/ \__, /_/ \___|_| |_|
|
||||||
|
# |___/
|
||||||
|
|
||||||
|
# Start X at login
|
||||||
|
if status is-login
|
||||||
|
if test -z "$DISPLAY" -a $XDG_VTNR = 1
|
||||||
|
exec startx -- -keeptty
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
# True gruvbox colors in vim
|
||||||
|
#bash $HOME/.vim/plugins/gruvbox/gruvbox_256palette.sh
|
||||||
|
|
||||||
|
# User configuration
|
||||||
|
function fish_greeting
|
||||||
|
set_color $fish_color_autosuggestion
|
||||||
|
uname -msr
|
||||||
|
|
||||||
|
command -s uptime >/dev/null
|
||||||
|
and uptime
|
||||||
|
|
||||||
|
set_color normal
|
||||||
|
end
|
||||||
|
|
||||||
|
# Set less colors (-> manpages)
|
||||||
|
set -xU LESS_TERMCAP_md (printf "\e[01;36m")
|
||||||
|
set -xU LESS_TERMCAP_me (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_se (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_so (printf "\e[01;44;33em")
|
||||||
|
set -xU LESS_TERMCAP_ue (printf "\e[0m")
|
||||||
|
set -xU LESS_TERMCAP_us (printf "\e[01;32m")
|
||||||
|
|
||||||
|
# Set environment variables (user-wide)
|
||||||
|
export TERMINAL=st
|
||||||
|
|
||||||
|
#################################################
|
||||||
|
############### PROMPT CONFIG ################
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
# CHAR
|
||||||
|
|
||||||
|
set SPACEFISH_CHAR_SYMBOL ""
|
||||||
|
|
||||||
|
# TIME
|
||||||
|
|
||||||
|
set SPACEFISH_TIME_SHOW false
|
||||||
|
#set SPACEFISH_TIME_COLOR white
|
||||||
|
set SPACEFISH_TIME_SUFFIX " > "
|
||||||
|
|
||||||
|
# USER
|
||||||
|
|
||||||
|
set SPACEFISH_USER_SHOW never
|
||||||
|
set SPACEFISH_USER_PREFIX"" # remove `with` before username
|
||||||
|
set SPACEFISH_USER_COLOR yellow
|
||||||
|
|
||||||
|
# DIR
|
||||||
|
|
||||||
|
set SPACEFISH_DIR_TRUNC 0
|
||||||
|
set SPACEFISH_DIR_PREFIX ""
|
||||||
|
|
||||||
|
# HOST
|
||||||
|
|
||||||
|
# Result will look like this:
|
||||||
|
# username@:(hostname)
|
||||||
|
set SPACEFISH_HOST_PREFIX "@["
|
||||||
|
set SPACEFISH_HOST_SUFFIX "]"
|
||||||
|
set SPACEFISH_HOST_SHOW never
|
||||||
|
|
||||||
|
# GIT
|
||||||
|
|
||||||
|
# Get spaces from `[...]`
|
||||||
|
set SPACEFISH_GIT_SYMBOL " "
|
||||||
|
set SPACEFISH_GIT_STATUS_DELETED ""
|
||||||
|
set SPACEFISH_GIT_STATUS_AHEAD ""
|
||||||
|
set SPACEFISH_GIT_STATUS_BEHIND ""
|
||||||
|
set SPACEFISH_GIT_TRUNC 3
|
||||||
|
|
||||||
|
# JOBS
|
||||||
|
|
||||||
|
set SPACEFISH_JOBS_SYMBOL ""
|
||||||
|
|
205
.config/.old/i3/config
Normal file
205
.config/.old/i3/config
Normal file
@ -0,0 +1,205 @@
|
|||||||
|
# Swy7ch' config file for i3
|
||||||
|
|
||||||
|
# This file has been auto-generated by i3-config-wizard(1).
|
||||||
|
# It will not be overwritten, so edit it as you like.
|
||||||
|
#
|
||||||
|
# Should you change your keyboard layout some time, delete
|
||||||
|
# this file and re-run i3-config-wizard(1).
|
||||||
|
#
|
||||||
|
|
||||||
|
# i3 config file (v4)
|
||||||
|
#
|
||||||
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
|
|
||||||
|
set $super Mod4
|
||||||
|
set $alt Mod1
|
||||||
|
|
||||||
|
# Font for window titles. Will also be used by the bar unless a different font
|
||||||
|
# is used in the bar {} block below.
|
||||||
|
font pango: FuraCode Nerd Font Mono 10
|
||||||
|
|
||||||
|
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
||||||
|
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
||||||
|
#font pango:DejaVu Sans Mono 8
|
||||||
|
|
||||||
|
# Before i3 v4.8, we used to recommend this one as the default:
|
||||||
|
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
|
||||||
|
# The font above is very space-efficient, that is, it looks good, sharp and
|
||||||
|
# clear in small sizes. However, its unicode glyph coverage is limited, the old
|
||||||
|
# X core fonts rendering does not support right-to-left and this being a bitmap
|
||||||
|
# font, it doesn’t scale on retina/hidpi displays.
|
||||||
|
|
||||||
|
# Use Mouse+$super to drag floating windows to their wanted position
|
||||||
|
floating_modifier $super
|
||||||
|
|
||||||
|
# Execute at launch
|
||||||
|
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
||||||
|
exec_always --no-startup-id feh --bg-fill $HOME/.wallpaper.png
|
||||||
|
exec --no-startup-id compton --config $HOME/.config/compton/compton.conf
|
||||||
|
exec --no-startup-id xss-lock -- i3lock -n -i $HOME/.lockscreen.png
|
||||||
|
exec --no-startup-id redshift
|
||||||
|
exec --no-startup-id pamixer --set-volume 40
|
||||||
|
exec --no-startup-id setxkbmap 'fr(oss)'
|
||||||
|
# Trackpad settings
|
||||||
|
exec --no-startup-id xinput set-prop 13 'libinput Tapping Enabled' 1
|
||||||
|
exec --no-startup-id xinput set-prop 13 'libinput Natural Scrolling En abled' 1
|
||||||
|
# exec_always xinput --no-startup-id set-prop 13 'libinput Disable While Typing Enabled' 1
|
||||||
|
# Mouse acceleration
|
||||||
|
exec --no-startup-id xinput set-prop 13 'libinput Accel Speed' 0.4
|
||||||
|
|
||||||
|
# Common app launchers
|
||||||
|
bindsym $super+Return exec st;focus
|
||||||
|
bindsym $super+Shift+Return workspace 1;exec st;focus
|
||||||
|
bindsym $super+Shift+i workspace 1;exec st -e gotop;focus
|
||||||
|
bindsym $super+Shift+f workspace 1;exec st -e ranger;focus
|
||||||
|
bindsym $super+Shift+w exec qutebrowser;workspace 2; focus
|
||||||
|
bindsym $super+$alt+w exec firefox-beta;workspace 2;focus
|
||||||
|
bindsym $super+Shift+m workspace 2;exec st -e neomutt;focus
|
||||||
|
bindsym $super+Shift+n exec firefox-beta -private-window;workspace 2;focus
|
||||||
|
bindsym $super+Shift+c exec whatsie;workspace 4;focus
|
||||||
|
bindsym $super+Shift+p exec pavucontrol;workspace 5;focus
|
||||||
|
bindsym $super+Shift+s exec spotify;workspace 5; focus
|
||||||
|
|
||||||
|
# Control the audio
|
||||||
|
bindsym F3 exec pamixer --increase 7
|
||||||
|
bindsym F2 exec pamixer --decrease 7
|
||||||
|
bindsym F1 exec pamixer --toggle-mute
|
||||||
|
|
||||||
|
# Control display backlight
|
||||||
|
bindsym F6 exec xbacklight -inc 5
|
||||||
|
bindsym F5 exec xbacklight -dec 5
|
||||||
|
|
||||||
|
# kill focused window
|
||||||
|
bindsym $super+w kill
|
||||||
|
|
||||||
|
# start dmenu (a program launcher)
|
||||||
|
bindsym $super+d exec rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-supere -columns 3 -font 'FuraCode Nerd Font Mono 12' -theme purple
|
||||||
|
# There also is the (new) i3-dmenu-desktop which only displays applications
|
||||||
|
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
||||||
|
# installed.
|
||||||
|
# bindsym $super+d exec --no-startup-id i3-dmenu-desktop
|
||||||
|
|
||||||
|
# change focus
|
||||||
|
bindsym $super+h focus left
|
||||||
|
bindsym $super+j focus down
|
||||||
|
bindsym $super+k focus up
|
||||||
|
bindsym $super+l focus right
|
||||||
|
|
||||||
|
# move focused window
|
||||||
|
bindsym $super+Shift+h move left
|
||||||
|
bindsym $super+Shift+j move down
|
||||||
|
bindsym $super+Shift+k move up
|
||||||
|
bindsym $super+Shift+l move right
|
||||||
|
|
||||||
|
# split in horizontal orientation
|
||||||
|
bindsym $super+c split h
|
||||||
|
|
||||||
|
# split in vertical orientation
|
||||||
|
bindsym $super+v split v
|
||||||
|
|
||||||
|
# enter fullscreen supere for the focused container
|
||||||
|
bindsym $super+f fullscreen toggle
|
||||||
|
|
||||||
|
# change container layout (stacked, tabbed, toggle split)
|
||||||
|
bindsym $super+s layout stacking
|
||||||
|
bindsym $super+z layout tabbed
|
||||||
|
bindsym $super+e layout toggle split
|
||||||
|
|
||||||
|
# toggle tiling / floating
|
||||||
|
bindsym $super+Shift+space floating toggle
|
||||||
|
|
||||||
|
# change focus between tiling / floating windows
|
||||||
|
bindsym $super+space focus mode_toggle
|
||||||
|
|
||||||
|
# Define names for default workspaces for which we configure key bindings later on.
|
||||||
|
# We use variables to avoid repeating the names in multiple places.
|
||||||
|
set $ws1 "1"
|
||||||
|
set $ws2 "2"
|
||||||
|
set $ws3 "3"
|
||||||
|
set $ws4 "4"
|
||||||
|
set $ws5 "5"
|
||||||
|
set $ws6 "6"
|
||||||
|
set $ws7 "7"
|
||||||
|
set $ws8 "8"
|
||||||
|
set $ws9 "9"
|
||||||
|
set $ws10 "10"
|
||||||
|
|
||||||
|
# switch to workspace
|
||||||
|
bindsym $super+1 workspace $ws1
|
||||||
|
bindsym $super+2 workspace $ws2
|
||||||
|
bindsym $super+3 workspace $ws3
|
||||||
|
bindsym $super+4 workspace $ws4
|
||||||
|
bindsym $super+5 workspace $ws5
|
||||||
|
bindsym $super+6 workspace $ws6
|
||||||
|
bindsym $super+7 workspace $ws7
|
||||||
|
bindsym $super+8 workspace $ws8
|
||||||
|
bindsym $super+9 workspace $ws9
|
||||||
|
bindsym $super+0 workspace $ws10
|
||||||
|
|
||||||
|
# move focused container to workspace
|
||||||
|
bindsym $super+Shift+1 move container to workspace $ws1
|
||||||
|
bindsym $super+Shift+2 move container to workspace $ws2
|
||||||
|
bindsym $super+Shift+3 move container to workspace $ws3
|
||||||
|
bindsym $super+Shift+4 move container to workspace $ws4
|
||||||
|
bindsym $super+Shift+5 move container to workspace $ws5
|
||||||
|
bindsym $super+Shift+6 move container to workspace $ws6
|
||||||
|
bindsym $super+Shift+7 move container to workspace $ws7
|
||||||
|
bindsym $super+Shift+8 move container to workspace $ws8
|
||||||
|
bindsym $super+Shift+9 move container to workspace $ws9
|
||||||
|
bindsym $super+Shift+0 move container to workspace $ws10
|
||||||
|
|
||||||
|
# reload the configuration file
|
||||||
|
bindsym $super+Control+c reload
|
||||||
|
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
||||||
|
bindsym $super+Shift+r restart
|
||||||
|
# exit i3 (logs you out of your X session)
|
||||||
|
bindsym $super+q exec "i3-nagbar -t warning -m 'Do you want to exit i3?' -B 'Yes, exit i3' 'i3-msg exit'"
|
||||||
|
# lock the screen
|
||||||
|
bindsym $super+Control+l exec i3lock -n -i $HOME/Images/red_rocks.png
|
||||||
|
|
||||||
|
# resize window (you can also use the mouse for that)
|
||||||
|
mode "resize" {
|
||||||
|
# These bindings trigger as soon as you enter the resize supere
|
||||||
|
|
||||||
|
# Pressing left will shrink the window’s width.
|
||||||
|
# Pressing right will grow the window’s width.
|
||||||
|
# Pressing up will shrink the window’s height.
|
||||||
|
# Pressing down will grow the window’s height.
|
||||||
|
bindsym j resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym k resize grow height 10 px or 10 ppt
|
||||||
|
bindsym l resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym m resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# same bindings, but for the arrow keys
|
||||||
|
bindsym Left resize shrink width 10 px or 10 ppt
|
||||||
|
bindsym Down resize grow height 10 px or 10 ppt
|
||||||
|
bindsym Up resize shrink height 10 px or 10 ppt
|
||||||
|
bindsym Right resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
|
# back to normal: Enter or Escape or $super+r
|
||||||
|
bindsym Return supere "default"
|
||||||
|
bindsym Escape supere "default"
|
||||||
|
bindsym $super+r supere "default"
|
||||||
|
}
|
||||||
|
|
||||||
|
bindsym $super+r mode "resize"
|
||||||
|
|
||||||
|
# window rules, you can find the window class using xprop
|
||||||
|
for_window [class=".*"] border pixel 3
|
||||||
|
assign [class="Firefox Beta|Qutebrowser"] 2
|
||||||
|
assign [class="Inkscape"] 3
|
||||||
|
assign [class="Transmission"] 4
|
||||||
|
assign [class="Pavucontrol|Spotify|mpv"] 5
|
||||||
|
|
||||||
|
|
||||||
|
# colour of border, background, text, indicator, and child_border
|
||||||
|
client.focused #bf616a #2f343f #d8dee8 #b16286 #83a598
|
||||||
|
client.focused_inactive #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||||
|
client.unfocused #2f343f #2f343f #d8dee8 #2f343f #427b58
|
||||||
|
client.urgent #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||||
|
client.placeholder #2f343f #2f343f #d8dee8 #2f343f #2f343f
|
||||||
|
client.background #2f343f
|
||||||
|
|
||||||
|
# Gaps
|
||||||
|
gaps inner 5
|
||||||
|
gaps outer 5
|
765
.config/.old/neofetch/config.conf
Normal file
765
.config/.old/neofetch/config.conf
Normal file
@ -0,0 +1,765 @@
|
|||||||
|
# Swy7ch' config file for neofetch
|
||||||
|
|
||||||
|
# See this wiki page for more info:
|
||||||
|
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
|
||||||
|
print_info() {
|
||||||
|
prin
|
||||||
|
|
||||||
|
info title
|
||||||
|
info underline
|
||||||
|
|
||||||
|
info "OS" distro
|
||||||
|
#info "Host" model
|
||||||
|
info "Kernel" kernel
|
||||||
|
info "Uptime" uptime
|
||||||
|
info "Packages" packages
|
||||||
|
info "Shell" shell
|
||||||
|
#info "Resolution" resolution
|
||||||
|
#info "DE" de
|
||||||
|
info "WM" wm
|
||||||
|
info "WM Theme" wm_theme
|
||||||
|
# info "Theme" theme
|
||||||
|
# info "Icons" icons
|
||||||
|
info "Terminal" term
|
||||||
|
info "Terminal Font" term_font
|
||||||
|
#info "CPU" cpu
|
||||||
|
#info "GPU" gpu
|
||||||
|
info "Memory" memory
|
||||||
|
|
||||||
|
# info "GPU Driver" gpu_driver # Linux/macOS only
|
||||||
|
# info "CPU Usage" cpu_usage
|
||||||
|
# info "Disk" disk
|
||||||
|
# info "Battery" battery
|
||||||
|
# info "Font" font
|
||||||
|
# info "Song" song
|
||||||
|
# [[ $player ]] && prin "Music Player" "$player"
|
||||||
|
# info "Local IP" local_ip
|
||||||
|
# info "Public IP" public_ip
|
||||||
|
# info "Users" users
|
||||||
|
# info "Locale" locale # This only works on glibc systems.
|
||||||
|
|
||||||
|
info cols
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Kernel
|
||||||
|
|
||||||
|
|
||||||
|
# Shorten the output of the kernel function.
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --kernel_shorthand
|
||||||
|
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: '4.8.9-1-ARCH'
|
||||||
|
# off: 'Linux 4.8.9-1-ARCH'
|
||||||
|
kernel_shorthand="off"
|
||||||
|
|
||||||
|
|
||||||
|
# Distro
|
||||||
|
|
||||||
|
|
||||||
|
# Shorten the output of the distro function
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off', 'tiny'
|
||||||
|
# Flag: --distro_shorthand
|
||||||
|
# Supports: Everything except Windows and Haiku
|
||||||
|
distro_shorthand="off"
|
||||||
|
|
||||||
|
# Show/Hide OS Architecture.
|
||||||
|
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --os_arch
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'Arch Linux x86_64'
|
||||||
|
# off: 'Arch Linux'
|
||||||
|
os_arch="on"
|
||||||
|
|
||||||
|
|
||||||
|
# Uptime
|
||||||
|
|
||||||
|
|
||||||
|
# Shorten the output of the uptime function
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off', 'tiny'
|
||||||
|
# Flag: --uptime_shorthand
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: '2 days, 10 hours, 3 mins'
|
||||||
|
# off: '2 days, 10 hours, 3 minutes'
|
||||||
|
# tiny: '2d 10h 3m'
|
||||||
|
uptime_shorthand="on"
|
||||||
|
|
||||||
|
|
||||||
|
# Memory
|
||||||
|
|
||||||
|
|
||||||
|
# Show memory pecentage in output.
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --memory_percent
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: '1801MiB / 7881MiB (22%)'
|
||||||
|
# off: '1801MiB / 7881MiB'
|
||||||
|
memory_percent="off"
|
||||||
|
|
||||||
|
|
||||||
|
# Packages
|
||||||
|
|
||||||
|
|
||||||
|
# Show/Hide Package Manager names.
|
||||||
|
#
|
||||||
|
# Default: 'tiny'
|
||||||
|
# Values: 'on', 'tiny' 'off'
|
||||||
|
# Flag: --package_managers
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
|
||||||
|
# tiny: '908 (pacman, flatpak, snap)'
|
||||||
|
# off: '908'
|
||||||
|
package_managers="on"
|
||||||
|
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
|
||||||
|
|
||||||
|
# Show the path to $SHELL
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --shell_path
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: '/bin/bash'
|
||||||
|
# off: 'bash'
|
||||||
|
shell_path="on"
|
||||||
|
|
||||||
|
# Show $SHELL version
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --shell_version
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'bash 4.4.5'
|
||||||
|
# off: 'bash'
|
||||||
|
shell_version="on"
|
||||||
|
|
||||||
|
|
||||||
|
# CPU
|
||||||
|
|
||||||
|
|
||||||
|
# CPU speed type
|
||||||
|
#
|
||||||
|
# Default: 'bios_limit'
|
||||||
|
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
|
||||||
|
# Flag: --speed_type
|
||||||
|
# Supports: Linux with 'cpufreq'
|
||||||
|
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
|
||||||
|
speed_type="bios_limit"
|
||||||
|
|
||||||
|
# CPU speed shorthand
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'.
|
||||||
|
# Flag: --speed_shorthand
|
||||||
|
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'i7-6500U (4) @ 3.1GHz'
|
||||||
|
# off: 'i7-6500U (4) @ 3.100GHz'
|
||||||
|
speed_shorthand="off"
|
||||||
|
|
||||||
|
# Enable/Disable CPU brand in output.
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --cpu_brand
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'Intel i7-6500U'
|
||||||
|
# off: 'i7-6500U (4)'
|
||||||
|
cpu_brand="on"
|
||||||
|
|
||||||
|
# CPU Speed
|
||||||
|
# Hide/Show CPU speed.
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --cpu_speed
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'Intel i7-6500U (4) @ 3.1GHz'
|
||||||
|
# off: 'Intel i7-6500U (4)'
|
||||||
|
cpu_speed="on"
|
||||||
|
|
||||||
|
# CPU Cores
|
||||||
|
# Display CPU cores in output
|
||||||
|
#
|
||||||
|
# Default: 'logical'
|
||||||
|
# Values: 'logical', 'physical', 'off'
|
||||||
|
# Flag: --cpu_cores
|
||||||
|
# Support: 'physical' doesn't work on BSD.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
|
||||||
|
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
|
||||||
|
# off: 'Intel i7-6500U @ 3.1GHz'
|
||||||
|
cpu_cores="logical"
|
||||||
|
|
||||||
|
# CPU Temperature
|
||||||
|
# Hide/Show CPU temperature.
|
||||||
|
# Note the temperature is added to the regular CPU function.
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'C', 'F', 'off'
|
||||||
|
# Flag: --cpu_temp
|
||||||
|
# Supports: Linux, BSD
|
||||||
|
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
|
||||||
|
# coretemp kernel module. This only supports newer Intel processors.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
|
||||||
|
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
|
||||||
|
# off: 'Intel i7-6500U (4) @ 3.1GHz'
|
||||||
|
cpu_temp="off"
|
||||||
|
|
||||||
|
|
||||||
|
# GPU
|
||||||
|
|
||||||
|
|
||||||
|
# Enable/Disable GPU Brand
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --gpu_brand
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'AMD HD 7950'
|
||||||
|
# off: 'HD 7950'
|
||||||
|
gpu_brand="on"
|
||||||
|
|
||||||
|
# Which GPU to display
|
||||||
|
#
|
||||||
|
# Default: 'all'
|
||||||
|
# Values: 'all', 'dedicated', 'integrated'
|
||||||
|
# Flag: --gpu_type
|
||||||
|
# Supports: Linux
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# all:
|
||||||
|
# GPU1: AMD HD 7950
|
||||||
|
# GPU2: Intel Integrated Graphics
|
||||||
|
#
|
||||||
|
# dedicated:
|
||||||
|
# GPU1: AMD HD 7950
|
||||||
|
#
|
||||||
|
# integrated:
|
||||||
|
# GPU1: Intel Integrated Graphics
|
||||||
|
gpu_type="all"
|
||||||
|
|
||||||
|
|
||||||
|
# Resolution
|
||||||
|
|
||||||
|
|
||||||
|
# Display refresh rate next to each monitor
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --refresh_rate
|
||||||
|
# Supports: Doesn't work on Windows.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: '1920x1080 @ 60Hz'
|
||||||
|
# off: '1920x1080'
|
||||||
|
refresh_rate="on"
|
||||||
|
|
||||||
|
|
||||||
|
# Gtk Theme / Icons / Font
|
||||||
|
|
||||||
|
|
||||||
|
# Shorten output of GTK Theme / Icons / Font
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --gtk_shorthand
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'Numix, Adwaita'
|
||||||
|
# off: 'Numix [GTK2], Adwaita [GTK3]'
|
||||||
|
gtk_shorthand="off"
|
||||||
|
|
||||||
|
|
||||||
|
# Enable/Disable gtk2 Theme / Icons / Font
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --gtk2
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
||||||
|
# off: 'Adwaita [GTK3]'
|
||||||
|
gtk2="on"
|
||||||
|
|
||||||
|
# Enable/Disable gtk3 Theme / Icons / Font
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --gtk3
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'Numix [GTK2], Adwaita [GTK3]'
|
||||||
|
# off: 'Numix [GTK2]'
|
||||||
|
gtk3="on"
|
||||||
|
|
||||||
|
|
||||||
|
# IP Address
|
||||||
|
|
||||||
|
|
||||||
|
# Website to ping for the public IP
|
||||||
|
#
|
||||||
|
# Default: 'http://ident.me'
|
||||||
|
# Values: 'url'
|
||||||
|
# Flag: --ip_host
|
||||||
|
public_ip_host="http://ident.me"
|
||||||
|
|
||||||
|
# Public IP timeout.
|
||||||
|
#
|
||||||
|
# Default: '2'
|
||||||
|
# Values: 'int'
|
||||||
|
# Flag: --ip_timeout
|
||||||
|
public_ip_timeout=2
|
||||||
|
|
||||||
|
|
||||||
|
# Disk
|
||||||
|
|
||||||
|
|
||||||
|
# Which disks to display.
|
||||||
|
# The values can be any /dev/sdXX, mount point or directory.
|
||||||
|
# NOTE: By default we only show the disk info for '/'.
|
||||||
|
#
|
||||||
|
# Default: '/'
|
||||||
|
# Values: '/', '/dev/sdXX', '/path/to/drive'.
|
||||||
|
# Flag: --disk_show
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# disk_show=('/' '/dev/sdb1'):
|
||||||
|
# 'Disk (/): 74G / 118G (66%)'
|
||||||
|
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
|
||||||
|
#
|
||||||
|
# disk_show=('/'):
|
||||||
|
# 'Disk (/): 74G / 118G (66%)'
|
||||||
|
#
|
||||||
|
disk_show=('/')
|
||||||
|
|
||||||
|
# Disk subtitle.
|
||||||
|
# What to append to the Disk subtitle.
|
||||||
|
#
|
||||||
|
# Default: 'mount'
|
||||||
|
# Values: 'mount', 'name', 'dir'
|
||||||
|
# Flag: --disk_subtitle
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
|
||||||
|
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
|
||||||
|
#
|
||||||
|
# mount: 'Disk (/): 74G / 118G (66%)'
|
||||||
|
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
|
||||||
|
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
|
||||||
|
#
|
||||||
|
# dir: 'Disk (/): 74G / 118G (66%)'
|
||||||
|
# 'Disk (Local Disk): 74G / 118G (66%)'
|
||||||
|
# 'Disk (Videos): 74G / 118G (66%)'
|
||||||
|
disk_subtitle="mount"
|
||||||
|
|
||||||
|
|
||||||
|
# Song
|
||||||
|
|
||||||
|
|
||||||
|
# Manually specify a music player.
|
||||||
|
#
|
||||||
|
# Default: 'auto'
|
||||||
|
# Values: 'auto', 'player-name'
|
||||||
|
# Flag: --music_player
|
||||||
|
#
|
||||||
|
# Available values for 'player-name':
|
||||||
|
#
|
||||||
|
# amarok
|
||||||
|
# audacious
|
||||||
|
# banshee
|
||||||
|
# bluemindo
|
||||||
|
# clementine
|
||||||
|
# cmus
|
||||||
|
# deadbeef
|
||||||
|
# deepin-music
|
||||||
|
# dragon
|
||||||
|
# elisa
|
||||||
|
# exaile
|
||||||
|
# gnome-music
|
||||||
|
# gmusicbrowser
|
||||||
|
# guayadeque
|
||||||
|
# iTunes
|
||||||
|
# juk
|
||||||
|
# lollypop
|
||||||
|
# mocp
|
||||||
|
# mopidy
|
||||||
|
# mpd
|
||||||
|
# netease-cloud-music
|
||||||
|
# pogo
|
||||||
|
# pragha
|
||||||
|
# qmmp
|
||||||
|
# quodlibet
|
||||||
|
# rhythmbox
|
||||||
|
# sayonara
|
||||||
|
# smplayer
|
||||||
|
# spotify
|
||||||
|
# tomahawk
|
||||||
|
# vlc
|
||||||
|
# xmms2d
|
||||||
|
# yarock
|
||||||
|
music_player="auto"
|
||||||
|
|
||||||
|
# Format to display song information.
|
||||||
|
#
|
||||||
|
# Default: '%artist% - %album% - %title%'
|
||||||
|
# Values: '%artist%', '%album%', '%title%'
|
||||||
|
# Flag: --song_format
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# default: 'Song: Jet - Get Born - Sgt Major'
|
||||||
|
song_format="%artist% - %album% - %title%"
|
||||||
|
|
||||||
|
# Print the Artist, Album and Title on separate lines
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --song_shorthand
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# on: 'Artist: The Fratellis'
|
||||||
|
# 'Album: Costello Music'
|
||||||
|
# 'Song: Chelsea Dagger'
|
||||||
|
#
|
||||||
|
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
|
||||||
|
song_shorthand="off"
|
||||||
|
|
||||||
|
# 'mpc' arguments (specify a host, password etc).
|
||||||
|
#
|
||||||
|
# Default: ''
|
||||||
|
# Example: mpc_args=(-h HOST -P PASSWORD)
|
||||||
|
mpc_args=()
|
||||||
|
|
||||||
|
|
||||||
|
# Text Colors
|
||||||
|
|
||||||
|
|
||||||
|
# Text Colors
|
||||||
|
#
|
||||||
|
# Default: 'distro'
|
||||||
|
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
||||||
|
# Flag: --colors
|
||||||
|
#
|
||||||
|
# Each number represents a different part of the text in
|
||||||
|
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# colors=(distro) - Text is colored based on Distro colors.
|
||||||
|
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
|
||||||
|
colors=(9 15 15 15 15 15)
|
||||||
|
|
||||||
|
|
||||||
|
# Text Options
|
||||||
|
|
||||||
|
|
||||||
|
# Toggle bold text
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --bold
|
||||||
|
bold="on"
|
||||||
|
|
||||||
|
# Enable/Disable Underline
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --underline
|
||||||
|
underline_enabled="on"
|
||||||
|
|
||||||
|
# Underline character
|
||||||
|
#
|
||||||
|
# Default: '-'
|
||||||
|
# Values: 'string'
|
||||||
|
# Flag: --underline_char
|
||||||
|
underline_char="-"
|
||||||
|
|
||||||
|
|
||||||
|
# Info Separator
|
||||||
|
# Replace the default separator with the specified string.
|
||||||
|
#
|
||||||
|
# Default: ':'
|
||||||
|
# Flag: --separator
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# separator="->": 'Shell-> bash'
|
||||||
|
# separator=" =": 'WM = dwm'
|
||||||
|
separator=":"
|
||||||
|
|
||||||
|
|
||||||
|
# Color Blocks
|
||||||
|
|
||||||
|
|
||||||
|
# Color block range
|
||||||
|
# The range of colors to print.
|
||||||
|
#
|
||||||
|
# Default: '0', '7'
|
||||||
|
# Values: 'num'
|
||||||
|
# Flag: --block_range
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# Display colors 0-7 in the blocks. (8 colors)
|
||||||
|
# neofetch --block_range 0 7
|
||||||
|
#
|
||||||
|
# Display colors 0-15 in the blocks. (16 colors)
|
||||||
|
# neofetch --block_range 0 15
|
||||||
|
block_range=(0 15)
|
||||||
|
|
||||||
|
# Toggle color blocks
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --color_blocks
|
||||||
|
color_blocks="on"
|
||||||
|
|
||||||
|
# Color block width in spaces
|
||||||
|
#
|
||||||
|
# Default: '3'
|
||||||
|
# Values: 'num'
|
||||||
|
# Flag: --block_width
|
||||||
|
block_width=4
|
||||||
|
|
||||||
|
# Color block height in lines
|
||||||
|
#
|
||||||
|
# Default: '1'
|
||||||
|
# Values: 'num'
|
||||||
|
# Flag: --block_height
|
||||||
|
block_height=1
|
||||||
|
|
||||||
|
|
||||||
|
# Progress Bars
|
||||||
|
|
||||||
|
|
||||||
|
# Bar characters
|
||||||
|
#
|
||||||
|
# Default: '-', '='
|
||||||
|
# Values: 'string', 'string'
|
||||||
|
# Flag: --bar_char
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# neofetch --bar_char 'elapsed' 'total'
|
||||||
|
# neofetch --bar_char '-' '='
|
||||||
|
bar_char_elapsed="-"
|
||||||
|
bar_char_total="="
|
||||||
|
|
||||||
|
# Toggle Bar border
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --bar_border
|
||||||
|
bar_border="on"
|
||||||
|
|
||||||
|
# Progress bar length in spaces
|
||||||
|
# Number of chars long to make the progress bars.
|
||||||
|
#
|
||||||
|
# Default: '15'
|
||||||
|
# Values: 'num'
|
||||||
|
# Flag: --bar_length
|
||||||
|
bar_length=15
|
||||||
|
|
||||||
|
# Progress bar colors
|
||||||
|
# When set to distro, uses your distro's logo colors.
|
||||||
|
#
|
||||||
|
# Default: 'distro', 'distro'
|
||||||
|
# Values: 'distro', 'num'
|
||||||
|
# Flag: --bar_colors
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# neofetch --bar_colors 3 4
|
||||||
|
# neofetch --bar_colors distro 5
|
||||||
|
bar_color_elapsed="distro"
|
||||||
|
bar_color_total="distro"
|
||||||
|
|
||||||
|
|
||||||
|
# Info display
|
||||||
|
# Display a bar with the info.
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'bar', 'infobar', 'barinfo', 'off'
|
||||||
|
# Flags: --cpu_display
|
||||||
|
# --memory_display
|
||||||
|
# --battery_display
|
||||||
|
# --disk_display
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# bar: '[---=======]'
|
||||||
|
# infobar: 'info [---=======]'
|
||||||
|
# barinfo: '[---=======] info'
|
||||||
|
# off: 'info'
|
||||||
|
cpu_display="off"
|
||||||
|
memory_display="off"
|
||||||
|
battery_display="off"
|
||||||
|
disk_display="off"
|
||||||
|
|
||||||
|
|
||||||
|
# Backend Settings
|
||||||
|
|
||||||
|
|
||||||
|
# Image backend.
|
||||||
|
#
|
||||||
|
# Default: 'ascii'
|
||||||
|
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
|
||||||
|
# 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
|
||||||
|
# Flag: --backend
|
||||||
|
image_backend="ascii"
|
||||||
|
|
||||||
|
# Image Source
|
||||||
|
#
|
||||||
|
# Which image or ascii file to display.
|
||||||
|
#
|
||||||
|
# Default: 'auto'
|
||||||
|
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
|
||||||
|
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
|
||||||
|
# Flag: --source
|
||||||
|
#
|
||||||
|
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
|
||||||
|
# In ascii mode, distro ascii art will be used and in an image mode, your
|
||||||
|
# wallpaper will be used.
|
||||||
|
image_source="auto"
|
||||||
|
|
||||||
|
|
||||||
|
# Ascii Options
|
||||||
|
|
||||||
|
|
||||||
|
# Ascii distro
|
||||||
|
# Which distro's ascii art to display.
|
||||||
|
#
|
||||||
|
# Default: 'auto'
|
||||||
|
# Values: 'auto', 'distro_name'
|
||||||
|
# Flag: --ascii_distro
|
||||||
|
#
|
||||||
|
# NOTE: Arch and Ubuntu have 'old' logo variants.
|
||||||
|
# Change this to 'arch_old' or 'ubuntu_old' to use the old logos.
|
||||||
|
# NOTE: Ubuntu has flavor variants.
|
||||||
|
# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors.
|
||||||
|
# NOTE: Arch, Crux and Gentoo have a smaller logo variant.
|
||||||
|
# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos.
|
||||||
|
ascii_distro="arch_old"
|
||||||
|
|
||||||
|
# Ascii Colors
|
||||||
|
#
|
||||||
|
# Default: 'distro'
|
||||||
|
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
|
||||||
|
# Flag: --ascii_colors
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
|
||||||
|
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
|
||||||
|
ascii_colors=(2 2)
|
||||||
|
|
||||||
|
# Bold ascii logo
|
||||||
|
# Whether or not to bold the ascii logo.
|
||||||
|
#
|
||||||
|
# Default: 'on'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --ascii_bold
|
||||||
|
ascii_bold="on"
|
||||||
|
|
||||||
|
|
||||||
|
# Image Options
|
||||||
|
|
||||||
|
|
||||||
|
# Image loop
|
||||||
|
# Setting this to on will make neofetch redraw the image constantly until
|
||||||
|
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
|
||||||
|
#
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
# Flag: --loop
|
||||||
|
image_loop="off"
|
||||||
|
|
||||||
|
# Thumbnail directory
|
||||||
|
#
|
||||||
|
# Default: '~/.cache/thumbnails/neofetch'
|
||||||
|
# Values: 'dir'
|
||||||
|
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
|
||||||
|
|
||||||
|
# Crop mode
|
||||||
|
#
|
||||||
|
# Default: 'normal'
|
||||||
|
# Values: 'normal', 'fit', 'fill'
|
||||||
|
# Flag: --crop_mode
|
||||||
|
#
|
||||||
|
# See this wiki page to learn about the fit and fill options.
|
||||||
|
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
|
||||||
|
crop_mode="normal"
|
||||||
|
|
||||||
|
# Crop offset
|
||||||
|
# Note: Only affects 'normal' crop mode.
|
||||||
|
#
|
||||||
|
# Default: 'center'
|
||||||
|
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
|
||||||
|
# 'east', 'southwest', 'south', 'southeast'
|
||||||
|
# Flag: --crop_offset
|
||||||
|
crop_offset="center"
|
||||||
|
|
||||||
|
# Image size
|
||||||
|
# The image is half the terminal width by default.
|
||||||
|
#
|
||||||
|
# Default: 'auto'
|
||||||
|
# Values: 'auto', '00px', '00%', 'none'
|
||||||
|
# Flags: --image_size
|
||||||
|
# --size
|
||||||
|
image_size="auto"
|
||||||
|
|
||||||
|
# Gap between image and text
|
||||||
|
#
|
||||||
|
# Default: '3'
|
||||||
|
# Values: 'num', '-num'
|
||||||
|
# Flag: --gap
|
||||||
|
gap=3
|
||||||
|
|
||||||
|
# Image offsets
|
||||||
|
# Only works with the w3m backend.
|
||||||
|
#
|
||||||
|
# Default: '0'
|
||||||
|
# Values: 'px'
|
||||||
|
# Flags: --xoffset
|
||||||
|
# --yoffset
|
||||||
|
yoffset=0
|
||||||
|
xoffset=0
|
||||||
|
|
||||||
|
# Image background color
|
||||||
|
# Only works with the w3m backend.
|
||||||
|
#
|
||||||
|
# Default: ''
|
||||||
|
# Values: 'color', 'blue'
|
||||||
|
# Flag: --bg_color
|
||||||
|
background_color=
|
||||||
|
|
||||||
|
|
||||||
|
# Misc Options
|
||||||
|
|
||||||
|
# Stdout mode
|
||||||
|
# Turn off all colors and disables image backend (ASCII/Image).
|
||||||
|
# Useful for piping into another command.
|
||||||
|
# Default: 'off'
|
||||||
|
# Values: 'on', 'off'
|
||||||
|
stdout="off"
|
41
.config/.old/nvim_0.4.4/after/ftplugin/groff.vim
Normal file
41
.config/.old/nvim_0.4.4/after/ftplugin/groff.vim
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
" Author : swytch
|
||||||
|
" Created : 06/05/2020
|
||||||
|
" License : GPLv3
|
||||||
|
" Description : groff filetype config
|
||||||
|
|
||||||
|
inoremap <buffer> à \[`a]
|
||||||
|
inoremap <buffer> 'A \[`A]
|
||||||
|
inoremap <buffer> â \[^a]
|
||||||
|
inoremap <buffer> Â \[^A]
|
||||||
|
inoremap <buffer> ç \[,c]
|
||||||
|
inoremap <buffer> CC \[,C]
|
||||||
|
inoremap <buffer> é \['e]
|
||||||
|
inoremap <buffer> 'E \['E]
|
||||||
|
inoremap <buffer> è \[`e]
|
||||||
|
inoremap <buffer> ê \[^e]
|
||||||
|
inoremap <buffer> Ê \[^E]
|
||||||
|
inoremap <buffer> ï \[¨i]
|
||||||
|
inoremap <buffer> î \[^i]
|
||||||
|
inoremap <buffer> Î \[^I]
|
||||||
|
inoremap <buffer> oe \[oe]
|
||||||
|
inoremap <buffer> ô \[^o]
|
||||||
|
inoremap <buffer> Ô \[^O]
|
||||||
|
inoremap <buffer> û \[^u]
|
||||||
|
inoremap <buffer> ù \[`u]
|
||||||
|
" Unbreakable space before 'etc'
|
||||||
|
inoremap <buffer> <Space>etc \~etc.
|
||||||
|
" Unbreakable space before ':'
|
||||||
|
inoremap <buffer> <Space>: \~:
|
||||||
|
" Centered point
|
||||||
|
inoremap <buffer> .. \[u00B7]
|
||||||
|
" Italics
|
||||||
|
inoremap <buffer> II \*[IT]\*[PREV]<Esc>F\i
|
||||||
|
" Bold
|
||||||
|
inoremap <buffer> BB \*[BD]\*[PREV]<Esc>F\i
|
||||||
|
" Bold + Italics
|
||||||
|
inoremap <buffer> BI \*[BDI]\*[PREV]<Esc>F\i
|
||||||
|
" Real dashes
|
||||||
|
" - short one
|
||||||
|
inoremap <buffer> -- \[en]
|
||||||
|
" -- long one
|
||||||
|
inoremap <buffer> __ \[em]
|
11
.config/.old/nvim_0.4.4/after/ftplugin/python.vim
Normal file
11
.config/.old/nvim_0.4.4/after/ftplugin/python.vim
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
" Author : swytch
|
||||||
|
" Created : 06/05/2020
|
||||||
|
" License : GPLv3
|
||||||
|
" Description : python filetype config
|
||||||
|
|
||||||
|
" PEP8
|
||||||
|
set tabstop=4
|
||||||
|
set softtabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set textwidth=80
|
||||||
|
set expandtab
|
28
.config/.old/nvim_0.4.4/after/ftplugin/tex.vim
Normal file
28
.config/.old/nvim_0.4.4/after/ftplugin/tex.vim
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
" Author : swytch
|
||||||
|
" Created : 06/05/2020
|
||||||
|
" License : GPLv3
|
||||||
|
" Description : tex filetype config
|
||||||
|
|
||||||
|
" spellcheck enabled
|
||||||
|
setlocal spell spelllang=fr
|
||||||
|
|
||||||
|
" Caps
|
||||||
|
inoremap <buffer> AA À
|
||||||
|
inoremap <buffer> CC Ç
|
||||||
|
inoremap <buffer> EE É
|
||||||
|
" Unbreakable space before 'etc'
|
||||||
|
inoremap <buffer> <Space>etc \,etc.
|
||||||
|
" Unbreakable space before ':'
|
||||||
|
inoremap <buffer> <Space>: \,:
|
||||||
|
" Centered point
|
||||||
|
inoremap <buffer> .. \textperiodcentered
|
||||||
|
" But don't overreact
|
||||||
|
inoremap <buffer> ... ...
|
||||||
|
" Italics
|
||||||
|
inoremap <buffer> II \textit{}<Esc>i
|
||||||
|
" Bold
|
||||||
|
inoremap <buffer> BB \textbf{}<Esc>i
|
||||||
|
" Bold + Italics
|
||||||
|
inoremap <buffer> BI \textit{\textbf{}}<Esc>hi
|
||||||
|
" Smallcaps
|
||||||
|
inoremap <buffer> SC \fsc{}<Esc>i
|
8
.config/.old/nvim_0.4.4/after/ftplugin/text.vim
Normal file
8
.config/.old/nvim_0.4.4/after/ftplugin/text.vim
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
" Author : swytch
|
||||||
|
" Created : 06/05/2020
|
||||||
|
" License : GPLv3
|
||||||
|
" Description : text filetype config
|
||||||
|
|
||||||
|
setlocal spell spelllang=fr,en_us
|
||||||
|
set expandtab
|
||||||
|
noremap <leader><Enter> :w! \| :!sent % &<CR><CR>
|
6
.config/.old/nvim_0.4.4/after/ftplugin/verilog.vim
Normal file
6
.config/.old/nvim_0.4.4/after/ftplugin/verilog.vim
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
" Author : swytch
|
||||||
|
" Created : 06/05/2020
|
||||||
|
" License : GPLv3
|
||||||
|
" Description : verilog fietype config
|
||||||
|
|
||||||
|
noremap <leader><Enter> :w! \| :CoqRunToCursor<CR>
|
181
.config/.old/nvim_0.4.4/init.vim
Normal file
181
.config/.old/nvim_0.4.4/init.vim
Normal file
@ -0,0 +1,181 @@
|
|||||||
|
" Author : swytch
|
||||||
|
" Created : 06/05/2020
|
||||||
|
" License : GPLv3
|
||||||
|
" Description : My own personnal nvim configuration
|
||||||
|
|
||||||
|
"" Plugin stuff
|
||||||
|
|
||||||
|
" Vim-Plug
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Autoinstall Plug
|
||||||
|
if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
|
||||||
|
echo "Downloading junegunn/vim-plug"
|
||||||
|
silent !curl -fLo '~/.local/share/nvim/site/autoload/plug.vim' --create-dir \
|
||||||
|
'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||||
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Plugins will be downloaded under the specified directory
|
||||||
|
call plug#begin('$HOME/.config/nvim/plugged')
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
" Language highlighting packages
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
|
" Indentation guides
|
||||||
|
Plug 'nathanaelkane/vim-indent-guides'
|
||||||
|
|
||||||
|
" Colorscheme management
|
||||||
|
Plug 'lifepillar/vim-colortemplate'
|
||||||
|
|
||||||
|
" Neovim colorizer
|
||||||
|
Plug 'norcalli/nvim-colorizer.lua'
|
||||||
|
|
||||||
|
" Templates
|
||||||
|
Plug 'tibabit/vim-templates'
|
||||||
|
|
||||||
|
" All Plugins must be added before the following line
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
" Brief help
|
||||||
|
" :PlugInstall - installs plugins; append `!` to update or just :PluginUpdate
|
||||||
|
" :PlugUpdate - updates plugins
|
||||||
|
" :PlugUpgrade - upgrades vim-plug
|
||||||
|
" :PlugClean - confirms removal of unused plugins; append `!` to auto-approve removal
|
||||||
|
|
||||||
|
" Indent Guides
|
||||||
|
let g:indent_guides_enable_on_vim_startup=1
|
||||||
|
|
||||||
|
"" General
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Set vim update time (milliseconds)
|
||||||
|
set updatetime=250
|
||||||
|
|
||||||
|
" Detect filetypes plugins and indent rules
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
" Defining the <leader>
|
||||||
|
map <Space> <leader>
|
||||||
|
|
||||||
|
" Remove the pause when leaving insert mode
|
||||||
|
set ttimeoutlen=10
|
||||||
|
|
||||||
|
" No netrw history
|
||||||
|
let g:netrw_dirhistmax=0
|
||||||
|
|
||||||
|
"" User Interface
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Shows the current position
|
||||||
|
set number
|
||||||
|
|
||||||
|
" Shows line numbers relative to the cursor
|
||||||
|
set relativenumber
|
||||||
|
|
||||||
|
" A buffer becomes hidden when abandonned
|
||||||
|
set hid
|
||||||
|
|
||||||
|
" Shows matching brackets when cursor is over them
|
||||||
|
set showmatch
|
||||||
|
|
||||||
|
" Splits to the right
|
||||||
|
set splitright
|
||||||
|
|
||||||
|
" Prevents nvim from being customized by text files commands
|
||||||
|
set nomodeline
|
||||||
|
|
||||||
|
" GUI colors
|
||||||
|
set termguicolors
|
||||||
|
|
||||||
|
" Colorscheme
|
||||||
|
set background=dark
|
||||||
|
colorscheme polyjuice
|
||||||
|
|
||||||
|
" Change cursor behaviour when entering insert mode
|
||||||
|
let &t_SI.="\e[6 q" "SI = INSERT mode // steady bar
|
||||||
|
let &t_SR.="\e[4 q" "SR = REPLACE mode // underline
|
||||||
|
|
||||||
|
"" Text, tab and indent
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Do not use spaces instead of tabs
|
||||||
|
set noexpandtab
|
||||||
|
|
||||||
|
" 1 tab = 4 spaces
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
|
||||||
|
" Indent and wrap rules
|
||||||
|
set autoindent
|
||||||
|
|
||||||
|
" Formatting
|
||||||
|
set textwidth=80
|
||||||
|
autocmd FileType * setlocal formatoptions+=jpt
|
||||||
|
autocmd FileType * setlocal formatoptions-=ro
|
||||||
|
|
||||||
|
" Enable autocompletion
|
||||||
|
set wildmode=longest,full
|
||||||
|
|
||||||
|
" Automatically remove all trailing whitespaces on save
|
||||||
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
|
|
||||||
|
" To recognize groff filetype
|
||||||
|
au BufNewFile,BufRead *.mom set filetype=groff
|
||||||
|
|
||||||
|
" Always use LaTeX flavor
|
||||||
|
au BufNewFile,BufRead *.tex set filetype=tex
|
||||||
|
|
||||||
|
"" Status line
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
"Don't show editor mode
|
||||||
|
set noshowmode
|
||||||
|
|
||||||
|
source $XDG_CONFIG_HOME/nvim/statusline.vim
|
||||||
|
|
||||||
|
augroup statusline
|
||||||
|
autocmd!
|
||||||
|
autocmd VimEnter *
|
||||||
|
\ call UpdateInactiveWindows()
|
||||||
|
autocmd VimEnter,WinEnter,BufWinEnter *
|
||||||
|
\ call RefreshStatusLine('active')
|
||||||
|
autocmd WinLeave *
|
||||||
|
\ call RefreshStatusLine('inactive')
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
"" Misc
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Templates location
|
||||||
|
let g:tmpl_search_paths=['$XDG_CONFIG_HOME/nvim/templates']
|
||||||
|
|
||||||
|
"" Macros
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Source files
|
||||||
|
noremap <leader>s :source ~/.config/nvim/init.vim <CR>
|
||||||
|
|
||||||
|
" Circle through buffers
|
||||||
|
noremap <leader>n :bn<CR>
|
||||||
|
noremap <leader>b :bp<CR>
|
||||||
|
|
||||||
|
" Clear the search highlight
|
||||||
|
noremap <leader>h :nohl<CR>
|
||||||
|
|
||||||
|
" Make use of xclipboard
|
||||||
|
nnoremap <leader>v "+p
|
||||||
|
vnoremap <leader>c "+y
|
||||||
|
|
||||||
|
" Compile document
|
||||||
|
noremap <leader><Enter> :w! \| !compiler %<CR>
|
||||||
|
|
||||||
|
" Compile mom folder into pdf
|
||||||
|
noremap <leader>m :w! \| !mommerge<CR>
|
||||||
|
|
||||||
|
" Plugin management
|
||||||
|
noremap <leader>pi :PlugInstall<CR>
|
||||||
|
noremap <leader>pc :PlugClean<CR>
|
||||||
|
noremap <leader>pu :PlugUpdate \| PlugUpgrade<CR>
|
||||||
|
|
||||||
|
" Colorize
|
||||||
|
noremap <leader>cc :ColorizerToggle<CR>
|
||||||
|
|
||||||
|
" Template
|
||||||
|
noremap <leader>ti :TemplateInit<CR>
|
||||||
|
noremap <leader>te :TemplateExpand<CR>
|
10
.config/.old/nvim_0.4.4/spell/fr.utf-8.add
Normal file
10
.config/.old/nvim_0.4.4/spell/fr.utf-8.add
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
metadata
|
||||||
|
autrice
|
||||||
|
l'autrice
|
||||||
|
rice
|
||||||
|
Gaudé
|
||||||
|
Laurent
|
||||||
|
Kerangal
|
||||||
|
Maylis
|
||||||
|
d'Informatique
|
||||||
|
Andréas
|
133
.config/.old/nvim_0.4.4/statusline.vim
Normal file
133
.config/.old/nvim_0.4.4/statusline.vim
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
" Author : swytch
|
||||||
|
" Created : 08/05/2020
|
||||||
|
" License : GPLv3
|
||||||
|
" Description : My own personnal statusline script
|
||||||
|
|
||||||
|
function! CurrentMode()
|
||||||
|
let g:currentmode={
|
||||||
|
\ 'n' : '[ NRM ]',
|
||||||
|
\ 'v' : '[ VIS ]',
|
||||||
|
\ 'V' : '[ V·L ]',
|
||||||
|
\ '' : '[ V·B ]',
|
||||||
|
\ 'i' : '[ INS ]',
|
||||||
|
\ 'R' : '[ RPL ]',
|
||||||
|
\ 'Rv' : '[ V·R ]',
|
||||||
|
\ 'c' : '[ CMD ]',
|
||||||
|
\}
|
||||||
|
|
||||||
|
return g:currentmode[mode()]
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! ModeColor()
|
||||||
|
let g:modecolor={
|
||||||
|
\ 'n' : '%#NormalMode#',
|
||||||
|
\ 'v' : '%#VisualMode#',
|
||||||
|
\ 'V' : '%#VisualMode#',
|
||||||
|
\ '' : '%#VisualMode#',
|
||||||
|
\ 'i' : '%#InsertMode#',
|
||||||
|
\ 'R' : '%#ReplaceMode#',
|
||||||
|
\ 'Rv' : '%#ReplaceMode#',
|
||||||
|
\ 'c' : '%#CommandMode#',
|
||||||
|
\}
|
||||||
|
|
||||||
|
return g:modecolor[mode()]
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! FileName()
|
||||||
|
let g:name=' '
|
||||||
|
if winwidth(0)>90
|
||||||
|
let g:name.='%F'
|
||||||
|
else
|
||||||
|
let g:name.='%t'
|
||||||
|
endif
|
||||||
|
|
||||||
|
return g:name
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! StatusLine()
|
||||||
|
let l:statusline=''
|
||||||
|
|
||||||
|
" Buffer number
|
||||||
|
let l:statusline.='%#Buffer#'
|
||||||
|
let l:statusline.='[%n]'
|
||||||
|
|
||||||
|
" Show current mode
|
||||||
|
let l:statusline.=ModeColor()
|
||||||
|
let l:statusline.=CurrentMode().'%*'
|
||||||
|
|
||||||
|
" File path, absolute or relative to ~/
|
||||||
|
let l:statusline.='%#File#'
|
||||||
|
let l:statusline.=FileName()
|
||||||
|
|
||||||
|
" File status
|
||||||
|
let l:statusline .= "%{&readonly?' [RO]':''}"
|
||||||
|
let l:statusline .= "%{&modified?' [MO]':''}"
|
||||||
|
|
||||||
|
" Truncate line here
|
||||||
|
let l:statusline.='%<'
|
||||||
|
|
||||||
|
" Separation point between left and right aligned items.
|
||||||
|
let l:statusline.='%=%* '
|
||||||
|
|
||||||
|
let l:statusline.='%#SpellLocal#'
|
||||||
|
let l:statusline.="%{&spell?'[SPELL] ':''}%*"
|
||||||
|
|
||||||
|
" Filetype
|
||||||
|
let l:statusline.='%#FileType#'
|
||||||
|
let l:statusline.="%{&filetype!=#''?&filetype.' ':'no ft '}%*"
|
||||||
|
|
||||||
|
" Encoding & Fileformat
|
||||||
|
"let l:statusline.='%#WarningMsg#'
|
||||||
|
"let l:statusline.="%{&fileencoding!='utf-8'?'['.&fileencoding.'] ':''}%*"
|
||||||
|
|
||||||
|
" Depth
|
||||||
|
let l:statusline.='%#Percent#'
|
||||||
|
let l:statusline.='%03.p%%%* '
|
||||||
|
|
||||||
|
" Location of cursor in line
|
||||||
|
let l:statusline.='%#Column#'
|
||||||
|
let l:statusline.='-%03.c-'
|
||||||
|
|
||||||
|
return l:statusline
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! StatusLineNC()
|
||||||
|
let l:statusline=''
|
||||||
|
|
||||||
|
" Buffer number
|
||||||
|
let l:statusline.='[%n]'
|
||||||
|
|
||||||
|
" File name and status
|
||||||
|
let l:statusline.=' %t'
|
||||||
|
|
||||||
|
let l:statusline .= "%{&readonly?' [RO]':''}"
|
||||||
|
let l:statusline .= "%{&modified?' [MO]':''}"
|
||||||
|
|
||||||
|
" Truncate line here
|
||||||
|
let l:statusline.='%<'
|
||||||
|
|
||||||
|
" Separation point between left and right aligned items.
|
||||||
|
let l:statusline.='%='
|
||||||
|
|
||||||
|
" Depth
|
||||||
|
let l:statusline.='%#Percent#'
|
||||||
|
let l:statusline.=' %03.p%%'
|
||||||
|
|
||||||
|
return l:statusline
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! UpdateInactiveWindows()
|
||||||
|
for winnum in range(1, winnr('$'))
|
||||||
|
if winnum != winnr()
|
||||||
|
call setwinvar(winnum, '&statusline', '%!StatusLineNC()')
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! RefreshStatusLine(mode)
|
||||||
|
if a:mode == "active"
|
||||||
|
setlocal statusline=%!StatusLine()
|
||||||
|
else
|
||||||
|
setlocal statusline=%!StatusLineNC()
|
||||||
|
endif
|
||||||
|
endfunction
|
10
.config/.old/nvim_0.4.4/templates/c.template
Normal file
10
.config/.old/nvim_0.4.4/templates/c.template
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @author : {{NAME}} ({{EMAIL}})
|
||||||
|
* @file : {{FILE}}
|
||||||
|
* @license : {{LICENSE}}
|
||||||
|
* @created : {{TIMESTAMP}}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "{{FILE}}.h"
|
||||||
|
|
||||||
|
{{CURSOR}}
|
17
.config/.old/nvim_0.4.4/templates/cpp.template
Normal file
17
.config/.old/nvim_0.4.4/templates/cpp.template
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/**
|
||||||
|
* @author : {{NAME}} ({{EMAIL}})
|
||||||
|
* @file : {{FILE}}
|
||||||
|
* @license : {{LICENSE}}
|
||||||
|
* @created : {{TIMESTAMP}}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "{{FILE}}.hpp"
|
||||||
|
|
||||||
|
{{CAMEL_CLASS}}::{{CAMEL_CLASS}}()
|
||||||
|
{
|
||||||
|
{{CURSOR}}
|
||||||
|
}
|
||||||
|
|
||||||
|
{{CAMEL_CLASS}}::~{{CAMEL_CLASS}}()
|
||||||
|
{
|
||||||
|
}
|
15
.config/.old/nvim_0.4.4/templates/h.template
Normal file
15
.config/.old/nvim_0.4.4/templates/h.template
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
/**
|
||||||
|
* @author : {{NAME}} ({{EMAIL}})
|
||||||
|
* @file : {{FILE}}
|
||||||
|
* @license : {{LICENSE}}
|
||||||
|
* @created : {{TIMESTAMP}}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef {{MACRO_GUARD}}
|
||||||
|
|
||||||
|
#define {{MACRO_GUARD}}
|
||||||
|
|
||||||
|
{{CURSOR}}
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* end of include guard {{MACRO_GUARD}} */
|
22
.config/.old/nvim_0.4.4/templates/hpp.template
Normal file
22
.config/.old/nvim_0.4.4/templates/hpp.template
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/**
|
||||||
|
* @author : {{NAME}} ({{EMAIL}})
|
||||||
|
* @file : {{FILE}}
|
||||||
|
* @license : {{LICENSE}}
|
||||||
|
* @created : {{TIMESTAMP}}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef {{MACRO_GUARD}}
|
||||||
|
|
||||||
|
#define {{MACRO_GUARD}}
|
||||||
|
|
||||||
|
|
||||||
|
class {{CAMEL_CLASS}}
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
{{CAMEL_CLASS}}({{CURSOR}});
|
||||||
|
virtual ~{{CAMEL_CLASS}}();
|
||||||
|
private:
|
||||||
|
/* private data */
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* end of include guard {{MACRO_GUARD}} */
|
14
.config/.old/nvim_0.4.4/templates/main.c.template
Normal file
14
.config/.old/nvim_0.4.4/templates/main.c.template
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* @author : {{NAME}} ({{EMAIL}})
|
||||||
|
* @file : {{FILE}}
|
||||||
|
* @license : {{LICENSE}}
|
||||||
|
* @created : {{TIMESTAMP}}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
{{CURSOR}}
|
||||||
|
return 0;
|
||||||
|
}
|
14
.config/.old/nvim_0.4.4/templates/main.cpp.template
Normal file
14
.config/.old/nvim_0.4.4/templates/main.cpp.template
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/**
|
||||||
|
* @author : {{NAME}} ({{EMAIL}})
|
||||||
|
* @file : {{FILE}}
|
||||||
|
* @license : {{LICENSE}}
|
||||||
|
* @created : {{TIMESTAMP}}
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
{{CURSOR}}
|
||||||
|
return 0;
|
||||||
|
}
|
28
.config/.old/nvim_0.4.4/templates/makefile.template
Normal file
28
.config/.old/nvim_0.4.4/templates/makefile.template
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
######################################################################
|
||||||
|
# @author : {{NAME}} ({{EMAIL}})
|
||||||
|
# @file : {{FILE}}
|
||||||
|
# @license : {{LICENSE}}
|
||||||
|
# @created : {{TIMESTAMP}}
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
IDIR =./include
|
||||||
|
CC=gcc
|
||||||
|
CFLAGS=-I$(IDIR)
|
||||||
|
|
||||||
|
ODIR=obj
|
||||||
|
|
||||||
|
LIBS=
|
||||||
|
|
||||||
|
_OBJ = main.o {{CURSOR}}
|
||||||
|
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))
|
||||||
|
|
||||||
|
$(ODIR)/%.o: %.c
|
||||||
|
$(CC) -c -o $@ $< $(CFLAGS)
|
||||||
|
|
||||||
|
main: $(OBJ)
|
||||||
|
$(CC) -o $@ $^ $(CFLAGS) $(LIBS)
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(ODIR)/*.o
|
11
.config/.old/nvim_0.4.4/templates/py.template
Normal file
11
.config/.old/nvim_0.4.4/templates/py.template
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#! /usr/bin/env python
|
||||||
|
#
|
||||||
|
# @author : {{NAME}} ({{EMAIL}})
|
||||||
|
# @file : {{FILE}}
|
||||||
|
# @license : {{LICENSE}}
|
||||||
|
# @created : {{TIMESTAMP}}
|
||||||
|
#
|
||||||
|
|
||||||
|
"""
|
||||||
|
{{CURSOR}}
|
||||||
|
"""
|
12
.config/.old/nvim_0.4.4/templates/sh.template
Normal file
12
.config/.old/nvim_0.4.4/templates/sh.template
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
# @author : {{NAME}} ({{EMAIL}})
|
||||||
|
# @file : {{FILE}}
|
||||||
|
# @license : {{LICENSE}}
|
||||||
|
# @created : {{TIMESTAMP}}
|
||||||
|
#
|
||||||
|
# @description : {{CURSOR}}
|
||||||
|
######################################################################
|
||||||
|
|
||||||
|
|
4
.config/.old/nvim_0.4.4/templates/vim.template
Normal file
4
.config/.old/nvim_0.4.4/templates/vim.template
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
" Author : {{NAME}}
|
||||||
|
" Created : {{TODAY}}
|
||||||
|
" License : {{LICENSE}}
|
||||||
|
" Description : {{CURSOR}}
|
293
.config/.old/polybar/config
Normal file
293
.config/.old/polybar/config
Normal file
@ -0,0 +1,293 @@
|
|||||||
|
; Swy7ch' config file for polybar
|
||||||
|
;==========================================================
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||||
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||||
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||||
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||||
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||||
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; To learn more about how to configure Polybar
|
||||||
|
; go to https://github.com/jaagr/polybar
|
||||||
|
;
|
||||||
|
; The README contains alot of information
|
||||||
|
;
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
background = #171717
|
||||||
|
background-alt = #383838
|
||||||
|
foreground = #ebdbb2
|
||||||
|
foreground-alt = #d3869b
|
||||||
|
primary = #427b58
|
||||||
|
secondary = #d3869b
|
||||||
|
alert = #751715
|
||||||
|
|
||||||
|
;background = ${xrdb:color0:#222}
|
||||||
|
;background-alt = ${xrdb:color0:#222}
|
||||||
|
;foreground = ${xrdb:color7:#222}
|
||||||
|
;foreground-alt = ${xrdb:color7:#222}
|
||||||
|
;primary = ${xrdb:color1:#222}
|
||||||
|
;secondary = ${xrdb:color2:#222}
|
||||||
|
;alert = ${xrdb:color3:#222}
|
||||||
|
|
||||||
|
[bar/top]
|
||||||
|
dpi = 210
|
||||||
|
width = 100%
|
||||||
|
height = 35
|
||||||
|
radius = 0.0
|
||||||
|
fixed-center = true
|
||||||
|
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
line-size = 5
|
||||||
|
line-color = #f00
|
||||||
|
|
||||||
|
border-size = 0
|
||||||
|
border-color = #00000000
|
||||||
|
|
||||||
|
padding-left = 0
|
||||||
|
padding-right = 3
|
||||||
|
|
||||||
|
module-margin-left = 2
|
||||||
|
module-margin-right = 1
|
||||||
|
|
||||||
|
font-0 = "Fira Code:style=Regular:size=8:antialias=true;4"
|
||||||
|
font-1 = "FuraCode Nerd Font Mono:style=Regular:size=9:antialias=true;4"
|
||||||
|
|
||||||
|
modules-left = i3 xwindow
|
||||||
|
modules-right = xkeyboard alsa xbacklight network battery date
|
||||||
|
|
||||||
|
tray-position = right
|
||||||
|
tray-padding = 0
|
||||||
|
|
||||||
|
wm-restack = i3
|
||||||
|
|
||||||
|
;override-redirect = true
|
||||||
|
|
||||||
|
;scroll-up = i3wm-wsprev
|
||||||
|
;scroll-down = i3wm-wsnext
|
||||||
|
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
################################################################################
|
||||||
|
################################ MODULES ####################################
|
||||||
|
################################################################################
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
[module/xwindow]
|
||||||
|
type = internal/xwindow
|
||||||
|
label = %title:0:56:...%
|
||||||
|
|
||||||
|
[module/xkeyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
blacklist-0 = num lock
|
||||||
|
|
||||||
|
label-layout =
|
||||||
|
label-layout-underline = ${colors.primary}
|
||||||
|
|
||||||
|
label-indicator-padding = 1
|
||||||
|
label-indicator-margin = 0
|
||||||
|
label-indicator-foreground = ${colors.foreground}
|
||||||
|
label-indicator-background = ${colors.primary}
|
||||||
|
label-indicator-underline = ${colors.primary}
|
||||||
|
|
||||||
|
[module/i3]
|
||||||
|
type = internal/i3
|
||||||
|
format = <label-state> <label-mode> //
|
||||||
|
index-sort = true
|
||||||
|
wrapping-scroll = true
|
||||||
|
strip-wsnumbers = true
|
||||||
|
|
||||||
|
ws-icon-0 = 1;
|
||||||
|
ws-icon-1 = 2;
|
||||||
|
ws-icon-2 = 3;
|
||||||
|
ws-icon-3 = 4;
|
||||||
|
ws-icon-4 = 5;
|
||||||
|
ws-icon-5 = 6;調
|
||||||
|
ws-icon-default =
|
||||||
|
;
|
||||||
|
|
||||||
|
label-focused = %index% %icon%
|
||||||
|
label-focused-background = ${colors.background-alt}
|
||||||
|
label-focused-underline = ${colors.primary}
|
||||||
|
label-focused-padding = 1
|
||||||
|
|
||||||
|
label-unfocused = %index% %icon%
|
||||||
|
label-unfocused-padding = 1
|
||||||
|
|
||||||
|
label-visible = V %icon%
|
||||||
|
label-visible-background = ${self.label-focused-background}
|
||||||
|
label-visible-underline = ${self.label-focused-background}
|
||||||
|
label-visible-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
|
label-urgent = %index% %icon%
|
||||||
|
label-urgent-background = ${colors.alert}
|
||||||
|
label-urgent-padding = 2
|
||||||
|
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
;alt : 勞
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #00000000
|
||||||
|
label = %percentage:2%%
|
||||||
|
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 2
|
||||||
|
format-prefix = "兩 "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #00000000
|
||||||
|
label = %percentage_used%%
|
||||||
|
|
||||||
|
[module/network]
|
||||||
|
type = internal/network
|
||||||
|
interface = wlp4s0
|
||||||
|
interval = 2.0
|
||||||
|
|
||||||
|
format-connected = <ramp-signal> <label-connected>
|
||||||
|
format-connected-underline = #00000000
|
||||||
|
label-connected = "%essid%"
|
||||||
|
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
format-disconnected-underline = ${colors.alert}
|
||||||
|
label-disconnected = xx.xx.xx.xx
|
||||||
|
label-disconnected-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
ramp-signal-0 =
|
||||||
|
ramp-signal-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
interval = 1
|
||||||
|
|
||||||
|
date = "%a. %d/%m"
|
||||||
|
date-alt = "%Y-%m-%d"
|
||||||
|
|
||||||
|
time = " %I:%M %p"
|
||||||
|
time-alt = " %H:%M:%S"
|
||||||
|
|
||||||
|
format-prefix =
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
format-underline = #00000000
|
||||||
|
|
||||||
|
label = %time% | %date%
|
||||||
|
|
||||||
|
[module/temperature]
|
||||||
|
type = internal/temperature
|
||||||
|
thermal-zone = 0
|
||||||
|
warn-temperature = 70
|
||||||
|
|
||||||
|
format = <ramp> <label>
|
||||||
|
format-underline = #00000000
|
||||||
|
format-warn = <ramp> <label-warn>
|
||||||
|
format-warn-underline = ${self.format-underline}
|
||||||
|
|
||||||
|
label = %temperature-c%
|
||||||
|
label-warn = %temperature-c%
|
||||||
|
label-warn-foreground = ${colors.foreground}
|
||||||
|
label-warn-background = ${colors.alert}
|
||||||
|
label-warn-padding = 2
|
||||||
|
|
||||||
|
ramp-0 =
|
||||||
|
ramp-1 =
|
||||||
|
ramp-2 =
|
||||||
|
ramp-3 =
|
||||||
|
ramp-4 =
|
||||||
|
ramp-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
[module/xbacklight]
|
||||||
|
type = internal/xbacklight
|
||||||
|
|
||||||
|
format = <label>
|
||||||
|
label = "%percentage%%"
|
||||||
|
label-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
|
||||||
|
[module/alsa]
|
||||||
|
type = internal/alsa
|
||||||
|
|
||||||
|
format-volume = <bar-volume>
|
||||||
|
label-volume = "%percentage%%"
|
||||||
|
label-volume-foreground = ${colors.foreground}
|
||||||
|
format-volume-prefix = "蓼 "
|
||||||
|
format-volume-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
format-muted-prefix =
|
||||||
|
format-muted-foreground = ${colors.foreground}
|
||||||
|
format-muted-background = ${colors.foreground-alt}
|
||||||
|
label-muted = 婢 sound muted
|
||||||
|
label-muted-padding = 1
|
||||||
|
label-muted-margin = 1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
bar-volume-width = 15
|
||||||
|
bar-volume-foreground-0 = #f9b1a4
|
||||||
|
bar-volume-foreground-1 = #f9b1a4
|
||||||
|
bar-volume-foreground-2 = #f9b1a4
|
||||||
|
bar-volume-foreground-3 = #f9b1a4
|
||||||
|
bar-volume-foreground-4 = #f9b1a4
|
||||||
|
bar-volume-foreground-5 = #f9b1a4
|
||||||
|
bar-volume-foreground-6 = #f9b1a4
|
||||||
|
bar-volume-foreground-7 = #f9b1a4
|
||||||
|
bar-volume-foreground-8 = #f9b1a4
|
||||||
|
bar-volume-foreground-9 = #ff5555
|
||||||
|
bar-volume-gradient = false
|
||||||
|
bar-volume-indicator = |
|
||||||
|
bar-volume-indicator-font = 1
|
||||||
|
bar-volume-fill = ─
|
||||||
|
bar-volume-fill-font = 3
|
||||||
|
bar-volume-empty = ─
|
||||||
|
bar-volume-empty-font = 3
|
||||||
|
bar-volume-empty-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
[module/battery]
|
||||||
|
type = internal/battery
|
||||||
|
battery = BAT0
|
||||||
|
adapter = AC
|
||||||
|
full-at = 98
|
||||||
|
|
||||||
|
format-charging = <animation-charging> <label-charging>
|
||||||
|
|
||||||
|
format-discharging = <ramp-capacity> <label-discharging>
|
||||||
|
|
||||||
|
format-full-prefix = " "
|
||||||
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||||
|
|
||||||
|
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 = 1500
|
||||||
|
|
||||||
|
animation-discharging-0 =
|
||||||
|
animation-discharging-1 =
|
||||||
|
animation-discharging-2 =
|
||||||
|
animation-discharging-foreground = ${colors.foreground-alt}
|
||||||
|
animation-discharging-framerate = 2000
|
||||||
|
|
||||||
|
[settings]
|
||||||
|
screenchange-reload = true
|
||||||
|
;compositing-background = xor
|
||||||
|
;compositing-background = screen
|
||||||
|
;compositing-foreground = source
|
||||||
|
;compositing-border = over
|
||||||
|
|
||||||
|
[global/wm]
|
||||||
|
margin-top = 0
|
||||||
|
margin-bottom = 0
|
12
.config/.old/polybar/launch.sh
Executable file
12
.config/.old/polybar/launch.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/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 Polybar, using default config location ~/.config/polybar/config
|
||||||
|
polybar top &
|
||||||
|
|
||||||
|
echo "Polybar launched..."
|
62
.config/.old/ranger/commands.py
Normal file
62
.config/.old/ranger/commands.py
Normal file
@ -0,0 +1,62 @@
|
|||||||
|
# This is a sample commands.py. You can add your own commands here.
|
||||||
|
#
|
||||||
|
# Please refer to commands_full.py for all the default commands and a complete
|
||||||
|
# documentation. Do NOT add them all here, or you may end up with defunct
|
||||||
|
# commands when upgrading ranger.
|
||||||
|
|
||||||
|
# A simple command for demonstration purposes follows.
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
|
||||||
|
# You can import any python module as needed.
|
||||||
|
import os
|
||||||
|
|
||||||
|
# You always need to import ranger.api.commands here to get the Command class:
|
||||||
|
from ranger.api.commands import Command
|
||||||
|
|
||||||
|
|
||||||
|
# Any class that is a subclass of "Command" will be integrated into ranger as a
|
||||||
|
# command. Try typing ":my_edit<ENTER>" in ranger!
|
||||||
|
class my_edit(Command):
|
||||||
|
# The so-called doc-string of the class will be visible in the built-in
|
||||||
|
# help that is accessible by typing "?c" inside ranger.
|
||||||
|
""":my_edit <filename>
|
||||||
|
|
||||||
|
A sample command for demonstration purposes that opens a file in an editor.
|
||||||
|
"""
|
||||||
|
|
||||||
|
# The execute method is called when you run this command in ranger.
|
||||||
|
def execute(self):
|
||||||
|
# self.arg(1) is the first (space-separated) argument to the function.
|
||||||
|
# This way you can write ":my_edit somefilename<ENTER>".
|
||||||
|
if self.arg(1):
|
||||||
|
# self.rest(1) contains self.arg(1) and everything that follows
|
||||||
|
target_filename = self.rest(1)
|
||||||
|
else:
|
||||||
|
# self.fm is a ranger.core.filemanager.FileManager object and gives
|
||||||
|
# you access to internals of ranger.
|
||||||
|
# self.fm.thisfile is a ranger.container.file.File object and is a
|
||||||
|
# reference to the currently selected file.
|
||||||
|
target_filename = self.fm.thisfile.path
|
||||||
|
|
||||||
|
# This is a generic function to print text in ranger.
|
||||||
|
self.fm.notify("Let's edit the file " + target_filename + "!")
|
||||||
|
|
||||||
|
# Using bad=True in fm.notify allows you to print error messages:
|
||||||
|
if not os.path.exists(target_filename):
|
||||||
|
self.fm.notify("The given file does not exist!", bad=True)
|
||||||
|
return
|
||||||
|
|
||||||
|
# This executes a function from ranger.core.acitons, a module with a
|
||||||
|
# variety of subroutines that can help you construct commands.
|
||||||
|
# Check out the source, or run "pydoc ranger.core.actions" for a list.
|
||||||
|
self.fm.edit_file(target_filename)
|
||||||
|
|
||||||
|
# The tab method is called when you press tab, and should return a list of
|
||||||
|
# suggestions that the user will tab through.
|
||||||
|
# tabnum is 1 for <TAB> and -1 for <S-TAB> by default
|
||||||
|
def tab(self, tabnum):
|
||||||
|
# This is a generic tab-completion function that iterates through the
|
||||||
|
# content of the current directory.
|
||||||
|
return self._tab_directory_content()
|
1836
.config/.old/ranger/commands_full.py
Normal file
1836
.config/.old/ranger/commands_full.py
Normal file
File diff suppressed because it is too large
Load Diff
725
.config/.old/ranger/rc.conf
Normal file
725
.config/.old/ranger/rc.conf
Normal file
@ -0,0 +1,725 @@
|
|||||||
|
# ===================================================================
|
||||||
|
# This file contains the default startup commands for ranger.
|
||||||
|
# To change them, it is recommended to create either /etc/ranger/rc.conf
|
||||||
|
# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom
|
||||||
|
# commands there.
|
||||||
|
#
|
||||||
|
# If you copy this whole file there, you may want to set the environment
|
||||||
|
# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.
|
||||||
|
#
|
||||||
|
# The purpose of this file is mainly to define keybindings and settings.
|
||||||
|
# For running more complex python code, please create a plugin in "plugins/" or
|
||||||
|
# a command in "commands.py".
|
||||||
|
#
|
||||||
|
# Each line is a command that will be run before the user interface
|
||||||
|
# is initialized. As a result, you can not use commands which rely
|
||||||
|
# on the UI such as :delete or :mark.
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Options
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Which viewmode should be used? Possible values are:
|
||||||
|
# miller: Use miller columns which show multiple levels of the hierarchy
|
||||||
|
# multipane: Midnight-commander like multipane view showing all tabs next
|
||||||
|
# to each other
|
||||||
|
set viewmode miller
|
||||||
|
#set viewmode multipane
|
||||||
|
|
||||||
|
# How many columns are there, and what are their relative widths?
|
||||||
|
set column_ratios 1,3,4
|
||||||
|
|
||||||
|
# Which files should be hidden? (regular expression)
|
||||||
|
set hidden_filter ^\.|\.(?:pyc|pyo|bak|swp)$|^lost\+found$|^__(py)?cache__$
|
||||||
|
|
||||||
|
# Show hidden files? You can toggle this by typing 'zh'
|
||||||
|
set show_hidden true
|
||||||
|
|
||||||
|
# Ask for a confirmation when running the "delete" command?
|
||||||
|
# Valid values are "always", "never", "multiple" (default)
|
||||||
|
# With "multiple", ranger will ask only if you delete multiple files at once.
|
||||||
|
set confirm_on_delete multiple
|
||||||
|
|
||||||
|
# Use non-default path for file preview script?
|
||||||
|
# ranger ships with scope.sh, a script that calls external programs (see
|
||||||
|
# README.md for dependencies) to preview images, archives, etc.
|
||||||
|
#set preview_script ~/.config/ranger/scope.sh
|
||||||
|
|
||||||
|
# Use the external preview script or display simple plain text or image previews?
|
||||||
|
set use_preview_script true
|
||||||
|
|
||||||
|
# Automatically count files in the directory, even before entering them?
|
||||||
|
set automatically_count_files true
|
||||||
|
|
||||||
|
# Open all images in this directory when running certain image viewers
|
||||||
|
# like feh or sxiv? You can still open selected files by marking them.
|
||||||
|
set open_all_images true
|
||||||
|
|
||||||
|
# Be aware of version control systems and display information.
|
||||||
|
set vcs_aware false
|
||||||
|
|
||||||
|
# State of the four backends git, hg, bzr, svn. The possible states are
|
||||||
|
# disabled, local (only show local info), enabled (show local and remote
|
||||||
|
# information).
|
||||||
|
set vcs_backend_git enabled
|
||||||
|
set vcs_backend_hg disabled
|
||||||
|
set vcs_backend_bzr disabled
|
||||||
|
set vcs_backend_svn disabled
|
||||||
|
|
||||||
|
# Use one of the supported image preview protocols
|
||||||
|
set preview_images true
|
||||||
|
|
||||||
|
# Set the preview image method. Supported methods:
|
||||||
|
#
|
||||||
|
# * w3m (default):
|
||||||
|
# Preview images in full color with the external command "w3mimgpreview"?
|
||||||
|
# This requires the console web browser "w3m" and a supported terminal.
|
||||||
|
# It has been successfully tested with "xterm" and "urxvt" without tmux.
|
||||||
|
#
|
||||||
|
# * iterm2:
|
||||||
|
# Preview images in full color using iTerm2 image previews
|
||||||
|
# (http://iterm2.com/images.html). This requires using iTerm2 compiled
|
||||||
|
# with image preview support.
|
||||||
|
#
|
||||||
|
# This feature relies on the dimensions of the terminal's font. By default, a
|
||||||
|
# width of 8 and height of 11 are used. To use other values, set the options
|
||||||
|
# iterm2_font_width and iterm2_font_height to the desired values.
|
||||||
|
#
|
||||||
|
# * terminology:
|
||||||
|
# Previews images in full color in the terminology terminal emulator.
|
||||||
|
# Supports a wide variety of formats, even vector graphics like svg.
|
||||||
|
#
|
||||||
|
# * urxvt:
|
||||||
|
# Preview images in full color using urxvt image backgrounds. This
|
||||||
|
# requires using urxvt compiled with pixbuf support.
|
||||||
|
#
|
||||||
|
# * urxvt-full:
|
||||||
|
# The same as urxvt but utilizing not only the preview pane but the
|
||||||
|
# whole terminal window.
|
||||||
|
#
|
||||||
|
# * kitty:
|
||||||
|
# Preview images in full color using kitty image protocol.
|
||||||
|
# Requires python PIL or pillow library.
|
||||||
|
# If ranger does not share the local filesystem with kitty
|
||||||
|
# the transfer method is changed to encode the whole image;
|
||||||
|
# while slower, this allows remote previews,
|
||||||
|
# for example during an ssh session.
|
||||||
|
# Tmux is unsupported.
|
||||||
|
set preview_images_method w3m
|
||||||
|
|
||||||
|
# Delay in seconds before displaying an image with the w3m method.
|
||||||
|
# Increase it in case of experiencing display corruption.
|
||||||
|
set w3m_delay 0.02
|
||||||
|
|
||||||
|
# Default iTerm2 font size (see: preview_images_method: iterm2)
|
||||||
|
set iterm2_font_width 8
|
||||||
|
set iterm2_font_height 11
|
||||||
|
|
||||||
|
# Use a unicode "..." character to mark cut-off filenames?
|
||||||
|
set unicode_ellipsis false
|
||||||
|
|
||||||
|
# BIDI support - try to properly display file names in RTL languages (Hebrew, Arabic).
|
||||||
|
# Requires the python-bidi pip package
|
||||||
|
set bidi_support false
|
||||||
|
|
||||||
|
# Show dotfiles in the bookmark preview box?
|
||||||
|
set show_hidden_bookmarks true
|
||||||
|
|
||||||
|
# Which colorscheme to use? These colorschemes are available by default:
|
||||||
|
# default, jungle, snow, solarized
|
||||||
|
set colorscheme default
|
||||||
|
|
||||||
|
# Preview files on the rightmost column?
|
||||||
|
# And collapse (shrink) the last column if there is nothing to preview?
|
||||||
|
set preview_files true
|
||||||
|
set preview_directories true
|
||||||
|
set collapse_preview true
|
||||||
|
|
||||||
|
# Save the console history on exit?
|
||||||
|
set save_console_history true
|
||||||
|
|
||||||
|
# Draw the status bar on top of the browser window (default: bottom)
|
||||||
|
set status_bar_on_top false
|
||||||
|
|
||||||
|
# Draw a progress bar in the status bar which displays the average state of all
|
||||||
|
# currently running tasks which support progress bars?
|
||||||
|
set draw_progress_bar_in_status_bar true
|
||||||
|
|
||||||
|
# Draw borders around columns? (separators, outline, both, or none)
|
||||||
|
# Separators are vertical lines between columns.
|
||||||
|
# Outline draws a box around all the columns.
|
||||||
|
# Both combines the two.
|
||||||
|
set draw_borders both
|
||||||
|
|
||||||
|
# Display the directory name in tabs?
|
||||||
|
set dirname_in_tabs false
|
||||||
|
|
||||||
|
# Enable the mouse support?
|
||||||
|
set mouse_enabled false
|
||||||
|
|
||||||
|
# Display the file size in the main column or status bar?
|
||||||
|
set display_size_in_main_column true
|
||||||
|
set display_size_in_status_bar true
|
||||||
|
|
||||||
|
# Display the free disk space in the status bar?
|
||||||
|
set display_free_space_in_status_bar true
|
||||||
|
|
||||||
|
# Display files tags in all columns or only in main column?
|
||||||
|
set display_tags_in_all_columns true
|
||||||
|
|
||||||
|
# Set a title for the window?
|
||||||
|
set update_title false
|
||||||
|
|
||||||
|
# Set the title to "ranger" in the tmux program?
|
||||||
|
set update_tmux_title true
|
||||||
|
|
||||||
|
# Shorten the title if it gets long? The number defines how many
|
||||||
|
# directories are displayed at once, 0 turns off this feature.
|
||||||
|
set shorten_title 3
|
||||||
|
|
||||||
|
# Show hostname in titlebar?
|
||||||
|
set hostname_in_titlebar true
|
||||||
|
|
||||||
|
# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?
|
||||||
|
set tilde_in_titlebar false
|
||||||
|
|
||||||
|
# How many directory-changes or console-commands should be kept in history?
|
||||||
|
set max_history_size 20
|
||||||
|
set max_console_history_size 50
|
||||||
|
|
||||||
|
# Try to keep so much space between the top/bottom border when scrolling:
|
||||||
|
set scroll_offset 8
|
||||||
|
|
||||||
|
# Flush the input after each key hit? (Noticeable when ranger lags)
|
||||||
|
set flushinput true
|
||||||
|
|
||||||
|
# Padding on the right when there's no preview?
|
||||||
|
# This allows you to click into the space to run the file.
|
||||||
|
set padding_right true
|
||||||
|
|
||||||
|
# Save bookmarks (used with mX and `X) instantly?
|
||||||
|
# This helps to synchronize bookmarks between multiple ranger
|
||||||
|
# instances but leads to *slight* performance loss.
|
||||||
|
# When false, bookmarks are saved when ranger is exited.
|
||||||
|
set autosave_bookmarks true
|
||||||
|
|
||||||
|
# Save the "`" bookmark to disk. This can be used to switch to the last
|
||||||
|
# directory by typing "``".
|
||||||
|
set save_backtick_bookmark true
|
||||||
|
|
||||||
|
# You can display the "real" cumulative size of directories by using the
|
||||||
|
# command :get_cumulative_size or typing "dc". The size is expensive to
|
||||||
|
# calculate and will not be updated automatically. You can choose
|
||||||
|
# to update it automatically though by turning on this option:
|
||||||
|
set autoupdate_cumulative_size false
|
||||||
|
|
||||||
|
# Turning this on makes sense for screen readers:
|
||||||
|
set show_cursor false
|
||||||
|
|
||||||
|
# One of: size, natural, basename, atime, ctime, mtime, type, random
|
||||||
|
set sort natural
|
||||||
|
|
||||||
|
# Additional sorting options
|
||||||
|
set sort_reverse false
|
||||||
|
set sort_case_insensitive true
|
||||||
|
set sort_directories_first true
|
||||||
|
set sort_unicode false
|
||||||
|
|
||||||
|
# Enable this if key combinations with the Alt Key don't work for you.
|
||||||
|
# (Especially on xterm)
|
||||||
|
set xterm_alt_key false
|
||||||
|
|
||||||
|
# Whether to include bookmarks in cd command
|
||||||
|
set cd_bookmarks true
|
||||||
|
|
||||||
|
# Changes case sensitivity for the cd command tab completion
|
||||||
|
set cd_tab_case sensitive
|
||||||
|
|
||||||
|
# Use fuzzy tab completion with the "cd" command. For example,
|
||||||
|
# ":cd /u/lo/b<tab>" expands to ":cd /usr/local/bin".
|
||||||
|
set cd_tab_fuzzy false
|
||||||
|
|
||||||
|
# Avoid previewing files larger than this size, in bytes. Use a value of 0 to
|
||||||
|
# disable this feature.
|
||||||
|
set preview_max_size 0
|
||||||
|
|
||||||
|
# The key hint lists up to this size have their sublists expanded.
|
||||||
|
# Otherwise the submaps are replaced with "...".
|
||||||
|
set hint_collapse_threshold 10
|
||||||
|
|
||||||
|
# Add the highlighted file to the path in the titlebar
|
||||||
|
set show_selection_in_titlebar true
|
||||||
|
|
||||||
|
# The delay that ranger idly waits for user input, in milliseconds, with a
|
||||||
|
# resolution of 100ms. Lower delay reduces lag between directory updates but
|
||||||
|
# increases CPU load.
|
||||||
|
set idle_delay 2000
|
||||||
|
|
||||||
|
# When the metadata manager module looks for metadata, should it only look for
|
||||||
|
# a ".metadata.json" file in the current directory, or do a deep search and
|
||||||
|
# check all directories above the current one as well?
|
||||||
|
set metadata_deep_search false
|
||||||
|
|
||||||
|
# Clear all existing filters when leaving a directory
|
||||||
|
set clear_filters_on_dir_change false
|
||||||
|
|
||||||
|
# Disable displaying line numbers in main column.
|
||||||
|
# Possible values: false, absolute, relative.
|
||||||
|
set line_numbers false
|
||||||
|
|
||||||
|
# When line_numbers=relative show the absolute line number in the
|
||||||
|
# current line.
|
||||||
|
set relative_current_zero false
|
||||||
|
|
||||||
|
# Start line numbers from 1 instead of 0
|
||||||
|
set one_indexed false
|
||||||
|
|
||||||
|
# Save tabs on exit
|
||||||
|
set save_tabs_on_exit false
|
||||||
|
|
||||||
|
# Enable scroll wrapping - moving down while on the last item will wrap around to
|
||||||
|
# the top and vice versa.
|
||||||
|
set wrap_scroll false
|
||||||
|
|
||||||
|
# Set the global_inode_type_filter to nothing. Possible options: d, f and l for
|
||||||
|
# directories, files and symlinks respectively.
|
||||||
|
set global_inode_type_filter
|
||||||
|
|
||||||
|
# This setting allows to freeze the list of files to save I/O bandwidth. It
|
||||||
|
# should be 'false' during start-up, but you can toggle it by pressing F.
|
||||||
|
set freeze_files false
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Local Options
|
||||||
|
# ===================================================================
|
||||||
|
# You can set local options that only affect a single directory.
|
||||||
|
|
||||||
|
# Examples:
|
||||||
|
# setlocal path=~/downloads sort mtime
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Command Aliases in the Console
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
alias e edit
|
||||||
|
alias q quit
|
||||||
|
alias q! quit!
|
||||||
|
alias qa quitall
|
||||||
|
alias qa! quitall!
|
||||||
|
alias qall quitall
|
||||||
|
alias qall! quitall!
|
||||||
|
alias setl setlocal
|
||||||
|
|
||||||
|
alias filter scout -prts
|
||||||
|
alias find scout -aets
|
||||||
|
alias mark scout -mr
|
||||||
|
alias unmark scout -Mr
|
||||||
|
alias search scout -rs
|
||||||
|
alias search_inc scout -rts
|
||||||
|
alias travel scout -aefklst
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Define keys for the browser
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
map Q quitall
|
||||||
|
map q quit
|
||||||
|
copymap q ZZ ZQ
|
||||||
|
|
||||||
|
map R reload_cwd
|
||||||
|
map F set freeze_files!
|
||||||
|
map <C-r> reset
|
||||||
|
map <C-l> redraw_window
|
||||||
|
map <C-c> abort
|
||||||
|
map <esc> change_mode normal
|
||||||
|
map ~ set viewmode!
|
||||||
|
|
||||||
|
map i display_file
|
||||||
|
map ? help
|
||||||
|
map W display_log
|
||||||
|
map w taskview_open
|
||||||
|
map S shell $SHELL
|
||||||
|
|
||||||
|
map : console
|
||||||
|
map ; console
|
||||||
|
map ! console shell%space
|
||||||
|
map @ console -p6 shell %%s
|
||||||
|
map # console shell -p%space
|
||||||
|
map s console shell%space
|
||||||
|
map r chain draw_possible_programs; console open_with%%space
|
||||||
|
map f console find%space
|
||||||
|
map cd console cd%space
|
||||||
|
|
||||||
|
map <C-p> chain console; eval fm.ui.console.history_move(-1)
|
||||||
|
|
||||||
|
# Change the line mode
|
||||||
|
map Mf linemode filename
|
||||||
|
map Mi linemode fileinfo
|
||||||
|
map Mm linemode mtime
|
||||||
|
map Mp linemode permissions
|
||||||
|
map Ms linemode sizemtime
|
||||||
|
map Mt linemode metatitle
|
||||||
|
|
||||||
|
# Tagging / Marking
|
||||||
|
map t tag_toggle
|
||||||
|
map ut tag_remove
|
||||||
|
map "<any> tag_toggle tag=%any
|
||||||
|
map <Space> mark_files toggle=True
|
||||||
|
map v mark_files all=True toggle=True
|
||||||
|
map uv mark_files all=True val=False
|
||||||
|
map V toggle_visual_mode
|
||||||
|
map uV toggle_visual_mode reverse=True
|
||||||
|
|
||||||
|
# For the nostalgics: Midnight Commander bindings
|
||||||
|
map <F1> help
|
||||||
|
map <F2> rename_append
|
||||||
|
map <F3> display_file
|
||||||
|
map <F4> edit
|
||||||
|
map <F5> copy
|
||||||
|
map <F6> cut
|
||||||
|
map <F7> console mkdir%space
|
||||||
|
map <F8> console delete
|
||||||
|
map <F10> exit
|
||||||
|
|
||||||
|
# In case you work on a keyboard with dvorak layout
|
||||||
|
map <UP> move up=1
|
||||||
|
map <DOWN> move down=1
|
||||||
|
map <LEFT> move left=1
|
||||||
|
map <RIGHT> move right=1
|
||||||
|
map <HOME> move to=0
|
||||||
|
map <END> move to=-1
|
||||||
|
map <PAGEDOWN> move down=1 pages=True
|
||||||
|
map <PAGEUP> move up=1 pages=True
|
||||||
|
map <CR> move right=1
|
||||||
|
#map <DELETE> console delete
|
||||||
|
map <INSERT> console touch%space
|
||||||
|
|
||||||
|
# VIM-like
|
||||||
|
copymap <UP> k
|
||||||
|
copymap <DOWN> j
|
||||||
|
copymap <LEFT> h
|
||||||
|
copymap <RIGHT> l
|
||||||
|
copymap <HOME> gg
|
||||||
|
copymap <END> G
|
||||||
|
copymap <PAGEDOWN> <C-F>
|
||||||
|
copymap <PAGEUP> <C-B>
|
||||||
|
|
||||||
|
map J move down=0.5 pages=True
|
||||||
|
map K move up=0.5 pages=True
|
||||||
|
copymap J <C-D>
|
||||||
|
copymap K <C-U>
|
||||||
|
|
||||||
|
# Jumping around
|
||||||
|
map H history_go -1
|
||||||
|
map L history_go 1
|
||||||
|
map ] move_parent 1
|
||||||
|
map [ move_parent -1
|
||||||
|
map } traverse
|
||||||
|
map { traverse_backwards
|
||||||
|
map ) jump_non
|
||||||
|
|
||||||
|
map gh cd ~
|
||||||
|
map ge cd /etc
|
||||||
|
map gu cd /usr
|
||||||
|
map gd cd /dev
|
||||||
|
map gl cd -r .
|
||||||
|
map gL cd -r %f
|
||||||
|
map go cd /opt
|
||||||
|
map gv cd /var
|
||||||
|
map gm cd /media
|
||||||
|
map gi eval fm.cd('/run/media/' + os.getenv('USER'))
|
||||||
|
map gM cd /mnt
|
||||||
|
map gs cd /srv
|
||||||
|
map gp cd /tmp
|
||||||
|
map gr cd /
|
||||||
|
map gR eval fm.cd(ranger.RANGERDIR)
|
||||||
|
map g/ cd /
|
||||||
|
map g? cd /usr/share/doc/ranger
|
||||||
|
|
||||||
|
# External Programs
|
||||||
|
map E edit
|
||||||
|
map du shell -p du --max-depth=1 -h --apparent-size
|
||||||
|
map dU shell -p du --max-depth=1 -h --apparent-size | sort -rh
|
||||||
|
map yp yank path
|
||||||
|
map yd yank dir
|
||||||
|
map yn yank name
|
||||||
|
map y. yank name_without_extension
|
||||||
|
|
||||||
|
# Filesystem Operations
|
||||||
|
map = chmod
|
||||||
|
|
||||||
|
map cw console rename%space
|
||||||
|
map a rename_append
|
||||||
|
map A eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"))
|
||||||
|
map I eval fm.open_console('rename ' + fm.thisfile.relative_path.replace("%", "%%"), position=7)
|
||||||
|
|
||||||
|
map pp paste
|
||||||
|
map po paste overwrite=True
|
||||||
|
map pP paste append=True
|
||||||
|
map pO paste overwrite=True append=True
|
||||||
|
map pl paste_symlink relative=False
|
||||||
|
map pL paste_symlink relative=True
|
||||||
|
map phl paste_hardlink
|
||||||
|
map pht paste_hardlinked_subtree
|
||||||
|
|
||||||
|
map dD console delete
|
||||||
|
|
||||||
|
map dd cut
|
||||||
|
map ud uncut
|
||||||
|
map da cut mode=add
|
||||||
|
map dr cut mode=remove
|
||||||
|
map dt cut mode=toggle
|
||||||
|
|
||||||
|
map yy copy
|
||||||
|
map uy uncut
|
||||||
|
map ya copy mode=add
|
||||||
|
map yr copy mode=remove
|
||||||
|
map yt copy mode=toggle
|
||||||
|
|
||||||
|
# Temporary workarounds
|
||||||
|
map dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)
|
||||||
|
map dG eval fm.cut(dirarg=dict(to=-1), narg=quantifier)
|
||||||
|
map dj eval fm.cut(dirarg=dict(down=1), narg=quantifier)
|
||||||
|
map dk eval fm.cut(dirarg=dict(up=1), narg=quantifier)
|
||||||
|
map ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)
|
||||||
|
map yG eval fm.copy(dirarg=dict(to=-1), narg=quantifier)
|
||||||
|
map yj eval fm.copy(dirarg=dict(down=1), narg=quantifier)
|
||||||
|
map yk eval fm.copy(dirarg=dict(up=1), narg=quantifier)
|
||||||
|
|
||||||
|
# Searching
|
||||||
|
map / console search%space
|
||||||
|
map n search_next
|
||||||
|
map N search_next forward=False
|
||||||
|
map ct search_next order=tag
|
||||||
|
map cs search_next order=size
|
||||||
|
map ci search_next order=mimetype
|
||||||
|
map cc search_next order=ctime
|
||||||
|
map cm search_next order=mtime
|
||||||
|
map ca search_next order=atime
|
||||||
|
|
||||||
|
# Tabs
|
||||||
|
map <C-n> tab_new
|
||||||
|
map <C-w> tab_close
|
||||||
|
map <TAB> tab_move 1
|
||||||
|
map <S-TAB> tab_move -1
|
||||||
|
map <A-Right> tab_move 1
|
||||||
|
map <A-Left> tab_move -1
|
||||||
|
map gt tab_move 1
|
||||||
|
map gT tab_move -1
|
||||||
|
map gn tab_new
|
||||||
|
map gc tab_close
|
||||||
|
map uq tab_restore
|
||||||
|
map <a-1> tab_open 1
|
||||||
|
map <a-2> tab_open 2
|
||||||
|
map <a-3> tab_open 3
|
||||||
|
map <a-4> tab_open 4
|
||||||
|
map <a-5> tab_open 5
|
||||||
|
map <a-6> tab_open 6
|
||||||
|
map <a-7> tab_open 7
|
||||||
|
map <a-8> tab_open 8
|
||||||
|
map <a-9> tab_open 9
|
||||||
|
map <a-r> tab_shift 1
|
||||||
|
map <a-l> tab_shift -1
|
||||||
|
|
||||||
|
# Sorting
|
||||||
|
map or set sort_reverse!
|
||||||
|
map oz set sort=random
|
||||||
|
map os chain set sort=size; set sort_reverse=False
|
||||||
|
map ob chain set sort=basename; set sort_reverse=False
|
||||||
|
map on chain set sort=natural; set sort_reverse=False
|
||||||
|
map om chain set sort=mtime; set sort_reverse=False
|
||||||
|
map oc chain set sort=ctime; set sort_reverse=False
|
||||||
|
map oa chain set sort=atime; set sort_reverse=False
|
||||||
|
map ot chain set sort=type; set sort_reverse=False
|
||||||
|
map oe chain set sort=extension; set sort_reverse=False
|
||||||
|
|
||||||
|
map oS chain set sort=size; set sort_reverse=True
|
||||||
|
map oB chain set sort=basename; set sort_reverse=True
|
||||||
|
map oN chain set sort=natural; set sort_reverse=True
|
||||||
|
map oM chain set sort=mtime; set sort_reverse=True
|
||||||
|
map oC chain set sort=ctime; set sort_reverse=True
|
||||||
|
map oA chain set sort=atime; set sort_reverse=True
|
||||||
|
map oT chain set sort=type; set sort_reverse=True
|
||||||
|
map oE chain set sort=extension; set sort_reverse=True
|
||||||
|
|
||||||
|
map dc get_cumulative_size
|
||||||
|
|
||||||
|
# Settings
|
||||||
|
map zc set collapse_preview!
|
||||||
|
map zd set sort_directories_first!
|
||||||
|
map zh set show_hidden!
|
||||||
|
map <C-h> set show_hidden!
|
||||||
|
copymap <C-h> <backspace>
|
||||||
|
copymap <backspace> <backspace2>
|
||||||
|
map zI set flushinput!
|
||||||
|
map zi set preview_images!
|
||||||
|
map zm set mouse_enabled!
|
||||||
|
map zp set preview_files!
|
||||||
|
map zP set preview_directories!
|
||||||
|
map zs set sort_case_insensitive!
|
||||||
|
map zu set autoupdate_cumulative_size!
|
||||||
|
map zv set use_preview_script!
|
||||||
|
map zf console filter%space
|
||||||
|
copymap zf zz
|
||||||
|
|
||||||
|
# Filter stack
|
||||||
|
map .n console filter_stack add name%space
|
||||||
|
map .m console filter_stack add mime%space
|
||||||
|
map .d filter_stack add type d
|
||||||
|
map .f filter_stack add type f
|
||||||
|
map .l filter_stack add type l
|
||||||
|
map .| filter_stack add or
|
||||||
|
map .& filter_stack add and
|
||||||
|
map .! filter_stack add not
|
||||||
|
map .r console filter_stack rotate
|
||||||
|
map .c filter_stack clear
|
||||||
|
map .* filter_stack decompose
|
||||||
|
map .p filter_stack pop
|
||||||
|
map .. filter_stack show
|
||||||
|
|
||||||
|
# Bookmarks
|
||||||
|
map `<any> enter_bookmark %any
|
||||||
|
map '<any> enter_bookmark %any
|
||||||
|
map m<any> set_bookmark %any
|
||||||
|
map um<any> unset_bookmark %any
|
||||||
|
|
||||||
|
map m<bg> draw_bookmarks
|
||||||
|
copymap m<bg> um<bg> `<bg> '<bg>
|
||||||
|
|
||||||
|
# Generate all the chmod bindings with some python help:
|
||||||
|
eval for arg in "rwxXst": cmd("map +u{0} shell -f chmod u+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +g{0} shell -f chmod g+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +o{0} shell -f chmod o+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +a{0} shell -f chmod a+{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map +{0} shell -f chmod u+{0} %s".format(arg))
|
||||||
|
|
||||||
|
eval for arg in "rwxXst": cmd("map -u{0} shell -f chmod u-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -g{0} shell -f chmod g-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -o{0} shell -f chmod o-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -a{0} shell -f chmod a-{0} %s".format(arg))
|
||||||
|
eval for arg in "rwxXst": cmd("map -{0} shell -f chmod u-{0} %s".format(arg))
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Define keys for the console
|
||||||
|
# ===================================================================
|
||||||
|
# Note: Unmapped keys are passed directly to the console.
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
cmap <tab> eval fm.ui.console.tab()
|
||||||
|
cmap <s-tab> eval fm.ui.console.tab(-1)
|
||||||
|
cmap <ESC> eval fm.ui.console.close()
|
||||||
|
cmap <CR> eval fm.ui.console.execute()
|
||||||
|
cmap <C-l> redraw_window
|
||||||
|
|
||||||
|
copycmap <ESC> <C-c>
|
||||||
|
copycmap <CR> <C-j>
|
||||||
|
|
||||||
|
# Move around
|
||||||
|
cmap <up> eval fm.ui.console.history_move(-1)
|
||||||
|
cmap <down> eval fm.ui.console.history_move(1)
|
||||||
|
cmap <left> eval fm.ui.console.move(left=1)
|
||||||
|
cmap <right> eval fm.ui.console.move(right=1)
|
||||||
|
cmap <home> eval fm.ui.console.move(right=0, absolute=True)
|
||||||
|
cmap <end> eval fm.ui.console.move(right=-1, absolute=True)
|
||||||
|
cmap <a-b> eval fm.ui.console.move_word(left=1)
|
||||||
|
cmap <a-f> eval fm.ui.console.move_word(right=1)
|
||||||
|
|
||||||
|
copycmap <a-b> <a-left>
|
||||||
|
copycmap <a-f> <a-right>
|
||||||
|
|
||||||
|
# Line Editing
|
||||||
|
cmap <backspace> eval fm.ui.console.delete(-1)
|
||||||
|
cmap <delete> eval fm.ui.console.delete(0)
|
||||||
|
cmap <C-w> eval fm.ui.console.delete_word()
|
||||||
|
cmap <A-d> eval fm.ui.console.delete_word(backward=False)
|
||||||
|
cmap <C-k> eval fm.ui.console.delete_rest(1)
|
||||||
|
cmap <C-u> eval fm.ui.console.delete_rest(-1)
|
||||||
|
cmap <C-y> eval fm.ui.console.paste()
|
||||||
|
|
||||||
|
# And of course the emacs way
|
||||||
|
copycmap <ESC> <C-g>
|
||||||
|
copycmap <up> <C-p>
|
||||||
|
copycmap <down> <C-n>
|
||||||
|
copycmap <left> <C-b>
|
||||||
|
copycmap <right> <C-f>
|
||||||
|
copycmap <home> <C-a>
|
||||||
|
copycmap <end> <C-e>
|
||||||
|
copycmap <delete> <C-d>
|
||||||
|
copycmap <backspace> <C-h>
|
||||||
|
|
||||||
|
# Note: There are multiple ways to express backspaces. <backspace> (code 263)
|
||||||
|
# and <backspace2> (code 127). To be sure, use both.
|
||||||
|
copycmap <backspace> <backspace2>
|
||||||
|
|
||||||
|
# This special expression allows typing in numerals:
|
||||||
|
cmap <allow_quantifiers> false
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Pager Keybindings
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Movement
|
||||||
|
pmap <down> pager_move down=1
|
||||||
|
pmap <up> pager_move up=1
|
||||||
|
pmap <left> pager_move left=4
|
||||||
|
pmap <right> pager_move right=4
|
||||||
|
pmap <home> pager_move to=0
|
||||||
|
pmap <end> pager_move to=-1
|
||||||
|
pmap <pagedown> pager_move down=1.0 pages=True
|
||||||
|
pmap <pageup> pager_move up=1.0 pages=True
|
||||||
|
pmap <C-d> pager_move down=0.5 pages=True
|
||||||
|
pmap <C-u> pager_move up=0.5 pages=True
|
||||||
|
|
||||||
|
copypmap <UP> k <C-p>
|
||||||
|
copypmap <DOWN> j <C-n> <CR>
|
||||||
|
copypmap <LEFT> h
|
||||||
|
copypmap <RIGHT> l
|
||||||
|
copypmap <HOME> g
|
||||||
|
copypmap <END> G
|
||||||
|
copypmap <C-d> d
|
||||||
|
copypmap <C-u> u
|
||||||
|
copypmap <PAGEDOWN> n f <C-F> <Space>
|
||||||
|
copypmap <PAGEUP> p b <C-B>
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
pmap <C-l> redraw_window
|
||||||
|
pmap <ESC> pager_close
|
||||||
|
copypmap <ESC> q Q i <F3>
|
||||||
|
pmap E edit_file
|
||||||
|
|
||||||
|
# ===================================================================
|
||||||
|
# == Taskview Keybindings
|
||||||
|
# ===================================================================
|
||||||
|
|
||||||
|
# Movement
|
||||||
|
tmap <up> taskview_move up=1
|
||||||
|
tmap <down> taskview_move down=1
|
||||||
|
tmap <home> taskview_move to=0
|
||||||
|
tmap <end> taskview_move to=-1
|
||||||
|
tmap <pagedown> taskview_move down=1.0 pages=True
|
||||||
|
tmap <pageup> taskview_move up=1.0 pages=True
|
||||||
|
tmap <C-d> taskview_move down=0.5 pages=True
|
||||||
|
tmap <C-u> taskview_move up=0.5 pages=True
|
||||||
|
|
||||||
|
copytmap <UP> k <C-p>
|
||||||
|
copytmap <DOWN> j <C-n> <CR>
|
||||||
|
copytmap <HOME> g
|
||||||
|
copytmap <END> G
|
||||||
|
copytmap <C-u> u
|
||||||
|
copytmap <PAGEDOWN> n f <C-F> <Space>
|
||||||
|
copytmap <PAGEUP> p b <C-B>
|
||||||
|
|
||||||
|
# Changing priority and deleting tasks
|
||||||
|
tmap J eval -q fm.ui.taskview.task_move(-1)
|
||||||
|
tmap K eval -q fm.ui.taskview.task_move(0)
|
||||||
|
tmap dd eval -q fm.ui.taskview.task_remove()
|
||||||
|
tmap <pagedown> eval -q fm.ui.taskview.task_move(-1)
|
||||||
|
tmap <pageup> eval -q fm.ui.taskview.task_move(0)
|
||||||
|
tmap <delete> eval -q fm.ui.taskview.task_remove()
|
||||||
|
|
||||||
|
# Basic
|
||||||
|
tmap <C-l> redraw_window
|
||||||
|
tmap <ESC> taskview_close
|
||||||
|
copytmap <ESC> q Q w <C-c>
|
256
.config/.old/ranger/rifle.conf
Normal file
256
.config/.old/ranger/rifle.conf
Normal file
@ -0,0 +1,256 @@
|
|||||||
|
# vim: ft=cfg
|
||||||
|
#
|
||||||
|
# This is the configuration file of "rifle", ranger's file executor/opener.
|
||||||
|
# Each line consists of conditions and a command. For each line the conditions
|
||||||
|
# are checked and if they are met, the respective command is run.
|
||||||
|
#
|
||||||
|
# Syntax:
|
||||||
|
# <condition1> , <condition2> , ... = command
|
||||||
|
#
|
||||||
|
# The command can contain these environment variables:
|
||||||
|
# $1-$9 | The n-th selected file
|
||||||
|
# $@ | All selected files
|
||||||
|
#
|
||||||
|
# If you use the special command "ask", rifle will ask you what program to run.
|
||||||
|
#
|
||||||
|
# Prefixing a condition with "!" will negate its result.
|
||||||
|
# These conditions are currently supported:
|
||||||
|
# match <regexp> | The regexp matches $1
|
||||||
|
# ext <regexp> | The regexp matches the extension of $1
|
||||||
|
# mime <regexp> | The regexp matches the mime type of $1
|
||||||
|
# name <regexp> | The regexp matches the basename of $1
|
||||||
|
# path <regexp> | The regexp matches the absolute path of $1
|
||||||
|
# has <program> | The program is installed (i.e. located in $PATH)
|
||||||
|
# env <variable> | The environment variable "variable" is non-empty
|
||||||
|
# file | $1 is a file
|
||||||
|
# directory | $1 is a directory
|
||||||
|
# number <n> | change the number of this command to n
|
||||||
|
# terminal | stdin, stderr and stdout are connected to a terminal
|
||||||
|
# X | $DISPLAY is not empty (i.e. Xorg runs)
|
||||||
|
#
|
||||||
|
# There are also pseudo-conditions which have a "side effect":
|
||||||
|
# flag <flags> | Change how the program is run. See below.
|
||||||
|
# label <label> | Assign a label or name to the command so it can
|
||||||
|
# | be started with :open_with <label> in ranger
|
||||||
|
# | or `rifle -p <label>` in the standalone executable.
|
||||||
|
# else | Always true.
|
||||||
|
#
|
||||||
|
# Flags are single characters which slightly transform the command:
|
||||||
|
# f | Fork the program, make it run in the background.
|
||||||
|
# | New command = setsid $command >& /dev/null &
|
||||||
|
# r | Execute the command with root permissions
|
||||||
|
# | New command = sudo $command
|
||||||
|
# t | Run the program in a new terminal. If $TERMCMD is not defined,
|
||||||
|
# | rifle will attempt to extract it from $TERM.
|
||||||
|
# | New command = $TERMCMD -e $command
|
||||||
|
# Note: The "New command" serves only as an illustration, the exact
|
||||||
|
# implementation may differ.
|
||||||
|
# Note: When using rifle in ranger, there is an additional flag "c" for
|
||||||
|
# only running the current file even if you have marked multiple files.
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Websites
|
||||||
|
#-------------------------------------------
|
||||||
|
# Rarely installed browsers get higher priority; It is assumed that if you
|
||||||
|
# install a rare browser, you probably use it. Firefox/konqueror/w3m on the
|
||||||
|
# other hand are often only installed as fallback browsers.
|
||||||
|
ext x?html?, has surf, X, flag f = surf -- file://"$1"
|
||||||
|
ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@"
|
||||||
|
ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@"
|
||||||
|
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
|
||||||
|
ext x?html?, has dwb, X, flag f = dwb -- "$@"
|
||||||
|
ext x?html?, has jumanji, X, flag f = jumanji -- "$@"
|
||||||
|
ext x?html?, has luakit, X, flag f = luakit -- "$@"
|
||||||
|
ext x?html?, has uzbl, X, flag f = uzbl -- "$@"
|
||||||
|
ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@"
|
||||||
|
ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@"
|
||||||
|
ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@"
|
||||||
|
ext x?html?, has midori, X, flag f = midori -- "$@"
|
||||||
|
ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@"
|
||||||
|
ext x?html?, has chromium, X, flag f = chromium -- "$@"
|
||||||
|
ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@"
|
||||||
|
ext x?html?, has opera, X, flag f = opera -- "$@"
|
||||||
|
ext x?html?, has firefox, X, flag f = firefox -- "$@"
|
||||||
|
ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@"
|
||||||
|
ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@"
|
||||||
|
ext x?html?, has epiphany, X, flag f = epiphany -- "$@"
|
||||||
|
ext x?html?, has konqueror, X, flag f = konqueror -- "$@"
|
||||||
|
ext x?html?, has elinks, terminal = elinks "$@"
|
||||||
|
ext x?html?, has links2, terminal = links2 "$@"
|
||||||
|
ext x?html?, has links, terminal = links "$@"
|
||||||
|
ext x?html?, has lynx, terminal = lynx -- "$@"
|
||||||
|
ext x?html?, has w3m, terminal = w3m "$@"
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Misc
|
||||||
|
#-------------------------------------------
|
||||||
|
# Define the "editor" for text files as first action
|
||||||
|
mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@"
|
||||||
|
mime ^text, label pager = "$PAGER" -- "$@"
|
||||||
|
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
|
||||||
|
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
|
||||||
|
|
||||||
|
ext 1 = man "$1"
|
||||||
|
ext s[wmf]c, has zsnes, X = zsnes "$1"
|
||||||
|
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
|
||||||
|
ext nes, has fceux, X = fceux "$1"
|
||||||
|
ext exe = wine "$1"
|
||||||
|
name ^[mM]akefile$ = make
|
||||||
|
|
||||||
|
#--------------------------------------------
|
||||||
|
# Code
|
||||||
|
#-------------------------------------------
|
||||||
|
ext py = python -- "$1"
|
||||||
|
ext pl = perl -- "$1"
|
||||||
|
ext rb = ruby -- "$1"
|
||||||
|
ext js = node -- "$1"
|
||||||
|
ext sh = sh -- "$1"
|
||||||
|
ext php = php -- "$1"
|
||||||
|
|
||||||
|
#--------------------------------------------
|
||||||
|
# Audio without X
|
||||||
|
#-------------------------------------------
|
||||||
|
mime ^audio|ogg$, terminal, has mpv = mpv -- "$@"
|
||||||
|
mime ^audio|ogg$, terminal, has mplayer2 = mplayer2 -- "$@"
|
||||||
|
mime ^audio|ogg$, terminal, has mplayer = mplayer -- "$@"
|
||||||
|
ext midi?, terminal, has wildmidi = wildmidi -- "$@"
|
||||||
|
|
||||||
|
#--------------------------------------------
|
||||||
|
# Video/Audio with a GUI
|
||||||
|
#-------------------------------------------
|
||||||
|
mime ^video|audio, has gmplayer, X, flag f = gmplayer -- "$@"
|
||||||
|
mime ^video|audio, has smplayer, X, flag f = smplayer "$@"
|
||||||
|
mime ^video, has mpv, X, flag f = mpv -- "$@"
|
||||||
|
mime ^video, has mpv, X, flag f = mpv --fs -- "$@"
|
||||||
|
mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@"
|
||||||
|
mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@"
|
||||||
|
mime ^video, has mplayer, X, flag f = mplayer -- "$@"
|
||||||
|
mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@"
|
||||||
|
mime ^video|audio, has vlc, X, flag f = vlc -- "$@"
|
||||||
|
mime ^video|audio, has totem, X, flag f = totem -- "$@"
|
||||||
|
mime ^video|audio, has totem, X, flag f = totem --fullscreen -- "$@"
|
||||||
|
|
||||||
|
#--------------------------------------------
|
||||||
|
# Video without X:
|
||||||
|
#-------------------------------------------
|
||||||
|
mime ^video, terminal, !X, has mpv = mpv -- "$@"
|
||||||
|
mime ^video, terminal, !X, has mplayer2 = mplayer2 -- "$@"
|
||||||
|
mime ^video, terminal, !X, has mplayer = mplayer -- "$@"
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Documents
|
||||||
|
#-------------------------------------------
|
||||||
|
ext pdf, has llpp, X, flag f = llpp "$@"
|
||||||
|
ext pdf, has zathura, X, flag f = zathura -- "$@"
|
||||||
|
ext pdf, has mupdf, X, flag f = mupdf "$@"
|
||||||
|
ext pdf, has mupdf-x11,X, flag f = mupdf-x11 "$@"
|
||||||
|
ext pdf, has apvlv, X, flag f = apvlv -- "$@"
|
||||||
|
ext pdf, has xpdf, X, flag f = xpdf -- "$@"
|
||||||
|
ext pdf, has evince, X, flag f = evince -- "$@"
|
||||||
|
ext pdf, has atril, X, flag f = atril -- "$@"
|
||||||
|
ext pdf, has okular, X, flag f = okular -- "$@"
|
||||||
|
ext pdf, has epdfview, X, flag f = epdfview -- "$@"
|
||||||
|
ext pdf, has qpdfview, X, flag f = qpdfview "$@"
|
||||||
|
ext pdf, has open, X, flag f = open "$@"
|
||||||
|
|
||||||
|
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
|
||||||
|
|
||||||
|
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
|
||||||
|
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
|
||||||
|
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
|
||||||
|
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@"
|
||||||
|
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@"
|
||||||
|
|
||||||
|
ext djvu, has zathura,X, flag f = zathura -- "$@"
|
||||||
|
ext djvu, has evince, X, flag f = evince -- "$@"
|
||||||
|
ext djvu, has atril, X, flag f = atril -- "$@"
|
||||||
|
ext djvu, has djview, X, flag f = djview -- "$@"
|
||||||
|
|
||||||
|
ext epub, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
|
||||||
|
ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Image Viewing:
|
||||||
|
#-------------------------------------------
|
||||||
|
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
|
||||||
|
mime ^image/svg, has display, X, flag f = display -- "$@"
|
||||||
|
|
||||||
|
mime ^image, has pqiv, X, flag f = pqiv -- "$@"
|
||||||
|
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
|
||||||
|
mime ^image, has feh, X, flag f = feh -- "$@"
|
||||||
|
mime ^image, has mirage, X, flag f = mirage -- "$@"
|
||||||
|
mime ^image, has ristretto, X, flag f = ristretto "$@"
|
||||||
|
mime ^image, has eog, X, flag f = eog -- "$@"
|
||||||
|
mime ^image, has eom, X, flag f = eom -- "$@"
|
||||||
|
mime ^image, has nomacs, X, flag f = nomacs -- "$@"
|
||||||
|
mime ^image, has geeqie, X, flag f = geeqie -- "$@"
|
||||||
|
mime ^image, has gwenview, X, flag f = gwenview -- "$@"
|
||||||
|
mime ^image, has gimp, X, flag f = gimp -- "$@"
|
||||||
|
ext xcf, X, flag f = gimp -- "$@"
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Archives
|
||||||
|
#-------------------------------------------
|
||||||
|
|
||||||
|
# avoid password prompt by providing empty password
|
||||||
|
ext 7z, has 7z = 7z -p l "$@" | "$PAGER"
|
||||||
|
# This requires atool
|
||||||
|
ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --list --each -- "$@" | "$PAGER"
|
||||||
|
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --list --each -- "$@" | "$PAGER"
|
||||||
|
ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --extract --each -- "$@"
|
||||||
|
ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@"
|
||||||
|
|
||||||
|
# Listing and extracting archives without atool:
|
||||||
|
ext tar|gz|bz2|xz, has tar = tar vvtf "$1" | "$PAGER"
|
||||||
|
ext tar|gz|bz2|xz, has tar = for file in "$@"; do tar vvxf "$file"; done
|
||||||
|
ext bz2, has bzip2 = for file in "$@"; do bzip2 -dk "$file"; done
|
||||||
|
ext zip, has unzip = unzip -l "$1" | less
|
||||||
|
ext zip, has unzip = for file in "$@"; do unzip -d "${file%.*}" "$file"; done
|
||||||
|
ext ace, has unace = unace l "$1" | less
|
||||||
|
ext ace, has unace = for file in "$@"; do unace e "$file"; done
|
||||||
|
ext rar, has unrar = unrar l "$1" | less
|
||||||
|
ext rar, has unrar = for file in "$@"; do unrar x "$file"; done
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Flag t fallback terminals
|
||||||
|
#-------------------------------------------
|
||||||
|
# Rarely installed terminal emulators get higher priority; It is assumed that
|
||||||
|
# if you install a rare terminal emulator, you probably use it.
|
||||||
|
# gnome-terminal/konsole/xterm on the other hand are often installed as part of
|
||||||
|
# a desktop environment or as fallback terminal emulators.
|
||||||
|
mime ^ranger/x-terminal-emulator, has terminology = terminology -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has sakura = sakura -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has lilyterm = lilyterm -e "$@"
|
||||||
|
#mime ^ranger/x-terminal-emulator, has cool-retro-term = cool-retro-term -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has termite = termite -x '"$@"'
|
||||||
|
#mime ^ranger/x-terminal-emulator, has yakuake = yakuake -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has guake = guake -ne "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has tilda = tilda -c "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has st = st -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has terminator = terminator -x "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has urxvt = urxvt -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has pantheon-terminal = pantheon-terminal -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has lxterminal = lxterminal -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has mate-terminal = mate-terminal -x "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has xfce4-terminal = xfce4-terminal -x "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has konsole = konsole -e "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has gnome-terminal = gnome-terminal -- "$@"
|
||||||
|
mime ^ranger/x-terminal-emulator, has xterm = xterm -e "$@"
|
||||||
|
|
||||||
|
#-------------------------------------------
|
||||||
|
# Misc
|
||||||
|
#-------------------------------------------
|
||||||
|
label wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale "$1"
|
||||||
|
label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1"
|
||||||
|
label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1"
|
||||||
|
label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
|
||||||
|
|
||||||
|
# Define the editor for non-text files + pager as last action
|
||||||
|
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
|
||||||
|
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
|
||||||
|
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
|
||||||
|
|
||||||
|
# The very last action, so that it's never triggered accidentally, is to execute a program:
|
||||||
|
mime application/x-executable = "$1"
|
216
.config/.old/ranger/scope.sh
Executable file
216
.config/.old/ranger/scope.sh
Executable file
@ -0,0 +1,216 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -o noclobber -o noglob -o nounset -o pipefail
|
||||||
|
IFS=$'\n'
|
||||||
|
|
||||||
|
# If the option `use_preview_script` is set to `true`,
|
||||||
|
# then this script will be called and its output will be displayed in ranger.
|
||||||
|
# ANSI color codes are supported.
|
||||||
|
# STDIN is disabled, so interactive scripts won't work properly
|
||||||
|
|
||||||
|
# This script is considered a configuration file and must be updated manually.
|
||||||
|
# It will be left untouched if you upgrade ranger.
|
||||||
|
|
||||||
|
# Meanings of exit codes:
|
||||||
|
# code | meaning | action of ranger
|
||||||
|
# -----+------------+-------------------------------------------
|
||||||
|
# 0 | success | Display stdout as preview
|
||||||
|
# 1 | no preview | Display no preview at all
|
||||||
|
# 2 | plain text | Display the plain content of the file
|
||||||
|
# 3 | fix width | Don't reload when width changes
|
||||||
|
# 4 | fix height | Don't reload when height changes
|
||||||
|
# 5 | fix both | Don't ever reload
|
||||||
|
# 6 | image | Display the image `$IMAGE_CACHE_PATH` points to as an image preview
|
||||||
|
# 7 | image | Display the file directly as an image
|
||||||
|
|
||||||
|
# Script arguments
|
||||||
|
FILE_PATH="${1}" # Full path of the highlighted file
|
||||||
|
PV_WIDTH="${2}" # Width of the preview pane (number of fitting characters)
|
||||||
|
PV_HEIGHT="${3}" # Height of the preview pane (number of fitting characters)
|
||||||
|
IMAGE_CACHE_PATH="${4}" # Full path that should be used to cache image preview
|
||||||
|
PV_IMAGE_ENABLED="${5}" # 'True' if image previews are enabled, 'False' otherwise.
|
||||||
|
|
||||||
|
FILE_EXTENSION="${FILE_PATH##*.}"
|
||||||
|
FILE_EXTENSION_LOWER=$(echo ${FILE_EXTENSION} | tr '[:upper:]' '[:lower:]')
|
||||||
|
|
||||||
|
# Settings
|
||||||
|
HIGHLIGHT_SIZE_MAX=262143 # 256KiB
|
||||||
|
HIGHLIGHT_TABWIDTH=8
|
||||||
|
HIGHLIGHT_STYLE='pablo'
|
||||||
|
PYGMENTIZE_STYLE='autumn'
|
||||||
|
|
||||||
|
|
||||||
|
handle_extension() {
|
||||||
|
case "${FILE_EXTENSION_LOWER}" in
|
||||||
|
# Archive
|
||||||
|
a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\
|
||||||
|
rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)
|
||||||
|
atool --list -- "${FILE_PATH}" && exit 5
|
||||||
|
bsdtar --list --file "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
rar)
|
||||||
|
# Avoid password prompt by providing empty password
|
||||||
|
unrar lt -p- -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
7z)
|
||||||
|
# Avoid password prompt by providing empty password
|
||||||
|
7z l -p -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
# PDF
|
||||||
|
pdf)
|
||||||
|
# Preview as text conversion
|
||||||
|
pdftotext -l 10 -nopgbrk -q -- "${FILE_PATH}" - | fmt -w ${PV_WIDTH} && exit 5
|
||||||
|
mutool draw -F txt -i -- "${FILE_PATH}" 1-10 | fmt -w ${PV_WIDTH} && exit 5
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
# BitTorrent
|
||||||
|
torrent)
|
||||||
|
transmission-show -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
# OpenDocument
|
||||||
|
odt|ods|odp|sxw)
|
||||||
|
# Preview as text conversion
|
||||||
|
odt2txt "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
# HTML
|
||||||
|
htm|html|xhtml)
|
||||||
|
# Preview as text conversion
|
||||||
|
w3m -dump "${FILE_PATH}" && exit 5
|
||||||
|
lynx -dump -- "${FILE_PATH}" && exit 5
|
||||||
|
elinks -dump "${FILE_PATH}" && exit 5
|
||||||
|
;; # Continue with next handler on failure
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
handle_image() {
|
||||||
|
local mimetype="${1}"
|
||||||
|
case "${mimetype}" in
|
||||||
|
# SVG
|
||||||
|
# image/svg+xml)
|
||||||
|
# convert "${FILE_PATH}" "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# exit 1;;
|
||||||
|
|
||||||
|
# Image
|
||||||
|
image/*)
|
||||||
|
local orientation
|
||||||
|
orientation="$( identify -format '%[EXIF:Orientation]\n' -- "${FILE_PATH}" )"
|
||||||
|
# If orientation data is present and the image actually
|
||||||
|
# needs rotating ("1" means no rotation)...
|
||||||
|
if [[ -n "$orientation" && "$orientation" != 1 ]]; then
|
||||||
|
# ...auto-rotate the image according to the EXIF data.
|
||||||
|
convert -- "${FILE_PATH}" -auto-orient "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
fi
|
||||||
|
|
||||||
|
# `w3mimgdisplay` will be called for all images (unless overriden as above),
|
||||||
|
# but might fail for unsupported types.
|
||||||
|
exit 7;;
|
||||||
|
|
||||||
|
# Video
|
||||||
|
# video/*)
|
||||||
|
# # Thumbnail
|
||||||
|
# ffmpegthumbnailer -i "${FILE_PATH}" -o "${IMAGE_CACHE_PATH}" -s 0 && exit 6
|
||||||
|
# exit 1;;
|
||||||
|
# PDF
|
||||||
|
# application/pdf)
|
||||||
|
# pdftoppm -f 1 -l 1 \
|
||||||
|
# -scale-to-x 1920 \
|
||||||
|
# -scale-to-y -1 \
|
||||||
|
# -singlefile \
|
||||||
|
# -jpeg -tiffcompression jpeg \
|
||||||
|
# -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
|
||||||
|
# && exit 6 || exit 1;;
|
||||||
|
|
||||||
|
# Preview archives using the first image inside.
|
||||||
|
# (Very useful for comic book collections for example.)
|
||||||
|
# application/zip|application/x-rar|application/x-7z-compressed|\
|
||||||
|
# application/x-xz|application/x-bzip2|application/x-gzip|application/x-tar)
|
||||||
|
# local fn=""; local fe=""
|
||||||
|
# local zip=""; local rar=""; local tar=""; local bsd=""
|
||||||
|
# case "${mimetype}" in
|
||||||
|
# application/zip) zip=1 ;;
|
||||||
|
# application/x-rar) rar=1 ;;
|
||||||
|
# application/x-7z-compressed) ;;
|
||||||
|
# *) tar=1 ;;
|
||||||
|
# esac
|
||||||
|
# { [ "$tar" ] && fn=$(tar --list --file "${FILE_PATH}"); } || \
|
||||||
|
# { fn=$(bsdtar --list --file "${FILE_PATH}") && bsd=1 && tar=""; } || \
|
||||||
|
# { [ "$rar" ] && fn=$(unrar lb -p- -- "${FILE_PATH}"); } || \
|
||||||
|
# { [ "$zip" ] && fn=$(zipinfo -1 -- "${FILE_PATH}"); } || return
|
||||||
|
#
|
||||||
|
# fn=$(echo "$fn" | python -c "import sys; import mimetypes as m; \
|
||||||
|
# [ print(l, end='') for l in sys.stdin if \
|
||||||
|
# (m.guess_type(l[:-1])[0] or '').startswith('image/') ]" |\
|
||||||
|
# sort -V | head -n 1)
|
||||||
|
# [ "$fn" = "" ] && return
|
||||||
|
# [ "$bsd" ] && fn=$(printf '%b' "$fn")
|
||||||
|
#
|
||||||
|
# [ "$tar" ] && tar --extract --to-stdout \
|
||||||
|
# --file "${FILE_PATH}" -- "$fn" > "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# fe=$(echo -n "$fn" | sed 's/[][*?\]/\\\0/g')
|
||||||
|
# [ "$bsd" ] && bsdtar --extract --to-stdout \
|
||||||
|
# --file "${FILE_PATH}" -- "$fe" > "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# [ "$bsd" ] || [ "$tar" ] && rm -- "${IMAGE_CACHE_PATH}"
|
||||||
|
# [ "$rar" ] && unrar p -p- -inul -- "${FILE_PATH}" "$fn" > \
|
||||||
|
# "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# [ "$zip" ] && unzip -pP "" -- "${FILE_PATH}" "$fe" > \
|
||||||
|
# "${IMAGE_CACHE_PATH}" && exit 6
|
||||||
|
# [ "$rar" ] || [ "$zip" ] && rm -- "${IMAGE_CACHE_PATH}"
|
||||||
|
# ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
handle_mime() {
|
||||||
|
local mimetype="${1}"
|
||||||
|
case "${mimetype}" in
|
||||||
|
# Text
|
||||||
|
text/* | */xml)
|
||||||
|
# Syntax highlight
|
||||||
|
if [[ "$( stat --printf='%s' -- "${FILE_PATH}" )" -gt "${HIGHLIGHT_SIZE_MAX}" ]]; then
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
if [[ "$( tput colors )" -ge 256 ]]; then
|
||||||
|
local pygmentize_format='terminal256'
|
||||||
|
local highlight_format='xterm256'
|
||||||
|
else
|
||||||
|
local pygmentize_format='terminal'
|
||||||
|
local highlight_format='ansi'
|
||||||
|
fi
|
||||||
|
highlight --replace-tabs="${HIGHLIGHT_TABWIDTH}" --out-format="${highlight_format}" \
|
||||||
|
--style="${HIGHLIGHT_STYLE}" --force -- "${FILE_PATH}" && exit 5
|
||||||
|
# pygmentize -f "${pygmentize_format}" -O "style=${PYGMENTIZE_STYLE}" -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 2;;
|
||||||
|
|
||||||
|
# Image
|
||||||
|
image/*)
|
||||||
|
# Preview as text conversion
|
||||||
|
# img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
|
||||||
|
# Video and audio
|
||||||
|
video/* | audio/*)
|
||||||
|
mediainfo "${FILE_PATH}" && exit 5
|
||||||
|
exiftool "${FILE_PATH}" && exit 5
|
||||||
|
exit 1;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
handle_fallback() {
|
||||||
|
echo '----- File Type Classification -----' && file --dereference --brief -- "${FILE_PATH}" && exit 5
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
MIMETYPE="$( file --dereference --brief --mime-type -- "${FILE_PATH}" )"
|
||||||
|
if [[ "${PV_IMAGE_ENABLED}" == 'True' ]]; then
|
||||||
|
handle_image "${MIMETYPE}"
|
||||||
|
fi
|
||||||
|
handle_extension
|
||||||
|
handle_mime "${MIMETYPE}"
|
||||||
|
handle_fallback
|
||||||
|
|
||||||
|
exit 1
|
102
.config/.old/termite/config
Normal file
102
.config/.old/termite/config
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
# Swy7ch' config file for termite
|
||||||
|
|
||||||
|
|
||||||
|
[options]
|
||||||
|
#allow_bold = true
|
||||||
|
#audible_bell = false
|
||||||
|
#bold_is_bright = true
|
||||||
|
#clickable_url = true
|
||||||
|
#dynamic_title = true
|
||||||
|
font = FuraCode Nerd Font Mono 16
|
||||||
|
#fullscreen = true
|
||||||
|
#icon_name = terminal
|
||||||
|
#mouse_autohide = false
|
||||||
|
#scroll_on_output = false
|
||||||
|
#scroll_on_keystroke = true
|
||||||
|
# Length of the scrollback buffer, 0 disabled the scrollback buffer
|
||||||
|
# and setting it to a negative value means "infinite scrollback"
|
||||||
|
scrollback_lines = 10000
|
||||||
|
#search_wrap = true
|
||||||
|
#urgent_on_bell = true
|
||||||
|
#hyperlinks = false
|
||||||
|
|
||||||
|
# $BROWSER is used by default if set, with xdg-open as a fallback
|
||||||
|
#browser = xdg-open
|
||||||
|
|
||||||
|
# "system", "on" or "off"
|
||||||
|
#cursor_blink = system
|
||||||
|
|
||||||
|
# "block", "underline" or "ibeam"
|
||||||
|
cursor_shape = block
|
||||||
|
|
||||||
|
# Hide links that are no longer valid in url select overlay mode
|
||||||
|
#filter_unmatched_urls = true
|
||||||
|
|
||||||
|
# Emit escape sequences for extra modified keys
|
||||||
|
#modify_other_keys = false
|
||||||
|
|
||||||
|
# set size hints for the window
|
||||||
|
#size_hints = false
|
||||||
|
|
||||||
|
# "off", "left" or "right"
|
||||||
|
#scrollbar = off
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
|
||||||
|
# If unset, will reverse foreground and background
|
||||||
|
highlight = #2f2f2f
|
||||||
|
|
||||||
|
# Colors from color0 to color254 can be set
|
||||||
|
|
||||||
|
# special
|
||||||
|
foreground = #d3d0c8
|
||||||
|
foreground_bold = #d3d0c8
|
||||||
|
cursor = #d3d0c8
|
||||||
|
cursor_foreground = #2d2d2d
|
||||||
|
background = rgba(0, 0, 0, 0.8)
|
||||||
|
|
||||||
|
# dark0 + gray
|
||||||
|
color0 = #282828
|
||||||
|
color8 = #928374
|
||||||
|
|
||||||
|
# neutral_red + bright_red
|
||||||
|
color1 = #cc241d
|
||||||
|
color9 = #fb4934
|
||||||
|
|
||||||
|
# neutral_green + bright_green
|
||||||
|
color2 = #98971a
|
||||||
|
color10 = #b8bb26
|
||||||
|
|
||||||
|
# neutral_yellow + bright_yellow
|
||||||
|
color3 = #d79921
|
||||||
|
color11 = #fabd2f
|
||||||
|
|
||||||
|
# neutral_blue + bright_blue
|
||||||
|
color4 = #83a598
|
||||||
|
color12 = #458588
|
||||||
|
|
||||||
|
# neutral_purple + bright_purple
|
||||||
|
color5 = #b16286
|
||||||
|
color13 = #d3869b
|
||||||
|
|
||||||
|
# neutral_aqua + faded_aqua
|
||||||
|
color6 = #689d6a
|
||||||
|
color14 = #8ec07c
|
||||||
|
|
||||||
|
# light4 + light1
|
||||||
|
color7 = #a89984
|
||||||
|
color15 = #ebdbb2
|
||||||
|
|
||||||
|
|
||||||
|
[hints]
|
||||||
|
#font = Monospace 12
|
||||||
|
#foreground = #dcdccc
|
||||||
|
#background = #3f3f3f
|
||||||
|
#active_foreground = #e68080
|
||||||
|
#active_background = #3f3f3f
|
||||||
|
#padding = 2
|
||||||
|
#border = #3f3f3f
|
||||||
|
#border_width = 0.5
|
||||||
|
#roundness = 2.0
|
||||||
|
|
||||||
|
# vim: ft=dosini cms=#%s
|
574
.config/.old/vim/colors/polyjuice.vim
Normal file
574
.config/.old/vim/colors/polyjuice.vim
Normal file
@ -0,0 +1,574 @@
|
|||||||
|
" Name: Polyjuice
|
||||||
|
" Description: A simple yet customizable pastel colorscheme
|
||||||
|
" Author: David JULIEN <swy7ch@protonmail.com>
|
||||||
|
" Maintainer: David JULIEN <swy7ch@protonmail.com>
|
||||||
|
" Website: https://github.com/vim/vim/blob/master/src/syntax.c
|
||||||
|
" License: Vim License (see `:help license`)
|
||||||
|
" Last Updated: Fri 19 Jun 2020 01:13:22 AM CEST
|
||||||
|
|
||||||
|
" Generated by Colortemplate v2.0.0
|
||||||
|
|
||||||
|
hi clear
|
||||||
|
if exists('syntax_on')
|
||||||
|
syntax reset
|
||||||
|
endif
|
||||||
|
|
||||||
|
let g:colors_name = 'polyjuice'
|
||||||
|
|
||||||
|
let s:t_Co = exists('&t_Co') && !empty(&t_Co) && &t_Co > 1 ? &t_Co : 2
|
||||||
|
|
||||||
|
hi! link EndOfBuffer NonText
|
||||||
|
hi! link QuickFixLine Search
|
||||||
|
hi! link Boolean Constant
|
||||||
|
hi! link Character Constant
|
||||||
|
hi! link Conditional Statement
|
||||||
|
hi! link Define PreProc
|
||||||
|
hi! link Debug Special
|
||||||
|
hi! link Delimiter Special
|
||||||
|
hi! link Exception Statement
|
||||||
|
hi! link Float Number
|
||||||
|
hi! link Function Identifier
|
||||||
|
hi! link Include PreProc
|
||||||
|
hi! link Keyword Statement
|
||||||
|
hi! link Label Statement
|
||||||
|
hi! link Macro PreProc
|
||||||
|
hi! link Number Constant
|
||||||
|
hi! link Operator Statement
|
||||||
|
hi! link PreCondit PreProc
|
||||||
|
hi! link Repeat Statement
|
||||||
|
hi! link SpecialChar Special
|
||||||
|
hi! link SpecialComment Special
|
||||||
|
hi! link StorageClass Type
|
||||||
|
hi! link String Constant
|
||||||
|
hi! link Structure Type
|
||||||
|
hi! link Tag Special
|
||||||
|
hi! link Typedef Type
|
||||||
|
|
||||||
|
if (has('termguicolors') && &termguicolors) || has('gui_running')
|
||||||
|
if &background ==# 'dark'
|
||||||
|
let g:terminal_ansi_colors = ['#1d2021', '#b73935', '#5d9179', '#f7a583',
|
||||||
|
\ '#458588', '#b16286', '#7cafa3', '#373737', '#7c6f64', '#ea6962',
|
||||||
|
\ '#89b594', '#ffeca3', '#7daea3', '#d3869b', '#ace5d7', '#ebdbb2']
|
||||||
|
hi Normal guifg=#ebdbb2 guibg=#1d2021 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Terminal guifg=#ebdbb2 guibg=#1d2021 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Cursor guifg=#1d2021 guibg=#ebdbb2 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi CursorLine guifg=NONE guibg=#373737 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi CursorColumn guifg=NONE guibg=#373737 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi CursorLineNr guifg=#f7a583 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Pmenu guifg=#ebdbb2 guibg=#1d2021 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi PmenuSel guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi PmenuSbar guifg=#1d2021 guibg=#7c6f64 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi PmenuThumb guifg=#ebdbb2 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SpellBad guifg=#ea6962 guibg=NONE guisp=NONE gui=underline cterm=underline
|
||||||
|
hi SpellCap guifg=#7daea3 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SpellLocal guifg=#ace5d7 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SpellRare guifg=#f7a583 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Conceal guifg=#7c6f64 guibg=#7c6f64 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi DiffAdd guifg=#1d2021 guibg=#5d9179 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi DiffChange guifg=#1d2021 guibg=#f7a583 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi DiffDelete guifg=#1d2021 guibg=#b73935 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi DiffText guifg=#1d2021 guibg=#ea6962 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Directory guifg=#d3869b guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Folded guifg=#f7a583 guibg=#458588 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi IncSearch guifg=NONE guibg=NONE guisp=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi LineNr guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi MatchParen guifg=NONE guibg=NONE guisp=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi ErrorMsg guifg=#ffeca3 guibg=#b73935 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi ModeMsg guifg=NONE guibg=NONE guisp=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi MoreMsg guifg=#89b594 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi WarningMsg guifg=#ea6962 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi NonText guifg=#7daea3 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Question guifg=#89b594 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Search guifg=#1d2021 guibg=#f7a583 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi ColorColumn guifg=NONE guibg=#b73935 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi FoldColumn guifg=#f7a583 guibg=#458588 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SignColumn guifg=NONE guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi SpecialKey guifg=#89b594 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi TabLine guifg=#ebdbb2 guibg=#7c6f64 guisp=NONE gui=underline cterm=underline
|
||||||
|
hi TabLineFill guifg=NONE guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLineSel guifg=NONE guibg=NONE guisp=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi Title guifg=#f7a583 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi VertSplit guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Visual guifg=#ffeca3 guibg=#b16286 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi VisualNOS guifg=NONE guibg=NONE guisp=NONE gui=bold,underline ctermfg=NONE ctermbg=NONE cterm=bold,underline
|
||||||
|
hi WildMenu guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Comment guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Constant guifg=#89b594 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Error guifg=#ebdbb2 guibg=#ea6962 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Identifier guifg=#7daea3 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Ignore guifg=#1d2021 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi PreProc guifg=#d3869b guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Special guifg=#f7a583 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Statement guifg=#ffeca3 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Todo guifg=#1d2021 guibg=#f7a583 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Type guifg=#ffeca3 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Underlined guifg=#458588 guibg=NONE guisp=NONE gui=underline cterm=underline
|
||||||
|
hi! link lCursor Cursor
|
||||||
|
hi ToolbarLine guifg=NONE guibg=#7c6f64 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi ToolbarButton guifg=#1d2021 guibg=#7c6f64 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitSummary guifg=#7daea3 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitBranch guifg=#5d9179 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitHeader guifg=#d3869b guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitFile guifg=#89b594 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi gitcommitType guifg=#ea6962 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi StatusLine guifg=NONE guibg=#1d2021 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi StatusLineTerm guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi StatusLineNC guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Buffer guifg=#89b594 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi NormalMode guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi VisualMode guifg=#1d2021 guibg=#d3869b guisp=NONE gui=bold cterm=bold
|
||||||
|
hi InsertMode guifg=#1d2021 guibg=#ace5d7 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi ReplaceMode guifg=#1d2021 guibg=#ea6962 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi CommandMode guifg=#ebdbb2 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi File guifg=#ebdbb2 guibg=#373737 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi FileType guifg=#7cafa3 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Percent guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Column guifg=#7cafa3 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
unlet s:t_Co
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
" Light background
|
||||||
|
let g:terminal_ansi_colors = ['#1d2021', '#b73935', '#5a8471', '#ef936b',
|
||||||
|
\ '#458588', '#b16286', '#7cafa3', '#373737', '#7c6f64', '#ea6962',
|
||||||
|
\ '#89b594', '#f7dea0', '#7daea3', '#d3869b', '#ace5d7', '#f9f7d7']
|
||||||
|
hi Normal guifg=#1d2021 guibg=#f9f7d7 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Terminal guifg=#1d2021 guibg=#f9f7d7 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Cursor guifg=#1d2021 guibg=#f7dea0 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi CursorLine guifg=#f9f7d7 guibg=#ef936b guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi CursorColumn guifg=#f9f7d7 guibg=#ef936b guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi CursorLineNr guifg=#ef936b guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Pmenu guifg=#1d2021 guibg=#f9f7d7 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi PmenuSel guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi PmenuSbar guifg=#1d2021 guibg=#7c6f64 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi PmenuThumb guifg=#1d2021 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SpellBad guifg=#ea6962 guibg=NONE guisp=NONE gui=underline cterm=underline
|
||||||
|
hi SpellCap guifg=#7daea3 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SpellLocal guifg=#ace5d7 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SpellRare guifg=#ef936b guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Conceal guifg=#7c6f64 guibg=#7c6f64 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi DiffAdd guifg=#1d2021 guibg=#5a8471 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi DiffChange guifg=#1d2021 guibg=#ef936b guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi DiffDelete guifg=#1d2021 guibg=#b73935 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi DiffText guifg=#1d2021 guibg=#ea6962 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Directory guifg=#d3869b guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Folded guifg=#ef936b guibg=#458588 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi IncSearch guifg=NONE guibg=NONE guisp=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi LineNr guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi MatchParen guifg=NONE guibg=NONE guisp=NONE gui=reverse ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi ErrorMsg guifg=#f7dea0 guibg=#b73935 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi ModeMsg guifg=NONE guibg=NONE guisp=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi MoreMsg guifg=#89b594 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi WarningMsg guifg=#ea6962 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi NonText guifg=#7daea3 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Question guifg=#89b594 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Search guifg=#1d2021 guibg=#ef936b guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi ColorColumn guifg=NONE guibg=#b73935 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi FoldColumn guifg=#ef936b guibg=#458588 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi SignColumn guifg=NONE guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi SpecialKey guifg=#5a8471 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi TabLine guifg=#f9f7d7 guibg=#7c6f64 guisp=NONE gui=underline cterm=underline
|
||||||
|
hi TabLineFill guifg=NONE guibg=NONE guisp=NONE gui=NONE ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLineSel guifg=NONE guibg=NONE guisp=NONE gui=bold ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi Title guifg=#ef936b guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi VertSplit guifg=#1d2021 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Visual guifg=#1d2021 guibg=#d3869b guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi VisualNOS guifg=NONE guibg=NONE guisp=NONE gui=bold,underline ctermfg=NONE ctermbg=NONE cterm=bold,underline
|
||||||
|
hi WildMenu guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Comment guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Constant guifg=#b16286 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Error guifg=#f9f7d7 guibg=#ea6962 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Identifier guifg=#5a8471 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Ignore guifg=#1d2021 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi PreProc guifg=#458588 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Special guifg=#ea6962 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Statement guifg=#ea6962 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Todo guifg=#1d2021 guibg=#ef936b guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Type guifg=#ef936b guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi Underlined guifg=#458588 guibg=NONE guisp=NONE gui=underline cterm=underline
|
||||||
|
hi! link lCursor Cursor
|
||||||
|
hi ToolbarLine guifg=NONE guibg=#7c6f64 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi ToolbarButton guifg=#1d2021 guibg=#7c6f64 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitSummary guifg=#458588 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitBranch guifg=#5a8471 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitHeader guifg=#b16286 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi gitcommitFile guifg=#5a8471 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi gitcommitType guifg=#ea6962 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi StatusLine guifg=NONE guibg=#f9f7d7 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi StatusLineTerm guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi StatusLineNC guifg=#7c6f64 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Buffer guifg=#373737 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi NormalMode guifg=#1d2021 guibg=#89b594 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi VisualMode guifg=#1d2021 guibg=#d3869b guisp=NONE gui=bold cterm=bold
|
||||||
|
hi InsertMode guifg=#1d2021 guibg=#ace5d7 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi ReplaceMode guifg=#1d2021 guibg=#ea6962 guisp=NONE gui=bold cterm=bold
|
||||||
|
hi CommandMode guifg=#1d2021 guibg=NONE guisp=NONE gui=bold cterm=bold
|
||||||
|
hi File guifg=#373737 guibg=#f7dea0 guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi FileType guifg=#458588 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Percent guifg=#373737 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
hi Column guifg=#458588 guibg=NONE guisp=NONE gui=NONE cterm=NONE
|
||||||
|
unlet s:t_Co
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
if s:t_Co >= 256
|
||||||
|
if &background ==# 'dark'
|
||||||
|
hi Normal ctermfg=229 ctermbg=234 cterm=NONE
|
||||||
|
if !has('patch-8.0.0616') " Fix for Vim bug
|
||||||
|
set background=dark
|
||||||
|
endif
|
||||||
|
hi Terminal ctermfg=229 ctermbg=234 cterm=NONE
|
||||||
|
hi Cursor ctermfg=234 ctermbg=229 cterm=NONE
|
||||||
|
hi CursorLine ctermfg=NONE ctermbg=243 cterm=NONE
|
||||||
|
hi CursorColumn ctermfg=NONE ctermbg=243 cterm=NONE
|
||||||
|
hi CursorLineNr ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi Pmenu ctermfg=229 ctermbg=234 cterm=NONE
|
||||||
|
hi PmenuSel ctermfg=234 ctermbg=71 cterm=bold
|
||||||
|
hi PmenuSbar ctermfg=234 ctermbg=243 cterm=NONE
|
||||||
|
hi PmenuThumb ctermfg=229 ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellBad ctermfg=203 ctermbg=NONE cterm=underline
|
||||||
|
hi SpellCap ctermfg=24 ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellLocal ctermfg=81 ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellRare ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi Conceal ctermfg=243 ctermbg=243 cterm=NONE
|
||||||
|
hi DiffAdd ctermfg=234 ctermbg=2 cterm=NONE
|
||||||
|
hi DiffChange ctermfg=234 ctermbg=216 cterm=NONE
|
||||||
|
hi DiffDelete ctermfg=234 ctermbg=160 cterm=NONE
|
||||||
|
hi DiffText ctermfg=234 ctermbg=203 cterm=bold
|
||||||
|
hi Directory ctermfg=181 ctermbg=NONE cterm=NONE
|
||||||
|
hi Folded ctermfg=216 ctermbg=24 cterm=NONE
|
||||||
|
hi IncSearch ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi LineNr ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi ErrorMsg ctermfg=230 ctermbg=160 cterm=bold
|
||||||
|
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi MoreMsg ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi WarningMsg ctermfg=203 ctermbg=NONE cterm=NONE
|
||||||
|
hi NonText ctermfg=24 ctermbg=NONE cterm=NONE
|
||||||
|
hi Question ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi Search ctermfg=234 ctermbg=216 cterm=NONE
|
||||||
|
hi ColorColumn ctermfg=NONE ctermbg=160 cterm=NONE
|
||||||
|
hi FoldColumn ctermfg=216 ctermbg=24 cterm=NONE
|
||||||
|
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi SpecialKey ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLine ctermfg=229 ctermbg=243 cterm=underline
|
||||||
|
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLineSel ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi Title ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi VertSplit ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi Visual ctermfg=230 ctermbg=138 cterm=NONE
|
||||||
|
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=bold,underline
|
||||||
|
hi WildMenu ctermfg=234 ctermbg=71 cterm=bold
|
||||||
|
hi Comment ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi Constant ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi Error ctermfg=229 ctermbg=203 cterm=bold
|
||||||
|
hi Identifier ctermfg=24 ctermbg=NONE cterm=bold
|
||||||
|
hi Ignore ctermfg=234 ctermbg=NONE cterm=NONE
|
||||||
|
hi PreProc ctermfg=181 ctermbg=NONE cterm=NONE
|
||||||
|
hi Special ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi Statement ctermfg=230 ctermbg=NONE cterm=NONE
|
||||||
|
hi Todo ctermfg=234 ctermbg=216 cterm=bold
|
||||||
|
hi Type ctermfg=230 ctermbg=NONE cterm=NONE
|
||||||
|
hi Underlined ctermfg=24 ctermbg=NONE cterm=underline
|
||||||
|
hi! link lCursor Cursor
|
||||||
|
hi ToolbarLine ctermfg=NONE ctermbg=243 cterm=NONE
|
||||||
|
hi ToolbarButton ctermfg=234 ctermbg=243 cterm=bold
|
||||||
|
hi gitcommitSummary ctermfg=24 ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitBranch ctermfg=2 ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitHeader ctermfg=181 ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitFile ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi gitcommitType ctermfg=203 ctermbg=NONE cterm=bold
|
||||||
|
hi StatusLine ctermfg=NONE ctermbg=234 cterm=NONE
|
||||||
|
hi StatusLineTerm ctermfg=234 ctermbg=71 cterm=bold
|
||||||
|
hi StatusLineNC ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi Buffer ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi NormalMode ctermfg=234 ctermbg=71 cterm=bold
|
||||||
|
hi VisualMode ctermfg=234 ctermbg=181 cterm=bold
|
||||||
|
hi InsertMode ctermfg=234 ctermbg=81 cterm=bold
|
||||||
|
hi ReplaceMode ctermfg=234 ctermbg=203 cterm=bold
|
||||||
|
hi CommandMode ctermfg=229 ctermbg=NONE cterm=bold
|
||||||
|
hi File ctermfg=229 ctermbg=243 cterm=NONE
|
||||||
|
hi FileType ctermfg=30 ctermbg=NONE cterm=NONE
|
||||||
|
hi Percent ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi Column ctermfg=30 ctermbg=NONE cterm=NONE
|
||||||
|
unlet s:t_Co
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
" Light background
|
||||||
|
hi Normal ctermbg=229 cterm=NONE
|
||||||
|
hi Terminal ctermbg=229 cterm=NONE
|
||||||
|
hi Cursor ctermbg=230 cterm=NONE
|
||||||
|
hi CursorLine ctermfg=229 ctermbg=216 cterm=NONE
|
||||||
|
hi CursorColumn ctermfg=229 ctermbg=216 cterm=NONE
|
||||||
|
hi CursorLineNr ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi Pmenu ctermbg=229 cterm=NONE
|
||||||
|
hi PmenuSel ctermbg=71 cterm=bold
|
||||||
|
hi PmenuSbar ctermbg=243 cterm=NONE
|
||||||
|
hi PmenuThumb ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellBad ctermfg=203 ctermbg=NONE cterm=underline
|
||||||
|
hi SpellCap ctermfg=24 ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellLocal ctermfg=81 ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellRare ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi Conceal ctermfg=243 ctermbg=243 cterm=NONE
|
||||||
|
hi DiffAdd ctermbg=2 cterm=NONE
|
||||||
|
hi DiffChange ctermbg=216 cterm=NONE
|
||||||
|
hi DiffDelete ctermbg=160 cterm=NONE
|
||||||
|
hi DiffText ctermbg=203 cterm=bold
|
||||||
|
hi Directory ctermfg=181 ctermbg=NONE cterm=NONE
|
||||||
|
hi Folded ctermfg=216 ctermbg=24 cterm=NONE
|
||||||
|
hi IncSearch ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi LineNr ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi ErrorMsg ctermfg=230 ctermbg=160 cterm=bold
|
||||||
|
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi MoreMsg ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi WarningMsg ctermfg=203 ctermbg=NONE cterm=NONE
|
||||||
|
hi NonText ctermfg=24 ctermbg=NONE cterm=NONE
|
||||||
|
hi Question ctermfg=71 ctermbg=NONE cterm=NONE
|
||||||
|
hi Search ctermbg=216 cterm=NONE
|
||||||
|
hi ColorColumn ctermfg=NONE ctermbg=160 cterm=NONE
|
||||||
|
hi FoldColumn ctermfg=216 ctermbg=24 cterm=NONE
|
||||||
|
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi SpecialKey ctermfg=2 ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLine ctermfg=229 ctermbg=243 cterm=underline
|
||||||
|
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLineSel ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi Title ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi VertSplit ctermbg=NONE cterm=NONE
|
||||||
|
hi Visual ctermbg=181 cterm=NONE
|
||||||
|
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=bold,underline
|
||||||
|
hi WildMenu ctermbg=71 cterm=bold
|
||||||
|
hi Comment ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi Constant ctermfg=138 ctermbg=NONE cterm=NONE
|
||||||
|
hi Error ctermfg=229 ctermbg=203 cterm=bold
|
||||||
|
hi Identifier ctermfg=2 ctermbg=NONE cterm=bold
|
||||||
|
hi Ignore ctermbg=NONE cterm=NONE
|
||||||
|
hi PreProc ctermfg=24 ctermbg=NONE cterm=NONE
|
||||||
|
hi Special ctermfg=203 ctermbg=NONE cterm=NONE
|
||||||
|
hi Statement ctermfg=203 ctermbg=NONE cterm=NONE
|
||||||
|
hi Todo ctermbg=216 cterm=bold
|
||||||
|
hi Type ctermfg=216 ctermbg=NONE cterm=NONE
|
||||||
|
hi Underlined ctermfg=24 ctermbg=NONE cterm=underline
|
||||||
|
hi! link lCursor Cursor
|
||||||
|
hi ToolbarLine ctermfg=NONE ctermbg=243 cterm=NONE
|
||||||
|
hi ToolbarButton ctermbg=243 cterm=bold
|
||||||
|
hi gitcommitSummary ctermfg=24 ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitBranch ctermfg=2 ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitHeader ctermfg=138 ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitFile ctermfg=2 ctermbg=NONE cterm=NONE
|
||||||
|
hi gitcommitType ctermfg=203 ctermbg=NONE cterm=bold
|
||||||
|
hi StatusLine ctermfg=NONE ctermbg=229 cterm=NONE
|
||||||
|
hi StatusLineTerm ctermbg=71 cterm=bold
|
||||||
|
hi StatusLineNC ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi Buffer ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi NormalMode ctermbg=71 cterm=bold
|
||||||
|
hi VisualMode ctermbg=181 cterm=bold
|
||||||
|
hi InsertMode ctermbg=81 cterm=bold
|
||||||
|
hi ReplaceMode ctermbg=203 cterm=bold
|
||||||
|
hi CommandMode ctermbg=NONE cterm=bold
|
||||||
|
hi File ctermfg=243 ctermbg=230 cterm=NONE
|
||||||
|
hi FileType ctermfg=24 ctermbg=NONE cterm=NONE
|
||||||
|
hi Percent ctermfg=243 ctermbg=NONE cterm=NONE
|
||||||
|
hi Column ctermfg=24 ctermbg=NONE cterm=NONE
|
||||||
|
unlet s:t_Co
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
if s:t_Co >= 8
|
||||||
|
if &background ==# 'dark'
|
||||||
|
hi Normal ctermfg=LightYellow ctermbg=Black cterm=NONE
|
||||||
|
hi Terminal ctermfg=LightYellow ctermbg=Black cterm=NONE
|
||||||
|
hi Cursor ctermfg=Black ctermbg=LightYellow cterm=NONE
|
||||||
|
hi CursorLine ctermfg=NONE ctermbg=Grey cterm=NONE
|
||||||
|
hi CursorColumn ctermfg=NONE ctermbg=Grey cterm=NONE
|
||||||
|
hi CursorLineNr ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi Pmenu ctermfg=LightYellow ctermbg=Black cterm=NONE
|
||||||
|
hi PmenuSel ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi PmenuSbar ctermfg=Black ctermbg=Grey cterm=NONE
|
||||||
|
hi PmenuThumb ctermfg=LightYellow ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellBad ctermfg=Red ctermbg=NONE cterm=underline
|
||||||
|
hi SpellCap ctermfg=DarkCyan ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellLocal ctermfg=LightBlue ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellRare ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi Conceal ctermfg=Grey ctermbg=Grey cterm=NONE
|
||||||
|
hi DiffAdd ctermfg=Black ctermbg=DarkGreen cterm=NONE
|
||||||
|
hi DiffChange ctermfg=Black ctermbg=LightRed cterm=NONE
|
||||||
|
hi DiffDelete ctermfg=Black ctermbg=DarkRed cterm=NONE
|
||||||
|
hi DiffText ctermfg=Black ctermbg=Red cterm=bold
|
||||||
|
hi Directory ctermfg=Magenta ctermbg=NONE cterm=NONE
|
||||||
|
hi Folded ctermfg=LightRed ctermbg=DarkBlue cterm=NONE
|
||||||
|
hi IncSearch ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi LineNr ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi ErrorMsg ctermfg=LightYellow ctermbg=DarkRed cterm=bold
|
||||||
|
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi MoreMsg ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi WarningMsg ctermfg=Red ctermbg=NONE cterm=NONE
|
||||||
|
hi NonText ctermfg=DarkCyan ctermbg=NONE cterm=NONE
|
||||||
|
hi Question ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi Search ctermfg=Black ctermbg=LightRed cterm=NONE
|
||||||
|
hi ColorColumn ctermfg=NONE ctermbg=DarkRed cterm=NONE
|
||||||
|
hi FoldColumn ctermfg=LightRed ctermbg=DarkBlue cterm=NONE
|
||||||
|
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi SpecialKey ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLine ctermfg=LightYellow ctermbg=Grey cterm=underline
|
||||||
|
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLineSel ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi Title ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi VertSplit ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi Visual ctermfg=LightYellow ctermbg=DarkMagenta cterm=NONE
|
||||||
|
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=bold,underline
|
||||||
|
hi WildMenu ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi Comment ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi Constant ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi Error ctermfg=LightYellow ctermbg=Red cterm=bold
|
||||||
|
hi Identifier ctermfg=DarkCyan ctermbg=NONE cterm=bold
|
||||||
|
hi Ignore ctermfg=Black ctermbg=NONE cterm=NONE
|
||||||
|
hi PreProc ctermfg=Magenta ctermbg=NONE cterm=NONE
|
||||||
|
hi Special ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi Statement ctermfg=LightYellow ctermbg=NONE cterm=NONE
|
||||||
|
hi Todo ctermfg=Black ctermbg=LightRed cterm=bold
|
||||||
|
hi Type ctermfg=LightYellow ctermbg=NONE cterm=NONE
|
||||||
|
hi Underlined ctermfg=DarkBlue ctermbg=NONE cterm=underline
|
||||||
|
hi! link lCursor Cursor
|
||||||
|
hi ToolbarLine ctermfg=NONE ctermbg=Grey cterm=NONE
|
||||||
|
hi ToolbarButton ctermfg=Black ctermbg=Grey cterm=bold
|
||||||
|
hi gitcommitSummary ctermfg=DarkCyan ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitBranch ctermfg=DarkGreen ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitHeader ctermfg=Magenta ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitFile ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi gitcommitType ctermfg=Red ctermbg=NONE cterm=bold
|
||||||
|
hi StatusLine ctermfg=NONE ctermbg=Black cterm=NONE
|
||||||
|
hi StatusLineTerm ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi StatusLineNC ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi Buffer ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi NormalMode ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi VisualMode ctermfg=Black ctermbg=Magenta cterm=bold
|
||||||
|
hi InsertMode ctermfg=Black ctermbg=LightBlue cterm=bold
|
||||||
|
hi ReplaceMode ctermfg=Black ctermbg=Red cterm=bold
|
||||||
|
hi CommandMode ctermfg=LightYellow ctermbg=NONE cterm=bold
|
||||||
|
hi File ctermfg=LightYellow ctermbg=Grey cterm=NONE
|
||||||
|
hi FileType ctermfg=DarkCyan ctermbg=NONE cterm=NONE
|
||||||
|
hi Percent ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi Column ctermfg=DarkCyan ctermbg=NONE cterm=NONE
|
||||||
|
unlet s:t_Co
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
" Light background
|
||||||
|
hi Normal ctermfg=Black ctermbg=LightYellow cterm=NONE
|
||||||
|
hi Terminal ctermfg=Black ctermbg=LightYellow cterm=NONE
|
||||||
|
hi Cursor ctermfg=Black ctermbg=LightYellow cterm=NONE
|
||||||
|
hi CursorLine ctermfg=LightYellow ctermbg=LightRed cterm=NONE
|
||||||
|
hi CursorColumn ctermfg=LightYellow ctermbg=LightRed cterm=NONE
|
||||||
|
hi CursorLineNr ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi Pmenu ctermfg=Black ctermbg=LightYellow cterm=NONE
|
||||||
|
hi PmenuSel ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi PmenuSbar ctermfg=Black ctermbg=Grey cterm=NONE
|
||||||
|
hi PmenuThumb ctermfg=Black ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellBad ctermfg=Red ctermbg=NONE cterm=underline
|
||||||
|
hi SpellCap ctermfg=DarkCyan ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellLocal ctermfg=LightBlue ctermbg=NONE cterm=NONE
|
||||||
|
hi SpellRare ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi Conceal ctermfg=Grey ctermbg=Grey cterm=NONE
|
||||||
|
hi DiffAdd ctermfg=Black ctermbg=DarkGreen cterm=NONE
|
||||||
|
hi DiffChange ctermfg=Black ctermbg=LightRed cterm=NONE
|
||||||
|
hi DiffDelete ctermfg=Black ctermbg=DarkRed cterm=NONE
|
||||||
|
hi DiffText ctermfg=Black ctermbg=Red cterm=bold
|
||||||
|
hi Directory ctermfg=Magenta ctermbg=NONE cterm=NONE
|
||||||
|
hi Folded ctermfg=LightRed ctermbg=DarkBlue cterm=NONE
|
||||||
|
hi IncSearch ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi LineNr ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi MatchParen ctermfg=NONE ctermbg=NONE cterm=reverse
|
||||||
|
hi ErrorMsg ctermfg=LightYellow ctermbg=DarkRed cterm=bold
|
||||||
|
hi ModeMsg ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi MoreMsg ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi WarningMsg ctermfg=Red ctermbg=NONE cterm=NONE
|
||||||
|
hi NonText ctermfg=DarkCyan ctermbg=NONE cterm=NONE
|
||||||
|
hi Question ctermfg=Green ctermbg=NONE cterm=NONE
|
||||||
|
hi Search ctermfg=Black ctermbg=LightRed cterm=NONE
|
||||||
|
hi ColorColumn ctermfg=NONE ctermbg=DarkRed cterm=NONE
|
||||||
|
hi FoldColumn ctermfg=LightRed ctermbg=DarkBlue cterm=NONE
|
||||||
|
hi SignColumn ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi SpecialKey ctermfg=DarkGreen ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLine ctermfg=LightYellow ctermbg=Grey cterm=underline
|
||||||
|
hi TabLineFill ctermfg=NONE ctermbg=NONE cterm=NONE
|
||||||
|
hi TabLineSel ctermfg=NONE ctermbg=NONE cterm=bold
|
||||||
|
hi Title ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi VertSplit ctermfg=Black ctermbg=NONE cterm=NONE
|
||||||
|
hi Visual ctermfg=Black ctermbg=Magenta cterm=NONE
|
||||||
|
hi VisualNOS ctermfg=NONE ctermbg=NONE cterm=bold,underline
|
||||||
|
hi WildMenu ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi Comment ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi Constant ctermfg=DarkMagenta ctermbg=NONE cterm=NONE
|
||||||
|
hi Error ctermfg=LightYellow ctermbg=Red cterm=bold
|
||||||
|
hi Identifier ctermfg=DarkGreen ctermbg=NONE cterm=bold
|
||||||
|
hi Ignore ctermfg=Black ctermbg=NONE cterm=NONE
|
||||||
|
hi PreProc ctermfg=DarkBlue ctermbg=NONE cterm=NONE
|
||||||
|
hi Special ctermfg=Red ctermbg=NONE cterm=NONE
|
||||||
|
hi Statement ctermfg=Red ctermbg=NONE cterm=NONE
|
||||||
|
hi Todo ctermfg=Black ctermbg=LightRed cterm=bold
|
||||||
|
hi Type ctermfg=LightRed ctermbg=NONE cterm=NONE
|
||||||
|
hi Underlined ctermfg=DarkBlue ctermbg=NONE cterm=underline
|
||||||
|
hi! link lCursor Cursor
|
||||||
|
hi ToolbarLine ctermfg=NONE ctermbg=Grey cterm=NONE
|
||||||
|
hi ToolbarButton ctermfg=Black ctermbg=Grey cterm=bold
|
||||||
|
hi gitcommitSummary ctermfg=DarkBlue ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitBranch ctermfg=DarkGreen ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitHeader ctermfg=DarkMagenta ctermbg=NONE cterm=bold
|
||||||
|
hi gitcommitFile ctermfg=DarkGreen ctermbg=NONE cterm=NONE
|
||||||
|
hi gitcommitType ctermfg=Red ctermbg=NONE cterm=bold
|
||||||
|
hi StatusLine ctermfg=NONE ctermbg=LightYellow cterm=NONE
|
||||||
|
hi StatusLineTerm ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi StatusLineNC ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi Buffer ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi NormalMode ctermfg=Black ctermbg=Green cterm=bold
|
||||||
|
hi VisualMode ctermfg=Black ctermbg=Magenta cterm=bold
|
||||||
|
hi InsertMode ctermfg=Black ctermbg=LightBlue cterm=bold
|
||||||
|
hi ReplaceMode ctermfg=Black ctermbg=Red cterm=bold
|
||||||
|
hi CommandMode ctermfg=Black ctermbg=NONE cterm=bold
|
||||||
|
hi File ctermfg=Grey ctermbg=LightYellow cterm=NONE
|
||||||
|
hi FileType ctermfg=DarkBlue ctermbg=NONE cterm=NONE
|
||||||
|
hi Percent ctermfg=Grey ctermbg=NONE cterm=NONE
|
||||||
|
hi Column ctermfg=DarkBlue ctermbg=NONE cterm=NONE
|
||||||
|
unlet s:t_Co
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Background: dark
|
||||||
|
" Color: black #1d2021 234 Black
|
||||||
|
" Color: darkred #b73935 160 DarkRed
|
||||||
|
" Color: darkgreen #5d9179 2 DarkGreen
|
||||||
|
" Color: orange #f7a583 216 LightRed
|
||||||
|
" Color: darkblue #458588 24 DarkBlue
|
||||||
|
" Color: darkmagenta #b16286 138 DarkMagenta
|
||||||
|
" Color: darkcyan #7cafa3 30 DarkCyan
|
||||||
|
" Color: grey #7c6f64 243 Grey
|
||||||
|
" Color: darkgrey #373737 243 Grey
|
||||||
|
" Color: red #ea6962 203 Red
|
||||||
|
" Color: green #89b594 71 Green
|
||||||
|
" Color: yellow #ffeca3 230 LightYellow
|
||||||
|
" Color: blue #7daea3 24 DarkCyan
|
||||||
|
" Color: magenta #d3869b 181 Magenta
|
||||||
|
" Color: cyan #ace5d7 81 LightBlue
|
||||||
|
" Color: white #ebdbb2 229 LightYellow
|
||||||
|
" Term Colors: black darkred darkgreen orange darkblue darkmagenta darkcyan darkgrey
|
||||||
|
" Term Colors: grey red green yellow blue magenta cyan white
|
||||||
|
" Background: light
|
||||||
|
" Color: black #1d2021 0 Black
|
||||||
|
" Color: darkred #b73935 160 DarkRed
|
||||||
|
" Color: darkgreen #5a8471 2 DarkGreen
|
||||||
|
" Color: orange #ef936b 216 LightRed
|
||||||
|
" Color: darkblue #458588 24 DarkBlue
|
||||||
|
" Color: darkmagenta #b16286 138 DarkMagenta
|
||||||
|
" Color: darkcyan #7cafa3 30 DarkCyan
|
||||||
|
" Color: grey #7c6f64 243 Grey
|
||||||
|
" Color: darkgrey #373737 243 Grey
|
||||||
|
" Color: red #ea6962 203 Red
|
||||||
|
" Color: green #89b594 71 Green
|
||||||
|
" Color: yellow #f7dea0 230 LightYellow
|
||||||
|
" Color: blue #7daea3 24 DarkCyan
|
||||||
|
" Color: magenta #d3869b 181 Magenta
|
||||||
|
" Color: cyan #ace5d7 81 LightBlue
|
||||||
|
" Color: white #f9f7d7 229 LightYellow
|
||||||
|
" Term Colors: black darkred darkgreen orange darkblue darkmagenta darkcyan darkgrey
|
||||||
|
" Term Colors: grey red green yellow blue magenta cyan white
|
||||||
|
" vim: et ts=2 sw=2
|
273
.config/.old/vim/polyjuice.colortemplate
Normal file
273
.config/.old/vim/polyjuice.colortemplate
Normal file
@ -0,0 +1,273 @@
|
|||||||
|
# vim: ft=colortemplate fdm=marker cc=22,42,60 et ts=2 sw=2
|
||||||
|
|
||||||
|
# Information {{{
|
||||||
|
Full name: Polyjuice
|
||||||
|
Short name: polyjuice
|
||||||
|
Author: David JULIEN <swy7ch@protonmail.com>
|
||||||
|
Maintainer: David JULIEN <swy7ch@protonmail.com>
|
||||||
|
Website: https://github.com/vim/vim/blob/master/src/syntax.c
|
||||||
|
Description: A simple yet customizable pastel colorscheme
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# Common linked groups {{{
|
||||||
|
EndOfBuffer -> NonText
|
||||||
|
QuickFixLine -> Search
|
||||||
|
Boolean -> Constant
|
||||||
|
Character -> Constant
|
||||||
|
Conditional -> Statement
|
||||||
|
Define -> PreProc
|
||||||
|
Debug -> Special
|
||||||
|
Delimiter -> Special
|
||||||
|
Exception -> Statement
|
||||||
|
Float -> Number
|
||||||
|
Function -> Identifier
|
||||||
|
Include -> PreProc
|
||||||
|
Keyword -> Statement
|
||||||
|
Label -> Statement
|
||||||
|
Macro -> PreProc
|
||||||
|
Number -> Constant
|
||||||
|
Operator -> Statement
|
||||||
|
PreCondit -> PreProc
|
||||||
|
Repeat -> Statement
|
||||||
|
SpecialChar -> Special
|
||||||
|
SpecialComment -> Special
|
||||||
|
StorageClass -> Type
|
||||||
|
String -> Constant
|
||||||
|
Structure -> Type
|
||||||
|
Tag -> Special
|
||||||
|
Typedef -> Type
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
Background: dark
|
||||||
|
|
||||||
|
# Color palette {{{
|
||||||
|
# Color name GUI Base256 Base16
|
||||||
|
Color: black #1d2021 234 Black
|
||||||
|
Color: darkred #b73935 160 DarkRed
|
||||||
|
Color: darkgreen #5d9179 2 DarkGreen
|
||||||
|
Color: orange #f7a583 216 LightRed
|
||||||
|
Color: darkblue #458588 24 DarkBlue
|
||||||
|
Color: darkmagenta #b16286 138 DarkMagenta
|
||||||
|
Color: darkcyan #7cafa3 30 DarkCyan
|
||||||
|
Color: grey #7c6f64 243 Grey
|
||||||
|
Color: darkgrey #373737 243 Grey
|
||||||
|
Color: red #ea6962 203 Red
|
||||||
|
Color: green #89b594 71 Green
|
||||||
|
Color: yellow #ffeca3 230 LightYellow
|
||||||
|
Color: blue #7daea3 24 DarkCyan
|
||||||
|
Color: magenta #d3869b 181 Magenta
|
||||||
|
Color: cyan #ace5d7 81 LightBlue
|
||||||
|
Color: white #ebdbb2 229 LightYellow
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# Terminal colors {{{
|
||||||
|
# Vim by default does not define g:terminal_ansi_colors
|
||||||
|
Term Colors: black darkred darkgreen orange darkblue darkmagenta darkcyan darkgrey
|
||||||
|
Term Colors: grey red green yellow blue magenta cyan white
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# Default highlight groups for dark variant {{{
|
||||||
|
|
||||||
|
Variant: gui 256 8
|
||||||
|
|
||||||
|
# Group Foreground Background Attributes
|
||||||
|
# NOTE: Vim's default does not define Normal
|
||||||
|
Normal white black
|
||||||
|
Terminal white black
|
||||||
|
Cursor black white
|
||||||
|
CursorLine none darkgrey
|
||||||
|
CursorColumn none darkgrey
|
||||||
|
CursorLineNr orange none g=bold
|
||||||
|
Pmenu white black
|
||||||
|
PmenuSel black green bold
|
||||||
|
PmenuSbar black grey
|
||||||
|
PmenuThumb white none
|
||||||
|
SpellBad red none underline
|
||||||
|
SpellCap blue none
|
||||||
|
SpellLocal cyan none
|
||||||
|
SpellRare orange none
|
||||||
|
Conceal grey grey
|
||||||
|
DiffAdd black darkgreen
|
||||||
|
DiffChange black orange
|
||||||
|
DiffDelete black darkred g=bold
|
||||||
|
DiffText black red bold
|
||||||
|
Directory magenta none
|
||||||
|
Folded orange darkblue
|
||||||
|
IncSearch none none reverse
|
||||||
|
LineNr grey none
|
||||||
|
MatchParen none none reverse
|
||||||
|
ErrorMsg yellow darkred bold
|
||||||
|
ModeMsg none none bold
|
||||||
|
MoreMsg green none g=bold
|
||||||
|
WarningMsg red none
|
||||||
|
NonText blue none g=bold
|
||||||
|
Question green none g=bold
|
||||||
|
Search black orange
|
||||||
|
ColorColumn none darkred
|
||||||
|
FoldColumn orange darkblue
|
||||||
|
SignColumn none none
|
||||||
|
SpecialKey green none
|
||||||
|
TabLine white grey underline
|
||||||
|
TabLineFill none none
|
||||||
|
TabLineSel none none bold
|
||||||
|
Title orange none g=bold
|
||||||
|
VertSplit grey none
|
||||||
|
Visual yellow darkmagenta
|
||||||
|
VisualNOS none none underline,bold
|
||||||
|
WildMenu black green bold
|
||||||
|
# Other conventional group names (see `:help group-name`)
|
||||||
|
Comment grey none
|
||||||
|
Constant green none
|
||||||
|
Error white red bold
|
||||||
|
Identifier blue none bold
|
||||||
|
Ignore black none
|
||||||
|
PreProc magenta none
|
||||||
|
Special orange none
|
||||||
|
Statement yellow none g=bold
|
||||||
|
Todo black orange bold
|
||||||
|
Type yellow none g=bold
|
||||||
|
Underlined darkblue none underline
|
||||||
|
# See `:help lCursor`
|
||||||
|
lCursor -> Cursor
|
||||||
|
# See `:help window-toolbar`
|
||||||
|
ToolbarLine none grey
|
||||||
|
ToolbarButton black grey bold
|
||||||
|
# git
|
||||||
|
gitcommitSummary blue none bold
|
||||||
|
gitcommitBranch darkgreen none bold
|
||||||
|
gitcommitHeader magenta none bold
|
||||||
|
gitcommitFile green none
|
||||||
|
gitcommitType red none bold
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# Statusline
|
||||||
|
StatusLine none black
|
||||||
|
StatusLineTerm black green bold
|
||||||
|
StatusLineNC grey none
|
||||||
|
Buffer green none
|
||||||
|
NormalMode black green bold
|
||||||
|
VisualMode black magenta bold
|
||||||
|
InsertMode black cyan bold
|
||||||
|
ReplaceMode black red bold
|
||||||
|
CommandMode white none bold
|
||||||
|
File white darkgrey
|
||||||
|
FileType darkcyan none
|
||||||
|
Percent grey none
|
||||||
|
Column darkcyan none
|
||||||
|
|
||||||
|
##########
|
||||||
|
|
||||||
|
Background: light
|
||||||
|
|
||||||
|
# Color palette {{{
|
||||||
|
# Color name GUI Base256 Base16
|
||||||
|
Color: black #1d2021 0 Black
|
||||||
|
Color: darkred #b73935 160 DarkRed
|
||||||
|
Color: darkgreen #5a8471 2 DarkGreen
|
||||||
|
Color: orange #ef936b 216 LightRed
|
||||||
|
Color: darkblue #458588 24 DarkBlue
|
||||||
|
Color: darkmagenta #b16286 138 DarkMagenta
|
||||||
|
Color: darkcyan #7cafa3 30 DarkCyan
|
||||||
|
Color: grey #7c6f64 243 Grey
|
||||||
|
Color: darkgrey #373737 243 Grey
|
||||||
|
Color: red #ea6962 203 Red
|
||||||
|
Color: green #89b594 71 Green
|
||||||
|
Color: yellow #f7dea0 230 LightYellow
|
||||||
|
Color: blue #7daea3 24 DarkCyan
|
||||||
|
Color: magenta #d3869b 181 Magenta
|
||||||
|
Color: cyan #ace5d7 81 LightBlue
|
||||||
|
Color: white #f9f7d7 229 LightYellow
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# Terminal colors {{{
|
||||||
|
# Vim by default does not define g:terminal_ansi_colors
|
||||||
|
Term Colors: black darkred darkgreen orange darkblue darkmagenta darkcyan darkgrey
|
||||||
|
Term Colors: grey red green yellow blue magenta cyan white
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
Variant: gui 256 8
|
||||||
|
|
||||||
|
# Group Foreground Background Attributes
|
||||||
|
# NOTE: Vim's default does not define Normal
|
||||||
|
Normal black white
|
||||||
|
Terminal black white
|
||||||
|
Cursor black yellow
|
||||||
|
CursorLine white orange
|
||||||
|
CursorColumn white orange
|
||||||
|
CursorLineNr orange none g=bold
|
||||||
|
Pmenu black white
|
||||||
|
PmenuSel black green bold
|
||||||
|
PmenuSbar black grey
|
||||||
|
PmenuThumb black none
|
||||||
|
SpellBad red none underline
|
||||||
|
SpellCap blue none
|
||||||
|
SpellLocal cyan none
|
||||||
|
SpellRare orange none
|
||||||
|
Conceal grey grey
|
||||||
|
DiffAdd black darkgreen
|
||||||
|
DiffChange black orange
|
||||||
|
DiffDelete black darkred g=bold
|
||||||
|
DiffText black red bold
|
||||||
|
Directory magenta none
|
||||||
|
Folded orange darkblue
|
||||||
|
IncSearch none none reverse
|
||||||
|
LineNr grey none
|
||||||
|
MatchParen none none reverse
|
||||||
|
ErrorMsg yellow darkred bold
|
||||||
|
ModeMsg none none bold
|
||||||
|
MoreMsg green none g=bold
|
||||||
|
WarningMsg red none
|
||||||
|
NonText blue none g=bold
|
||||||
|
Question green none g=bold
|
||||||
|
Search black orange
|
||||||
|
ColorColumn none darkred
|
||||||
|
FoldColumn orange darkblue
|
||||||
|
SignColumn none none
|
||||||
|
SpecialKey darkgreen none
|
||||||
|
TabLine white grey underline
|
||||||
|
TabLineFill none none
|
||||||
|
TabLineSel none none bold
|
||||||
|
Title orange none g=bold
|
||||||
|
VertSplit black none
|
||||||
|
Visual black magenta
|
||||||
|
VisualNOS none none underline,bold
|
||||||
|
WildMenu black green bold
|
||||||
|
# Other conventional group names (see `:help group-name`)
|
||||||
|
Comment grey none
|
||||||
|
Constant darkmagenta none
|
||||||
|
Error white red bold
|
||||||
|
Identifier darkgreen none bold
|
||||||
|
Ignore black none
|
||||||
|
PreProc darkblue none
|
||||||
|
Special red none
|
||||||
|
Statement red none g=bold
|
||||||
|
Todo black orange bold
|
||||||
|
Type orange none g=bold
|
||||||
|
Underlined darkblue none underline
|
||||||
|
# See `:help lCursor`
|
||||||
|
lCursor -> Cursor
|
||||||
|
# See `:help window-toolbar`
|
||||||
|
ToolbarLine none grey
|
||||||
|
ToolbarButton black grey bold
|
||||||
|
# git
|
||||||
|
gitcommitSummary darkblue none bold
|
||||||
|
gitcommitBranch darkgreen none bold
|
||||||
|
gitcommitHeader darkmagenta none bold
|
||||||
|
gitcommitFile darkgreen none
|
||||||
|
gitcommitType red none bold
|
||||||
|
# }}}
|
||||||
|
|
||||||
|
# Statusline
|
||||||
|
StatusLine none white
|
||||||
|
StatusLineTerm black green bold
|
||||||
|
StatusLineNC grey none
|
||||||
|
Buffer darkgrey none
|
||||||
|
NormalMode black green bold
|
||||||
|
VisualMode black magenta bold
|
||||||
|
InsertMode black cyan bold
|
||||||
|
ReplaceMode black red bold
|
||||||
|
CommandMode black none bold
|
||||||
|
File darkgrey yellow
|
||||||
|
FileType darkblue none
|
||||||
|
Percent darkgrey none
|
||||||
|
Column darkblue none
|
128
.config/.old/vim/statusline.vim
Normal file
128
.config/.old/vim/statusline.vim
Normal file
@ -0,0 +1,128 @@
|
|||||||
|
function! CurrentMode()
|
||||||
|
let g:currentmode={
|
||||||
|
\ 'n' : '[ NRM ]',
|
||||||
|
\ 'v' : '[ VIS ]',
|
||||||
|
\ 'V' : '[ V·L ]',
|
||||||
|
\ '' : '[ V·B ]',
|
||||||
|
\ 'i' : '[ INS ]',
|
||||||
|
\ 'R' : '[ RPL ]',
|
||||||
|
\ 'Rv' : '[ V·R ]',
|
||||||
|
\ 'c' : '[ CMD ]',
|
||||||
|
\}
|
||||||
|
|
||||||
|
return g:currentmode[mode()]
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! ModeColor()
|
||||||
|
let g:modecolor={
|
||||||
|
\ 'n' : '%#NormalMode#',
|
||||||
|
\ 'v' : '%#VisualMode#',
|
||||||
|
\ 'V' : '%#VisualMode#',
|
||||||
|
\ '' : '%#VisualMode#',
|
||||||
|
\ 'i' : '%#InsertMode#',
|
||||||
|
\ 'R' : '%#ReplaceMode#',
|
||||||
|
\ 'Rv' : '%#ReplaceMode#',
|
||||||
|
\ 'c' : '%#CommandMode#',
|
||||||
|
\}
|
||||||
|
|
||||||
|
return g:modecolor[mode()]
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! FileName()
|
||||||
|
let g:name=' '
|
||||||
|
if winwidth(0)>90
|
||||||
|
let g:name.='%F'
|
||||||
|
else
|
||||||
|
let g:name.='%t'
|
||||||
|
endif
|
||||||
|
|
||||||
|
return g:name
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! StatusLine()
|
||||||
|
let l:statusline=''
|
||||||
|
|
||||||
|
" Buffer number
|
||||||
|
let l:statusline.='%#Buffer#'
|
||||||
|
let l:statusline.='[%n]'
|
||||||
|
|
||||||
|
" Show current mode
|
||||||
|
let l:statusline.=ModeColor()
|
||||||
|
let l:statusline.=CurrentMode().'%*'
|
||||||
|
|
||||||
|
" File path, absolute or relative to ~/
|
||||||
|
let l:statusline.='%#File#'
|
||||||
|
let l:statusline.=FileName()
|
||||||
|
|
||||||
|
" File status
|
||||||
|
let l:statusline .= "%{&readonly?' [RO]':''}"
|
||||||
|
let l:statusline .= "%{&modified?' [MO]':''}"
|
||||||
|
|
||||||
|
" Truncate line here
|
||||||
|
let l:statusline.='%<'
|
||||||
|
|
||||||
|
" Separation point between left and right aligned items.
|
||||||
|
let l:statusline.='%=%* '
|
||||||
|
|
||||||
|
let l:statusline.='%#SpellLocal#'
|
||||||
|
let l:statusline.="%{&spell?'[SPELL] ':''}%*"
|
||||||
|
|
||||||
|
" Filetype
|
||||||
|
let l:statusline.='%#FileType#'
|
||||||
|
let l:statusline.="%{&filetype!=#''?&filetype.' ':'no ft '}%*"
|
||||||
|
|
||||||
|
" Encoding & Fileformat
|
||||||
|
"let l:statusline.='%#WarningMsg#'
|
||||||
|
"let l:statusline.="%{&fileencoding!='utf-8'?'['.&fileencoding.'] ':''}%*"
|
||||||
|
|
||||||
|
" Depth
|
||||||
|
let l:statusline.='%#Percent#'
|
||||||
|
let l:statusline.='%03.p%%%* '
|
||||||
|
|
||||||
|
" Location of cursor in line
|
||||||
|
let l:statusline.='%#Column#'
|
||||||
|
let l:statusline.='-%03.c-'
|
||||||
|
|
||||||
|
return l:statusline
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! StatusLineNC()
|
||||||
|
let l:statusline=''
|
||||||
|
|
||||||
|
" Buffer number
|
||||||
|
let l:statusline.='[%n]'
|
||||||
|
|
||||||
|
" File name and status
|
||||||
|
let l:statusline.=' %t'
|
||||||
|
|
||||||
|
let l:statusline .= "%{&readonly?' [MO]':''}"
|
||||||
|
let l:statusline .= "%{&modified?' [RO]':''}"
|
||||||
|
|
||||||
|
" Truncate line here
|
||||||
|
let l:statusline.='%<'
|
||||||
|
|
||||||
|
" Separation point between left and right aligned items.
|
||||||
|
let l:statusline.='%='
|
||||||
|
|
||||||
|
" Depth
|
||||||
|
let l:statusline.='%#Percent#'
|
||||||
|
let l:statusline.='%03.p%%'
|
||||||
|
|
||||||
|
return l:statusline
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! UpdateInactiveWindows()
|
||||||
|
for winnum in range(1, winnr('$'))
|
||||||
|
if winnum != winnr()
|
||||||
|
call setwinvar(winnum, '&statusline', '%!StatusLineNC()')
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! RefreshStatusLine(mode)
|
||||||
|
if a:mode == "active"
|
||||||
|
setlocal statusline=%!StatusLine()
|
||||||
|
else
|
||||||
|
setlocal statusline=%!StatusLineNC()
|
||||||
|
endif
|
||||||
|
endfunction
|
203
.config/.old/vim/vimrc
Normal file
203
.config/.old/vim/vimrc
Normal file
@ -0,0 +1,203 @@
|
|||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Vim-Plug
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
"Automatic installation
|
||||||
|
if empty(glob('~/.vim/autoload/plug.vim'))
|
||||||
|
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
|
||||||
|
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Necessary to do cool stuff
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
|
"Pluggins will be downloaded under the specified directory
|
||||||
|
call plug#begin('~/.vim/plugins')
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|
||||||
|
" Language hilighting packages
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
|
" Shows indent guides
|
||||||
|
Plug 'nathanaelkane/vim-indent-guides'
|
||||||
|
|
||||||
|
" Colorscheme management
|
||||||
|
Plug 'lifepillar/vim-colortemplate'
|
||||||
|
|
||||||
|
" Templates
|
||||||
|
Plug 'tibabit/vim-templates'
|
||||||
|
|
||||||
|
" All Plugins must be added before the following line
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
" Brief help
|
||||||
|
" :PlugInstall - installs plugins; append `!` to update or just :PluginUpdate
|
||||||
|
" :PlugUpdate - updates plugins
|
||||||
|
" :PlugUpgrade - upgrades vim-plug
|
||||||
|
" :PlugClean - confirms removal of unused plugins; append `!` to auto-approve removal
|
||||||
|
"
|
||||||
|
|
||||||
|
" Indent Guides
|
||||||
|
let g:indent_guides_enable_on_vim_startup=1
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" "
|
||||||
|
" Non-plugin stuff : "
|
||||||
|
" "
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
"-> General
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Sets how many lines VIM has to remember
|
||||||
|
set history=500
|
||||||
|
|
||||||
|
" Set vim update time (milliseconds)
|
||||||
|
set updatetime=250
|
||||||
|
|
||||||
|
" Detect plugins filetypes
|
||||||
|
filetype plugin on
|
||||||
|
|
||||||
|
" To recognize groff filetype
|
||||||
|
au BufNewFile,BufRead *.mom set filetype=groff
|
||||||
|
|
||||||
|
" Defining the <leader>
|
||||||
|
let mapleader = " "
|
||||||
|
|
||||||
|
" Remove the pause when leaving insert mode
|
||||||
|
set ttimeoutlen=10
|
||||||
|
|
||||||
|
" Autocomplete settings
|
||||||
|
set wildmode=longest,list,full
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" -> VIM User Interface
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Sets the font
|
||||||
|
set guifont=FuraCode\ Nerd\ Font\ Mono\ 12
|
||||||
|
|
||||||
|
" Set utf8 as standard encoding
|
||||||
|
set encoding=utf-8
|
||||||
|
|
||||||
|
" Shows the current position
|
||||||
|
set ruler
|
||||||
|
|
||||||
|
" Shows line numbers
|
||||||
|
set number
|
||||||
|
|
||||||
|
" Shows line numbers relative to the cursor
|
||||||
|
set relativenumber
|
||||||
|
|
||||||
|
" A buffer becomes hidden when abandonned
|
||||||
|
set hid
|
||||||
|
|
||||||
|
" Highlights search results
|
||||||
|
set hlsearch
|
||||||
|
|
||||||
|
" Searches before hitting ENTER
|
||||||
|
set incsearch
|
||||||
|
|
||||||
|
" Shows matching brackets when cursor is over them
|
||||||
|
set showmatch
|
||||||
|
|
||||||
|
" Shows the command that's being typed
|
||||||
|
set showcmd
|
||||||
|
|
||||||
|
" Splits to the right
|
||||||
|
set splitright
|
||||||
|
|
||||||
|
" Prevents nvim from being customized by text files commands
|
||||||
|
set nomodeline
|
||||||
|
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" -> Status line
|
||||||
|
"""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
"Always show the status line
|
||||||
|
set laststatus=2
|
||||||
|
|
||||||
|
"Don't show editor mode
|
||||||
|
set noshowmode
|
||||||
|
|
||||||
|
source $HOME/.vim/statusline.vim
|
||||||
|
|
||||||
|
augroup statusline
|
||||||
|
autocmd!
|
||||||
|
autocmd VimEnter *
|
||||||
|
\ call UpdateInactiveWindows()
|
||||||
|
autocmd VimEnter,WinEnter,BufWinEnter *
|
||||||
|
\ call RefreshStatusLine('active')
|
||||||
|
autocmd WinLeave *
|
||||||
|
\ call RefreshStatusLine('inactive')
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" GUI colors
|
||||||
|
" set Vim-specific sequences for RGB colors
|
||||||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||||||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||||||
|
set termguicolors
|
||||||
|
syntax enable
|
||||||
|
|
||||||
|
" Colorscheme
|
||||||
|
set background=dark
|
||||||
|
colorscheme polyjuice
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" -> Text, tab and indent
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Do not use spaces instead of tabs
|
||||||
|
set noexpandtab
|
||||||
|
|
||||||
|
" But be smart with tabs
|
||||||
|
set smarttab
|
||||||
|
|
||||||
|
" 1 tab = 4 spaces
|
||||||
|
set tabstop=4
|
||||||
|
set shiftwidth=4 "for indent operations
|
||||||
|
|
||||||
|
" Indent and wrap rules
|
||||||
|
set si "smart indent
|
||||||
|
set wrap "wrap lines
|
||||||
|
|
||||||
|
" Stops the auto-commenting new line
|
||||||
|
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||||
|
|
||||||
|
" Enable autocompletion
|
||||||
|
set wildmode=longest,list,full
|
||||||
|
|
||||||
|
" Automatically removes all trailing whitespaces on save
|
||||||
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
|
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" -> Macros
|
||||||
|
""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Source files
|
||||||
|
noremap <leader>s :source ~/.vim/vimrc <CR>
|
||||||
|
|
||||||
|
" Circle through buffers
|
||||||
|
noremap <leader>n :bn<CR>
|
||||||
|
noremap <leader>b :bp<CR>
|
||||||
|
|
||||||
|
" Clear the search highlight
|
||||||
|
noremap <leader>h :nohl<CR>
|
||||||
|
|
||||||
|
" Make use of xclipboard
|
||||||
|
nnoremap <leader>v "+p
|
||||||
|
vnoremap <leader>c "+y
|
||||||
|
|
||||||
|
" Compile document
|
||||||
|
noremap <leader><Enter> :w! \| !compiler %<CR>
|
||||||
|
|
||||||
|
" Compile mom folder into pdf
|
||||||
|
noremap <leader>m :w! \| !mommerge<CR>
|
||||||
|
|
||||||
|
" Plugin management
|
||||||
|
noremap <leader>pi :PlugInstall<CR>
|
||||||
|
noremap <leader>pc :PlugClean<CR>
|
||||||
|
noremap <leader>pu :PlugUpdate \| PlugUpgrade<CR>
|
||||||
|
|
||||||
|
" Colorize
|
||||||
|
noremap <leader>cc :ColorizerToggle<CR>
|
||||||
|
|
||||||
|
" Template
|
||||||
|
noremap <leader>ti :TemplateInit<CR>
|
||||||
|
noremap <leader>te :TemplateExpand<CR>
|
21
.config/aliasrc
Normal file
21
.config/aliasrc
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# a file containing all my aliases
|
||||||
|
# sourced at launch
|
||||||
|
|
||||||
|
alias cp='cp -v'
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias ll='ls -lh'
|
||||||
|
alias la='ls -lah'
|
||||||
|
alias bulkrename='\ls | $EDITOR - -c ":%s/.*/mv -i & &/g"'
|
||||||
|
alias backup='rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} /'
|
||||||
|
alias printenv='printenv | sort'
|
||||||
|
alias gu='git fetch upstream && git merge upstream/master'
|
||||||
|
alias unimatrix='unimatrix -a -f -c=cyan -s=95'
|
||||||
|
alias untar='tar -zxvf'
|
||||||
|
alias root@site='ssh root@davidjulien.xyz'
|
||||||
|
alias swytch@site='ssh swytch@davidjulien.xyz'
|
||||||
|
alias @webapps='ssh p1926178@192.168.75.57'
|
||||||
|
alias @projet='ssh p1926178@192.168.74.198'
|
||||||
|
alias dotfiles='/usr/bin/git --git-dir=$DOTFILES --work-tree=$HOME'
|
||||||
|
alias abcde='abcde -c $XDG_CONFIG_HOME/abcde/config'
|
||||||
|
alias abook='abook --config $XDG_CONFIG_HOME/abook/abookrc --datafile "$XDG_DATA_HOME"/abook/addressbook'
|
257
.config/dunst/dunstrc
Normal file
257
.config/dunst/dunstrc
Normal file
@ -0,0 +1,257 @@
|
|||||||
|
[global]
|
||||||
|
font = Iosevka Fixed Slab 14
|
||||||
|
|
||||||
|
# Allow a small subset of html markup:
|
||||||
|
# <b>bold</b>
|
||||||
|
# <i>italic</i>
|
||||||
|
# <s>strikethrough</s>
|
||||||
|
# <u>underline</u>
|
||||||
|
#
|
||||||
|
# For a complete reference see
|
||||||
|
# <http://developer.gnome.org/pango/stable/PangoMarkupFormat.html>.
|
||||||
|
# If markup is not allowed, those tags will be stripped out of the
|
||||||
|
# message.
|
||||||
|
markup = yes
|
||||||
|
plain_text = no
|
||||||
|
|
||||||
|
# The format of the message. Possible variables are:
|
||||||
|
# %a appname
|
||||||
|
# %s summary
|
||||||
|
# %b body
|
||||||
|
# %i iconname (including its path)
|
||||||
|
# %I iconname (without its path)
|
||||||
|
# %p progress value if set ([ 0%] to [100%]) or nothing
|
||||||
|
# Markup is allowed
|
||||||
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
|
# Sort messages by urgency.
|
||||||
|
sort = no
|
||||||
|
|
||||||
|
# Show how many messages are currently hidden (because of geometry).
|
||||||
|
indicate_hidden = yes
|
||||||
|
|
||||||
|
# Alignment of message text.
|
||||||
|
# Possible values are "left", "center" and "right".
|
||||||
|
alignment = center
|
||||||
|
|
||||||
|
# The frequency with wich text that is longer than the notification
|
||||||
|
# window allows bounces back and forth.
|
||||||
|
# This option conflicts with "word_wrap".
|
||||||
|
# Set to 0 to disable.
|
||||||
|
bounce_freq = 0
|
||||||
|
|
||||||
|
# Show age of message if message is older than show_age_threshold
|
||||||
|
# seconds.
|
||||||
|
# Set to -1 to disable.
|
||||||
|
show_age_threshold = -1
|
||||||
|
|
||||||
|
# Split notifications into multiple lines if they don't fit into
|
||||||
|
# geometry.
|
||||||
|
word_wrap = yes
|
||||||
|
|
||||||
|
# Ignore newlines '\n' in notifications.
|
||||||
|
ignore_newline = no
|
||||||
|
|
||||||
|
# Hide duplicate's count and stack them
|
||||||
|
stack_duplicates = yes
|
||||||
|
hide_duplicates_count = yes
|
||||||
|
|
||||||
|
|
||||||
|
# The geometry of the window:
|
||||||
|
# [{width}]x{height}[+/-{x}+/-{y}]
|
||||||
|
# The geometry of the message window.
|
||||||
|
# The height is measured in number of notifications everything else
|
||||||
|
# in pixels. If the width is omitted but the height is given
|
||||||
|
# ("-geometry x2"), the message window expands over the whole screen
|
||||||
|
# (dmenu-like). If width is 0, the window expands to the longest
|
||||||
|
# message displayed. A positive x is measured from the left, a
|
||||||
|
# negative from the right side of the screen. Y is measured from
|
||||||
|
# the top and down respectevly.
|
||||||
|
# The width can be negative. In this case the actual width is the
|
||||||
|
# screen width minus the width defined in within the geometry option.
|
||||||
|
#geometry = "250x50-40+40"
|
||||||
|
geometry = "450x50-15+75"
|
||||||
|
|
||||||
|
# Shrink window if it's smaller than the width. Will be ignored if
|
||||||
|
# width is 0.
|
||||||
|
shrink = no
|
||||||
|
|
||||||
|
# The transparency of the window. Range: [0; 100].
|
||||||
|
# This option will only work if a compositing windowmanager is
|
||||||
|
# present (e.g. xcompmgr, compiz, etc.).
|
||||||
|
transparency = 5
|
||||||
|
|
||||||
|
# Don't remove messages, if the user is idle (no mouse or keyboard input)
|
||||||
|
# for longer than idle_threshold seconds.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
idle_threshold = 0
|
||||||
|
|
||||||
|
# Which monitor should the notifications be displayed on.
|
||||||
|
monitor = 0
|
||||||
|
|
||||||
|
# Display notification on focused monitor. Possible modes are:
|
||||||
|
# mouse: follow mouse pointer
|
||||||
|
# keyboard: follow window with keyboard focus
|
||||||
|
# none: don't follow anything
|
||||||
|
#
|
||||||
|
# "keyboard" needs a windowmanager that exports the
|
||||||
|
# _NET_ACTIVE_WINDOW property.
|
||||||
|
# This should be the case for almost all modern windowmanagers.
|
||||||
|
#
|
||||||
|
# If this option is set to mouse or keyboard, the monitor option
|
||||||
|
# will be ignored.
|
||||||
|
follow = mouse
|
||||||
|
|
||||||
|
# Should a notification popped up from history be sticky or timeout
|
||||||
|
# as if it would normally do.
|
||||||
|
sticky_history = yes
|
||||||
|
|
||||||
|
# Maximum amount of notifications kept in history
|
||||||
|
history_length = 15
|
||||||
|
|
||||||
|
# Display indicators for URLs (U) and actions (A).
|
||||||
|
show_indicators = no
|
||||||
|
|
||||||
|
# The height of a single line. If the height is smaller than the
|
||||||
|
# font height, it will get raised to the font height.
|
||||||
|
# This adds empty space above and under the text.
|
||||||
|
line_height = 3
|
||||||
|
|
||||||
|
# Draw a line of "separatpr_height" pixel height between two
|
||||||
|
# notifications.
|
||||||
|
# Set to 0 to disable.
|
||||||
|
separator_height = 2
|
||||||
|
|
||||||
|
# Padding between text and separator.
|
||||||
|
padding = 6
|
||||||
|
|
||||||
|
# Horizontal padding.
|
||||||
|
horizontal_padding = 6
|
||||||
|
|
||||||
|
# Define a color for the separator.
|
||||||
|
# possible values are:
|
||||||
|
# * auto: dunst tries to find a color fitting to the background;
|
||||||
|
# * foreground: use the same color as the foreground;
|
||||||
|
# * frame: use the same color as the frame;
|
||||||
|
# * anything else will be interpreted as a X color.
|
||||||
|
separator_color = frame
|
||||||
|
|
||||||
|
# Print a notification on startup.
|
||||||
|
# This is mainly for error detection, since dbus (re-)starts dunst
|
||||||
|
# automatically after a crash.
|
||||||
|
startup_notification = false
|
||||||
|
|
||||||
|
# dmenu path.
|
||||||
|
dmenu = /usr/bin/dmenu -p dunst:
|
||||||
|
|
||||||
|
# Browser for opening urls in context menu.
|
||||||
|
browser = /usr/bin/firefox
|
||||||
|
|
||||||
|
# Align icons left/right/off
|
||||||
|
icon_position = left
|
||||||
|
max_icon_size = 80
|
||||||
|
|
||||||
|
# Paths to default icons.
|
||||||
|
icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/
|
||||||
|
|
||||||
|
frame_width = 3
|
||||||
|
frame_color = "#8EC07C"
|
||||||
|
|
||||||
|
[shortcuts]
|
||||||
|
|
||||||
|
# Shortcuts are specified as [modifier+][modifier+]...key
|
||||||
|
# Available modifiers are "ctrl", "mod1" (the alt-key), "mod2",
|
||||||
|
# "mod3" and "mod4" (windows-key).
|
||||||
|
# Xev might be helpful to find names for keys.
|
||||||
|
|
||||||
|
# Close notification.
|
||||||
|
close = ctrl+space
|
||||||
|
|
||||||
|
# Close all notifications.
|
||||||
|
close_all = ctrl+shift+space
|
||||||
|
|
||||||
|
# Redisplay last message(s).
|
||||||
|
# On the US keyboard layout "grave" is normally above TAB and left
|
||||||
|
# of "1".
|
||||||
|
history = ctrl+period
|
||||||
|
|
||||||
|
# Context menu.
|
||||||
|
context = ctrl+shift+period
|
||||||
|
|
||||||
|
[urgency_low]
|
||||||
|
# IMPORTANT: colors have to be defined in quotation marks.
|
||||||
|
# Otherwise the "#" and following would be interpreted as a comment.
|
||||||
|
frame_color = "#5B8234"
|
||||||
|
foreground = "#5B8234"
|
||||||
|
background = "#191311"
|
||||||
|
#background = "#2B313C"
|
||||||
|
timeout = 4
|
||||||
|
|
||||||
|
[urgency_normal]
|
||||||
|
frame_color = "#D79921"
|
||||||
|
foreground = "#D79921"
|
||||||
|
background = "#191311"
|
||||||
|
#background = "#2B313C"
|
||||||
|
timeout = 6
|
||||||
|
|
||||||
|
[urgency_critical]
|
||||||
|
frame_color = "#CC241D"
|
||||||
|
foreground = "#CC241D"
|
||||||
|
background = "#191311"
|
||||||
|
#background = "#2B313C"
|
||||||
|
timeout = 8
|
||||||
|
|
||||||
|
|
||||||
|
# Every section that isn't one of the above is interpreted as a rules to
|
||||||
|
# override settings for certain messages.
|
||||||
|
# Messages can be matched by "appname", "summary", "body", "icon", "category",
|
||||||
|
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
|
||||||
|
# "background", "new_icon" and "format".
|
||||||
|
# Shell-like globbing will get expanded.
|
||||||
|
#
|
||||||
|
# SCRIPTING
|
||||||
|
# You can specify a script that gets run when the rule matches by
|
||||||
|
# setting the "script" option.
|
||||||
|
# The script will be called as follows:
|
||||||
|
# script appname summary body icon urgency
|
||||||
|
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
|
||||||
|
#
|
||||||
|
# NOTE: if you don't want a notification to be displayed, set the format
|
||||||
|
# to "".
|
||||||
|
# NOTE: It might be helpful to run dunst -print in a terminal in order
|
||||||
|
# to find fitting options for rules.
|
||||||
|
|
||||||
|
#[espeak]
|
||||||
|
# summary = "*"
|
||||||
|
# script = dunst_espeak.sh
|
||||||
|
|
||||||
|
#[script-test]
|
||||||
|
# summary = "*script*"
|
||||||
|
# script = dunst_test.sh
|
||||||
|
|
||||||
|
#[ignore]
|
||||||
|
# # This notification will not be displayed
|
||||||
|
# summary = "foobar"
|
||||||
|
# format = ""
|
||||||
|
|
||||||
|
#[signed_on]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = "*signed on*"
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[signed_off]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *signed off*
|
||||||
|
# urgency = low
|
||||||
|
#
|
||||||
|
#[says]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *says*
|
||||||
|
# urgency = critical
|
||||||
|
#
|
||||||
|
#[twitter]
|
||||||
|
# appname = Pidgin
|
||||||
|
# summary = *twitter.com*
|
||||||
|
# urgency = normal
|
||||||
|
#
|
||||||
|
# vim: ft=cfg
|
155
.config/foot/foot.ini
Normal file
155
.config/foot/foot.ini
Normal file
@ -0,0 +1,155 @@
|
|||||||
|
# -*- conf -*-
|
||||||
|
|
||||||
|
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||||
|
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
|
||||||
|
# login-shell=no
|
||||||
|
|
||||||
|
font=Iosevka Fixed Slab:size=14
|
||||||
|
# font-bold=<bold variant of regular font>
|
||||||
|
# font-italic=<italic variant of regular font>
|
||||||
|
# font-bold-italic=<bold+italic variant of regular font>
|
||||||
|
# line-height=<font metrics>
|
||||||
|
# letter-spacing=0
|
||||||
|
# horizontal-letter-offset=0
|
||||||
|
# vertical-letter-offset=0
|
||||||
|
# underline-offset=<font metrics>
|
||||||
|
# box-drawings-uses-font-glyphs=no
|
||||||
|
# dpi-aware=yes
|
||||||
|
|
||||||
|
# initial-window-size-pixels=700x500 # Or,
|
||||||
|
# initial-window-size-chars=<COLSxROWS>
|
||||||
|
# initial-window-mode=windowed
|
||||||
|
# pad=2x2 # optionally append 'center'
|
||||||
|
# resize-delay-ms=100
|
||||||
|
|
||||||
|
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
|
||||||
|
|
||||||
|
# bold-text-in-bright=yes
|
||||||
|
# bell=none
|
||||||
|
# word-delimiters=,│`|:"'()[]{}<>
|
||||||
|
# selection-target=primary
|
||||||
|
# workers=<number of logical CPUs>
|
||||||
|
|
||||||
|
[bell]
|
||||||
|
# urgent=no
|
||||||
|
# notify=no
|
||||||
|
# command=
|
||||||
|
# command-focused=no
|
||||||
|
|
||||||
|
[scrollback]
|
||||||
|
# lines=1000
|
||||||
|
# multiplier=3.0
|
||||||
|
# indicator-position=relative
|
||||||
|
# indicator-format=
|
||||||
|
|
||||||
|
[url]
|
||||||
|
# launch=xdg-open ${url}
|
||||||
|
# label-letters=sadfjklewcmpgh
|
||||||
|
# osc8-underline=url-mode
|
||||||
|
# protocols = http, https, ftp, ftps, file, gemini, gopher
|
||||||
|
|
||||||
|
[cursor]
|
||||||
|
style=beam
|
||||||
|
|
||||||
|
# blink=no
|
||||||
|
# beam-thickness=1.5
|
||||||
|
# underline-thickness=<font underline thickness>
|
||||||
|
|
||||||
|
[mouse]
|
||||||
|
# hide-when-typing=no
|
||||||
|
# alternate-scroll-mode=yes
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
# alpha=1.0
|
||||||
|
foreground=fbf1c7
|
||||||
|
background=1d2021
|
||||||
|
regular0=373737 # bright black
|
||||||
|
regular1=ea6962 # bright red
|
||||||
|
regular2=89b482 # bright green
|
||||||
|
regular3=ffeca3 # bright yellow
|
||||||
|
regular4=7daea3 # bright blue
|
||||||
|
regular5=d3869b # bright magenta
|
||||||
|
regular6=ace5d7 # bright cyan
|
||||||
|
regular7=fbf1c7 # bright white
|
||||||
|
bright0=373737 # black
|
||||||
|
bright1=ea6962 # red
|
||||||
|
bright2=89b482 # green
|
||||||
|
bright3=ffeca3 # yellow
|
||||||
|
bright4=7daea3 # blue
|
||||||
|
bright5=d3869b # magenta
|
||||||
|
bright6=ace5d7 # cyan
|
||||||
|
bright7=fbf1c7 # white
|
||||||
|
# 16 = <256-color palette #16>
|
||||||
|
# ...
|
||||||
|
# 255 = <256-color palette #255>
|
||||||
|
# selection-foreground=<inverse foreground/background>
|
||||||
|
# selection-background=<inverse foreground/background>
|
||||||
|
# jump-labels=<regular0> <regular3>
|
||||||
|
# urls=<regular3>
|
||||||
|
|
||||||
|
[csd]
|
||||||
|
# preferred=server
|
||||||
|
# size=26
|
||||||
|
# color=<foreground color>
|
||||||
|
# button-width=26
|
||||||
|
# button-minimize-color=<regular4>
|
||||||
|
# button-maximize-color=<regular2>
|
||||||
|
# button-close-color=<regular1>
|
||||||
|
|
||||||
|
[key-bindings]
|
||||||
|
# scrollback-up-page=Shift+Page_Up
|
||||||
|
scrollback-up-half-page=Mod1+u
|
||||||
|
scrollback-up-line=Mod1+k
|
||||||
|
# scrollback-down-page=Shift+Page_Down
|
||||||
|
scrollback-down-half-page=Mod1+d
|
||||||
|
scrollback-down-line=Mod1+j
|
||||||
|
clipboard-copy=Mod1+y
|
||||||
|
clipboard-paste=Mod1+p
|
||||||
|
# primary-paste=Shift+Insert
|
||||||
|
# search-start=Control+Shift+r
|
||||||
|
# font-increase=Control+plus Control+equal Control+KP_Add
|
||||||
|
# font-decrease=Control+minus Control+KP_Subtract
|
||||||
|
# font-reset=Control+0 Control+KP_0
|
||||||
|
# spawn-terminal=Control+Shift+n
|
||||||
|
# minimize=none
|
||||||
|
# maximize=none
|
||||||
|
# fullscreen=none
|
||||||
|
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||||
|
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||||
|
# pipe-selected=[xargs -r firefox] none
|
||||||
|
# show-urls-launch=Control+Shift+u
|
||||||
|
# show-urls-copy=none
|
||||||
|
|
||||||
|
[search-bindings]
|
||||||
|
# cancel=Control+g Escape
|
||||||
|
# commit=Return
|
||||||
|
# find-prev=Control+r
|
||||||
|
# find-next=Control+s
|
||||||
|
# cursor-left=Left Control+b
|
||||||
|
# cursor-left-word=Control+Left Mod1+b
|
||||||
|
# cursor-right=Right Control+f
|
||||||
|
# cursor-right-word=Control+Right Mod1+f
|
||||||
|
# cursor-home=Home Control+a
|
||||||
|
# cursor-end=End Control+e
|
||||||
|
# delete-prev=BackSpace
|
||||||
|
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||||
|
# delete-next=Delete
|
||||||
|
# delete-next-word=Mod1+d Control+Delete
|
||||||
|
# extend-to-word-boundary=Control+w
|
||||||
|
# extend-to-next-whitespace=Control+Shift+w
|
||||||
|
# clipboard-paste=Control+v Control+y
|
||||||
|
# primary-paste=Shift+Insert
|
||||||
|
|
||||||
|
[url-bindings]
|
||||||
|
# cancel=Control+g Control+d Escape
|
||||||
|
# toggle-url-visible=t
|
||||||
|
|
||||||
|
[mouse-bindings]
|
||||||
|
# primary-paste=BTN_MIDDLE
|
||||||
|
# select-begin=BTN_LEFT
|
||||||
|
# select-begin-block=Control+BTN_LEFT
|
||||||
|
# select-extend=BTN_RIGHT
|
||||||
|
# select-extend-character-wise=Control+BTN_RIGHT
|
||||||
|
# select-word=BTN_LEFT-2
|
||||||
|
# select-word-whitespace=Control+BTN_LEF-2
|
||||||
|
# select-row=BTN_LEFT-3
|
21
.config/git/config
Normal file
21
.config/git/config
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[user]
|
||||||
|
email = swy7ch@protonmail.com
|
||||||
|
name = David JULIEN
|
||||||
|
signingKey = D9D47382
|
||||||
|
[gpg]
|
||||||
|
program = gpg2
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
[status]
|
||||||
|
submodulesummary = 1
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
|
[pull]
|
||||||
|
rebase = false
|
||||||
|
[submodule]
|
||||||
|
recurse = true
|
||||||
|
[push]
|
||||||
|
recurseSubmodules = check
|
||||||
|
[alias]
|
||||||
|
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
|
||||||
|
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)- %an%C(reset)' --all
|
2
.config/gnupg/gpg-agent.conf
Normal file
2
.config/gnupg/gpg-agent.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
allow-preset-passphrase
|
||||||
|
max-cache-ttl 86400
|
26
.config/htop/htoprc
Normal file
26
.config/htop/htoprc
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||||
|
# The parser is also very primitive, and not human-friendly.
|
||||||
|
fields=0 48 38 39 46 47 49 1
|
||||||
|
sort_key=47
|
||||||
|
sort_direction=1
|
||||||
|
hide_threads=0
|
||||||
|
hide_kernel_threads=1
|
||||||
|
hide_userland_threads=1
|
||||||
|
shadow_other_users=1
|
||||||
|
show_thread_names=1
|
||||||
|
show_program_path=0
|
||||||
|
highlight_base_name=1
|
||||||
|
highlight_megabytes=1
|
||||||
|
highlight_threads=1
|
||||||
|
tree_view=1
|
||||||
|
header_margin=1
|
||||||
|
detailed_cpu_time=0
|
||||||
|
cpu_count_from_zero=0
|
||||||
|
update_process_names=0
|
||||||
|
account_guest_in_cpu_meter=0
|
||||||
|
color_scheme=6
|
||||||
|
delay=15
|
||||||
|
left_meters=AllCPUs Memory Swap
|
||||||
|
left_meter_modes=1 1 1
|
||||||
|
right_meters=Tasks LoadAverage Uptime Battery Blank Hostname
|
||||||
|
right_meter_modes=2 2 2 2 2 2
|
18
.config/mimeapps.list
Normal file
18
.config/mimeapps.list
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
[Default Applications]
|
||||||
|
|
||||||
|
# xdg-open will use these settings to determine how to open filetypes.
|
||||||
|
# These .desktop entries can also be seen and changed in ~/.local/share/applications/
|
||||||
|
|
||||||
|
text/x-shellscript=text.desktop;
|
||||||
|
x-scheme-handler/magnet=torrent.desktop;
|
||||||
|
application/x-bittorrent=torrent.desktop;
|
||||||
|
x-scheme-handler/mailto=mail.desktop;
|
||||||
|
text/plain=text.desktop;
|
||||||
|
application/postscript=pdf.desktop;
|
||||||
|
application/pdf=pdf.desktop;
|
||||||
|
image/png=img.desktop;
|
||||||
|
image/jpeg=img.desktop;
|
||||||
|
image/gif=img.desktop;
|
||||||
|
application/rss+xml=rss.desktop
|
||||||
|
video/x-matroska=video.desktop
|
||||||
|
inode/directory=file.desktop
|
29
.config/mpd/mpd.conf
Normal file
29
.config/mpd/mpd.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Recommended location for database
|
||||||
|
db_file "~/.config/mpd/database"
|
||||||
|
|
||||||
|
# Logs to systemd journal
|
||||||
|
log_file "syslog"
|
||||||
|
|
||||||
|
# The music directory is by default the XDG directory, uncomment to amend and choose a different directory
|
||||||
|
music_directory "~/music"
|
||||||
|
|
||||||
|
# Uncomment to refresh the database whenever files in the music_directory are changed
|
||||||
|
auto_update "yes"
|
||||||
|
|
||||||
|
# Uncomment to enable the functionalities
|
||||||
|
playlist_directory "~/.config/mpd/playlists"
|
||||||
|
pid_file "~/.config/mpd/pid"
|
||||||
|
#state_file "~/.config/mpd/state"
|
||||||
|
sticker_file "~/.config/mpd/sticker.sql"
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "pulse"
|
||||||
|
name "pulse audio"
|
||||||
|
}
|
||||||
|
|
||||||
|
audio_output {
|
||||||
|
type "fifo"
|
||||||
|
name "my_fifo"
|
||||||
|
path "/tmp/mpd.fifo"
|
||||||
|
format "44100:16:2"
|
||||||
|
}
|
40
.config/mutt/accounts/account_template.muttrc
Normal file
40
.config/mutt/accounts/account_template.muttrc
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# vim: filetype=neomuttrc
|
||||||
|
# muttrc file for account email@adress.you
|
||||||
|
set realname = "John Doe"
|
||||||
|
set from = "email@adress.you"
|
||||||
|
set sendmail = "msmtp -a email@adress.you"
|
||||||
|
alias me david.julien <email@adress.you>
|
||||||
|
set folder = "/home/johndoe/.local/share/mail/email@adress.you"
|
||||||
|
set header_cache = /home/johndoe/.cache/mutt/email@adress.you/headers
|
||||||
|
set message_cachedir = /home/johndoe/.cache/mutt/email@adress.you/bodies
|
||||||
|
set mbox_type = Maildir
|
||||||
|
|
||||||
|
|
||||||
|
bind index,pager gg noop
|
||||||
|
bind index,pager g noop
|
||||||
|
bind index,pager M noop
|
||||||
|
bind index,pager C noop
|
||||||
|
bind index gg first-entry
|
||||||
|
unmailboxes *
|
||||||
|
unalternates *
|
||||||
|
unset signature
|
||||||
|
unmacro index o
|
||||||
|
macro index o "<shell-escape>mw -y email@adress.you<enter>" "run mbsync to sync email@adress.you"
|
||||||
|
|
||||||
|
mailboxes "=Sent" "=Drafts" "=Trash" "=INBOX"
|
||||||
|
set record = "+Sent"
|
||||||
|
macro index,pager gs "<change-folder>=Sent<enter>" "go to sent"
|
||||||
|
macro index,pager Ms ";<save-message>=Sent<enter>" "move mail to sent"
|
||||||
|
macro index,pager Cs ";<copy-message>=Sent<enter>" "copy mail to sent"
|
||||||
|
set postponed = "+Drafts"
|
||||||
|
macro index,pager gd "<change-folder>=Drafts<enter>" "go to drafts"
|
||||||
|
macro index,pager Md ";<save-message>=Drafts<enter>" "move mail to drafts"
|
||||||
|
macro index,pager Cd ";<copy-message>=Drafts<enter>" "copy mail to drafts"
|
||||||
|
macro index,pager gt "<change-folder>=Trash<enter>" "go to trash"
|
||||||
|
macro index,pager Mt ";<save-message>=Trash<enter>" "move mail to trash"
|
||||||
|
macro index,pager Ct ";<copy-message>=Trash<enter>" "copy mail to trash"
|
||||||
|
set trash = "+Trash"
|
||||||
|
macro index,pager gi "<change-folder>=INBOX<enter>" "go to inbox"
|
||||||
|
macro index,pager Mi ";<save-message>=INBOX<enter>" "move mail to inbox"
|
||||||
|
macro index,pager Ci ";<copy-message>=INBOX<enter>" "copy mail to inbox"
|
||||||
|
set spoolfile = "+INBOX"
|
9
.config/mutt/mailcap
Normal file
9
.config/mutt/mailcap
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
text/plain; $EDITOR %s ;
|
||||||
|
text/html; lynx -assume_charset=%{charset} -display_charset=utf-8 -dump %s; nametemplate=%s.html; copiousoutput;
|
||||||
|
text/html; mutt-openfile %s ; nametemplate=%s.html
|
||||||
|
image/*; mutt-openfile %s ;
|
||||||
|
video/*; setsid mpv --quiet %s &; copiousoutput
|
||||||
|
audio/*; mpv %s ;
|
||||||
|
application/pdf; mutt-openfile %s ;
|
||||||
|
application/pgp-encrypted; gpg -d '%s'; copiousoutput;
|
||||||
|
application/pgp-keys; gpg --import '%s'; copiousoutput;
|
5
.config/mutt/muttrc.template
Normal file
5
.config/mutt/muttrc.template
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# vim: filetype=neomuttrc
|
||||||
|
source /home/swytch/.config/mutt/neomutt.muttrc
|
||||||
|
source /home/swytch/.config/mutt/accounts/account_template.muttrc
|
||||||
|
macro index,pager i1 '<sync-mailbox><enter-command>source
|
||||||
|
/home/swytch/.config/mutt/accounts/account_template.muttrc<enter><change-folder>!<enter>;<check-stats>' "switch to david.julien@posteo.net"
|
165
.config/mutt/neomutt.muttrc
Normal file
165
.config/mutt/neomutt.muttrc
Normal file
@ -0,0 +1,165 @@
|
|||||||
|
# vim: filetype=neomuttrc
|
||||||
|
# Adapted from Luke Smith's mutt-wizard config files.
|
||||||
|
# More information : https://github.com/LukeSmithxyz/mutt-wizard
|
||||||
|
|
||||||
|
|
||||||
|
set mailcap_path = /home/swytch/.config/mutt/mailcap:$mailcap_path
|
||||||
|
set mime_type_query_command = "file --mime-type -b %s"
|
||||||
|
set date_format="%d/%m/%y %I:%M%p"
|
||||||
|
set index_format="%2C %Z %?X?A& ? %D %-15.15F %s (%-4.4c)"
|
||||||
|
set sort = 'reverse-date'
|
||||||
|
set smtp_authenticators = 'gssapi:login'
|
||||||
|
set my_abook = "abook --config /home/swytch/.config/abook/abookrc --datafile \
|
||||||
|
/home/swytch/.local/share/abook/addressbook"
|
||||||
|
set query_command = "$my_abook --mutt-query '%s'"
|
||||||
|
set rfc2047_parameters = yes
|
||||||
|
set sleep_time = 0 # Pause 0 seconds for informational messages
|
||||||
|
set markers = no # Disables the `+` displayed at line wraps
|
||||||
|
set mark_old = no # Unread mail stay unread until read
|
||||||
|
set mime_forward = yes # attachments are forwarded with mail
|
||||||
|
set wait_key = no # mutt won't ask "press key to continue"
|
||||||
|
set fast_reply # skip to compose when replying
|
||||||
|
set fcc_attach # save attachments with the body
|
||||||
|
set forward_format = "Fwd: %s" # format of subject when forwarding
|
||||||
|
set forward_quote # include message in forwards
|
||||||
|
set reverse_name # reply as whomever it was to
|
||||||
|
set include # include message in replies
|
||||||
|
set mail_check=60 # to avoid lags using IMAP with some email providers (yahoo for example)
|
||||||
|
auto_view text/html # automatically show html (mailcap uses lynx)
|
||||||
|
auto_view application/pgp-encrypted
|
||||||
|
#set display_filter = "tac | sed '/\\\[-- Autoview/,+1d' | tac" # Suppress autoview messages.
|
||||||
|
alternative_order text/plain text/enriched text/html
|
||||||
|
bind index,pager i noop
|
||||||
|
bind index,pager g noop
|
||||||
|
bind index \Cf noop
|
||||||
|
|
||||||
|
# General rebindings
|
||||||
|
bind index j next-entry
|
||||||
|
bind index k previous-entry
|
||||||
|
bind attach <return> view-mailcap
|
||||||
|
bind attach l view-mailcap
|
||||||
|
bind editor <space> noop
|
||||||
|
bind index G last-entry
|
||||||
|
bind index gg first-entry
|
||||||
|
bind pager,attach h exit
|
||||||
|
bind pager j next-line
|
||||||
|
bind pager k previous-line
|
||||||
|
bind pager l view-attachments
|
||||||
|
bind index D delete-message
|
||||||
|
bind index U undelete-message
|
||||||
|
bind index L limit
|
||||||
|
bind index h noop
|
||||||
|
bind index l display-message
|
||||||
|
bind index,query <space> tag-entry
|
||||||
|
#bind browser h goto-parent
|
||||||
|
macro browser h '<change-dir><kill-line>..<enter>' "Go to parent folder"
|
||||||
|
bind index,pager H view-raw-message
|
||||||
|
bind browser l select-entry
|
||||||
|
bind pager,browser gg top-page
|
||||||
|
bind pager,browser G bottom-page
|
||||||
|
bind index,pager,browser d half-down
|
||||||
|
bind index,pager,browser u half-up
|
||||||
|
bind index,pager S sync-mailbox
|
||||||
|
bind index,pager R group-reply
|
||||||
|
bind index \031 previous-undeleted # Mouse wheel
|
||||||
|
bind index \005 next-undeleted # Mouse wheel
|
||||||
|
bind pager \031 previous-line # Mouse wheel
|
||||||
|
bind pager \005 next-line # Mouse wheel
|
||||||
|
bind editor <Tab> complete-query
|
||||||
|
|
||||||
|
#set crypt_autosign = yes
|
||||||
|
#set crypt_opportunistic_encrypt = yes
|
||||||
|
#set pgp_self_encrypt = yes
|
||||||
|
#set pgp_default_key = 'your@gpgemailaddre.ss'
|
||||||
|
|
||||||
|
macro index,pager a "<enter-command>set my_pipe_decode=\$pipe_decode pipe_decode<return><pipe-message>$my_abook --add-email<return><enter-command>set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<return>" "add the sender address to my_abook"
|
||||||
|
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
|
||||||
|
macro index O "<shell-escape>mbsync -a<enter>" "run mbsync -a to sync all mail"
|
||||||
|
macro index \Cf "<enter-command>unset wait_key<enter><shell-escape>printf 'Enter a search term to find with notmuch: '; read x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;s/\^id:// for@a;$,=\"|\";print@a' | perl -le '@a=<>; chomp@a; s/\\+/\\\\+/ for@a;print@a' \`\"<enter>" "show only messages matching a notmuch pattern"
|
||||||
|
macro index A "<limit>all\n" "show all messages (undo limit)"
|
||||||
|
|
||||||
|
# Sidebar mappings
|
||||||
|
set sidebar_visible = yes
|
||||||
|
set sidebar_width = 20
|
||||||
|
set sidebar_short_path = yes
|
||||||
|
set sidebar_next_new_wrap = yes
|
||||||
|
set mail_check_stats
|
||||||
|
set sidebar_format = '%D%?F? [%F]?%* %?N?%N/? %?S?%S?'
|
||||||
|
bind index,pager \Ck sidebar-prev
|
||||||
|
bind index,pager \Cj sidebar-next
|
||||||
|
bind index,pager \Co sidebar-open
|
||||||
|
bind index,pager \Cp sidebar-prev-new
|
||||||
|
bind index,pager \Cn sidebar-next-new
|
||||||
|
bind index,pager B sidebar-toggle-visible
|
||||||
|
|
||||||
|
# Default index colors:
|
||||||
|
color index yellow default '.*'
|
||||||
|
color index_author red default '.*'
|
||||||
|
color index_number blue default
|
||||||
|
color index_subject cyan default '.*'
|
||||||
|
|
||||||
|
# New mail is boldened:
|
||||||
|
color index brightyellow black "~N"
|
||||||
|
color index_author brightred black "~N"
|
||||||
|
color index_subject brightcyan black "~N"
|
||||||
|
|
||||||
|
# Tagged mail is highlighted:
|
||||||
|
color index brightyellow blue "~T"
|
||||||
|
color index_author brightred blue "~T"
|
||||||
|
color index_subject brightcyan blue "~T"
|
||||||
|
|
||||||
|
# Other colors and aesthetic settings:
|
||||||
|
mono bold bold
|
||||||
|
mono underline underline
|
||||||
|
mono indicator reverse
|
||||||
|
mono error bold
|
||||||
|
color normal default default
|
||||||
|
color indicator brightblack white
|
||||||
|
color sidebar_highlight red default
|
||||||
|
color sidebar_divider brightblack black
|
||||||
|
color sidebar_flagged red black
|
||||||
|
color sidebar_new green black
|
||||||
|
color normal brightyellow default
|
||||||
|
color error red default
|
||||||
|
color tilde black default
|
||||||
|
color message cyan default
|
||||||
|
color markers red white
|
||||||
|
color attachment white default
|
||||||
|
color search brightmagenta default
|
||||||
|
color status brightyellow black
|
||||||
|
color hdrdefault brightgreen default
|
||||||
|
color quoted green default
|
||||||
|
color quoted1 blue default
|
||||||
|
color quoted2 cyan default
|
||||||
|
color quoted3 yellow default
|
||||||
|
color quoted4 red default
|
||||||
|
color quoted5 brightred default
|
||||||
|
color signature brightgreen default
|
||||||
|
color bold black default
|
||||||
|
color underline black default
|
||||||
|
color normal default default
|
||||||
|
|
||||||
|
# Regex highlighting:
|
||||||
|
color header blue default ".*"
|
||||||
|
color header brightmagenta default "^(From)"
|
||||||
|
color header brightcyan default "^(Subject)"
|
||||||
|
color header brightwhite default "^(CC|BCC)"
|
||||||
|
color body brightred default "[\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+" # Email addresses
|
||||||
|
color body brightblue default "(https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+" # URL
|
||||||
|
color body green default "\`[^\`]*\`" # Green text between ` and `
|
||||||
|
color body brightblue default "^# \.*" # Headings as bold blue
|
||||||
|
color body brightcyan default "^## \.*" # Subheadings as bold cyan
|
||||||
|
color body brightgreen default "^### \.*" # Subsubheadings as bold green
|
||||||
|
color body yellow default "^(\t| )*(-|\\*) \.*" # List items as yellow
|
||||||
|
color body brightcyan default "[;:][-o][)/(|]" # emoticons
|
||||||
|
color body brightcyan default "[;:][)(|]" # emoticons
|
||||||
|
color body brightcyan default "[ ][*][^*]*[*][ ]?" # more emoticon?
|
||||||
|
color body brightcyan default "[ ]?[*][^*]*[*][ ]" # more emoticon?
|
||||||
|
color body red default "(BAD signature)"
|
||||||
|
color body cyan default "(Good signature)"
|
||||||
|
color body brightblack default "^gpg: Good signature .*"
|
||||||
|
color body brightyellow default "^gpg: "
|
||||||
|
color body brightyellow red "^gpg: BAD signature from.*"
|
||||||
|
mono body bold "^gpg: Good signature"
|
||||||
|
mono body bold "^gpg: BAD signature from.*"
|
||||||
|
color body red default "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]"
|
513
.config/ncmpcpp/bindings
Normal file
513
.config/ncmpcpp/bindings
Normal file
@ -0,0 +1,513 @@
|
|||||||
|
##########################################################
|
||||||
|
## this is example bindings configuration file, copy it ##
|
||||||
|
## to ~/.ncmpcpp/bindings and set up your preferences ##
|
||||||
|
##########################################################
|
||||||
|
##
|
||||||
|
##### General rules #####
|
||||||
|
##
|
||||||
|
## 1) Because each action has runtime checks whether it's
|
||||||
|
## ok to run it, a few actions can be bound to one key.
|
||||||
|
## Actions will be bound in order given in configuration
|
||||||
|
## file. When a key is pressed, first action in order
|
||||||
|
## will test itself whether it's possible to run it. If
|
||||||
|
## test succeeds, action is executed and other actions
|
||||||
|
## bound to this key are ignored. If it doesn't, next
|
||||||
|
## action in order tests itself etc.
|
||||||
|
##
|
||||||
|
## 2) It's possible to bind more that one action at once
|
||||||
|
## to a key. It can be done using the following syntax:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action1
|
||||||
|
## action2
|
||||||
|
## ...
|
||||||
|
##
|
||||||
|
## This creates a chain of actions. When such chain is
|
||||||
|
## executed, each action in chain is run until the end of
|
||||||
|
## chain is reached or one of its actions fails to execute
|
||||||
|
## due to its requirements not being met. If multiple actions
|
||||||
|
## and/or chains are bound to the same key, they will be
|
||||||
|
## consecutively run until one of them gets fully executed.
|
||||||
|
##
|
||||||
|
## 3) When ncmpcpp starts, bindings configuration file is
|
||||||
|
## parsed and then ncmpcpp provides "missing pieces"
|
||||||
|
## of default keybindings. If you want to disable some
|
||||||
|
## bindings, there is a special action called 'dummy'
|
||||||
|
## for that purpose. Eg. if you want to disable ability
|
||||||
|
## to crop playlists, you need to put the following
|
||||||
|
## into configuration file:
|
||||||
|
##
|
||||||
|
## def_key "C"
|
||||||
|
## dummy
|
||||||
|
##
|
||||||
|
## After that ncmpcpp will not bind any default action
|
||||||
|
## to this key.
|
||||||
|
##
|
||||||
|
## 4) To let you write simple macros, the following special
|
||||||
|
## actions are provided:
|
||||||
|
##
|
||||||
|
## - push_character "character" - pushes given special
|
||||||
|
## character into input queue, so it will be immediately
|
||||||
|
## picked by ncmpcpp upon next call to readKey function.
|
||||||
|
## Accepted values: mouse, up, down, page_up, page_down,
|
||||||
|
## home, end, space, enter, insert, delete, left, right,
|
||||||
|
## tab, shift_tab, ctrl_a, ctrl_b, ..., ctrl_z, f1, f2,
|
||||||
|
## ..., f12, backspace, backspace_2.
|
||||||
|
##
|
||||||
|
## - push_characters "string" - pushes given string into
|
||||||
|
## input queue.
|
||||||
|
##
|
||||||
|
## - require_runnable "action" - checks whether given action
|
||||||
|
## is runnable and fails if it isn't. This is especially
|
||||||
|
## useful when mixed with previous two functions. Consider
|
||||||
|
## the following macro definition:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## push_characters "custom_filter"
|
||||||
|
## apply_filter
|
||||||
|
##
|
||||||
|
## If apply_filter can't be currently run, we end up with
|
||||||
|
## sequence of characters in input queue which will be
|
||||||
|
## treated just as we typed them. This may lead to unexpected
|
||||||
|
## results (in this case 'c' will most likely clear current
|
||||||
|
## playlist, 'u' will trigger database update, 's' will stop
|
||||||
|
## playback etc.). To prevent such thing from happening, we
|
||||||
|
## need to change above definition to this one:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## require_runnable "apply_filter"
|
||||||
|
## push_characters "custom_filter"
|
||||||
|
## apply_filter
|
||||||
|
##
|
||||||
|
## Here, first we test whether apply_filter can be actually run
|
||||||
|
## before we stuff characters into input queue, so if condition
|
||||||
|
## is not met, whole chain is aborted and we're fine.
|
||||||
|
##
|
||||||
|
## - require_screen "screen" - checks whether given screen is
|
||||||
|
## currently active. accepted values: browser, clock, help,
|
||||||
|
## media_library, outputs, playlist, playlist_editor,
|
||||||
|
## search_engine, tag_editor, visualizer, last_fm, lyrics,
|
||||||
|
## selected_items_adder, server_info, song_info,
|
||||||
|
## sort_playlist_dialog, tiny_tag_editor.
|
||||||
|
##
|
||||||
|
## - run_external_command "command" - runs given command using
|
||||||
|
## system() function.
|
||||||
|
##
|
||||||
|
## 5) In addition to binding to a key, you can also bind actions
|
||||||
|
## or chains of actions to a command. If it comes to commands,
|
||||||
|
## syntax is very similar to defining keys. Here goes example
|
||||||
|
## definition of a command:
|
||||||
|
##
|
||||||
|
## def_command "quit" [deferred]
|
||||||
|
## stop
|
||||||
|
## quit
|
||||||
|
##
|
||||||
|
## If you execute the above command (which can be done by
|
||||||
|
## invoking action execute_command, typing 'quit' and pressing
|
||||||
|
## enter), ncmpcpp will stop the player and then quit. Note the
|
||||||
|
## presence of word 'deferred' enclosed in square brackets. It
|
||||||
|
## tells ncmpcpp to wait for confirmation (ie. pressing enter)
|
||||||
|
## after you typed quit. Instead of 'deferred', 'immediate'
|
||||||
|
## could be used. Then ncmpcpp will not wait for confirmation
|
||||||
|
## (enter) and will execute the command the moment it sees it.
|
||||||
|
##
|
||||||
|
## Note: Both 'backspace' and 'backspace_2' are used because some
|
||||||
|
## terminals interpret backspace using keycode of 'backspace'
|
||||||
|
## and some the one of 'backspace_2'. You can get away with
|
||||||
|
## binding once if all your terminal emulators use the same
|
||||||
|
## value.
|
||||||
|
##
|
||||||
|
## Note: There is a difference between:
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action1
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action2
|
||||||
|
##
|
||||||
|
## and
|
||||||
|
##
|
||||||
|
## def_key "key"
|
||||||
|
## action1
|
||||||
|
## action2
|
||||||
|
##
|
||||||
|
## First one binds two single actions to the same key whilst
|
||||||
|
## second one defines a chain of actions. The behavior of
|
||||||
|
## these two is different and is described in (1) and (2).
|
||||||
|
##
|
||||||
|
## Note: Function def_key accepts non-ascii characters.
|
||||||
|
##
|
||||||
|
##### List of unbound actions #####
|
||||||
|
##
|
||||||
|
## The following actions are not bound to any key/command:
|
||||||
|
##
|
||||||
|
## - set_volume
|
||||||
|
## - filter_playlist_on_priorities
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#def_key "mouse"
|
||||||
|
# mouse_event
|
||||||
|
#
|
||||||
|
def_key "k"
|
||||||
|
scroll_up
|
||||||
|
|
||||||
|
def_key "j"
|
||||||
|
scroll_down
|
||||||
|
|
||||||
|
#def_key "["
|
||||||
|
# scroll_up_album
|
||||||
|
#
|
||||||
|
#def_key "]"
|
||||||
|
# scroll_down_album
|
||||||
|
#
|
||||||
|
#def_key "{"
|
||||||
|
# scroll_up_artist
|
||||||
|
#
|
||||||
|
#def_key "}"
|
||||||
|
# scroll_down_artist
|
||||||
|
#
|
||||||
|
def_key "g"
|
||||||
|
page_up
|
||||||
|
|
||||||
|
def_key "G"
|
||||||
|
page_down
|
||||||
|
#
|
||||||
|
#def_key "home"
|
||||||
|
# move_home
|
||||||
|
#
|
||||||
|
#def_key "end"
|
||||||
|
# move_end
|
||||||
|
#
|
||||||
|
#def_key "space"
|
||||||
|
# press_space
|
||||||
|
#
|
||||||
|
#def_key "enter"
|
||||||
|
# press_enter
|
||||||
|
#
|
||||||
|
def_key "d"
|
||||||
|
delete_playlist_items
|
||||||
|
|
||||||
|
#def_key "delete"
|
||||||
|
# delete_stored_playlist
|
||||||
|
#
|
||||||
|
def_key "l"
|
||||||
|
next_column
|
||||||
|
#
|
||||||
|
#def_key "right"
|
||||||
|
# slave_screen
|
||||||
|
#
|
||||||
|
#def_key "right"
|
||||||
|
# volume_up
|
||||||
|
#
|
||||||
|
def_key "="
|
||||||
|
volume_up
|
||||||
|
|
||||||
|
def_key "h"
|
||||||
|
previous_column
|
||||||
|
#
|
||||||
|
#def_key "left"
|
||||||
|
# master_screen
|
||||||
|
#
|
||||||
|
#def_key "left"
|
||||||
|
# volume_down
|
||||||
|
#
|
||||||
|
def_key "-"
|
||||||
|
volume_down
|
||||||
|
#
|
||||||
|
#def_key ":"
|
||||||
|
# execute_command
|
||||||
|
#
|
||||||
|
#def_key "tab"
|
||||||
|
# next_screen
|
||||||
|
#
|
||||||
|
#def_key "shift_tab"
|
||||||
|
# previous_screen
|
||||||
|
#
|
||||||
|
def_key "1"
|
||||||
|
show_help
|
||||||
|
|
||||||
|
def_key "2"
|
||||||
|
show_playlist
|
||||||
|
|
||||||
|
def_key "3"
|
||||||
|
show_browser
|
||||||
|
|
||||||
|
def_key "3"
|
||||||
|
change_browse_mode
|
||||||
|
|
||||||
|
def_key "4"
|
||||||
|
show_search_engine
|
||||||
|
|
||||||
|
def_key "4"
|
||||||
|
reset_search_engine
|
||||||
|
|
||||||
|
def_key "5"
|
||||||
|
show_media_library
|
||||||
|
|
||||||
|
def_key "5"
|
||||||
|
toggle_media_library_columns_mode
|
||||||
|
|
||||||
|
def_key "6"
|
||||||
|
show_playlist_editor
|
||||||
|
|
||||||
|
def_key "7"
|
||||||
|
show_tag_editor
|
||||||
|
|
||||||
|
def_key "8"
|
||||||
|
show_outputs
|
||||||
|
|
||||||
|
def_key "9"
|
||||||
|
show_visualizer
|
||||||
|
|
||||||
|
#def_key "="
|
||||||
|
# show_clock
|
||||||
|
#
|
||||||
|
#def_key "@"
|
||||||
|
# show_server_info
|
||||||
|
#
|
||||||
|
#def_key "s"
|
||||||
|
# stop
|
||||||
|
#
|
||||||
|
#def_key "p"
|
||||||
|
# pause
|
||||||
|
#
|
||||||
|
#def_key ">"
|
||||||
|
# next
|
||||||
|
#
|
||||||
|
#def_key "<"
|
||||||
|
# previous
|
||||||
|
#
|
||||||
|
#def_key "ctrl_h"
|
||||||
|
# jump_to_parent_directory
|
||||||
|
#
|
||||||
|
#def_key "ctrl_h"
|
||||||
|
# replay_song
|
||||||
|
#
|
||||||
|
#def_key "backspace"
|
||||||
|
# jump_to_parent_directory
|
||||||
|
#
|
||||||
|
#def_key "backspace"
|
||||||
|
# replay_song
|
||||||
|
#
|
||||||
|
#def_key "backspace_2"
|
||||||
|
# jump_to_parent_directory
|
||||||
|
#
|
||||||
|
#def_key "backspace_2"
|
||||||
|
# replay_song
|
||||||
|
#
|
||||||
|
#def_key "f"
|
||||||
|
# seek_forward
|
||||||
|
#
|
||||||
|
#def_key "b"
|
||||||
|
# seek_backward
|
||||||
|
#
|
||||||
|
#def_key "r"
|
||||||
|
# toggle_repeat
|
||||||
|
#
|
||||||
|
#def_key "z"
|
||||||
|
# toggle_random
|
||||||
|
#
|
||||||
|
#def_key "y"
|
||||||
|
# save_tag_changes
|
||||||
|
#
|
||||||
|
#def_key "y"
|
||||||
|
# start_searching
|
||||||
|
#
|
||||||
|
#def_key "y"
|
||||||
|
# toggle_single
|
||||||
|
#
|
||||||
|
#def_key "R"
|
||||||
|
# toggle_consume
|
||||||
|
#
|
||||||
|
#def_key "Y"
|
||||||
|
# toggle_replay_gain_mode
|
||||||
|
#
|
||||||
|
#def_key "t"
|
||||||
|
# toggle_space_mode
|
||||||
|
#
|
||||||
|
#def_key "T"
|
||||||
|
# toggle_add_mode
|
||||||
|
#
|
||||||
|
#def_key "|"
|
||||||
|
# toggle_mouse
|
||||||
|
#
|
||||||
|
#def_key "#"
|
||||||
|
# toggle_bitrate_visibility
|
||||||
|
#
|
||||||
|
#def_key "Z"
|
||||||
|
# shuffle
|
||||||
|
#
|
||||||
|
#def_key "x"
|
||||||
|
# toggle_crossfade
|
||||||
|
#
|
||||||
|
#def_key "X"
|
||||||
|
# set_crossfade
|
||||||
|
#
|
||||||
|
#def_key "u"
|
||||||
|
# update_database
|
||||||
|
#
|
||||||
|
#def_key "ctrl_v"
|
||||||
|
# sort_playlist
|
||||||
|
#
|
||||||
|
#def_key "ctrl_r"
|
||||||
|
# reverse_playlist
|
||||||
|
#
|
||||||
|
#def_key "ctrl_f"
|
||||||
|
# apply_filter
|
||||||
|
#
|
||||||
|
#def_key "/"
|
||||||
|
# find
|
||||||
|
#
|
||||||
|
#def_key "/"
|
||||||
|
# find_item_forward
|
||||||
|
#
|
||||||
|
#def_key "?"
|
||||||
|
# find
|
||||||
|
#
|
||||||
|
#def_key "?"
|
||||||
|
# find_item_backward
|
||||||
|
#
|
||||||
|
#def_key "."
|
||||||
|
# next_found_item
|
||||||
|
#
|
||||||
|
#def_key ","
|
||||||
|
# previous_found_item
|
||||||
|
#
|
||||||
|
#def_key "w"
|
||||||
|
# toggle_find_mode
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_song
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_library_tag
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_library_album
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_directory_name
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_playlist_name
|
||||||
|
#
|
||||||
|
#def_key "e"
|
||||||
|
# edit_lyrics
|
||||||
|
#
|
||||||
|
#def_key "i"
|
||||||
|
# show_song_info
|
||||||
|
#
|
||||||
|
#def_key "I"
|
||||||
|
# show_artist_info
|
||||||
|
#
|
||||||
|
#def_key "g"
|
||||||
|
# jump_to_position_in_song
|
||||||
|
#
|
||||||
|
def_key "l"
|
||||||
|
show_lyrics
|
||||||
|
|
||||||
|
#def_key "v"
|
||||||
|
# reverse_selection
|
||||||
|
#
|
||||||
|
#def_key "V"
|
||||||
|
# remove_selection
|
||||||
|
#
|
||||||
|
#def_key "B"
|
||||||
|
# select_album
|
||||||
|
#
|
||||||
|
#def_key "a"
|
||||||
|
# add_selected_items
|
||||||
|
#
|
||||||
|
#def_key "c"
|
||||||
|
# clear_playlist
|
||||||
|
#
|
||||||
|
#def_key "c"
|
||||||
|
# clear_main_playlist
|
||||||
|
#
|
||||||
|
#def_key "C"
|
||||||
|
# crop_playlist
|
||||||
|
#
|
||||||
|
#def_key "C"
|
||||||
|
# crop_main_playlist
|
||||||
|
#
|
||||||
|
#def_key "m"
|
||||||
|
# move_sort_order_up
|
||||||
|
#
|
||||||
|
#def_key "m"
|
||||||
|
# move_selected_items_up
|
||||||
|
#
|
||||||
|
#def_key "m"
|
||||||
|
# toggle_media_library_sort_mode
|
||||||
|
#
|
||||||
|
#def_key "m"
|
||||||
|
# set_visualizer_sample_multiplier
|
||||||
|
#
|
||||||
|
#def_key "n"
|
||||||
|
# move_sort_order_down
|
||||||
|
#
|
||||||
|
#def_key "n"
|
||||||
|
# move_selected_items_down
|
||||||
|
#
|
||||||
|
#def_key "M"
|
||||||
|
# move_selected_items_to
|
||||||
|
#
|
||||||
|
#def_key "A"
|
||||||
|
# add
|
||||||
|
#
|
||||||
|
#def_key "S"
|
||||||
|
# save_playlist
|
||||||
|
#
|
||||||
|
#def_key "o"
|
||||||
|
# jump_to_playing_song
|
||||||
|
#
|
||||||
|
#def_key "G"
|
||||||
|
# jump_to_browser
|
||||||
|
#
|
||||||
|
#def_key "G"
|
||||||
|
# jump_to_playlist_editor
|
||||||
|
#
|
||||||
|
#def_key "~"
|
||||||
|
# jump_to_media_library
|
||||||
|
#
|
||||||
|
#def_key "E"
|
||||||
|
# jump_to_tag_editor
|
||||||
|
#
|
||||||
|
#def_key "U"
|
||||||
|
# toggle_playing_song_centering
|
||||||
|
#
|
||||||
|
#def_key "P"
|
||||||
|
# toggle_display_mode
|
||||||
|
#
|
||||||
|
#def_key "\\"
|
||||||
|
# toggle_interface
|
||||||
|
#
|
||||||
|
#def_key "!"
|
||||||
|
# toggle_separators_between_albums
|
||||||
|
#
|
||||||
|
#def_key "L"
|
||||||
|
# toggle_lyrics_fetcher
|
||||||
|
#
|
||||||
|
#def_key "F"
|
||||||
|
# toggle_fetching_lyrics_in_background
|
||||||
|
#
|
||||||
|
#def_key "ctrl_l"
|
||||||
|
# toggle_screen_lock
|
||||||
|
#
|
||||||
|
#def_key "`"
|
||||||
|
# toggle_browser_sort_mode
|
||||||
|
#
|
||||||
|
#def_key "`"
|
||||||
|
# toggle_library_tag_type
|
||||||
|
#
|
||||||
|
#def_key "`"
|
||||||
|
# refetch_lyrics
|
||||||
|
#
|
||||||
|
#def_key "`"
|
||||||
|
# add_random_items
|
||||||
|
#
|
||||||
|
#def_key "ctrl_p"
|
||||||
|
# set_selected_items_priority
|
||||||
|
#
|
||||||
|
def_key "q"
|
||||||
|
quit
|
||||||
|
|
534
.config/ncmpcpp/config
Normal file
534
.config/ncmpcpp/config
Normal file
@ -0,0 +1,534 @@
|
|||||||
|
##############################################################################
|
||||||
|
## This is the example configuration file. Copy it to $HOME/.ncmpcpp/config ##
|
||||||
|
## or $XDG_CONFIG_HOME/ncmpcpp/config and set up your preferences. ##
|
||||||
|
##############################################################################
|
||||||
|
#
|
||||||
|
##### directories ######
|
||||||
|
##
|
||||||
|
## Directory for storing ncmpcpp related files. Changing it is useful if you
|
||||||
|
## want to store everything somewhere else and provide command line setting for
|
||||||
|
## alternative location to config file which defines that while launching
|
||||||
|
## ncmpcpp.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
ncmpcpp_directory = ~/.config/ncmpcpp
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Directory for storing downloaded lyrics. It defaults to ~/.lyrics since other
|
||||||
|
## MPD clients (eg. ncmpc) also use that location.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
lyrics_directory = ~/music/.lyrics
|
||||||
|
#
|
||||||
|
##### connection settings #####
|
||||||
|
#
|
||||||
|
mpd_host = localhost
|
||||||
|
#
|
||||||
|
mpd_port = 6600
|
||||||
|
#
|
||||||
|
mpd_connection_timeout = 5
|
||||||
|
#
|
||||||
|
## Needed for tag editor and file operations to work.
|
||||||
|
##
|
||||||
|
mpd_music_dir = ~/music
|
||||||
|
#
|
||||||
|
mpd_crossfade_time = 5
|
||||||
|
#
|
||||||
|
##### music visualizer #####
|
||||||
|
##
|
||||||
|
## Note: In order to make music visualizer work you'll need to use mpd fifo
|
||||||
|
## output, whose format parameter has to be set to 44100:16:1 for mono
|
||||||
|
## visualization or 44100:16:2 for stereo visualization. Example configuration
|
||||||
|
## (it has to be put into mpd.conf):
|
||||||
|
##
|
||||||
|
## audio_output {
|
||||||
|
## type "fifo"
|
||||||
|
## name "Visualizer feed"
|
||||||
|
## path "/tmp/mpd.fifo"
|
||||||
|
## format "44100:16:2"
|
||||||
|
## }
|
||||||
|
##
|
||||||
|
#
|
||||||
|
visualizer_data_source = /tmp/mpd.fifo
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Below parameter is needed for ncmpcpp to determine which output
|
||||||
|
## provides data for visualizer and thus allow syncing between visualization and
|
||||||
|
## sound as currently there are some problems with it.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
visualizer_output_name = Visualizer feed
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## If you set format to 44100:16:2, make it 'yes'.
|
||||||
|
##
|
||||||
|
visualizer_in_stereo = yes
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: To enable spectrum frequency visualization you need to compile ncmpcpp
|
||||||
|
## with fftw3 support.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
## Available values: spectrum, wave, wave_filled, ellipse.
|
||||||
|
##
|
||||||
|
visualizer_type = spectrum
|
||||||
|
#
|
||||||
|
visualizer_look = ●▮
|
||||||
|
#
|
||||||
|
visualizer_color = blue, cyan, green, yellow, magenta, red
|
||||||
|
#
|
||||||
|
## Alternative subset of 256 colors for terminals that support it.
|
||||||
|
##
|
||||||
|
#visualizer_color = 41, 83, 119, 155, 185, 215, 209, 203, 197, 161
|
||||||
|
#
|
||||||
|
##### system encoding #####
|
||||||
|
##
|
||||||
|
## ncmpcpp should detect your charset encoding but if it failed to do so, you
|
||||||
|
## can specify charset encoding you are using here.
|
||||||
|
##
|
||||||
|
## Note: You can see whether your ncmpcpp build supports charset detection by
|
||||||
|
## checking output of `ncmpcpp --version`.
|
||||||
|
##
|
||||||
|
## Note: Since MPD uses UTF-8 by default, setting this option makes sense only
|
||||||
|
## if your encoding is different.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#system_encoding = ""
|
||||||
|
#
|
||||||
|
##### delays #####
|
||||||
|
#
|
||||||
|
## Time of inactivity (in seconds) after playlist highlighting will be disabled
|
||||||
|
## (0 = always on).
|
||||||
|
##
|
||||||
|
#playlist_disable_highlight_delay = 5
|
||||||
|
#
|
||||||
|
## Defines how long messages are supposed to be visible.
|
||||||
|
##
|
||||||
|
#message_delay_time = 5
|
||||||
|
#
|
||||||
|
##### song format #####
|
||||||
|
##
|
||||||
|
## For a song format you can use:
|
||||||
|
##
|
||||||
|
## %l - length
|
||||||
|
## %f - filename
|
||||||
|
## %D - directory
|
||||||
|
## %a - artist
|
||||||
|
## %A - album artist
|
||||||
|
## %t - title
|
||||||
|
## %b - album
|
||||||
|
## %y - date
|
||||||
|
## %n - track number (01/12 -> 01)
|
||||||
|
## %N - full track info (01/12 -> 01/12)
|
||||||
|
## %g - genre
|
||||||
|
## %c - composer
|
||||||
|
## %p - performer
|
||||||
|
## %d - disc
|
||||||
|
## %C - comment
|
||||||
|
## %P - priority
|
||||||
|
## $R - begin right alignment
|
||||||
|
##
|
||||||
|
## If you want to make sure that a part of the format is displayed only when
|
||||||
|
## certain tags are present, you can archieve it by grouping them with brackets,
|
||||||
|
## e.g. '{%a - %t}' will be evaluated to 'ARTIST - TITLE' if both tags are
|
||||||
|
## present or '' otherwise. It is also possible to define a list of
|
||||||
|
## alternatives by providing several groups and separating them with '|',
|
||||||
|
## e.g. '{%t}|{%f}' will be evaluated to 'TITLE' or 'FILENAME' if the former is
|
||||||
|
## not present.
|
||||||
|
##
|
||||||
|
## Note: If you want to set limit on maximal length of a tag, just put the
|
||||||
|
## appropriate number between % and character that defines tag type, e.g. to
|
||||||
|
## make album take max. 20 terminal cells, use '%20b'.
|
||||||
|
##
|
||||||
|
## In addition, formats support markers used for text attributes. They are
|
||||||
|
## followed by character '$'. After that you can put:
|
||||||
|
##
|
||||||
|
## - 0 - default window color (discards all other colors)
|
||||||
|
## - 1 - black
|
||||||
|
## - 2 - red
|
||||||
|
## - 3 - green
|
||||||
|
## - 4 - yellow
|
||||||
|
## - 5 - blue
|
||||||
|
## - 6 - magenta
|
||||||
|
## - 7 - cyan
|
||||||
|
## - 8 - white
|
||||||
|
## - 9 - end of current color
|
||||||
|
## - b - bold text
|
||||||
|
## - u - underline text
|
||||||
|
## - r - reverse colors
|
||||||
|
## - a - use alternative character set
|
||||||
|
##
|
||||||
|
## If you don't want to use a non-color attribute anymore, just put it again,
|
||||||
|
## but this time insert character '/' between '$' and attribute character,
|
||||||
|
## e.g. {$b%t$/b}|{$r%f$/r} will display bolded title tag or filename with
|
||||||
|
## reversed colors.
|
||||||
|
##
|
||||||
|
## If you want to use 256 colors and/or background colors in formats (the naming
|
||||||
|
## scheme is described below in section about color definitions), it can be done
|
||||||
|
## with the syntax $(COLOR), e.g. to set the artist tag to one of the
|
||||||
|
## non-standard colors and make it have yellow background, you need to write
|
||||||
|
## $(197_yellow)%a$(end). Note that for standard colors this is interchangable
|
||||||
|
## with attributes listed above.
|
||||||
|
##
|
||||||
|
## Note: colors can be nested.
|
||||||
|
##
|
||||||
|
song_list_format = "{$3[%l]$9} {$6%30t$9}|{$6%30f$9} %n"
|
||||||
|
#
|
||||||
|
song_status_format = $b {$3%a$9 - $7{%t}}|{%f} {(%b)}
|
||||||
|
#
|
||||||
|
#song_library_format = {%n - }{%t}|{%f}
|
||||||
|
#
|
||||||
|
#alternative_header_first_line_format = $b$1$aqqu$/a$9 {%t}|{%f} $1$atqq$/a$9$/b
|
||||||
|
#
|
||||||
|
#alternative_header_second_line_format = {{$4$b%a$/b$9}{ - $7%b$9}{ ($4%y$9)}}|{%D}
|
||||||
|
#
|
||||||
|
#current_item_prefix = $(yellow)$r
|
||||||
|
#
|
||||||
|
#current_item_suffix = $/r$(end)
|
||||||
|
#
|
||||||
|
#current_item_inactive_column_prefix = $(white)$r
|
||||||
|
#
|
||||||
|
#current_item_inactive_column_suffix = $/r$(end)
|
||||||
|
#
|
||||||
|
#now_playing_prefix = $b
|
||||||
|
#
|
||||||
|
#now_playing_suffix = $/b
|
||||||
|
#
|
||||||
|
#browser_playlist_prefix = "$2playlist$9 "
|
||||||
|
#
|
||||||
|
#selected_item_prefix = $6
|
||||||
|
#
|
||||||
|
#selected_item_suffix = $9
|
||||||
|
#
|
||||||
|
#modified_item_prefix = $3> $9
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: attributes are not supported for the following variables.
|
||||||
|
##
|
||||||
|
#song_window_title_format = {%a - }{%t}|{%f}
|
||||||
|
##
|
||||||
|
## Note: Below variables are used for sorting songs in browser. The sort mode
|
||||||
|
## determines how songs are sorted, and can be used in combination with a sort
|
||||||
|
## format to specify a custom sorting format. Available values for
|
||||||
|
## browser_sort_mode are "name", "mtime", "format" and "noop".
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#browser_sort_mode = name
|
||||||
|
#
|
||||||
|
#browser_sort_format = {%a - }{%t}|{%f} {(%l)}
|
||||||
|
#
|
||||||
|
##### columns settings #####
|
||||||
|
##
|
||||||
|
## syntax of song columns list format is "column column etc."
|
||||||
|
##
|
||||||
|
## - syntax for each column is:
|
||||||
|
##
|
||||||
|
## (width of the column)[color of the column]{displayed tag}
|
||||||
|
##
|
||||||
|
## Note: Width is by default in %, if you want a column to have fixed size, add
|
||||||
|
## 'f' after the value, e.g. (10)[white]{a} will be the column that take 10% of
|
||||||
|
## screen (so the real width will depend on actual screen size), whereas
|
||||||
|
## (10f)[white]{a} will take 10 terminal cells, no matter how wide the screen
|
||||||
|
## is.
|
||||||
|
##
|
||||||
|
## - color is optional (if you want the default one, leave the field empty).
|
||||||
|
##
|
||||||
|
## Note: You can give a column additional attributes by putting appropriate
|
||||||
|
## character after displayed tag character. Available attributes are:
|
||||||
|
##
|
||||||
|
## - r - column will be right aligned
|
||||||
|
## - E - if tag is empty, empty tag marker won't be displayed
|
||||||
|
##
|
||||||
|
## You can also:
|
||||||
|
##
|
||||||
|
## - give a column custom name by putting it after attributes, separated with
|
||||||
|
## character ':', e.g. {lr:Length} gives you right aligned column of lengths
|
||||||
|
## named "Length".
|
||||||
|
##
|
||||||
|
## - define sequence of tags, that have to be displayed in case predecessor is
|
||||||
|
## empty in a way similar to the one in classic song format, i.e. using '|'
|
||||||
|
## character, e.g. {a|c|p:Owner} creates column named "Owner" that tries to
|
||||||
|
## display artist tag and then composer and performer if previous ones are not
|
||||||
|
## available.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
song_columns_list_format = (6f)[green]{NE} (30)[white]{t|f:Title} (7f)[green]{l} (30)[]{a} (30)[]{b}
|
||||||
|
#
|
||||||
|
##### various settings #####
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Custom command that will be executed each time song changes. Useful for
|
||||||
|
## notifications etc.
|
||||||
|
##
|
||||||
|
#execute_on_song_change = ""
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Custom command that will be executed each time player state
|
||||||
|
## changes. The environment variable MPD_PLAYER_STATE is set to the current
|
||||||
|
## state (either unknown, play, pause, or stop) for its duration.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#execute_on_player_state_change = ""
|
||||||
|
#
|
||||||
|
#playlist_show_mpd_host = no
|
||||||
|
#
|
||||||
|
#playlist_show_remaining_time = no
|
||||||
|
#
|
||||||
|
#playlist_shorten_total_times = no
|
||||||
|
#
|
||||||
|
#playlist_separate_albums = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: Possible display modes: classic, columns.
|
||||||
|
##
|
||||||
|
#playlist_display_mode = columns
|
||||||
|
#
|
||||||
|
#browser_display_mode = classic
|
||||||
|
#
|
||||||
|
#search_engine_display_mode = classic
|
||||||
|
#
|
||||||
|
#playlist_editor_display_mode = classic
|
||||||
|
#
|
||||||
|
#discard_colors_if_item_is_selected = yes
|
||||||
|
#
|
||||||
|
#show_duplicate_tags = yes
|
||||||
|
#
|
||||||
|
#incremental_seeking = yes
|
||||||
|
#
|
||||||
|
#seek_time = 1
|
||||||
|
#
|
||||||
|
#volume_change_step = 2
|
||||||
|
#
|
||||||
|
#autocenter_mode = no
|
||||||
|
#
|
||||||
|
#centered_cursor = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can specify third character which will be used to build 'empty'
|
||||||
|
## part of progressbar.
|
||||||
|
##
|
||||||
|
#progressbar_look = =>
|
||||||
|
#
|
||||||
|
## Available values: database, playlist.
|
||||||
|
##
|
||||||
|
#default_place_to_search_in = database
|
||||||
|
#
|
||||||
|
## Available values: classic, alternative.
|
||||||
|
##
|
||||||
|
#user_interface = classic
|
||||||
|
#
|
||||||
|
#data_fetching_delay = yes
|
||||||
|
#
|
||||||
|
## Available values: artist, album_artist, date, genre, composer, performer.
|
||||||
|
##
|
||||||
|
#media_library_primary_tag = artist
|
||||||
|
#
|
||||||
|
#media_library_albums_split_by_date = yes
|
||||||
|
#
|
||||||
|
## Available values: wrapped, normal.
|
||||||
|
##
|
||||||
|
#default_find_mode = wrapped
|
||||||
|
#
|
||||||
|
#default_tag_editor_pattern = %n - %t
|
||||||
|
#
|
||||||
|
#header_visibility = yes
|
||||||
|
#
|
||||||
|
#statusbar_visibility = yes
|
||||||
|
#
|
||||||
|
#titles_visibility = yes
|
||||||
|
#
|
||||||
|
#header_text_scrolling = yes
|
||||||
|
#
|
||||||
|
#cyclic_scrolling = no
|
||||||
|
#
|
||||||
|
#lines_scrolled = 2
|
||||||
|
#
|
||||||
|
#lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet
|
||||||
|
#
|
||||||
|
#follow_now_playing_lyrics = no
|
||||||
|
#
|
||||||
|
#fetch_lyrics_for_current_song_in_background = no
|
||||||
|
#
|
||||||
|
#store_lyrics_in_song_dir = no
|
||||||
|
#
|
||||||
|
#generate_win32_compatible_filenames = yes
|
||||||
|
#
|
||||||
|
#allow_for_physical_item_deletion = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: If you set this variable, ncmpcpp will try to get info from last.fm in
|
||||||
|
## language you set and if it fails, it will fall back to english. Otherwise it
|
||||||
|
## will use english the first time.
|
||||||
|
##
|
||||||
|
## Note: Language has to be expressed as an ISO 639 alpha-2 code.
|
||||||
|
##
|
||||||
|
#lastfm_preferred_language = en
|
||||||
|
#
|
||||||
|
#space_add_mode = add_remove
|
||||||
|
#
|
||||||
|
#show_hidden_files_in_local_browser = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## How shall screen switcher work?
|
||||||
|
##
|
||||||
|
## - "previous" - switch between the current and previous screen.
|
||||||
|
## - "screen1,...,screenN" - switch between given sequence of screens.
|
||||||
|
##
|
||||||
|
## Screens available for use: help, playlist, browser, search_engine,
|
||||||
|
## media_library, playlist_editor, tag_editor, outputs, visualizer, clock,
|
||||||
|
## lyrics, last_fm.
|
||||||
|
##
|
||||||
|
screen_switcher_mode = playlist, browser
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can define startup screen by choosing screen from the list above.
|
||||||
|
##
|
||||||
|
startup_screen = browser
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can define startup slave screen by choosing screen from the list
|
||||||
|
## above or an empty value for no slave screen.
|
||||||
|
##
|
||||||
|
#startup_slave_screen = ""
|
||||||
|
#
|
||||||
|
#startup_slave_screen_focus = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Default width of locked screen (in %). Acceptable values are from 20 to 80.
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#locked_screen_width_part = 50
|
||||||
|
#
|
||||||
|
#ask_for_locked_screen_width_part = yes
|
||||||
|
#
|
||||||
|
#jump_to_now_playing_song_at_start = yes
|
||||||
|
#
|
||||||
|
#ask_before_clearing_playlists = yes
|
||||||
|
#
|
||||||
|
#clock_display_seconds = no
|
||||||
|
#
|
||||||
|
#display_volume_level = yes
|
||||||
|
#
|
||||||
|
#display_bitrate = no
|
||||||
|
#
|
||||||
|
#display_remaining_time = no
|
||||||
|
#
|
||||||
|
## Available values: none, basic, extended, perl.
|
||||||
|
##
|
||||||
|
#regular_expressions = perl
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: if below is enabled, ncmpcpp will ignore leading "The" word while
|
||||||
|
## sorting items in browser, tags in media library, etc.
|
||||||
|
##
|
||||||
|
#ignore_leading_the = no
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: if below is enabled, ncmpcpp will ignore diacritics while searching and
|
||||||
|
## filtering lists. This takes an effect only if boost was compiled with ICU
|
||||||
|
## support.
|
||||||
|
##
|
||||||
|
#ignore_diacritics = no
|
||||||
|
#
|
||||||
|
#block_search_constraints_change_if_items_found = yes
|
||||||
|
#
|
||||||
|
#mouse_support = yes
|
||||||
|
#
|
||||||
|
#mouse_list_scroll_whole_page = yes
|
||||||
|
#
|
||||||
|
#empty_tag_marker = <empty>
|
||||||
|
#
|
||||||
|
#tags_separator = " | "
|
||||||
|
#
|
||||||
|
#tag_editor_extended_numeration = no
|
||||||
|
#
|
||||||
|
#media_library_sort_by_mtime = no
|
||||||
|
#
|
||||||
|
#enable_window_title = yes
|
||||||
|
#
|
||||||
|
##
|
||||||
|
## Note: You can choose default search mode for search engine. Available modes
|
||||||
|
## are:
|
||||||
|
##
|
||||||
|
## - 1 - use mpd built-in searching (no regexes, pattern matching)
|
||||||
|
##
|
||||||
|
## - 2 - use ncmpcpp searching (pattern matching with support for regexes, but
|
||||||
|
## if your mpd is on a remote machine, downloading big database to process
|
||||||
|
## it can take a while
|
||||||
|
##
|
||||||
|
## - 3 - match only exact values (this mode uses mpd function for searching in
|
||||||
|
## database and local one for searching in current playlist)
|
||||||
|
##
|
||||||
|
#
|
||||||
|
#search_engine_default_search_mode = 1
|
||||||
|
#
|
||||||
|
#external_editor = nano
|
||||||
|
#
|
||||||
|
## Note: set to yes if external editor is a console application.
|
||||||
|
##
|
||||||
|
#use_console_editor = yes
|
||||||
|
#
|
||||||
|
##### colors definitions #####
|
||||||
|
##
|
||||||
|
## It is possible to set a background color by setting a color value
|
||||||
|
## "<foreground>_<background>", e.g. red_black will set foregound color to red
|
||||||
|
## and background color to black.
|
||||||
|
##
|
||||||
|
## In addition, for terminals that support 256 colors it is possible to set one
|
||||||
|
## of them by using a number in range [1, 256] instead of color name,
|
||||||
|
## e.g. numerical value corresponding to red_black is 2_1. To find out if the
|
||||||
|
## terminal supports 256 colors, run ncmpcpp and check out the bottom of the
|
||||||
|
## help screen for list of available colors and their numerical values.
|
||||||
|
##
|
||||||
|
## What is more, there are two special values for the background color:
|
||||||
|
## "transparent" and "current". The first one explicitly sets the background to
|
||||||
|
## be transparent, while the second one allows you to preserve current
|
||||||
|
## background color and change only the foreground one. It's used implicitly
|
||||||
|
## when background color is not specified.
|
||||||
|
##
|
||||||
|
## Moreover, it is possible to attach format information to selected color
|
||||||
|
## variables by appending to their end a colon followed by one or more format
|
||||||
|
## flags, e.g. black:b or red:ur. The following variables support this syntax:
|
||||||
|
## visualizer_color, color1, color2, empty_tag_color, volume_color,
|
||||||
|
## state_line_color, state_flags_color, progressbar_color,
|
||||||
|
## progressbar_elapsed_color, player_state_color, statusbar_time_color,
|
||||||
|
## alternative_ui_separator_color.
|
||||||
|
##
|
||||||
|
## Note: due to technical limitations of older ncurses version, if 256 colors
|
||||||
|
## are used there is a possibility that you'll be able to use only colors with
|
||||||
|
## transparent background.
|
||||||
|
#
|
||||||
|
#colors_enabled = yes
|
||||||
|
#
|
||||||
|
#empty_tag_color = cyan
|
||||||
|
#
|
||||||
|
#header_window_color = default
|
||||||
|
#
|
||||||
|
#volume_color = default
|
||||||
|
#
|
||||||
|
#state_line_color = default
|
||||||
|
#
|
||||||
|
#state_flags_color = default:b
|
||||||
|
#
|
||||||
|
#main_window_color = yellow
|
||||||
|
#
|
||||||
|
#color1 = white
|
||||||
|
#
|
||||||
|
#color2 = green
|
||||||
|
#
|
||||||
|
#progressbar_color = black:b
|
||||||
|
#
|
||||||
|
#progressbar_elapsed_color = green:b
|
||||||
|
#
|
||||||
|
#statusbar_color = default
|
||||||
|
#
|
||||||
|
#statusbar_time_color = default:b
|
||||||
|
#
|
||||||
|
#player_state_color = default:b
|
||||||
|
#
|
||||||
|
#alternative_ui_separator_color = black:b
|
||||||
|
#
|
||||||
|
#window_border_color = green
|
||||||
|
#
|
||||||
|
#active_window_border = red
|
||||||
|
#
|
26
.config/nvim/init.lua
Normal file
26
.config/nvim/init.lua
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Friday Mar 12, 2021 17:42:34 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim configuration file
|
||||||
|
|
||||||
|
require("globals") -- ./lua/globals.lua
|
||||||
|
require("utils") -- ./lua/utils.lua
|
||||||
|
require("settings") -- ./lua/settings.lua
|
||||||
|
require("plugins") -- ./lua/plugins.lua
|
||||||
|
require("maps") -- ./lua/maps.lua
|
||||||
|
require("statusline") -- ./lua/statusline.lua
|
||||||
|
|
||||||
|
require("polyjuice") -- ~/.local/src/polyjuice/lua/polyjuice.lua
|
||||||
|
|
||||||
|
-- LSP
|
||||||
|
require("lsp") -- ./lua/lsp/init.lua
|
||||||
|
require("lsp.c") -- ./lua/lsp/c.lua
|
||||||
|
require("lsp.lua") -- ./lua/lsp/lua.lua
|
||||||
|
require("lsp.python") -- ./lua/lsp/python.lua
|
||||||
|
require("lsp.tex") -- ./lua/lsp/python.lua
|
||||||
|
|
||||||
|
-- auto complete
|
||||||
|
require("plugin.compe") -- ./lua/plugin/compe.lua
|
||||||
|
|
||||||
|
-- treesitter
|
||||||
|
require("plugin.treesitter") -- ./lua/plugin/treesitter.lua
|
21
.config/nvim/lua/globals.lua
Normal file
21
.config/nvim/lua/globals.lua
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Friday May 21, 2021 22:26:24 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim global variables file
|
||||||
|
|
||||||
|
local M = {} -- The module to export
|
||||||
|
|
||||||
|
M = {
|
||||||
|
lsp_path = vim.fn.stdpath("data").. "/lsp",
|
||||||
|
|
||||||
|
-- misc
|
||||||
|
sign_error = "",
|
||||||
|
sign_warning = "",
|
||||||
|
sign_hint = "",
|
||||||
|
sign_info = "",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- Make it accessible everywhere
|
||||||
|
_G.globals = M
|
||||||
|
-- Export the module
|
||||||
|
return M
|
13
.config/nvim/lua/lsp/c.lua
Normal file
13
.config/nvim/lua/lsp/c.lua
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Tuesday May 18, 2021 12:08:51 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : clangd config file for lsp
|
||||||
|
|
||||||
|
require("lspconfig").clangd.setup {
|
||||||
|
cmd = { "clangd",
|
||||||
|
"--background-index",
|
||||||
|
"--suggest-missing-includes",
|
||||||
|
"--clang-tidy",
|
||||||
|
"--header-insertion=iwyu"
|
||||||
|
}
|
||||||
|
}
|
65
.config/nvim/lua/lsp/init.lua
Normal file
65
.config/nvim/lua/lsp/init.lua
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Tuesday May 18, 2021 12:08:51 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim lsp config file
|
||||||
|
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"LspDiagnosticsSignError",
|
||||||
|
{
|
||||||
|
texthl = "LspDiagnosticsSignError",
|
||||||
|
text = globals.sign_error,
|
||||||
|
numhl = "LspDiagnosticsSignError"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"LspDiagnosticsSignWarning",
|
||||||
|
{
|
||||||
|
texthl = "LspDiagnosticsSignWarning",
|
||||||
|
text = globals.sign_warning,
|
||||||
|
numhl = "LspDiagnosticsSignWarning"}
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"LspDiagnosticsSignHint",
|
||||||
|
{
|
||||||
|
texthl = "LspDiagnosticsSignHint",
|
||||||
|
text = globals.sign_hint,
|
||||||
|
numhl = "LspDiagnosticsSignHint"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
vim.fn.sign_define(
|
||||||
|
"LspDiagnosticsSignInformation",
|
||||||
|
{
|
||||||
|
texthl = "LspDiagnosticsSignInformation",
|
||||||
|
text = globals.sign_info,
|
||||||
|
numhl = "LspDiagnosticsSignInformation"
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
-- symbols for autocomplete
|
||||||
|
vim.lsp.protocol.CompletionItemKind = {
|
||||||
|
" ", -- Text
|
||||||
|
" ", -- Method
|
||||||
|
" ", -- Function
|
||||||
|
" ", -- Constructor
|
||||||
|
" ﴲ ", -- Field
|
||||||
|
" ", -- Variable
|
||||||
|
" ", -- Class
|
||||||
|
" ﰮ ", -- Interface
|
||||||
|
" ", -- Module
|
||||||
|
" 襁 ", -- Property
|
||||||
|
" ", -- Unit
|
||||||
|
" ", -- Value
|
||||||
|
" 練 ", -- Enum
|
||||||
|
" ", -- Keyword
|
||||||
|
" ", -- Snippet
|
||||||
|
" ", -- Color
|
||||||
|
" ", -- File
|
||||||
|
" ", -- Reference
|
||||||
|
" ", -- Folder
|
||||||
|
" ", -- EnumMember
|
||||||
|
" ﲀ ", -- Constant
|
||||||
|
" ﳤ ", -- Struct
|
||||||
|
" ", -- Event
|
||||||
|
" ", -- Operator
|
||||||
|
" ", -- TypeParameter
|
||||||
|
}
|
39
.config/nvim/lua/lsp/lua.lua
Normal file
39
.config/nvim/lua/lsp/lua.lua
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Tuesday May 18, 2021 12:08:51 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : sumneko (lua) config file for lsp
|
||||||
|
|
||||||
|
local system_name = "Linux"
|
||||||
|
|
||||||
|
-- set the path to the sumneko installation; if you previously installed via the now deprecated :LspInstall, use
|
||||||
|
local sumneko_root_path = globals.lsp_path .. "/sumneko_lua"
|
||||||
|
local sumneko_binary = sumneko_root_path.."/bin/"..system_name.."/lua-language-server"
|
||||||
|
|
||||||
|
require'lspconfig'.sumneko_lua.setup {
|
||||||
|
cmd = {sumneko_binary, "-E", sumneko_root_path .. "/main.lua"};
|
||||||
|
settings = {
|
||||||
|
Lua = {
|
||||||
|
runtime = {
|
||||||
|
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
|
||||||
|
version = 'LuaJIT',
|
||||||
|
-- Setup your lua path
|
||||||
|
path = vim.split(package.path, ';'),
|
||||||
|
},
|
||||||
|
diagnostics = {
|
||||||
|
-- Get the language server to recognize the `vim` global
|
||||||
|
globals = {'vim'},
|
||||||
|
},
|
||||||
|
workspace = {
|
||||||
|
-- Make the server aware of Neovim runtime files
|
||||||
|
library = {
|
||||||
|
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
|
||||||
|
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- Do not send telemetry data containing a randomized but unique identifier
|
||||||
|
telemetry = {
|
||||||
|
enable = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
6
.config/nvim/lua/lsp/python.lua
Normal file
6
.config/nvim/lua/lsp/python.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Tuesday May 18, 2021 15:03:43 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : jedi (python) config file for lsp
|
||||||
|
|
||||||
|
require("lspconfig").jedi_language_server.setup{}
|
12
.config/nvim/lua/lsp/tex.lua
Normal file
12
.config/nvim/lua/lsp/tex.lua
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Saturday May 23, 2021 10:34:53 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : LaTeX config file for lsp
|
||||||
|
|
||||||
|
require("lspconfig").texlab.setup {
|
||||||
|
settings = {
|
||||||
|
build = {
|
||||||
|
executable = "pdflatex"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
27
.config/nvim/lua/maps.lua
Normal file
27
.config/nvim/lua/maps.lua
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Friday Mar 12, 2021 20:17:19 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim mappings file
|
||||||
|
|
||||||
|
utils.map("n", "<space>", "<leader>")
|
||||||
|
utils.map("n", "<leader>j", "<cmd>bn<CR>")
|
||||||
|
utils.map("n", "<leader>k", "<cmd>bp<CR>")
|
||||||
|
utils.map("n", "<leader>y", "\"+y")
|
||||||
|
utils.map("n", "<leader>p", "\"+P")
|
||||||
|
utils.map("n", "<leader><enter>", "<cmd>w! | !compiler %<CR>")
|
||||||
|
utils.map("n", "<leader>s", "<cmd>PackerSync<CR>")
|
||||||
|
utils.map("n", "<leader>c", "<cmd>ColorizerToggle<CR>")
|
||||||
|
|
||||||
|
-- LSP
|
||||||
|
utils.map("n", "gd", "<cmd>lua vim.lsp.buf.definition()<CR>")
|
||||||
|
utils.map("n", "gD", "<cmd>lua vim.lsp.buf.declaration()<CR>")
|
||||||
|
utils.map("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>")
|
||||||
|
utils.map("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>")
|
||||||
|
utils.map("n", "<leader>ln", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>")
|
||||||
|
utils.map("n", "<leader>lp", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>")
|
||||||
|
utils.map("n", "<leader>lf", "<cmd>lua vim.lsp.buf.formatting()<CR>")
|
||||||
|
|
||||||
|
-- telescope
|
||||||
|
utils.map("n", "<leader>tf", "<cmd>Telescope find_files<CR>")
|
||||||
|
utils.map("n", "<leader>tb", "<cmd>Telescope file_browser<CR>")
|
||||||
|
utils.map("n", "<leader>tl", "<cmd>Telescope live_grep<CR>")
|
73
.config/nvim/lua/plugin/compe.lua
Normal file
73
.config/nvim/lua/plugin/compe.lua
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Tuesday Mar 18, 2021 23:12:25 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : compe plugin config file
|
||||||
|
|
||||||
|
require("compe").setup {
|
||||||
|
enabled = true;
|
||||||
|
autocomplete = false;
|
||||||
|
debug = false;
|
||||||
|
min_length = 1;
|
||||||
|
preselect = "enable";
|
||||||
|
throttle_time = 80;
|
||||||
|
source_timeout = 200;
|
||||||
|
incomplete_delay = 400;
|
||||||
|
max_abbr_width = 100;
|
||||||
|
max_kind_width = 10;
|
||||||
|
max_menu_width = 100;
|
||||||
|
documentation = true;
|
||||||
|
|
||||||
|
source = {
|
||||||
|
path = {menu = " [path]"},
|
||||||
|
buffer = {menu = " [buff]"},
|
||||||
|
calc = {menu = " [calc]"},
|
||||||
|
-- vsnip = {menu = " [snip]"},
|
||||||
|
nvim_lsp = {menu = " [LSP]"},
|
||||||
|
nvim_lua = {menu = " [nvim]"},
|
||||||
|
spell = {menu = " [spel]"},
|
||||||
|
tags = false,
|
||||||
|
treesitter = {menu = " [tree]"},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
local t = function(str)
|
||||||
|
return vim.api.nvim_replace_termcodes(str, true, true, true)
|
||||||
|
end
|
||||||
|
|
||||||
|
local check_back_space = function()
|
||||||
|
local col = vim.fn.col('.') - 1
|
||||||
|
if col == 0 or vim.fn.getline('.'):sub(col, col):match('%s') then
|
||||||
|
return true
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Use (s-)tab to:
|
||||||
|
--- move to prev/next item in completion menuone
|
||||||
|
--- jump to prev/next snippet's placeholder
|
||||||
|
_G.tab_complete = function()
|
||||||
|
if vim.fn.pumvisible() == 1 then
|
||||||
|
return t "<C-n>"
|
||||||
|
-- elseif vim.fn.call("vsnip#available", {1}) == 1 then
|
||||||
|
-- return t "<Plug>(vsnip-expand-or-jump)"
|
||||||
|
elseif check_back_space() then
|
||||||
|
return t "<Tab>"
|
||||||
|
else
|
||||||
|
return vim.fn['compe#complete']()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
_G.s_tab_complete = function()
|
||||||
|
if vim.fn.pumvisible() == 1 then
|
||||||
|
return t "<C-p>"
|
||||||
|
-- elseif vim.fn.call("vsnip#jumpable", {-1}) == 1 then
|
||||||
|
-- return t "<Plug>(vsnip-jump-prev)"
|
||||||
|
else
|
||||||
|
return t "<S-Tab>"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.api.nvim_set_keymap("i", "<Tab>", "v:lua.tab_complete()", {expr = true})
|
||||||
|
vim.api.nvim_set_keymap("s", "<Tab>", "v:lua.tab_complete()", {expr = true})
|
||||||
|
vim.api.nvim_set_keymap("i", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
|
||||||
|
vim.api.nvim_set_keymap("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
|
10
.config/nvim/lua/plugin/treesitter.lua
Normal file
10
.config/nvim/lua/plugin/treesitter.lua
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
require("nvim-treesitter.configs").setup {
|
||||||
|
ensure_installed = { "c", "lua", "python", "bash" },
|
||||||
|
ignore_install = { "javascript" },
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
indent = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
}
|
51
.config/nvim/lua/plugins.lua
Normal file
51
.config/nvim/lua/plugins.lua
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Friday Mar 12, 2021 22:28:34 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim plugins file
|
||||||
|
|
||||||
|
|
||||||
|
local execute = vim.api.nvim_command
|
||||||
|
local fn = vim.fn
|
||||||
|
|
||||||
|
local install_path = fn.stdpath("data").."/site/pack/packer/start/packer.nvim"
|
||||||
|
|
||||||
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
|
fn.system({"git", "clone", "https://github.com/wbthomason/packer.nvim", install_path})
|
||||||
|
execute "packadd packer.nvim"
|
||||||
|
end
|
||||||
|
|
||||||
|
return require("packer").startup(function()
|
||||||
|
-- packer manages itself
|
||||||
|
use "wbthomason/packer.nvim"
|
||||||
|
|
||||||
|
-- colorscheme
|
||||||
|
use {
|
||||||
|
"~/.local/src/polyjuice/",
|
||||||
|
requires = "tjdevries/colorbuddy.nvim"
|
||||||
|
}
|
||||||
|
|
||||||
|
-- tree-sitter
|
||||||
|
use "nvim-treesitter/nvim-treesitter"
|
||||||
|
|
||||||
|
-- fuzzy finder
|
||||||
|
use {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
requires = { "nvim-lua/popup.nvim", "nvim-lua/plenary.nvim"},
|
||||||
|
opt = true,
|
||||||
|
cmd = {"Telescope"}
|
||||||
|
}
|
||||||
|
|
||||||
|
-- LSP
|
||||||
|
use "neovim/nvim-lspconfig"
|
||||||
|
|
||||||
|
-- auto completion
|
||||||
|
use "hrsh7th/nvim-compe"
|
||||||
|
|
||||||
|
-- display colors directly in editor
|
||||||
|
use {
|
||||||
|
"norcalli/nvim-colorizer.lua",
|
||||||
|
opt = true,
|
||||||
|
cmd = {"ColorizerToggle"}
|
||||||
|
}
|
||||||
|
|
||||||
|
end)
|
63
.config/nvim/lua/settings.lua
Normal file
63
.config/nvim/lua/settings.lua
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Friday Mar 12, 2021 17:43:21 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim settings file
|
||||||
|
|
||||||
|
local opt = vim.opt
|
||||||
|
local g = vim.g
|
||||||
|
|
||||||
|
-- general
|
||||||
|
opt.wildignore = {
|
||||||
|
".git",
|
||||||
|
"*.o", "*.class",
|
||||||
|
"*.jpg", "*.jpeg", "*.png",
|
||||||
|
"*.pdf",
|
||||||
|
"*.zip", "*.gz", "*.rar", "*.tar.xz",
|
||||||
|
}
|
||||||
|
opt.wildmode = { "longest", "full" }
|
||||||
|
opt.wildoptions = "pum"
|
||||||
|
g.loaded_netrw = 1 -- disable netrw
|
||||||
|
|
||||||
|
-- editor
|
||||||
|
opt.splitright = true
|
||||||
|
opt.splitbelow = true
|
||||||
|
opt.scrolloff = 4
|
||||||
|
opt.termguicolors = true
|
||||||
|
opt.background = "dark"
|
||||||
|
opt.shortmess = opt.shortmess:append { c = true }
|
||||||
|
opt.number = true
|
||||||
|
opt.relativenumber = true
|
||||||
|
opt.signcolumn = "yes"
|
||||||
|
opt.listchars = {
|
||||||
|
tab = "<->",
|
||||||
|
nbsp = "␣",
|
||||||
|
trail = "·",
|
||||||
|
extends = ">",
|
||||||
|
precedes = "<",
|
||||||
|
}
|
||||||
|
opt.showmatch = true
|
||||||
|
opt.ignorecase = true
|
||||||
|
opt.smartcase = true
|
||||||
|
opt.inccommand = "split"
|
||||||
|
opt.completeopt = { "menuone", "noselect" }
|
||||||
|
|
||||||
|
-- statusline
|
||||||
|
opt.laststatus = 2
|
||||||
|
opt.showmode = false
|
||||||
|
|
||||||
|
-- text, tabs, indents
|
||||||
|
opt.textwidth = 79
|
||||||
|
opt.shiftwidth = 8
|
||||||
|
opt.softtabstop = -1
|
||||||
|
opt.expandtab = true
|
||||||
|
opt.shiftwidth = 0
|
||||||
|
opt.backspace = { "indent", "eol", "start" }
|
||||||
|
|
||||||
|
-- augroups
|
||||||
|
utils.create_augroup({
|
||||||
|
{"BufWritePre", "*", "%s/\\s\\+$//e"}
|
||||||
|
}, "remove_trailing_whitespaces")
|
||||||
|
utils.create_augroup({
|
||||||
|
{"BufNewFile,BufRead", "*.mom", "set filetype=groff"},
|
||||||
|
{"BufNewFile,BufRead", "*.tex", "set filetype=tex"},
|
||||||
|
}, "enforce_filetypes")
|
204
.config/nvim/lua/statusline.lua
Normal file
204
.config/nvim/lua/statusline.lua
Normal file
@ -0,0 +1,204 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Friday Mar 12, 2021 21:45:21 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim statusline file
|
||||||
|
-- based on github/nihilistkitten's work
|
||||||
|
|
||||||
|
|
||||||
|
local function gen_section(hl_string, items)
|
||||||
|
local out = ""
|
||||||
|
for _, item in pairs(items) do
|
||||||
|
if item ~= "" then
|
||||||
|
out = out .. " " .. item
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if out ~="" then
|
||||||
|
return hl_string .. out .. " "
|
||||||
|
else
|
||||||
|
return out
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- sensible names for vim modes
|
||||||
|
local function get_mode(m)
|
||||||
|
local mode_group = {
|
||||||
|
["n"] = "Normal",
|
||||||
|
["no"] = "O-Pending",
|
||||||
|
["nov"] = "O-Pending",
|
||||||
|
["noV"] = "O-Pending",
|
||||||
|
["no"] = "O-Pending",
|
||||||
|
["niI"] = "Normal",
|
||||||
|
["niR"] = "Normal",
|
||||||
|
["niV"] = "Normal",
|
||||||
|
["v"] = "Visual",
|
||||||
|
["V"] = "V-Line",
|
||||||
|
[""] = "V-Block",
|
||||||
|
["s"] = "Select",
|
||||||
|
["S"] = "S-Line",
|
||||||
|
[""] = "S-Block",
|
||||||
|
["i"] = "Insert",
|
||||||
|
["ic"] = "Insert",
|
||||||
|
["ix"] = "Insert",
|
||||||
|
["R"] = "Replace",
|
||||||
|
["Rc"] = "Replace",
|
||||||
|
["Rv"] = "V-Replace",
|
||||||
|
["Rx"] = "Replace",
|
||||||
|
["c"] = "Command",
|
||||||
|
["cv"] = "Ex",
|
||||||
|
["ce"] = "Ex",
|
||||||
|
["r"] = "Prompt",
|
||||||
|
["rm"] = "Prompt",
|
||||||
|
["r?"] = "Prompt",
|
||||||
|
["!"] = "Shell",
|
||||||
|
["t"] = "Terminal",
|
||||||
|
}
|
||||||
|
return mode_group[m] or "None"
|
||||||
|
end
|
||||||
|
|
||||||
|
local function get_mode_display_name(m)
|
||||||
|
local mode = {
|
||||||
|
["Normal"] = "[ NRM ]",
|
||||||
|
["O-Pending"] = "[ OTR ]",
|
||||||
|
["Visual"] = "[ VSL ]",
|
||||||
|
["V-Line"] = "[ V·L ]",
|
||||||
|
["V-Block"] = "[ V·B ]",
|
||||||
|
["Select"] = "[ SEL ]",
|
||||||
|
["S-Line"] = "[ S·L ]",
|
||||||
|
["S-Block"] = "[ S·B ]",
|
||||||
|
["Insert"] = "[ INS ]",
|
||||||
|
["Replace"] = "[ RPL ]",
|
||||||
|
["Command"] = "[ CMD ]",
|
||||||
|
["Prompt"] = "[ PMT ]",
|
||||||
|
["Shell"] = "[ SHL ]",
|
||||||
|
["Terminal"] = "[ TRM ]",
|
||||||
|
["None"] = "[ --- ]"
|
||||||
|
}
|
||||||
|
return mode[m]
|
||||||
|
end
|
||||||
|
|
||||||
|
-- get the highlight group for a mode group
|
||||||
|
local function get_mode_color(m)
|
||||||
|
local color = {
|
||||||
|
["Normal"] = "%#NormalMode#",
|
||||||
|
["O-Pending"] = "%#NormalMode#",
|
||||||
|
["Visual"] = "%#VisualMode#",
|
||||||
|
["V-Line"] = "%#VisualMode#",
|
||||||
|
["V-Block"] = "%#VisualMode#",
|
||||||
|
["Select"] = "%#NormalMode#",
|
||||||
|
["S-Line"] = "%#NormalMode#",
|
||||||
|
["S-Block"] = "%#NormalMode#",
|
||||||
|
["Insert"] = "%#InsertMode#",
|
||||||
|
["Replace"] = "%#ReplaceMode#",
|
||||||
|
["Command"] = "%#CommandMode#",
|
||||||
|
["Prompt"] = "%#NormalMode#",
|
||||||
|
["Shell"] = "%#NormalMode#",
|
||||||
|
["Terminal"] = "%#NormalMode#",
|
||||||
|
["None"] = "%#NormalMode#"
|
||||||
|
}
|
||||||
|
return color[m]
|
||||||
|
end
|
||||||
|
|
||||||
|
-- from https://github.com/nvim-lua/lsp-status.nvim/blob/master/lua/lsp-status/diagnostics.lua
|
||||||
|
local function get_lsp_diagnostics(bufnr)
|
||||||
|
local result = {}
|
||||||
|
local levels = {
|
||||||
|
errors = "Error",
|
||||||
|
warnings = "Warning",
|
||||||
|
info = "Information",
|
||||||
|
hints = "Hint"
|
||||||
|
}
|
||||||
|
|
||||||
|
for k, level in pairs(levels) do
|
||||||
|
result[k] = vim.lsp.diagnostic.get_count(bufnr, level)
|
||||||
|
end
|
||||||
|
|
||||||
|
return result
|
||||||
|
end
|
||||||
|
|
||||||
|
local function process_diagnostics(prefix, n, hl)
|
||||||
|
if n > 0 then
|
||||||
|
return hl .. prefix .. n
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local function spell_check()
|
||||||
|
if vim.wo.spell then
|
||||||
|
local lang = vim.o.spelllang
|
||||||
|
return "[SPELL=" .. lang .. "]"
|
||||||
|
else
|
||||||
|
return ""
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
local function statusline_focused()
|
||||||
|
local diagnostics = get_lsp_diagnostics()
|
||||||
|
local mode = vim.fn.mode()
|
||||||
|
local mg = get_mode(mode)
|
||||||
|
local accent_color = get_mode_color(mg)
|
||||||
|
|
||||||
|
local left = table.concat {
|
||||||
|
gen_section(accent_color, {get_mode_display_name(mg)}),
|
||||||
|
gen_section("%#Middle#", {"%f"}),
|
||||||
|
gen_section("%#Bottom#", {"%m", "%r"}),
|
||||||
|
gen_section(
|
||||||
|
"%#Alert#",
|
||||||
|
{
|
||||||
|
process_diagnostics(
|
||||||
|
globals.sign_error .. " ",
|
||||||
|
diagnostics.errors,
|
||||||
|
"%#LspDiagnosticsDefaultError#"
|
||||||
|
),
|
||||||
|
process_diagnostics(
|
||||||
|
globals.sign_warning .. " ",
|
||||||
|
diagnostics.warnings,
|
||||||
|
"%#LspDiagnosticsDefaultWarning#"
|
||||||
|
),
|
||||||
|
process_diagnostics(
|
||||||
|
globals.sign_info .. " ",
|
||||||
|
diagnostics.info,
|
||||||
|
"%#LspDiagnosticsDefaultInformation#"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
local right = table.concat {
|
||||||
|
gen_section(
|
||||||
|
"%#Bottom#",
|
||||||
|
{
|
||||||
|
spell_check(),
|
||||||
|
vim.bo.filetype
|
||||||
|
}
|
||||||
|
),
|
||||||
|
gen_section("%#Middle#", {"%03.p%%"}),
|
||||||
|
gen_section("%#Top#", {"-%03.c-"})
|
||||||
|
}
|
||||||
|
|
||||||
|
return table.concat {
|
||||||
|
left,
|
||||||
|
"%#Statusline#",
|
||||||
|
"%=",
|
||||||
|
right
|
||||||
|
}
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
local function statusline_not_focused()
|
||||||
|
return table.concat {
|
||||||
|
gen_section("%#StatuslineNF#", {"%f", "%m"}),
|
||||||
|
"%=",
|
||||||
|
gen_section("%#StatuslineNF#", {"%03.p%%"}),
|
||||||
|
gen_section("%#StatuslineNF#", {"-%03.c-"})
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
function _G.gen_statusline()
|
||||||
|
if vim.g.statusline_winid == vim.fn.win_getid() then
|
||||||
|
return statusline_focused()
|
||||||
|
else
|
||||||
|
return statusline_not_focused()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vim.o.statusline = "%!luaeval(\"gen_statusline()\")"
|
34
.config/nvim/lua/utils.lua
Normal file
34
.config/nvim/lua/utils.lua
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
-- Author : swytch
|
||||||
|
-- Created : Friday Mar 12, 2021 20:07:39 CET
|
||||||
|
-- License : GPLv3
|
||||||
|
-- Description : neovim utils file
|
||||||
|
|
||||||
|
local M = {} -- The module to export
|
||||||
|
local cmd = vim.cmd
|
||||||
|
|
||||||
|
-- augroup helper
|
||||||
|
function M.create_augroup(autocmds, name)
|
||||||
|
cmd("augroup " .. name)
|
||||||
|
cmd("autocmd!")
|
||||||
|
for _, autocmd in ipairs(autocmds) do
|
||||||
|
cmd("autocmd " .. table.concat(autocmd, " "))
|
||||||
|
end
|
||||||
|
cmd("augroup END")
|
||||||
|
end
|
||||||
|
|
||||||
|
-- add a path to the rtp
|
||||||
|
function M.add_rtp(path)
|
||||||
|
local rtp = vim.o.rtp
|
||||||
|
rtp = rtp .. "," .. path
|
||||||
|
end
|
||||||
|
|
||||||
|
-- map a key with optional options
|
||||||
|
function M.map(mode, keys, action, options)
|
||||||
|
options = options or {}
|
||||||
|
vim.api.nvim_set_keymap(mode, keys, action, options)
|
||||||
|
end
|
||||||
|
|
||||||
|
-- Make it accessible everywhere
|
||||||
|
_G.utils = M
|
||||||
|
-- Export the module
|
||||||
|
return M
|
12
.config/pacman/hooks/cache_cleanup.hook
Normal file
12
.config/pacman/hooks/cache_cleanup.hook
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Trigger]
|
||||||
|
Operation = Remove
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Type = Package
|
||||||
|
Target = *
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Keep the last cache and the currently installed...
|
||||||
|
Depends = pacman-contrib
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/paccache -rvk2
|
11
.config/pacman/hooks/dashbinsh.hook
Normal file
11
.config/pacman/hooks/dashbinsh.hook
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Trigger]
|
||||||
|
Type = Package
|
||||||
|
Operation = Install
|
||||||
|
Operation = Upgrade
|
||||||
|
Target = bash
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Re-pointing /bin/sh symlink to dash...
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/ln -sfT dash /usr/bin/sh
|
||||||
|
Depends = dash
|
10
.config/pacman/hooks/pkglist.hook
Normal file
10
.config/pacman/hooks/pkglist.hook
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Trigger]
|
||||||
|
Operation = Remove
|
||||||
|
Operation = Install
|
||||||
|
Type = Package
|
||||||
|
Target = *
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = Update the pkglist...
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /bin/sh -c '/usr/bin/pacman -Qqe > /home/swytch/.config/paru/pkglist.txt'
|
29
.config/paru/paru.conf
Normal file
29
.config/paru/paru.conf
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
#
|
||||||
|
# $PARU_CONF
|
||||||
|
# /etc/paru.conf
|
||||||
|
# ~/.config/paru/paru.conf
|
||||||
|
#
|
||||||
|
# See the paru.conf(5) manpage for options
|
||||||
|
|
||||||
|
#
|
||||||
|
# GENERAL OPTIONS
|
||||||
|
#
|
||||||
|
[options]
|
||||||
|
PgpFetch
|
||||||
|
Devel
|
||||||
|
Provides
|
||||||
|
DevelSuffixes = -git -cvs -svn -bzr -darcs -always
|
||||||
|
BottomUp
|
||||||
|
RemoveMake
|
||||||
|
SudoLoop
|
||||||
|
#UseAsk
|
||||||
|
#CombinedUpgrade
|
||||||
|
#CleanAfter
|
||||||
|
#UpgradeMenu
|
||||||
|
NewsOnUpgrade
|
||||||
|
|
||||||
|
#
|
||||||
|
# Binary OPTIONS
|
||||||
|
#
|
||||||
|
#[bin]
|
||||||
|
#FileManager = vifm
|
110
.config/paru/pkglist.txt
Normal file
110
.config/paru/pkglist.txt
Normal file
@ -0,0 +1,110 @@
|
|||||||
|
abcde
|
||||||
|
abook
|
||||||
|
adobe-source-han-sans-cn-fonts
|
||||||
|
adobe-source-han-sans-jp-fonts
|
||||||
|
alsa-plugins
|
||||||
|
alsa-utils
|
||||||
|
android-tools
|
||||||
|
android-udev
|
||||||
|
arandr
|
||||||
|
autoconf
|
||||||
|
automake
|
||||||
|
autorandr
|
||||||
|
base
|
||||||
|
beets
|
||||||
|
binutils
|
||||||
|
bison
|
||||||
|
capitaine-cursors
|
||||||
|
cdparanoia
|
||||||
|
clang
|
||||||
|
cmake
|
||||||
|
cronie
|
||||||
|
dash
|
||||||
|
dunst
|
||||||
|
efibootmgr
|
||||||
|
fakeroot
|
||||||
|
file
|
||||||
|
findutils
|
||||||
|
firefox
|
||||||
|
flex
|
||||||
|
gawk
|
||||||
|
gcc
|
||||||
|
gettext
|
||||||
|
git
|
||||||
|
grep
|
||||||
|
groff
|
||||||
|
grub
|
||||||
|
gsasl
|
||||||
|
gzip
|
||||||
|
htop
|
||||||
|
imagemagick
|
||||||
|
isync
|
||||||
|
iwd
|
||||||
|
jedi-language-server
|
||||||
|
libnotify
|
||||||
|
libtool
|
||||||
|
linux
|
||||||
|
linux-firmware
|
||||||
|
linux-lts
|
||||||
|
lynx
|
||||||
|
m4
|
||||||
|
make
|
||||||
|
man-db
|
||||||
|
mpc
|
||||||
|
mpd
|
||||||
|
mpv
|
||||||
|
msmtp
|
||||||
|
ncmpcpp
|
||||||
|
neomutt
|
||||||
|
ninja
|
||||||
|
nnn
|
||||||
|
notmuch
|
||||||
|
pacman
|
||||||
|
pacman-contrib
|
||||||
|
pam-gnupg
|
||||||
|
paru
|
||||||
|
pass
|
||||||
|
patch
|
||||||
|
pkgconf
|
||||||
|
pulseaudio-alsa
|
||||||
|
pulsemixer
|
||||||
|
python-eyed3
|
||||||
|
python-requests
|
||||||
|
redshift
|
||||||
|
sed
|
||||||
|
shotgun
|
||||||
|
sox
|
||||||
|
sudo
|
||||||
|
sxhkd
|
||||||
|
sxiv
|
||||||
|
texinfo
|
||||||
|
texlab
|
||||||
|
texlive-bibtexextra
|
||||||
|
texlive-core
|
||||||
|
texlive-latexextra
|
||||||
|
transmission-cli
|
||||||
|
tree-sitter
|
||||||
|
tremc
|
||||||
|
ttf-dejavu
|
||||||
|
ttf-fira-sans
|
||||||
|
ttf-iosevka-fixed-slab
|
||||||
|
ttf-nerd-fonts-symbols-mono
|
||||||
|
unzip
|
||||||
|
upower
|
||||||
|
usbutils
|
||||||
|
which
|
||||||
|
xcape
|
||||||
|
xclip
|
||||||
|
xf86-video-intel
|
||||||
|
xorg-server
|
||||||
|
xorg-xinit
|
||||||
|
xorg-xinput
|
||||||
|
xorg-xsetroot
|
||||||
|
xss-lock
|
||||||
|
xwallpaper
|
||||||
|
zathura
|
||||||
|
zathura-pdf-mupdf
|
||||||
|
zip
|
||||||
|
zsh
|
||||||
|
zsh-history-substring-search
|
||||||
|
zsh-syntax-highlighting
|
9
.config/redshift/redshift.conf
Normal file
9
.config/redshift/redshift.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[redshift]
|
||||||
|
temp-day=6500
|
||||||
|
temp-night=4200
|
||||||
|
adjustment-method=randr
|
||||||
|
location-provider=manual
|
||||||
|
|
||||||
|
[manual]
|
||||||
|
lat=45.18
|
||||||
|
lon=5.72
|
167
.config/river/init
Executable file
167
.config/river/init
Executable file
@ -0,0 +1,167 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This is the example configuration file for river.
|
||||||
|
#
|
||||||
|
# If you wish to edit this, you will probably want to copy it to
|
||||||
|
# $XDG_CONFIG_HOME/river/init or $HOME/.config/river/init first.
|
||||||
|
#
|
||||||
|
# See the river(1), riverctl(1), and rivertile(1) man pages for complete
|
||||||
|
# documentation.
|
||||||
|
|
||||||
|
# Use the "logo" key as the primary modifier
|
||||||
|
mod="Mod4"
|
||||||
|
|
||||||
|
# Mod+Q to close the focused view
|
||||||
|
riverctl map normal $mod Q close
|
||||||
|
|
||||||
|
# Mod+Shift+Q to exit river
|
||||||
|
riverctl map normal $mod+Shift Q exit
|
||||||
|
|
||||||
|
# Mod+J and Mod+K to focus the next/previous view in the layout stack
|
||||||
|
riverctl map normal $mod J focus-view next
|
||||||
|
riverctl map normal $mod K focus-view previous
|
||||||
|
|
||||||
|
# Mod+Shift+J and Mod+Shift+K to swap the focused view with the next/previous
|
||||||
|
# view in the layout stack
|
||||||
|
riverctl map normal $mod+Shift J swap next
|
||||||
|
riverctl map normal $mod+Shift K swap previous
|
||||||
|
|
||||||
|
# Mod+Period and Mod+Comma to focus the next/previous output
|
||||||
|
riverctl map normal $mod Period focus-output next
|
||||||
|
riverctl map normal $mod Comma focus-output previous
|
||||||
|
|
||||||
|
# Mod+Shift+{Period,Comma} to send the focused view to the next/previous output
|
||||||
|
riverctl map normal $mod+Shift Period send-to-output next
|
||||||
|
riverctl map normal $mod+Shift Comma send-to-output previous
|
||||||
|
|
||||||
|
# Mod+Space to bump the focused view to the top of the layout stack
|
||||||
|
riverctl map normal $mod Space zoom
|
||||||
|
|
||||||
|
# Mod+H and Mod+L to decrease/increase the main_factor value of rivertile by 0.05
|
||||||
|
riverctl map normal $mod H mod-layout-value rivertile fixed main_factor -0.05
|
||||||
|
riverctl map normal $mod L mod-layout-value rivertile fixed main_factor +0.05
|
||||||
|
|
||||||
|
# Mod+Shift+H and Mod+Shift+L to increment/decrement the main_count value of rivertile.
|
||||||
|
riverctl map normal $mod+Shift H mod-layout-value rivertile int main_count +1
|
||||||
|
riverctl map normal $mod+Shift L mod-layout-value rivertile int main_count -1
|
||||||
|
|
||||||
|
# Mod+Alt+{H,J,K,L} to move views
|
||||||
|
riverctl map normal $mod+Mod1 H move left 100
|
||||||
|
riverctl map normal $mod+Mod1 J move down 100
|
||||||
|
riverctl map normal $mod+Mod1 K move up 100
|
||||||
|
riverctl map normal $mod+Mod1 L move right 100
|
||||||
|
|
||||||
|
# Mod+Alt+Control+{H,J,K,L} to snap views to screen edges
|
||||||
|
riverctl map normal $mod+Mod1+Control H snap left
|
||||||
|
riverctl map normal $mod+Mod1+Control J snap down
|
||||||
|
riverctl map normal $mod+Mod1+Control K snap up
|
||||||
|
riverctl map normal $mod+Mod1+Control L snap right
|
||||||
|
|
||||||
|
# Mod+Alt+Shif+{H,J,K,L} to resize views
|
||||||
|
riverctl map normal $mod+Mod1+Shift H resize horizontal -100
|
||||||
|
riverctl map normal $mod+Mod1+Shift J resize vertical 100
|
||||||
|
riverctl map normal $mod+Mod1+Shift K resize vertical -100
|
||||||
|
riverctl map normal $mod+Mod1+Shift L resize horizontal 100
|
||||||
|
|
||||||
|
# Mod + Left Mouse Button to move views
|
||||||
|
riverctl map-pointer normal $mod BTN_LEFT move-view
|
||||||
|
|
||||||
|
# Mod + Right Mouse Button to resize views
|
||||||
|
riverctl map-pointer normal $mod BTN_RIGHT resize-view
|
||||||
|
|
||||||
|
# Mod+[1-9] to focus tag [0-8]
|
||||||
|
riverctl map normal $mod ampersand set-focused-tags 1
|
||||||
|
riverctl map normal $mod eacute set-focused-tags 2
|
||||||
|
riverctl map normal $mod quotedbl set-focused-tags 4
|
||||||
|
riverctl map normal $mod apostrophe set-focused-tags 8
|
||||||
|
riverctl map normal $mod parenleft set-focused-tags 16
|
||||||
|
riverctl map normal $mod minus set-focused-tags 32
|
||||||
|
riverctl map normal $mod egrave set-focused-tags 64
|
||||||
|
riverctl map normal $mod underscore set-focused-tags 128
|
||||||
|
riverctl map normal $mod ccedilla set-focused-tags 257
|
||||||
|
|
||||||
|
# Mod+Shift+[1-9] to tag focused view with tag [0-8]
|
||||||
|
riverctl map normal $mod+Shift ampersand set-view-tags 1
|
||||||
|
riverctl map normal $mod+Shift eacute set-view-tags 2
|
||||||
|
riverctl map normal $mod+Shift quotedbl set-view-tags 4
|
||||||
|
riverctl map normal $mod+Shift apostrophe set-view-tags 8
|
||||||
|
riverctl map normal $mod+Shift parenleft set-view-tags 16
|
||||||
|
riverctl map normal $mod+Shift minus set-view-tags 32
|
||||||
|
riverctl map normal $mod+Shift egrave set-view-tags 64
|
||||||
|
riverctl map normal $mod+Shift underscore set-view-tags 128
|
||||||
|
riverctl map normal $mod+Shift ccedilla set-view-tags 256
|
||||||
|
|
||||||
|
# Mod+Ctrl+[1-9] to toggle focus of tag [0-8]
|
||||||
|
riverctl map normal $mod+Ctrl ampersand toggle-focused-tags 1
|
||||||
|
riverctl map normal $mod+Ctrl eacute toggle-focused-tags 2
|
||||||
|
riverctl map normal $mod+Ctrl quotedbl toggle-focused-tags 4
|
||||||
|
riverctl map normal $mod+Ctrl apostrophe toggle-focused-tags 8
|
||||||
|
riverctl map normal $mod+Ctrl parenleft toggle-focused-tags 16
|
||||||
|
riverctl map normal $mod+Ctrl minus toggle-focused-tags 32
|
||||||
|
riverctl map normal $mod+Ctrl egrave toggle-focused-tags 64
|
||||||
|
riverctl map normal $mod+Ctrl underscore toggle-focused-tags 128
|
||||||
|
riverctl map normal $mod+Ctrl ccedilla toggle-focused-tags 256
|
||||||
|
|
||||||
|
# Mod+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
|
||||||
|
riverctl map normal $mod+Shift+Ctrl ampersand toggle-view-tags 1
|
||||||
|
riverctl map normal $mod+Shift+Ctrl eacute toggle-view-tags 2
|
||||||
|
riverctl map normal $mod+Shift+Ctrl quotedbl toggle-view-tags 4
|
||||||
|
riverctl map normal $mod+Shift+Ctrl apostrophe toggle-view-tags 8
|
||||||
|
riverctl map normal $mod+Shift+Ctrl parenleft toggle-view-tags 16
|
||||||
|
riverctl map normal $mod+Shift+Ctrl minus toggle-view-tags 32
|
||||||
|
riverctl map normal $mod+Shift+Ctrl egrave toggle-view-tags 64
|
||||||
|
riverctl map normal $mod+Shift+Ctrl underscore toggle-view-tags 128
|
||||||
|
riverctl map normal $mod+Shift+Ctrl ccedilla toggle-view-tags 256
|
||||||
|
|
||||||
|
# Mod+Shift+Space to toggle float
|
||||||
|
riverctl map normal $mod+Shift Space toggle-float
|
||||||
|
|
||||||
|
# Mod+F to toggle fullscreen
|
||||||
|
riverctl map normal $mod F toggle-fullscreen
|
||||||
|
|
||||||
|
# Mod+{Up,Right,Down,Left} to change layout orientation
|
||||||
|
riverctl map normal $mod Up set-layout-value rivertile string main_location top
|
||||||
|
riverctl map normal $mod Right set-layout-value rivertile string main_location right
|
||||||
|
riverctl map normal $mod Down set-layout-value rivertile string main_location bottom
|
||||||
|
riverctl map normal $mod Left set-layout-value rivertile string main_location left
|
||||||
|
|
||||||
|
# Declare a passthrough mode. This mode has only a single mapping to return to
|
||||||
|
# normal mode. This makes it useful for testing a nested wayland compositor
|
||||||
|
riverctl declare-mode passthrough
|
||||||
|
|
||||||
|
# Mod+F11 to enter passthrough mode
|
||||||
|
riverctl map normal $mod F11 enter-mode passthrough
|
||||||
|
|
||||||
|
# Mod+F11 to return to normal mode
|
||||||
|
riverctl map passthrough $mod F11 enter-mode normal
|
||||||
|
|
||||||
|
# Various media key mapping examples for both normal and locked mode which do
|
||||||
|
# not have a modifier
|
||||||
|
for mode in normal locked
|
||||||
|
do
|
||||||
|
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
|
||||||
|
riverctl map $mode None XF86AudioRaiseVolume spawn pulsemixer --change-volume +5
|
||||||
|
riverctl map $mode None XF86AudioLowerVolume spawn pulsemixer --change-volume -5
|
||||||
|
riverctl map $mode None XF86AudioMute spawn pulsemixer --toggle-mute
|
||||||
|
done
|
||||||
|
|
||||||
|
# Set repeat rate
|
||||||
|
riverctl set-repeat 50 300
|
||||||
|
|
||||||
|
# Set app-ids of views which should float
|
||||||
|
riverctl float-filter-add "float"
|
||||||
|
riverctl float-filter-add "popup"
|
||||||
|
|
||||||
|
# Set opacity and fade effect
|
||||||
|
# riverctl opacity 1.0 0.75 0.0 0.1 20
|
||||||
|
|
||||||
|
# Source keybindings
|
||||||
|
source $XDG_CONFIG_HOME/river/maps
|
||||||
|
|
||||||
|
# Launch necessary stuff
|
||||||
|
source $XDG_CONFIG_HOME/river/launch
|
||||||
|
|
||||||
|
# Set and exec into the default layout generator, rivertile.
|
||||||
|
# River will send the process group of the init executable SIGTERM on exit.
|
||||||
|
riverctl default-layout rivertile
|
||||||
|
exec rivertile
|
13
.config/river/launch
Normal file
13
.config/river/launch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
# This file is sourced when launching a DM from startx/xinit
|
||||||
|
|
||||||
|
# session launch
|
||||||
|
|
||||||
|
redshift &
|
||||||
|
# MPD daemon start (if no other user instance exists)
|
||||||
|
[ ! -s ~/.config/mpd/pid ] && mpd &
|
||||||
|
pulsemixer --set-volume 50 &
|
||||||
|
setbg &
|
||||||
|
waybar &
|
||||||
|
gammastep &
|
||||||
|
dunst -follow mouse &> /dev/null & #temp fix
|
28
.config/river/maps
Normal file
28
.config/river/maps
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# river spawn keybindings
|
||||||
|
|
||||||
|
# Mod+Return to start the terminal
|
||||||
|
riverctl map normal $mod Return spawn $TERMINAL
|
||||||
|
|
||||||
|
# Mod+D to start the launcher
|
||||||
|
riverctl map normal $mod D spawn $LAUNCHER -p "run:"
|
||||||
|
|
||||||
|
# Mod+Shift+W to start the browser
|
||||||
|
riverctl map normal $mod+Shift W spawn $BROWSER
|
||||||
|
|
||||||
|
# Mod+Shift+M to start ncmpcpp
|
||||||
|
riverctl map normal $mod+Shift M spawn $TERMINAL --app-id="float" ncmpcpp
|
||||||
|
|
||||||
|
# Mod+Shift+K to play/pause music
|
||||||
|
riverctl map normal $mod+Shift K spawn player toggle
|
||||||
|
|
||||||
|
# Mod+Shift+J to stop music
|
||||||
|
riverctl map normal $mod+Shift J spawn player stop
|
||||||
|
|
||||||
|
# Mod+Shift+L to play next tune
|
||||||
|
riverctl map normal $mod+Shift L spawn player next
|
||||||
|
|
||||||
|
# Mod+Shift+H to play previous tune
|
||||||
|
riverctl map normal $mod+Shift H spawn play prev
|
||||||
|
|
||||||
|
# Mod+Shift+N to start neomutt
|
||||||
|
riverctl map normal $mod+Shift N spawn $TERMINAL --app-id="float" neomutt
|
13
.config/river/spawn
Normal file
13
.config/river/spawn
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# river spawn keybindings
|
||||||
|
|
||||||
|
# Mod+Return to start the browser
|
||||||
|
riverctl map normal $mod Return spawn $TERMINAL
|
||||||
|
|
||||||
|
# Mod+Shift+W to start the browser
|
||||||
|
riverctl map normal $mod+Shift W spawn $BROWSER
|
||||||
|
|
||||||
|
# Mod+Shift+M to start ncmpcpp
|
||||||
|
riverctl map normal $mod+Shift N spawn $TERMINAL ncmpcpp
|
||||||
|
|
||||||
|
# Mod+Shift+N to start neomutt
|
||||||
|
riverctl map normal $mod+Shift N spawn $TERMINAL neomutt
|
55
.config/root/etc_default_grub
Normal file
55
.config/root/etc_default_grub
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
# GRUB boot loader configuration
|
||||||
|
|
||||||
|
GRUB_DEFAULT="2"
|
||||||
|
GRUB_TIMEOUT=5
|
||||||
|
GRUB_DISTRIBUTOR="Arch"
|
||||||
|
GRUB_CMDLINE_LINUX_DEFAULT="quiet i915.enable_fbc=0"
|
||||||
|
GRUB_CMDLINE_LINUX=""
|
||||||
|
GRUB_DISABLE_SUBMENU=y
|
||||||
|
|
||||||
|
# Preload both GPT and MBR modules so that they are not missed
|
||||||
|
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
|
||||||
|
|
||||||
|
# Uncomment to enable booting from LUKS encrypted devices
|
||||||
|
#GRUB_ENABLE_CRYPTODISK=y
|
||||||
|
|
||||||
|
# Uncomment to enable Hidden Menu, and optionally hide the timeout count
|
||||||
|
#GRUB_HIDDEN_TIMEOUT=5
|
||||||
|
#GRUB_HIDDEN_TIMEOUT_QUIET=true
|
||||||
|
|
||||||
|
# Uncomment to use basic console
|
||||||
|
GRUB_TERMINAL_INPUT=console
|
||||||
|
|
||||||
|
# Uncomment to disable graphical terminal
|
||||||
|
#GRUB_TERMINAL_OUTPUT=console
|
||||||
|
|
||||||
|
# The resolution used on graphical terminal
|
||||||
|
# note that you can use only modes which your graphic card supports via VBE
|
||||||
|
# you can see them in real GRUB with the command `vbeinfo'
|
||||||
|
GRUB_GFXMODE=auto
|
||||||
|
|
||||||
|
# Uncomment to allow the kernel use the same resolution used by grub
|
||||||
|
GRUB_GFXPAYLOAD_LINUX=keep
|
||||||
|
|
||||||
|
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
|
||||||
|
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
|
||||||
|
#GRUB_DISABLE_LINUX_UUID=true
|
||||||
|
|
||||||
|
# Uncomment to disable generation of recovery mode menu entries
|
||||||
|
GRUB_DISABLE_RECOVERY=true
|
||||||
|
|
||||||
|
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
|
||||||
|
# modes only. Entries specified as foreground/background.
|
||||||
|
#GRUB_COLOR_NORMAL="light-blue/black"
|
||||||
|
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
|
||||||
|
|
||||||
|
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
|
||||||
|
#GRUB_BACKGROUND="/path/to/wallpaper"
|
||||||
|
#GRUB_THEME="/path/to/gfxtheme"
|
||||||
|
|
||||||
|
# Uncomment to get a beep at GRUB start
|
||||||
|
#GRUB_INIT_TUNE="480 440 1"
|
||||||
|
|
||||||
|
# Uncomment to make GRUB remember the last selection. This requires to
|
||||||
|
# set 'GRUB_DEFAULT=saved' above.
|
||||||
|
#GRUB_SAVEDEFAULT="true"
|
101
.config/root/etc_pacman.conf
Normal file
101
.config/root/etc_pacman.conf
Normal file
@ -0,0 +1,101 @@
|
|||||||
|
#
|
||||||
|
# /etc/pacman.conf
|
||||||
|
#
|
||||||
|
# See the pacman.conf(5) manpage for option and repository directives
|
||||||
|
|
||||||
|
#
|
||||||
|
# GENERAL OPTIONS
|
||||||
|
#
|
||||||
|
[options]
|
||||||
|
# The following paths are commented out with their default values listed.
|
||||||
|
# If you wish to use different paths, uncomment and update the paths.
|
||||||
|
#RootDir = /
|
||||||
|
#DBPath = /var/lib/pacman/
|
||||||
|
#CacheDir = /var/cache/pacman/pkg/
|
||||||
|
#LogFile = /var/log/pacman.log
|
||||||
|
#GPGDir = /etc/pacman.d/gnupg/
|
||||||
|
HookDir = /home/swytch/.config/pacman/hooks
|
||||||
|
HoldPkg = pacman glibc
|
||||||
|
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
|
||||||
|
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
|
||||||
|
#CleanMethod = KeepInstalled
|
||||||
|
#UseDelta = 0.7
|
||||||
|
Architecture = auto
|
||||||
|
|
||||||
|
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
|
||||||
|
#IgnorePkg =
|
||||||
|
#IgnoreGroup =
|
||||||
|
|
||||||
|
#NoUpgrade =
|
||||||
|
#NoExtract =
|
||||||
|
|
||||||
|
# Misc options
|
||||||
|
#UseSyslog
|
||||||
|
Color
|
||||||
|
TotalDownload
|
||||||
|
CheckSpace
|
||||||
|
VerbosePkgLists
|
||||||
|
|
||||||
|
# By default, pacman accepts packages signed by keys that its local keyring
|
||||||
|
# trusts (see pacman-key and its man page), as well as unsigned packages.
|
||||||
|
SigLevel = Required DatabaseOptional
|
||||||
|
LocalFileSigLevel = Optional
|
||||||
|
#RemoteFileSigLevel = Required
|
||||||
|
|
||||||
|
# NOTE: You must run `pacman-key --init` before first using pacman; the local
|
||||||
|
# keyring can then be populated with the keys of all official Arch Linux
|
||||||
|
# packagers with `pacman-key --populate archlinux`.
|
||||||
|
|
||||||
|
#
|
||||||
|
# REPOSITORIES
|
||||||
|
# - can be defined here or included from another file
|
||||||
|
# - pacman will search repositories in the order defined here
|
||||||
|
# - local/custom mirrors can be added here or in separate files
|
||||||
|
# - repositories listed first will take precedence when packages
|
||||||
|
# have identical names, regardless of version number
|
||||||
|
# - URLs will have $repo replaced by the name of the current repo
|
||||||
|
# - URLs will have $arch replaced by the name of the architecture
|
||||||
|
#
|
||||||
|
# Repository entries are of the format:
|
||||||
|
# [repo-name]
|
||||||
|
# Server = ServerName
|
||||||
|
# Include = IncludePath
|
||||||
|
#
|
||||||
|
# The header [repo-name] is crucial - it must be present and
|
||||||
|
# uncommented to enable the repo.
|
||||||
|
#
|
||||||
|
|
||||||
|
# The testing repositories are disabled by default. To enable, uncomment the
|
||||||
|
# repo name header and Include lines. You can add preferred servers immediately
|
||||||
|
# after the header, and they will be used before the default mirrors.
|
||||||
|
|
||||||
|
#[testing]
|
||||||
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[core]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[extra]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
#[community-testing]
|
||||||
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
[community]
|
||||||
|
Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
# If you want to run 32 bit applications on your x86_64 system,
|
||||||
|
# enable the multilib repositories as required here.
|
||||||
|
|
||||||
|
#[multilib-testing]
|
||||||
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
#[multilib]
|
||||||
|
#Include = /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
|
# An example of a custom package repository. See the pacman manpage for
|
||||||
|
# tips on creating your own repositories.
|
||||||
|
#[custom]
|
||||||
|
#SigLevel = Optional TrustAll
|
||||||
|
#Server = file:///home/custompkgs
|
||||||
|
|
9
.config/root/etc_pamd_system-local-login
Normal file
9
.config/root/etc_pamd_system-local-login
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#%PAM-1.0
|
||||||
|
|
||||||
|
auth include system-login
|
||||||
|
account include system-login
|
||||||
|
password include system-login
|
||||||
|
session include system-login
|
||||||
|
|
||||||
|
auth optional pam_gnupg.so store-only
|
||||||
|
session optional pam_gnupg.so
|
473
.config/root/etc_tlp.conf
Normal file
473
.config/root/etc_tlp.conf
Normal file
@ -0,0 +1,473 @@
|
|||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# /etc/tlp.conf - TLP user configuration
|
||||||
|
# See full explanation: https://linrunner.de/en/tlp/docs/tlp-configuration.html
|
||||||
|
#
|
||||||
|
# New configuration scheme (TLP 1.3). Settings are read in the following order:
|
||||||
|
|
||||||
|
# 1. Intrinsic defaults
|
||||||
|
# 2. /etc/tlp.d/*.conf - Drop-in customization snippets
|
||||||
|
# 3. /etc/tlp.conf - User configuration (this file)
|
||||||
|
#
|
||||||
|
# Notes:
|
||||||
|
# - In case of identical parameters, the last occurence has precedence
|
||||||
|
# - This also means, parameters enabled here will override anything else
|
||||||
|
# - IMPORTANT: all parameters here are disabled, remove the leading '#'
|
||||||
|
# to enable them; shown values may be suggestions rather than defaults
|
||||||
|
# - Default *: intrinsic default that is effective when the parameter is missing
|
||||||
|
# or disabled by a leading '#'; use PARAM="" to disable an intrinsic default
|
||||||
|
# - Default <none>: do nothing or use kernel/hardware defaults
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# tlp - Parameters for power saving
|
||||||
|
|
||||||
|
# Set to 0 to disable, 1 to enable TLP.
|
||||||
|
# Default: 1
|
||||||
|
|
||||||
|
#TLP_ENABLE=1
|
||||||
|
|
||||||
|
# Operation mode when no power supply can be detected: AC, BAT.
|
||||||
|
# Concerns some desktop and embedded hardware only.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#TLP_DEFAULT_MODE=AC
|
||||||
|
|
||||||
|
# Operation mode select: 0=depend on power source, 1=always use TLP_DEFAULT_MODE
|
||||||
|
# Note: use in conjunction with TLP_DEFAULT_MODE=BAT for BAT settings on AC.
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#TLP_PERSISTENT_DEFAULT=0
|
||||||
|
|
||||||
|
# Power supply class to ignore when determining operation mode: AC, BAT.
|
||||||
|
# Note: try on laptops where operation mode AC/BAT is incorrectly detected.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#TLP_PS_IGNORE=BAT
|
||||||
|
|
||||||
|
# Seconds laptop mode has to wait after the disk goes idle before doing a sync.
|
||||||
|
# Non-zero value enables, zero disables laptop mode.
|
||||||
|
# Default: 0 (AC), 2 (BAT)
|
||||||
|
|
||||||
|
#DISK_IDLE_SECS_ON_AC=0
|
||||||
|
#DISK_IDLE_SECS_ON_BAT=2
|
||||||
|
|
||||||
|
# Dirty page values (timeouts in secs).
|
||||||
|
# Default: 15 (AC), 60 (BAT)
|
||||||
|
|
||||||
|
#MAX_LOST_WORK_SECS_ON_AC=15
|
||||||
|
#MAX_LOST_WORK_SECS_ON_BAT=60
|
||||||
|
|
||||||
|
# Note: CPU parameters below are disabled by default, remove the leading #
|
||||||
|
# to enable them, otherwise kernel defaults will be used.
|
||||||
|
#
|
||||||
|
# Select a CPU frequency scaling governor.
|
||||||
|
# Intel Core i processor with intel_pstate driver:
|
||||||
|
# powersave(*), performance.
|
||||||
|
# Other hardware with acpi-cpufreq driver:
|
||||||
|
# ondemand(*), powersave, performance, conservative, schedutil.
|
||||||
|
# (*) is recommended.
|
||||||
|
# Use tlp-stat -p to show the active driver and available governors.
|
||||||
|
# Important:
|
||||||
|
# powersave for intel_pstate and ondemand for acpi-cpufreq are power
|
||||||
|
# efficient for *almost all* workloads and therefore kernel and most
|
||||||
|
# distributions have chosen them as defaults. If you still want to change,
|
||||||
|
# you should know what you're doing!
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#CPU_SCALING_GOVERNOR_ON_AC=powersave
|
||||||
|
#CPU_SCALING_GOVERNOR_ON_BAT=powersave
|
||||||
|
|
||||||
|
# Set the min/max frequency available for the scaling governor.
|
||||||
|
# Possible values depend on your CPU. For available frequencies see
|
||||||
|
# the output of tlp-stat -p.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#CPU_SCALING_MIN_FREQ_ON_AC=0
|
||||||
|
#CPU_SCALING_MAX_FREQ_ON_AC=0
|
||||||
|
#CPU_SCALING_MIN_FREQ_ON_BAT=0
|
||||||
|
#CPU_SCALING_MAX_FREQ_ON_BAT=0
|
||||||
|
|
||||||
|
# Set Intel CPU energy/performance policies HWP.EPP and EPB:
|
||||||
|
# performance, balance_performance, default, balance_power, power
|
||||||
|
# Values are given in order of increasing power saving.
|
||||||
|
# Notes:
|
||||||
|
# - Requires an Intel Core i processor
|
||||||
|
# - HWP.EPP requires kernel 4.10 and intel_pstate driver
|
||||||
|
# - EPB requires kernel 5.2 or module msr and x86_energy_perf_policy
|
||||||
|
# from linux-tools
|
||||||
|
# - When HWP.EPP is available, EPB is not set
|
||||||
|
# Default: balance_performance (AC), balance_power (BAT)
|
||||||
|
|
||||||
|
#CPU_ENERGY_PERF_POLICY_ON_AC=balance_performance
|
||||||
|
#CPU_ENERGY_PERF_POLICY_ON_BAT=balance_power
|
||||||
|
|
||||||
|
# Set Intel CPU P-state performance: 0..100 (%).
|
||||||
|
# Limit the max/min P-state to control the power dissipation of the CPU.
|
||||||
|
# Values are stated as a percentage of the available performance.
|
||||||
|
# Requires an Intel Core i processor with intel_pstate driver.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#CPU_MIN_PERF_ON_AC=0
|
||||||
|
#CPU_MAX_PERF_ON_AC=100
|
||||||
|
#CPU_MIN_PERF_ON_BAT=0
|
||||||
|
#CPU_MAX_PERF_ON_BAT=30
|
||||||
|
|
||||||
|
# Set the CPU "turbo boost" feature: 0=disable, 1=allow
|
||||||
|
# Requires an Intel Core i processor.
|
||||||
|
# Important:
|
||||||
|
# - This may conflict with your distribution's governor settings
|
||||||
|
# - A value of 1 does *not* activate boosting, it just allows it
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#CPU_BOOST_ON_AC=1
|
||||||
|
#CPU_BOOST_ON_BAT=0
|
||||||
|
|
||||||
|
# Minimize number of used CPU cores/hyper-threads under light load conditions:
|
||||||
|
# 0=disable, 1=enable.
|
||||||
|
# Default: 0 (AC), 1 (BAT)
|
||||||
|
|
||||||
|
#SCHED_POWERSAVE_ON_AC=0
|
||||||
|
#SCHED_POWERSAVE_ON_BAT=1
|
||||||
|
|
||||||
|
# Kernel NMI Watchdog:
|
||||||
|
# 0=disable (default, saves power), 1=enable (for kernel debugging only).
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#NMI_WATCHDOG=0
|
||||||
|
|
||||||
|
# Change CPU voltages aka "undervolting" - Kernel with PHC patch required.
|
||||||
|
# Frequency voltage pairs are written to:
|
||||||
|
# /sys/devices/system/cpu/cpu0/cpufreq/phc_controls
|
||||||
|
# CAUTION: only use this, if you thoroughly understand what you are doing!
|
||||||
|
# Default: <none>.
|
||||||
|
|
||||||
|
#PHC_CONTROLS="F:V F:V F:V F:V"
|
||||||
|
|
||||||
|
# Disk devices; separate multiple devices with spaces.
|
||||||
|
# Devices can be specified by disk ID also (lookup with: tlp diskid).
|
||||||
|
# Note: DISK parameters below are effective only when this option is configured.
|
||||||
|
# Default: "nvme0n1 sda"
|
||||||
|
|
||||||
|
#DISK_DEVICES="nvme0n1 sda"
|
||||||
|
|
||||||
|
# Disk advanced power management level: 1..254, 255 (max saving, min, off).
|
||||||
|
# Levels 1..127 may spin down the disk; 255 allowable on most drives.
|
||||||
|
# Separate values for multiple disks with spaces. Use the special value 'keep'
|
||||||
|
# to keep the hardware default for the particular disk.
|
||||||
|
# Default: 254 (AC), 128 (BAT)
|
||||||
|
|
||||||
|
#DISK_APM_LEVEL_ON_AC="254 254"
|
||||||
|
#DISK_APM_LEVEL_ON_BAT="128 128"
|
||||||
|
|
||||||
|
# Hard disk spin down timeout:
|
||||||
|
# 0: spin down disabled
|
||||||
|
# 1..240: timeouts from 5s to 20min (in units of 5s)
|
||||||
|
# 241..251: timeouts from 30min to 5.5 hours (in units of 30min)
|
||||||
|
# See 'man hdparm' for details.
|
||||||
|
# Separate values for multiple disks with spaces. Use the special value 'keep'
|
||||||
|
# to keep the hardware default for the particular disk.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DISK_SPINDOWN_TIMEOUT_ON_AC="0 0"
|
||||||
|
#DISK_SPINDOWN_TIMEOUT_ON_BAT="0 0"
|
||||||
|
|
||||||
|
# Select I/O scheduler for the disk devices.
|
||||||
|
# Multi queue (blk-mq) schedulers:
|
||||||
|
# mq-deadline(*), none, kyber, bfq
|
||||||
|
# Single queue schedulers:
|
||||||
|
# deadline(*), cfq, bfq, noop
|
||||||
|
# (*) recommended.
|
||||||
|
# Separate values for multiple disks with spaces. Use the special value 'keep'
|
||||||
|
# to keep the kernel default scheduler for the particular disk.
|
||||||
|
# Notes:
|
||||||
|
# - Multi queue (blk-mq) may need kernel boot option 'scsi_mod.use_blk_mq=1'
|
||||||
|
# and 'modprobe mq-deadline-iosched|kyber|bfq' on kernels < 5.0
|
||||||
|
# - Single queue schedulers are legacy now and were removed together with
|
||||||
|
# the old block layer in kernel 5.0
|
||||||
|
# Default: keep
|
||||||
|
|
||||||
|
#DISK_IOSCHED="mq-deadline mq-deadline"
|
||||||
|
|
||||||
|
# AHCI link power management (ALPM) for disk devices:
|
||||||
|
# min_power, med_power_with_dipm(*), medium_power, max_performance.
|
||||||
|
# (*) Kernel >= 4.15 required, then recommended.
|
||||||
|
# Multiple values separated with spaces are tried sequentially until success.
|
||||||
|
# Default:
|
||||||
|
# - "med_power_with_dipm max_performance" (AC)
|
||||||
|
# - "med_power_with_dipm min_power" (BAT)
|
||||||
|
|
||||||
|
#SATA_LINKPWR_ON_AC="med_power_with_dipm max_performance"
|
||||||
|
#SATA_LINKPWR_ON_BAT="med_power_with_dipm min_power"
|
||||||
|
|
||||||
|
# Exclude host devices from AHCI link power management.
|
||||||
|
# Separate multiple hosts with spaces.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#SATA_LINKPWR_BLACKLIST="host1"
|
||||||
|
|
||||||
|
# Runtime Power Management for AHCI host and disks devices:
|
||||||
|
# on=disable, auto=enable.
|
||||||
|
# EXPERIMENTAL ** WARNING: auto may cause system lockups/data loss.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#AHCI_RUNTIME_PM_ON_AC=on
|
||||||
|
#AHCI_RUNTIME_PM_ON_BAT=on
|
||||||
|
|
||||||
|
# Seconds of inactivity before disk is suspended.
|
||||||
|
# Note: effective only when AHCI_RUNTIME_PM_ON_AC/BAT is activated.
|
||||||
|
# Default: 15
|
||||||
|
|
||||||
|
#AHCI_RUNTIME_PM_TIMEOUT=15
|
||||||
|
|
||||||
|
# PCI Express Active State Power Management (PCIe ASPM):
|
||||||
|
# default(*), performance, powersave, powersupersave.
|
||||||
|
# (*) keeps BIOS ASPM defaults (recommended)
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#PCIE_ASPM_ON_AC=default
|
||||||
|
#PCIE_ASPM_ON_BAT=default
|
||||||
|
|
||||||
|
# Set the min/max/turbo frequency for the Intel GPU.
|
||||||
|
# Possible values depend on your hardware. For available frequencies see
|
||||||
|
# the output of tlp-stat -g.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#INTEL_GPU_MIN_FREQ_ON_AC=0
|
||||||
|
#INTEL_GPU_MIN_FREQ_ON_BAT=0
|
||||||
|
#INTEL_GPU_MAX_FREQ_ON_AC=0
|
||||||
|
#INTEL_GPU_MAX_FREQ_ON_BAT=0
|
||||||
|
#INTEL_GPU_BOOST_FREQ_ON_AC=0
|
||||||
|
#INTEL_GPU_BOOST_FREQ_ON_BAT=0
|
||||||
|
|
||||||
|
# Radeon graphics clock speed (profile method): low, mid, high, auto, default;
|
||||||
|
# auto = mid on BAT, high on AC.
|
||||||
|
# Default: default
|
||||||
|
|
||||||
|
#RADEON_POWER_PROFILE_ON_AC=default
|
||||||
|
#RADEON_POWER_PROFILE_ON_BAT=default
|
||||||
|
|
||||||
|
# Radeon dynamic power management method (DPM): battery, performance.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#RADEON_DPM_STATE_ON_AC=performance
|
||||||
|
#RADEON_DPM_STATE_ON_BAT=battery
|
||||||
|
|
||||||
|
# Radeon DPM performance level: auto, low, high; auto is recommended.
|
||||||
|
# Note: effective only when RADEON_DPM_STATE_ON_AC/BAT is activated.
|
||||||
|
# Default: auto
|
||||||
|
|
||||||
|
#RADEON_DPM_PERF_LEVEL_ON_AC=auto
|
||||||
|
#RADEON_DPM_PERF_LEVEL_ON_BAT=auto
|
||||||
|
|
||||||
|
# WiFi power saving mode: on=enable, off=disable; not supported by all adapters.
|
||||||
|
# Default: off (AC), on (BAT)
|
||||||
|
|
||||||
|
#WIFI_PWR_ON_AC=off
|
||||||
|
#WIFI_PWR_ON_BAT=on
|
||||||
|
|
||||||
|
# Disable wake on LAN: Y/N.
|
||||||
|
# Default: Y
|
||||||
|
|
||||||
|
#WOL_DISABLE=Y
|
||||||
|
|
||||||
|
# Enable audio power saving for Intel HDA, AC97 devices (timeout in secs).
|
||||||
|
# A value of 0 disables, >=1 enables power saving (recommended: 1).
|
||||||
|
# Default: 0 (AC), 1 (BAT)
|
||||||
|
|
||||||
|
#SOUND_POWER_SAVE_ON_AC=0
|
||||||
|
#SOUND_POWER_SAVE_ON_BAT=1
|
||||||
|
|
||||||
|
# Disable controller too (HDA only): Y/N.
|
||||||
|
# Note: effective only when SOUND_POWER_SAVE_ON_AC/BAT is activated.
|
||||||
|
# Default: Y
|
||||||
|
|
||||||
|
#SOUND_POWER_SAVE_CONTROLLER=Y
|
||||||
|
|
||||||
|
# Power off optical drive in UltraBay/MediaBay: 0=disable, 1=enable.
|
||||||
|
# Drive can be powered on again by releasing (and reinserting) the eject lever
|
||||||
|
# or by pressing the disc eject button on newer models.
|
||||||
|
# Note: an UltraBay/MediaBay hard disk is never powered off.
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#BAY_POWEROFF_ON_AC=0
|
||||||
|
#BAY_POWEROFF_ON_BAT=0
|
||||||
|
|
||||||
|
# Optical drive device to power off
|
||||||
|
# Default: sr0
|
||||||
|
|
||||||
|
#BAY_DEVICE="sr0"
|
||||||
|
|
||||||
|
# Runtime Power Management for PCI(e) bus devices: on=disable, auto=enable.
|
||||||
|
# Default: on (AC), auto (BAT)
|
||||||
|
|
||||||
|
#RUNTIME_PM_ON_AC=on
|
||||||
|
#RUNTIME_PM_ON_BAT=auto
|
||||||
|
|
||||||
|
# Exclude PCI(e) device adresses the following list from Runtime PM
|
||||||
|
# (separate with spaces). Use lspci to get the adresses (1st column).
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#RUNTIME_PM_BLACKLIST="bb:dd.f 11:22.3 44:55.6"
|
||||||
|
|
||||||
|
# Exclude PCI(e) devices assigned to the listed drivers from Runtime PM.
|
||||||
|
# Default when unconfigured is "amdgpu nouveau nvidia radeon" which
|
||||||
|
# prevents accidential power-on of dGPU in hybrid graphics setups.
|
||||||
|
# Separate multiple drivers with spaces.
|
||||||
|
# Default: "amdgpu mei_me nouveau nvidia pcieport radeon", use "" to disable
|
||||||
|
# completely.
|
||||||
|
|
||||||
|
#RUNTIME_PM_DRIVER_BLACKLIST="amdgpu mei_me nouveau nvidia pcieport radeon"
|
||||||
|
|
||||||
|
# Set to 0 to disable, 1 to enable USB autosuspend feature.
|
||||||
|
# Default: 1
|
||||||
|
|
||||||
|
#USB_AUTOSUSPEND=1
|
||||||
|
|
||||||
|
# Exclude listed devices from USB autosuspend (separate with spaces).
|
||||||
|
# Use lsusb to get the ids.
|
||||||
|
# Note: input devices (usbhid) are excluded automatically
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#USB_BLACKLIST="1111:2222 3333:4444"
|
||||||
|
|
||||||
|
# Bluetooth devices are excluded from USB autosuspend:
|
||||||
|
# 0=do not exclude, 1=exclude.
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#USB_BLACKLIST_BTUSB=0
|
||||||
|
|
||||||
|
# Phone devices are excluded from USB autosuspend:
|
||||||
|
# 0=do not exclude, 1=exclude (enable charging).
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#USB_BLACKLIST_PHONE=0
|
||||||
|
|
||||||
|
# Printers are excluded from USB autosuspend:
|
||||||
|
# 0=do not exclude, 1=exclude.
|
||||||
|
# Default: 1
|
||||||
|
|
||||||
|
#USB_BLACKLIST_PRINTER=1
|
||||||
|
|
||||||
|
# WWAN devices are excluded from USB autosuspend:
|
||||||
|
# 0=do not exclude, 1=exclude.
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#USB_BLACKLIST_WWAN=0
|
||||||
|
|
||||||
|
# Include listed devices into USB autosuspend even if already excluded
|
||||||
|
# by the blacklists above (separate with spaces). Use lsusb to get the ids.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#USB_WHITELIST="1111:2222 3333:4444"
|
||||||
|
|
||||||
|
# Set to 1 to disable autosuspend before shutdown, 0 to do nothing
|
||||||
|
# Note: use as a workaround for USB devices that cause shutdown problems.
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#USB_AUTOSUSPEND_DISABLE_ON_SHUTDOWN=0
|
||||||
|
|
||||||
|
# Restore radio device state (Bluetooth, WiFi, WWAN) from previous shutdown
|
||||||
|
# on system startup: 0=disable, 1=enable.
|
||||||
|
# Note: the parameters DEVICES_TO_DISABLE/ENABLE_ON_STARTUP/SHUTDOWN below
|
||||||
|
# are ignored when this is enabled.
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#RESTORE_DEVICE_STATE_ON_STARTUP=0
|
||||||
|
|
||||||
|
# Radio devices to disable on startup: bluetooth, wifi, wwan.
|
||||||
|
# Separate multiple devices with spaces.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DEVICES_TO_DISABLE_ON_STARTUP="bluetooth wifi wwan"
|
||||||
|
|
||||||
|
# Radio devices to enable on startup: bluetooth, wifi, wwan.
|
||||||
|
# Separate multiple devices with spaces.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DEVICES_TO_ENABLE_ON_STARTUP="wifi"
|
||||||
|
|
||||||
|
# Radio devices to disable on shutdown: bluetooth, wifi, wwan.
|
||||||
|
# Note: use as a workaround for devices that are blocking shutdown.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DEVICES_TO_DISABLE_ON_SHUTDOWN="bluetooth wifi wwan"
|
||||||
|
|
||||||
|
# Radio devices to enable on shutdown: bluetooth, wifi, wwan.
|
||||||
|
# (to prevent other operating systems from missing radios).
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DEVICES_TO_ENABLE_ON_SHUTDOWN="wwan"
|
||||||
|
|
||||||
|
# Radio devices to enable on AC: bluetooth, wifi, wwan.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DEVICES_TO_ENABLE_ON_AC="bluetooth wifi wwan"
|
||||||
|
|
||||||
|
# Radio devices to disable on battery: bluetooth, wifi, wwan.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DEVICES_TO_DISABLE_ON_BAT="bluetooth wifi wwan"
|
||||||
|
|
||||||
|
# Radio devices to disable on battery when not in use (not connected):
|
||||||
|
# bluetooth, wifi, wwan.
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#DEVICES_TO_DISABLE_ON_BAT_NOT_IN_USE="bluetooth wifi wwan"
|
||||||
|
|
||||||
|
# Battery charge thresholds (ThinkPad only).
|
||||||
|
# May require external kernel module(s), refer to the output of tlp-stat -b.
|
||||||
|
# Charging starts when the remaining capacity falls below the
|
||||||
|
# START_CHARGE_THRESH value and stops when exceeding the STOP_CHARGE_THRESH
|
||||||
|
# value.
|
||||||
|
|
||||||
|
# Main / Internal battery (values in %)
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#START_CHARGE_THRESH_BAT0=75
|
||||||
|
#STOP_CHARGE_THRESH_BAT0=80
|
||||||
|
|
||||||
|
# Ultrabay / Slice / Replaceable battery (values in %)
|
||||||
|
# Default: <none>
|
||||||
|
|
||||||
|
#START_CHARGE_THRESH_BAT1=75
|
||||||
|
#STOP_CHARGE_THRESH_BAT1=80
|
||||||
|
|
||||||
|
# Restore charge thresholds when AC is unplugged: 0=disable, 1=enable.
|
||||||
|
# Default: 0
|
||||||
|
|
||||||
|
#RESTORE_THRESHOLDS_ON_BAT=1
|
||||||
|
|
||||||
|
# Battery feature drivers: 0=disable, 1=enable
|
||||||
|
# Default: 1 (all)
|
||||||
|
|
||||||
|
#NATACPI_ENABLE=1
|
||||||
|
#TPACPI_ENABLE=1
|
||||||
|
#TPSMAPI_ENABLE=1
|
||||||
|
|
||||||
|
# ------------------------------------------------------------------------------
|
||||||
|
# tlp-rdw - Parameters for the radio device wizard
|
||||||
|
|
||||||
|
# Possible devices: bluetooth, wifi, wwan.
|
||||||
|
# Separate multiple radio devices with spaces.
|
||||||
|
# Default: <none> (for all parameters below)
|
||||||
|
|
||||||
|
# Radio devices to disable on connect.
|
||||||
|
|
||||||
|
#DEVICES_TO_DISABLE_ON_LAN_CONNECT="wifi wwan"
|
||||||
|
#DEVICES_TO_DISABLE_ON_WIFI_CONNECT="wwan"
|
||||||
|
#DEVICES_TO_DISABLE_ON_WWAN_CONNECT="wifi"
|
||||||
|
|
||||||
|
# Radio devices to enable on disconnect.
|
||||||
|
|
||||||
|
#DEVICES_TO_ENABLE_ON_LAN_DISCONNECT="wifi wwan"
|
||||||
|
#DEVICES_TO_ENABLE_ON_WIFI_DISCONNECT=""
|
||||||
|
#DEVICES_TO_ENABLE_ON_WWAN_DISCONNECT=""
|
||||||
|
|
||||||
|
# Radio devices to enable/disable when docked.
|
||||||
|
|
||||||
|
#DEVICES_TO_ENABLE_ON_DOCK=""
|
||||||
|
#DEVICES_TO_DISABLE_ON_DOCK=""
|
||||||
|
|
||||||
|
# Radio devices to enable/disable when undocked.
|
||||||
|
|
||||||
|
#DEVICES_TO_ENABLE_ON_UNDOCK="wifi"
|
||||||
|
#DEVICES_TO_DISABLE_ON_UNDOCK=""
|
2
.config/root/etc_udev_rules.d_backlight.rules
Normal file
2
.config/root/etc_udev_rules.d_backlight.rules
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
|
||||||
|
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"
|
6
.config/root/etc_x11_xorg.conf.d/00-keyboard.conf
Normal file
6
.config/root/etc_x11_xorg.conf.d/00-keyboard.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Section "InputClass"
|
||||||
|
Identifier "Keyboard Layout"
|
||||||
|
MatchIsKeyboard "yes"
|
||||||
|
Option "XkbLayout" "fr"
|
||||||
|
Option "XkbVariant" "oss" #acc}s aux caract}res sp{ciaux plus logique avec 'AltGr'
|
||||||
|
EndSection
|
7
.config/root/etc_x11_xorg.conf.d/20-intel.conf
Normal file
7
.config/root/etc_x11_xorg.conf.d/20-intel.conf
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Section "Device"
|
||||||
|
Identifier "Intel Graphics"
|
||||||
|
Driver "intel"
|
||||||
|
Option "TearFree" "true"
|
||||||
|
Option "AccelMethod" "uxa"
|
||||||
|
Option "TripleBuffer" "true"
|
||||||
|
EndSection
|
68
.config/transmission-daemon/settings.json
Normal file
68
.config/transmission-daemon/settings.json
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
{
|
||||||
|
"alt-speed-down": 50,
|
||||||
|
"alt-speed-enabled": false,
|
||||||
|
"alt-speed-time-begin": 540,
|
||||||
|
"alt-speed-time-day": 127,
|
||||||
|
"alt-speed-time-enabled": false,
|
||||||
|
"alt-speed-time-end": 1020,
|
||||||
|
"alt-speed-up": 50,
|
||||||
|
"bind-address-ipv4": "0.0.0.0",
|
||||||
|
"bind-address-ipv6": "::",
|
||||||
|
"blocklist-enabled": true,
|
||||||
|
"blocklist-url": "http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz",
|
||||||
|
"cache-size-mb": 4,
|
||||||
|
"dht-enabled": true,
|
||||||
|
"download-dir": "/home/swytch/downloads/torrents",
|
||||||
|
"download-queue-enabled": true,
|
||||||
|
"download-queue-size": 5,
|
||||||
|
"encryption": 1,
|
||||||
|
"idle-seeding-limit": 30,
|
||||||
|
"idle-seeding-limit-enabled": false,
|
||||||
|
"incomplete-dir": "/home/swytch/downloads",
|
||||||
|
"incomplete-dir-enabled": false,
|
||||||
|
"lpd-enabled": false,
|
||||||
|
"message-level": 2,
|
||||||
|
"peer-congestion-algorithm": "",
|
||||||
|
"peer-id-ttl-hours": 6,
|
||||||
|
"peer-limit-global": 200,
|
||||||
|
"peer-limit-per-torrent": 50,
|
||||||
|
"peer-port": 51413,
|
||||||
|
"peer-port-random-high": 65535,
|
||||||
|
"peer-port-random-low": 49152,
|
||||||
|
"peer-port-random-on-start": false,
|
||||||
|
"peer-socket-tos": "default",
|
||||||
|
"pex-enabled": true,
|
||||||
|
"port-forwarding-enabled": true,
|
||||||
|
"preallocation": 1,
|
||||||
|
"prefetch-enabled": true,
|
||||||
|
"queue-stalled-enabled": true,
|
||||||
|
"queue-stalled-minutes": 30,
|
||||||
|
"ratio-limit": 2,
|
||||||
|
"ratio-limit-enabled": false,
|
||||||
|
"rename-partial-files": true,
|
||||||
|
"rpc-authentication-required": false,
|
||||||
|
"rpc-bind-address": "0.0.0.0",
|
||||||
|
"rpc-enabled": true,
|
||||||
|
"rpc-host-whitelist": "",
|
||||||
|
"rpc-host-whitelist-enabled": true,
|
||||||
|
"rpc-password": "{2b0cc22890788d0906609e7aeca962177f26b78dkdlJ.Kdw",
|
||||||
|
"rpc-port": 9091,
|
||||||
|
"rpc-url": "/transmission/",
|
||||||
|
"rpc-username": "",
|
||||||
|
"rpc-whitelist": "127.0.0.1,::1,192.168.0.*",
|
||||||
|
"rpc-whitelist-enabled": true,
|
||||||
|
"scrape-paused-torrents-enabled": true,
|
||||||
|
"script-torrent-done-enabled": false,
|
||||||
|
"script-torrent-done-filename": "",
|
||||||
|
"seed-queue-enabled": false,
|
||||||
|
"seed-queue-size": 10,
|
||||||
|
"speed-limit-down": 100,
|
||||||
|
"speed-limit-down-enabled": false,
|
||||||
|
"speed-limit-up": 100,
|
||||||
|
"speed-limit-up-enabled": false,
|
||||||
|
"start-added-torrents": true,
|
||||||
|
"trash-original-torrent-files": false,
|
||||||
|
"umask": 18,
|
||||||
|
"upload-slots-per-torrent": 14,
|
||||||
|
"utp-enabled": true
|
||||||
|
}
|
41
.config/tremc/settings.cfg
Normal file
41
.config/tremc/settings.cfg
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
[Connection]
|
||||||
|
password =
|
||||||
|
username =
|
||||||
|
port = 9091
|
||||||
|
host = localhost
|
||||||
|
path = /transmission/rpc
|
||||||
|
ssl = False
|
||||||
|
|
||||||
|
[Sorting]
|
||||||
|
order = name
|
||||||
|
|
||||||
|
[Filtering]
|
||||||
|
filter =
|
||||||
|
invert = False
|
||||||
|
|
||||||
|
[Misc]
|
||||||
|
compact_list = False
|
||||||
|
torrentname_is_progressbar = True
|
||||||
|
file_viewer = xdg-open %%s
|
||||||
|
file_open_in_terminal = True
|
||||||
|
|
||||||
|
[Colors]
|
||||||
|
title_seed = bg:green,fg:black
|
||||||
|
title_download = bg:blue,fg:black
|
||||||
|
title_idle = bg:yellow,fg:black
|
||||||
|
title_verify = bg:magenta,fg:black
|
||||||
|
title_paused = bg:black,fg:white
|
||||||
|
title_error = bg:red,fg:white
|
||||||
|
download_rate = bg:blue,fg:black
|
||||||
|
upload_rate = bg:red,fg:black
|
||||||
|
eta+ratio = bg:green,fg:black
|
||||||
|
filter_status = bg:red,fg:black
|
||||||
|
dialog = bg:black,fg:white
|
||||||
|
dialog_important = bg:red,fg:black
|
||||||
|
button = bg:white,fg:black
|
||||||
|
button_focused = bg:black,fg:white
|
||||||
|
file_prio_high = bg:red,fg:black
|
||||||
|
file_prio_normal = bg:white,fg:black
|
||||||
|
file_prio_low = bg:yellow,fg:black
|
||||||
|
file_prio_off = bg:blue,fg:black
|
||||||
|
|
15
.config/user-dirs.dirs
Normal file
15
.config/user-dirs.dirs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# This file is written by xdg-user-dirs-update
|
||||||
|
# If you want to change or add directories, just edit the line you're
|
||||||
|
# interested in. All local changes will be retained on the next run.
|
||||||
|
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||||
|
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||||
|
# absolute path. No other format is supported.
|
||||||
|
#
|
||||||
|
XDG_DESKTOP_DIR="$HOME/"
|
||||||
|
XDG_DOWNLOAD_DIR="$HOME/downloads"
|
||||||
|
XDG_TEMPLATES_DIR="$HOME/"
|
||||||
|
XDG_PUBLICSHARE_DIR="$HOME/"
|
||||||
|
XDG_DOCUMENTS_DIR="$HOME/documents"
|
||||||
|
XDG_MUSIC_DIR="$HOME/"
|
||||||
|
XDG_PICTURES_DIR="$HOME/pictures"
|
||||||
|
XDG_VIDEOS_DIR="$HOME/videos"
|
122
.config/vpn/servers/ch.protonvpn.com.udp.ovpn
Normal file
122
.config/vpn/servers/ch.protonvpn.com.udp.ovpn
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
# ==============================================================================
|
||||||
|
# Copyright (c) 2016-2020 Proton Technologies AG (Switzerland)
|
||||||
|
# Email: contact@protonvpn.com
|
||||||
|
#
|
||||||
|
# The MIT License (MIT)
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING
|
||||||
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
# IN THE SOFTWARE.
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
client
|
||||||
|
dev tun
|
||||||
|
proto udp
|
||||||
|
|
||||||
|
remote ch.protonvpn.com 443
|
||||||
|
remote ch.protonvpn.com 5060
|
||||||
|
remote ch.protonvpn.com 4569
|
||||||
|
remote ch.protonvpn.com 80
|
||||||
|
remote ch.protonvpn.com 1194
|
||||||
|
|
||||||
|
remote-random
|
||||||
|
resolv-retry infinite
|
||||||
|
nobind
|
||||||
|
cipher AES-256-CBC
|
||||||
|
auth SHA512
|
||||||
|
comp-lzo no
|
||||||
|
verb 3
|
||||||
|
|
||||||
|
setenv CLIENT_CERT 0
|
||||||
|
tun-mtu 1500
|
||||||
|
tun-mtu-extra 32
|
||||||
|
mssfix 1450
|
||||||
|
persist-key
|
||||||
|
persist-tun
|
||||||
|
|
||||||
|
reneg-sec 0
|
||||||
|
|
||||||
|
remote-cert-tls server
|
||||||
|
#auth-user-pass
|
||||||
|
pull
|
||||||
|
fast-io
|
||||||
|
|
||||||
|
script-security 2
|
||||||
|
setenv PATH /usr/bin
|
||||||
|
up /etc/openvpn/scripts/update-systemd-resolved
|
||||||
|
down /etc/openvpn/scripts/update-systemd-resolved
|
||||||
|
down-pre
|
||||||
|
dhcp-option DOMAIN-ROUTE .
|
||||||
|
|
||||||
|
<ca>
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFozCCA4ugAwIBAgIBATANBgkqhkiG9w0BAQ0FADBAMQswCQYDVQQGEwJDSDEV
|
||||||
|
MBMGA1UEChMMUHJvdG9uVlBOIEFHMRowGAYDVQQDExFQcm90b25WUE4gUm9vdCBD
|
||||||
|
QTAeFw0xNzAyMTUxNDM4MDBaFw0yNzAyMTUxNDM4MDBaMEAxCzAJBgNVBAYTAkNI
|
||||||
|
MRUwEwYDVQQKEwxQcm90b25WUE4gQUcxGjAYBgNVBAMTEVByb3RvblZQTiBSb290
|
||||||
|
IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAt+BsSsZg7+AuqTq7
|
||||||
|
vDbPzfygtl9f8fLJqO4amsyOXlI7pquL5IsEZhpWyJIIvYybqS4s1/T7BbvHPLVE
|
||||||
|
wlrq8A5DBIXcfuXrBbKoYkmpICGc2u1KYVGOZ9A+PH9z4Tr6OXFfXRnsbZToie8t
|
||||||
|
2Xjv/dZDdUDAqeW89I/mXg3k5x08m2nfGCQDm4gCanN1r5MT7ge56z0MkY3FFGCO
|
||||||
|
qRwspIEUzu1ZqGSTkG1eQiOYIrdOF5cc7n2APyvBIcfvp/W3cpTOEmEBJ7/14RnX
|
||||||
|
nHo0fcx61Inx/6ZxzKkW8BMdGGQF3tF6u2M0FjVN0lLH9S0ul1TgoOS56yEJ34hr
|
||||||
|
JSRTqHuar3t/xdCbKFZjyXFZFNsXVvgJu34CNLrHHTGJj9jiUfFnxWQYMo9UNUd4
|
||||||
|
a3PPG1HnbG7LAjlvj5JlJ5aqO5gshdnqb9uIQeR2CdzcCJgklwRGCyDT1pm7eoiv
|
||||||
|
WV19YBd81vKulLzgPavu3kRRe83yl29It2hwQ9FMs5w6ZV/X6ciTKo3etkX9nBD9
|
||||||
|
ZzJPsGQsBUy7CzO1jK4W01+u3ItmQS+1s4xtcFxdFY8o/q1zoqBlxpe5MQIWN6Qa
|
||||||
|
lryiET74gMHE/S5WrPlsq/gehxsdgc6GDUXG4dk8vn6OUMa6wb5wRO3VXGEc67IY
|
||||||
|
m4mDFTYiPvLaFOxtndlUWuCruKcCAwEAAaOBpzCBpDAMBgNVHRMEBTADAQH/MB0G
|
||||||
|
A1UdDgQWBBSDkIaYhLVZTwyLNTetNB2qV0gkVDBoBgNVHSMEYTBfgBSDkIaYhLVZ
|
||||||
|
TwyLNTetNB2qV0gkVKFEpEIwQDELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFByb3Rv
|
||||||
|
blZQTiBBRzEaMBgGA1UEAxMRUHJvdG9uVlBOIFJvb3QgQ0GCAQEwCwYDVR0PBAQD
|
||||||
|
AgEGMA0GCSqGSIb3DQEBDQUAA4ICAQCYr7LpvnfZXBCxVIVc2ea1fjxQ6vkTj0zM
|
||||||
|
htFs3qfeXpMRf+g1NAh4vv1UIwLsczilMt87SjpJ25pZPyS3O+/VlI9ceZMvtGXd
|
||||||
|
MGfXhTDp//zRoL1cbzSHee9tQlmEm1tKFxB0wfWd/inGRjZxpJCTQh8oc7CTziHZ
|
||||||
|
ufS+Jkfpc4Rasr31fl7mHhJahF1j/ka/OOWmFbiHBNjzmNWPQInJm+0ygFqij5qs
|
||||||
|
51OEvubR8yh5Mdq4TNuWhFuTxpqoJ87VKaSOx/Aefca44Etwcj4gHb7LThidw/ky
|
||||||
|
zysZiWjyrbfX/31RX7QanKiMk2RDtgZaWi/lMfsl5O+6E2lJ1vo4xv9pW8225B5X
|
||||||
|
eAeXHCfjV/vrrCFqeCprNF6a3Tn/LX6VNy3jbeC+167QagBOaoDA01XPOx7Odhsb
|
||||||
|
Gd7cJ5VkgyycZgLnT9zrChgwjx59JQosFEG1DsaAgHfpEl/N3YPJh68N7fwN41Cj
|
||||||
|
zsk39v6iZdfuet/sP7oiP5/gLmA/CIPNhdIYxaojbLjFPkftVjVPn49RqwqzJJPR
|
||||||
|
N8BOyb94yhQ7KO4F3IcLT/y/dsWitY0ZH4lCnAVV/v2YjWAWS3OWyC8BFx/Jmc3W
|
||||||
|
DK/yPwECUcPgHIeXiRjHnJt0Zcm23O2Q3RphpU+1SO3XixsXpOVOYP6rJIXW9bMZ
|
||||||
|
A1gTTlpi7A==
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
</ca>
|
||||||
|
|
||||||
|
key-direction 1
|
||||||
|
<tls-auth>
|
||||||
|
# 2048 bit OpenVPN static key
|
||||||
|
-----BEGIN OpenVPN Static key V1-----
|
||||||
|
6acef03f62675b4b1bbd03e53b187727
|
||||||
|
423cea742242106cb2916a8a4c829756
|
||||||
|
3d22c7e5cef430b1103c6f66eb1fc5b3
|
||||||
|
75a672f158e2e2e936c3faa48b035a6d
|
||||||
|
e17beaac23b5f03b10b868d53d03521d
|
||||||
|
8ba115059da777a60cbfd7b2c9c57472
|
||||||
|
78a15b8f6e68a3ef7fd583ec9f398c8b
|
||||||
|
d4735dab40cbd1e3c62a822e97489186
|
||||||
|
c30a0b48c7c38ea32ceb056d3fa5a710
|
||||||
|
e10ccc7a0ddb363b08c3d2777a3395e1
|
||||||
|
0c0b6080f56309192ab5aacd4b45f55d
|
||||||
|
a61fc77af39bd81a19218a79762c3386
|
||||||
|
2df55785075f37d8c71dc8a42097ee43
|
||||||
|
344739a0dd48d03025b0450cf1fb5e8c
|
||||||
|
aeb893d9a96d1f15519bb3c4dcb40ee3
|
||||||
|
16672ea16c012664f8a9f11255518deb
|
||||||
|
-----END OpenVPN Static key V1-----
|
||||||
|
</tls-auth>
|
122
.config/vpn/servers/de.protonvpn.com.udp.ovpn
Normal file
122
.config/vpn/servers/de.protonvpn.com.udp.ovpn
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
# ==============================================================================
|
||||||
|
# Copyright (c) 2016-2020 Proton Technologies AG (Switzerland)
|
||||||
|
# Email: contact@protonvpn.com
|
||||||
|
#
|
||||||
|
# The MIT License (MIT)
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING
|
||||||
|
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
# IN THE SOFTWARE.
|
||||||
|
# ==============================================================================
|
||||||
|
|
||||||
|
client
|
||||||
|
dev tun
|
||||||
|
proto udp
|
||||||
|
|
||||||
|
remote de.protonvpn.com 5060
|
||||||
|
remote de.protonvpn.com 1194
|
||||||
|
remote de.protonvpn.com 443
|
||||||
|
remote de.protonvpn.com 80
|
||||||
|
remote de.protonvpn.com 4569
|
||||||
|
|
||||||
|
remote-random
|
||||||
|
resolv-retry infinite
|
||||||
|
nobind
|
||||||
|
cipher AES-256-CBC
|
||||||
|
auth SHA512
|
||||||
|
comp-lzo no
|
||||||
|
verb 3
|
||||||
|
|
||||||
|
setenv CLIENT_CERT 0
|
||||||
|
tun-mtu 1500
|
||||||
|
tun-mtu-extra 32
|
||||||
|
mssfix 1450
|
||||||
|
persist-key
|
||||||
|
persist-tun
|
||||||
|
|
||||||
|
reneg-sec 0
|
||||||
|
|
||||||
|
remote-cert-tls server
|
||||||
|
#auth-user-pass
|
||||||
|
pull
|
||||||
|
fast-io
|
||||||
|
|
||||||
|
script-security 2
|
||||||
|
setenv PATH /usr/bin
|
||||||
|
up /etc/openvpn/scripts/update-systemd-resolved
|
||||||
|
down /etc/openvpn/scripts/update-systemd-resolved
|
||||||
|
down-pre
|
||||||
|
dhcp-option DOMAIN-ROUTE .
|
||||||
|
|
||||||
|
<ca>
|
||||||
|
-----BEGIN CERTIFICATE-----
|
||||||
|
MIIFozCCA4ugAwIBAgIBATANBgkqhkiG9w0BAQ0FADBAMQswCQYDVQQGEwJDSDEV
|
||||||
|
MBMGA1UEChMMUHJvdG9uVlBOIEFHMRowGAYDVQQDExFQcm90b25WUE4gUm9vdCBD
|
||||||
|
QTAeFw0xNzAyMTUxNDM4MDBaFw0yNzAyMTUxNDM4MDBaMEAxCzAJBgNVBAYTAkNI
|
||||||
|
MRUwEwYDVQQKEwxQcm90b25WUE4gQUcxGjAYBgNVBAMTEVByb3RvblZQTiBSb290
|
||||||
|
IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAt+BsSsZg7+AuqTq7
|
||||||
|
vDbPzfygtl9f8fLJqO4amsyOXlI7pquL5IsEZhpWyJIIvYybqS4s1/T7BbvHPLVE
|
||||||
|
wlrq8A5DBIXcfuXrBbKoYkmpICGc2u1KYVGOZ9A+PH9z4Tr6OXFfXRnsbZToie8t
|
||||||
|
2Xjv/dZDdUDAqeW89I/mXg3k5x08m2nfGCQDm4gCanN1r5MT7ge56z0MkY3FFGCO
|
||||||
|
qRwspIEUzu1ZqGSTkG1eQiOYIrdOF5cc7n2APyvBIcfvp/W3cpTOEmEBJ7/14RnX
|
||||||
|
nHo0fcx61Inx/6ZxzKkW8BMdGGQF3tF6u2M0FjVN0lLH9S0ul1TgoOS56yEJ34hr
|
||||||
|
JSRTqHuar3t/xdCbKFZjyXFZFNsXVvgJu34CNLrHHTGJj9jiUfFnxWQYMo9UNUd4
|
||||||
|
a3PPG1HnbG7LAjlvj5JlJ5aqO5gshdnqb9uIQeR2CdzcCJgklwRGCyDT1pm7eoiv
|
||||||
|
WV19YBd81vKulLzgPavu3kRRe83yl29It2hwQ9FMs5w6ZV/X6ciTKo3etkX9nBD9
|
||||||
|
ZzJPsGQsBUy7CzO1jK4W01+u3ItmQS+1s4xtcFxdFY8o/q1zoqBlxpe5MQIWN6Qa
|
||||||
|
lryiET74gMHE/S5WrPlsq/gehxsdgc6GDUXG4dk8vn6OUMa6wb5wRO3VXGEc67IY
|
||||||
|
m4mDFTYiPvLaFOxtndlUWuCruKcCAwEAAaOBpzCBpDAMBgNVHRMEBTADAQH/MB0G
|
||||||
|
A1UdDgQWBBSDkIaYhLVZTwyLNTetNB2qV0gkVDBoBgNVHSMEYTBfgBSDkIaYhLVZ
|
||||||
|
TwyLNTetNB2qV0gkVKFEpEIwQDELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFByb3Rv
|
||||||
|
blZQTiBBRzEaMBgGA1UEAxMRUHJvdG9uVlBOIFJvb3QgQ0GCAQEwCwYDVR0PBAQD
|
||||||
|
AgEGMA0GCSqGSIb3DQEBDQUAA4ICAQCYr7LpvnfZXBCxVIVc2ea1fjxQ6vkTj0zM
|
||||||
|
htFs3qfeXpMRf+g1NAh4vv1UIwLsczilMt87SjpJ25pZPyS3O+/VlI9ceZMvtGXd
|
||||||
|
MGfXhTDp//zRoL1cbzSHee9tQlmEm1tKFxB0wfWd/inGRjZxpJCTQh8oc7CTziHZ
|
||||||
|
ufS+Jkfpc4Rasr31fl7mHhJahF1j/ka/OOWmFbiHBNjzmNWPQInJm+0ygFqij5qs
|
||||||
|
51OEvubR8yh5Mdq4TNuWhFuTxpqoJ87VKaSOx/Aefca44Etwcj4gHb7LThidw/ky
|
||||||
|
zysZiWjyrbfX/31RX7QanKiMk2RDtgZaWi/lMfsl5O+6E2lJ1vo4xv9pW8225B5X
|
||||||
|
eAeXHCfjV/vrrCFqeCprNF6a3Tn/LX6VNy3jbeC+167QagBOaoDA01XPOx7Odhsb
|
||||||
|
Gd7cJ5VkgyycZgLnT9zrChgwjx59JQosFEG1DsaAgHfpEl/N3YPJh68N7fwN41Cj
|
||||||
|
zsk39v6iZdfuet/sP7oiP5/gLmA/CIPNhdIYxaojbLjFPkftVjVPn49RqwqzJJPR
|
||||||
|
N8BOyb94yhQ7KO4F3IcLT/y/dsWitY0ZH4lCnAVV/v2YjWAWS3OWyC8BFx/Jmc3W
|
||||||
|
DK/yPwECUcPgHIeXiRjHnJt0Zcm23O2Q3RphpU+1SO3XixsXpOVOYP6rJIXW9bMZ
|
||||||
|
A1gTTlpi7A==
|
||||||
|
-----END CERTIFICATE-----
|
||||||
|
</ca>
|
||||||
|
|
||||||
|
key-direction 1
|
||||||
|
<tls-auth>
|
||||||
|
# 2048 bit OpenVPN static key
|
||||||
|
-----BEGIN OpenVPN Static key V1-----
|
||||||
|
6acef03f62675b4b1bbd03e53b187727
|
||||||
|
423cea742242106cb2916a8a4c829756
|
||||||
|
3d22c7e5cef430b1103c6f66eb1fc5b3
|
||||||
|
75a672f158e2e2e936c3faa48b035a6d
|
||||||
|
e17beaac23b5f03b10b868d53d03521d
|
||||||
|
8ba115059da777a60cbfd7b2c9c57472
|
||||||
|
78a15b8f6e68a3ef7fd583ec9f398c8b
|
||||||
|
d4735dab40cbd1e3c62a822e97489186
|
||||||
|
c30a0b48c7c38ea32ceb056d3fa5a710
|
||||||
|
e10ccc7a0ddb363b08c3d2777a3395e1
|
||||||
|
0c0b6080f56309192ab5aacd4b45f55d
|
||||||
|
a61fc77af39bd81a19218a79762c3386
|
||||||
|
2df55785075f37d8c71dc8a42097ee43
|
||||||
|
344739a0dd48d03025b0450cf1fb5e8c
|
||||||
|
aeb893d9a96d1f15519bb3c4dcb40ee3
|
||||||
|
16672ea16c012664f8a9f11255518deb
|
||||||
|
-----END OpenVPN Static key V1-----
|
||||||
|
</tls-auth>
|
70
.config/waybar/config
Normal file
70
.config/waybar/config
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
{
|
||||||
|
"modules-left": [
|
||||||
|
"river/tags"
|
||||||
|
],
|
||||||
|
"modules-center": [
|
||||||
|
"mpd",
|
||||||
|
],
|
||||||
|
"mpd": {
|
||||||
|
"tooltip": false,
|
||||||
|
"format": "{stateIcon} {artist} | {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S})",
|
||||||
|
"format-disconnected": "",
|
||||||
|
"format-stopped": "",
|
||||||
|
"state-icons": {
|
||||||
|
"playing": "",
|
||||||
|
"paused": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"modules-right": [
|
||||||
|
"pulseaudio",
|
||||||
|
"custom/separator",
|
||||||
|
"network",
|
||||||
|
"custom/separator",
|
||||||
|
"cpu",
|
||||||
|
"custom/separator",
|
||||||
|
"temperature",
|
||||||
|
"custom/separator",
|
||||||
|
"clock",
|
||||||
|
],
|
||||||
|
"custom/separator": {
|
||||||
|
"format": " | ",
|
||||||
|
"tooltip" : false
|
||||||
|
},
|
||||||
|
"pulseaudio": {
|
||||||
|
"format": "{icon} {volume:3}%",
|
||||||
|
"format-muted": "婢 {volume}%",
|
||||||
|
"format-icons": {
|
||||||
|
"default": ["奄", "奔", "墳"]
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"network": {
|
||||||
|
"format-wifi": "直 {signalStrength:3}%",
|
||||||
|
"format-ethernet": " {ipaddr}/{cidr}",
|
||||||
|
"format-linked": " (No IP)",
|
||||||
|
"format-disconnected": "睊 ---",
|
||||||
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"cpu": {
|
||||||
|
"format": "{usage:3}%",
|
||||||
|
"states": {
|
||||||
|
"warning": 50,
|
||||||
|
"critical": 90
|
||||||
|
},
|
||||||
|
"interval": 1,
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
"format": "{temperatureC:3}°C",
|
||||||
|
"format-critical": "{temperatureC:3}°C",
|
||||||
|
"interval": 1,
|
||||||
|
"hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input",
|
||||||
|
"critical-threshold": 75,
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
"clock": {
|
||||||
|
"format": "{:%b. %d-%m %T}",
|
||||||
|
"interval": 1,
|
||||||
|
"tooltip": false
|
||||||
|
},
|
||||||
|
}
|
11
.config/waybar/pacman.sh
Normal file
11
.config/waybar/pacman.sh
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
num_updates=$(checkupdates | wc -l)
|
||||||
|
|
||||||
|
if [ $num_updates -gt 1 ]; then
|
||||||
|
echo "{\"text\": \"$num_updates updates\", \"class\": \"warning\"}"
|
||||||
|
elif [ $num_updates -eq 1 ]; then
|
||||||
|
echo "{\"text\": \"$num_updates update\", \"class\": \"warning\"}"
|
||||||
|
else
|
||||||
|
echo "{\"text\": \"up to date\"}"
|
||||||
|
fi
|
100
.config/waybar/style.css
Normal file
100
.config/waybar/style.css
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
/**
|
||||||
|
* solarized dark colorscheme:
|
||||||
|
*
|
||||||
|
* base03 #002b36
|
||||||
|
* base02 #073642
|
||||||
|
* base01 #586e75
|
||||||
|
* base00 #657b83
|
||||||
|
* base0 #839496
|
||||||
|
* base1 #93a1a1
|
||||||
|
* base2 #eee8d5
|
||||||
|
* base3 #fdf6e3
|
||||||
|
* yellow #b58900
|
||||||
|
* orange #cb4b16
|
||||||
|
* red #dc322f
|
||||||
|
* magenta #d33682
|
||||||
|
* violet #6c71c4
|
||||||
|
* blue #268bd2
|
||||||
|
* cyan #2aa198
|
||||||
|
* green #859900
|
||||||
|
*/
|
||||||
|
|
||||||
|
* {
|
||||||
|
border-radius: 0;
|
||||||
|
font-family: Iosevka Fixed Slab;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: rgba(29,32,33,1);
|
||||||
|
border: 1px solid #89b482;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-separator {
|
||||||
|
color: #696969;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags {
|
||||||
|
margin-left: 5px;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags button {
|
||||||
|
margin: 1px;
|
||||||
|
padding: 1px;
|
||||||
|
color: #424242;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags button:hover {
|
||||||
|
box-shadow: inherit;
|
||||||
|
text-shadow: inherit;
|
||||||
|
background: none; /*base02*/
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags button.occupied {
|
||||||
|
color: #fbf1c7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags button.focused,
|
||||||
|
#tags button.focused.occupied {
|
||||||
|
color: #f7a583;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock,
|
||||||
|
#cpu,
|
||||||
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
|
#temperature {
|
||||||
|
margin-right: 5px;
|
||||||
|
padding: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock,
|
||||||
|
#cpu,
|
||||||
|
#mpd,
|
||||||
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
|
#temperature {
|
||||||
|
color: #fbf1c7;
|
||||||
|
}
|
||||||
|
|
||||||
|
#mpd.paused {
|
||||||
|
color: #f7a583;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio.muted {
|
||||||
|
color: #f7a583;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu.warning,
|
||||||
|
#memory.warning {
|
||||||
|
border: 2px solid #f7a583;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu.critical,
|
||||||
|
#memory.critical,
|
||||||
|
#temperature.critical {
|
||||||
|
border: 2px solid #b73935;
|
||||||
|
}
|
12
.config/waybar/waybar.hook
Normal file
12
.config/waybar/waybar.hook
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# pacman hook to trigger an update of the custom pacman waybar module
|
||||||
|
|
||||||
|
[Trigger]
|
||||||
|
Operation = Upgrade
|
||||||
|
Type = File
|
||||||
|
Target = *
|
||||||
|
|
||||||
|
[Action]
|
||||||
|
Description = waybar: refresh pacman module
|
||||||
|
When = PostTransaction
|
||||||
|
Exec = /usr/bin/pkill -SIGRTMIN+1 waybar
|
||||||
|
Depends = waybar
|
12
.config/zathura/zathurarc
Normal file
12
.config/zathura/zathurarc
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# general
|
||||||
|
set adjust-open "best-fit"
|
||||||
|
# colors
|
||||||
|
set default-bg "#FFFFF0"
|
||||||
|
set recolor true
|
||||||
|
set recolor-lightcolor "#FFFFF0"
|
||||||
|
set recolor-darkcolor "#000000"
|
||||||
|
|
||||||
|
# keybindings
|
||||||
|
unmap f
|
||||||
|
map f toggle_fullscreen
|
||||||
|
map [fullscreen] f toggle_fullscreen
|
4
.config/zsh/.zlogin
Normal file
4
.config/zsh/.zlogin
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
# start wayland at session login on tty1
|
||||||
|
[ "$(tty)" = "/dev/tty1" ] && ! pgrep -x river >/dev/null && exec river
|
35
.config/zsh/.zprofile
Normal file
35
.config/zsh/.zprofile
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
# This file is sourced when launching a DM from startx/xinit
|
||||||
|
|
||||||
|
# environment variables
|
||||||
|
## dotfiles
|
||||||
|
export DOTFILES="$HOME/.dotfiles.git"
|
||||||
|
|
||||||
|
## XDG_BASE_DIRECTORIES
|
||||||
|
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
|
||||||
|
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||||
|
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
|
||||||
|
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/pass"
|
||||||
|
export LESSHISTFILE="-"
|
||||||
|
export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config"
|
||||||
|
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/notmuchrc"
|
||||||
|
export NMBGIT="$XDG_DATA_HOME/notmuch/nmbug"
|
||||||
|
export ANDROID_PREFS_ROOT="$XDG_CONFIG_HOME/android"
|
||||||
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
|
||||||
|
export TEXMFHOME="$XDG_DATA_HOME/texmf"
|
||||||
|
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||||
|
|
||||||
|
## default programs
|
||||||
|
export GPG_ASKPASS="/usr/bin/pinentry-curses"
|
||||||
|
export TERMINAL="foot"
|
||||||
|
export LAUNCHER="bemenu-run"
|
||||||
|
export EDITOR="nvim"
|
||||||
|
export READER="zathura"
|
||||||
|
export BROWSER="firefox"
|
||||||
|
|
||||||
|
## use Wayland
|
||||||
|
export MOZ_ENABLE_WAYLAND=1
|
||||||
|
|
||||||
|
## programs config
|
||||||
|
export BEMENU_OPTS="-i --fn 'Iosevka Fixed Slab bold 14' --tb #f7a583 --tf #373737 --hf #f7a583"
|
77
.config/zsh/.zshrc
Normal file
77
.config/zsh/.zshrc
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
# Swy7ch' config for the Zoomer Shell
|
||||||
|
# based on Luke Smith' work (lukesmith.xyz)
|
||||||
|
|
||||||
|
# Reset tty for gpg
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
|
# Enable colors and change prompt:
|
||||||
|
autoload -U colors && colors
|
||||||
|
source $XDG_CONFIG_HOME/zsh/zsh_prompt
|
||||||
|
|
||||||
|
# Home/End/Insert/Del keys
|
||||||
|
bindkey '^[[P' delete-char # Delete
|
||||||
|
bindkey '^[[H' beginning-of-line # Home
|
||||||
|
bindkey '^[[4~' end-of-line # End
|
||||||
|
bindkey '^[[5~' up-line-or-history # PageUp
|
||||||
|
bindkey '^[[6~' down-line-or-history # PageDown
|
||||||
|
|
||||||
|
# History in cache directory:
|
||||||
|
HISTSIZE=10000
|
||||||
|
SAVEHIST=10000
|
||||||
|
HISTFILE=~/.cache/zsh/history
|
||||||
|
|
||||||
|
# Basic auto/tab complete:
|
||||||
|
autoload -U compinit
|
||||||
|
zstyle ':completion:*' menu select
|
||||||
|
zmodload zsh/complist
|
||||||
|
compinit
|
||||||
|
_comp_options+=(globdots) # Include hidden files.
|
||||||
|
|
||||||
|
# vi mode
|
||||||
|
bindkey -v
|
||||||
|
export KEYTIMEOUT=1
|
||||||
|
|
||||||
|
# Use vim keys in tab complete menu:
|
||||||
|
bindkey -M menuselect 'h' vi-backward-char
|
||||||
|
bindkey -M menuselect 'k' vi-up-line-or-history
|
||||||
|
bindkey -M menuselect 'l' vi-forward-char
|
||||||
|
bindkey -M menuselect 'j' vi-down-line-or-history
|
||||||
|
bindkey -v '^?' backward-delete-char
|
||||||
|
|
||||||
|
# Use arrows to search through history
|
||||||
|
bindkey '^[[A' history-substring-search-up
|
||||||
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
|
||||||
|
# Change cursor shape for different vi modes.
|
||||||
|
function zle-keymap-select {
|
||||||
|
if [[ ${KEYMAP} == vicmd ]] ||
|
||||||
|
[[ $1 = 'block' ]]; then
|
||||||
|
echo -ne '\e[1 q'
|
||||||
|
elif [[ ${KEYMAP} == main ]] ||
|
||||||
|
[[ ${KEYMAP} == viins ]] ||
|
||||||
|
[[ ${KEYMAP} = '' ]] ||
|
||||||
|
[[ $1 = 'beam' ]]; then
|
||||||
|
echo -ne '\e[5 q'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
zle -N zle-keymap-select
|
||||||
|
zle-line-init() {
|
||||||
|
zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
|
||||||
|
echo -ne "\e[5 q"
|
||||||
|
}
|
||||||
|
zle -N zle-line-init
|
||||||
|
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
||||||
|
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|
||||||
|
|
||||||
|
# Load aliases and shortcuts if existent.
|
||||||
|
[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"
|
||||||
|
|
||||||
|
# Load zsh-history-search
|
||||||
|
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh 2>/dev/null
|
||||||
|
|
||||||
|
# Load zsh-syntax-highlighting
|
||||||
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|
||||||
|
typeset -A ZSH_HIGHLIGHT_STYLES
|
||||||
|
ZSH_HIGHLIGHT_STYLES[alias]='fg=green,bold'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[path]='fg=magenta,bold'
|
||||||
|
ZSH_HIGHLIGHT_STYLES[unknown-token]='bg=red,fg=white,bold'
|
16
.config/zsh/zsh_prompt
Normal file
16
.config/zsh/zsh_prompt
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Git infos on the right
|
||||||
|
autoload -Uz vcs_info
|
||||||
|
precmd_vcs_info() { vcs_info }
|
||||||
|
precmd_functions+=( precmd_vcs_info )
|
||||||
|
setopt prompt_subst
|
||||||
|
zstyle ':vcs_info:git:*' check-for-changes true
|
||||||
|
zstyle ':vcs_info:git:*' stagedstr '*'
|
||||||
|
zstyle ':vcs_info:git:*' unstagedstr '!'
|
||||||
|
zstyle ':vcs_info:git:*' formats '(%F{208}%b%F{015}: %c/%u%F{015}) '
|
||||||
|
zstyle ':vcs_info:*' enable git
|
||||||
|
|
||||||
|
PROMPT="[ %{$fg[cyan]%}%n\
|
||||||
|
%{$reset_color%}: \
|
||||||
|
%B%{$fg[magenta]%}%(4~|%-1~/.../%2~|%~)%} \
|
||||||
|
%{$reset_color%}] \
|
||||||
|
\$vcs_info_msg_0_%(?:%{$fg_bold[green]%}:%{$fg_bold[red]%})$%{$reset_color%}%b "
|
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[submodule ".local/src/polyjuice"]
|
||||||
|
path = .local/src/polyjuice
|
||||||
|
url = git@github.com:swy7ch/polyjuice.git
|
||||||
|
[submodule ".local/share/nvim/lsp/sumneko_lua"]
|
||||||
|
path = .local/share/nvim/lsp/sumneko_lua
|
||||||
|
url = git@github.com:sumneko/lua-language-server.git
|
54
.local/bin/README.md
Normal file
54
.local/bin/README.md
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
# Swy7ch' personnal scripts
|
||||||
|
|
||||||
|
**Hello, world!** This is my scripts directory. Feel free to use it at your convenience :)
|
||||||
|
|
||||||
|
**/!\\** Those scripts are POSIX-compliant (hence `#!/usr/bin/env sh`), they are
|
||||||
|
supposed to be run with such shell (BaSH, zsh, dash...); FISH, for example,
|
||||||
|
might cause issues (with `if` statements, for instance) if a script is run
|
||||||
|
directly in a terminal; I recommend launching background scripts within
|
||||||
|
`.xinit` to avoid those issues.
|
||||||
|
|
||||||
|
## Scripts
|
||||||
|
|
||||||
|
- arch-setup : my personnal machine setup script
|
||||||
|
- audio-notify : send a notification when audio level is changed
|
||||||
|
- backlight-notify : send a notification when backlight level is changed
|
||||||
|
- bibinput : add a **.bib** entry through `dmenu`
|
||||||
|
- bibshow : retrieve a **.bib** reference and copy to `xclip`
|
||||||
|
- bulk : execute batch commands through your favorite $EDITOR
|
||||||
|
- colorblocks : show the system colors through colored squares
|
||||||
|
- compiler : compile a file / runs a script if the filetype is supported
|
||||||
|
- displayselect : handle a multimonitor setup
|
||||||
|
- dmenumount : mount USB drives through a `dmenu` prompt
|
||||||
|
- dmenupass : `dmenu` prompt for password, when needed
|
||||||
|
- dmenuprompt : ask for a binary choice through `dmenu`
|
||||||
|
- dmenuopen : fuzzy-find a file and open it with appropriate application
|
||||||
|
- dmenuumount : unmount USB drives through a `dmenu` prompt
|
||||||
|
- dot : git wrapper to manage dotfiles
|
||||||
|
- fetch : display basic system infos
|
||||||
|
- kbacklight : change keyboard backlight level
|
||||||
|
- maker : create a basic makefile for **C/C++** project
|
||||||
|
- mailsync : synchronize mail accounts
|
||||||
|
- mom : create a `groff/mom` file with generic metadata
|
||||||
|
- mommerge : merge all **.mom** files of a directory and compiles it
|
||||||
|
- player : control `mpc` and send notifications of current `mpd` state
|
||||||
|
- refbar : refresh `dwm` statusbar
|
||||||
|
- remaps : remap keys
|
||||||
|
- sbacklight : change screen backlight level
|
||||||
|
- setbg : set the wallpaper using `xwallpaper`
|
||||||
|
- texclear : remove `LaTeX` compilation files
|
||||||
|
- texer : create a **.tex** file with generic metadata + input packages
|
||||||
|
- webupdate : update the files on my website
|
||||||
|
|
||||||
|
## arch_setup
|
||||||
|
|
||||||
|
This is the shell script I run just after I installed Arch. It does few things:
|
||||||
|
|
||||||
|
- Install the apps I use
|
||||||
|
- Download my personnal repos
|
||||||
|
- Compile my WM (`dwm`), my binary launcher (`dmenu`) and my terminal emulator (`st`), which are part of the [suckless](https://suckless.org/) project.
|
||||||
|
|
||||||
|
## statusbar
|
||||||
|
|
||||||
|
A collection of scripts I call in my
|
||||||
|
[dwmblocks](https://gitlab.com/swy7ch/dwmblocks) build.
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user