Cleanup dotfiles, fixed permissions
Also updated i3 config
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
rofi.color-normal: #15325A, #f5f5f5, #15325A, #225396, #dfdfdf
|
||||
rofi.color-urgent: #15325A, #dc322f, #15325A, #dc322f, #dfdfdf
|
||||
rofi.color-active: #15325A, #268bd2, #15325A, #268bd2, #dfdfdf
|
||||
rofi.color-window: #15325A,#225396
|
||||
rofi.show-icons: true
|
||||
@@ -1,8 +0,0 @@
|
||||
! ------------------------------------------------------------------------------
|
||||
! ROFI Color theme
|
||||
! ------------------------------------------------------------------------------
|
||||
rofi.color-enabled: true
|
||||
rofi.color-window: #273238, #273238, #1e2529
|
||||
rofi.color-normal: #273238, #c1c1c1, #273238, #394249, #ffffff
|
||||
rofi.color-active: #273238, #80cbc4, #273238, #394249, #80cbc4
|
||||
rofi.color-urgent: #273238, #ff1844, #273238, #394249, #ff1844
|
||||
0
.config/alacritty/alacritty.yml
Executable file → Normal file
0
.config/alacritty/alacritty.yml
Executable file → Normal file
0
.config/alacritty/alacritty_ranger.yml
Executable file → Normal file
0
.config/alacritty/alacritty_ranger.yml
Executable file → Normal file
0
.config/conky/conkyrc
Executable file → Normal file
0
.config/conky/conkyrc
Executable file → Normal file
0
.config/dunst/dunstrc
Executable file → Normal file
0
.config/dunst/dunstrc
Executable file → Normal file
@@ -1,17 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match target="font">
|
||||
<edit name="antialias" mode="assign">
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
<edit name="hintstyle" mode="assign">
|
||||
<const>hintfull</const>
|
||||
</edit>
|
||||
</match>
|
||||
<alias>
|
||||
<family>system</family>
|
||||
<prefer><family>DejaVu Sans</family></prefer>
|
||||
<default><family>devicons</family></default>
|
||||
</alias>
|
||||
</fontconfig>
|
||||
@@ -1,26 +0,0 @@
|
||||
# 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 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=47
|
||||
sort_direction=1
|
||||
hide_threads=0
|
||||
hide_kernel_threads=1
|
||||
hide_userland_threads=0
|
||||
shadow_other_users=0
|
||||
show_thread_names=0
|
||||
show_program_path=1
|
||||
highlight_base_name=0
|
||||
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=0
|
||||
delay=15
|
||||
left_meters=AllCPUs Memory Swap
|
||||
left_meter_modes=1 1 1
|
||||
right_meters=Tasks LoadAverage Uptime
|
||||
right_meter_modes=2 2 2
|
||||
BIN
.config/i3/boot.mp3
Normal file
BIN
.config/i3/boot.mp3
Normal file
Binary file not shown.
235
.config/i3/config
Normal file
235
.config/i3/config
Normal file
@@ -0,0 +1,235 @@
|
||||
# T's desktop v3
|
||||
#exec --no-stratup-id xrandr --output eDP1 --primary --auto
|
||||
#exec --no-startup-id xrandr --output HDMI-0 --auto --mode 2048x1152 --primary
|
||||
exec_always --no-startup-id $HOME/.config/i3/scripts/polybar_launch.sh
|
||||
exec --no-startup-id compton -G -b
|
||||
#exec --no-startup-id mplayer -fs $HOME/.i3/boot.mp4
|
||||
#exec --no-startup-id conky -c $HOME/.config/conky/conkyrc
|
||||
exec --no-startup-id xset -dpms && xset s noblank && xset s noexpose && xset dpms 600 1800 360
|
||||
exec --no-startup-id synclient TapButton1=1
|
||||
exec xautolock -time 10 -locker $HOME/config/i3/scripts/locker.sh
|
||||
#exec xautolock -locknow
|
||||
#DAEMONS
|
||||
exec --no-startup-id udiskie -t
|
||||
exec --no-startup-id nitrogen --restore
|
||||
exec --no-startup-id dunst
|
||||
#exec --no-startup-id mpd
|
||||
#exec --no-startup-id megasync
|
||||
#exec --no-startup-id parcellite
|
||||
exec --no-startup-id blueman-applet
|
||||
#Layout
|
||||
exec setxkbmap us altgr-intl
|
||||
#exec xmodmap $HOME/.i3/custom.map
|
||||
#exec --no-startup-id /usr/lib/gnome-settings-daemon/gsd-xsettings
|
||||
exec--no-startup-id gnome-power-manager
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
#exec --no-startup-id gnome-flashback
|
||||
|
||||
font pango: xos4 Terminus, Font Awesome 5 Free, Font Awesome 5 Brands 12
|
||||
|
||||
#--APPEARANCE--#
|
||||
#-----T-i3-----#
|
||||
#class border backgr. text indicator
|
||||
client.focused #f8f8f2 #f8f8f2 #44475a #8be9fd
|
||||
client.focused_inactive #44475a #44475a #ffffff #6272a4
|
||||
client.urgent #ff79c6 #900000 #ffffff #900000
|
||||
client.placeholder #000000 #0c0c0c #ffffff #000000
|
||||
client.background #ffffff
|
||||
|
||||
#//APPEARANCE//#
|
||||
|
||||
set $mod Mod4
|
||||
set $alt Mod1
|
||||
set $m Mod3
|
||||
|
||||
#--WINDOW-SETTINGS--#
|
||||
floating_modifier $mod
|
||||
for_window [class=".*"] title_format "-> %title"
|
||||
for_window [class=".*"] border pixel 2
|
||||
for_window [class="Pavucontrol"] floating enable
|
||||
for_window [class="octopi"] floating enable
|
||||
for_window [class="lxappearance"] floating enable
|
||||
for_window [class="mojo"] floating enable
|
||||
for_window [class="nitrogen"] floating enable
|
||||
for_window [title="Hold On*"] floating enable
|
||||
for_window [title="Cerebro*"] floating enable
|
||||
for_window [title="florence"] floating enable
|
||||
for_window [title="Starting Unity...*"] floating enable
|
||||
for_window [window_role="pop-up"] floating enable
|
||||
for_window [window_role="task_dialog"] floating enable
|
||||
assign [class="^ranger$"] → $WS4
|
||||
assign [title="^ncmpcpp$"] → $WS5
|
||||
assign [class="^URxvt$"] → $WS3
|
||||
assign [class="^Termite$"] → $WS3
|
||||
assign [class="^Alacritty$"] → $WS3
|
||||
assign [class="^Firefox$"] → $WS2
|
||||
assign [class="^Steam*"] → $WSW2
|
||||
assign [class="^Gimp$"] → $WSW4
|
||||
#//WINDOW-SETTINGS//#
|
||||
|
||||
#--CONTAINERS+WINDOWS--#
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym --release button2 kill
|
||||
bindsym $mod+f fullscreen toggle
|
||||
|
||||
bindsym $mod+h focus left
|
||||
bindsym $mod+j focus down
|
||||
bindsym $mod+k focus up
|
||||
bindsym $mod+l focus right
|
||||
|
||||
bindsym $mod+Shift+h move left
|
||||
bindsym $mod+Shift+j move down
|
||||
bindsym $mod+Shift+k move up
|
||||
bindsym $mod+Shift+l move right
|
||||
|
||||
bindsym $mod+p focus parent
|
||||
bindsym $mod+a layout toggle split
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+v layout tabbed
|
||||
bindsym $mod+x split h
|
||||
bindsym $mod+c split v
|
||||
|
||||
bindsym $mod+u border pixel 4
|
||||
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+space focus mode_toggle
|
||||
#//CONTAINERS+WINDOWS//#
|
||||
|
||||
#--CUSTOM COMMANDS--#
|
||||
#KEYBOARD LAYOUT SWITCHING
|
||||
#bindsym $alt+F3 exec --no-startup-id setxkbmap us altgr-intl && xmodmap ~/.i3/custom.map
|
||||
#bindsym $alt+F2 exec --no-startup-id setxkbmap si
|
||||
|
||||
#LAUNCH PROGRAM
|
||||
bindsym $mod+d exec --no-startup-id rofi -color-enabled -show run -font "xos4 Terminus 18"
|
||||
bindsym $mod+Shift+d exec --no-startup-id rofi -show drun -font "xos4 Terminus 18" -o 85 -p "Run:"
|
||||
bindsym $alt+Tab exec --no-startup-id rofi -show window -font "xos4 Terminus 18"
|
||||
|
||||
bindsym $mod+t exec alacritty
|
||||
bindsym $mod+w exec firefox
|
||||
bindsym $mod+Shift+f exec alacritty --config-file "$HOME/.config/alacritty/alacritty_ranger.yml" -t ranger -e ranger ~
|
||||
bindsym $mod+m exec alacritty -e ncmpcpp
|
||||
|
||||
#INTEGRATED-SETTINGS
|
||||
bindsym XF86AudioPlay exec mpc toggle
|
||||
bindsym XF86AudioStop exec mpc stop
|
||||
bindsym XF86AudioNext exec mpc next
|
||||
bindsym XF86AudioPrev exec mpc previous
|
||||
bindsym XF86AudioMute exec ~/.config/i3/scripts/volume_set.sh mute
|
||||
bindsym XF86AudioRaiseVolume exec ~/.config/i3/scripts/volume_set.sh up
|
||||
bindsym XF86AudioLowerVolume exec ~/.config/i3/scripts/volume_set.sh down
|
||||
bindsym XF86MonBrightnessUp exec xbacklight +5
|
||||
bindsym XF86MonBrightnessDown exec xbacklight -5
|
||||
bindsym XF86KbdBrightnessUp exec asus-kbd-backlight up
|
||||
bindsym XF86KbdBrightnessDown exec asus-kbd-backlight down
|
||||
bindsym XF86Sleep exec ~/.config/i3/scripts/locker.sh & systemctl suspend
|
||||
bindsym $mod+Shift+p exec ~/.config/i3/scripts/locker.sh & systemctl suspend
|
||||
bindsym $mod+Shift+o exec ~/.config/i3/scripts/locker.sh
|
||||
|
||||
#SHUTDOWN+RESTART
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+r restart
|
||||
bindsym $mod+Shift+z exec "i3-msg exit"
|
||||
bindsym $mod+Shift+e exec ~/.config/i3/scripts/locker.sh
|
||||
|
||||
#//CUSTOM COMMANDS//#
|
||||
|
||||
#--WORKSPACES--#
|
||||
workspace_auto_back_and_forth yes
|
||||
workspace $WS1 output primary
|
||||
|
||||
#Primary workspaces
|
||||
set $WS1 "1:"
|
||||
set $WS2 "2:"
|
||||
set $WS3 "3:"
|
||||
set $WS4 "4:"
|
||||
set $WS5 "5:"
|
||||
bindsym $mod+1 workspace $WS1
|
||||
bindsym $mod+2 workspace $WS2
|
||||
bindsym $mod+3 workspace $WS3
|
||||
bindsym $mod+4 workspace $WS4
|
||||
bindsym $mod+5 workspace $WS5
|
||||
bindsym $mod+Shift+1 move container to workspace $WS1
|
||||
bindsym $mod+Shift+2 move container to workspace $WS2
|
||||
bindsym $mod+Shift+3 move container to workspace $WS3
|
||||
bindsym $mod+Shift+4 move container to workspace $WS4
|
||||
bindsym $mod+Shift+5 move container to workspace $WS5
|
||||
bindsym $m+1 workspace $WS1
|
||||
bindsym $m+2 workspace $WS2
|
||||
bindsym $m+3 workspace $WS3
|
||||
bindsym $m+4 workspace $WS4
|
||||
bindsym $m+5 workspace $WS5
|
||||
bindsym $m+Shift+1 move container to workspace $WS1
|
||||
bindsym $m+Shift+2 move container to workspace $WS2
|
||||
bindsym $m+Shift+3 move container to workspace $WS3
|
||||
bindsym $m+Shift+4 move container to workspace $WS4
|
||||
bindsym $m+Shift+5 move container to workspace $WS5
|
||||
|
||||
#Secondary workspaces
|
||||
set $WSW1 "6:"
|
||||
set $WSW2 "7:"
|
||||
set $WSW3 "8:"
|
||||
set $WSW4 "9:"
|
||||
bindsym $mod+F1 workspace $WSW1
|
||||
bindsym $mod+F2 workspace $WSW2
|
||||
bindsym $mod+F3 workspace $WSW3
|
||||
bindsym $mod+F4 workspace $WSW4
|
||||
bindsym $mod+Shift+F1 move container to workspace $WSW1
|
||||
bindsym $mod+Shift+F2 move container to workspace $WSW2
|
||||
bindsym $mod+Shift+F3 move container to workspace $WSW3
|
||||
bindsym $mod+Shift+F4 move container to workspace $WSW4
|
||||
bindsym $m+F1 workspace $WSW1
|
||||
bindsym $m+F2 workspace $WSW2
|
||||
bindsym $m+F3 workspace $WSW3
|
||||
bindsym $m+F4 workspace $WSW4
|
||||
bindsym $m+Shift+F1 move container to workspace $WSW1
|
||||
bindsym $m+Shift+F2 move container to workspace $WSW2
|
||||
bindsym $m+Shift+F3 move container to workspace $WSW3
|
||||
bindsym $m+Shift+F4 move container to workspace $WSW4
|
||||
|
||||
#Multiple screens
|
||||
bindsym $mod+Left move container to output left
|
||||
bindsym $mod+Right move container to output right
|
||||
bindsym $mod+Shift+Left move workspace to output left
|
||||
bindsym $mod+Shift+Right move workspace to output right
|
||||
bindsym $mod+Up move container to output up
|
||||
bindsym $mod+Down move container to output down
|
||||
bindsym $mod+Shift+Up move workspace to output up
|
||||
bindsym $mod+Shift+Down move workspace to output down
|
||||
#//WORKSPACES//#
|
||||
|
||||
#--BORDER--#
|
||||
default_border pixel 2
|
||||
default_floating_border normal 4
|
||||
smart_borders on
|
||||
gaps inner 4
|
||||
gaps outer 10
|
||||
#//BORDER//#
|
||||
|
||||
#--LAYOUTS--#
|
||||
#bindsym $alt+Shift+l exec $HOME/.i3/scripts/workspace.sh "$HOME/.i3/layouts/workspace-3.json" "$HOME/build/doc24_backend"
|
||||
#//LAYOUTS//#
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
mode "resize" {
|
||||
bindsym h resize shrink width 10 px or 10 ppt
|
||||
bindsym j resize grow height 10 px or 10 ppt
|
||||
bindsym k resize shrink height 10 px or 10 ppt
|
||||
bindsym l resize grow width 10 px or 10 ppt
|
||||
|
||||
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
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
mode "ignore" {
|
||||
bindsym $alt+Shift+i mode "default"
|
||||
|
||||
}
|
||||
bindsym $alt+i mode "ignore"
|
||||
# vim:filetype=i3
|
||||
6
.config/i3/custom.map
Normal file
6
.config/i3/custom.map
Normal file
@@ -0,0 +1,6 @@
|
||||
clear mod4
|
||||
clear mod3
|
||||
keycode 94 = Hyper_L Hyper_L Hyper_L Hyper_L Hyper_L Hyper_L Hyper_L
|
||||
keycode 135 = Super_R Super_R Super_R Super_R Super_R Super_R Super_R
|
||||
add mod3 = Hyper_L
|
||||
add mod4 = Super_L Super_R
|
||||
73
.config/i3/layouts/gimp-layout.json
Normal file
73
.config/i3/layouts/gimp-layout.json
Normal file
@@ -0,0 +1,73 @@
|
||||
// vim:ts=4:sw=4:et
|
||||
{
|
||||
"border": "normal",
|
||||
"current_border_width": 5,
|
||||
"floating": "user_off",
|
||||
"geometry": {
|
||||
"height": 820,
|
||||
"width": 210,
|
||||
"x": 3599,
|
||||
"y": 0
|
||||
},
|
||||
"name": "Layers - Brushes",
|
||||
"percent": 0.1078125,
|
||||
"swallows": [
|
||||
{
|
||||
// "class": "^Gimp$",
|
||||
// "instance": "^gimp$",
|
||||
// "title": "^Layers\\ \\-\\ Brushes$",
|
||||
// "transient_for": "^$",
|
||||
// "window_role": "^gimp\\-dock$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
|
||||
{
|
||||
"border": "pixel",
|
||||
"current_border_width": 5,
|
||||
"floating": "user_off",
|
||||
"geometry": {
|
||||
"height": 200,
|
||||
"width": 620,
|
||||
"x": 410,
|
||||
"y": 370
|
||||
},
|
||||
"name": "*[progress_bar] (imported)-1.0 (RGB color, 1 layer) 192x12 – GIMP",
|
||||
"percent": 0.777083333333333,
|
||||
"swallows": [
|
||||
{
|
||||
// "class": "^Gimp$",
|
||||
// "instance": "^gimp$",
|
||||
// "title": "^\\*\\[progress_bar\\]\\ \\(imported\\)\\-1\\.0\\ \\(RGB\\ color\\,\\ 1\\ layer\\)\\ 192x12\\ \\–\\ GIMP$",
|
||||
// "transient_for": "^$",
|
||||
// "window_role": "^gimp\\-image\\-window$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
|
||||
{
|
||||
"border": "normal",
|
||||
"current_border_width": 5,
|
||||
"floating": "user_off",
|
||||
"geometry": {
|
||||
"height": 820,
|
||||
"width": 170,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "Toolbox - Tool Options",
|
||||
"percent": 0.115104166666667,
|
||||
"swallows": [
|
||||
{
|
||||
// "class": "^Gimp$",
|
||||
// "instance": "^gimp$",
|
||||
// "title": "^Toolbox\\ \\-\\ Tool\\ Options$",
|
||||
// "transient_for": "^$",
|
||||
// "window_role": "^gimp\\-toolbox$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
|
||||
101
.config/i3/layouts/workspace-3.json
Normal file
101
.config/i3/layouts/workspace-3.json
Normal file
@@ -0,0 +1,101 @@
|
||||
// vim:ts=4:sw=4:et
|
||||
{
|
||||
// stacked split container with 2 children
|
||||
"border": "pixel",
|
||||
"floating": "auto_off",
|
||||
"layout": "stacked",
|
||||
"percent": 0.7,
|
||||
"type": "con",
|
||||
"nodes": [
|
||||
{
|
||||
"border": "none",
|
||||
"current_border_width": 4,
|
||||
"floating": "auto_off",
|
||||
"geometry": {
|
||||
"height": 768,
|
||||
"width": 1024,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "tristan@T-i3: ~/build/doc24_backend",
|
||||
"percent": 0.5,
|
||||
"swallows": [
|
||||
{
|
||||
"class": "^Alacritty$",
|
||||
"instance": "^alacritty$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
},
|
||||
{
|
||||
"border": "none",
|
||||
"current_border_width": 4,
|
||||
"floating": "auto_off",
|
||||
"geometry": {
|
||||
"height": 768,
|
||||
"width": 1024,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "i3-save-tree --workspace 3 > ~/.i3/layouts/workspace-3.json",
|
||||
"percent": 0.5,
|
||||
"swallows": [
|
||||
{
|
||||
"class": "^Alacritty$",
|
||||
"instance": "^alacritty$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
{
|
||||
// splitv split container with 2 children
|
||||
"border": "pixel",
|
||||
"floating": "auto_off",
|
||||
"layout": "splitv",
|
||||
"percent": 0.3,
|
||||
"type": "con",
|
||||
"nodes": [
|
||||
{
|
||||
"border": "none",
|
||||
"current_border_width": 4,
|
||||
"floating": "auto_off",
|
||||
"geometry": {
|
||||
"height": 768,
|
||||
"width": 1024,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "tristan@T-i3: ~",
|
||||
"percent": 0.5,
|
||||
"swallows": [
|
||||
{
|
||||
"class": "^Alacritty$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
},
|
||||
{
|
||||
"border": "none",
|
||||
"current_border_width": 4,
|
||||
"floating": "auto_off",
|
||||
"geometry": {
|
||||
"height": 768,
|
||||
"width": 1024,
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"name": "tristan@T-i3: ~/build/doc24_backend",
|
||||
"percent": 0.5,
|
||||
"swallows": [
|
||||
{
|
||||
"class": "^Alacritty$"
|
||||
}
|
||||
],
|
||||
"type": "con"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
BIN
.config/i3/mboot.mp3
Normal file
BIN
.config/i3/mboot.mp3
Normal file
Binary file not shown.
BIN
.config/i3/scripts/claw
Executable file
BIN
.config/i3/scripts/claw
Executable file
Binary file not shown.
29
.config/i3/scripts/locker.sh
Executable file
29
.config/i3/scripts/locker.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
ARGS=(
|
||||
"--screen=0"
|
||||
"--blur=5"
|
||||
# "-i${HOME}/Pictures/bg_1440p/Linux-Wallpapers-19-2560-x-1920.png"
|
||||
# "-i${HOME}/Pictures/backgrounds/0c7e1f_5775038.jpg"
|
||||
"--clock"
|
||||
"--timecolor=dfdfdfff"
|
||||
"--datecolor=dfdfdfff"
|
||||
"--insidevercolor=35d75588"
|
||||
"--insidewrongcolor=d7355588"
|
||||
"--insidecolor=00000000"
|
||||
"--ringvercolor=64c784ff"
|
||||
"--ringwrongcolor=c76484ff"
|
||||
"--ringcolor=3555d7ff"
|
||||
"--linecolor=00000000"
|
||||
"--radius=30"
|
||||
"--indpos=x+200:h-70"
|
||||
"--timepos=x+90:h-70"
|
||||
"--datepos=tx:ty+25"
|
||||
"--statuspos=ix:iy+10"
|
||||
"--separatorcolor=6484c7ff"
|
||||
"--keyhlcolor=35d755ff"
|
||||
"--bshlcolor=d73555ff"
|
||||
"--veriftext=V" "--wrongtext=E")
|
||||
|
||||
i3lock "${ARGS[@]}" &
|
||||
i3lockpid=$!
|
||||
sleep 2
|
||||
23
.config/i3/scripts/polybar_launch.sh
Executable file
23
.config/i3/scripts/polybar_launch.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# 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
|
||||
|
||||
if type "xrandr"; then
|
||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||
export COLOR_CYAN="#8be9fd"
|
||||
export COLOR_BLUE="#6272a4"
|
||||
export COLOR_GREEN="#50fa7b"
|
||||
export LABEL_MOUNTED="%{F$COLOR_CYAN}%mountpoint%%{F-}:%free%"
|
||||
export LABEL_NETWORK_CONNECTED="%{F$COLOR_CYAN}%local_ip%%{F-}:%downspeed:4%"
|
||||
MONITOR=$m polybar --reload top &
|
||||
MONITOR=$m polybar --reload bottom &
|
||||
done
|
||||
else
|
||||
polybar --reload top &
|
||||
fi
|
||||
|
||||
echo "Bars launched..."
|
||||
9
.config/i3/scripts/rotate_background.sh
Executable file
9
.config/i3/scripts/rotate_background.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#! /bin/bash
|
||||
WALLPAPERS="/home/tristan/Pictures/bg_1440p"
|
||||
ALIST=( `ls -w1 $WALLPAPERS` )
|
||||
RANGE=${#ALIST[@]}
|
||||
let "number = $RANDOM"
|
||||
let LASTNUM="`cat $WALLPAPERS/.last` + $number"
|
||||
let "number = $LASTNUM % $RANGE"
|
||||
echo $number > $WALLPAPERS/.last
|
||||
nitrogen --set-scaled --save $WALLPAPERS/${ALIST[$number]}
|
||||
40
.config/i3/scripts/shutdown_menu
Executable file
40
.config/i3/scripts/shutdown_menu
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
#LOCKSCRIPT="i3lock-extra -m pixelize"
|
||||
FG_COLOR="#d7d7d7"
|
||||
BG_COLOR="#15325A"
|
||||
SF_COLOR="#3555d7"
|
||||
SB_COLOR="#6484c7"
|
||||
color="-bg $BG_COLOR -fg $FG_COLOR -hlfg $SF_COLOR -hlbg $SB_COLOR -bw 0"
|
||||
|
||||
# menu defined as an associative array
|
||||
typeset -A menu
|
||||
|
||||
# Menu with keys/commands
|
||||
menu=(
|
||||
[Shutdown]="systemctl poweroff"
|
||||
[Reboot]="systemctl reboot"
|
||||
[Hibernate]="systemctl hibernate"
|
||||
[Suspend]="systemctl suspend"
|
||||
[Halt]="systemctl halt"
|
||||
[Lock]="~/.i3/scripts/locker.sh"
|
||||
[Logout]="exit"
|
||||
[Cancel]="Cancel"
|
||||
)
|
||||
|
||||
# Menu entries that may trigger a confirmation message
|
||||
menu_confirm="Shutdown Reboot Hibernate Suspend Halt Logout"
|
||||
launcher="rofi -dmenu -hide-scrollbar -width 10"
|
||||
launcher_opt="-i -yoffset 23 -location 3 $color"
|
||||
selection=$(printf '%s\n' ${!menu[@]} | sort | eval '$launcher $launcher_opt -font "Hack-Regular 12" -lines 8')
|
||||
if [ $selection == "Cancel" ] || [ -z $selection ]; then
|
||||
exit 1
|
||||
else
|
||||
if [[ ${menu_confirm[*]} =~ $selection ]]; then
|
||||
confirm=$(printf 'Yes\nNo\n' | eval '$launcher $launcher_opt -l 2 -font "Hack-Regular 12"')
|
||||
if [[ $confirm == 'Yes' ]]; then
|
||||
i3-msg -q "exec ${menu[${selection}]}"
|
||||
fi
|
||||
else
|
||||
i3-msg -q "exec ${menu[${selection}]}"
|
||||
fi
|
||||
fi
|
||||
7
.config/i3/scripts/term_runner.sh
Executable file
7
.config/i3/scripts/term_runner.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
while getopts "d:" option; do
|
||||
case "${option}" in
|
||||
d)
|
||||
alacritty --working-directory ${OPTARG} & ;;
|
||||
esac
|
||||
done
|
||||
18
.config/i3/scripts/volume_set.sh
Executable file
18
.config/i3/scripts/volume_set.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
if [ "$1" == "up" ]
|
||||
then
|
||||
pulsemixer --change-volume +5
|
||||
TEXT="Volume: $(pulsemixer --get-volume | cut -d' ' -f 1 | sed 's/\(\[\|\]\)//g')"
|
||||
elif [ "$1" == "down" ]
|
||||
then
|
||||
pulsemixer --change-volume -5
|
||||
TEXT="Volume: $(pulsemixer --get-volume | cut -d' ' -f 1 | sed 's/\(\[\|\]\)//g')"
|
||||
elif [ "$1" == "mute" ]
|
||||
then
|
||||
pulsemixer --toggle-mute
|
||||
TEXT="Mute: $(pulsemixer --get-mute | cut -d' ' -f 1 | sed 's/\(\[\|\]\)//g')"
|
||||
else
|
||||
echo "usage volume_set.sh {up|down|mute}"
|
||||
fi
|
||||
|
||||
dunstify -r 33223 "Volume changed" "$TEXT"
|
||||
13
.config/i3/scripts/wan-or-not.sh
Executable file
13
.config/i3/scripts/wan-or-not.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/zsh
|
||||
#First arg is icon for WAN IP, Second argument is icon for local IP, third for offline
|
||||
wanip=$(dig +short myip.opendns.com @resolver1.opendns.com);
|
||||
if [[ $wanip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
|
||||
echo "<span foreground='#00CC33'>$1</span>:$wanip"
|
||||
else
|
||||
wanip=$(ip addr show dev wlan0 | grep "inet " | awk '{print $2}')
|
||||
if [[ $wanip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3} ]]; then
|
||||
echo "<span foreground='#3300CC'>$2</span>:$wanip"
|
||||
else
|
||||
echo "<span foreground='#CC0033'>$3</span>"
|
||||
fi
|
||||
fi
|
||||
2
.config/i3/scripts/workspace.sh
Executable file
2
.config/i3/scripts/workspace.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
i3-msg "append_layout $1" && bash $HOME/.i3/scripts/term_runner.sh -d "$2" -d "$2" -d "$2" -d "$HOME"
|
||||
@@ -1,17 +0,0 @@
|
||||
db_file "~/.config/mpd/database"
|
||||
log_file "~/.config/mpd/log"
|
||||
|
||||
# Optional
|
||||
music_directory "/media/Music"
|
||||
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"
|
||||
server "127.0.0.1"
|
||||
}
|
||||
|
||||
restore_paused "yes"
|
||||
1
.config/nvim/.gitignore
vendored
Executable file → Normal file
1
.config/nvim/.gitignore
vendored
Executable file → Normal file
@@ -1 +1,2 @@
|
||||
bundle/*
|
||||
doc/*
|
||||
|
||||
0
.config/nvim/.netrwhist
Executable file → Normal file
0
.config/nvim/.netrwhist
Executable file → Normal file
@@ -1,511 +0,0 @@
|
||||
*Colorizer.txt* A plugin to color colornames and codes
|
||||
|
||||
Author: Christian Brabandt <cb@256bit.org>
|
||||
Version: 0.11 Thu, 15 Jan 2015 21:49:17 +0100
|
||||
Copyright: (c) 2009-2013 by Christian Brabandt
|
||||
The VIM LICENSE applies to Colorizer.txt
|
||||
(see |copyright|) except use ColorizerPlugin instead of "Vim".
|
||||
NO WARRANTY, EXPRESS OR IMPLIED. USE AT-YOUR-OWN-RISK.
|
||||
|
||||
==============================================================================
|
||||
Contents *Colorizer*
|
||||
==============================================================================
|
||||
|
||||
1. Colorizer Manual.............................|Colorizer-manual|
|
||||
1.1 :ColorHighlight......................|:ColorHighlight|
|
||||
1.2 :ColorClear..........................|:ColorClear|
|
||||
1.3 :RGB2Term............................|:RGB2Term|
|
||||
1.4 :HSL2RGB.............................|:HSL2RGB|
|
||||
1.5 :Term2RGB............................|:Term2RGB|
|
||||
1.6 :ColorContrast.......................|:ColorContrast|
|
||||
1.7 :ColorSwapFgBg.......................|:ColorSwapFgBg|
|
||||
1.8 :ColorToggle.........................|:ColorToggle|
|
||||
2. Configuration................................|Colorizer-config|
|
||||
2.1 Automatic loading...................|Colorizer-auto|
|
||||
2.2 Automatically highlight filetypes...|Colorizer-hl-ft|
|
||||
2.3 Skip coloring comments..............|Colorizer-comments|
|
||||
2.4 Adjust the contrast.................|Colorizer-contrast|
|
||||
2.5 Highlight colornames................|Colorizer-hl-names|
|
||||
2.6 Use X11 colornames..................|Colorizer-names|
|
||||
2.7 Use syntax highlighting.............|Colorizer-syntax|
|
||||
2.8 Specify patterns to highlight.......|Colorizer-pattern|
|
||||
2.9 Colorizing Taskwarrior files........|Colorizer-taskwarrior-files|
|
||||
2.10 Colorizing vim syntax files.........|Colorizer-vim-files|
|
||||
2.11 Use custom colornames...............|Colorizer-custom-colornames|
|
||||
2.12 Colorizing :hi statements...........|Colorizer-vim-hi|
|
||||
3. Colorizer Mappings...........................|Colorizer-maps|
|
||||
4. Colorizer Tips...............................|Colorizer-tips|
|
||||
5. Colorizer Feedback...........................|Colorizer-feedback|
|
||||
6. Colorizer History............................|Colorizer-history|
|
||||
|
||||
==============================================================================
|
||||
1. Colorizer Manual *Colorizer-manual*
|
||||
==============================================================================
|
||||
|
||||
Functionality
|
||||
|
||||
This plugin is based on the css_color plugin by Nikolaus Hofer. The idea is to
|
||||
highlight color names and codes in the same color that they represent.
|
||||
|
||||
The plugin understands the W3C colors (used for CSS files for example), the
|
||||
color names from the X11 Window System and also codes in hex notation, like
|
||||
#FF0000 (which represents Red in the RGB color system). Additionally, it
|
||||
supports the CSS color specifications, e.g. rgb(RR,GG,BB) color representation
|
||||
in either absolute or percentage values and also the HVL color
|
||||
representation like hvl(H,V,L)
|
||||
|
||||
It works best in the gui version of Vim, but the plugin also supports 256 and
|
||||
88 color terminals and translates the colors to those supported by the
|
||||
terminal. 16 and 8 color terminals should work theoretically too, but have not
|
||||
been widely tested. Note that translating the colors to the terminal might
|
||||
impose a performance penalty, depending on the terminal type and the number of
|
||||
matches in the file.
|
||||
|
||||
This plugin defines the following commands:
|
||||
|
||||
*:ColorHighlight*
|
||||
:[range]ColorHighlight[!] [args]
|
||||
|
||||
Scan the lines given by [range] for color code names and highlight those. If
|
||||
[range] is omitted, the whole file will be scanned. If the ! is used, the
|
||||
plugin will redefine all highlighting groups. If ! is not used, it will
|
||||
skip patterns, that would take too long and make Vim unresponsive.
|
||||
|
||||
[args] can by any of "syntax" or "match". "syntax" means to convert the
|
||||
highlighting to syntax highlighting. This is useful, so a plugin like
|
||||
|2html.vim| can convert the colors correctly to HTML. The default is
|
||||
"match", which uses the |matchadd()| function. (Prepending "no" is
|
||||
supported and will disable that setting and use the opposite).
|
||||
|
||||
*:ColorClear*
|
||||
:ColorClear Turn off color highlighting.
|
||||
|
||||
*:RGB2Term*
|
||||
:RGB2Term <color> Translate the color code given as argument to
|
||||
the closest color that can be displayed in the
|
||||
terminal. The color must be given in the
|
||||
format #RRGGBB (the hex format of the colors red,
|
||||
green and blue (the '#' is optional), or
|
||||
alternatively like rgb(X,X,X)
|
||||
|
||||
Uses the number of colors your terminal is capable
|
||||
of (or 256 colors for gVim).
|
||||
|
||||
*:HSL2RGB*
|
||||
:HSL2RGB hsl(h,v,l) Translate the HVL color defined by the string
|
||||
'hsl(h,v%,l%)' into a color that the current
|
||||
terminal can display. Note that the color must be
|
||||
given in the format 'hsl(HH, V, L)' where HH
|
||||
defines the Hue as absolute value between 0 and
|
||||
255 and V and L represent a percentage for value
|
||||
and Lightness.
|
||||
|
||||
*:Term2RGB*
|
||||
:Term2RGB number Translate terminal color <number> to an RGB color
|
||||
(using the xterm 256 color cube).
|
||||
|
||||
*:ColorContrast*
|
||||
:ColorContrast Switch between all different color contrast
|
||||
settings (foreground colors).
|
||||
*:ColorSwapFgBg*
|
||||
:ColorSwapFgBg Switch between foreground and background colors.
|
||||
This will toggle in 3 ways. From Swapping
|
||||
foreground and background colors, to only
|
||||
highlighting the foreground color back to normal
|
||||
foreground background color.
|
||||
|
||||
*:ColorToggle*
|
||||
:ColorToggle Switch between highlighting colors and no
|
||||
highlighting.
|
||||
|
||||
==============================================================================
|
||||
2 Colorizer Configuration *Colorizer-config*
|
||||
==============================================================================
|
||||
|
||||
2.1 Automatic loading *Colorizer-auto*
|
||||
---------------------
|
||||
|
||||
The Colorizer plugin can be configured to automatically load when opening a
|
||||
new file. Note that this might slow down the loading process, especially on
|
||||
the terminal. To enable this, simply set the variable 'g:colorizer_auto_color'
|
||||
to 1, e.g. by defining it in your |.vimrc| >
|
||||
|
||||
:let g:colorizer_auto_color = 1
|
||||
<
|
||||
(Not recommended, see below at |Colorizer-hl-ft| for the preferred way)
|
||||
|
||||
2.2 Automatically highlight filetypes *Colorizer-hl-ft*
|
||||
-------------------------------------
|
||||
|
||||
If you want to have certain filetypes automatically highlighted, you can use
|
||||
the variable g:colorizer_auto_filetype, e.g. to enable highlighting for
|
||||
HTML and CSS files by default, add the following to your |.vimrc|: >
|
||||
|
||||
:let g:colorizer_auto_filetype='css,html'
|
||||
<
|
||||
After restarting Vim, the plugin will become active whenever the filetype is
|
||||
set to either html or css.
|
||||
|
||||
2.3 Skip coloring comments *Colorizer-comments*
|
||||
--------------------------
|
||||
|
||||
You can skip comments from being colored by setting the variable
|
||||
g:colorizer_skip_comments to 1: >
|
||||
|
||||
:let g:colorizer_skip_comments = 1
|
||||
<
|
||||
The plugin will skip all matches of color codes and names that appear inside
|
||||
comments (this only works when syntax highlighting is enabled |:syn-on|)
|
||||
|
||||
Note however, that if the same color is used inside comments and outside
|
||||
comments, it will also be highlighted inside the comments, because
|
||||
coloring is done matching only the color pattern and once this is done outside
|
||||
of comments, this will also match inside comments.
|
||||
|
||||
2.4 Adjust the contrast *Colorizer-contrast*
|
||||
-----------------------
|
||||
|
||||
Colorizer can be adjusted to blur the contrast between foreground and
|
||||
background color. For this, the variable 'g:colorizer_fgcontrast' can be used.
|
||||
It can be given any value between -1 and 2 with 2 being the default. Each
|
||||
smaller value will decrease the contrast a little bit, with -1 being special,
|
||||
as there is the foreground color equals the background color. Use
|
||||
|:ColorContrast| to cycle through the different values.
|
||||
|
||||
2.5 Highlight colornames *Colorizer-hl-names*
|
||||
------------------------
|
||||
|
||||
If for any reason you don't want the plugin to highlight colornames, you can
|
||||
prevent this by setting the g:colorizer_colornames variable to 0, e.g. put >
|
||||
|
||||
:let g:colorizer_colornames = 0
|
||||
<
|
||||
into your |.vimrc|
|
||||
|
||||
2.6 Use X11 colornames *Colorizer-names*
|
||||
----------------------
|
||||
|
||||
Colorizer can be configured to support all color names defined by the X11
|
||||
Window System. By default it only supports the colors defined by the W3C for
|
||||
the CSS specification. To use the X11 color names, set the variable
|
||||
'g:colorzer_x11_names' to 1, e,g. put in your |.vimrc| >
|
||||
|
||||
let g:colorizer_x11_names = 1
|
||||
<
|
||||
|
||||
2.7 Use syntax highlighting *Colorizer-syntax*
|
||||
---------------------------
|
||||
|
||||
The plugin by default uses the |matchadd()| functions for highlighting colors
|
||||
on the fly. Unfortunately, this is a problem, if you want to have the result
|
||||
successfully transformed to a HTML file using the |2html.vim| plugin. Therefore,
|
||||
the Colorizer plugin can also convert the highlighting to correct syntax
|
||||
highlighting. Use either the >
|
||||
|
||||
:ColorHighlight syntax
|
||||
<
|
||||
command (see |:ColorHighlight|) or set the variable 'g:colorizer_syntax' to 1,
|
||||
e.g. in your |.vimrc| put >
|
||||
|
||||
let g:colorizer_syntax = 1
|
||||
<
|
||||
|
||||
2.8 Specify pattern to highlight *Colorizer-pattern*
|
||||
--------------------------------
|
||||
|
||||
By default, Colorizer detects the following patterns and highlights them as
|
||||
hex colors (for better readability it is separated into 3 parts): >
|
||||
|
||||
# %(\x\{3}\|\x\{6}\) \%(\>\|[-_]\)\@=/'
|
||||
<
|
||||
|
||||
This means it always looks for a '#' followed by either a 3 or 6 hexadecimal
|
||||
digits denoting the RGB hex color codes, followed by either the word-boundary
|
||||
(|/\>|), a hyphen or a underscore. But only the first and middle part will be
|
||||
highlighted (i.e. the RGB color codes).
|
||||
|
||||
You can of course specify a different pattern for your needs by setting the
|
||||
g:colorizer_hex_pattern variable. e.g. to display '#RRGGBB' and have all of it
|
||||
highlighted, use >
|
||||
|
||||
let g:colorizer_hex_pattern = ['#', '\%(\x\{3}\|\x\{6}\)', '']
|
||||
|
||||
2.9 Colorizing Taskwarrior files *Colorizer-taskwarrior-files*
|
||||
--------------------------------
|
||||
|
||||
For taskwarrior files, this plugin can also highlight those colors. By
|
||||
default, this will only work, if the file name ends with '.theme'
|
||||
|
||||
For an example, see this website:
|
||||
http://taskwarrior.org/news/182
|
||||
|
||||
2.10 Colorizing vim syntax files *Colorizer-vim-files*
|
||||
--------------------------------
|
||||
|
||||
Colorizer also supports highlighting vim syntax files. For this to work, the
|
||||
'filetype' must be set to vim, then the plugin tries to identify the colors
|
||||
and highlight them.
|
||||
|
||||
2.11 Use custom colornames *Colorizer-custom-colornames*
|
||||
--------------------------
|
||||
|
||||
You can add separate colornames to be colored. For this to work, set the
|
||||
variable g:colorizer_custom_colors to your liking, e.g. like this: >
|
||||
|
||||
let g:colorizer_custom_colors = { 'blue': '#ff0000'}
|
||||
|
||||
Guess what, this will color the word blue in red.
|
||||
|
||||
2.12 Colorizing :highlight statements *Colorizer-vim-hi*
|
||||
-------------------------------------
|
||||
|
||||
Colorizer also supports highlighting |:hi| statements, that are used by vim
|
||||
colorschemes and syntax files as well as a dump of the |:hi| command
|
||||
To colorizer :hi statements, the 'filetype' must be set to vim, while for :hi
|
||||
dumps, the 'filetype' must be empty.
|
||||
|
||||
==============================================================================
|
||||
3. Colorizer Mappings *Colorizer-maps*
|
||||
==============================================================================
|
||||
|
||||
By default, the Colorizer plugin does not map any key, so that it won't
|
||||
pollute the global mapping namespace. If you want however to have the
|
||||
following default maps set up, set the global variable g:colorizer_auto_map
|
||||
in your |.vimrc| like this: >
|
||||
|
||||
:let g:colorizer_auto_map = 1
|
||||
|
||||
<
|
||||
This will set up the following key mappings (if they are not already taken):
|
||||
|
||||
Keys Name Function
|
||||
---- ---- --------
|
||||
<Leader>cC <Plug>Colorizer Toggle highlighting of Colors. In visual
|
||||
mode it only highlights the colors in the
|
||||
selected region (normal and visual mode).
|
||||
<Leader>cT <Plug>ColorContrast Cycle through contrast setting
|
||||
|:ColorContrast| (normal and visual mode)
|
||||
<Leader>cF <Plug>ColorFgBg Toggle foreground and background color
|
||||
|:ColorSwapFgBg|
|
||||
|
||||
It uses the prefix <leader>c to set all functionality up. By default, <Leader>
|
||||
is defined as '\' (|<Leader>|). Use the name provided in the second column to
|
||||
map the function to a different key.
|
||||
|
||||
==============================================================================
|
||||
4. Colorizer Tips *Colorizer-tips*
|
||||
==============================================================================
|
||||
|
||||
You can enable the plugin to be loaded for certain filetypes automatically.
|
||||
This makes sense for example for CSS files or HTML files. To do so, create the
|
||||
following autocommand in your |.vimrc| >
|
||||
|
||||
:au BufNewFile,BufRead *.css,*.html,*.htm :ColorHighlight!
|
||||
<
|
||||
This will automatically highlight all existing color codes and names if you
|
||||
edit either a HTML file or a CSS file. Note that this does not update the
|
||||
highlighting, after you have been changing the file.
|
||||
|
||||
The recommended way to do this is to use the g:colorizer_auto_filetype
|
||||
variable and set this to the desired filetypes. |Colorizer-hl-ft|
|
||||
|
||||
*Colorizer-slowdown*
|
||||
----------------
|
||||
Slow performance
|
||||
----------------
|
||||
Depending on your file, any of the highlighting functions might cause an
|
||||
performance decrease. This can be analyed, by setting the variable
|
||||
g:colorizer_debug to 1 in e.g. your |.vimrc| like this: >
|
||||
|
||||
:let g:colorizer_debug = 1
|
||||
<
|
||||
The next time, you call |:ColorHighlight|, the plugin will output runtime
|
||||
statistics, from which you can see, which function caused the slowdowns.
|
||||
Consider this output:
|
||||
|
||||
Colorstatistics at: 12:20 `
|
||||
Duration: 0.034110 `
|
||||
colornames: 0.030865s `
|
||||
hex: 0.000968s `
|
||||
hsla: 0.000350s `
|
||||
rgb: 0.000354s `
|
||||
rgba: 0.000491s `
|
||||
taskwarrior: 0.000020s `
|
||||
term: 0.000219s `
|
||||
term_conceal: 0.000105s `
|
||||
vimcolors: 0.000036s `
|
||||
vimhighl_dump: 0.000025s `
|
||||
vimhighlight: 0.000025s `
|
||||
|
||||
From this you can see, that the colorname highlighting caused the largest
|
||||
slowdown, it took 0.03 seconds to complete. This is expected, as the
|
||||
colornames pattern is long and contains many branches.
|
||||
|
||||
Functions with a value less then 100 have probably been skipped and were not
|
||||
being executed.
|
||||
|
||||
If you want to skip certain functions, you can set the variable
|
||||
g:colorizer_<name>_disable and then those functions won't be called anymore
|
||||
(e.g. do disable the colorname highlighting, put in your |.vimrc| this: >
|
||||
|
||||
let g:colorizer_colornames_disable = 1
|
||||
<
|
||||
If the slowdown is still noticeable, you might want to create
|
||||
a new issue at the plugins repository (|Colorizer-feedback|). You should
|
||||
provide a sample file, so that I will be able to reproduce the issue.
|
||||
|
||||
Note, this needs a Vim with the |+reltime| feature.
|
||||
==============================================================================
|
||||
5. Colorizer Feedback *Colorizer-feedback*
|
||||
==============================================================================
|
||||
|
||||
Feedback is always welcome. If you like the plugin, please rate it at the
|
||||
vim-page: http://www.vim.org/scripts/script.php?script_id=3963
|
||||
|
||||
You can also follow the development of the plugin at github:
|
||||
http://github.com/chrisbra/color_highlight
|
||||
|
||||
Bugs can also be reported there:
|
||||
https://github.com/chrisbra/color_highlight/issues
|
||||
|
||||
Alternatively, you can also report any bugs to the maintainer, mentioned in
|
||||
the third line of this document. Please don't hesitate to contact me, I
|
||||
won't bite ;)
|
||||
|
||||
If you like the plugin, write me an email (look in the third line for my mail
|
||||
address). And if you are really happy, vote for the plugin and consider
|
||||
looking at my Amazon whishlist: http://www.amazon.de/wishlist/2BKAHE8J7Z6UW
|
||||
|
||||
==============================================================================
|
||||
6. Colorizer History *Colorizer-history*
|
||||
==============================================================================
|
||||
|
||||
0.12 (unreleased) {{{1
|
||||
- TermConceal should also conceal [K
|
||||
- properly escape terminal colors, so that |Colorizer-syntax| works correctly
|
||||
- use matchaddpos() for highlighting ansi term colors (should speed up vim
|
||||
highlighting considerably)
|
||||
- only reset TermConceal syntax group (reported by audriusk in
|
||||
https://github.com/chrisbra/Colorizer/issues/41, thanks!)
|
||||
- correctly check for patch 7.4.083 (:keeppatterns modifier, reported by
|
||||
gbell12 in https://github.com/chrisbra/Colorizer/issues/42, thanks!)
|
||||
- disable BufLeave autocommand to disable colors
|
||||
- basic Neovim support (also should work with TrueColor in Terminal)
|
||||
- Make |:RGB2term| always init colortable, so that when resetting 't_Co'
|
||||
it will work correctly
|
||||
- Make it work with Vims Term Truecolor feature (patch 7.4.1770)
|
||||
- Make it work with neovim fixes https://github.com/chrisbra/Colorizer/issues/45
|
||||
and https://github.com/chrisbra/Colorizer/issues/46
|
||||
- Support css colors: #rrggbbaa format
|
||||
|
||||
0.11 Jan 15, 2015 {{{1
|
||||
- use |TextChanged| autocommand if possible
|
||||
- Support Ansi True Color support if possible
|
||||
- Hide ^[[K$ for terminal colors (reported by masukomi at
|
||||
https://github.com/chrisbra/Colorizer/issues/36, thanks!)
|
||||
- Do not expand() to expand shellvars (fixed by Daniel Hahler in
|
||||
https://github.com/chrisbra/Colorizer/issues/37, thanks!)
|
||||
- Document, how to analyze slowdown |Colorizer-slowdown|
|
||||
- |:ColorContrast| would error, if the plugin has not been initialized
|
||||
(reported by Daniel Hahler in
|
||||
https://github.com/chrisbra/Colorizer/issues/38, thanks!)
|
||||
- always define reltime variable (reported by mantislin in
|
||||
https://github.com/chrisbra/Colorizer/issues/39, thanks!)
|
||||
- Only call conceal function once for ansiterm colors
|
||||
- reduce calls to DoColor in autocommands (to only do, when something changed)
|
||||
|
||||
0.10 Mar 27, 2014 {{{1
|
||||
- Also highlight Ansi Term sequences
|
||||
- Match colornames using the "old" RE Engine, if Vim supports it.
|
||||
- Make |:RGB2Xterm| output the color name in its color
|
||||
- Rename |:RGB2Xterm| to |:RGB2Term|
|
||||
- Highlight Taskwarrior file
|
||||
- Code refactoring
|
||||
- Make |:ColorSwapFgBg| work as expected (did not always toggle reliably
|
||||
between all states)
|
||||
- Correctly parse Ansi Term colors
|
||||
- |:Term2RGB|
|
||||
- Highlight Vim color files correctly
|
||||
- merge colorhighlight plugin https://github.com/blueyed/colorhighlight.vim
|
||||
|
||||
0.9: Aug 14, 2013: {{{1
|
||||
- https://github.com/chrisbra/color_highlight/issues/15 (rgba highlighting
|
||||
didn't work for floating point value of alpha, reported by LiTuX.S, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/16 (rgb() pattern did
|
||||
match too much, reported by taecilla, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/19 (error on calling
|
||||
ColorWinEnter() command, reported by wedgwood, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/20 and
|
||||
https://github.com/chrisbra/color_highlight/issues/21
|
||||
(also color on split commands, reported by wedgwood and Andri Möll, Thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/22 (Make sure, patterns
|
||||
like white-space won't get colored, reported by Andri Möll, Thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/23 (ColorToggle got
|
||||
confused when several windows with highlighting exists, reported by Andri
|
||||
Möll, Thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/24 (turning off coloring
|
||||
should also remove the autocommands, reported by Andri Möll, Thanks!)
|
||||
|
||||
0.8: Dec 14, 2012 {{{1
|
||||
- https://github.com/chrisbra/color_highlight/issues/13 (colorizing should not
|
||||
stop at word-boundaries, reported by teschmitz, thanks!)
|
||||
- https://github.com/chrisbra/color_highlight/issues/14 (convert highlighting
|
||||
to syntax groups, so TOhtml works, reported by teschmitz, thanks!)
|
||||
|
||||
0.7: Jul 25, 2012 {{{1
|
||||
- Highlight rgb colors with whitespace after comma (reported by sergey-vlasov
|
||||
in https://github.com/chrisbra/color_highlight/issues/12, thanks!)
|
||||
- Save and restore the search register, so the plugin doesn't clobber it
|
||||
- check for 'ed' and 'gd' defaults
|
||||
|
||||
0.6: May 17, 2012 {{{1
|
||||
- Fix various issues with hsl coloring (reported by teschmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/9, thanks!)
|
||||
- Make it possible, to skip coloring comments (reported by teschmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/10, thanks!)
|
||||
- search highlighting should overrule color highlighting(reported by teschmitz
|
||||
in https://github.com/chrisbra/color_highlight/issues/11, thanks!)
|
||||
- updated documentation (suggested by teschmitz, thanks!)
|
||||
|
||||
0.5: Apr 03, 2012 {{{1
|
||||
- Fix issue 7 (reported by teschmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/7, thanks!)
|
||||
0.4: Mar, 23, 2012 {{{1
|
||||
- |:ColorSwapFgBg| (suggested by teschmitz, in
|
||||
https://github.com/chrisbra/color_highlight/issues/3, thanks!)
|
||||
- make automatic color loading work (reported by wedgwood in
|
||||
https://github.com/chrisbra/color_highlight/issues/6, thanks!)
|
||||
|Colorizer-auto| and |Colorizer-hl-ft|
|
||||
- more documentation updates
|
||||
- added Mappings (suggested by Ingo Karkat, thanks!) |Colorizer-maps|
|
||||
- prevent highlighting of color names (suggested by Tarlika Schmitz in
|
||||
https://github.com/chrisbra/color_highlight/issues/5, thanks!)
|
||||
|Colorizer-hl-names|
|
||||
- enable filetype specific autocommands, so that for certain filetypes
|
||||
colors are highlighted automatically |Colorizer-hl-ft|
|
||||
(suggested by Tarlika Schmitz, thanks!)
|
||||
|
||||
0.3: Mar 15, 2012 {{{1
|
||||
- Use the g:colorizer_fgcontrast variable to have lesser contrast between
|
||||
foreground and background colors (patch by Ingo Karkat, thanks!)
|
||||
- gvim did not color rgb(...) codes
|
||||
- did not correctly highlight 3 letter color codes (issue
|
||||
https://github.com/chrisbra/color_highlight/issues/1,
|
||||
reported by Taybin Rutkin, thanks!)
|
||||
- support autoloading (requested by Ingo Karkat, thanks!)
|
||||
- add |GLVS| support
|
||||
- |:ColorContrast| to interactively switch between contrast settings
|
||||
(suggested by Ingo Karkat, thanks!)
|
||||
0.2: Mar 02, 2012 {{{1
|
||||
|
||||
- Initial upload
|
||||
- development versions are available at the github repository
|
||||
- put plugin on a public repository
|
||||
(http://github.com/chrisbra/color_highlight)
|
||||
|
||||
0.1: Mar 02, 2012 {{{1
|
||||
- first internal version
|
||||
}}}
|
||||
==============================================================================
|
||||
Modeline:
|
||||
vim:tw=78:ts=8:ft=help:et:fdm=marker:fdl=0:norl
|
||||
@@ -1,29 +0,0 @@
|
||||
:ColorClear Colorizer.txt /*:ColorClear*
|
||||
:ColorContrast Colorizer.txt /*:ColorContrast*
|
||||
:ColorHighlight Colorizer.txt /*:ColorHighlight*
|
||||
:ColorSwapFgBg Colorizer.txt /*:ColorSwapFgBg*
|
||||
:ColorToggle Colorizer.txt /*:ColorToggle*
|
||||
:HSL2RGB Colorizer.txt /*:HSL2RGB*
|
||||
:RGB2Term Colorizer.txt /*:RGB2Term*
|
||||
:Term2RGB Colorizer.txt /*:Term2RGB*
|
||||
Colorizer Colorizer.txt /*Colorizer*
|
||||
Colorizer-auto Colorizer.txt /*Colorizer-auto*
|
||||
Colorizer-comments Colorizer.txt /*Colorizer-comments*
|
||||
Colorizer-config Colorizer.txt /*Colorizer-config*
|
||||
Colorizer-contrast Colorizer.txt /*Colorizer-contrast*
|
||||
Colorizer-custom-colornames Colorizer.txt /*Colorizer-custom-colornames*
|
||||
Colorizer-feedback Colorizer.txt /*Colorizer-feedback*
|
||||
Colorizer-history Colorizer.txt /*Colorizer-history*
|
||||
Colorizer-hl-ft Colorizer.txt /*Colorizer-hl-ft*
|
||||
Colorizer-hl-names Colorizer.txt /*Colorizer-hl-names*
|
||||
Colorizer-manual Colorizer.txt /*Colorizer-manual*
|
||||
Colorizer-maps Colorizer.txt /*Colorizer-maps*
|
||||
Colorizer-names Colorizer.txt /*Colorizer-names*
|
||||
Colorizer-pattern Colorizer.txt /*Colorizer-pattern*
|
||||
Colorizer-slowdown Colorizer.txt /*Colorizer-slowdown*
|
||||
Colorizer-syntax Colorizer.txt /*Colorizer-syntax*
|
||||
Colorizer-taskwarrior-files Colorizer.txt /*Colorizer-taskwarrior-files*
|
||||
Colorizer-tips Colorizer.txt /*Colorizer-tips*
|
||||
Colorizer-vim-files Colorizer.txt /*Colorizer-vim-files*
|
||||
Colorizer-vim-hi Colorizer.txt /*Colorizer-vim-hi*
|
||||
Colorizer.txt Colorizer.txt /*Colorizer.txt*
|
||||
0
.config/nvim/init.vim
Executable file → Normal file
0
.config/nvim/init.vim
Executable file → Normal file
0
.config/polybar/config
Executable file → Normal file
0
.config/polybar/config
Executable file → Normal file
1
.config/ranger/.gitignore
vendored
1
.config/ranger/.gitignore
vendored
@@ -1 +1,2 @@
|
||||
/history
|
||||
tagged
|
||||
|
||||
0
.config/ranger/bookmarks
Executable file → Normal file
0
.config/ranger/bookmarks
Executable file → Normal file
0
.config/ranger/commands.py
Executable file → Normal file
0
.config/ranger/commands.py
Executable file → Normal file
0
.config/ranger/devicons.py
Executable file → Normal file
0
.config/ranger/devicons.py
Executable file → Normal file
0
.config/ranger/rc.conf
Executable file → Normal file
0
.config/ranger/rc.conf
Executable file → Normal file
0
.config/ranger/rifle.conf
Executable file → Normal file
0
.config/ranger/rifle.conf
Executable file → Normal file
0
.config/ranger/scope.sh
Executable file → Normal file
0
.config/ranger/scope.sh
Executable file → Normal file
@@ -1,19 +0,0 @@
|
||||
/home/tristan/build/vim-smooth/colors
|
||||
a:/home/tristan/build/rineja/app/assets
|
||||
v:/home/tristan/build/rineja/app/views
|
||||
c:/home/tristan/build/rineja/app/controllers
|
||||
c:/home/tristan/build/rineja/config
|
||||
a:/home/tristan/build/rineja/app
|
||||
d:/home/tristan/build/rineja/db
|
||||
p:/home/tristan/build/rineja/public
|
||||
G:/home/tristan/build/rineja/Gemfile
|
||||
r:/home/tristan/build/rineja
|
||||
s:/home/tristan/build/shoppe
|
||||
d:/home/tristan/build/dotfiles
|
||||
b:/home/tristan/build
|
||||
+:/run/media/tristan/SAMSUNG/Games/PC/linux/Feist-TiNYiSO
|
||||
+:/run/media/tristan/SAMSUNG/Games/PC/linux/Infinifactory.Linux-ACTiVATED
|
||||
+:/run/media/tristan/SAMSUNG/Games/PC/linux/RimWorld914Linux
|
||||
+:/run/media/tristan/SAMSUNG/Games/PC/linux/Shadowrun Returns
|
||||
+:/run/media/tristan/SAMSUNG/Games/PC/linux/Shovel Knight Linux
|
||||
+:/run/media/tristan/SAMSUNG/Games/PC/linux/TIS-100 (GOG) (Linux)
|
||||
0
.config/systemd/user/background-rotate.service
Executable file → Normal file
0
.config/systemd/user/background-rotate.service
Executable file → Normal file
0
.config/systemd/user/background-rotate.timer
Executable file → Normal file
0
.config/systemd/user/background-rotate.timer
Executable file → Normal file
@@ -1,86 +0,0 @@
|
||||
[options]
|
||||
#allow_bold = true
|
||||
#audible_bell = false
|
||||
#clickable_url = true
|
||||
#dynamic_title = true
|
||||
font = xos4 Terminess Powerline 16
|
||||
#fullscreen = true
|
||||
#geometry = 640x480
|
||||
#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 both of these are unset, cursor falls back to the foreground color,
|
||||
# and cursor_foreground falls back to the background color.
|
||||
#cursor = #dcdccc
|
||||
#cursor_foreground = #dcdccc
|
||||
|
||||
#foreground = #dcdccc
|
||||
#foreground_bold = #ffffff
|
||||
background = #1d1f21
|
||||
|
||||
# 20% background transparency (requires a compositor)
|
||||
#background = rgba(63, 63, 63, 0.8)
|
||||
|
||||
# If unset, will reverse foreground and background
|
||||
#highlight = #2f2f2f
|
||||
|
||||
# Colors from color0 to color254 can be set
|
||||
color0 = #1d1f21
|
||||
color1 = #d73555
|
||||
color8 = #303030
|
||||
color9 = #c76484
|
||||
color2 = #35d755
|
||||
color10 = #64c784
|
||||
color3 = #d7d755
|
||||
color11 = #c7c784
|
||||
color4 = #3555d7
|
||||
color12 = #6484c7
|
||||
color5 = #d755d7
|
||||
color13 = #7355d7
|
||||
color6 = #55b7b7
|
||||
color14 = #84c7c7
|
||||
color7 = #b7b7b7
|
||||
color15 = #d7d7d7
|
||||
|
||||
[hints]
|
||||
#font = xos4 Terminus 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
|
||||
Reference in New Issue
Block a user