Restore backup into new machine
This commit is contained in:
parent
9932d0931a
commit
40b235856d
|
@ -0,0 +1,140 @@
|
|||
# -*- 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=terminus:pixelsize=28
|
||||
# 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
|
||||
# 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=10x7 center # optionally append 'center'
|
||||
# resize-delay-ms=100
|
||||
|
||||
# notify=notify-send -a foot -i foot ${title} ${body}
|
||||
# url-launch=xdg-open ${url}
|
||||
|
||||
# bold-text-in-bright=no
|
||||
# bell=none
|
||||
# word-delimiters=,│`|:"'()[]{}<>
|
||||
# jump-label-letters=sadfjklewcmpgh
|
||||
# selection-target=primary
|
||||
# workers=<number of logical CPUs>
|
||||
# osc8-underline=url-mode
|
||||
|
||||
[scrollback]
|
||||
# lines=1000
|
||||
# multiplier=3.0
|
||||
# indicator-position=relative
|
||||
# indicator-format=
|
||||
|
||||
[cursor]
|
||||
# style=block
|
||||
# color=111111 dcdccc
|
||||
# blink=no
|
||||
|
||||
[mouse]
|
||||
# hide-when-typing=no
|
||||
# alternate-scroll-mode=yes
|
||||
|
||||
[colors]
|
||||
alpha=1.0
|
||||
foreground=ffffff
|
||||
background=111217
|
||||
regular0=171717 # black
|
||||
regular1=ea4458 # red
|
||||
regular2=d3e947 # green
|
||||
regular3=fbde47 # yellow
|
||||
regular4=5454b4 # blue
|
||||
regular5=a54780 # magenta
|
||||
regular6=5494b4 # cyan
|
||||
regular7=969696 # white
|
||||
bright0=303030 # bright black
|
||||
bright1=ef7280 # bright red
|
||||
bright2=deee75 # bright green
|
||||
bright3=fce679 # bright yellow
|
||||
bright4=7878c3 # bright blue
|
||||
bright5=bf5494 # bright magenta
|
||||
bright6=78aac4 # bright cyan
|
||||
bright7=b0b0b0 # bright white
|
||||
# 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=none
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down
|
||||
# scrollback-down-half-page=none
|
||||
# scrollback-down-line=none
|
||||
# clipboard-copy=Control+Shift+c
|
||||
# clipboard-paste=Control+Shift+v
|
||||
# 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_LEFT-2
|
||||
# select-row=BTN_LEFT-3
|
|
@ -1,24 +0,0 @@
|
|||
The following is the licence for the plugin manager `vim-plug`, stored
|
||||
as the file `plug.vim`.
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Junegunn Choi
|
||||
|
||||
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.
|
File diff suppressed because it is too large
Load Diff
|
@ -89,5 +89,5 @@ else
|
|||
set termguicolors
|
||||
endif
|
||||
set background=dark
|
||||
syntax off
|
||||
colorscheme sourcerer
|
||||
syntax on
|
||||
colorscheme srcery
|
||||
|
|
|
@ -0,0 +1,168 @@
|
|||
#!/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 river(1) man pages for complete
|
||||
# documentation.
|
||||
|
||||
# Use the "logo" key as the primary modifier
|
||||
mod="Mod4"
|
||||
|
||||
# Mod+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
|
||||
riverctl map normal $mod Return spawn foot
|
||||
|
||||
# Mod+Q to close the focused view
|
||||
riverctl map normal $mod Q close
|
||||
|
||||
# Mod+Shift+E to exit
|
||||
riverctl map normal $mod+Shift E 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+Shift+Return to bump the focused view to the top of the layout stack
|
||||
riverctl map normal $mod+Shift Return 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
|
||||
|
||||
for i in $(seq 1 9)
|
||||
do
|
||||
tags=$((1 << ($i - 1)))
|
||||
|
||||
# Mod+[1-9] to focus tag [0-8]
|
||||
riverctl map normal $mod $i set-focused-tags $tags
|
||||
|
||||
# Mod+Shift+[1-9] to tag focused view with tag [0-8]
|
||||
riverctl map normal $mod+Shift $i set-view-tags $tags
|
||||
|
||||
# Mod+Ctrl+[1-9] to toggle focus of tag [0-8]
|
||||
riverctl map normal $mod+Control $i toggle-focused-tags $tags
|
||||
|
||||
# Mod+Shift+Ctrl+[1-9] to toggle tag [0-8] of focused view
|
||||
riverctl map normal $mod+Shift+Control $i toggle-view-tags $tags
|
||||
done
|
||||
|
||||
# Mod+0 to focus all tags
|
||||
# Mod+Shift+0 to tag focused view with all tags
|
||||
all_tags=$(((1 << 32) - 1))
|
||||
riverctl map normal $mod 0 set-focused-tags $all_tags
|
||||
riverctl map normal $mod+Shift 0 set-view-tags $all_tags
|
||||
|
||||
# Mod+Space to toggle float
|
||||
riverctl map normal $mod 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
|
||||
# Eject the optical drive
|
||||
riverctl map $mode None XF86Eject spawn eject -T
|
||||
|
||||
# Control pulse audio volume with pamixer (https://github.com/cdemoulins/pamixer)
|
||||
riverctl map $mode None XF86AudioRaiseVolume spawn pamixer -i 5
|
||||
riverctl map $mode None XF86AudioLowerVolume spawn pamixer -d 5
|
||||
riverctl map $mode None XF86AudioMute spawn pamixer --toggle-mute
|
||||
|
||||
# Control MPRIS aware media players with playerctl (https://github.com/altdesktop/playerctl)
|
||||
riverctl map $mode None XF86AudioMedia spawn playerctl play-pause
|
||||
riverctl map $mode None XF86AudioPlay spawn playerctl play-pause
|
||||
riverctl map $mode None XF86AudioPrev spawn playerctl previous
|
||||
riverctl map $mode None XF86AudioNext spawn playerctl next
|
||||
|
||||
# Control screen backlight brighness with light (https://github.com/haikarainen/light)
|
||||
riverctl map $mode None XF86MonBrightnessUp spawn light -A 5
|
||||
riverctl map $mode None XF86MonBrightnessDown spawn light -U 5
|
||||
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 app-ids of views which should use client side decorations
|
||||
riverctl csd-filter-add "gedit"
|
||||
|
||||
# Aesthetics
|
||||
# Set wallpaper
|
||||
riverctl spawn 'wbg ~/images/wallpapers/facets-la-ghosts_ii.jpg'
|
||||
# Colour scheme
|
||||
riverctl border-color-focused "#EA4458"
|
||||
riverctl border-color-unfocused "#828282"
|
||||
# Border width
|
||||
riverctl border-width 7
|
||||
|
||||
# Set opacity and fade effect
|
||||
# riverctl opacity 1.0 0.75 0.0 0.1 20
|
||||
|
||||
# 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 -main-factor 0.5 -view-padding 12 -outer-padding 24
|
|
@ -0,0 +1,3 @@
|
|||
Xft.dpi: 120
|
||||
|
||||
Xcursor.theme: Breeze_Snow
|
|
@ -0,0 +1,57 @@
|
|||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# merge xresources and modmaps to xrdb
|
||||
|
||||
if [ -f $sysresources ]; then
|
||||
xrdb -merge $sysresources
|
||||
fi
|
||||
|
||||
if [ -f $sysmodmap ]; then
|
||||
xmodmap $sysmodmap
|
||||
fi
|
||||
|
||||
if [ -f "$userresources" ]; then
|
||||
xrdb -merge "$userresources"
|
||||
fi
|
||||
|
||||
if [ -f "$usermodmap" ]; then
|
||||
xmodmap "$usermodmap"
|
||||
fi
|
||||
|
||||
# run setxkbmap to set the keyboard layout to GB (there should be a way to configure this global but it doesn't work)
|
||||
|
||||
setxkbmap -layout gb
|
||||
|
||||
# restore wallpaper by running script generated by feh when it set the wallpaper
|
||||
|
||||
~/.fehbg
|
||||
|
||||
# run the compositor, primarily to prevent screen tearing
|
||||
# picom looks first for its configuration file in `$XDG_CONFIG_HOME/picom.conf`
|
||||
# (see man page for more details)
|
||||
|
||||
picom -b
|
||||
|
||||
# start some nice programs suggested by Xorg
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
done
|
||||
unset f
|
||||
fi
|
||||
|
||||
# use pointy cursor with bspwm (by default bspwm uses the x-shaped one)
|
||||
|
||||
xsetroot -cursor_name left_ptr
|
||||
|
||||
# run sxhkd for bspwm
|
||||
|
||||
sxhkd &
|
||||
|
||||
exec bspwm
|
Loading…
Reference in New Issue