Compare commits
72 Commits
master
..
9fb8ef9d3c
| Author | SHA1 | Date | |
|---|---|---|---|
|
9fb8ef9d3c
|
|||
| 746f5a7e9a | |||
| 36f937c3d8 | |||
|
290e77189a
|
|||
|
722a13262f
|
|||
|
d97ba74dbe
|
|||
|
c5310feda6
|
|||
|
66b3021937
|
|||
|
383a5c77ef
|
|||
|
d42669b417
|
|||
|
bc54ec59a3
|
|||
|
b47bff4766
|
|||
|
07b1850973
|
|||
|
d5710350d4
|
|||
|
c6bfeca636
|
|||
|
948344af18
|
|||
|
27d7d5dacf
|
|||
|
fc095e5158
|
|||
| 2aa1745aa4 | |||
|
0be1bbddab
|
|||
|
6c66cb398e
|
|||
|
7fbcdb6ee4
|
|||
|
c4043612e6
|
|||
|
5358ae45da
|
|||
|
002d90c065
|
|||
|
1a8e4b1f80
|
|||
|
a44939a7be
|
|||
|
df65c68993
|
|||
|
914bc33473
|
|||
|
4b8de442ab
|
|||
|
dd7d617e41
|
|||
|
41208264df
|
|||
|
26f256c5d2
|
|||
|
6edce6ed61
|
|||
|
4583c497e8
|
|||
|
c8d617c41b
|
|||
|
552675eb7a
|
|||
|
a5cfb44c1c
|
|||
|
88caa05069
|
|||
|
5f536e840f
|
|||
|
5c3c699b71
|
|||
|
2f5b8bf090
|
|||
|
7cb4180c0f
|
|||
|
ae6dcb1d65
|
|||
|
f245676926
|
|||
|
4fc5bd0223
|
|||
|
dd5208e8ef
|
|||
| 317e4ecd81 | |||
| 109db07d4b | |||
|
6247bbf3d8
|
|||
|
d0e6497cf8
|
|||
| 7a1b00202a | |||
| 0e68efd9aa | |||
| 42dff7b8cd | |||
| 057a776164 | |||
| 69c5868c40 | |||
|
24c495770c
|
|||
|
5ef28a2edd
|
|||
|
704664e3bd
|
|||
|
3736b60b05
|
|||
|
a1d3309d45
|
|||
|
b24eea81be
|
|||
|
b4aa71e377
|
|||
|
ffb7e19938
|
|||
|
b4e8857524
|
|||
|
73de478515
|
|||
|
59283b394d
|
|||
|
460f6d9251
|
|||
|
2a7620a621
|
|||
|
b82dc58f26
|
|||
|
c1c92fc336
|
|||
|
6ae58df8cb
|
@@ -0,0 +1,58 @@
|
||||
font:
|
||||
bold:
|
||||
family: Terminus (TTF)
|
||||
style: Bold
|
||||
bold_italic:
|
||||
family: Terminus (TTF)
|
||||
style: Bold Italic
|
||||
italic:
|
||||
family: Terminus (TTF)
|
||||
style: Italic
|
||||
normal:
|
||||
family: Terminus (TTF)
|
||||
style: Bold
|
||||
size: 16
|
||||
|
||||
key_bindings:
|
||||
- { key: Return, mods: Control|Shift, action: SpawnNewInstance }
|
||||
- { key: F, mods: Control, action: SearchForward }
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
|
||||
selection:
|
||||
save_to_clipboard: true
|
||||
|
||||
colors:
|
||||
search:
|
||||
focused_match:
|
||||
foreground: "#181818"
|
||||
background: "#ab4642"
|
||||
matches:
|
||||
foreground: "#181818"
|
||||
background: "#f4bf75"
|
||||
bar:
|
||||
foreground: "#d0d0d0"
|
||||
background: "#262626"
|
||||
# Default colors
|
||||
primary:
|
||||
background: "0x000000"
|
||||
foreground: "0xffffff"
|
||||
# Normal colors
|
||||
normal:
|
||||
black: "0x000000"
|
||||
red: "0xcd0000"
|
||||
green: "0x00cd00"
|
||||
yellow: "0xcdcd00"
|
||||
blue: "0x0000ee"
|
||||
magenta: "0xcd00cd"
|
||||
cyan: "0x00cdcd"
|
||||
white: "0xe5e5e5"
|
||||
# Bright colors:
|
||||
bright:
|
||||
black: "0x7f7f7f"
|
||||
red: "0xff0000"
|
||||
green: "0x00ff00"
|
||||
yellow: "0xffff00"
|
||||
blue: "0x5c5cff"
|
||||
magenta: "0xff00ff"
|
||||
cyan: "0x00ffff"
|
||||
white: "0xffffff"
|
||||
@@ -1,78 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleAllowMixedLocalizations</key>
|
||||
<true/>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>applet</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>applet</string>
|
||||
<key>CFBundleIconName</key>
|
||||
<string>applet</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.apple.ScriptEditor.id.Copy-Firefox-Link--Jira</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>Copy Firefox Link (Jira)</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>aplt</string>
|
||||
<key>LSMinimumSystemVersionByArchitecture</key>
|
||||
<dict>
|
||||
<key>x86_64</key>
|
||||
<string>10.6</string>
|
||||
</dict>
|
||||
<key>LSRequiresCarbon</key>
|
||||
<true/>
|
||||
<key>NSAppleEventsUsageDescription</key>
|
||||
<string>This script needs to control other applications to run.</string>
|
||||
<key>NSAppleMusicUsageDescription</key>
|
||||
<string>This script needs access to your music to run.</string>
|
||||
<key>NSCalendarsUsageDescription</key>
|
||||
<string>This script needs access to your calendars to run.</string>
|
||||
<key>NSCameraUsageDescription</key>
|
||||
<string>This script needs access to your camera to run.</string>
|
||||
<key>NSContactsUsageDescription</key>
|
||||
<string>This script needs access to your contacts to run.</string>
|
||||
<key>NSHomeKitUsageDescription</key>
|
||||
<string>This script needs access to your HomeKit Home to run.</string>
|
||||
<key>NSMicrophoneUsageDescription</key>
|
||||
<string>This script needs access to your microphone to run.</string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>This script needs access to your photos to run.</string>
|
||||
<key>NSRemindersUsageDescription</key>
|
||||
<string>This script needs access to your reminders to run.</string>
|
||||
<key>NSSiriUsageDescription</key>
|
||||
<string>This script needs access to Siri to run.</string>
|
||||
<key>NSSystemAdministrationUsageDescription</key>
|
||||
<string>This script needs access to administer this system to run.</string>
|
||||
<key>OSAAppletShowStartupScreen</key>
|
||||
<false/>
|
||||
<key>WindowState</key>
|
||||
<dict>
|
||||
<key>bundleDividerCollapsed</key>
|
||||
<true/>
|
||||
<key>bundlePositionOfDivider</key>
|
||||
<real>0.0</real>
|
||||
<key>dividerCollapsed</key>
|
||||
<false/>
|
||||
<key>eventLogLevel</key>
|
||||
<integer>2</integer>
|
||||
<key>name</key>
|
||||
<string>ScriptWindowState</string>
|
||||
<key>positionOfDivider</key>
|
||||
<real>394</real>
|
||||
<key>savedFrame</key>
|
||||
<string>952 453 700 682 0 0 2560 1409 </string>
|
||||
<key>selectedTab</key>
|
||||
<string>result</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
Binary file not shown.
@@ -1 +0,0 @@
|
||||
APPLaplt
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 362 B |
@@ -1,5 +0,0 @@
|
||||
{\rtf1\ansi\ansicpg1252\cocoartf2865
|
||||
\cocoatextscaling0\cocoaplatform0{\fonttbl}
|
||||
{\colortbl;\red255\green255\blue255;}
|
||||
{\*\expandedcolortbl;;}
|
||||
}
|
||||
@@ -1,192 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>files</key>
|
||||
<dict>
|
||||
<key>Resources/Assets.car</key>
|
||||
<data>
|
||||
OdbufcoyP2ZXC+wmwYcwMi/2x24=
|
||||
</data>
|
||||
<key>Resources/Scripts/main.scpt</key>
|
||||
<data>
|
||||
c++jyUmQRxdpGX36L8PJaNpf6uM=
|
||||
</data>
|
||||
<key>Resources/applet.icns</key>
|
||||
<data>
|
||||
sINd6lbiqHD5dL8c6u79cFvVXhw=
|
||||
</data>
|
||||
<key>Resources/applet.rsrc</key>
|
||||
<data>
|
||||
DlWDU4NYiJFhmwpseexPiRYHzFI=
|
||||
</data>
|
||||
<key>Resources/description.rtfd/TXT.rtf</key>
|
||||
<data>
|
||||
C1nXIy6FYUr4wNNlSEP/8NzzT/E=
|
||||
</data>
|
||||
</dict>
|
||||
<key>files2</key>
|
||||
<dict>
|
||||
<key>Resources/Assets.car</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
OdbufcoyP2ZXC+wmwYcwMi/2x24=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
cVUhSsEaVhMGFs9io544X4XEevDHVtRiVGUTdZ4ZHX4=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/Scripts/main.scpt</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
c++jyUmQRxdpGX36L8PJaNpf6uM=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
o+Lp+bYlQlPNZa8JmZ6wdvY55TCtjUxce100Dttj5vY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/applet.icns</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
sINd6lbiqHD5dL8c6u79cFvVXhw=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
J7weZ6vlnv9r32tS5HFcyuPXl2StdDnfepLxAixlryk=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/applet.rsrc</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
DlWDU4NYiJFhmwpseexPiRYHzFI=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
/UdIZRcpe3tND6vnHQP/IG8Vvt3+ZFQS5SQ+h1kescY=
|
||||
</data>
|
||||
</dict>
|
||||
<key>Resources/description.rtfd/TXT.rtf</key>
|
||||
<dict>
|
||||
<key>hash</key>
|
||||
<data>
|
||||
C1nXIy6FYUr4wNNlSEP/8NzzT/E=
|
||||
</data>
|
||||
<key>hash2</key>
|
||||
<data>
|
||||
Y3Q9y0mIEZh55w+oHoEyN1W1UzIxrILMub7rktKsd1I=
|
||||
</data>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>rules</key>
|
||||
<dict>
|
||||
<key>^Resources/</key>
|
||||
<true/>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^version.plist$</key>
|
||||
<true/>
|
||||
</dict>
|
||||
<key>rules2</key>
|
||||
<dict>
|
||||
<key>.*\.dSYM($|/)</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>11</real>
|
||||
</dict>
|
||||
<key>^(.*/)?\.DS_Store$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>2000</real>
|
||||
</dict>
|
||||
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^.*</key>
|
||||
<true/>
|
||||
<key>^Info\.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^PkgInfo$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/</key>
|
||||
<dict>
|
||||
<key>optional</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1000</real>
|
||||
</dict>
|
||||
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
||||
<dict>
|
||||
<key>omit</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>1100</real>
|
||||
</dict>
|
||||
<key>^Resources/Base\.lproj/</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>1010</real>
|
||||
</dict>
|
||||
<key>^[^/]+$</key>
|
||||
<dict>
|
||||
<key>nested</key>
|
||||
<true/>
|
||||
<key>weight</key>
|
||||
<real>10</real>
|
||||
</dict>
|
||||
<key>^embedded\.provisionprofile$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
<key>^version\.plist$</key>
|
||||
<dict>
|
||||
<key>weight</key>
|
||||
<real>20</real>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
|
||||
for app in "$DIR"/*.app; do
|
||||
echo "Installing $(basename "$app")..."
|
||||
cp -rv "$app" "$HOME"/Applications/
|
||||
xattr -dr com.apple.quarantine "/Applications/$(basename "$app")"
|
||||
done
|
||||
|
||||
open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"
|
||||
@@ -1,28 +0,0 @@
|
||||
bash
|
||||
coreutils
|
||||
dockutil
|
||||
duti
|
||||
fastfetch
|
||||
ffmpeg
|
||||
git
|
||||
gnu-sed
|
||||
htop
|
||||
imagemagick
|
||||
ipcalc
|
||||
iperf3
|
||||
mtr
|
||||
neovim
|
||||
parallel
|
||||
pinentry-mac
|
||||
ranger
|
||||
ripgrep
|
||||
rsync
|
||||
taplo
|
||||
telnet
|
||||
texinfo
|
||||
tmux
|
||||
tree
|
||||
watch
|
||||
wget
|
||||
zoxide
|
||||
zsh
|
||||
@@ -1,31 +0,0 @@
|
||||
alacritty
|
||||
chatterino
|
||||
dbeaver-community
|
||||
discord
|
||||
displaylink
|
||||
docker
|
||||
firefox
|
||||
font-hack-nerd-font
|
||||
gimp
|
||||
karabiner-elements
|
||||
keepassxc
|
||||
megasync
|
||||
microsoft-teams
|
||||
mongodb-compass
|
||||
mpv
|
||||
obsidian
|
||||
platypus
|
||||
postman
|
||||
qbittorrent
|
||||
rustdesk
|
||||
scroll-reverser
|
||||
signal
|
||||
spotify
|
||||
telegram
|
||||
the-unarchiver
|
||||
transfer
|
||||
twingate
|
||||
visual-studio-code
|
||||
vlc
|
||||
winbox
|
||||
wireshark
|
||||
@@ -1,2 +0,0 @@
|
||||
example
|
||||
displaylink
|
||||
File diff suppressed because one or more lines are too long
@@ -1,110 +0,0 @@
|
||||
# use_thin_strokes = true
|
||||
[env]
|
||||
TERM = "xterm-256color"
|
||||
|
||||
[general]
|
||||
import = ["~/.config/alacritty/dracula.toml"]
|
||||
|
||||
[keyboard]
|
||||
bindings = [
|
||||
{ key = "F", mods = "Control", action = "SearchForward" },
|
||||
{ key = "Left", mods = "Alt", chars = "\u001BB" },
|
||||
{ key = "Return", mods = "Control|Shift", action = "SpawnNewInstance" },
|
||||
{ key = "Right", mods = "Alt", chars = "\u001BF" },
|
||||
{ key = "Space", mods = "Control", chars = "\u0000" },
|
||||
{ key = "V", mods = "Control|Shift", action = "Paste" },
|
||||
]
|
||||
|
||||
[window]
|
||||
opacity = 0.95
|
||||
|
||||
[font]
|
||||
size = 20
|
||||
|
||||
# [font.normal]
|
||||
# family = "Terminess Nerd Font"
|
||||
# style = "Regular"
|
||||
|
||||
# # [font.bold]
|
||||
# # family = "Teminess Nerd Font"
|
||||
# # style = "Bold"
|
||||
|
||||
# [font.bold_italic]
|
||||
# family = "Terminess Nerd Font"
|
||||
# style = "Bold Italic"
|
||||
|
||||
# [font.italic]
|
||||
# family = "Terminess Nerd Font"
|
||||
# style = "Italic"
|
||||
|
||||
|
||||
# Comic code
|
||||
[font.normal]
|
||||
family = "Comic Code Ligatures"
|
||||
style = "Regular"
|
||||
|
||||
# [font.bold]
|
||||
# family = "Teminess Nerd Font"
|
||||
# style = "Bold"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "Comic Code"
|
||||
style = "Bold Italic"
|
||||
|
||||
[font.italic]
|
||||
family = "Comic Code"
|
||||
style = "Italic"
|
||||
|
||||
[font.offset]
|
||||
x = 0
|
||||
y = -6
|
||||
|
||||
[font.glyph_offset]
|
||||
x = 0
|
||||
y = -2
|
||||
|
||||
# [mouse.hints]
|
||||
# modifiers = "Command"
|
||||
|
||||
# [mouse.hints.launcher]
|
||||
# program = "open"
|
||||
|
||||
[selection]
|
||||
save_to_clipboard = true
|
||||
|
||||
# Unused
|
||||
[colors.bright]
|
||||
black = "0x7f7f7f"
|
||||
blue = "0x5c5cff"
|
||||
cyan = "0x00ffff"
|
||||
green = "0x00ff00"
|
||||
magenta = "0xff00ff"
|
||||
red = "0xff0000"
|
||||
white = "0xffffff"
|
||||
yellow = "0xffff00"
|
||||
|
||||
[colors.normal]
|
||||
black = "0x000000"
|
||||
blue = "0x0000ee"
|
||||
cyan = "0x00cdcd"
|
||||
green = "0x00cd00"
|
||||
magenta = "0xcd00cd"
|
||||
red = "0xcd0000"
|
||||
white = "0xe5e5e5"
|
||||
yellow = "0xcdcd00"
|
||||
|
||||
[colors.primary]
|
||||
background = "0x000000"
|
||||
foreground = "0xffffff"
|
||||
|
||||
[colors.search.focused_match]
|
||||
background = "#ab4642"
|
||||
foreground = "#181818"
|
||||
|
||||
# [colors.search.footer_bar]
|
||||
# background = "#262626"
|
||||
# foreground = "#d0d0d0"
|
||||
|
||||
[colors.search.matches]
|
||||
background = "#f4bf75"
|
||||
foreground = "#181818"
|
||||
@@ -1,76 +0,0 @@
|
||||
# Dracula theme for Alacritty
|
||||
# https://draculatheme.com/alacritty
|
||||
#
|
||||
# Color palette
|
||||
# https://spec.draculatheme.com
|
||||
#
|
||||
# Instructions
|
||||
# https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd
|
||||
|
||||
[colors.primary]
|
||||
|
||||
background = "#282a36"
|
||||
foreground = "#f8f8f2"
|
||||
bright_foreground = "#ffffff"
|
||||
|
||||
[colors.cursor]
|
||||
|
||||
text = "#282a36"
|
||||
cursor = "#f8f8f2"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
|
||||
text = "CellBackground"
|
||||
cursor = "CellForeground"
|
||||
|
||||
[colors.selection]
|
||||
|
||||
text = "CellForeground"
|
||||
background = "#44475a"
|
||||
|
||||
[colors.normal]
|
||||
|
||||
black = "#21222c"
|
||||
red = "#ff5555"
|
||||
green = "#50fa7b"
|
||||
yellow = "#f1fa8c"
|
||||
blue = "#bd93f9"
|
||||
magenta = "#ff79c6"
|
||||
cyan = "#8be9fd"
|
||||
white = "#f8f8f2"
|
||||
|
||||
[colors.bright]
|
||||
|
||||
black = "#6272a4"
|
||||
red = "#ff6e6e"
|
||||
green = "#69ff94"
|
||||
yellow = "#ffffa5"
|
||||
blue = "#d6acff"
|
||||
magenta = "#ff92df"
|
||||
cyan = "#a4ffff"
|
||||
white = "#ffffff"
|
||||
|
||||
[colors.search.matches]
|
||||
|
||||
foreground = "#44475a"
|
||||
background = "#50fa7b"
|
||||
|
||||
[colors.search.focused_match]
|
||||
|
||||
foreground = "#44475a"
|
||||
background = "#ffb86c"
|
||||
|
||||
[colors.footer_bar]
|
||||
|
||||
background = "#282a36"
|
||||
foreground = "#f8f8f2"
|
||||
|
||||
[colors.hints.start]
|
||||
|
||||
foreground = "#282a36"
|
||||
background = "#f1fa8c"
|
||||
|
||||
[colors.hints.end]
|
||||
|
||||
foreground = "#f1fa8c"
|
||||
background = "#282a36"
|
||||
+15
-16
@@ -1,19 +1,22 @@
|
||||
# CONFIGURATION:
|
||||
# Default configuration to DROP
|
||||
iptables -P INPUT DROP
|
||||
iptables -P FORWARD DROP
|
||||
iptables -P OUTPUT DROP
|
||||
|
||||
# Accept on localhost
|
||||
# iptables -A INPUT -i lo -j ACCEPT
|
||||
# iptables -A OUTPUT -o lo -j ACCEPT
|
||||
iptables -A INPUT -i lo -j ACCEPT
|
||||
iptables -A OUTPUT -o lo -j ACCEPT
|
||||
|
||||
# Accept outgoing network
|
||||
iptables -A OUTPUT -o eth0 -j ACCEPT
|
||||
|
||||
# Enable SSH (to that machine)
|
||||
iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --sport 22 -j ACCEPT
|
||||
iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 22 -j ACCEPT
|
||||
# Allow established sessions to receive traffic
|
||||
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||
iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT
|
||||
|
||||
# Enable SSH (to internet)
|
||||
#iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
|
||||
#iptables -A OUTPUT -p tcp -m state --state NEW -m tcp --dport 10571 -j ACCEPT
|
||||
|
||||
# Disable SSH (to that machine)
|
||||
iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --sport 22 -j DROP
|
||||
iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 22 -j DROP
|
||||
|
||||
# Enable INZ
|
||||
#iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 1285 -j ACCEPT
|
||||
@@ -23,12 +26,8 @@ iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 2
|
||||
#Enable CSGO
|
||||
iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27015 -j ACCEPT
|
||||
iptables -A INPUT -p tcp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27020 -j ACCEPT
|
||||
#iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27015 -j ACCEPT
|
||||
#iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27020 -j ACCEPT
|
||||
|
||||
# Allow established sessions to receive traffic
|
||||
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
|
||||
# iptables -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT
|
||||
iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27015 -j ACCEPT
|
||||
iptables -A INPUT -p udp -m state --state NEW -m tcp -s 192.168.0.0/24 --dport 27020 -j ACCEPT
|
||||
|
||||
iptables -A INPUT -i eth0 -m state --state NEW,INVALID -j DROP
|
||||
iptables -A FORWARD -i eth0 -m state --state NEW,INVALID -j DROP
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{"title":"Mouse keys ambidextrous - yorune","rules":[{"description":"Mouse keys Ambidextrous","manipulators":[{"from":{"key_code":"k","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"vertical_wheel":-64}}],"type":"basic"},{"from":{"key_code":"j","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"vertical_wheel":64}}],"type":"basic"},{"from":{"key_code":"h","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"horizontal_wheel":64}}],"type":"basic"},{"from":{"key_code":"l","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"horizontal_wheel":-64}}],"type":"basic"},{"from":{"key_code":"u","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button1"}],"type":"basic"},{"from":{"key_code":"o","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button2"}],"type":"basic"},{"from":{"key_code":"h","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"x":-1018}}],"type":"basic"},{"from":{"key_code":"j","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"y":1018}}],"type":"basic"},{"from":{"key_code":"k","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"y":-1018}}],"type":"basic"},{"from":{"key_code":"l","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"x":1018}}],"type":"basic"},{"from":{"key_code":"q","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button1"}],"type":"basic"},{"from":{"key_code":"e","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"pointing_button":"button2"}],"type":"basic"}]}]}
|
||||
@@ -1,449 +0,0 @@
|
||||
{
|
||||
"global": { "show_in_menu_bar": false },
|
||||
"profiles": [
|
||||
{
|
||||
"complex_modifications": {
|
||||
"rules": [
|
||||
{
|
||||
"description": "Maps F5 to ⌘⇧M in MS Teams or ⌘⇧A to ZOOM. F5 has an MIC symbol on recent MacOS keyboards.",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": { "key_code": "f5" },
|
||||
"to": [{ "shell_command": "if [ $(ps aux | grep -v grep | grep -ci \"Microsoft Teams.app/Contents/Frameworks/Microsoft Teams Helper.app\") -gt 0 ]; then osascript -e 'activate application id \"com.microsoft.teams\"' -e 'tell application \"System Events\" to keystroke \"m\" using {command down, shift down}'; fi & if [ $(ps aux | grep -v grep | grep -ci \"zoom.us.app/Contents/Frameworks/cpthost.app/Contents/MacOS/CptHost\") -gt 0 ]; then osascript -e 'activate application id \"us.zoom.xos\"' -e 'tell application \"System Events\" to keystroke \"a\" using {command down, shift down}'; fi" }],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"description": "Change right_command+hjkl to arrow keys",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"mandatory": ["right_command"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [{ "key_code": "left_arrow" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"mandatory": ["right_command"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [{ "key_code": "down_arrow" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"mandatory": ["right_command"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [{ "key_code": "up_arrow" }],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"mandatory": ["right_command"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [{ "key_code": "right_arrow" }],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"devices": [
|
||||
{
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": { "key_code": "f1" },
|
||||
"to": [{ "consumer_key_code": "mute" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f2" },
|
||||
"to": [{ "consumer_key_code": "volume_decrement" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f3" },
|
||||
"to": [{ "consumer_key_code": "volume_increment" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f10" },
|
||||
"to": [{ "consumer_key_code": "play_or_pause" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f11" },
|
||||
"to": [{ "consumer_key_code": "display_brightness_decrement" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f12" },
|
||||
"to": [{ "consumer_key_code": "display_brightness_increment" }]
|
||||
}
|
||||
],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 591,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "caps_lock" },
|
||||
"to": [{ "key_code": "escape" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "down_arrow" },
|
||||
"to": [{ "pointing_button": "button32" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "escape" },
|
||||
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_arrow" },
|
||||
"to": [{ "pointing_button": "button32" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_command" },
|
||||
"to": [{ "key_code": "left_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_option" },
|
||||
"to": [{ "key_code": "right_command" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_arrow" },
|
||||
"to": [{ "pointing_button": "button32" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "up_arrow" },
|
||||
"to": [{ "pointing_button": "button32" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 631,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "non_us_backslash" },
|
||||
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 6194,
|
||||
"vendor_id": 4152
|
||||
},
|
||||
"ignore": true,
|
||||
"manipulate_caps_lock_led": false
|
||||
},
|
||||
{
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": { "key_code": "f1" },
|
||||
"to": [{ "key_code": "f1" }]
|
||||
}
|
||||
],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 615,
|
||||
"vendor_id": 76
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_pointing_device": true,
|
||||
"product_id": 6194,
|
||||
"vendor_id": 4152
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "pointing_button": "button5" },
|
||||
"to": [{ "apple_vendor_keyboard_key_code": "launchpad" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 30264,
|
||||
"vendor_id": 3141
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "escape" },
|
||||
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_command" },
|
||||
"to": [{ "key_code": "left_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_option" },
|
||||
"to": [{ "key_code": "right_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": { "is_keyboard": true },
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_option" },
|
||||
"to": [{ "key_code": "right_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 34056,
|
||||
"vendor_id": 3141
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "left_command" },
|
||||
"to": [{ "key_code": "left_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "left_option" },
|
||||
"to": [{ "key_code": "right_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 615,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "consumer_key_code": "eject" },
|
||||
"to": [{ "consumer_key_code": "al_terminal_lock_or_screensaver" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_option" },
|
||||
"to": [{ "key_code": "right_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 668,
|
||||
"vendor_id": 76
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_option" },
|
||||
"to": [{ "key_code": "right_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": { "key_code": "f1" },
|
||||
"to": [{ "key_code": "f1" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f2" },
|
||||
"to": [{ "key_code": "f2" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f3" },
|
||||
"to": [{ "key_code": "f3" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f4" },
|
||||
"to": [{ "key_code": "f4" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f5" },
|
||||
"to": [{ "key_code": "f5" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f6" },
|
||||
"to": [{ "key_code": "f13" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f7" },
|
||||
"to": [{ "key_code": "f7" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f8" },
|
||||
"to": [{ "key_code": "f8" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f9" },
|
||||
"to": [{ "key_code": "f9" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f10" },
|
||||
"to": [{ "consumer_key_code": "play_or_pause" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f11" },
|
||||
"to": [{ "consumer_key_code": "mute" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f12" },
|
||||
"to": [{ "consumer_key_code": "volume_increment" }]
|
||||
}
|
||||
],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 45929,
|
||||
"vendor_id": 1133
|
||||
},
|
||||
"manipulate_caps_lock_led": false,
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_option" },
|
||||
"to": [{ "key_code": "right_command" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": { "key_code": "f1" },
|
||||
"to": [{ "key_code": "f1" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f2" },
|
||||
"to": [{ "key_code": "f2" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f11" },
|
||||
"to": [{ "key_code": "f11" }]
|
||||
}
|
||||
],
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 785,
|
||||
"vendor_id": 13364
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "grave_accent_and_tilde" },
|
||||
"to": [{ "key_code": "non_us_backslash" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "right_control" },
|
||||
"to": [{ "key_code": "grave_accent_and_tilde" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 666,
|
||||
"vendor_id": 76
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 666,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "key_code": "right_command" },
|
||||
"to": [{ "key_code": "right_option" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"identifiers": {
|
||||
"is_keyboard": true,
|
||||
"product_id": 34304,
|
||||
"vendor_id": 1452
|
||||
},
|
||||
"ignore": true
|
||||
}
|
||||
],
|
||||
"fn_function_keys": [
|
||||
{
|
||||
"from": { "key_code": "f4" },
|
||||
"to": [{ "apple_vendor_keyboard_key_code": "mission_control" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "f5" },
|
||||
"to": [{ "key_code": "f5" }]
|
||||
}
|
||||
],
|
||||
"name": "Default profile",
|
||||
"selected": true,
|
||||
"simple_modifications": [
|
||||
{
|
||||
"from": { "consumer_key_code": "eject" },
|
||||
"to": [{ "consumer_key_code": "al_terminal_lock_or_screensaver" }]
|
||||
},
|
||||
{
|
||||
"from": { "key_code": "caps_lock" },
|
||||
"to": [{ "key_code": "escape" }]
|
||||
}
|
||||
],
|
||||
"virtual_hid_keyboard": {
|
||||
"country_code": 0,
|
||||
"keyboard_type_v2": "iso"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,206 +0,0 @@
|
||||
{
|
||||
"title": "Mouse keys ambidextrous - yorune",
|
||||
"rules": [
|
||||
{
|
||||
"description": "Mouse keys Ambidextrous",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"vertical_wheel": -64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"vertical_wheel": 64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"horizontal_wheel": 64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"horizontal_wheel": -64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "u",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button1"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "o",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button2"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"x": -1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"y": 1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"y": -1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"x": 1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "q",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button1"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "e",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button2"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,417 +0,0 @@
|
||||
{
|
||||
"name": "Keychron V1",
|
||||
"vendorProductId": 875823889,
|
||||
"macros": [
|
||||
"",
|
||||
"{KC_LGUI,KC_LCTL,KC_Q}",
|
||||
"{KC_RGUI,KC_L}",
|
||||
"Have a nice day",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"it-infra-stream@wundermanthompson.com",
|
||||
"marcin.wozniak@wundermanthompson.com",
|
||||
"Have a nice day!\n\n---\nMarcin\n"
|
||||
],
|
||||
"layers": [
|
||||
[
|
||||
"KC_GRV",
|
||||
"KC_F1",
|
||||
"KC_F2",
|
||||
"KC_F3",
|
||||
"KC_F4",
|
||||
"KC_F5",
|
||||
"KC_F6",
|
||||
"KC_F7",
|
||||
"KC_F8",
|
||||
"KC_F9",
|
||||
"KC_F10",
|
||||
"KC_F11",
|
||||
"KC_F12",
|
||||
"KC_DEL",
|
||||
"KC_NO",
|
||||
"KC_MUTE",
|
||||
"KC_GRV",
|
||||
"KC_1",
|
||||
"KC_2",
|
||||
"KC_3",
|
||||
"KC_4",
|
||||
"KC_5",
|
||||
"KC_6",
|
||||
"KC_7",
|
||||
"KC_8",
|
||||
"KC_9",
|
||||
"KC_0",
|
||||
"KC_MINS",
|
||||
"KC_EQL",
|
||||
"KC_BSPC",
|
||||
"KC_NO",
|
||||
"KC_PGUP",
|
||||
"KC_TAB",
|
||||
"KC_Q",
|
||||
"KC_W",
|
||||
"KC_E",
|
||||
"KC_R",
|
||||
"KC_T",
|
||||
"KC_Y",
|
||||
"KC_U",
|
||||
"KC_I",
|
||||
"KC_O",
|
||||
"KC_P",
|
||||
"KC_LBRC",
|
||||
"KC_RBRC",
|
||||
"KC_BSLS",
|
||||
"KC_NO",
|
||||
"KC_PGDN",
|
||||
"KC_ESC",
|
||||
"KC_A",
|
||||
"KC_S",
|
||||
"KC_D",
|
||||
"KC_F",
|
||||
"KC_G",
|
||||
"KC_H",
|
||||
"KC_J",
|
||||
"KC_K",
|
||||
"KC_L",
|
||||
"KC_SCLN",
|
||||
"KC_QUOT",
|
||||
"KC_NO",
|
||||
"KC_ENT",
|
||||
"KC_NO",
|
||||
"KC_HOME",
|
||||
"KC_LSFT",
|
||||
"KC_NO",
|
||||
"KC_Z",
|
||||
"KC_X",
|
||||
"KC_C",
|
||||
"KC_V",
|
||||
"KC_B",
|
||||
"KC_N",
|
||||
"KC_M",
|
||||
"KC_COMM",
|
||||
"KC_DOT",
|
||||
"KC_SLSH",
|
||||
"KC_NO",
|
||||
"KC_RSFT",
|
||||
"KC_UP",
|
||||
"KC_NO",
|
||||
"KC_LCTL",
|
||||
"USER02",
|
||||
"USER05",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_SPC",
|
||||
"KC_VOLD",
|
||||
"KC_VOLU",
|
||||
"KC_NO",
|
||||
"USER03",
|
||||
"MO(1)",
|
||||
"USER05",
|
||||
"KC_LEFT",
|
||||
"KC_DOWN",
|
||||
"KC_RGHT"
|
||||
],
|
||||
[
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"BL_DEC",
|
||||
"BL_INC",
|
||||
"KC_MPRV",
|
||||
"KC_MPLY",
|
||||
"KC_MNXT",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_PSCR",
|
||||
"KC_NO",
|
||||
"RGB_TOG",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"MACRO01",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"MACRO13",
|
||||
"MACRO14",
|
||||
"MACRO15",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_MS_BTN1",
|
||||
"KC_MS_UP",
|
||||
"KC_MS_BTN2",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_MS_LEFT",
|
||||
"KC_MS_DOWN",
|
||||
"KC_MS_RIGHT",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_END",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_MS_WH_UP",
|
||||
"KC_MS_WH_DOWN",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"RGB_VAD",
|
||||
"RGB_VAI",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS"
|
||||
],
|
||||
[
|
||||
"KC_GRV",
|
||||
"KC_F1",
|
||||
"KC_F2",
|
||||
"KC_F3",
|
||||
"KC_F4",
|
||||
"KC_F5",
|
||||
"KC_F6",
|
||||
"KC_F7",
|
||||
"KC_F8",
|
||||
"KC_F9",
|
||||
"KC_F10",
|
||||
"KC_F11",
|
||||
"KC_F12",
|
||||
"KC_DEL",
|
||||
"KC_NO",
|
||||
"KC_MUTE",
|
||||
"KC_GRV",
|
||||
"KC_1",
|
||||
"KC_2",
|
||||
"KC_3",
|
||||
"KC_4",
|
||||
"KC_5",
|
||||
"KC_6",
|
||||
"KC_7",
|
||||
"KC_8",
|
||||
"KC_9",
|
||||
"KC_0",
|
||||
"KC_MINS",
|
||||
"KC_EQL",
|
||||
"KC_BSPC",
|
||||
"KC_NO",
|
||||
"KC_PGUP",
|
||||
"KC_TAB",
|
||||
"KC_Q",
|
||||
"KC_W",
|
||||
"KC_E",
|
||||
"KC_R",
|
||||
"KC_T",
|
||||
"KC_Y",
|
||||
"KC_U",
|
||||
"KC_I",
|
||||
"KC_O",
|
||||
"KC_P",
|
||||
"KC_LBRC",
|
||||
"KC_RBRC",
|
||||
"KC_BSLS",
|
||||
"KC_NO",
|
||||
"KC_PGDN",
|
||||
"KC_ESC",
|
||||
"KC_A",
|
||||
"KC_S",
|
||||
"KC_D",
|
||||
"KC_F",
|
||||
"KC_G",
|
||||
"KC_H",
|
||||
"KC_J",
|
||||
"KC_K",
|
||||
"KC_L",
|
||||
"KC_SCLN",
|
||||
"KC_QUOT",
|
||||
"KC_NO",
|
||||
"KC_ENT",
|
||||
"KC_NO",
|
||||
"KC_HOME",
|
||||
"KC_LSFT",
|
||||
"KC_NO",
|
||||
"KC_Z",
|
||||
"KC_X",
|
||||
"KC_C",
|
||||
"KC_V",
|
||||
"KC_B",
|
||||
"KC_N",
|
||||
"KC_M",
|
||||
"KC_COMM",
|
||||
"KC_DOT",
|
||||
"KC_SLSH",
|
||||
"KC_NO",
|
||||
"KC_RSFT",
|
||||
"KC_UP",
|
||||
"KC_NO",
|
||||
"KC_LCTL",
|
||||
"KC_LGUI",
|
||||
"KC_LALT",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_SPC",
|
||||
"KC_VOLD",
|
||||
"KC_VOLU",
|
||||
"KC_NO",
|
||||
"KC_RALT",
|
||||
"MO(3)",
|
||||
"KC_RCTL",
|
||||
"KC_LEFT",
|
||||
"KC_DOWN",
|
||||
"KC_RGHT"
|
||||
],
|
||||
[
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"BL_DEC",
|
||||
"BL_INC",
|
||||
"KC_MPRV",
|
||||
"KC_MPLY",
|
||||
"KC_MNXT",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_PSCR",
|
||||
"KC_NO",
|
||||
"RGB_TOG",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"MACRO02",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"MACRO13",
|
||||
"MACRO14",
|
||||
"MACRO15",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_MS_BTN1",
|
||||
"KC_MS_UP",
|
||||
"KC_MS_BTN2",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_MS_LEFT",
|
||||
"KC_MS_DOWN",
|
||||
"KC_MS_RIGHT",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_END",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_MS_WH_UP",
|
||||
"KC_MS_WH_DOWN",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"RGB_VAD",
|
||||
"RGB_VAI",
|
||||
"KC_NO",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS",
|
||||
"KC_TRNS"
|
||||
]
|
||||
],
|
||||
"encoders": []
|
||||
}
|
||||
@@ -1,248 +0,0 @@
|
||||
{
|
||||
"name": "Keychron V1",
|
||||
"vendorId": "0x3434",
|
||||
"productId": "0x0311",
|
||||
"lighting": {
|
||||
"extends": "qmk_rgblight",
|
||||
"underglowEffects": [
|
||||
["None", 0],
|
||||
["SOLID_COLOR", 1],
|
||||
["BREATHING", 1],
|
||||
["CYCLE_ALL", 1],
|
||||
["CYCLE_LEFT_RIGHT", 1],
|
||||
["CYCLE_UP_DOWN", 1],
|
||||
["RAINBOW_MOVING_CHEVRON", 1],
|
||||
["CYCLE_OUT_IN", 1],
|
||||
["CYCLE_OUT_IN_DUAL", 1],
|
||||
["CYCLE_PINWHEEL", 1],
|
||||
["CYCKE_SPIRAL", 1],
|
||||
["DUAL_BEACON", 1],
|
||||
["RAINBOW_BEACON", 1],
|
||||
["RAINDROPS", 1]
|
||||
]
|
||||
},
|
||||
"matrix": {"rows": 6, "cols": 16},
|
||||
"customKeycodes": [
|
||||
{"name": "Mission Control", "title": "Mission Control in macOS", "shortName": "Mission Control"},
|
||||
{"name": "Launch Pad", "title": "Launch Pad in macOS", "shortName": "Launch Pad"},
|
||||
{"name": "Left Option", "title": "Left Option in macOS", "shortName": "Left Option"},
|
||||
{"name": "Right Option", "title": "Right Option in macOS", "shortName": "Right Option"},
|
||||
{"name": "Left Cmd", "title": "Left Command in macOS", "shortName": "Left Command"},
|
||||
{"name": "Right Cmd", "title": "Right Command in macOS", "shortName": "Right Command"},
|
||||
{"name": "Task View", "title": "Task View in windows", "shortName": "Task View"},
|
||||
{"name": "File Explorer", "title": "File Explorer in windows", "shortName": "File Explorer"}
|
||||
],
|
||||
"layouts": {
|
||||
"keymap": [
|
||||
[
|
||||
{
|
||||
"c": "#777777"
|
||||
},
|
||||
"0,0\nESC",
|
||||
{
|
||||
"x": 0.25,
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"0,1",
|
||||
"0,2",
|
||||
"0,3",
|
||||
"0,4",
|
||||
{
|
||||
"x": 0.25
|
||||
},
|
||||
"0,5",
|
||||
"0,6",
|
||||
"0,7",
|
||||
"0,8",
|
||||
{
|
||||
"x": 0.25
|
||||
},
|
||||
"0,9",
|
||||
"0,10",
|
||||
"0,11",
|
||||
"0,12",
|
||||
{
|
||||
"x": 0.25,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"0,13",
|
||||
{
|
||||
"x": 0.25,
|
||||
"w": 0.75
|
||||
},
|
||||
"0,15",
|
||||
{
|
||||
"h": 0.5
|
||||
},
|
||||
"5,7",
|
||||
{
|
||||
"x": -1,
|
||||
"y": 0.5,
|
||||
"h": 0.5
|
||||
},
|
||||
"5,8"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.25
|
||||
},
|
||||
"1,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"1,1",
|
||||
"1,2",
|
||||
"1,3",
|
||||
"1,4",
|
||||
"1,5",
|
||||
"1,6",
|
||||
"1,7",
|
||||
"1,8",
|
||||
"1,9",
|
||||
"1,10",
|
||||
"1,11",
|
||||
"1,12",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 2
|
||||
},
|
||||
"1,13",
|
||||
{
|
||||
"x": 0.25
|
||||
},
|
||||
"1,15"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"2,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"2,1",
|
||||
"2,2",
|
||||
"2,3",
|
||||
"2,4",
|
||||
"2,5",
|
||||
"2,6",
|
||||
"2,7",
|
||||
"2,8",
|
||||
"2,9",
|
||||
"2,10",
|
||||
"2,11",
|
||||
"2,12",
|
||||
{
|
||||
"w": 1.5
|
||||
},
|
||||
"2,13",
|
||||
{
|
||||
"x": 0.25,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"2,15"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 1.75
|
||||
},
|
||||
"3,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"3,1",
|
||||
"3,2",
|
||||
"3,3",
|
||||
"3,4",
|
||||
"3,5",
|
||||
"3,6",
|
||||
"3,7",
|
||||
"3,8",
|
||||
"3,9",
|
||||
"3,10",
|
||||
"3,11",
|
||||
{
|
||||
"c": "#777777",
|
||||
"w": 2.25
|
||||
},
|
||||
"3,13",
|
||||
{
|
||||
"x": 0.25,
|
||||
"c": "#aaaaaa"
|
||||
},
|
||||
"3,15"
|
||||
],
|
||||
[
|
||||
{
|
||||
"w": 2.25
|
||||
},
|
||||
"4,0",
|
||||
{
|
||||
"c": "#cccccc"
|
||||
},
|
||||
"4,2",
|
||||
"4,3",
|
||||
"4,4",
|
||||
"4,5",
|
||||
"4,6",
|
||||
"4,7",
|
||||
"4,8",
|
||||
"4,9",
|
||||
"4,10",
|
||||
"4,11",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.75
|
||||
},
|
||||
"4,13"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 14.25,
|
||||
"c": "#777777"
|
||||
},
|
||||
"4,14"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.25,
|
||||
"c": "#aaaaaa",
|
||||
"w": 1.25
|
||||
},
|
||||
"5,0",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"5,1",
|
||||
{
|
||||
"w": 1.25
|
||||
},
|
||||
"5,2",
|
||||
{
|
||||
"c": "#cccccc",
|
||||
"a": 7,
|
||||
"w": 6.25
|
||||
},
|
||||
"5,6",
|
||||
{
|
||||
"c": "#aaaaaa",
|
||||
"a": 4
|
||||
},
|
||||
"5,10",
|
||||
"5,11",
|
||||
"5,12"
|
||||
],
|
||||
[
|
||||
{
|
||||
"y": -0.75,
|
||||
"x": 13.25,
|
||||
"c": "#777777"
|
||||
},
|
||||
"5,13",
|
||||
"5,14",
|
||||
"5,15"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
refresher:
|
||||
refreshInterval: 60
|
||||
gui:
|
||||
useHunkModeInStagingView: false
|
||||
mainPanelSplitMode: "horizontal"
|
||||
theme:
|
||||
selectedLineBgColor:
|
||||
- "#413660"
|
||||
git:
|
||||
autoFetch: true
|
||||
paging:
|
||||
colorArg: always
|
||||
commit:
|
||||
signOff: true
|
||||
pull:
|
||||
mode: "rebase"
|
||||
@@ -1,24 +1,11 @@
|
||||
# Restrict readahead and backbuffer to 40MiB from default of 400MiB
|
||||
cache=yes
|
||||
demuxer-max-bytes=2147483647
|
||||
demuxer-max-back-bytes=2147483647
|
||||
|
||||
# Always allow seeking, e.g. allow seeking within a local cache of HTTP stream
|
||||
force-seekable=yes
|
||||
|
||||
# Always open a video window even with no video
|
||||
force-window=yes
|
||||
|
||||
# Don't exit when the end of playlist is reached
|
||||
keep-open=yes
|
||||
|
||||
# Always save the current playback position on exit
|
||||
save-position-on-quit=yes
|
||||
# ontop=yes
|
||||
|
||||
# Geometry settings
|
||||
geometry=50%:50%
|
||||
autofit=50%
|
||||
|
||||
# Create 'high-quality' profile
|
||||
[high-quality]
|
||||
|
||||
+3
-17
@@ -15,26 +15,12 @@ unbind-key p
|
||||
bind-key n next
|
||||
bind-key p prev
|
||||
|
||||
# unbind keys
|
||||
unbind-key j
|
||||
unbind-key k
|
||||
unbind-key J
|
||||
unbind-key K
|
||||
|
||||
# bind keys - vim style
|
||||
bind-key j down
|
||||
bind-key k up
|
||||
bind-key l open
|
||||
bind-key h quit
|
||||
bind-key ESC quit
|
||||
|
||||
highlight all "====.*====" yellow
|
||||
color listnormal default default
|
||||
color listnormal cyan default
|
||||
color listfocus black yellow standout bold
|
||||
color listnormal_unread cyan default
|
||||
color listnormal_unread blue default
|
||||
color listfocus_unread yellow default bold
|
||||
color info red black bold
|
||||
color article white default bold
|
||||
|
||||
browser "$HOME/.local/bin/browser-x -new-tab %u"
|
||||
browser "/home/yorune/.local/bin/browser-x -new-tab %u"
|
||||
player mpv
|
||||
|
||||
+53
-5
@@ -1,19 +1,67 @@
|
||||
=====================NEWS====================================
|
||||
shttps://wtf.roflcopter.fr/rss-bridge/?action=display&bridge=Facebook&context=User&u=gminakleczew&media_type=all&limit=-1&format=Mrss "~Gmina Kleczew - Facebook"
|
||||
https://wtf.roflcopter.fr/rss-bridge/?action=display&bridge=Facebook&context=User&u=portalLM&media_type=all&limit=-1&format=Mrss "~Portal lm.pl - Facebook"
|
||||
https://nitter.net/MZ_GOV_PL/rss "~MZ_GOV_PL - Twitter"
|
||||
http://www.epoznan.pl/rss.php "~Epoznan - Website"
|
||||
https://sekurak.pl/feed/ "~Sekurak"
|
||||
https://feeds.feedburner.com/niebezpiecznik/ "~Niebezpiecznik"
|
||||
============================================================
|
||||
https://repology.org/maintainer/y0rune%40aol.com/feed-for-repo/gentoo_ovl_guru/atom "~GURU OUTDATE MAINTAINER"
|
||||
https://bugs.gentoo.org/buglist.cgi?bug_status=UNCONFIRMED&chfieldfrom=24h&ctype=atom&title=NEW&list_id=4468306&order=changeddate%20DESC%2Cbug_status%2Cpriority%2Cassigned_to%2Cbug_id&query_format=advanced Gentoo
|
||||
https://bugs.gentoo.org/buglist.cgi?email1=y0rune%40aol.com&emailassigned_to1=1&emailtype1=substring&list_id=5834010&query_format=advanced&resolution=---&title=Bug%20List&ctype=atom "~ASSIGNEE TO ME"
|
||||
https://bugs.gentoo.org/buglist.cgi?component=Package%20issues&product=GURU&query_format=advanced&resolution=---&title=Bug%20List&ctype=atom "~GURU-BUGS"
|
||||
https://bugs.gentoo.org/buglist.cgi?component=Package%20issues&product=GURU&query_format=advanced&resolution=---&title=Bug%20List&ctype=atom GURU-BUGS
|
||||
https://bugs.gentoo.org/buglist.cgi?component=Trusted%20Contributor%20ascension&product=GURU&query_format=advanced&resolution=---&title=Bug%20List&ctype=atom
|
||||
https://www.reddit.com/r/gentoo/new.rss "~Gentoo - Reddit"
|
||||
=====================PODCASTY===============================
|
||||
https://www.internet-czas-dzialac.pl/rss/
|
||||
============================================================
|
||||
http://rss.uptimerobot.com/u674346-753d02ab763f3725330347d4419a7569 "~UpTimeRoboot"
|
||||
=====================YOUTUBE=================================
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCzuvRWjh7k1SZm1RvqvIx4w "~Krzysztof Gonciarz"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC3QOjSZmJuYgb98BAzKfzig "~Zapytaj Beczkę"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA "~Luke Smith"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC2qQkGwReBfucb6yWr7idRA "~Asia Ladowska"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC5ZSM0kOGhtLdtZiqM2noWw "~StudyWithInSpo"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC84AaEtr7hlaYYwXDSKAbNg "~Ignacy z Japonii"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC8JbbaZ_jgdsoUqrZ2bXtQQ "~Lekko Stronniczy"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC8q23MpiyWjv9vd4r85oj1A "~Daniel Rakowiecki"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC9Vi25H6lQvPqcepJCJ3sEg "~Emma"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCAD-xOOaUI6N7Uq9laOVbcw "~Rene Rene"
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCAEQl0BbYrPyTnsWVBJuIqQ
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCaG-Uk3PSpHexeUJaJC_TPw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCAkBZtIl-a0fBLcY7JCPSQw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCB-4hoTjsE3VIFI862C5SZA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCE5Au4LfcBHxTQR_yLbncrQ
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCe6nK69Yc1zna7QSJEfA9pw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCEbYhDd6c6vngsF5PQpFVWg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCELsE3w85wy7hXFmU2eRn_w
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCfegHHvKywKjJ69Ymcb6j0w
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCFGud6qsbaAjuP6WaXAJj3Q
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCH2OHdQF5c2r2M_l_vPiXRA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCIDf8pzX2oZmjXtqMwHn0xg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCIj6yjWVKPKO5zNLBjQ8Beg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCJ24N4O0bP7LGLBDvye7oCA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCJkmbV_cndEe6Af8b5qVyoQ
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCJLLl6AraX1POemgLfhirwg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCjS2aGCvsnhExcWRAI8T4Pw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCMsi03EhTUsUs2OtPus6XDQ
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCMTkC2dA25yFsmtaevpYWfg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCnOo8dtBgwJbdwl4HxqPHwg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCO8DQrSp5yEP937qNqTooOw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCoJjEsNkU-Md3xB6BursT0Q
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCoXxgqIOTa8qCM7Hd7RiURw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCPc_saLjikyw-1sscFsHIsA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCPKgIhTC3BdkAwMw6s-GEug
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCRxAgfYexGLlu1WHGIMUDqw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCs02jgjMVeirmDHaxAXApkg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCsnGwSIHyoYN0kiINAGUKxg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCv9wKjBogC5AVG54s_Imn0A
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCvbEYH_h8k-hHq2oS-7zIdQ
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCVbn813ctsoChuTT4LuLqrA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCVVt5tbZEzfQSIsHUh3b_vg
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCw3T7SvPYDHCkdMhC0NcKsw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCWcz2SQMCcijkVta0hSERIA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCWFKCr40YwOZQx8FHU_ZqqQ
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCXRJfVWEjv9qxooSbOkFmkw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCZgyxIrQnTDLwwEr9VSkoPA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCZKqIdmPtIU6DOTmWxzudKw
|
||||
=====================ANIME===================================
|
||||
https://mirror.animetosho.org/feed/rss2?only_tor=1&q=%5BHorribleSubs%5D%20Sword%20Art%20Online%20720p&filter%5B0%5D%5Bt%5D=nyaa_class&filter%5B0%5D%5Bv%5D=trusted "~Sword Art Online"
|
||||
=============================================================
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
{
|
||||
"yaml.schemaStore.enable": true,
|
||||
"yaml.format.enable": true,
|
||||
"yaml.validate": true,
|
||||
"yaml.schemas": {
|
||||
"https://json.schemastore.org/ansible-role-2.9.json": "*.yaml",
|
||||
"https://json.schemastore.org/ansible-playbook.json": "*.yaml",
|
||||
"https://json.schemastore.org/ansible-inventory.json": "*yaml",
|
||||
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible-galaxy.json": "*.yaml",
|
||||
"https://raw.githubusercontent.com/docker/cli/master/cli/compose/schema/data/config_schema_v3.9.json": "*docker-compose.yml",
|
||||
"https://json.schemastore.org/github-workflow.json": ".github/workflows/*",
|
||||
|
||||
"https://json.schemastore.org/docker-compose.json": "*.yaml"
|
||||
},
|
||||
"python.formatting.provider": "black",
|
||||
"python.formatting.blackArgs": ["--line-length", "80"],
|
||||
"python.pythonPath": "python3",
|
||||
"diagnostic.refreshOnInsertMode": "true",
|
||||
"coc.preferences.formatOnSaveFiletypes": [
|
||||
"sh",
|
||||
"yaml",
|
||||
@@ -23,8 +7,7 @@
|
||||
"python",
|
||||
"css",
|
||||
"markdown",
|
||||
"ruby",
|
||||
"go"
|
||||
"ruby"
|
||||
],
|
||||
"diagnostic.virtualText": true,
|
||||
"diagnostic.virtualTextCurrentLineOnly": false,
|
||||
@@ -50,7 +33,6 @@
|
||||
".git/",
|
||||
".hg/"
|
||||
],
|
||||
"trace.server": "verbose",
|
||||
"initializationOptions": {
|
||||
"cache": {
|
||||
"directory": "/tmp/ccls"
|
||||
@@ -58,5 +40,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"solargraph.commandPath": "~/.gem/ruby/2.6.0/bin/solargraph",
|
||||
"solargraph.formatting": true
|
||||
}
|
||||
|
||||
+189
-650
@@ -1,45 +1,148 @@
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Download vim-plug
|
||||
""""""""""""""""""""""""""""""""
|
||||
if has('nvim')
|
||||
if ! filereadable(system('echo -n "$HOME/.config/nvim/autoload/plug.vim"'))
|
||||
silent !mkdir -p $HOME/.config/nvim/autoload/
|
||||
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.config/nvim/autoload/plug.vim
|
||||
autocmd VimEnter * PlugInstall
|
||||
endif
|
||||
" settings
|
||||
if ! filereadable(system('echo -n "$HOME/.config/nvim/autoload/plug.vim"'))
|
||||
silent !mkdir -p $HOME/.config/nvim/autoload/
|
||||
silent !curl --silent "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > $HOME/.config/nvim/autoload/plug.vim
|
||||
autocmd VimEnter * PlugInstall
|
||||
endif
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Default settings nvim
|
||||
""""""""""""""""""""""""""""""""
|
||||
let g:python3_host_prog = expand('/opt/homebrew/bin/python3.13')
|
||||
let g:loaded_python_provider = 0
|
||||
let g:python_host_prog = ''
|
||||
set autoindent
|
||||
set expandtab
|
||||
set softtabstop=4
|
||||
let mapleader = "\<Space>"
|
||||
let g:python3_host_prog = expand('/usr/src/python')
|
||||
set laststatus=2
|
||||
set shiftwidth=4
|
||||
set softtabstop=4
|
||||
set tabstop=4
|
||||
set nocompatible
|
||||
set incsearch
|
||||
set noshowmode
|
||||
set noerrorbells
|
||||
set wrap
|
||||
set hidden
|
||||
set cmdheight=1
|
||||
set encoding=utf-8
|
||||
set undofile
|
||||
set incsearch
|
||||
set scrolloff=8
|
||||
set termguicolors
|
||||
set t_BE=
|
||||
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
||||
filetype plugin indent on
|
||||
syntax on
|
||||
|
||||
" Disable by default indent line
|
||||
" let g:indentLine_enabled = 0
|
||||
" plugins
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
" Markdown
|
||||
Plug 'tpope/vim-markdown'
|
||||
|
||||
" ansible
|
||||
let g:ansible_extra_keywords_highlight = 1
|
||||
" Nerd Tree
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
Plug 'nmante/vim-latex-live-preview'
|
||||
|
||||
" Goyo plugin for writing mutt mail
|
||||
Plug 'junegunn/goyo.vim'
|
||||
|
||||
" Theme dracula and zenburn
|
||||
Plug 'dracula/vim', { 'as': 'dracula'}
|
||||
Plug 'jnurmine/Zenburn', { 'as': 'zenburn'}
|
||||
Plug 'morhetz/gruvbox', { 'as': 'gruvbox'}
|
||||
|
||||
" Fzf plugin
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'junegunn/fzf'
|
||||
|
||||
" CSS
|
||||
Plug 'ap/vim-css-color'
|
||||
|
||||
" coc
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
|
||||
" coc for ruby
|
||||
Plug 'neoclide/coc-solargraph', {'do': 'gem install solargraph'}
|
||||
|
||||
" coc for python
|
||||
Plug 'fannheyward/coc-pyright', {'do': 'yarn install --frozen-lockfile; npm i -D npx-run; pip install --user jedi; pip install --user black'}
|
||||
Plug 'sakhnik/nvim-gdb', { 'do': ':!./install.sh' }
|
||||
|
||||
" coc for yaml
|
||||
Plug 'neoclide/coc-yaml', {'do': 'yarn install --frozen-lockfile'}
|
||||
|
||||
" coc for json
|
||||
Plug 'neoclide/coc-json', {'do': 'yarn install --frozen-lockfile'}
|
||||
|
||||
" coc for markdownlint
|
||||
Plug 'fannheyward/coc-markdownlint', {'do': 'yarn install --frozen-lockfile; npm i -D markdownlint --save-dev'}
|
||||
|
||||
" coc for bash
|
||||
Plug 'josa42/coc-sh', {'do': 'yarn install --frozen-lockfile; npm i -D coc-sh; npm i -D bash-language-server'}
|
||||
|
||||
" coc for prettier
|
||||
Plug 'neoclide/coc-prettier', {'do': 'yarn install --frozen-lockfile'}
|
||||
|
||||
" coc-diagnostic
|
||||
" CocInstall coc-diagnostic
|
||||
Plug 'iamcco/coc-diagnostic'
|
||||
|
||||
" coc-cpp coc-c
|
||||
" emerge dev-util/ccls
|
||||
|
||||
" coc-perl
|
||||
Plug 'ulwlu/coc-perl', {'do': 'yarn install && yarn build'}
|
||||
|
||||
" Multiple cursors
|
||||
Plug 'terryma/vim-multiple-cursors'
|
||||
|
||||
" Enable gentoo-syntax in vim
|
||||
Plug 'gentoo/gentoo-syntax'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'tpope/vim-surround'
|
||||
call plug#end()
|
||||
|
||||
" Status-line
|
||||
set statusline=
|
||||
set statusline+=%#IncSearch#
|
||||
set statusline+=\ %y
|
||||
set statusline+=\ %m
|
||||
set statusline+=\ %r
|
||||
set statusline+=%#CursorLineNr#
|
||||
set statusline+=\ %F
|
||||
set statusline+=%= "Right side settings
|
||||
set statusline+=%#Search#
|
||||
set statusline+=\ %l/%L
|
||||
set statusline+=\ [%c]
|
||||
|
||||
" fzf
|
||||
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||||
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
|
||||
set grepprg=rg\ --vimgrep
|
||||
nmap <Leader>e :Buffers<CR>
|
||||
nmap <Leader>q :Rg<CR>
|
||||
nmap <Leader>w :Files<CR>
|
||||
nmap <C-p> :Files<CR>
|
||||
|
||||
" Resize window
|
||||
nnoremap L :vertical resize +5<CR>
|
||||
nnoremap H :vertical resize -5<CR>
|
||||
nnoremap J :res +5<CR>
|
||||
nnoremap K :res -5<CR>
|
||||
|
||||
" Split window
|
||||
nnoremap _ :vsp <CR>
|
||||
nnoremap - :split <CR>
|
||||
|
||||
" Reload file
|
||||
nnoremap <F5> :edit <CR>
|
||||
nnoremap <Leader><F5> :edit! <CR>
|
||||
|
||||
" Copy using <Leader> anc c
|
||||
nnoremap <Leader>c :w !xclip<CR><CR>
|
||||
vnoremap <Leader>c "*y
|
||||
|
||||
" livepreviewer
|
||||
let g:livepreview_previewer = 'mupdf'
|
||||
|
||||
" markdown preview
|
||||
let g:mkdp_browser = '/home/yorune/.local/bin/browser-x'
|
||||
let g:mkdp_echo_preview_url = 1
|
||||
let g:markdown_fenced_languages = ['html', 'python', 'bash=sh']
|
||||
let g:markdown_minlines = 1
|
||||
autocmd FileType markdown set foldexpr=NestedMarkdownFolds()
|
||||
|
||||
au BufNewFile,BufRead *.conf setfiletype conf
|
||||
|
||||
" line numbers
|
||||
set number
|
||||
@@ -48,14 +151,16 @@ set title
|
||||
|
||||
" indent
|
||||
set backspace=indent,eol,start
|
||||
"set list listchars=nbsp:¬,tab:»·,trail:·,extends:>
|
||||
set list listchars=tab:\│\ ,trail:·
|
||||
let g:indentLine_char_list = ['│', '│', '│', '│']
|
||||
set shiftwidth=4
|
||||
set expandtab
|
||||
set list listchars=nbsp:¬,tab:»·,trail:·,extends:>
|
||||
|
||||
" editing
|
||||
runtime! macros/matchit.vim
|
||||
set backspace=indent,eol,start
|
||||
|
||||
" visual feedback
|
||||
set laststatus=2
|
||||
set showmode
|
||||
set showcmd
|
||||
|
||||
@@ -71,482 +176,10 @@ set smartcase
|
||||
set ic
|
||||
|
||||
" cursor
|
||||
set guicursor=
|
||||
set guicursor+=a:blinkon0
|
||||
let &t_SI = "\<esc>[6 q"
|
||||
let &t_SR = "\<esc>[6 q"
|
||||
let &t_EI = "\<esc>[6 q"
|
||||
let &t_EI = "\<esc>[2 q"
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Plugins
|
||||
""""""""""""""""""""""""""""""""
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
" Markdown
|
||||
Plug 'tpope/vim-markdown'
|
||||
|
||||
" Live-preview
|
||||
Plug 'nmante/vim-latex-live-preview'
|
||||
|
||||
" Goyo plugin for writing mutt mail
|
||||
Plug 'junegunn/goyo.vim'
|
||||
|
||||
" Themes
|
||||
Plug 'gruvbox-community/gruvbox', { 'as': 'gruvbox'}
|
||||
Plug 'Mofiqul/dracula.nvim'
|
||||
|
||||
" Fzf plugin
|
||||
Plug 'junegunn/fzf.vim'
|
||||
Plug 'junegunn/fzf'
|
||||
|
||||
" CSS
|
||||
Plug 'ap/vim-css-color'
|
||||
|
||||
" Copilot
|
||||
Plug 'github/copilot.vim'
|
||||
|
||||
" PyRight
|
||||
Plug 'sakhnik/nvim-gdb', { 'do': ':!./install.sh' }
|
||||
|
||||
" Ansible yaml
|
||||
Plug 'pearofducks/ansible-vim', { 'do': './UltiSnips/generate.sh' }
|
||||
Plug 'Yggdroot/indentLine'
|
||||
|
||||
" Terraform
|
||||
Plug 'hashivim/vim-terraform'
|
||||
|
||||
" GoLang
|
||||
Plug 'fatih/vim-go'
|
||||
|
||||
" Multiple cursors
|
||||
Plug 'terryma/vim-multiple-cursors'
|
||||
|
||||
" Enable gentoo-syntax in vim
|
||||
Plug 'gentoo/gentoo-syntax'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'junegunn/vim-easy-align'
|
||||
|
||||
" Git tool
|
||||
Plug 'tpope/vim-fugitive'
|
||||
|
||||
" Prettier
|
||||
Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile --production' }
|
||||
|
||||
" Debug
|
||||
Plug 'puremourning/vimspector'
|
||||
Plug 'mfussenegger/nvim-dap'
|
||||
|
||||
" LSP
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'hrsh7th/nvim-cmp'
|
||||
Plug 'hrsh7th/cmp-buffer'
|
||||
Plug 'hrsh7th/cmp-path'
|
||||
Plug 'hrsh7th/cmp-cmdline'
|
||||
Plug 'hrsh7th/cmp-nvim-lsp'
|
||||
Plug 'saadparwaiz1/cmp_luasnip'
|
||||
Plug 'L3MON4D3/LuaSnip'
|
||||
Plug 'sbdchd/neoformat'
|
||||
|
||||
Plug 'hrsh7th/cmp-vsnip'
|
||||
Plug 'hrsh7th/vim-vsnip'
|
||||
Plug 'hrsh7th/vim-vsnip-integ'
|
||||
|
||||
" Telescope
|
||||
Plug 'nvim-lua/plenary.nvim'
|
||||
Plug 'nvim-telescope/telescope.nvim'
|
||||
|
||||
" Tree
|
||||
Plug 'nvim-tree/nvim-web-devicons'
|
||||
Plug 'nvim-tree/nvim-tree.lua'
|
||||
|
||||
" SHFMT
|
||||
Plug 'z0mbix/vim-shfmt', { 'for': 'sh' }
|
||||
|
||||
" Mikrotik
|
||||
Plug 'zainin/vim-mikrotik'
|
||||
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
Plug 'nvim-treesitter/nvim-treesitter-context'
|
||||
|
||||
" Autopair
|
||||
Plug 'windwp/nvim-autopairs'
|
||||
|
||||
" AI
|
||||
Plug 'folke/snacks.nvim'
|
||||
Plug 'coder/claudecode.nvim'
|
||||
|
||||
call plug#end()
|
||||
|
||||
" LUA
|
||||
lua<<EOF
|
||||
vim.filetype.add({
|
||||
-- Ansible
|
||||
pattern = {
|
||||
[".*playbooks/.*%.ya?ml"] = "yaml.ansible",
|
||||
[".*tasks/.*%.ya?ml"] = "yaml.ansible",
|
||||
[".*handlers/.*%.ya?ml"] = "yaml.ansible",
|
||||
[".*roles/.*/.*%.ya?ml"] = "yaml.ansible",
|
||||
},
|
||||
-- Docker Compose + GitLab CI (merged into one filename table)
|
||||
filename = {
|
||||
["docker-compose.yml"] = "yaml.docker-compose",
|
||||
["docker-compose.yaml"] = "yaml.docker-compose",
|
||||
[".gitlab-ci.yml"] = "yaml.gitlab",
|
||||
[".gitlab-ci.yaml"] = "yaml.gitlab",
|
||||
},
|
||||
})
|
||||
|
||||
-- capabilities for nvim-cmp
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
|
||||
-- Prefer LspAttach instead of per-server on_attach
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
callback = function(args)
|
||||
local bufnr = args.buf
|
||||
|
||||
vim.bo[bufnr].omnifunc = 'v:lua.vim.lsp.omnifunc'
|
||||
|
||||
vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set('n', 'gd', vim.lsp.buf.definition, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set('n', '<space>K', vim.lsp.buf.hover, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set('n', 'gi', vim.lsp.buf.implementation, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set('n', 'ge', vim.diagnostic.setqflist, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, { buffer = bufnr, silent = true })
|
||||
vim.keymap.set('n', 'gr', vim.lsp.buf.references, { buffer = bufnr, silent = true })
|
||||
end,
|
||||
})
|
||||
|
||||
local border = 'rounded'
|
||||
|
||||
vim.lsp.config('*', {
|
||||
capabilities = capabilities,
|
||||
})
|
||||
|
||||
vim.diagnostic.config({
|
||||
float = { border = border },
|
||||
})
|
||||
|
||||
vim.lsp.handlers["textDocument/hover"] = function(err, result, ctx, config)
|
||||
config = config or {}
|
||||
config.border = border
|
||||
return vim.lsp.handlers.hover(err, result, ctx, config)
|
||||
end
|
||||
|
||||
vim.lsp.handlers["textDocument/signatureHelp"] = function(err, result, ctx, config)
|
||||
config = config or {}
|
||||
config.border = border
|
||||
return vim.lsp.handlers.signature_help(err, result, ctx, config)
|
||||
end
|
||||
|
||||
-- Server-specific overrides
|
||||
vim.lsp.config('yamlls', {
|
||||
settings = {
|
||||
json = {
|
||||
schemas = {
|
||||
["https://raw.githubusercontent.com/quantumblacklabs/kedro/develop/static/jsonschema/kedro-catalog-0.17.json"]= "conf/**/*catalog*",
|
||||
["https://json.schemastore.org/github-workflow.json"] = "/.github/workflows/*",
|
||||
["https://github.com/ansible/schemas/blob/main/f/ansible.json"] = "*.yaml,*.yml",
|
||||
}
|
||||
},
|
||||
yaml = { keyOrdering = false },
|
||||
},
|
||||
})
|
||||
|
||||
vim.lsp.config('gopls', {
|
||||
cmd = {"gopls", "serve"},
|
||||
filetypes = { "go", "gomod", "gowork", "gotmpl" },
|
||||
settings = {
|
||||
gopls = {
|
||||
analyses = { unusedparams = true },
|
||||
staticcheck = true,
|
||||
linksInHover = false,
|
||||
codelenses = {
|
||||
generate = true,
|
||||
gc_details = true,
|
||||
regenerate_cgo = true,
|
||||
tidy = true,
|
||||
upgrade_depdendency = true,
|
||||
vendor = true,
|
||||
},
|
||||
completeUnimported = true,
|
||||
usePlaceholders = true,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
vim.lsp.config('ruff', {})
|
||||
|
||||
-- Enable servers (remove 'solargraph' if not using Ruby)
|
||||
vim.lsp.enable({
|
||||
'clangd', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph',
|
||||
'terraformls', 'tflint', 'marksman', 'rust_analyzer', 'ruff',
|
||||
})
|
||||
|
||||
-- nvim-cmp setup with Tab support
|
||||
local cmp = require('cmp')
|
||||
cmp.setup({
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
['<C-Space>'] = cmp.mapping.complete(),
|
||||
|
||||
-- Tab: indent on empty/whitespace-only lines, trigger completion elsewhere
|
||||
['<Tab>'] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_next_item()
|
||||
elseif vim.fn["copilot#GetDisplayedSuggestion"]().text ~= "" then
|
||||
vim.fn.feedkeys(vim.fn["copilot#Accept"](""), "n")
|
||||
elseif vim.api.nvim_get_current_line():match("^%s*$") then
|
||||
fallback()
|
||||
else
|
||||
cmp.complete()
|
||||
end
|
||||
end, { 'i', 's' }),
|
||||
|
||||
-- Shift-Tab: go to previous completion item or fallback
|
||||
['<S-Tab>'] = cmp.mapping(function(fallback)
|
||||
if cmp.visible() then
|
||||
cmp.select_prev_item()
|
||||
else
|
||||
fallback()
|
||||
end
|
||||
end, { 'i', 's' }),
|
||||
|
||||
-- Enter to confirm selection
|
||||
['<CR>'] = cmp.mapping.confirm({ select = true }),
|
||||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'luasnip' },
|
||||
{ name = 'buffer' },
|
||||
{ name = 'path' },
|
||||
}),
|
||||
})
|
||||
|
||||
vim.keymap.set("t", "<C-w>h", "<C-\\><C-n><C-w>h", { desc = "Move to left window" })
|
||||
vim.keymap.set("t", "<C-w>l", "<C-\\><C-n><C-w>l", { desc = "Move to right window" })
|
||||
vim.keymap.set("t", "<C-w>p", "<C-\\><C-n><C-w>p", { desc = "Focus previous window" })
|
||||
|
||||
require("claudecode").setup()
|
||||
EOF
|
||||
|
||||
" Added popout window to see diagnostic
|
||||
set updatetime=250
|
||||
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
|
||||
|
||||
" Copilot
|
||||
let g:copilot_no_tab_map = v:true
|
||||
|
||||
" Neoformat
|
||||
let g:neoformat_try_formatprg = 1
|
||||
let g:neoformat_basic_format_trim = 1
|
||||
let g:neoformat_only_msg_on_error = 1
|
||||
" autocmd BufWritePre * silent! undojoin | Neoformat
|
||||
|
||||
let g:neoformat_python_ruff = {
|
||||
\ 'exe': 'ruff',
|
||||
\ 'stdin': 1,
|
||||
\ 'args': ['format', '--line-length=80', '-q', '-'],
|
||||
\ }
|
||||
let g:neoformat_enabled_python = ['ruff']
|
||||
|
||||
" Terraform
|
||||
let g:terraform_fmt_on_save=1
|
||||
let g:terraform_align=1
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
" Enable show hidden in NerdTree
|
||||
let g:NERDTreeShowHidden=1
|
||||
|
||||
" latex
|
||||
let g:tex_flavor = "latex"
|
||||
|
||||
" Debug
|
||||
let g:vimspector_enable_mappings = 'VISUAL_STUDIO'
|
||||
let g:vimspector_install_gadgets = [ 'debugpy', 'vscode-go', 'CodeLLDB', 'vscode-node-debug2' ]
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Theme
|
||||
""""""""""""""""""""""""""""""""
|
||||
" colorscheme gruvbox
|
||||
" colorscheme default
|
||||
colorscheme dracula
|
||||
let g:gruvbox_invert_selection='0'
|
||||
let g:gruvbox_contrast_dark = 'hard'
|
||||
set background=dark
|
||||
" hi Normal ctermbg=NONE
|
||||
hi Pmenu ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#64666d gui=NONE
|
||||
hi PmenuSel ctermfg=NONE ctermbg=246 cterm=NONE guifg=NONE guibg=#204a87 gui=NONE
|
||||
hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE
|
||||
hi CursorLine ctermbg=235
|
||||
hi DiffAdd cterm=BOLD ctermfg=NONE ctermbg=22
|
||||
hi DiffDelete cterm=BOLD ctermfg=NONE ctermbg=52
|
||||
hi DiffChange cterm=BOLD ctermfg=NONE ctermbg=23
|
||||
hi DiffText cterm=BOLD ctermfg=NONE ctermbg=23
|
||||
set t_ZH="\e[3m"
|
||||
set t_ZR="\e[23m"
|
||||
highlight Comment cterm=italic gui=italic
|
||||
highlight htmlArg gui=italic cterm=italic
|
||||
|
||||
" column
|
||||
set textwidth=80
|
||||
set colorcolumn=80
|
||||
highlight ColorColumn ctermbg=236
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Status Line
|
||||
""""""""""""""""""""""""""""""""
|
||||
function! GitBranch()
|
||||
return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
|
||||
endfunction
|
||||
|
||||
function! StatuslineGit()
|
||||
let l:branchname = GitBranch()
|
||||
return strlen(l:branchname) > 0?' '.l:branchname.' ':''
|
||||
endfunction
|
||||
|
||||
set laststatus=3
|
||||
|
||||
lua <<EOF
|
||||
vim.o.statusline = table.concat({
|
||||
"%#IncSearch#",
|
||||
"%{&filetype!=#''?' ['.&filetype..'] ':' '}",
|
||||
"%{&modified?'[+] ':''}",
|
||||
"%#CursorLineNr#",
|
||||
" %F",
|
||||
"%=",
|
||||
"%#CursorLineNr#",
|
||||
"%{StatuslineGit()}",
|
||||
"%#Search#",
|
||||
" %l/%L",
|
||||
" [%c]",
|
||||
})
|
||||
EOF
|
||||
|
||||
" Disable godoc keys
|
||||
let g:go_doc_keywordprg_enabled = 0
|
||||
set completeopt-=preview
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Keyboard shortcuts
|
||||
""""""""""""""""""""""""""""""""
|
||||
let mapleader = "\<Space>"
|
||||
nmap <leader>2 :w!<cr>
|
||||
|
||||
" Adding print message
|
||||
autocmd FileType python nmap <leader>f i print("--------DEBUG--------")<CR>print()<CR>print("--------END DEBUG--------")<UP><LEFT>
|
||||
autocmd FileType sh nmap <leader>f i echo -e "--------DEBUG--------"<CR>echo -e ""<CR>echo -e "--------END DEBUG--------"<UP><LEFT>
|
||||
|
||||
" Adding commentary
|
||||
xmap <leader>c <Plug>Commentary
|
||||
nmap <leader>c <Plug>Commentary
|
||||
omap <leader>c <Plug>Commentary
|
||||
nmap <leader>c <Plug>CommentaryLine
|
||||
|
||||
xmap <C-_> <Plug>Commentary
|
||||
nmap <C-_> <Plug>Commentary
|
||||
omap <C-_> <Plug>Commentary
|
||||
nmap <C-_> <Plug>CommentaryLine
|
||||
|
||||
" Better tab (visual mode only - insert mode Tab is handled by nvim-cmp above)
|
||||
vnoremap <Tab> >
|
||||
vnoremap <S-Tab> <
|
||||
|
||||
" Better word
|
||||
nmap yw vey
|
||||
|
||||
" Select all text
|
||||
nmap <C-a> gg<S-v>G
|
||||
|
||||
" Telescope
|
||||
nmap <Leader>e <cmd>Telescope buffers<cr>
|
||||
nmap <Leader>w <cmd>Telescope find_files<cr>
|
||||
nmap <Leader>q <cmd>Telescope live_grep<cr>
|
||||
nmap <Leader>g <cmd>Telescope git_branches<cr>
|
||||
nmap <Leader>a <cmd>Telescope diagnostics<cr>
|
||||
|
||||
" Resize window
|
||||
nnoremap Ó :vertical resize -5<CR>
|
||||
nnoremap Ô :res -5<CR>
|
||||
nnoremap ū :res +5<CR>
|
||||
nnoremap Ł :vertical resize +5<CR>
|
||||
|
||||
" Split window
|
||||
nnoremap _ :vsp <CR>
|
||||
nnoremap - :split <CR>
|
||||
|
||||
" Reload file
|
||||
nnoremap <F5> :edit <CR>
|
||||
nnoremap <Leader><F5> :edit! <CR>
|
||||
|
||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||
|
||||
" Moving line up or down using alt
|
||||
nnoremap <A-Up> :m-2<CR>
|
||||
nnoremap <A-Down> :m+<CR>
|
||||
inoremap <A-Up> <Esc>:m-2<CR>
|
||||
inoremap <A-Down> <Esc>:m+<CR>
|
||||
vnoremap <A-Down> :m '>+1<CR>gv=gv
|
||||
vnoremap <A-Up> :m '<-2<CR>gv=gv
|
||||
|
||||
nnoremap Ż :m-2<CR>
|
||||
nnoremap ∆ :m+<CR>
|
||||
vnoremap ∆ :m '>+1<CR>gv=gv
|
||||
vnoremap Ż :m '<-2<CR>gv=gv
|
||||
|
||||
nnoremap <A-k> :m-2<CR>
|
||||
nnoremap <A-j> :m+<CR>
|
||||
inoremap <A-k> <Esc>:m-2<CR>
|
||||
inoremap <A-j> <Esc>:m+<CR>
|
||||
vnoremap <A-j> :m '>+1<CR>gv=gv
|
||||
vnoremap <A-k> :m '<-2<CR>gv=gv
|
||||
|
||||
" Better replace
|
||||
nnoremap <Leader>s :%s//g<Left><Left>
|
||||
vnoremap <Leader>s :s//g<Left><Left>
|
||||
|
||||
" Better adding into beginning and ending line
|
||||
vnoremap F <C-v>$A
|
||||
vnoremap f <C-v>0I
|
||||
|
||||
" Better management of tabs
|
||||
nnoremap <C-t> :tabnew<CR>
|
||||
|
||||
nnoremap <F7> :tabprevious<CR>
|
||||
nnoremap <F8> :tabnext<CR>
|
||||
inoremap <F7> <Esc>:tabprevious<CR>i
|
||||
inoremap <F8> <Esc>:tabnext<CR>i
|
||||
|
||||
nnoremap <Leader>k :tabprevious<CR>
|
||||
nnoremap <Leader>j :tabnext<CR>
|
||||
|
||||
inoremap <C-t> <Esc>:tabnew<CR>
|
||||
|
||||
" Better moving
|
||||
nnoremap J }
|
||||
nnoremap K {
|
||||
vnoremap J }
|
||||
vnoremap K {
|
||||
nnoremap <C-h> <C-w>h
|
||||
nnoremap <C-j> <C-w>j
|
||||
nnoremap <C-k> <C-w>k
|
||||
nnoremap <C-l> <C-w>l
|
||||
tnoremap <C-h> <C-\><C-n><C-w>h
|
||||
tnoremap <C-j> <C-\><C-n><C-w>j
|
||||
tnoremap <C-k> <C-\><C-n><C-w>k
|
||||
tnoremap <C-l> <C-\><C-n><C-w>l
|
||||
|
||||
" Copy into system
|
||||
noremap <Leader>y "*y
|
||||
noremap <Leader>p "*p
|
||||
|
||||
" Code
|
||||
map <Leader><Tab> Vgaip= <CR>
|
||||
|
||||
" Multiple cursors
|
||||
" multiple cursors
|
||||
let g:multi_cursor_start_word_key = '<C-n>'
|
||||
let g:multi_cursor_select_all_word_key = '<A-n>'
|
||||
let g:multi_cursor_start_key = 'g<C-n>'
|
||||
@@ -556,166 +189,72 @@ let g:multi_cursor_prev_key = '<C-p>'
|
||||
let g:multi_cursor_skip_key = '<C-x>'
|
||||
let g:multi_cursor_quit_key = '<Esc>'
|
||||
|
||||
" Others
|
||||
" colors
|
||||
"colorscheme zenburn
|
||||
"colorscheme desert
|
||||
colorscheme gruvbox
|
||||
set bg=dark
|
||||
"hi Normal ctermbg=NONE
|
||||
hi Pmenu ctermfg=NONE ctermbg=236 cterm=NONE guifg=NONE guibg=#64666d gui=NONE
|
||||
hi PmenuSel ctermfg=NONE ctermbg=246 cterm=NONE guifg=NONE guibg=#204a87 gui=NONE
|
||||
hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE
|
||||
hi CursorLine ctermbg=235
|
||||
hi DiffAdd cterm=BOLD ctermfg=NONE ctermbg=22
|
||||
hi DiffDelete cterm=BOLD ctermfg=NONE ctermbg=52
|
||||
hi DiffChange cterm=BOLD ctermfg=NONE ctermbg=23
|
||||
hi DiffText cterm=BOLD ctermfg=NONE ctermbg=23
|
||||
|
||||
" columne
|
||||
set textwidth=80
|
||||
set colorcolumn=80
|
||||
" highlight ColorColumn ctermbg=235
|
||||
highlight ColorColumn ctermbg=236
|
||||
|
||||
" map
|
||||
nnoremap S :%s//g<Left><Left>
|
||||
nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown<CR><CR>
|
||||
map <C-d> :NvimTreeToggle<CR>
|
||||
nnoremap <leader>r :NvimTreeRefresh<CR>
|
||||
nnoremap <leader>n :NvimTreeFindFile<CR>
|
||||
map <C-d> :NERDTreeToggle<CR>
|
||||
nnoremap <silent> <C-t> :tabnew <CR>
|
||||
nnoremap <F11> :Goyo <CR>
|
||||
nnoremap <F7> :tabprevious<CR>
|
||||
nnoremap <F8> :tabnext<CR>
|
||||
|
||||
"" Moving line up or down using alt
|
||||
nnoremap <A-Up> :m-2<CR>
|
||||
nnoremap <A-Down> :m+<CR>
|
||||
inoremap <A-Up> <Esc>:m-2<CR>
|
||||
inoremap <A-Down> <Esc>:m+<CR>
|
||||
vnoremap <A-Down> :m '>+1<CR>gv=gv
|
||||
vnoremap <A-Up> :m '<-2<CR>gv=gv
|
||||
|
||||
nnoremap <A-k> :m-2<CR>
|
||||
nnoremap <A-j> :m+<CR>
|
||||
inoremap <A-k> <Esc>:m-2<CR>
|
||||
inoremap <A-j> <Esc>:m+<CR>
|
||||
vnoremap <A-j> :m '>+1<CR>gv=gv
|
||||
vnoremap <A-k> :m '<-2<CR>gv=gv
|
||||
|
||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||
map <F3> :setlocal spell! spelllang=en<CR>
|
||||
|
||||
map <F3> :setlocal spell! spelllang=en_gb<CR>
|
||||
map <F4> :setlocal spell! spelllang=pl<CR>
|
||||
|
||||
" Human Errors
|
||||
:command! W w
|
||||
:command! Q q
|
||||
:command! Wq wq
|
||||
:command! X x
|
||||
" debugger
|
||||
map <F12> :w<CR>:terminal ~/.local/bin/debugger '%:p'<CR>
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Custom functions
|
||||
""""""""""""""""""""""""""""""""
|
||||
lua <<EOF
|
||||
function go_org_imports(wait_ms)
|
||||
local params = vim.lsp.util.make_range_params()
|
||||
params.context = {only = {"source.organizeImports"}}
|
||||
local result = vim.lsp.buf_request_sync(0, "textDocument/codeAction", params, wait_ms)
|
||||
for cid, res in pairs(result or {}) do
|
||||
for _, r in pairs(res.result or {}) do
|
||||
if r.edit then
|
||||
local enc = (vim.lsp.get_client_by_id(cid) or {}).offset_encoding or "utf-16"
|
||||
vim.lsp.util.apply_workspace_edit(r.edit, enc)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
EOF
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Files
|
||||
""""""""""""""""""""""""""""""""
|
||||
|
||||
" Bash
|
||||
if executable('shfmt')
|
||||
let &l:formatprg='shfmt -i ' . &l:shiftwidth . ' -ln posix -sr -ci -s'
|
||||
endif
|
||||
|
||||
let g:shfmt_extra_args = '-i 4 -ci -sr -s'
|
||||
let g:shfmt_fmt_on_save = 1
|
||||
let g:shfmt_opt="-ci"
|
||||
|
||||
" Python
|
||||
autocmd BufRead,BufNewFile *.py set textwidth=0
|
||||
autocmd BufRead,BufNewFile *.py set fo-=t
|
||||
autocmd BufWritePre *.py silent! undojoin | Neoformat ruff
|
||||
noremap <Leader>f :silent! undojoin \| Neoformat ruff <CR> :w<CR>
|
||||
|
||||
" Newsboat
|
||||
autocmd BufRead,BufNewFile urls set textwidth=0
|
||||
|
||||
" Latex
|
||||
" latex
|
||||
let g:tex_flavor = "latex"
|
||||
autocmd BufWritePost *.tex silent! execute "!pdflatex --shell-escape -synctex=1 -interaction=nonstopmode % > /dev/null " | redraw!
|
||||
autocmd BufWritePost *.tex silent! execute "!latexmk -pdf -silent % > /dev/null" | redraw!
|
||||
autocmd BufWritePost *.tex silent! execute "!rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw!
|
||||
autocmd BufWritePost *.tex silent! execute "!pkill -HUP mupdf > /dev/null" | redraw!
|
||||
autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm *.toc *.idx *.lof *.lot *.synctex.gz *.aux *.fdb_latexmk *.fls *.log *.out > /dev/null" | redraw!
|
||||
autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" | redraw!
|
||||
|
||||
" Mutt
|
||||
" mutt
|
||||
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
|
||||
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
|
||||
autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x!<CR>
|
||||
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
|
||||
|
||||
" Yaml
|
||||
autocmd BufRead,BufNewFile *.yaml,*.yml let g:indentLine_enabled = 1
|
||||
autocmd BufRead,BufNewFile *.yaml,*.yml let g:indentLine_char = '⦙'
|
||||
autocmd BufWritePre *.yaml,*.yml silent! undojoin | Neoformat prettier
|
||||
|
||||
" JSON
|
||||
autocmd BufWritePre *.json silent! undojoin | Neoformat prettier
|
||||
|
||||
" GoLang
|
||||
autocmd BufRead *.go set noexpandtab
|
||||
autocmd BufWritePre *.go lua go_org_imports()
|
||||
let g:go_def_mapping_enabled = 0
|
||||
let g:go#fmt#autosave = v:true
|
||||
autocmd BufWritePre *.go silent! undojoin | Neoformat
|
||||
autocmd BufWritePre *.gomod silent! undojoin | Neoformat
|
||||
|
||||
" Conf
|
||||
au BufNewFile,BufRead *.conf setfiletype conf
|
||||
|
||||
" Mikrotik
|
||||
au BufNewFile,BufRead *.mikrotik setfiletype routeros
|
||||
|
||||
" Ebuild
|
||||
au BufNewFile,BufRead,BufWritePre *.ebuild let g:shfmt_extra_args = '-ci -sr -s'
|
||||
|
||||
" TOML
|
||||
autocmd BufWritePre *.toml silent! undojoin | Neoformat taplo
|
||||
|
||||
" Terraform
|
||||
autocmd BufWritePre *.tf lua vim.lsp.buf.format()
|
||||
autocmd BufWritePre *.tfvars lua vim.lsp.buf.format()
|
||||
|
||||
" Markdown
|
||||
autocmd BufRead,BufNewFile *.md setlocal spell spelllang=en_us
|
||||
autocmd BufWritePre *.md silent! undojoin | Neoformat mdformat
|
||||
|
||||
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
autocmd BufWritepre * %s/\n\+\%$//e
|
||||
|
||||
" highlight the visual selection after pressing enter.
|
||||
xnoremap <silent> <cr> "*y:silent! let searchTerm = '\V'.substitute(escape(@*, '\/'), "\n", '\\n', "g") <bar> let @/ = searchTerm <bar> echo '/'.@/ <bar> call histadd("search", searchTerm) <bar> set hls<cr>
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" FZF
|
||||
""""""""""""""""""""""""""""""""
|
||||
let $FZF_DEFAULT_COMMAND = 'find . -type f -not -path "*/\.git/*" -not -path "*/\.local/share/nvim/*" -not -path "./Library/*" '
|
||||
command! -bang -nargs=* Find call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(<q-args>), 1, <bang>0)
|
||||
command! -bang -nargs=* FindCurrentWord call fzf#vim#grep('rg --column --line-number --no-heading --fixed-strings --ignore-case --hidden --follow --color "always" '.shellescape(expand('<cword>')), 1, <bang>0)
|
||||
set grepprg=rg\ --vimgrep
|
||||
|
||||
" Custom functions "
|
||||
function! RemoveForti()
|
||||
:%g/set uuid .*/d
|
||||
:%g/set comment .*/d
|
||||
:%s/ \+//g
|
||||
:%s/edit \(\d\{1,}\)/edit 0/g
|
||||
:g/^$/d
|
||||
endfunction
|
||||
|
||||
function! RemoveFortiAddresses()
|
||||
:e!
|
||||
:%g/set uuid .*/d
|
||||
:%g/set comment .*/d
|
||||
:%s/ \+//g
|
||||
:%s/edit \(\d\{1,}\)/edit 0/g
|
||||
:%s/next\n/set allow-routing enable\rnext\r/g
|
||||
:g/^$/d
|
||||
:%!uniq
|
||||
:w!
|
||||
endfunction
|
||||
|
||||
function! BlurForti()
|
||||
:%g/set uuid .*/d
|
||||
:%g/set description .*/d
|
||||
:%g/set comment .*/d
|
||||
:%g/set comments .*/d
|
||||
:%s/username .*/username "XXXXXXXXXXXXXXXXXXXXXXX"/g
|
||||
:%s/dn .*/dn "XXXXXXXXXXXXXXXXXXXXXXX"/g
|
||||
:%s/psksecret ENC .*/psksecret XXXXXXXXXXXXXXXXXXXXXXX/g
|
||||
:%s/password ENC .*/password XXXXXXXXXXXXXXXXXXXXXXX/g
|
||||
:%s/passwd ENC .*/passwd XXXXXXXXXXXXXXXXXXXXXXX/g
|
||||
:%s/group-name .*/group-name "XXXXXXXXXXXXXXXXXXXXXXX"/g
|
||||
:%s/ssh-rsa .*/ssh-rsa XXXXXXXXXXXXXXXXXXXXXXX/g
|
||||
:%s/-----BEGIN OPENSSH PRIVATE KEY.*----/-----BEGIN OPENSSH PRIVATE KEY -----\rXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/g
|
||||
:%s/-----BEGIN CERTIFICATE.*----/-----BEGIN CERTIFICATE -----\rXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/g
|
||||
:%s/-----BEGIN ENCRYPTED PRIVATE KEY.*----/-----BEGIN ENCRYPTED PRIVATE KEY -----\rXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/g
|
||||
:%s/"VPN_.*"/"VPN_XXXXX"/g
|
||||
:%s/\v(\d{1,3}\.){3}\d{1,3}/X.X.X.X/g
|
||||
endfunction
|
||||
|
||||
function! ColoursFortiSSL()
|
||||
:%s/next\n/set color 23\rset allow-routing enable\rnext\r/g
|
||||
endfunction
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[global]
|
||||
break-system-packages = true
|
||||
@@ -1,4 +1,4 @@
|
||||
ext jpg = open -a Preview "$@"
|
||||
ext jpg = feh --scale-down "$@"
|
||||
#ext doc = openoffice4 "$@"
|
||||
#ext odt = openoffice4 "$@"
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
default-stream "1080p60,1080p,720p60,720p"
|
||||
default-stream best
|
||||
hls-live-edge 2
|
||||
hls-segment-stream-data
|
||||
player-no-close
|
||||
player=mpv
|
||||
retry-max 100
|
||||
retry-open 10
|
||||
retry-streams 10
|
||||
stream-segment-threads=4
|
||||
twitch-disable-ads
|
||||
twitch-low-latency
|
||||
@@ -0,0 +1,14 @@
|
||||
(custom-set-variables
|
||||
;; custom-set-variables was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(markdown-command "/usr/bin/pandoc")
|
||||
'(package-selected-packages
|
||||
'(org-bullets zenburn-theme yaml-mode use-package treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil switch-window smex robe python-black ox-reveal multiple-cursors move-text lsp-java htmlize helm flymake-shellcheck flymake-shell flymake-ruby flycheck-haskell flycheck-bashate dockerfile-mode dired-sidebar company-jedi company-ansible auto-complete-clang apache-mode ansible-doc ansible)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
)
|
||||
+21
-59
@@ -14,15 +14,18 @@
|
||||
(package-initialize)
|
||||
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
|
||||
|
||||
;; UTF-8
|
||||
(set-language-environment "UTF-8")
|
||||
|
||||
;; Remove welcome screen
|
||||
(setq inhibit-startup-screen t)
|
||||
|
||||
;; Disable menu
|
||||
(menu-bar-mode 0)
|
||||
|
||||
;; Enable IDO mode
|
||||
(setq ido-enable-flex-matching t)
|
||||
;;(setq ido-everywhere t)
|
||||
(ido-mode 1)
|
||||
(global-set-key (kbd "C-x b") 'ido-switch-buffer)
|
||||
|
||||
;; Remove working cl
|
||||
(require 'cl-lib)
|
||||
(setq byte-compile-warnings '(cl-functions))
|
||||
@@ -37,24 +40,6 @@
|
||||
(package-install 'use-package)
|
||||
)
|
||||
|
||||
;; Packages list refresh
|
||||
(when (not package-archive-contents)
|
||||
(package-refresh-contents))
|
||||
|
||||
;; Auto Package Update
|
||||
(use-package auto-package-update
|
||||
:ensure t
|
||||
:config
|
||||
(progn
|
||||
(setq
|
||||
auto-package-update-delete-old-verions t
|
||||
auto-package-update-interval 5
|
||||
)
|
||||
(auto-package-update-maybe)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
;; Set path to store "custom-set"
|
||||
(setq custom-file "~/.emacs.d/emacs-custom.el")
|
||||
|
||||
@@ -94,26 +79,6 @@
|
||||
(setq browse-url-browser-function 'browse-url-generic
|
||||
browse-url-generic-program "browser-x")
|
||||
|
||||
;; Amx
|
||||
(use-package amx
|
||||
:ensure t
|
||||
:after ivy
|
||||
:custom
|
||||
(
|
||||
(amx-backend 'ivy)
|
||||
(amx-show-key-bindings t)
|
||||
)
|
||||
:config
|
||||
(amx-mode t)
|
||||
)
|
||||
|
||||
;; Counsel
|
||||
(use-package counsel
|
||||
:ensure t
|
||||
)
|
||||
|
||||
|
||||
|
||||
;; Custom theme
|
||||
(add-to-list 'custom-theme-load-path
|
||||
"~/.emacs.d/plugins/")
|
||||
@@ -142,6 +107,15 @@
|
||||
(message "Monz not available; not configuring") )
|
||||
(setq default-input-method "japanese-mozc")
|
||||
|
||||
;; Enable Smex
|
||||
(use-package smex
|
||||
:ensure t
|
||||
:init
|
||||
(smex-initialize)
|
||||
:bind
|
||||
("M-x" . smex)
|
||||
)
|
||||
|
||||
;; reveal dependency
|
||||
(use-package htmlize
|
||||
:ensure t
|
||||
@@ -193,20 +167,20 @@
|
||||
(defun rc/get-default-font ()
|
||||
(cond
|
||||
((eq system-type 'windows-nt) "Consolas-13")
|
||||
((eq system-type 'gnu/linux) "xos4 Terminus (TTF) Medium 16")))
|
||||
((eq system-type 'gnu/linux) "xos4 Terminus Bold 16")))
|
||||
|
||||
(add-to-list 'default-frame-alist `(font . ,(rc/get-default-font)))
|
||||
|
||||
;; Theme
|
||||
;;(use-package gruvbox-theme
|
||||
;;(use-package dracula-theme
|
||||
;; :ensure t
|
||||
;; :config
|
||||
;; (load-theme 'gruvbox-dark-hard t))
|
||||
;; (load-theme 'dracula t))
|
||||
|
||||
(use-package dracula-theme
|
||||
(use-package zenburn-theme
|
||||
:ensure t
|
||||
:config
|
||||
(load-theme 'dracula t))
|
||||
(load-theme 'zenburn t))
|
||||
|
||||
;; Sitebar dirred
|
||||
(use-package dired-sidebar
|
||||
@@ -219,19 +193,15 @@
|
||||
;; Smex
|
||||
(require 'smex)
|
||||
(smex-initialize)
|
||||
(global-set-key (kbd "M-x") 'counsel-M-x)
|
||||
(global-set-key (kbd "M-x") 'smex)
|
||||
|
||||
;;buffer-move
|
||||
(require 'buffer-move)
|
||||
(global-set-key (kbd "C-x b") 'counsel-buffer-or-recentf)
|
||||
(global-set-key (kbd "<C-S-up>") 'buf-move-up)
|
||||
(global-set-key (kbd "<C-S-down>") 'buf-move-down)
|
||||
(global-set-key (kbd "<C-S-left>") 'buf-move-left)
|
||||
(global-set-key (kbd "<C-S-right>") 'buf-move-right)
|
||||
|
||||
;; Files
|
||||
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
|
||||
|
||||
;; Multiple-cursors
|
||||
(use-package multiple-cursors
|
||||
:ensure t
|
||||
@@ -475,8 +445,6 @@
|
||||
:config (treemacs-set-scope-type 'Perspectives))
|
||||
|
||||
;; Python
|
||||
(setq python-shell-interpreter "python3")
|
||||
(setq py-python-command "/usr/bin/python3")
|
||||
(use-package company-jedi
|
||||
:ensure t
|
||||
:config
|
||||
@@ -489,11 +457,6 @@
|
||||
|
||||
(setq-default ebuild-mode-update-copyright nil)
|
||||
|
||||
(setq jedi:environment-root "jedi") ; or any other name you like
|
||||
(setq jedi:environment-virtualenv
|
||||
(append python-environment-virtualenv
|
||||
'("--python" "/usr/local/bin/python3")))
|
||||
|
||||
(defun infer-indentation-style () (interactive)
|
||||
(let ((space-count (how-many "^ " (point-min) (point-max)))
|
||||
(tab-count (how-many "^\t" (point-min) (point-max))))
|
||||
@@ -625,4 +588,3 @@
|
||||
(other-window 1)
|
||||
)
|
||||
(global-set-key (kbd "C-x x") 'kill-and-remove-split)
|
||||
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
|
||||
;; ----- smex-history -----
|
||||
(
|
||||
find-file
|
||||
replace-string
|
||||
whitespace-mode
|
||||
package-refresh-contents
|
||||
read-only-mode
|
||||
overwrite-mode
|
||||
write-file
|
||||
)
|
||||
|
||||
;; ----- smex-data -----
|
||||
(
|
||||
(lsp-install-server . 6)
|
||||
(treemacs . 17)
|
||||
(lsp-java-update-server . 1)
|
||||
(set-frame-font . 1)
|
||||
(lsp-jt-browser . 6)
|
||||
(sort-lines . 5)
|
||||
(lsp-jt-report-open . 17)
|
||||
(treemacs-edit-workspaces . 2)
|
||||
(treemacs-refresh . 1)
|
||||
(treemacs-mode . 3)
|
||||
(menu-set-font . 2)
|
||||
(magit-commit . 1)
|
||||
(column-number-mode . 1)
|
||||
(set-fill-column . 3)
|
||||
(dap-java-debug . 7)
|
||||
(ruby-indent-exp . 1)
|
||||
(ruby-indent-line . 1)
|
||||
(ruby-mode-menu . 1)
|
||||
(inf-ruby-console-auto . 8)
|
||||
(shell . 8)
|
||||
(package-install-selected-packages . 1)
|
||||
(package-install . 3)
|
||||
(compile . 2)
|
||||
(lsp-mode . 2)
|
||||
(load-theme . 18)
|
||||
(overwrite-mode . 2)
|
||||
(goto-line . 2)
|
||||
(package-refresh-contents . 2)
|
||||
(epc:pop-to-last-server-process-buffer . 3)
|
||||
(disable-theme . 1)
|
||||
(table-insert . 3)
|
||||
(table-insert-row . 1)
|
||||
(kill-rectangle . 1)
|
||||
(delete-rectangle . 1)
|
||||
(avy-isearch . 1)
|
||||
(customize-themes . 1)
|
||||
(ido-mode . 1)
|
||||
(lsp-describe-session . 1)
|
||||
(whitespace-mode . 10)
|
||||
(python-shell-switch-to-shell . 1)
|
||||
(run-python . 2)
|
||||
(display-fill-column-indicator-mode . 3)
|
||||
(prettier-restart . 1)
|
||||
(prettier-prettify . 8)
|
||||
(prettier-mode . 2)
|
||||
(prettier-prettify-region . 2)
|
||||
(python-black . 9)
|
||||
(python-black-on-save-mode . 2)
|
||||
(message-tab . 1)
|
||||
(find-file . 2)
|
||||
(replace-string . 6)
|
||||
(ispell . 2)
|
||||
(python-black-buffer . 1)
|
||||
(write-file . 1)
|
||||
(read-only-mode . 2)
|
||||
)
|
||||
@@ -1,8 +0,0 @@
|
||||
[user]
|
||||
name = Marcin Woźniak
|
||||
email = y0rune@aol.com
|
||||
signingkey = D34FB8A44F324B8A
|
||||
|
||||
[include]
|
||||
path = ~/.gituser.config
|
||||
path = ~/.gitconfig.local
|
||||
@@ -1,52 +0,0 @@
|
||||
[gpg]
|
||||
program = gpg
|
||||
|
||||
[commit]
|
||||
gpgsign = true
|
||||
verbose = true
|
||||
|
||||
[pull]
|
||||
rebase = false
|
||||
|
||||
[push]
|
||||
autoSetupRemote = true
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[alias]
|
||||
ci = commit --verbose
|
||||
co = checkout
|
||||
cp = cherry-pick
|
||||
df = !git --no-pager diff
|
||||
br = !git branch | cat
|
||||
dfh = !git --no-pager diff
|
||||
diffh = !git --no-pager diff
|
||||
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an - %ae>%Creset' --abbrev-commit --branches
|
||||
prune-tags = !git tag -l | xargs git tag -d && git fetch -t
|
||||
show = --no-pager show --color --pretty=format:%b
|
||||
squash-all = "!f(){ git reset $(git commit-tree HEAD^{tree} \"$@\");};f"
|
||||
st = status --ignore-submodules=dirty -s
|
||||
untrack-file = !git update-index --assume-unchanged
|
||||
exclude-file = !git update-index --assume-unchanged
|
||||
c = commit --author='Marcin Woźniak <y0rune@aol.com> -s'
|
||||
cw = commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com> -s'
|
||||
retag = "!f() { if [ -z \"$1\" ]; then echo \"No version provided. Skipping git push.\"; else git tag --delete $1 2>/dev/null; git tag -a $1 -m \"Version $1\"; git push --tags -f; git push -f; fi; }; f"
|
||||
delete-branch = "!$HOME/.local/bin/git-delete-branch"
|
||||
|
||||
[url "git@github.com:"]
|
||||
insteadOf = "https://github.com/"
|
||||
|
||||
[credential "https://github.com"]
|
||||
helper =
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
|
||||
[credential "https://gist.github.com"]
|
||||
helper =
|
||||
helper = !/usr/bin/gh auth git-credential
|
||||
|
||||
[filter "lfs"]
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
-61
@@ -1,27 +1,4 @@
|
||||
.config/backup-started*
|
||||
.Xauthority
|
||||
.matplotlib
|
||||
.Trash
|
||||
.DS_Store
|
||||
.ansible
|
||||
.CFUserTextEncoding
|
||||
.cups/
|
||||
.docker/
|
||||
.oh-my-zsh/
|
||||
.shell.pre-oh-my-zsh
|
||||
.zcompdum*
|
||||
.zsh_history
|
||||
.zsh_sessions/
|
||||
.emacs.d/emacs-custom.el
|
||||
.emacs.d/smex-items
|
||||
notes
|
||||
Applications/
|
||||
Desktop/
|
||||
Library/
|
||||
Pictures/
|
||||
Public/
|
||||
VirtualBox*
|
||||
synergy.log
|
||||
.config/Element/
|
||||
.config/TabNine/
|
||||
.config/coc/
|
||||
@@ -172,8 +149,6 @@ synergy.log
|
||||
.local/bin/tqdm
|
||||
.local/bin/f2py
|
||||
.local/bin/f2py3
|
||||
.keras/
|
||||
.config/menus
|
||||
.local/bin/wheel
|
||||
.local/include/
|
||||
.local/lib/
|
||||
@@ -244,39 +219,3 @@ www
|
||||
Movies/
|
||||
Music/
|
||||
notes.org
|
||||
|
||||
.config/backup.log
|
||||
.config/gh/config.yml
|
||||
.config/gh/hosts.yml
|
||||
.local/state/gh/state.yml
|
||||
.emacs.d/ido.last~
|
||||
.config/karabiner/automatic_backups
|
||||
.config/qBittorrent
|
||||
.config/envman
|
||||
.emacs.d/.last-package-update-day
|
||||
.emacs.d/amx-items
|
||||
.local/bin/pathman
|
||||
.local/bin/webi
|
||||
.local/opt/pathman-v0.5.2/bin
|
||||
Musik/
|
||||
|
||||
.config/ytmdl
|
||||
golang
|
||||
.virtualenvs/debugpy
|
||||
.local/bin/mgorny-dev-scripts
|
||||
.local/bin/serviceman
|
||||
.local/opt/serviceman-v0.8.0/bin
|
||||
.emacs.d/recentf
|
||||
.config/filezilla
|
||||
.local/state/mume
|
||||
.putty
|
||||
.redhat
|
||||
.cpanm
|
||||
.node-gyp/14.16.0
|
||||
.packettracer
|
||||
.dlv
|
||||
Cisco Packet Tracer 8.0.0
|
||||
.local/bin/kubectl
|
||||
.rustup
|
||||
.local/tss-sdk
|
||||
.local/bin/tss
|
||||
|
||||
+2
-10
@@ -1,19 +1,11 @@
|
||||
#!/bin/bash
|
||||
NUMBER="-1"
|
||||
|
||||
if command -v sudo; then
|
||||
sudo=$(which sudo)
|
||||
elif command -v doas; then
|
||||
sudo=$(which doas)
|
||||
else
|
||||
echo "Do you have installed sudo or doas on your system??"
|
||||
fi
|
||||
|
||||
while true
|
||||
do
|
||||
clear
|
||||
|
||||
LOGS=( $(${sudo} find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") $(${sudo} find /var/tmpnotmpfs/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
|
||||
LOGS=( $(sudo find /var/tmp/portage/ -mindepth 1 -maxdepth 5 -name "build.log") $(sudo find /var/tmpnotmpfs/portage/ -mindepth 1 -maxdepth 5 -name "build.log") )
|
||||
LEN=${#LOGS[@]}
|
||||
|
||||
for (( i=0; i<$LEN; i++ ));
|
||||
@@ -28,4 +20,4 @@ do
|
||||
done
|
||||
|
||||
echo -e "\n\e[93m File: ${LOGS[$NUMBER-1]} \e[0m\n"
|
||||
${sudo} tail -f "${LOGS[$NUMBER-1]}"
|
||||
sudo tail -f ${LOGS[$NUMBER-1]}
|
||||
|
||||
@@ -9,7 +9,7 @@ function starting() {
|
||||
echo -e "\e[93m----------------------COMPILING------------------------------\e[0m"
|
||||
sudo cp -rv "$DEFAULT_KERNEL" "$TMP_KERNEL"
|
||||
cp -r "$TMP_KERNEL" "$BACKUP/kernel-config"
|
||||
sudo cp -r /etc/portage/* $BACKUP
|
||||
cp -r /etc/portage/* $BACKUP
|
||||
qlist -I | sort -u > $BACKUP/list-of-programs
|
||||
}
|
||||
|
||||
@@ -96,7 +96,6 @@ fi
|
||||
|
||||
function addgit() {
|
||||
cd "$BACKUP" || exit
|
||||
sleep 20
|
||||
git add .
|
||||
git commit -m "Updated: $(date)"
|
||||
git push
|
||||
|
||||
@@ -1,617 +0,0 @@
|
||||
#!/opt/homebrew/opt/bash/bin/bash
|
||||
# shellcheck disable=2010,2045,2086,2155
|
||||
|
||||
# Path to the zsh folder
|
||||
ZSHFOLDER=$HOME/.config/zsh
|
||||
CONFIG="$HOME/.config"
|
||||
OHMYZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
mkdir -p $ZSHFOLDER $CONFIG $OHMYZSH
|
||||
|
||||
# Colours
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;0;32m'
|
||||
NC='\033[0m'
|
||||
|
||||
# Stable version
|
||||
TERRAFORM_VERSION="1.5.7"
|
||||
|
||||
# Python
|
||||
if which python3 > /dev/null 2>&1; then
|
||||
python="python3"
|
||||
pip="pip3"
|
||||
else
|
||||
export PYTHONVERSION=$(ls -la /opt/homebrew/opt/ |
|
||||
grep -iEo 'python@.* ->' |
|
||||
sed 's/ ->//g' |
|
||||
sort |
|
||||
tail -n1 |
|
||||
sed 's/python@//g')
|
||||
python="/opt/homebrew/bin/python$PYTHONVERSION"
|
||||
pip="/opt/homebrew/bin/pip$PYTHONVERSION"
|
||||
fi
|
||||
|
||||
PIPEXT="--user --force --quiet --no-warn-script-location"
|
||||
PIPEXTPRE="--pre $PIPEXT"
|
||||
|
||||
# Gentoo release
|
||||
GENTOO="/etc/gentoo-release"
|
||||
|
||||
# Function for basic install
|
||||
|
||||
install=""
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
install="brew install"
|
||||
elif [[ -f $GENTOO ]]; then
|
||||
install="sudo emerge --update"
|
||||
elif [[ -f /etc/debian_version ]]; then
|
||||
sudo apt update
|
||||
install="sudo apt install -y"
|
||||
elif [[ -f /etc/redhat-release ]]; then
|
||||
install="sudo dnf install"
|
||||
fi
|
||||
|
||||
function timestamp() {
|
||||
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
|
||||
}
|
||||
|
||||
function err() {
|
||||
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
|
||||
}
|
||||
|
||||
function command_start() {
|
||||
timestamp "Command $* has been started."
|
||||
if ! "$@"; then
|
||||
err "---------"
|
||||
err "Command $* went wrong."
|
||||
err "---------"
|
||||
# exit
|
||||
fi
|
||||
timestamp "Command $* has been ended."
|
||||
}
|
||||
|
||||
function command_exists() {
|
||||
if command -v "$1" > /dev/null 2>&1; then
|
||||
timestamp "Command $1 has been found"
|
||||
else
|
||||
err "Command $1 has been NOT found"
|
||||
|
||||
# Return false
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
function update_pip() {
|
||||
# Update the pip
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$python -m pip install --upgrade pip --user --no-warn-script-location
|
||||
elif [[ -f $GENTOO ]]; then
|
||||
$install dev-python/pip
|
||||
fi
|
||||
}
|
||||
|
||||
function install_neovim_module_for_python() {
|
||||
# Python module in neovim
|
||||
$pip install pynvim neovim imps $PIPEXTPRE
|
||||
|
||||
# Ruby module for neovim
|
||||
gem install solargraph
|
||||
|
||||
# Node module for neovim
|
||||
npm install @github/copilot-language-server -g --force
|
||||
npm install tree-sitter-cli -g --force
|
||||
}
|
||||
|
||||
function install_node() {
|
||||
if command_exists npm; then
|
||||
timestamp "Node has been found"
|
||||
else
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
brew uninstall node --ignore-dependencies
|
||||
sudo rm -rf /opt/homebrew/lib/node_modules/npm/
|
||||
$install node
|
||||
elif [[ -f $GENTOO ]]; then
|
||||
$install dev-lang/nodejs
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function install_pyright() {
|
||||
# Install pyright
|
||||
sudo npm -s -g i pyright --force
|
||||
}
|
||||
|
||||
function install_mdformat() {
|
||||
# Install mdformat
|
||||
$pip install mdformat $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_ruff() {
|
||||
# Install ruff
|
||||
$pip install ruff $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_bash-language-server() {
|
||||
# Install bash-language-server
|
||||
sudo npm -s -g i bash-language-server --force
|
||||
}
|
||||
|
||||
function install_yaml-language-server() {
|
||||
# Install yaml-language-server
|
||||
sudo npm -s -g i yaml-language-server --force
|
||||
}
|
||||
|
||||
function install_shfmt() {
|
||||
# Install shfmt
|
||||
GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest
|
||||
}
|
||||
|
||||
function install_lazy() {
|
||||
# Install shfmt
|
||||
GO111MODULE=on go install github.com/jesseduffield/lazygit@latest
|
||||
GO111MODULE=on go install github.com/jesseduffield/lazydocker@latest
|
||||
}
|
||||
|
||||
function install_dlv() {
|
||||
GO111MODULE=on go install github.com/go-delve/delve/cmd/dlv@latest
|
||||
}
|
||||
|
||||
function install_terraform_stable() {
|
||||
# Install terraform and terraform-ls
|
||||
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install tflint -q
|
||||
$install tfenv -q
|
||||
TFENV_ARCH=amd64 tfenv install "$TERRAFORM_VERSION"
|
||||
tfenv use "$TERRAFORM_VERSION"
|
||||
else
|
||||
GO111MODULE=on go install github.com/hashicorp/terraform@v"$TERRAFORM_VERSION"
|
||||
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
|
||||
fi
|
||||
}
|
||||
|
||||
function install_terraform() {
|
||||
# Install terraform and terraform-ls
|
||||
GO111MODULE=on go install github.com/hashicorp/terraform-ls@latest
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install tflint -q
|
||||
$install tfenv -q
|
||||
TFENV_ARCH=amd64 tfenv install latest
|
||||
mapfile -t TFENV_VER_ARRAY < <(tfenv list | grep -ioE ' [0-9.]+' | sed -e '1,1d')
|
||||
if [ "${#TFENV_VER_ARRAY[@]}" -gt "2" ]; then
|
||||
for i in "${TFENV_VER_ARRAY[@]}"; do
|
||||
tfenv uninstall "$i" && timestamp "Removed - terraform '$i' version"
|
||||
done
|
||||
fi
|
||||
else
|
||||
GO111MODULE=on go install github.com/hashicorp/terraform@latest
|
||||
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
|
||||
fi
|
||||
}
|
||||
|
||||
function install_terragrunt() {
|
||||
# Install terragrunt
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install terragrunt -q
|
||||
else
|
||||
TERRAGRUNT=$HOME/.local/bin/terragrunt
|
||||
REMOTE_VERSION=$(curl -s https://api.github.com/repos/gruntwork-io/terragrunt/releases/latest | grep -iEo '"tag_name":.*' | sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
|
||||
|
||||
CURRENT_VERSION="0.0.0"
|
||||
[ -f $TERRAGRUNT ] && CURRENT_VERSION=$($TERRAGRUNT version)
|
||||
|
||||
if [ "$REMOTE_VERSION" == "$CURRENT_VERSION" ]; then
|
||||
timestamp "The current version of the TSS-SDK is the same as the newest version"
|
||||
return 0
|
||||
else
|
||||
brew install wget
|
||||
wget https://github.com/gruntwork-io/terragrunt/releases/latest/download/terragrunt_linux_amd64 -O $TERRAGRUNT
|
||||
chmod +x "$TERRAGRUNT"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
function install_shellcheck() {
|
||||
# Install shellcheck
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install shellcheck -q
|
||||
else
|
||||
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
|
||||
fi
|
||||
}
|
||||
|
||||
function install_marksman() {
|
||||
# Install marksman
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install marksman -q
|
||||
else
|
||||
wget https://github.com/artempyanykh/marksman/releases/latest/download/marksman-linux-x64 -O $HOME/.local/bin/marksman
|
||||
chmod +x $HOME/.local/bin/marksman
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
function install_go() {
|
||||
# Install the golang
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install golang -q
|
||||
elif [[ -f $GENTOO ]]; then
|
||||
$install dev-lang/go
|
||||
fi
|
||||
}
|
||||
|
||||
function install_gopls() {
|
||||
# Install gopls
|
||||
GO111MODULE=on go install golang.org/x/tools/gopls@latest
|
||||
}
|
||||
|
||||
function install_ansible() {
|
||||
# Install Ansible
|
||||
$pip install ansible ansible-lint ansible-core $PIPEXTPRE
|
||||
$pip install ansible-parallel $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_ansible-language-server() {
|
||||
# Install ansible-language-server
|
||||
sudo npm -s -g i @ansible/ansible-language-server --force
|
||||
sudo npm -s -g i yaml-language-server --force
|
||||
}
|
||||
|
||||
function install_azure_cli() {
|
||||
# Install azure_cli
|
||||
$install azure-cli
|
||||
}
|
||||
|
||||
function install_awscli() {
|
||||
# Install awscli
|
||||
$install awscli
|
||||
}
|
||||
|
||||
function install_ytdlp() {
|
||||
# Install yt-dlp
|
||||
$pip install yt-dlp $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_spotifydl() {
|
||||
# Install spotify_dl
|
||||
$pip install spotdl $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_fzf() {
|
||||
# Install fzf
|
||||
FOLDER="$CONFIG/fzf"
|
||||
mkdir -p $FOLDER
|
||||
|
||||
if [ -d $FOLDER ]; then
|
||||
cd $CONFIG || err "Folder $CONFIG has been NOT found"
|
||||
git clone https://github.com/junegunn/fzf.git $FOLDER && timestamp "Cloning the FZF"
|
||||
cd $FOLDER || err "Folder $FOLDER has been NOT found"
|
||||
git pull -q && timestamp "Pulled the $FOLDER configuration"
|
||||
make install
|
||||
fi
|
||||
}
|
||||
|
||||
function install_zsh_addons() {
|
||||
|
||||
if [ ! -d $ZSHFOLDER/aws ]; then
|
||||
mkdir -p "$ZSHFOLDER/azure-cli" "$ZSHFOLDER/aws"
|
||||
|
||||
curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh \
|
||||
-o "$ZSHFOLDER"/aws/aws.plugin.zsh &&
|
||||
timestamp "Downloaded the newest version of aws plugin for zsh"
|
||||
|
||||
curl -s https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion \
|
||||
-o "$ZSHFOLDER"/azure-cli/az.completion &&
|
||||
timestamp "Downloaded the newest version of az plugin for zsh"
|
||||
|
||||
cd $ZSHFOLDER || err "Folder $ZSHFOLDER has been NOT found"
|
||||
git clone https://github.com/popstas/zsh-command-time.git &&
|
||||
timestamp "Cloning the zsh-command-time"
|
||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git &&
|
||||
timestamp "Cloning the zsh-syntax-highlighting"
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions.git &&
|
||||
timestamp "Cloning the zsh-autosuggestions"
|
||||
fi
|
||||
|
||||
for i in $(ls $ZSHFOLDER); do
|
||||
FOLDER="$ZSHFOLDER/$i"
|
||||
if [ -d "$FOLDER/.git" ]; then
|
||||
cd "$FOLDER" || err "Folder $FOLDER has been NOT found"
|
||||
git pull -q && timestamp "Pulling the $FOLDER configuration"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -d $OHMYZSH ]; then
|
||||
cd $OHMYZSH || err "Folder $OHMYZSH has been NOT found"
|
||||
git pull -q && timestamp "Pulling the $OHMYZSH configuration"
|
||||
fi
|
||||
|
||||
curl -s https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o "$ZSHFOLDER"/aws/aws.plugin.zsh && timestamp "Downloaded the newest version of aws plugin for zsh"
|
||||
curl -s https://raw.githubusercontent.com/Azure/azure-cli/dev/az.completion -o "$ZSHFOLDER"/azure-cli/az.completion && timestamp "Downloaded the newest version of az plugin for zsh"
|
||||
|
||||
}
|
||||
|
||||
function install_speedtest() {
|
||||
# Install speedtest-cli
|
||||
$pip install speedtest-cli $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_gh_cli() {
|
||||
# Install gh-cli
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install gh
|
||||
elif [[ -f $GENTOO ]]; then
|
||||
$install dev-util/github-cli
|
||||
fi
|
||||
}
|
||||
|
||||
function install_kubernetes() {
|
||||
# Install kubectl
|
||||
LINK=""
|
||||
CURRENT_VERSION=""
|
||||
REMOTE_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
|
||||
KUBECTL_LOCATION="/opt/homebrew/bin/kubectl"
|
||||
|
||||
[ -f $KUBECTL_LOCATION ] && CURRENT_VERSION=$($KUBECTL_LOCATION version --client | grep --color=no -iEo 'Client Version: v[0-9\.]+' | grep -ioE --color=no 'v[0-9\.]+')
|
||||
|
||||
if [ "$REMOTE_VERSION" == "$CURRENT_VERSION" ]; then
|
||||
timestamp "The current version of the kubectl is the same as the newest version"
|
||||
return 0
|
||||
fi
|
||||
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
LINK="http://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/amd64/kubectl"
|
||||
else
|
||||
LINK="http://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||
fi
|
||||
|
||||
wget "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -O $KUBECTL_LOCATION
|
||||
chmod +x $KUBECTL_LOCATION
|
||||
}
|
||||
|
||||
function install_rust() {
|
||||
# Install rust
|
||||
if command_exists rustc; then
|
||||
rustup update
|
||||
rustup component add rust-analyzer
|
||||
else
|
||||
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
|
||||
fi
|
||||
}
|
||||
|
||||
function install_tss_client() {
|
||||
# Install tss
|
||||
TSS_VERSION_STABLE="$1"
|
||||
CURRENT_VERSION="1.5.7"
|
||||
|
||||
if [ -z "$TSS_VERSION_STABLE" ]; then
|
||||
TSS_VERSION_STABLE=""
|
||||
timestamp "TSS_VERSION_STABLE variable is empty, the latest version will be installed"
|
||||
fi
|
||||
|
||||
# Example link: https://downloads.ss.thycotic.com/secretserversdk/1.5.7/secretserver-sdk-1.5.7-linux-x64.zip
|
||||
TSSDOCS="https://docs.delinea.com/online-help/secret-server/api-scripting/sdk-devops/sdk-downloads/index.htm"
|
||||
LINK=""
|
||||
REMOTE_VERSION=""
|
||||
|
||||
if [ "$(uname)" == "Darwin" ]; then
|
||||
if [ -n "$TSS_VERSION_STABLE" ]; then
|
||||
LINK="https://downloads.ss.thycotic.com/secretserversdk/$TSS_VERSION_STABLE/secretserver-sdk-$TSS_VERSION_STABLE-osx-x64.zip"
|
||||
REMOTE_VERSION=$TSS_VERSION
|
||||
else
|
||||
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-osx-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
|
||||
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-osx' | sed 's/-osx//g')
|
||||
fi
|
||||
else
|
||||
LINK=$(curl -s -L $TSSDOCS | grep -iEo 'href=".*-linux-x64.zip"' | sed 's/href\=//g;s/"//g' | sort -r | head -n1)
|
||||
REMOTE_VERSION=$(echo $LINK | grep -iEo '[0-9.]+-linux' | sed 's/-linux//g')
|
||||
fi
|
||||
|
||||
TSSFOLDER="$HOME/.local/tss-sdk"
|
||||
TSSLINK="$HOME/.local/bin/tss"
|
||||
|
||||
[ -f $TSSLINK ] && CURRENT_VERSION=$($TSSLINK version)
|
||||
|
||||
timestamp "Current version of the TSS-SDK: $CURRENT_VERSION"
|
||||
timestamp "Remote version of the TSS-SDK: $REMOTE_VERSION"
|
||||
|
||||
if [ "$REMOTE_VERSION" == "$CURRENT_VERSION" ]; then
|
||||
timestamp "The current version of the TSS-SDK is the same as the newest version"
|
||||
return 0
|
||||
else
|
||||
rm -rfv $TSSFOLDER $TSSLINK
|
||||
mkdir $TSSFOLDER
|
||||
timestamp "Downloading the newest version of the TSS-SDK"
|
||||
timestamp "Link: $LINK"
|
||||
wget $LINK -P $TSSFOLDER
|
||||
unzip $TSSFOLDER/secretserver-sdk-*.zip -d $TSSFOLDER
|
||||
rm -rfv $TSSFOLDER/secretserver-sdk-*.zip
|
||||
ln -s $TSSFOLDER/tss $TSSLINK
|
||||
chmod +x $TSSLINK
|
||||
fi
|
||||
}
|
||||
|
||||
function install_precommit() {
|
||||
# Install pre-commit
|
||||
$pip install pre-commit $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_streamlink() {
|
||||
# Install streamlink
|
||||
$pip install streamlink $PIPEXTPRE
|
||||
}
|
||||
|
||||
function install_brew_programs() {
|
||||
# Install brew programs
|
||||
INSTALLED_PROGRAMS=$(brew list)
|
||||
while IFS='' read -r line; do LIST_OF_PROGRAMS+=("$line"); done < <(cat "$HOME"/.brew_programs)
|
||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_CASK+=("$line"); done < <(cat "$HOME"/.brew_programs_cask)
|
||||
while IFS='' read -r line; do LIST_OF_PROGRAMS_DISABLE+=("$line"); done < <(cat "$HOME"/.brew_programs_disable)
|
||||
|
||||
timestamp "Installing brew programs"
|
||||
|
||||
for i in "${LIST_OF_PROGRAMS[@]}"; do
|
||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
|
||||
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||
timestamp "Installing the $i brew program"
|
||||
brew install $i --force
|
||||
if $? -ne 0; then
|
||||
err "Failed to install the $i brew program"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
timestamp "Installing brew cask programs"
|
||||
|
||||
for i in "${LIST_OF_PROGRAMS_CASK[@]}"; do
|
||||
if [[ ! " ${INSTALLED_PROGRAMS[*]} " =~ ${i} ]] &&
|
||||
[[ ! " ${LIST_OF_PROGRAMS_DISABLE[*]} " =~ ${i} ]]; then
|
||||
timestamp "Installing the $i brew cask program"
|
||||
brew install $i --cask --force
|
||||
fi
|
||||
done
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/Spotify.app
|
||||
xattr -r -d com.apple.quarantine /opt/homebrew/bin/mpv /Applications/mpv.app
|
||||
|
||||
duti -s io.mpv avi all
|
||||
duti -s io.mpv mkv all
|
||||
duti -s io.mpv mp4 all
|
||||
duti -s io.mpv ts all
|
||||
|
||||
xattr -r -d com.apple.quarantine /Applications/chatterino.app
|
||||
|
||||
brew cleanup --prune=all
|
||||
}
|
||||
|
||||
function install_prettier() {
|
||||
$install prettier
|
||||
$install prettierd
|
||||
}
|
||||
|
||||
function install_google_cloud_sdk() {
|
||||
# Install google cloud sdk
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
$install google-cloud-sdk
|
||||
else
|
||||
curl -s https://sdk.cloud.google.com | bash
|
||||
fi
|
||||
}
|
||||
|
||||
function install_lib_wandio() {
|
||||
local REPO="LibtraceTeam/wandio"
|
||||
local REMOTE_VERSION=$(curl -s \
|
||||
https://api.github.com/repos/$REPO/releases/latest |
|
||||
grep -iEo '"tag_name":.*' |
|
||||
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
|
||||
local RELEASE="${REMOTE_VERSION}.tar.gz"
|
||||
local DEST="/tmp/wandio-$REMOTE_VERSION.tar.gz"
|
||||
local DEST_FOLDER="/tmp/wandio-$REMOTE_VERSION"
|
||||
|
||||
$install autoconf automake libtool
|
||||
wget https://github.com/$REPO/archive/refs/tags/$RELEASE -O $DEST
|
||||
tar -xvf $DEST -C /tmp
|
||||
cd $DEST_FOLDER || err "Folder $DEST_FOLDER has been NOT found"
|
||||
./bootstrap.sh
|
||||
./configure
|
||||
make -j"$(nproc)"
|
||||
sudo make install && timestamp "Installed the newest version of the $REPO"
|
||||
rm -rfv $DEST $DEST_FOLDER
|
||||
}
|
||||
|
||||
function install_bgpreader() {
|
||||
local CURRENT_VERSION="0.0.0"
|
||||
local REPO="CAIDA/libbgpstream"
|
||||
local NAME="${REPO##*/}"
|
||||
local REMOTE_VERSION=$(curl -s \
|
||||
https://api.github.com/repos/$REPO/releases/latest |
|
||||
grep -iEo '"tag_name":.*' |
|
||||
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
|
||||
local RELEASE="$NAME-${REMOTE_VERSION/v/}.tar.gz"
|
||||
local DEST="/tmp/$NAME-$REMOTE_VERSION.tar.gz"
|
||||
local DEST_FOLDER="/tmp/$NAME-$REMOTE_VERSION"
|
||||
|
||||
if command_exists bgpreader; then
|
||||
CURRENT_VERSION="v$(bgpreader -v 2>&1 | grep -ioE '[0-9\.]+')"
|
||||
fi
|
||||
|
||||
if [ "$CURRENT_VERSION" == "$REMOTE_VERSION" ]; then
|
||||
timestamp "The current version of the BGPREADER is the same as the newest version"
|
||||
return 0
|
||||
else
|
||||
$install autoconf automake libtool
|
||||
command_start install_lib_wandio
|
||||
wget https://github.com/$REPO/releases/download/$REMOTE_VERSION/$RELEASE -O $DEST
|
||||
tar -xvf $DEST -C /tmp
|
||||
cd /tmp/$NAME-* || err "Folder /tmp/$NAME-* has been NOT found"
|
||||
./configure --without-kafka
|
||||
make -j"$(nproc)"
|
||||
sudo make install && timestamp "Installed the newest version of the $REPO"
|
||||
rm -rfv /tmp/$NAME-*
|
||||
fi
|
||||
}
|
||||
|
||||
function install_font_terminess() {
|
||||
local REPO="ryanoasis/nerd-fonts"
|
||||
local REMOTE_VERSION=$(curl -s \
|
||||
https://api.github.com/repos/$REPO/releases/latest |
|
||||
grep -iEo '"tag_name":.*' |
|
||||
sed 's/"tag_name"://g;s/"//g;s/,//g;s/ //g')
|
||||
local RELEASE="Terminus.zip"
|
||||
local DEST="/tmp/Terminess"
|
||||
|
||||
if [ ! -f $HOME/Library/Fonts/TerminessNerdFont-Regular.ttf ]; then
|
||||
mkdir -p $DEST
|
||||
cd $DEST || err "Folder $DEST has been NOT found"
|
||||
wget https://github.com/$REPO/releases/download/$REMOTE_VERSION/$RELEASE -O $DEST/$RELEASE
|
||||
unzip $RELEASE -d $DEST
|
||||
mv $DEST/*.ttf ~/Library/Fonts
|
||||
cd $HOME || err "Folder $HOME has been NOT found"
|
||||
rm -rfv $DEST
|
||||
fi
|
||||
}
|
||||
|
||||
function main() {
|
||||
command_start update_pip
|
||||
command_start install_neovim_module_for_python
|
||||
command_start install_node
|
||||
command_start install_go
|
||||
# command_start install_pyright
|
||||
command_start install_mdformat
|
||||
command_start install_ruff
|
||||
command_start install_lazy
|
||||
command_start install_dlv
|
||||
command_start install_bash-language-server
|
||||
command_start install_yaml-language-server
|
||||
command_start install_marksman
|
||||
command_start install_shfmt
|
||||
command_start install_shellcheck
|
||||
command_start install_gopls
|
||||
# command_start install_terraform
|
||||
command_start install_terraform_stable
|
||||
command_start install_terragrunt
|
||||
command_start install_azure_cli
|
||||
command_start install_ansible
|
||||
command_start install_ansible-language-server
|
||||
command_start install_ytdlp
|
||||
command_start install_spotifydl
|
||||
command_start install_awscli
|
||||
command_start install_speedtest
|
||||
command_start install_gh_cli
|
||||
command_start install_kubernetes
|
||||
command_start install_rust
|
||||
command_start install_tss_client "1.5.9"
|
||||
command_start install_precommit
|
||||
command_start install_streamlink
|
||||
command_start install_fzf
|
||||
command_start install_prettier
|
||||
command_start install_google_cloud_sdk
|
||||
command_start install_bgpreader
|
||||
command_start install_font_terminess
|
||||
command_start install_zsh_addons
|
||||
command_start install_brew_programs
|
||||
}
|
||||
|
||||
main
|
||||
@@ -1,6 +0,0 @@
|
||||
#/bin/bash
|
||||
function main(){
|
||||
wineapp=$(readlink -f $(whereis wine64))
|
||||
"$wineapp" "~/Applications/Winbox.exe"
|
||||
}
|
||||
main
|
||||
@@ -3,19 +3,18 @@ source $HOME/.password
|
||||
mkdir -p ~/Movies/{Anime,Videos}
|
||||
mkdir -p ~/Music
|
||||
|
||||
#sudo mount -t cifs //192.168.0.220/Mega -o username=${USERNAME},password=${PASSWORD},vers=2\.0 /mnt/synology
|
||||
#sudo mount -t cifs //192.168.0.220/Mega -o username=${USERNAME},password=${PASSWORD},vers=2\.0 /mnt/Synology
|
||||
#sudo mount -t cifs //192.168.0.220/music -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Music
|
||||
#sudo mount -t cifs //192.168.0.220/usbshare1/Video -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Movies/Videos
|
||||
#sudo mount -t cifs //192.168.0.220/usbshare1/Anime -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Movies/Anime
|
||||
#sudo mount -t cifs //192.168.0.220/Studia -o username=${USERNAME},password=${PASSWORD},vers=2\.0 ~/Collage
|
||||
|
||||
if [ -e /mnt/synology/Systems ]
|
||||
if [ -e /mnt/Synology/Systems ]
|
||||
then
|
||||
echo "Starting $(date)" > ~/.cache/.logSynology
|
||||
sudo rsync -r --bwlimit=512 --update --progress /home/yorune/MEGA/ /mnt/synology >> ~/.cache/.logSynology
|
||||
sudo rsync -r --bwlimit=512 --update --progress /usr/mega/ /mnt/Synology >> ~/.cache/.logSynology
|
||||
rsync -r --bwlimit=512 --update --progress \
|
||||
/home/yorune/Documents/Mega-Documents/Magisterka-Marcin/ \
|
||||
~/Documents/Collage/Magisterka-Marcin
|
||||
cp -rv /home/yorune/git/{dwm,dwmblocks,st,dmenu,mons,slock} ~/MEGA/Systems/Linux/apps
|
||||
echo "Ending $(date)" >> ~/.cache/.logSynology
|
||||
fi
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
MEGA_VOLUME="/Volumes/MEGA"
|
||||
MEGA="$HOME/MEGA"
|
||||
STARTED="$HOME/.config/backup-started-$(date +%d-%m)"
|
||||
|
||||
function main() {
|
||||
if [[ ! -e "$STARTED" ]]; then
|
||||
touch "$STARTED" && echo -e "[LOG] $(date) Created the file $STARTED"
|
||||
|
||||
echo -e "[LOG] $(date) Started $HOME/.ssh/ -> $MEGA/ssh"
|
||||
rsync --bwlimit=2048 --update --progress -r "$HOME/.ssh/" "$MEGA/ssh/"
|
||||
echo -e "[LOG] $(date) Finished $HOME/.ssh/ -> $MEGA/ssh"
|
||||
|
||||
echo -e "[LOG] $(date) Started $HOME/.gnupg/ -> $MEGA/gnupg"
|
||||
rsync --bwlimit=2048 --update --progress -r "$HOME/.gnupg/" "$MEGA/gnupg/"
|
||||
echo -e "[LOG] $(date) Finished $HOME/.gnupg/ -> $MEGA/gnupg"
|
||||
|
||||
if [[ -e "$MEGA_VOLUME" ]]; then
|
||||
echo -e "[LOG] $(date) Started $MEGA -> $MEGA_VOLUME"
|
||||
rsync --bwlimit=2048 --update --progress -r --exclude '.DS_Store' \
|
||||
--exclude '.debris' \
|
||||
--exclude 'Icon*' \
|
||||
"$MEGA/" "$MEGA_VOLUME/"
|
||||
else
|
||||
echo -e "[ERROR] The folder $MEGA_VOLUME does NOT exist"
|
||||
fi
|
||||
|
||||
echo -e "[LOG] $(date) Removed the files $STARTED and $STARTED *"
|
||||
rm -rf "$STARTED"
|
||||
rm -rf "$HOME/.config/backup-started-*"
|
||||
fi
|
||||
}
|
||||
|
||||
main >"$HOME/.config/backup.log"
|
||||
@@ -1,58 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# Marcin Wozniak
|
||||
# Last edit: 2023-05-05
|
||||
#
|
||||
# shellcheck disable=1091
|
||||
################################################################################
|
||||
|
||||
set -u
|
||||
set -e
|
||||
|
||||
# Colours
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;0;32m'
|
||||
NC='\033[0m'
|
||||
|
||||
ADDR=$1
|
||||
LOG_FILE="bgp-$ADDR-$(date -I).log"
|
||||
|
||||
function timestamp() {
|
||||
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
|
||||
}
|
||||
|
||||
function err() {
|
||||
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
|
||||
}
|
||||
|
||||
function command_start() {
|
||||
timestamp "Command $* has been started."
|
||||
if ! "$@"; then
|
||||
err "Command $* went wrong."
|
||||
exit 0
|
||||
fi
|
||||
timestamp "Command $* has been ended."
|
||||
}
|
||||
|
||||
function bgpcheck() {
|
||||
timestamp "CHECKING BGP FOR $ADDR at RT.IR9.AMS.NL.retn.net"
|
||||
curl --silent \
|
||||
"https://lg.retn.net/cgi/LG.cgi?r=87&p=4&q=b&a=$ADDR" |
|
||||
sed '/table>/d;/<link/d;/<meta/d;/tr>/d;/td>/d;/query/d;/html/d;/head/d;/title/d;/img/d;/body/d;/center/d;/h2/d;/<p>/d;/<hr /d '
|
||||
timestamp "---------------------------------------"
|
||||
|
||||
timestamp "CHECKING BGP FOR $ADDR at RT.NIA.POZ.PL.retn.net"
|
||||
curl --silent \
|
||||
"https://lg.retn.net/cgi/LG.cgi?r=ab&p=4&q=b&a=$ADDR" |
|
||||
sed '/table>/d;/<link/d;/<meta/d;/tr>/d;/td>/d;/query/d;/html/d;/head/d;/title/d;/img/d;/body/d;/center/d;/h2/d;/<p>/d;/<hr /d'
|
||||
timestamp "---------------------------------------"
|
||||
|
||||
}
|
||||
|
||||
function main() {
|
||||
command_start bgpcheck
|
||||
}
|
||||
|
||||
main | tee "$LOG_FILE"
|
||||
@@ -6,7 +6,6 @@ export QT_IM_MODULE=ibus
|
||||
KERNEL=$(uname -sr)
|
||||
[[ $KERNEL =~ "icrosoft" ]] && "/mnt/c/Program Files/Mozilla Firefox/firefox.exe" "$@"
|
||||
[[ $KERNEL =~ "gentoo" ]] && GDK_DPI_SCALE="1.2" firefox "$@"
|
||||
[[ $KERNEL =~ "Darwin" ]] && open -a Firefox\ Nightly "$@"
|
||||
#[[ $KERNEL =~ "gentoo" ]] && __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 GDK_DPI_SCALE="1.2" firefox "$@"
|
||||
|
||||
# Firefox
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
cidr2mask() {
|
||||
local i mask=""
|
||||
local full_octets=$(($1 / 8))
|
||||
local partial_octet=$(($1 % 8))
|
||||
|
||||
for ((i = 0; i < 4; i += 1)); do
|
||||
if [ $i -lt $full_octets ]; then
|
||||
mask+=255
|
||||
elif [ $i -eq $full_octets ]; then
|
||||
mask+=$((256 - 2 ** (8 - partial_octet)))
|
||||
else
|
||||
mask+=0
|
||||
fi
|
||||
test $i -lt 3 && mask+=.
|
||||
done
|
||||
|
||||
echo $mask
|
||||
}
|
||||
|
||||
cidr2mask "$@"
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
SERVER="$1"
|
||||
|
||||
if [ -z "$SERVER" ]; then
|
||||
echo "Usage: $0 <server_ip>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Starting..."
|
||||
echo
|
||||
|
||||
# Upload test (client sends data to server)
|
||||
UPLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 --json | jq '.end.sum_sent.bits_per_second / 1000000')
|
||||
|
||||
# Download test (client receives data from server)
|
||||
DOWNLOAD=$(iperf3 -c "$SERVER" -P5 -t 30 -R --json | jq '.end.sum_received.bits_per_second / 1000000')
|
||||
|
||||
# Print summary
|
||||
echo "SERVER: $SERVER"
|
||||
echo "UPLOAD: $(printf "%.2f" "$UPLOAD") Mbps"
|
||||
echo "DOWNLOAD: $(printf "%.2f" "$DOWNLOAD") Mbps"
|
||||
@@ -14,4 +14,4 @@
|
||||
|
||||
sudo rc-service docker start
|
||||
sleep 10
|
||||
sudo docker ps --all
|
||||
sudo docker ps
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python3.9
|
||||
#!/usr/bin/python3.8
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python3.9
|
||||
#!/usr/bin/python3.8
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
FILE_FFMPEG="$1"
|
||||
ffmpeg -i "$FILE_FFMPEG" \
|
||||
-vf "scale=1920:1080" \
|
||||
-c:v h264_videotoolbox \
|
||||
-b:v 3000k \
|
||||
-preset medium \
|
||||
-movflags \
|
||||
+faststart \
|
||||
-c:a aac \
|
||||
-b:a 192k \
|
||||
-ac 2 \
|
||||
-map 0:v \
|
||||
-map 0:a \
|
||||
-map 0:s \
|
||||
-c:s copy resized.mkv
|
||||
@@ -1,42 +0,0 @@
|
||||
################################################################################
|
||||
#
|
||||
# Marcin Wozniak
|
||||
#
|
||||
# shellcheck disable=1091
|
||||
################################################################################
|
||||
|
||||
# Colours
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;0;32m'
|
||||
NC='\033[0m'
|
||||
|
||||
function timestamp() {
|
||||
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
|
||||
}
|
||||
|
||||
function err() {
|
||||
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
|
||||
exit 0
|
||||
}
|
||||
|
||||
function removelogs() {
|
||||
find "$DIR/logs" -mindepth 1 -mtime +365 -delete
|
||||
}
|
||||
|
||||
function command_start() {
|
||||
timestamp "Command $* has been started."
|
||||
if ! "$@"; then
|
||||
err "Command $* went wrong."
|
||||
# sendmailerr
|
||||
fi
|
||||
timestamp "Command $* has been ended."
|
||||
}
|
||||
|
||||
function command_exists() {
|
||||
if command -v "$1" > /dev/null 2>&1; then
|
||||
timestamp "Command $1 has been found"
|
||||
else
|
||||
err "Command $1 has been NOT found"
|
||||
# sendmailerr
|
||||
fi
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# Marcin Wozniak
|
||||
# y0rune@aol.com
|
||||
#
|
||||
# That script is for easier getting a Meraki network list
|
||||
#
|
||||
# shellcheck disable=1091,2048
|
||||
################################################################################
|
||||
|
||||
set -e
|
||||
|
||||
function timestamp() {
|
||||
echo "[+] $(date +'%F %T') [INFO] $*"
|
||||
}
|
||||
|
||||
function err() {
|
||||
echo "[-] $(date +'%F %T') [ERROR] $*" >&2
|
||||
}
|
||||
|
||||
function command_start() {
|
||||
timestamp "Command $* has been started."
|
||||
if ! $*; then
|
||||
err "Command $* went wrong."
|
||||
exit
|
||||
fi
|
||||
timestamp "Command $* has been ended."
|
||||
}
|
||||
|
||||
function main() {
|
||||
[ -z "$MERAKI_API_KEY" ] && err "Meraki Key is not set up. Please set it via export MERAKI_API_KEY=<XXXXX>"
|
||||
[ -z "$MERAKI_ORG_ID" ] && err "Meraki Organization ID is not set up. Please set it via export MERAKI_ORG_ID=<XXXXX>"
|
||||
|
||||
timestamp "Getting a list of the network"
|
||||
curl --silent \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'X-Cisco-Meraki-API-Key: '"$MERAKI_API_KEY"'' \
|
||||
https://api.meraki.com/api/v1/organizations/"$MERAKI_ORG_ID"/networks |
|
||||
jq -M '.[] | .id + " " + .name'
|
||||
}
|
||||
|
||||
main "$@"
|
||||
@@ -1,71 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
FOLDER_AUDIOBOOK="/Volumes/Music/Jellyfin/Playlist-Audiobook"
|
||||
FOLDER_FAV="/Volumes/Music/Jellyfin/Playlist-Fav"
|
||||
FOLDER_DUB="/Volumes/Music/Jellyfin/Playlist-Dub"
|
||||
FOLDER_PIANO="/Volumes/Music/Jellyfin/Playlist-Piano"
|
||||
FOLDER_DUB_SETS="/Volumes/Music/Jellyfin/Playlist-Dub-Sets"
|
||||
|
||||
# Check if folder exists
|
||||
[ ! -d $FOLDER_AUDIOBOOK ] && exit 1
|
||||
[ ! -d $FOLDER_DUB ] && exit 1
|
||||
[ ! -d $FOLDER_FAV ] && exit 1
|
||||
[ ! -d $FOLDER_PIANO ] && exit 1
|
||||
[ ! -d $FOLDER_DUB_SETS ] && exit 1
|
||||
|
||||
# Remove old files
|
||||
rm -rfv $FOLDER_AUDIOBOOK/errors.txt
|
||||
rm -rfv $FOLDER_DUB/errors.txt
|
||||
rm -rfv $FOLDER_FAV/errors.txt
|
||||
rm -rfv $FOLDER_PIANO/errors.txt
|
||||
rm -rfv $FOLDER_DUB_SETS/errors.txt
|
||||
|
||||
# Download new files for DUB
|
||||
cd $FOLDER_DUB || exit 1
|
||||
spotdl --user-auth --keep-alive \
|
||||
--threads 8 \
|
||||
--output "{artist}/{album}/{track-number} - {title}.{output-ext}" \
|
||||
download "https://open.spotify.com/playlist/5Y6hRcNinZaoZGiadaXDEC?si=78d89f9a1a974fdf" \
|
||||
--print-errors \
|
||||
--save-errors $FOLDER_DUB/errors.txt \
|
||||
--yt-dlp-args no-check-certificates
|
||||
|
||||
# Download new files for NEW
|
||||
cd $FOLDER_FAV || exit 1
|
||||
spotdl --user-auth --keep-alive \
|
||||
--threads 8 \
|
||||
--output "{artist}/{album}/{track-number} - {title}.{output-ext}" \
|
||||
download "https://open.spotify.com/playlist/2P063NZZOPC9gvZrPAHZh9?si=33c34cdd981c4949" \
|
||||
--print-errors \
|
||||
--save-errors $FOLDER_FAV/errors.txt \
|
||||
--yt-dlp-args no-check-certificates
|
||||
|
||||
# Sync to Jellyfin
|
||||
rsync -h --progress --recursive --ignore-existing \
|
||||
$FOLDER_AUDIOBOOK/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Audiobook
|
||||
|
||||
rsync -h --progress --recursive --ignore-existing \
|
||||
$FOLDER_DUB/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub
|
||||
|
||||
rsync -h --progress --recursive --ignore-existing \
|
||||
$FOLDER_FAV/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Fav
|
||||
|
||||
rsync -h --progress --recursive --ignore-existing \
|
||||
$FOLDER_PIANO/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Piano
|
||||
|
||||
rsync -h --progress --recursive --ignore-existing \
|
||||
$FOLDER_DUB_SETS/* docker-de:/mnt/HC_Volume_34966154/jellifin/media/music/Dub-Sets
|
||||
|
||||
# Generate playlist
|
||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Audiobook; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||
|
||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||
|
||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Fav; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||
|
||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Piano; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||
|
||||
ssh docker-de -t "cd /mnt/HC_Volume_34966154/jellifin/media/music/Dub-Sets; find . -type f \( -name '*.mp3' -o -name '*.flac' -o -name '*.loss' -o -name '*.aiff' -o -name '*.aif' \) -printf './%P\n' | sort > playlist.m3u"
|
||||
|
||||
# Fix permissions
|
||||
ssh docker-de -t 'chown docker-user: /mnt/HC_Volume_34966154/jellifin -R'
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
BRANCH_GIT=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
|
||||
git checkout "$BRANCH_GIT" && git fetch upstream && git pull upstream "$BRANCH_GIT"
|
||||
@@ -1,52 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# shellcheck disable=2162
|
||||
|
||||
function delete_local_branch() {
|
||||
git branch -D "$1"
|
||||
}
|
||||
|
||||
function delete_remote_branch() {
|
||||
git push origin --delete "$1"
|
||||
}
|
||||
|
||||
function list_of_the_branches() {
|
||||
echo
|
||||
echo "List of branches:"
|
||||
echo -e "$(git branch)"
|
||||
echo
|
||||
}
|
||||
|
||||
function remove_branch() {
|
||||
BRANCH="$1"
|
||||
echo "$BRANCH"
|
||||
read -p "Remove locally / remote / both [L/R/B]: " CHOOSE
|
||||
case $CHOOSE in
|
||||
[Bb]*)
|
||||
delete_local_branch "$BRANCH"
|
||||
delete_remote_branch "$BRANCH"
|
||||
unset -f BRANCH
|
||||
;;
|
||||
[Ll]*)
|
||||
delete_local_branch "$BRANCH"
|
||||
unset -f BRANCH
|
||||
;;
|
||||
[Rr]*)
|
||||
delete_remote_branch "$BRANCH"
|
||||
unset -f BRANCH
|
||||
;;
|
||||
*) echo "Please write good answer" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
BRANCH="$1"
|
||||
|
||||
if [ -z "$BRANCH" ]; then
|
||||
while true; do
|
||||
list_of_the_branches
|
||||
read -p "Select branch to remove: " BRANCH
|
||||
remove_branch "$BRANCH"
|
||||
done
|
||||
else
|
||||
remove_branch "$BRANCH"
|
||||
fi
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/bin/bash
|
||||
BRANCH=$1
|
||||
git checkout main
|
||||
git checkout master
|
||||
git checkout -b "$BRANCH"
|
||||
git checkout "$BRANCH"
|
||||
git branch --set-upstream-to=origin/"$BRANCH" "$BRANCH"
|
||||
git pull
|
||||
git reset --hard origin/"$BRANCH"
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
docker stop "$(docker ps --all | grep -i jupyter | awk '{print $1}')" >/dev/null
|
||||
docker rm "$(docker ps --all | grep -i jupyter | awk '{print $1}')" >/dev/null
|
||||
docker pull jupyter/scipy-notebook:latest
|
||||
docker run \
|
||||
--rm \
|
||||
-p 8888:8888 \
|
||||
-e JUPYTER_ENABLE_LAB=yes \
|
||||
-v "$HOME/MEGA/Documents/Collage/":/home/jovyan/ \
|
||||
jupyter/scipy-notebook
|
||||
@@ -1,20 +0,0 @@
|
||||
#!/bin/bash
|
||||
mask2cidr() {
|
||||
local mask=$1
|
||||
|
||||
# In RFC 4632 netmasks there's no "255." after a non-255 byte in the mask
|
||||
local left_stripped_mask=${mask##*255.}
|
||||
local len_mask=${#mask}
|
||||
local len_left_stripped_mask=${#left_stripped_mask}
|
||||
|
||||
local conversion_table=0^^^128^192^224^240^248^252^254^
|
||||
local number_of_bits_stripped=$(((len_mask - len_left_stripped_mask) * 2))
|
||||
local signifacant_octet=${left_stripped_mask%%.*}
|
||||
|
||||
local right_stripped_conversion_table=${conversion_table%%$signifacant_octet*}
|
||||
local len_right_stripped_conversion_table=${#right_stripped_conversion_table}
|
||||
local number_of_bits_from_conversion_table=$((len_right_stripped_conversion_table / 4))
|
||||
echo $((number_of_bits_stripped + number_of_bits_from_conversion_table))
|
||||
}
|
||||
|
||||
mask2cidr "$@"
|
||||
@@ -1,30 +0,0 @@
|
||||
#!/bin/bash
|
||||
~/.local/bin/sidebar-restore-macos
|
||||
open -gj "afp://10.0.0.14/Downloads"
|
||||
sleep 10
|
||||
open -gj "afp://10.0.0.14/Anime"
|
||||
sleep 2
|
||||
open -gj "afp://10.0.0.14/Music"
|
||||
sleep 2
|
||||
open -gj "afp://10.0.0.14/Video"
|
||||
sleep 2
|
||||
open -gj "afp://10.0.0.14/Series"
|
||||
sleep 2
|
||||
open -gj "afp://10.0.0.14/Photos"
|
||||
sleep 2
|
||||
open -gj "afp://10.0.0.14/Backups"
|
||||
sleep 2
|
||||
open -gj "afp://10.0.0.14/Recordings"
|
||||
sleep 2
|
||||
open -gj "afp://10.0.0.14/Work"
|
||||
sleep 2
|
||||
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Recordings/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Backups/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Downloads/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Music/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Video/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Series/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Photos/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Anime/
|
||||
/usr/local/bin/mysides add Synology file:///Volumes/Work
|
||||
@@ -2,4 +2,3 @@
|
||||
KERNEL=$(uname -sr)
|
||||
[[ $KERNEL =~ "icrosoft" ]] && $HOME/.local/bin/wsl-notify "$@"
|
||||
[[ $KERNEL =~ "gentoo" ]] && /usr/bin/notify-send "$@"
|
||||
[[ $KERNEL =~ "Darwin" ]] && osascript -e "display notification \"$*\""
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# Marcin Wozniak
|
||||
# Last edit: 2023-05-05
|
||||
#
|
||||
# shellcheck disable=1091
|
||||
################################################################################
|
||||
|
||||
set -u
|
||||
set -e
|
||||
|
||||
# Colours
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;0;32m'
|
||||
NC='\033[0m'
|
||||
|
||||
ADDR=$1
|
||||
LOG_FILE="pinger-$ADDR-$(date -I).log"
|
||||
|
||||
function timestamp() {
|
||||
echo -e "${GREEN}[+]${NC} $(date +'%F %T') [INFO] $*"
|
||||
}
|
||||
|
||||
function err() {
|
||||
echo -e "${RED}[-] $(date +'%F %T') [ERROR] $*${NC}" >&2
|
||||
}
|
||||
|
||||
function command_start() {
|
||||
timestamp "Command $* has been started."
|
||||
if ! "$@"; then
|
||||
err "Command $* went wrong."
|
||||
# sendmailerr
|
||||
exit 0
|
||||
fi
|
||||
timestamp "Command $* has been ended."
|
||||
}
|
||||
|
||||
function pinger() {
|
||||
ping "$ADDR" | while read pong; do timestamp "$pong"; done
|
||||
}
|
||||
|
||||
function main() {
|
||||
command_start pinger
|
||||
}
|
||||
|
||||
main | tee "$LOG_FILE"
|
||||
@@ -1,62 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
source "$HOME"/.local/bin/functions
|
||||
|
||||
# Base function for creating a python venv
|
||||
python_env_base() {
|
||||
|
||||
[ -z "$PYTHONVERSION" ] && err "Python version is not set"
|
||||
|
||||
command_exists virtualenv
|
||||
|
||||
timestamp "Creating Python environment with version $PYTHONVERSION"
|
||||
rm -rf .venv .env && timestamp "Old Python environment has been removed"
|
||||
virtualenv -p "$PYTHONVERSION" .venv
|
||||
|
||||
.venv/bin/python -m pip install --upgrade pip
|
||||
.venv/bin/pip install pre-commit --break --force
|
||||
}
|
||||
|
||||
# Default python env with requirements.txt
|
||||
python_env() {
|
||||
python_env_base
|
||||
if [ -f requirements.txt ]; then
|
||||
.venv/bin/pip install -r requirements.txt --break --force
|
||||
timestamp "Installing Python packages from requirements.txt"
|
||||
fi
|
||||
}
|
||||
|
||||
# Ansible python env
|
||||
python_env_ansible() {
|
||||
python_env_base
|
||||
timestamp "Installing Ansible packages"
|
||||
.venv/bin/pip install \
|
||||
ansible \
|
||||
ansible-core \
|
||||
ansible-lint \
|
||||
ansible-parallel \
|
||||
passlib \
|
||||
python-tss-sdk \
|
||||
--break --force
|
||||
|
||||
export ANSIBLE_COLLECTIONS_PATH=".venv/collections"
|
||||
export ANSIBLE_ROLES_PATH=".venv/roles"
|
||||
|
||||
timestamp "Installing Ansible Galaxy collections to .venv/collections"
|
||||
.venv/bin/ansible-galaxy collection install community.general -p .venv/collections --upgrade
|
||||
|
||||
timestamp "Installing Ansible Galaxy roles from requirements.yml files to .venv/roles"
|
||||
find . -maxdepth 3 -name "requirements.yml" -path "*/roles/*" -not -path "./.venv/*" -print0 | while IFS= read -r -d '' req; do
|
||||
timestamp "Found requirements: $req"
|
||||
.venv/bin/ansible-galaxy install --force -r "$req" -p .venv/roles
|
||||
done
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
ansible)
|
||||
python_env_ansible
|
||||
;;
|
||||
*)
|
||||
python_env
|
||||
;;
|
||||
esac
|
||||
+1
-1
@@ -2,4 +2,4 @@
|
||||
print_mem(){
|
||||
free --mebi | sed -n '2{p;q}' | awk '{printf ("🧠 %2.2fGiB", ( $3 / 1024) )}'
|
||||
}
|
||||
print_mem
|
||||
print_mem
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
/usr/local/bin/mysides remove all
|
||||
/usr/local/bin/mysides add Home file://"$HOME"/
|
||||
/usr/local/bin/mysides add Git file://"$HOME"/git/
|
||||
/usr/local/bin/mysides add Linux file://"$HOME"/MEGA/Systems/Linux/
|
||||
/usr/local/bin/mysides add Downloads file://"$HOME"/Downloads/
|
||||
/usr/local/bin/mysides add Aplications file:///Applications/
|
||||
/usr/local/bin/mysides add Aplications file:///"$HOME"/Applications/
|
||||
/usr/local/bin/mysides add Screenshots file://"$HOME"/Screenshots/
|
||||
/usr/local/bin/mysides add Desktop file://"$HOME"/Desktop/
|
||||
+469
-658
File diff suppressed because it is too large
Load Diff
@@ -2,13 +2,5 @@ chmod 700 ~/.ssh
|
||||
chmod 644 ~/.ssh/authorized_keys
|
||||
chmod 644 ~/.ssh/known_hosts
|
||||
chmod 644 ~/.ssh/config
|
||||
# chmod 400 ~/.ssh/id_rsa
|
||||
# chmod 400 ~/.ssh/id_rsa.pub
|
||||
# chmod 400 ~/.ssh/*/id_rsa
|
||||
# chmod 400 ~/.ssh/*/id_rsa.pub
|
||||
|
||||
chmod 600 ~/.ssh/*/id_rsa
|
||||
chmod 600 ~/.ssh/*/id_rsa.pub
|
||||
chmod 600 ~/.ssh/authorized_keys
|
||||
chmod 600 ~/.ssh/known_hosts
|
||||
chmod 600 ~/.ssh/config
|
||||
chmod 400 ~/.ssh/id_rsa
|
||||
chmod 400 ~/.ssh/id_rsa.pub
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo ebuildtester \
|
||||
--threads 8 \
|
||||
--pull \
|
||||
--update \
|
||||
--unstable \
|
||||
--rm \
|
||||
--portage-dir "$HOME/git/dev/gentoo" \
|
||||
--overlay-dir "$HOME/git/dev/guru" \
|
||||
--atom "$@"
|
||||
@@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
set -x
|
||||
|
||||
# Resolving problem with systemd in mac
|
||||
# # Stop running Docker
|
||||
# test -z "$(docker ps -q 2>/dev/null)" && osascript -e 'quit app "Docker"'
|
||||
# # Install jq and moreutils so we can merge into the existing json file
|
||||
# brew install jq moreutils
|
||||
# # Add the needed cgroup config to docker settings.json
|
||||
# echo '{"deprecatedCgroupv1": true}' |
|
||||
# jq -s '.[0] * .[1]' ~/Library/Group\ Containers/group.com.docker/settings.json - |
|
||||
# sponge ~/Library/Group\ Containers/group.com.docker/settings.json
|
||||
# # Restart docker desktop
|
||||
# open --background -a Docker
|
||||
|
||||
docker stop "$(docker ps --all | grep -i ubuntu | awk '{print $1}')" >/dev/null
|
||||
docker rm "$(docker ps --all | grep -i ubuntu | awk '{print $1}')" >/dev/null
|
||||
docker pull jrei/systemd-ubuntu:22.04
|
||||
docker run \
|
||||
-d \
|
||||
--name systemd-ubuntu \
|
||||
-v "$HOME/git/dev":/opt \
|
||||
--tmpfs /tmp \
|
||||
--tmpfs /run \
|
||||
--tmpfs /run/lock \
|
||||
--privileged \
|
||||
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
|
||||
jrei/systemd-ubuntu:22.04
|
||||
# container="$(docker ps --all | grep -i ubuntu | awk '{print $1}')"
|
||||
# sleep 15 && docker exec -it "$container" /bin/bash
|
||||
# docker stop "$container" >/dev/null
|
||||
# docker rm "$container" >/dev/null
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
export DISPLAY="`tmux show-env | sed -n 's/^DISPLAY=//p'`"
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/python3.9
|
||||
#!/usr/bin/python3.8
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
import sys
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
yt-dlp --extract-audio --audio-format mp3 --embed-metadata --embed-thumbnail --add-metadata $1
|
||||
youtube-dl --extract-audio --audio-format mp3 $1
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
#!/bin/bash
|
||||
yt-dlp "$@" -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
|
||||
youtube-dl $1
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
yt-dlp --external-downloader ffmpeg --external-downloader-args "ffmpeg_i:-ss $1 -to $2" "${@:3}"
|
||||
@@ -1 +0,0 @@
|
||||
4
|
||||
@@ -1,77 +0,0 @@
|
||||
# focus window
|
||||
alt - h : yabai -m window --focus west
|
||||
alt - l : yabai -m window --focus east
|
||||
alt - k : yabai -m window --focus north
|
||||
alt - j : yabai -m window --focus south
|
||||
|
||||
# swap managed window
|
||||
shift + alt - h : yabai -m window --swap west
|
||||
shift + alt - l : yabai -m window --swap east
|
||||
shift + alt - k : yabai -m window --swap north
|
||||
shift + alt - j : yabai -m window --swap south
|
||||
|
||||
# move managed window
|
||||
# shift + cmd - h : yabai -m window --warp east
|
||||
|
||||
# Search
|
||||
alt - d : open -a Alfred\ 4
|
||||
|
||||
# Close app
|
||||
alt - q : yabai -m window --close
|
||||
|
||||
# balance size of windows
|
||||
shift + alt - space : yabai -m space --balance
|
||||
|
||||
# create desktop, move window and follow focus - uses jq for parsing json (brew install jq)
|
||||
shift + cmd - n : yabai -m space --create && \
|
||||
index="$(yabai -m query --spaces --display | jq 'map(select(."native-fullscreen" == 0))[-1].index')" && \
|
||||
yabai -m window --space "${index}" && \
|
||||
yabai -m space --focus "${index}"
|
||||
|
||||
shift + alt - 1 : yabai -m window --space 1
|
||||
shift + alt - 2 : yabai -m window --space 2
|
||||
shift + alt - 3 : yabai -m window --space 3
|
||||
shift + alt - 4 : yabai -m window --space 4
|
||||
shift + alt - 5 : yabai -m window --space 5
|
||||
shift + alt - 6 : yabai -m window --space 6
|
||||
shift + alt - 7 : yabai -m window --space 7
|
||||
shift + alt - 8 : yabai -m window --space 8
|
||||
shift + alt - 9 : yabai -m window --space 9
|
||||
|
||||
# focus monitor
|
||||
ctrl + alt - z : yabai -m display --focus prev
|
||||
# ctrl + alt - 3 : yabai -m display --focus 3
|
||||
|
||||
# send window to monitor and follow focus
|
||||
# ctrl + cmd - c : yabai -m window --display next; yabai -m display --focus next
|
||||
# ctrl + cmd - 1 : yabai -m window --display 1; yabai -m display --focus 1
|
||||
|
||||
# move floating window
|
||||
# shift + ctrl - a : yabai -m window --move rel:-20:0
|
||||
# shift + ctrl - s : yabai -m window --move rel:0:20
|
||||
|
||||
# increase window size
|
||||
# shift + alt - a : yabai -m window --resize left:-20:0
|
||||
# shift + alt - w : yabai -m window --resize top:0:-20
|
||||
|
||||
# decrease window size
|
||||
# shift + cmd - s : yabai -m window --resize bottom:0:-20
|
||||
# shift + cmd - w : yabai -m window --resize top:0:20
|
||||
|
||||
# set insertion point in focused container
|
||||
# ctrl + alt - h : yabai -m window --insert west
|
||||
|
||||
# toggle window zoom
|
||||
alt - f : yabai -m window --toggle zoom-fullscreen
|
||||
|
||||
# toggle window split type
|
||||
# alt - e : yabai -m window --toggle split
|
||||
|
||||
# float / unfloat window and center on screen
|
||||
alt - space : yabai -m window --toggle float;\
|
||||
yabai -m window --grid 4:4:1:1:2:2
|
||||
|
||||
# toggle sticky(+float), topmost, picture-in-picture
|
||||
# alt - p : yabai -m window --toggle sticky;\
|
||||
# yabai -m window --toggle topmost;\
|
||||
# yabai -m window --toggle pip
|
||||
@@ -1 +0,0 @@
|
||||
hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x700000035,"HIDKeyboardModifierMappingDst":0x700000064},{"HIDKeyboardModifierMappingSrc":0x700000064,"HIDKeyboardModifierMappingDst":0x700000035}]}'
|
||||
+26
-51
@@ -1,38 +1,14 @@
|
||||
# Default shell configuration
|
||||
set -g prefix C-a
|
||||
set-option -g default-shell /bin/zsh
|
||||
set -g default-terminal "xterm-256color"
|
||||
set -ga terminal-overrides ",*256col*:Tc"
|
||||
|
||||
# Keybindings
|
||||
unbind C-b # Unbind a default keys conbination
|
||||
unbind q # Unbind a q key
|
||||
set -g prefix C-a # Set a default keys conbination
|
||||
bind-key C-a send-prefix # Set a default keys conbination
|
||||
bind q confirm kill-window # Set a kill-window keybind
|
||||
bind Q confirm kill-pane # Set a kill-pane keybind
|
||||
bind - split-window -v # Split window vertical
|
||||
bind _ split-window -h # Split window horizontal
|
||||
bind > swap-pane -D # Swap current pane with the next one
|
||||
bind < swap-pane -U # Swap current pane with the previous one
|
||||
bind C-w select-pane -l # Go to last panel
|
||||
bind h select-pane -L # Go to left panel
|
||||
bind j select-pane -D # Go to down panel
|
||||
bind k select-pane -U # Go to up panel
|
||||
bind l select-pane -R # Go to right panel
|
||||
bind -r H resize-pane -L 2 # Resize panel left
|
||||
bind -r J resize-pane -D 2 # Resize panel down
|
||||
bind -r K resize-pane -U 2 # Resize panel up
|
||||
bind -r L resize-pane -R 2 # Resize panel right
|
||||
bind -r C-h previous-window # Select previous window
|
||||
bind -r C-l next-window # Select next window
|
||||
bind Tab last-window # Move to last active window
|
||||
bind C-c new-session # Keybind for a new session
|
||||
bind C-f command-prompt -p find-session 'switch-client -t %%'
|
||||
bind-key -n C-f copy-mode \; send-key ?
|
||||
|
||||
# Copying a output from panel the terminal to file ~/tmux.history
|
||||
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -JS -32768 ; save-buffer %1 ; delete-buffer'
|
||||
|
||||
unbind C-b
|
||||
bind-key C-a send-prefix
|
||||
unbind q
|
||||
bind q confirm kill-window
|
||||
bind Q confirm kill-pane
|
||||
set -g status on
|
||||
bind-key -n C-f copy-mode \; send-key ?
|
||||
set -g default-terminal "st-256color"
|
||||
set -g history-limit 20000
|
||||
set-option -sg escape-time 0
|
||||
set -g base-index 1 # start windows numbering at 1
|
||||
@@ -45,21 +21,20 @@ set -g display-time 1000 # slightly longer status messages display time
|
||||
set -g status-interval 10 # redraw status line every 10 seconds
|
||||
set -g monitor-activity on
|
||||
set -g visual-activity off
|
||||
set -g visual-bell off
|
||||
|
||||
# Coloring of the panel
|
||||
set -g pane-border-style fg=default
|
||||
set -g pane-active-border-style "bg=default fg=color244"
|
||||
|
||||
# Status bar
|
||||
## Source of example configuration
|
||||
## https://arcolinux.com/everything-you-need-to-know-about-tmux-status-bar/
|
||||
set-option -g status on
|
||||
set-option -g status-interval 1
|
||||
set-option -g status-position bottom
|
||||
set-option -g status-style fg=white,bg=black
|
||||
set-option -g status-left-length 20
|
||||
set-option -g status-left-style default
|
||||
set-option -g status-right-length 140
|
||||
set-option -g status-right-style default
|
||||
set-option -g status-right "%a %H:%M:%S %Y-%m-%d"
|
||||
bind C-c new-session
|
||||
bind C-f command-prompt -p find-session 'switch-client -t %%'
|
||||
bind - split-window -v
|
||||
bind _ split-window -h
|
||||
bind > swap-pane -D # swap current pane with the next one
|
||||
bind < swap-pane -U # swap current pane with the previous one
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
bind -r H resize-pane -L 2
|
||||
bind -r J resize-pane -D 2
|
||||
bind -r K resize-pane -U 3
|
||||
bind -r L resize-pane -R 2
|
||||
bind -r C-h previous-window # select previous window
|
||||
bind -r C-l next-window # select next window
|
||||
bind Tab last-window # move to last active window
|
||||
|
||||
-98
@@ -83,104 +83,6 @@ nnoremap <F8> :tabnext<CR>
|
||||
|
||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""""
|
||||
" Keyboard shortcuts
|
||||
""""""""""""""""""""""""""""""""
|
||||
let mapleader = "\<Space>"
|
||||
nmap <leader>2 :w!<cr>
|
||||
|
||||
" Better tab
|
||||
vnoremap <Tab> >
|
||||
vnoremap <S-Tab> <
|
||||
|
||||
" Better word
|
||||
nmap yw vey
|
||||
|
||||
" Select all text
|
||||
nmap <C-a> gg<S-v>G
|
||||
|
||||
" Resize window
|
||||
nnoremap <C-L> :vertical resize +5<CR>
|
||||
nnoremap <C-H> :vertical resize -5<CR>
|
||||
nnoremap <C-J> :res -5<CR>
|
||||
nnoremap <C-K> :res +5<CR>
|
||||
|
||||
" Split window
|
||||
nnoremap _ :vsp <CR>
|
||||
nnoremap - :split <CR>
|
||||
|
||||
" Reload file
|
||||
nnoremap <F5> :edit <CR>
|
||||
nnoremap <Leader><F5> :edit! <CR>
|
||||
|
||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||
|
||||
" Moving line up or down using alt
|
||||
nnoremap <A-Up> :m-2<CR>
|
||||
nnoremap <A-Down> :m+<CR>
|
||||
inoremap <A-Up> <Esc>:m-2<CR>
|
||||
inoremap <A-Down> <Esc>:m+<CR>
|
||||
vnoremap <A-Down> :m '>+1<CR>gv=gv
|
||||
vnoremap <A-Up> :m '<-2<CR>gv=gv
|
||||
|
||||
nnoremap Ż :m-2<CR>
|
||||
nnoremap ∆ :m+<CR>
|
||||
vnoremap ∆ :m '>+1<CR>gv=gv
|
||||
vnoremap Ż :m '<-2<CR>gv=gv
|
||||
|
||||
nnoremap <A-k> :m-2<CR>
|
||||
nnoremap <A-j> :m+<CR>
|
||||
inoremap <A-k> <Esc>:m-2<CR>
|
||||
inoremap <A-j> <Esc>:m+<CR>
|
||||
vnoremap <A-j> :m '>+1<CR>gv=gv
|
||||
vnoremap <A-k> :m '<-2<CR>gv=gv
|
||||
|
||||
" Better replace
|
||||
nnoremap <Leader>s :%s//g<Left><Left>
|
||||
vnoremap <Leader>s :s//g<Left><Left>
|
||||
|
||||
" Better adding into begging and ending line
|
||||
vnoremap F <C-v>$A
|
||||
vnoremap f <C-v>0I
|
||||
|
||||
" Better management of tabs
|
||||
nnoremap <C-t> :tabnew<CR>
|
||||
|
||||
nnoremap <F7> :tabprevious<CR>
|
||||
nnoremap <F8> :tabnext<CR>
|
||||
inoremap <F7> <Esc>:tabprevious<CR>i
|
||||
inoremap <F8> <Esc>:tabnext<CR>i
|
||||
|
||||
nnoremap <Leader>k :tabprevious<CR>
|
||||
nnoremap <Leader>j :tabnext<CR>
|
||||
|
||||
inoremap <C-t> <Esc>:tabnew<CR>
|
||||
|
||||
" Better moving
|
||||
nnoremap J }
|
||||
nnoremap K {
|
||||
vnoremap J }
|
||||
vnoremap K {
|
||||
|
||||
" Copy into system
|
||||
noremap <Leader>y "*y
|
||||
noremap <Leader>p "*p
|
||||
|
||||
" Code
|
||||
map <Leader><Tab> Vgaip= <CR>
|
||||
|
||||
" Others
|
||||
nnoremap <F11> :Goyo <CR>
|
||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||
map <F3> :setlocal spell! spelllang=en_gb<CR>
|
||||
map <F4> :setlocal spell! spelllang=pl<CR>
|
||||
|
||||
" Human Errors
|
||||
:command! W w
|
||||
:command! Q q
|
||||
:command! Wq wq
|
||||
|
||||
" Automatically deletes all trailing whitespace and newlines at end of file on save.
|
||||
autocmd BufWritePre * %s/\s\+$//e
|
||||
autocmd BufWritepre * %s/\n\+\%$//e
|
||||
|
||||
@@ -24,7 +24,7 @@ QT_SCALE_FACTOR=1.5 keepassxc &
|
||||
sudo /usr/bin/rdate -s ntp.task.gda.pl && sudo /sbin/hwclock --systohc
|
||||
megasync &
|
||||
ibus-daemon&
|
||||
#quasselclient&
|
||||
quasselclient&
|
||||
|
||||
# Two monitors are enabled?
|
||||
if [[ $(mons | awk '/Monitors/{print $2}') = 2 ]]
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
#!/usr/bin/env sh
|
||||
sudo yabai --load-sa
|
||||
yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa"
|
||||
|
||||
yabai -m config external_bar all:20:20
|
||||
|
||||
# Without Ubersicht
|
||||
#yabai -m config external_bar all:0:0
|
||||
|
||||
# global settings
|
||||
yabai -m config mouse_follows_focus on
|
||||
yabai -m config focus_follows_mouse on
|
||||
yabai -m config window_placement second_child
|
||||
yabai -m config window_topmost off
|
||||
yabai -m config window_shadow on
|
||||
yabai -m config window_border off
|
||||
yabai -m config window_border_placement exterior
|
||||
yabai -m config window_border_width 1.0
|
||||
yabai -m config window_border_radius 1.0
|
||||
yabai -m config active_window_border_color 0xff008bff
|
||||
yabai -m config normal_window_border_color 0x01000000
|
||||
yabai -m config insert_window_border_color 0xB2EBDBB2
|
||||
yabai -m config window_opacity off
|
||||
yabai -m config split_ratio 0.50
|
||||
yabai -m config auto_balance on
|
||||
yabai -m config mouse_modifier fn
|
||||
yabai -m config mouse_action1 move
|
||||
yabai -m config mouse_action2 resize
|
||||
|
||||
# general space settings
|
||||
yabai -m config layout bsp
|
||||
yabai -m config top_padding 10
|
||||
yabai -m config bottom_padding 10
|
||||
yabai -m config left_padding 10
|
||||
yabai -m config right_padding 10
|
||||
yabai -m config window_gap 10
|
||||
|
||||
yabai -m config window_topmost on
|
||||
yabai -m config window_shadow float
|
||||
|
||||
# From DWM
|
||||
yabai -m rule --add app="^System Preferences$" manage=off border=off
|
||||
yabai -m rule --add app="^Alfred$" manage=off border=off
|
||||
yabai -m rule --add app="choose" manage=off
|
||||
yabai -m rule --add app="Calendar" manage=off
|
||||
yabai -m rule --add app="JDownloader 2*" manage=off
|
||||
|
||||
yabai -m rule --add app="Terminal" space=^1 display=1
|
||||
yabai -m rule --add app="iTerm2" space=^1 display=1
|
||||
|
||||
yabai -m rule --add app="Firefox" space=^2
|
||||
yabai -m rule --add app="Opera" space=^2
|
||||
yabai -m rule --add app="Safari" space=^2
|
||||
|
||||
yabai -m rule --add app="Mail" space=^3
|
||||
|
||||
# Communication
|
||||
yabai -m rule --add app="Slack" space=^4
|
||||
yabai -m rule --add app="Signal" space=^4
|
||||
yabai -m rule --add app="Discord" space=^4
|
||||
yabai -m rule --add app="WhatsApp" space=^4
|
||||
yabai -m rule --add app="Microsoft Teams" space=^4
|
||||
yabai -m rule --add app="Microsoft Outlook" space=^4
|
||||
yabai -m rule --add app="Messages" space=^4
|
||||
|
||||
# Tools
|
||||
yabai -m rule --add app="Music" space=^5
|
||||
yabai -m rule --add app="QuickTime Player" space=^5
|
||||
yabai -m rule --add app="VLC" space=^5
|
||||
yabai -m rule --add app="Spotify" space=^5
|
||||
|
||||
# Floating
|
||||
yabai -m rule --add app="DisplayLinkUserAgent" space=^7
|
||||
@@ -3,13 +3,8 @@
|
||||
CONFIG=$HOME/.config
|
||||
|
||||
parse_git_branch() {
|
||||
command=$(git branch \
|
||||
2> /dev/null |
|
||||
sed -n -e 's/^\* \(.*\)/\1/p' |
|
||||
awk 'NF{print $NF}' |
|
||||
sed 's/)//g' \
|
||||
2> /dev/null)
|
||||
[ -z $command ] && echo -e "$ " || echo -e "$command $ "
|
||||
command=$(git symbolic-ref --short HEAD 2> /dev/null)
|
||||
[ -z $command ] && echo -e "$ " || echo -e "$(git symbolic-ref --short HEAD 2> /dev/null) $ "
|
||||
}
|
||||
|
||||
gbranch() {
|
||||
@@ -19,36 +14,28 @@ gbranch() {
|
||||
[ -f /etc/gentoo-release ] && export ZSH="/usr/share/zsh/site-contrib/oh-my-zsh"
|
||||
[ -f /etc/centos-release ] && export ZSH="$HOME/.oh-my-zsh"
|
||||
[ -f /etc/debian_version ] && export ZSH="$HOME/.oh-my-zsh"
|
||||
[[ "$(uname)" == "Darwin" ]] && export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
HISTFILE=$HOME/.history_zsh
|
||||
HISTSIZE=10000000
|
||||
HISTSIZE=10000
|
||||
SAVEHIST=10000000
|
||||
autoload -U colors && colors
|
||||
autoload bashcompinit && bashcompinit
|
||||
setopt PROMPT_SUBST
|
||||
PS1='%(!.%{$fg_bold[red]%}.%{$fg_bold[green]%}%n@)%m %{$fg_bold[blue]%}%(!.%1~.%~) $(parse_git_branch)%{$reset_color%}'
|
||||
plugins=(rake ruby vagrant knife knife_ssh kitchen)
|
||||
plugins=(rake ruby vagrant knife knife_ssh kitchen )
|
||||
|
||||
ZSH_DISABLE_COMPFIX=true
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
[ -d $CONFIG/zsh/zsh-autosuggestions ] && source $CONFIG/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>> /dev/null
|
||||
[ -d $CONFIG/zsh/zsh-syntax-highlighting ] && source $CONFIG/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>> /dev/null
|
||||
[ -d $CONFIG/zsh/zsh-command-time ] && source $CONFIG/zsh/zsh-command-time/command-time.plugin.zsh &>> /dev/null
|
||||
[ -d $CONFIG/zsh/aws ] && source $CONFIG/zsh/aws/aws.plugin.zsh &>> /dev/null
|
||||
[ -d $CONFIG/zsh/azure-cli ] && source $CONFIG/zsh/azure-cli/az.completion &>> /dev/null
|
||||
[ ! -d $CONFIG/zsh/aws ] && { mkdir -p $CONFIG/zsh/aws ; cd $CONFIG/zsh ; git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ; git clone https://github.com/zsh-users/zsh-autosuggestions.git ; curl https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/plugins/aws/aws.plugin.zsh -o $CONFIG/zsh/aws/aws.plugin.zsh }
|
||||
[ -d $CONFIG/zsh ] && source $CONFIG/zsh/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh &>> /dev/null
|
||||
[ -d $CONFIG/zsh ] && source $CONFIG/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh &>> /dev/null
|
||||
[ -d $CONFIG/zsh ] && source $CONFIG/zsh/aws/aws.plugin.zsh &>> /dev/null
|
||||
[ -f $HOME/.password ] && source $HOME/.password
|
||||
[ ! -d $CONFIG/fzf ] && git clone https://github.com/junegunn/fzf.git $HOME/.config/fzf
|
||||
[ -f $CONFIG/fzf/shell/key-bindings.zsh ] && source $HOME/.config/fzf/shell/key-bindings.zsh
|
||||
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||
FPATH=/usr/local/share/zsh/site-functions:$FPATH
|
||||
|
||||
# Configuration of command-time
|
||||
# If command execution time above min. time, plugins will not output time.
|
||||
ZSH_COMMAND_TIME_MIN_SECONDS=10
|
||||
ZSH_COMMAND_TIME_MSG="Execution time: %s sec"
|
||||
ZSH_COMMAND_TIME_EXCLUDE=(ranger git nvim fzf vim mcedit v ssh lg lazygit tmux)
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
export TERM=xterm-256color
|
||||
export SHELL=/bin/bash
|
||||
@@ -60,175 +47,66 @@ export CCACHE_DIR="/usr/ccache"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export BROWSER=$HOME/.local/bin/browser-x
|
||||
export BROWSER=/home/yorune/.local/bin/browser-x
|
||||
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'
|
||||
export EIX_LIMIT_COMPACT=0
|
||||
export TERMINAL="st"
|
||||
export QT_SCALE_FACTOR=1.5
|
||||
|
||||
# Declerating the PATHs
|
||||
unset PATH
|
||||
export PATH=/bin:$PATH
|
||||
export PATH=/usr/bin:$PATH
|
||||
export PATH=/usr/sbin:$PATH
|
||||
export PATH=/sbin:$PATH
|
||||
export PATH=/usr/local/bin:$PATH
|
||||
export PATH=$HOME/go/bin:$PATH
|
||||
export PATH=$HOME/golang/bin:$PATH
|
||||
export PATH=$HOME/.local/bin:$PATH
|
||||
export PATH=$HOME/node_modules/.bin:$PATH
|
||||
export PATH=$CONFIG/fzf/bin:$PATH
|
||||
export GOPATH=$HOME/golang
|
||||
export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
[ -d $HOME/git/fortigate/bin ] && export PATH=$HOME/git/fortigate/bin:$PATH
|
||||
|
||||
# History
|
||||
export HISTTIMEFORMAT="%F %T "
|
||||
|
||||
# Work
|
||||
alias ssh-work="ssh -i ~/.ssh/work/id_rsa"
|
||||
alias rsyncwork="rsync -h --progress -e 'ssh -i ~/.ssh/work/id_rsa'"
|
||||
alias git-work='GIT_SSH_COMMAND="ssh -i ~/.ssh/work/id_rsa" git'
|
||||
alias git-commit-work="git commit --author='Marcin Woźniak <marcin.wozniak@vml.com>'"
|
||||
|
||||
# Alias and Export Gentoo
|
||||
alias svm="sudo $EDITOR /etc/portage/make.conf"
|
||||
alias svr="sudo $EDITOR /etc/portage/repos.conf"
|
||||
alias svp="sudo $EDITOR /etc/portage/package.use"
|
||||
alias sva="sudo $EDITOR /etc/portage/package.accept_keywords"
|
||||
export VISUAL='nvim'
|
||||
export EDITOR='nvim'
|
||||
alias vimc="nvim $HOME/.vimrc"
|
||||
alias svm="sudo nvim /etc/portage/make.conf"
|
||||
alias svr="sudo nvim /etc/portage/repos.conf"
|
||||
alias svp="sudo nvim /etc/portage/package.use"
|
||||
alias sva="sudo nvim /etc/portage/package.accept_keywords"
|
||||
alias emerge="sudo emerge"
|
||||
alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'"
|
||||
alias code="vscodium-bin"
|
||||
alias pl="setxkbmap pl"
|
||||
alias feh="feh --edit --scale-down"
|
||||
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
|
||||
alias mylaptop-components="inxi -Fxz"
|
||||
alias update_time="sudo ntpdate -b -u vega.cbk.poznan.pl"
|
||||
alias dt='LC_TIME=C /bin/date "+%Y%m%d%H%M%S"'
|
||||
|
||||
# Alias and Export for Mac
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
# Resolve problem with GOPATH
|
||||
# https://stackoverflow.com/questions/66284870/go-get-not-downloading-to-src-folder
|
||||
export GO111MODULE=on
|
||||
|
||||
# Other export
|
||||
export OPENSSLVER=$(ls "/opt/homebrew/Cellar/openssl@3/" |
|
||||
sort |
|
||||
grep -iE '[0-9]+\.[0-9]+\.' |
|
||||
tail -n1)
|
||||
|
||||
export PATH="/opt/homebrew/Cellar/openssl@3/$OPENSSLVER/bin:$PATH"
|
||||
export PATH="/opt/homebrew/bin:$PATH"
|
||||
export LDFLAGS="-L/opt/homebrew/Cellar/openssl@3/$OPENSSLVER/lib"
|
||||
export CPPFLAGS="-I/opt/homebrew/Cellar/openssl@3/$OPENSSLVER/include"
|
||||
export PKG_CONFIG_PATH="/opt/homebrew/openssl@3/$OPENSSLVER/lib/pkgconfig"
|
||||
export GOROOT="$(brew --prefix golang)/libexec"
|
||||
export PATH=$PATH:$GOPATH/bin
|
||||
export PATH=$PATH:$GOROOT/bin
|
||||
|
||||
export PYTHONVERSION=$(ls -la /opt/homebrew/opt/ |
|
||||
grep -iEo 'python@.* ->' |
|
||||
sed 's/ ->//g' |
|
||||
sort |
|
||||
tail -n1 |
|
||||
sed 's/python@//g')
|
||||
|
||||
export PATH=$PATH:$HOME/Library/Python/$PYTHONVERSION/bin
|
||||
export PATH=$PATH:/usr/local/opt/python@$PYTHONVERSION/Frameworks/Python.framework/Versions/$PYTHONVERSION/bin
|
||||
export PATH="$(brew --prefix python@$PYTHONVERSION)/bin:$PATH"
|
||||
alias python3='/opt/homebrew/bin/python$PYTHONVERSION'
|
||||
alias pip3='/opt/homebrew/bin/pip$PYTHONVERSION'
|
||||
alias python='/opt/homebrew/bin/python$PYTHONVERSION'
|
||||
alias pip='/opt/homebrew/bin/pip$PYTHONVERSION'
|
||||
alias sed='gsed'
|
||||
alias zcat='gzcat'
|
||||
alias date='gdate'
|
||||
|
||||
alias lsblk="diskutil list"
|
||||
alias Update="$HOME/.local/bin/Update-pkg; brew update; brew upgrade; brew upgrade --greedy; sudo softwareupdate -i -a -R"
|
||||
alias ls="ls -Gh"
|
||||
alias mpv="mpv --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo+bestaudio/best'"
|
||||
alias code="open -a 'Visual Studio Code'"
|
||||
alias xclip="sed $'s,\x1b\\[[0-9;]*[a-zA-Z],,g' | pbcopy"
|
||||
alias mtr="sudo /opt/homebrew/opt/mtr/sbin/mtr"
|
||||
alias sleep-lid-off="sudo pmset -b sleep 0; sudo pmset -b disablesleep 1"
|
||||
alias sleep-lid-on="sudo pmset -b sleep 5; sudo pmset -b disablesleep 0"
|
||||
alias restart-network-share="sudo pkill -i netauthsysagent"
|
||||
alias streamlink="streamlink --config $HOME/.config/streamlink/config"
|
||||
alias powershell="pwsh"
|
||||
|
||||
# Terraform
|
||||
export TFENV_ARCH=amd64
|
||||
export TFENVVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/ |
|
||||
grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
|
||||
sort |
|
||||
head -n1)
|
||||
export TFVERSION=$(ls -la /opt/homebrew/Cellar/tfenv/*/versions |
|
||||
grep -iEo '[0-9]+\.[0-9]+\.[0-9]+' |
|
||||
sort |
|
||||
head -n1)
|
||||
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
|
||||
|
||||
# Unset browser
|
||||
unset BROWSER
|
||||
|
||||
# Docker as linux/amd64
|
||||
export DOCKER_DEFAULT_PLATFORM=linux/amd64
|
||||
fi
|
||||
|
||||
# Setting the right editor
|
||||
if which nvim > /dev/null 2>&1; then
|
||||
export VISUAL='nvim -u $HOME/.vimrc'
|
||||
export EDITOR='nvim -u $HOME/.vimrc'
|
||||
else
|
||||
export VISUAL='vim -u $HOME/.vimrc-def'
|
||||
export EDITOR='vim -u $HOME/.vimrc-def'
|
||||
fi
|
||||
|
||||
# Vim
|
||||
alias vimc="$EDITOR $HOME/.vimrc"
|
||||
alias v="$EDITOR -p"
|
||||
alias vim="$EDITOR -p"
|
||||
|
||||
# Commands
|
||||
alias traceroute="mtr"
|
||||
alias rsync="rsync -h --progress"
|
||||
alias lg="lazygit"
|
||||
alias ldocker="lazydocker"
|
||||
alias ls="ls -h --color=auto"
|
||||
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'
|
||||
alias grep="grep --color=always"
|
||||
alias egrep="egrep --color=always"
|
||||
alias ls='ls -h --color=auto'
|
||||
alias ll='ls -lha'
|
||||
alias r="ranger"
|
||||
alias cp='cp -v'
|
||||
alias mv='mv -v'
|
||||
alias myip="curl ipinfo.io/ip"
|
||||
alias logi="journalctl -f"
|
||||
alias pl="setxkbmap pl"
|
||||
alias graphic-card="glxinfo|egrep 'OpenGL vendor|OpenGL renderer'"
|
||||
alias mylaptop-components="inxi -Fxz"
|
||||
alias r="ranger"
|
||||
alias v="nvim"
|
||||
alias feh="feh --scale-down"
|
||||
alias changefont="figlet"
|
||||
alias gmaster="git checkout master"
|
||||
alias gcommit="git commit --author='Marcin Woźniak <y0rune@aol.com>' -s"
|
||||
alias gcommitw="git commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com>'"
|
||||
alias gdel="git push origin --delete"
|
||||
alias gadd="git add"
|
||||
alias gpush="git push"
|
||||
alias gpull="git pull"
|
||||
alias gstatus="git status -s"
|
||||
alias gst="git status -s"
|
||||
alias gdiff="git diff"
|
||||
alias gnew="git checkout -b"
|
||||
alias glog="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches"
|
||||
alias gfg="git checkout master && git fetch upstream && git pull upstream master"
|
||||
alias cal="cal -3"
|
||||
alias code="vscodium-bin"
|
||||
alias vpn="sudo /root/.local/bin/protonvpn c -f"
|
||||
alias vpnch="sudo /root/.local/bin/protonvpn c --cc CH"
|
||||
alias vpnd="sudo /root/.local/bin/protonvpn d"
|
||||
alias tv="~/MEGA/tv/tv.sh"
|
||||
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
|
||||
alias vim="nvim -p"
|
||||
alias denpl="trans en:pl"
|
||||
alias dplen="trans pl:en"
|
||||
alias myip="curl ipinfo.io/ip"
|
||||
alias changefont="figlet"
|
||||
|
||||
# Others
|
||||
alias channel-check='sudo iwlist wlan0 scan | egrep -i "essid|frequency"'
|
||||
alias newswork="newsboat --url=$HOME/.config/newsboat/urlswork"
|
||||
alias notes="nvim $HOME/git/notes/index.md"
|
||||
alias mgr="cd $HOME/Documents/Mega-Documents/Magisterka-Marcin/Semestr1/"
|
||||
alias mpv="__NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia __GL_SYNC_TO_VBLANK=0 mpv --vo=x11 --hwdec=no --ytdl-raw-options="yes-playlist=" --no-resume-playback --ytdl-format='bestvideo[height<=?1080]+bestaudio/best'"
|
||||
alias aria2c="aria2c --seed-time=0 --disable-ipv6 --max-upload-limit=1k"
|
||||
alias irc="ssh mikrus -t 'screen -r'"
|
||||
alias neofetch=fastfetch
|
||||
alias lg="lazygit"
|
||||
|
||||
# Zoxide
|
||||
[ -f $(which zoxide) ] && {eval "$(zoxide init zsh)"; alias cd='z'}
|
||||
|
||||
# GoLang
|
||||
alias go-mod="go mod edit -go=$(go version | grep -oE 'go[0-9]*\.[0-9]*\.[0-9]*' | sed 's/go//g'); go get -u ./... ; go mod verify; go get -x -v; go mod verify; go mod tidy"
|
||||
|
||||
# Resolve problem with - zsh: no matches found
|
||||
setopt +o nomatch
|
||||
|
||||
# Error with icu
|
||||
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
|
||||
|
||||
# Security changes made in High Sierra that are breaking lots of Python things that use fork()
|
||||
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
|
||||
|
||||
# Error with Delinea - Linux
|
||||
[ -f "/etc/ssl/certs/ca-certificates.crt" ] && export REQUESTS_CA_BUNDLE='/etc/ssl/certs/ca-certificates.crt'
|
||||
# Cleaning-up
|
||||
export PATH=$HOME/.local/bin:$PATH
|
||||
export PATH=/sbin:$PATH
|
||||
[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH
|
||||
export HISTTIMEFORMAT="%F %T "
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
refresher:
|
||||
refreshInterval: 60
|
||||
gui:
|
||||
useHunkModeInStagingView: false
|
||||
mainPanelSplitMode: "horizontal"
|
||||
theme:
|
||||
selectedLineBgColor:
|
||||
- "#413660"
|
||||
git:
|
||||
autoFetch: true
|
||||
pagers:
|
||||
- colorArg: always
|
||||
commit:
|
||||
signOff: true
|
||||
pull:
|
||||
mode: "rebase"
|
||||
@@ -1,2 +0,0 @@
|
||||
player=mpv --cache 2048 --no-resume-playback
|
||||
player-no-close
|
||||
Reference in New Issue
Block a user