Added most of the new configurations

This commit is contained in:
lanxu 2019-10-30 20:41:58 +02:00
parent fd2f9d09ab
commit e9f6bddd2f
30 changed files with 3272 additions and 120 deletions

View File

@ -0,0 +1,9 @@
# menu = { shadow = false; };
dropdown_menu = { shadow = false; };
popup_menu = { shadow = false; };
utility = { shadow = false; };
opacity-rule = [
"95:class_g = 'kitty' && focused",
"80:class_g = 'kitty' && !focused"
];

View File

@ -41,7 +41,7 @@
# The transparency of the window. Range: [0; 100].
# This option will only work if a compositing window manager is
# present (e.g. xcompmgr, compiz, etc.).
transparency = 0
transparency = 5
# The height of the entire notification. If the height is smaller
# than the font height and padding combined, it will be raised
@ -54,7 +54,7 @@
separator_height = 2
# Padding between text and separator.
padding = 8
padding = 10
# Horizontal padding.
horizontal_padding = 8
@ -87,7 +87,7 @@
### Text ###
font = Monospace 8
font = Monospace 10
# The spacing between lines. If the height is smaller than the
# font height, it will get raised to the font height.
@ -181,7 +181,7 @@
### Misc/Advanced ###
# dmenu path.
dmenu = /usr/bin/dmenu -p dunst:
dmenu = /usr/bin/rofi -p dunst:
# Browser for opening urls in context menu.
browser = /usr/bin/firefox -new-tab
@ -276,23 +276,30 @@
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the "#" and following would be interpreted as a comment.
background = "#222222"
foreground = "#888888"
# background = "#222222"
# foreground = "#888888"
background = "#fdf6e3"
foreground = "#93a1a1"
frame_color = "#93a1a1"
timeout = 10
# Icon for notifications with low urgency, uncomment to enable
#icon = /path/to/icon
[urgency_normal]
background = "#285577"
foreground = "#ffffff"
background = "#fdf6e3"
foreground = "#002b36"
frame_color = "#002b36"
timeout = 10
# Icon for notifications with normal urgency, uncomment to enable
#icon = /path/to/icon
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"
#background = "#900000"
#foreground = "#ffffff"
#frame_color = "#ff0000"
background = "#dc322f"
foreground = "#eee8d5"
frame_color = "#cb4b16"
timeout = 0
# Icon for notifications with critical urgency, uncomment to enable
#icon = /path/to/icon

View File

@ -0,0 +1,112 @@
<fontconfig>
<match target="font">
<!-- If the requested font is Bitstream Vera Serif -->
<test name="family" compare="eq">
<string>Bitstream Vera Serif</string>
</test>
<!-- Replace the entire match list with Bitstream Vera Serif alone -->
<edit name="family" mode="assign_replace">
<string>Bitstream Vera Serif</string>
</edit>
<!-- Assign the serif family -->
<edit name="family" mode="append_last">
<string>serif</string>
</edit>
</match>
<match>
<!-- If the requested font is serif -->
<test qual="any" name="family">
<string>serif</string>
</test>
<!-- Make Bitstream Vera Serif the first result -->
<edit name="family" mode="prepend_first">
<string>Bitstream Vera Serif</string>
</edit>
<!-- Followed by Noto Color Emoji -->
<edit name="family" mode="prepend_first">
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="font">
<!-- If the requested font is Bitstream Vera Sans -->
<test name="family" compare="eq">
<string>Bitstream Vera Sans</string>
</test>
<!-- Replace the entire match list with Bitstream Vera Sans alone -->
<edit name="family" mode="assign_replace">
<string>Bitstream Vera Sans</string>
</edit>
<!-- Assign the sans-serif family -->
<edit name="family" mode="append_last">
<string>sans-serif</string>
</edit>
</match>
<match target="pattern">
<!-- If the requested font is sans-serif -->
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<!-- Make Bitstream Vera Sans the first result -->
<edit name="family" mode="prepend_first">
<string>Bitstream Vera Sans</string>
</edit>
<!-- Followed by Noto Color Emoji -->
<edit name="family" mode="prepend_first">
<string>Noto Color Emoji</string>
</edit>
</match>
<match target="font">
<!-- If the requested font is Bitstream Vera Sans Mono -->
<test name="family" compare="eq">
<string>Bitstream Vera Sans Mono</string>
</test>
<!-- Replace the entire match list with Bitstream Vera Sans Mono alone -->
<edit name="family" mode="assign_replace">
<string>Bitstream Vera Sans Mono</string>
</edit>
<!-- Assign the monospace family last -->
<edit name="family" mode="append_last">
<string>monospace</string>
</edit>
</match>
<match target="pattern">
<!-- If the requested font is monospace -->
<test qual="any" name="family">
<string>monospace</string>
</test>
<!--
Make Bitstream Vera Sans Mono the first result
Note: If you want a different monospace font, this is where you change it.
-->
<edit name="family" mode="prepend_first">
<string>Bitstream Vera Sans Mono</string>
</edit>
<!-- Followed by Noto Color Emoji -->
<edit name="family" mode="prepend_first">
<string>Noto Color Emoji</string>
</edit>
</match>
<!-- Add emoji generic family -->
<alias binding="strong">
<family>emoji</family>
<default><family>Noto Color Emoji</family></default>
</alias>
<!-- Alias requests for the other emoji fonts -->
<alias binding="strong">
<family>Apple Color Emoji</family>
<prefer><family>Noto Color Emoji</family></prefer>
<default><family>sans-serif</family></default>
</alias>
<alias binding="strong">
<family>Segoe UI Emoji</family>
<prefer><family>Noto Color Emoji</family></prefer>
<default><family>sans-serif</family></default>
</alias>
</fontconfig>

View File

@ -0,0 +1 @@
/etc/fonts/conf.avail/10-autohint.conf

View File

@ -0,0 +1 @@
/etc/fonts/conf.avail/10-sub-pixel-rgb.conf

View File

@ -0,0 +1 @@
/etc/fonts/conf.avail/11-lcdfilter-default.conf

View File

@ -0,0 +1 @@
/etc/fonts/conf.avail/30-win32-aliases.conf

View File

@ -0,0 +1 @@
/etc/fonts/conf.avail/70-no-bitmaps.conf

View File

@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit mode="assign" name="autohint"><bool>true</bool></edit>
<edit mode="assign" name="hinting"><bool>true</bool></edit>
<edit mode="assign" name="lcdfilter"><const>lcddefault</const></edit>
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
<!-- symbols do not support antialias -->
<!--<edit mode="assign" name="antialias"><bool>true</bool></edit>-->
<edit mode="assign" name="rgba"><const>rgb</const></edit>
</match>
<match target="font">
<test name="pixelsize" qual="any" compare="more"><double>15</double></test>
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
<edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
</match>
<match target="font">
<test name="pixelsize" qual="any" compare="more"><double>12</double></test>
<test name="weight" compare="more"><const>medium</const></test>
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
<edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
</match>
<match target="font">
<test name="slant" compare="not_eq"><double>0</double></test>
<edit mode="assign" name="hintstyle"><const>hintnone</const></edit>
<edit mode="assign" name="lcdfilter"><const>lcdlight</const></edit>
</match>
</fontconfig>

View File

@ -0,0 +1,49 @@
{
"extractor": {
"base-directory": "~/Lataukset/gallery-dl/",
"archive": "~/Lataukset/gallery-dl/archive.sqlite3",
"exhentai":
{
"filename": "{num:>04}_{name}.{extension}",
"directory": ["{category!c}", "{title}"],
"postprocessors": [
{
"name": "zip",
"compression": "store",
"extension": "cbz"
}
],
"wait-min": 1.0,
"wait-max": 5.0
}
},
"downloader": {
"part-directory": "/tmp/.download/",
"rate": "1M",
"retries": 3,
"timeout": 8.5
},
"output":
{
"mode": "terminal",
"log": {
"format": "{name}: {message}",
"level": "info"
},
"logfile": {
"path": "~/Lataukset/gallery-dl/log.txt",
"mode": "w",
"level": "debug"
},
"unsupportedfile": {
"path": "~/Lataukset/gallery-dl/unsupported.txt",
"mode": "a",
"format": "{asctime} {message}",
"format-date": "%Y-%m-%d-%H-%M-%S"
}
},
"cache": {
"file": "~/Lataukset/gallery-dl/cache.sqlite3"
}
}

View File

@ -11,9 +11,10 @@
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:DejaVu Sans Mono 9
font pango:DejaVu Sans Mono 11
default_border pixel 1
for_window [class=".*"] border pixel 0
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
@ -29,24 +30,37 @@ default_border pixel 1
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
#exec --no-startup-id "dunst" # in case multiple daemons are installed
exec --no-startup-id "nm-applet"
exec --no-startup-id "pasystray"
exec --no-startup-id "blueman-applet"
exec --no-startup-id "nm-applet"
exec --no-startup-id "nextcloud --background"
exec --no-startup-id "udiskie --tray --notify --automount"
exec --no-startup-id "mpd /home/lanxu/.config/mpd/mpd.conf"
exec --no-startup-id "xscreensaver -no-splash"
exec --no-startup-id "nitrogen --restore"
exec --no-startup-id "./Scripts/xscreensaverstopper.sh"
# Use pactl to adjust volume in PulseAudio.
#exec --no-startup-id "nm-applet"
#exec --no-startup-id "pasystray"
#exec --no-startup-id "blueman-applet"
#exec --no-startup-id "udiskie --tray --notify --automount"
# Services
exec --no-startup-id "mpd /home/lanxu/.config/mpd/mpd.conf" # Music Player Daemon
exec --no-startup-id "xscreensaver -no-splash" # Screensaver
exec --no-startup-id "./Scripts/xscreensaverstopper.sh" # Screensaver inhibitor
exec --no-startup-id "compton -b" # Compositor
exec --no-startup-id "nitrogen --restore" # Wallpaper
# Applications
exec --no-startup-id "nextcloud --background"
exec --no-startup-id "telegram-desktop"
exec --no-startup-id "cantata"
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
bindsym XF86AudioStop exec --no-startup-id mpc stop
bindsym XF86AudioPlay exec --no-startup-id mpc play
bindsym XF86AudioPause exec --no-startup-id mpc pause
bindsym XF86AudioNext exec --no-startup-id mpc next
bindsym XF86AudioPrev exec --no-startup-id mpc prev
# Print screen
bindsym Print exec --no-startup-id flameshot gui
# use these keys for focus, movement, and resize directions when reaching for
# the arrows is not convenient
set $up l
@ -64,7 +78,7 @@ bindsym Mod4+Return exec i3-sensible-terminal
bindsym Mod4+Shift+q kill
# start dmenu (a program launcher)
bindsym Mod4+d exec --no-startup-id "rofi -modi power:'/home/lanxu/.config/rofi/scripts/powermenu.sh',combi -combi-modi 'window,power,run,ssh' -show combi"
bindsym Mod4+d exec --no-startup-id "rofi -theme Arc -modi power:'/home/lanxu/.config/rofi/scripts/powermenu.sh',combi -combi-modi 'window,power,run,ssh' -show combi"
bindsym Mod4+F12 exec --no-startup-id "xscreensaver-command -lock"
# 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
@ -135,7 +149,7 @@ set $ws2 "2:irc"
set $ws3 "3:net"
set $ws4 "4:gfx"
set $ws5 "5:steam"
set $ws6 "6"
set $ws6 "6:lutris"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
@ -174,24 +188,24 @@ bindsym Mod4+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcu
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
# Pressing left will shrink the windows width.
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
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
# same bindings, but for the arrow keys
# 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 Mod4+r
# back to normal: Enter or Escape or Mod4+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym Mod4+r mode "default"
@ -212,58 +226,69 @@ bindsym Mod4+o move workspace to output left
#######################################################################
#exec i3-config-wizard
for_window [class="Arandr"] floating enable
for_window [class="cantata"] floating enable
for_window [class="Steam"] floating enable
for_window [class="cantata"] floating enable, move scratchpad
for_window [class="TelegramDesktop"] floating enable, move scratchpad
for_window [class="itch"] floating enable
for_window [class="Wine"] floating enable
for_window [class="mpv"] floating enable
# for_window [class="Wine"] floating enable
for_window [class="mpv"] floating enabler, move position center
for_window [class="vlc"] floating enable
for_window [class="Sxiv"] floating enable
for_window [class="Steam"] floating enable, move container to workspace 5:Steam
for_window [class="Steam"] move container to workspace $ws5
for_window [title="Steam"] move container to workspace $ws5
for_window [title="Friends List"] move container to workspace $ws5, resize set width 400px
for_window [class="Lutris"] move container to workspace $ws6
for_window [class="Gimp"] move container to workspace $ws4
for_window [class="Blender"] move container to workspace $ws4
for_window [class="firefox"] move container to workspace $ws3
mouse_warping none
## Base16 Default Dark
# Author: Chris Kempson (http://chriskempson.com)
# gaps
smart_borders on
smart_gaps on
gaps outer 0
gaps inner 10
## Base16 Solarized Light
# Author: Ethan Schoonover (modified by aramisgithub)
#
# You can use these variables anywhere in the i3 configuration file.
set $base00 #181818
set $base01 #282828
set $base02 #383838
set $base03 #585858
set $base04 #b8b8b8
set $base05 #d8d8d8
set $base06 #e8e8e8
set $base07 #f8f8f8
set $base08 #ab4642
set $base09 #dc9656
set $base0A #f7ca88
set $base0B #a1b56c
set $base0C #86c1b9
set $base0D #7cafc2
set $base0E #ba8baf
set $base0F #a16946
set $base00 #fdf6e3
set $base01 #eee8d5
set $base02 #93a1a1
set $base03 #839496
set $base04 #657b83
set $base05 #586e75
set $base06 #073642
set $base07 #002b36
set $base08 #dc322f
set $base09 #cb4b16
set $base0A #b58900
set $base0B #859900
set $base0C #2aa198
set $base0D #268bd2
set $base0E #6c71c4
set $base0F #d33682
# Basic bar configuration using the Base16 variables.
bar {
font pango: DejaVu Sans Mono 9
font pango: DejaVu Sans Mono Bold 11
mode dock
status_command i3blocks
status_command py3status
position top
i3bar_command i3bar -t
tray_output DVI-D-0
tray_output none
separator_symbol ❰
colors {
background $base00
separator $base01
separator $base03
statusline $base04
# State Border BG Text
focused_workspace $base05 $base0D $base00
active_workspace $base05 $base03 $base05
active_workspace $base05 $base03 $base00
inactive_workspace $base03 $base01 $base05
urgent_workspace $base08 $base08 $base00
binding_mode $base00 $base0A $base00
@ -278,8 +303,3 @@ client.unfocused $base01 $base00 $base05 $base01 $base01
client.urgent $base08 $base08 $base00 $base08 $base08
client.placeholder $base00 $base00 $base05 $base00 $base00
client.background $base07
# Gaps
smart_borders on
#gaps outer 0
#gaps inner 10

47
.config/i3/i3status.conf Normal file
View File

@ -0,0 +1,47 @@
general {
# These will be used if not supplied by a module
# Solarized
color = '#073642'
color_good = '#859900'
color_degraded = '#b58900'
color_bad = '#dc322f'
}
py3status {
align = 'center'
markup = 'pango'
min_width = 50
separator = True
separator_block_width = 20
# border = '#4c7899'
border = '#073642'
border_bottom = 0
border_left = 0
border_right = 0
border_top = 0
}
time {
format = "%Y-%m-%d %H:%M "
}
mpd_status {
format = "{name} [[[{artist} - ]{title}]|[{file}]]"
}
volume_status {
command = "pactl"
}
weather_owm {
api_key = "4e3b7bbd3da07052c4fed6d342e48707"
city = "Tampere"
unit_temperature = "C"
format = "{city} {icon} {temperature}"
}
order += "dpms"
order += "volume_status"
order += "sysdata"
order += "gpu_temp"
order += "weather_owm"
order += "mpd_status"
order += "time"

View File

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
"""
This module produces GPU temperature
"""
import sys
sys.path.insert(1, '/home/lanxu/Scripts/')
from gputemp import get_temperature
class Py3status:
format = 'GPU: {temp}'
thresholds = [
(0, "good"),
(45, "degraded"),
(60, "bad")
]
def gpu_temp(self):
temp = float(get_temperature())
full_text = self.py3.safe_format(self.format, { 'temp': temp})
color = self.py3.threshold_get_color(temp)
return {
'full_text': full_text,
'color': color,
'cached_until': self.py3.time_in(15)
}

50
.config/kitty/kitty.conf Normal file
View File

@ -0,0 +1,50 @@
font_family Fira Mono Medium
bold_font Fira Mono Bold
italic_font Fira Mono Italic
bold_italic_font auto
font_size 11.0
window_padding_width 10.0
window_padding_height 10.0
# Base16 Solarized Light - kitty color config
# Scheme by Ethan Schoonover (modified by aramisgithub)
background #fdf6e3
foreground #586e75
selection_background #586e75
selection_foreground #fdf6e3
url_color #657b83
cursor #586e75
active_border_color #839496
inactive_border_color #eee8d5
active_tab_background #fdf6e3
active_tab_foreground #586e75
inactive_tab_background #eee8d5
inactive_tab_foreground #657b83
# normal
color0 #fdf6e3
color1 #dc322f
color2 #859900
color3 #b58900
color4 #268bd2
color5 #6c71c4
color6 #2aa198
color7 #586e75
# bright
color8 #839496
color9 #dc322f
color10 #859900
color11 #b58900
color12 #268bd2
color13 #6c71c4
color14 #2aa198
color15 #586e75
# extended base16 colors
color16 #cb4b16
color17 #d33682
color18 #eee8d5
color19 #93a1a1
color20 #657b83
color21 #073642

32
.config/mimeapps.list Normal file
View File

@ -0,0 +1,32 @@
[Default Applications]
application/vnd.comicbook+rar=mcomix.desktop
application/vnd.comicbook+zip=mcomix.desktop
application/vnd.rar=xarchiver.desktop
application/x-cbr=mcomix.desktop
application/x-cbz=mcomix.desktop
application/zip=xarchiver.desktop
application/epub+zip=mcomix.desktop;
application/octet-stream=gvim.desktop;
application/pdf=org.pwmt.zathura-pdf-mupdf.desktop;
application/pgp-signature=gvim.desktop;
application/vnd.ms-publisher=gvim.desktop;
application/vnd.rar=mcomix.desktop;xarchiver.desktop;
application/x-alz=xarchiver.desktop;
image/gif=sxiv_browser.desktop
image/jpeg=sxiv_browser.desktop
image/png=sxiv_browser.desktop
image/svg+xml=inkscape.desktop
inode/directory=ranger_terminal.desktop
video/mp4=mpv.desktop
video/quicktime=mpv.desktop
video/x-msvideo=mpv.desktop
video/x-flv=mpv.desktop
video/x-matroska=mpv.desktop
text/plain=gvim.desktop
x-scheme-handler/itchio=io.itch.itch.desktop
x-terminal-emulator=urxvt.desktop
x-scheme-handler/discord-378483863044882443=discord-378483863044882443.desktop
x-scheme-handler/http=firefox.desktop
[Added Associations]
application/x-blender=blender.desktop;

View File

@ -0,0 +1,9 @@
[xin_0]
file=/home/lanxu/.config/i3/background.png
mode=2
bgcolor=#000000
[xin_1]
file=/home/lanxu/.config/i3/background.png
mode=2
bgcolor=#000000

View File

@ -0,0 +1,12 @@
[geometry]
posx=616
posy=19
sizex=638
sizey=1059
[nitrogen]
view=icon
recurse=true
sort=alpha
icon_caps=false
dirs=

View File

@ -68,7 +68,7 @@ set vcs_backend_bzr disabled
set vcs_backend_svn disabled
# Use one of the supported image preview protocols
set preview_images true
set preview_images false
# Set the preview image method. Supported methods:
#
@ -106,20 +106,12 @@ set preview_images true
# while slower, this allows remote previews,
# for example during an ssh session.
# Tmux is unsupported.
#
# * ueberzug:
# Preview images in full color with the external command "ueberzug".
# Images are shown by using a child window.
# Only for users who run X11 in GNU/Linux.
set preview_images_method ueberzug
set preview_images_method kitty
# Delay in seconds before displaying an image with the w3m method.
# Increase it in case of experiencing display corruption.
set w3m_delay 0.02
# Manually adjust the w3mimg offset when using a terminal which needs this
set w3m_offset 0
# Default iTerm2 font size (see: preview_images_method: iterm2)
set iterm2_font_width 8
set iterm2_font_height 11
@ -298,9 +290,6 @@ set global_inode_type_filter
# should be 'false' during start-up, but you can toggle it by pressing F.
set freeze_files false
# Print file sizes in bytes instead of the default human-readable format.
set size_in_bytes false
# ===================================================================
# == Local Options
# ===================================================================
@ -348,8 +337,6 @@ map <esc> change_mode normal
map ~ set viewmode!
map i display_file
map <A-j> scroll_preview 1
map <A-k> scroll_preview -1
map ? help
map W display_log
map w taskview_open
@ -371,10 +358,8 @@ map <C-p> chain console; eval fm.ui.console.history_move(-1)
map Mf linemode filename
map Mi linemode fileinfo
map Mm linemode mtime
map Mh linemode humanreadablemtime
map Mp linemode permissions
map Ms linemode sizemtime
map MH linemode sizehumanreadablemtime
map Mt linemode metatitle
# Tagging / Marking
@ -478,9 +463,6 @@ map pl paste_symlink relative=False
map pL paste_symlink relative=True
map phl paste_hardlink
map pht paste_hardlinked_subtree
map pd console paste dest=
map p`<any> paste dest=%any_path
map p'<any> paste dest=%any_path
map dD console delete

View File

@ -253,8 +253,8 @@ handle_mime() {
# Image
image/*)
# Preview as text conversion
# img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
exiftool "${FILE_PATH}" && exit 5
img2txt --gamma=0.6 --width="${PV_WIDTH}" -- "${FILE_PATH}" && exit 4
#exiftool "${FILE_PATH}" && exit 5
exit 1;;
# Video and audio

View File

@ -0,0 +1,9 @@
set pages-per-row 2
set page-cache-size 1
set adjust-open "best-fit"
set render-loading "false"
set selection-clipboard clipboard
unmap f
map f toggle_fullscreen
map [fullscreen] f toggle_fullscreen

View File

@ -1,13 +1,8 @@
# do not sync lain
lain/
# vim
.tmp
.vim
# ranger
ranger/bookmarks
ranger/history
ranger/tagged
i3blocks
.pyc
.vim/plugged
.old
.bak
.config/i3blocks
.config/awesome/lain
.config/ranger/bookmarks
.vim/view/

192
.vim/.ycm_extra_conf.py Normal file
View File

@ -0,0 +1,192 @@
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
# of the public at large and to the detriment of our heirs and
# successors. We intend this dedication to be an overt act of
# relinquishment in perpetuity of all present and future rights to this
# software under copyright law.
#
# 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 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.
#
# For more information, please refer to <http://unlicense.org/>
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
'-Wall',
'-Wextra',
'-Werror',
#'-Wc++98-compat',
'-Wno-long-long',
'-Wno-variadic-macros',
'-fexceptions',
'-DNDEBUG',
# You 100% do NOT need -DUSE_CLANG_COMPLETER in your flags; only the YCM
# source code needs it.
'-DUSE_CLANG_COMPLETER',
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
# language to use when compiling headers. So it will guess. Badly. So C++
# headers will be compiled as C headers. You don't want that so ALWAYS specify
# a "-std=<something>".
# For a C project, you would set this to something like 'c99' instead of
# 'c++11'.
'-std=c++11',
# ...and the same thing goes for the magic -x option which specifies the
# language that the files to be compiled are written in. This is mostly
# relevant for c++ headers.
# For a C project, you would set this to 'c' instead of 'c++'.
'-x',
'c++',
'-isystem',
'../BoostParts',
'-isystem',
# This path will only work on OS X, but extra paths that don't exist are not
# harmful
'/System/Library/Frameworks/Python.framework/Headers',
'-isystem',
'../llvm/include',
'-isystem',
'../llvm/tools/clang/include',
'-I',
'.',
'-I',
'./ClangCompleter',
'-isystem',
'./tests/gmock/gtest',
'-isystem',
'./tests/gmock/gtest/include',
'-isystem',
'./tests/gmock',
'-isystem',
'./tests/gmock/include',
'-isystem',
'/usr/include',
'-isystem',
'/usr/local/include',
'-isystem',
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1',
'-isystem',
'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include',
]
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
#
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''
if os.path.exists( compilation_database_folder ):
database = ycm_core.CompilationDatabase( compilation_database_folder )
else:
database = None
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ]
def DirectoryOfThisScript():
return os.path.dirname( os.path.abspath( __file__ ) )
def MakeRelativePathsInFlagsAbsolute( flags, working_directory ):
if not working_directory:
return list( flags )
new_flags = []
make_next_absolute = False
path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
for flag in flags:
new_flag = flag
if make_next_absolute:
make_next_absolute = False
if not flag.startswith( '/' ):
new_flag = os.path.join( working_directory, flag )
for path_flag in path_flags:
if flag == path_flag:
make_next_absolute = True
break
if flag.startswith( path_flag ):
path = flag[ len( path_flag ): ]
new_flag = path_flag + os.path.join( working_directory, path )
break
if new_flag:
new_flags.append( new_flag )
return new_flags
def IsHeaderFile( filename ):
extension = os.path.splitext( filename )[ 1 ]
return extension in [ '.h', '.hxx', '.hpp', '.hh' ]
def GetCompilationInfoForFile( filename ):
# The compilation_commands.json file generated by CMake does not have entries
# for header files. So we do our best by asking the db for flags for a
# corresponding source file, if any. If one exists, the flags for that file
# should be good enough.
if IsHeaderFile( filename ):
basename = os.path.splitext( filename )[ 0 ]
for extension in SOURCE_EXTENSIONS:
replacement_file = basename + extension
if os.path.exists( replacement_file ):
compilation_info = database.GetCompilationInfoForFile(
replacement_file )
if compilation_info.compiler_flags_:
return compilation_info
return None
return database.GetCompilationInfoForFile( filename )
def FlagsForFile( filename, **kwargs ):
if database:
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
# python list, but a "list-like" StringVec object
compilation_info = GetCompilationInfoForFile( filename )
if not compilation_info:
return None
final_flags = MakeRelativePathsInFlagsAbsolute(
compilation_info.compiler_flags_,
compilation_info.compiler_working_dir_ )
# NOTE: This is just for YouCompleteMe; it's highly likely that your project
# does NOT need to remove the stdlib flag. DO NOT USE THIS IN YOUR
# ycm_extra_conf IF YOU'RE NOT 100% SURE YOU NEED IT.
try:
final_flags.remove( '-stdlib=libc++' )
except ValueError:
pass
else:
relative_to = DirectoryOfThisScript()
final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
return {
'flags': final_flags,
'do_cache': True
}

2522
.vim/autoload/plug.vim Normal file

File diff suppressed because it is too large Load Diff

8
.vimrc
View File

@ -52,11 +52,11 @@ call plug#end()
filetype plugin indent on
" Magical color setup
set t_Co=256
set background=dark
syntax on
set t_Co=256
set background=light
let base16colorspace=256
colorscheme base16-default-dark
colorscheme base16-solarized-light
" Other
set encoding=utf-8
@ -83,7 +83,7 @@ if has("gui_running")
set guioptions-=T " remove toolbar
set guioptions-=r " remove right-hand scroll bar
set guioptions-=L " remove left-hand scroll bar
set guifont=Fura\ Code\ Nerd\ Font\ 10
set guifont=Fura\ Code\ Nerd\ Font\ 11
set guiheadroom=0
endif

View File

@ -58,7 +58,8 @@ export PATH="${HOME}/.cargo/bin:$PATH"
export CAFFE_DIR="${HOME}/Koodit/github/caffe/build/install"
# Terminal
export TERMINAL=alacritty
export TERMINAL=kitty
#export TERMINAL=alacritty
export TERMCMD=$TERMINAL
# Start X on tty1 automatically
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then

4
.zshrc
View File

@ -54,9 +54,11 @@ alias steamgamesdir='cd ~/.local/share/Steam/SteamApps/common'
alias emsdksetup='source $EMSDK/emsdk_env.sh'
alias runwinesteam="MESA_GL_VERSION_OVERRIDE=3.3COMPAT PULSE_LATENCY_MSEC=60 run-desktop.py ~/.local/share/applications/wine/Programs/Steam/Steam.desktop"
alias rbackup="restic -r rclone:hubic:ChimeraLinux"
alias bat="bat --theme base16"
# https://github.com/chriskempson/base16-shell
# git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shell
source $HOME/.config/base16-shell/scripts/base16-default-dark.sh
#source $HOME/.config/base16-shell/scripts/base16-default-dark.sh
source $HOME/.config/base16-shell/scripts/base16-solarized-light.sh
# Emscripten
#source /home/lanxu/Koodit/github/emsdk/emsdk_env.sh

7
backup/backup.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
while read line
do
echo $line
restic -r rclone:hubic:ChimeraLinux backup $line --exclude-file restic-exclude.txt --password-file /home/lanxu/restic-pass.txt
done < restic-include.txt

23
backup/restic-exclude.txt Normal file
View File

@ -0,0 +1,23 @@
*.DS_Store
*.swp
*.pyc
.Trash
.Xauthority
.bash_sessions
.cache
**/.tmp
**/temp/
**/tmp/
# Linux
*.part
.config/itch
.config/itch/*
.steam/*
*.tmp
*.bak
*.a
*.o
node_modules/*
*.cache
*.local/share/Trash

View File

@ -0,0 +1,6 @@
/home/lanxu/Asiakirjat/
/home/lanxu/Documents/
/home/lanxu/Kuvat/
/home/lanxu/Koodit/
/home/lanxu/Musiikki/
/home/lanxu/.config/

View File

@ -1,3 +1,4 @@
#!/bin/sh
# Vim
mkdir .vim
curl -fLo .vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim