mirror of
https://github.com/sahinakkaya/dotfiles.git
synced 2024-12-23 07:39:36 +01:00
Back up the old config
This commit is contained in:
parent
26187caba8
commit
5541bf317b
@ -1,162 +1,73 @@
|
|||||||
# This file has been auto-generated by i3-config-wizard(1).
|
|
||||||
# It will not be overwritten, so edit it as you like.
|
|
||||||
#
|
|
||||||
# Should you change your keyboard layout some time, delete
|
|
||||||
# this file and re-run i3-config-wizard(1).
|
|
||||||
#
|
|
||||||
|
|
||||||
# i3 config file (v4)
|
|
||||||
#
|
|
||||||
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
|
||||||
|
|
||||||
set $mod Mod1
|
set $mod Mod1
|
||||||
|
|
||||||
# Font for window titles. Will also be used by the bar unless a different font
|
font pango:monospace 12
|
||||||
# is used in the bar {} block below.
|
|
||||||
font pango:monospace 8
|
|
||||||
|
|
||||||
# This font is widely installed, provides lots of unicode glyphs, right-to-left
|
|
||||||
# text rendering and scalability on retina/hidpi displays (thanks to pango).
|
|
||||||
#font pango:DejaVu Sans Mono 8
|
|
||||||
|
|
||||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
|
||||||
# they are included here as an example. Modify as you see fit.
|
|
||||||
|
|
||||||
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
|
|
||||||
# screen before suspend. Use loginctl lock-session to lock your screen.
|
|
||||||
# exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
|
||||||
|
|
||||||
# NetworkManager is the most popular way to manage wireless networks on Linux,
|
|
||||||
# and nm-applet is a desktop environment-independent system tray GUI for it.
|
|
||||||
exec --no-startup-id nm-applet
|
exec --no-startup-id nm-applet
|
||||||
|
|
||||||
# custom settings
|
exec_always --no-startup-id pkill picom; picom --no-use-damage --experimental-backends
|
||||||
exec_always --no-startup-id pkill picom; picom --no-use-damage
|
|
||||||
exec_always --no-startup-id pkill dunst; dunst
|
exec_always --no-startup-id pkill dunst; dunst
|
||||||
|
|
||||||
|
|
||||||
exec_always --no-startup-id xrdb ~/.Xresources
|
exec_always --no-startup-id xrdb ~/.Xresources
|
||||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||||
# exec_always --no-startup-id $HOME/.config/polybar/launch.sh
|
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
# Set common scripts to vars
|
|
||||||
set $rofi ~/scripts/rofi/launch.sh
|
|
||||||
set $music ~/scripts/music/mpv-controller.sh
|
|
||||||
|
|
||||||
# Turn borders off
|
|
||||||
for_window [class="^.*"] border pixel 2
|
for_window [class="^.*"] border pixel 2
|
||||||
set_from_resource $fg i3wm.color1 #f0f0f0
|
set_from_resource $fg i3wm.color1 #f0f0f0
|
||||||
set_from_resource $bg i3wm.color3 #ccaa00
|
set_from_resource $bg i3wm.color3 #ccaa00
|
||||||
set_from_resource $grayish i3wm.color15 #555555
|
set_from_resource $grayish i3wm.color15 #555555
|
||||||
# class border backgr. text indicator child_border
|
|
||||||
client.focused $grayish $grayish $fg $bg $bg
|
client.focused $grayish $grayish $fg $bg $bg
|
||||||
|
|
||||||
# Change gap size
|
gaps bottom 20
|
||||||
gaps outer 20
|
|
||||||
gaps inner 10
|
|
||||||
gaps top 20
|
|
||||||
|
|
||||||
# kill focused window
|
bindsym $mod+m exec ~/scripts/i3-layout-manager/layout_manager.sh
|
||||||
bindsym $mod+q kill
|
bindsym $mod+x exec ~/scripts/kill-process.sh
|
||||||
|
|
||||||
# Start rofi with appmenu and tabmenu
|
|
||||||
bindsym $mod+space layout toggle split
|
|
||||||
bindsym $mod+d exec $rofi appmenu
|
|
||||||
bindsym $mod+Tab workspace back_and_forth
|
bindsym $mod+Tab workspace back_and_forth
|
||||||
bindsym $mod+Shift+e exec $rofi powermenu
|
|
||||||
|
|
||||||
|
|
||||||
# Set up screenshots and partial screenshots
|
|
||||||
bindsym --release Print exec maim -u ~/Pictures/Screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
|
|
||||||
bindsym --release Shift+Print exec -u maim -s ~/Pictures/Screenshots/`date +%Y-%m-%d_%H:%M:%S`.png
|
|
||||||
|
|
||||||
bindsym $mod+Ctrl+l exec --no-startup-id ~/scripts/misc/i3-lock.sh
|
|
||||||
|
|
||||||
|
|
||||||
# Bind brightness keys to light interface
|
|
||||||
bindsym XF86MonBrightnessUp exec light -A 5
|
|
||||||
bindsym XF86MonBrightnessDown exec light -U 5
|
|
||||||
|
|
||||||
# Drag floating windows
|
|
||||||
floating_modifier $mod
|
|
||||||
|
|
||||||
# Use pactl to adjust volume in PulseAudio.
|
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||||
|
|
||||||
# Use Mouse+$mod to drag floating windows to their wanted position
|
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# start a terminal
|
bindsym $mod+Return exec st
|
||||||
# bindsym $mod+Return exec i3-sensible-terminal
|
|
||||||
|
|
||||||
# kill focused window
|
|
||||||
# bindsym $mod+Shift+q kill
|
|
||||||
|
|
||||||
# start dmenu (a program launcher)
|
|
||||||
# bindsym $mod+d exec dmenu_run
|
|
||||||
# There also is the (new) i3-dmenu-desktop which only displays applications
|
|
||||||
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
|
|
||||||
# installed.
|
|
||||||
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
|
|
||||||
|
|
||||||
# change focus
|
|
||||||
bindsym $mod+h focus left
|
bindsym $mod+h focus left
|
||||||
bindsym $mod+j focus down
|
bindsym $mod+j focus down
|
||||||
bindsym $mod+k focus up
|
bindsym $mod+k focus up
|
||||||
bindsym $mod+l focus right
|
bindsym $mod+l focus right
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
# bindsym $mod+Left focus left
|
|
||||||
# bindsym $mod+Down focus down
|
|
||||||
# bindsym $mod+Up focus up
|
|
||||||
# bindsym $mod+Right focus right
|
|
||||||
|
|
||||||
# move focused window
|
|
||||||
bindsym $mod+Shift+h move left
|
bindsym $mod+Shift+h move left
|
||||||
bindsym $mod+Shift+j move down
|
bindsym $mod+Shift+j move down
|
||||||
bindsym $mod+Shift+k move up
|
bindsym $mod+Shift+k move up
|
||||||
bindsym $mod+Shift+l move right
|
bindsym $mod+Shift+l move right
|
||||||
|
|
||||||
# alternatively, you can use the cursor keys:
|
|
||||||
# bindsym $mod+Shift+Left move left
|
|
||||||
# bindsym $mod+Shift+Down move down
|
|
||||||
# bindsym $mod+Shift+Up move up
|
|
||||||
# bindsym $mod+Shift+Right move right
|
|
||||||
|
|
||||||
# split in horizontal orientation
|
|
||||||
bindsym $mod+backslash split h
|
|
||||||
|
|
||||||
# split in vertical orientation
|
|
||||||
bindsym $mod+minus split v
|
|
||||||
|
|
||||||
# enter fullscreen mode for the focused container
|
|
||||||
bindsym $mod+f fullscreen toggle
|
bindsym $mod+f fullscreen toggle
|
||||||
|
|
||||||
# change container layout (stacked, tabbed, toggle split)
|
bindsym $mod+minus layout stacking
|
||||||
bindsym $mod+s layout stacking
|
bindsym $mod+t layout tabbed
|
||||||
bindsym $mod+w layout tabbed
|
bindsym $mod+w layout toggle split
|
||||||
bindsym $mod+e layout toggle split
|
|
||||||
|
|
||||||
# toggle tiling / floating
|
|
||||||
bindsym $mod+Shift+space floating toggle
|
bindsym $mod+Shift+space floating toggle
|
||||||
|
|
||||||
# change focus between tiling / floating windows
|
bindsym $mod+Control+space focus mode_toggle
|
||||||
bindsym $mod+Control+space focus mode_toggle
|
|
||||||
|
|
||||||
# focus the parent container
|
|
||||||
bindsym $mod+a focus parent
|
|
||||||
|
|
||||||
# focus the child container
|
|
||||||
#bindsym $mod+d focus child
|
|
||||||
|
|
||||||
# Define names for default workspaces for which we configure key bindings later on.
|
|
||||||
# We use variables to avoid repeating the names in multiple places.
|
|
||||||
set $ws1 "1"
|
set $ws1 "1"
|
||||||
set $ws2 "2"
|
set $ws2 "2"
|
||||||
set $ws3 "3"
|
set $ws3 "3"
|
||||||
@ -169,45 +80,49 @@ set $ws9 "9"
|
|||||||
set $ws10 "10"
|
set $ws10 "10"
|
||||||
|
|
||||||
assign [class="Discord"] $ws9
|
assign [class="Discord"] $ws9
|
||||||
|
assign [class="Firefox"] $ws2
|
||||||
|
assign [class="zoom"] $ws4
|
||||||
|
assign [class="streamlink-twitch-gui"] $ws3
|
||||||
|
|
||||||
# Bind keys to switch to next workspace
|
bindsym $mod+e workspace prev
|
||||||
bindsym $mod+n workspace next
|
bindsym $mod+u workspace next
|
||||||
bindsym $mod+p workspace prev
|
|
||||||
bindsym $mod+bracketleft workspace back_and_forth
|
|
||||||
# bindsym $mod+bracketright workspace back_and_forth
|
|
||||||
|
|
||||||
# switch to workspace
|
|
||||||
bindsym $mod+1 workspace number $ws1
|
bindsym $mod+semicolon workspace number $ws1
|
||||||
bindsym $mod+2 workspace number $ws2
|
bindsym $mod+comma workspace number $ws2
|
||||||
bindsym $mod+3 workspace number $ws3
|
bindsym $mod+period workspace number $ws3
|
||||||
bindsym $mod+4 workspace number $ws4
|
bindsym $mod+p workspace number $ws4
|
||||||
bindsym $mod+5 workspace number $ws5
|
bindsym $mod+y workspace number $ws5
|
||||||
bindsym $mod+6 workspace number $ws6
|
bindsym $mod+6 workspace number $ws6
|
||||||
bindsym $mod+7 workspace number $ws7
|
bindsym $mod+g workspace number $ws7
|
||||||
bindsym $mod+8 workspace number $ws8
|
bindsym $mod+c workspace number $ws8
|
||||||
bindsym $mod+9 workspace number $ws9
|
bindsym $mod+r workspace number $ws9
|
||||||
bindsym $mod+0 workspace number $ws10
|
bindsym $mod+0 workspace number $ws10
|
||||||
|
|
||||||
# move focused container to workspace
|
|
||||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
bindsym $mod+Shift+semicolon move container to workspace number $ws1
|
||||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
bindsym $mod+Shift+comma move container to workspace number $ws2
|
||||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
bindsym $mod+Shift+period move container to workspace number $ws3
|
||||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
bindsym $mod+Shift+p move container to workspace number $ws4
|
||||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
bindsym $mod+Shift+y move container to workspace number $ws5
|
||||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
bindsym $mod+Shift+g move container to workspace number $ws7
|
||||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
bindsym $mod+Shift+c move container to workspace number $ws8
|
||||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
bindsym $mod+Shift+r move container to workspace number $ws9
|
||||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||||
|
|
||||||
# reload the configuration file
|
bindsym $mod+Shift+grave move scratchpad
|
||||||
bindsym $mod+Shift+c reload
|
|
||||||
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
|
bindsym $mod+grave scratchpad show
|
||||||
bindsym $mod+Shift+r restart
|
|
||||||
# exit i3 (logs you out of your X session)
|
for_window [title="(?i)Terminator Preferences"] floating enable
|
||||||
# bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
|
for_window [title="^Calculator$"] floating enable
|
||||||
|
for_window [title="^Telegram$"] floating enable
|
||||||
|
|
||||||
|
for_window [urgent=latest] focus
|
||||||
|
|
||||||
|
bindsym $mod+Control+r restart
|
||||||
|
|
||||||
# resize window (you can also use the mouse for that)
|
|
||||||
mode "resize" {
|
mode "resize" {
|
||||||
# These bindings trigger as soon as you enter the resize mode
|
# These bindings trigger as soon as you enter the resize mode
|
||||||
|
|
||||||
@ -226,16 +141,11 @@ mode "resize" {
|
|||||||
bindsym Up resize shrink height 10 px or 10 ppt
|
bindsym Up resize shrink height 10 px or 10 ppt
|
||||||
bindsym Right resize grow width 10 px or 10 ppt
|
bindsym Right resize grow width 10 px or 10 ppt
|
||||||
|
|
||||||
# back to normal: Enter or Escape or $mod+r
|
# back to normal: Enter or Escape or $mod+s
|
||||||
bindsym Return mode "default"
|
bindsym Return mode "default"
|
||||||
bindsym Escape mode "default"
|
bindsym Escape mode "default"
|
||||||
bindsym $mod+r mode "default"
|
bindsym $mod+s mode "default"
|
||||||
}
|
}
|
||||||
|
|
||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+s mode "resize"
|
||||||
|
|
||||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
|
||||||
# finds out, if available)
|
|
||||||
# bar {
|
|
||||||
# status_command i3status
|
|
||||||
# }
|
|
||||||
|
@ -1,38 +0,0 @@
|
|||||||
CONFIG_PATH = vim.fn.stdpath('config')
|
|
||||||
DATA_PATH = vim.fn.stdpath('data')
|
|
||||||
CACHE_PATH = vim.fn.stdpath('cache')
|
|
||||||
TERMINAL = vim.fn.expand('$TERMINAL')
|
|
||||||
|
|
||||||
-- load all plugins
|
|
||||||
require "pluginList"
|
|
||||||
local g = vim.g
|
|
||||||
g.vimspector_enable_mappings = 'HUMAN'
|
|
||||||
|
|
||||||
require "misc-utils"
|
|
||||||
require "top-bufferline"
|
|
||||||
|
|
||||||
|
|
||||||
g.mapleader = " "
|
|
||||||
g.auto_save = false
|
|
||||||
|
|
||||||
-- colorscheme related stuff
|
|
||||||
|
|
||||||
g.nvchad_theme = "onedark"
|
|
||||||
local base16 = require "base16"
|
|
||||||
base16(base16.themes["onedark"], true)
|
|
||||||
|
|
||||||
require "highlights"
|
|
||||||
require "mappings"
|
|
||||||
require "file-icons"
|
|
||||||
require "statusline"
|
|
||||||
require "which-key-nvim"
|
|
||||||
|
|
||||||
-- hide line numbers , statusline in specific buffers!
|
|
||||||
vim.api.nvim_exec(
|
|
||||||
[[
|
|
||||||
au BufEnter term://* setlocal nonumber
|
|
||||||
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
|
|
||||||
au BufEnter term://* set laststatus=0
|
|
||||||
]],
|
|
||||||
false
|
|
||||||
)
|
|
@ -1,38 +0,0 @@
|
|||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
require "compe".setup {
|
|
||||||
enabled = true,
|
|
||||||
autocomplete = true,
|
|
||||||
debug = false,
|
|
||||||
min_length = 1,
|
|
||||||
preselect = "enable",
|
|
||||||
throttle_time = 80,
|
|
||||||
source_timeout = 200,
|
|
||||||
incomplete_delay = 400,
|
|
||||||
max_abbr_width = 100,
|
|
||||||
max_kind_width = 100,
|
|
||||||
max_menu_width = 100,
|
|
||||||
documentation = true,
|
|
||||||
source = {
|
|
||||||
buffer = {kind = "", true},
|
|
||||||
luasnip = {kind = "", true},
|
|
||||||
nvim_lsp = true,
|
|
||||||
nvim_lua = true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
M.snippets = function()
|
|
||||||
local ls = require("luasnip")
|
|
||||||
|
|
||||||
ls.config.set_config(
|
|
||||||
{
|
|
||||||
history = true,
|
|
||||||
updateevents = "TextChanged,TextChangedI"
|
|
||||||
}
|
|
||||||
)
|
|
||||||
require("luasnip/loaders/from_vscode").load()
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,42 +0,0 @@
|
|||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
local g = vim.g
|
|
||||||
|
|
||||||
g.dashboard_disable_at_vimenter = 0 -- dashboard is disabled by default
|
|
||||||
g.dashboard_disable_statusline = 1
|
|
||||||
g.dashboard_default_executive = "telescope"
|
|
||||||
g.dashboard_custom_header = {
|
|
||||||
" ",
|
|
||||||
" ",
|
|
||||||
" ",
|
|
||||||
" ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ ",
|
|
||||||
" ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ ",
|
|
||||||
" ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ ",
|
|
||||||
" ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ ",
|
|
||||||
" ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ ",
|
|
||||||
" ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ ",
|
|
||||||
" ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ",
|
|
||||||
" ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ",
|
|
||||||
" ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ",
|
|
||||||
" ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ",
|
|
||||||
" ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ",
|
|
||||||
" "
|
|
||||||
}
|
|
||||||
|
|
||||||
g.dashboard_custom_section = {
|
|
||||||
a = {description = {" Find File SPC f f"}, command = "Telescope find_files"},
|
|
||||||
b = {description = {" Recents SPC f o"}, command = "Telescope oldfiles"},
|
|
||||||
c = {description = {" Find Word SPC f w"}, command = "Telescope live_grep"},
|
|
||||||
d = {description = {"洛 New File SPC f n"}, command = "DashboardNewFile"},
|
|
||||||
e = {description = {" Bookmarks SPC b m"}, command = "Telescope marks"},
|
|
||||||
f = {description = {" Load Last Session SPC s l"}, command = "SessionLoad"}
|
|
||||||
}
|
|
||||||
|
|
||||||
g.dashboard_custom_footer = {
|
|
||||||
" ",
|
|
||||||
"NvChad v0.5"
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,117 +0,0 @@
|
|||||||
local global_theme = "themes/" .. vim.g.nvchad_theme
|
|
||||||
local colors = require(global_theme)
|
|
||||||
|
|
||||||
require "nvim-web-devicons".setup {
|
|
||||||
override = {
|
|
||||||
html = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.baby_pink,
|
|
||||||
name = "html"
|
|
||||||
},
|
|
||||||
css = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.blue,
|
|
||||||
name = "css"
|
|
||||||
},
|
|
||||||
js = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.sun,
|
|
||||||
name = "js"
|
|
||||||
},
|
|
||||||
ts = {
|
|
||||||
icon = "ﯤ",
|
|
||||||
color = colors.teal,
|
|
||||||
name = "ts"
|
|
||||||
},
|
|
||||||
kt = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.orange,
|
|
||||||
name = "kt"
|
|
||||||
},
|
|
||||||
png = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.dark_purple,
|
|
||||||
name = "png"
|
|
||||||
},
|
|
||||||
jpg = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.dark_purple,
|
|
||||||
name = "jpg"
|
|
||||||
},
|
|
||||||
jpeg = {
|
|
||||||
icon = "",
|
|
||||||
color = "colors.dark_purple",
|
|
||||||
name = "jpeg"
|
|
||||||
},
|
|
||||||
mp3 = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.white,
|
|
||||||
name = "mp3"
|
|
||||||
},
|
|
||||||
mp4 = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.white,
|
|
||||||
name = "mp4"
|
|
||||||
},
|
|
||||||
out = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.white,
|
|
||||||
name = "out"
|
|
||||||
},
|
|
||||||
Dockerfile = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.cyan,
|
|
||||||
name = "Dockerfile"
|
|
||||||
},
|
|
||||||
rb = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.pink,
|
|
||||||
name = "rb"
|
|
||||||
},
|
|
||||||
vue = {
|
|
||||||
icon = "﵂",
|
|
||||||
color = colors.vibrant_green,
|
|
||||||
name = "vue"
|
|
||||||
},
|
|
||||||
py = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.cyan,
|
|
||||||
name = "py"
|
|
||||||
},
|
|
||||||
toml = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.blue,
|
|
||||||
name = "toml"
|
|
||||||
},
|
|
||||||
lock = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.red,
|
|
||||||
name = "lock"
|
|
||||||
},
|
|
||||||
zip = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.sun,
|
|
||||||
name = "zip"
|
|
||||||
},
|
|
||||||
xz = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.sun,
|
|
||||||
name = "xz"
|
|
||||||
},
|
|
||||||
deb = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.cyan,
|
|
||||||
name = "deb"
|
|
||||||
},
|
|
||||||
rpm = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.orange,
|
|
||||||
name = "rpm"
|
|
||||||
},
|
|
||||||
lua = {
|
|
||||||
icon = "",
|
|
||||||
color = colors.blue,
|
|
||||||
name = "lua"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,33 +0,0 @@
|
|||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
require("gitsigns").setup {
|
|
||||||
signs = {
|
|
||||||
add = {hl = "DiffAdd", text = "▌", numhl = "GitSignsAddNr"},
|
|
||||||
change = {hl = "DiffChange", text = "▌", numhl = "GitSignsChangeNr"},
|
|
||||||
delete = {hl = "DiffDelete", text = "_", numhl = "GitSignsDeleteNr"},
|
|
||||||
topdelete = {hl = "DiffDelete", text = "‾", numhl = "GitSignsDeleteNr"},
|
|
||||||
changedelete = {hl = "DiffChange", text = "~", numhl = "GitSignsChangeNr"}
|
|
||||||
},
|
|
||||||
numhl = false,
|
|
||||||
keymaps = {
|
|
||||||
-- Default keymap options
|
|
||||||
noremap = true,
|
|
||||||
buffer = true,
|
|
||||||
["n ]c"] = {expr = true, '&diff ? \']c\' : \'<cmd>lua require"gitsigns".next_hunk()<CR>\''},
|
|
||||||
["n [c"] = {expr = true, '&diff ? \'[c\' : \'<cmd>lua require"gitsigns".prev_hunk()<CR>\''},
|
|
||||||
["n <leader>hs"] = '<cmd>lua require"gitsigns".stage_hunk()<CR>',
|
|
||||||
["n <leader>hu"] = '<cmd>lua require"gitsigns".undo_stage_hunk()<CR>',
|
|
||||||
["n <leader>hr"] = '<cmd>lua require"gitsigns".reset_hunk()<CR>',
|
|
||||||
["n <leader>hp"] = '<cmd>lua require"gitsigns".preview_hunk()<CR>',
|
|
||||||
["n <leader>hb"] = '<cmd>lua require"gitsigns".blame_line()<CR>'
|
|
||||||
},
|
|
||||||
watch_index = {
|
|
||||||
interval = 100
|
|
||||||
},
|
|
||||||
sign_priority = 5,
|
|
||||||
status_formatter = nil -- Use default
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,146 +0,0 @@
|
|||||||
local cmd = vim.cmd
|
|
||||||
|
|
||||||
local global_theme = "themes/" .. vim.g.nvchad_theme
|
|
||||||
local colors = require(global_theme)
|
|
||||||
|
|
||||||
local white = colors.white
|
|
||||||
local darker_black = colors.darker_black
|
|
||||||
local black = colors.black
|
|
||||||
local black2 = colors.black2
|
|
||||||
local one_bg = colors.one_bg
|
|
||||||
local one_bg2 = colors.one_bg2
|
|
||||||
local one_bg3 = colors.one_bg3
|
|
||||||
local light_grey = colors.light_grey
|
|
||||||
local grey = colors.grey
|
|
||||||
local grey_fg = colors.grey_fg
|
|
||||||
local red = colors.red
|
|
||||||
local line = colors.line
|
|
||||||
local green = colors.green
|
|
||||||
local nord_blue = colors.nord_blue
|
|
||||||
local blue = colors.blue
|
|
||||||
local yellow = colors.yellow
|
|
||||||
local purple = colors.purple
|
|
||||||
|
|
||||||
-- for guifg , bg
|
|
||||||
|
|
||||||
local function fg(group, color)
|
|
||||||
cmd("hi " .. group .. " guifg=" .. color)
|
|
||||||
end
|
|
||||||
|
|
||||||
local function bg(group, color)
|
|
||||||
cmd("hi " .. group .. " guibg=" .. color)
|
|
||||||
end
|
|
||||||
|
|
||||||
local function fg_bg(group, fgcol, bgcol)
|
|
||||||
cmd("hi " .. group .. " guifg=" .. fgcol .. " guibg=" .. bgcol)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- blankline
|
|
||||||
|
|
||||||
fg("IndentBlanklineChar", line)
|
|
||||||
|
|
||||||
-- misc --
|
|
||||||
fg("LineNr", grey)
|
|
||||||
fg("Comment", grey)
|
|
||||||
vim.cmd("highlight Comment gui=italic")
|
|
||||||
fg("NvimInternalError", red)
|
|
||||||
fg("VertSplit", line)
|
|
||||||
fg("EndOfBuffer", black)
|
|
||||||
|
|
||||||
-- Pmenu
|
|
||||||
bg("Pmenu", one_bg)
|
|
||||||
bg("PmenuSbar", one_bg2)
|
|
||||||
bg("PmenuSel", green)
|
|
||||||
bg("PmenuThumb", nord_blue)
|
|
||||||
|
|
||||||
-- inactive statuslines as thin splitlines
|
|
||||||
cmd("hi! StatusLineNC gui=underline guifg=" .. line)
|
|
||||||
|
|
||||||
-- line n.o
|
|
||||||
cmd "hi clear CursorLine"
|
|
||||||
fg("cursorlinenr", white)
|
|
||||||
|
|
||||||
-- git signs ---
|
|
||||||
fg_bg("DiffAdd", nord_blue, "none")
|
|
||||||
fg_bg("DiffChange", one_bg2, "none")
|
|
||||||
fg_bg("DiffModified", nord_blue, "none")
|
|
||||||
|
|
||||||
-- NvimTree
|
|
||||||
fg("NvimTreeFolderIcon", blue)
|
|
||||||
fg("NvimTreeFolderName", blue)
|
|
||||||
fg("NvimTreeOpenedFolderName", blue)
|
|
||||||
fg("NvimTreeEmptyFolderName", blue)
|
|
||||||
fg("NvimTreeIndentMarker", one_bg2)
|
|
||||||
fg("NvimTreeVertSplit", darker_black)
|
|
||||||
bg("NvimTreeVertSplit", darker_black)
|
|
||||||
fg("NvimTreeEndOfBuffer", darker_black)
|
|
||||||
|
|
||||||
fg("NvimTreeRootFolder", darker_black)
|
|
||||||
bg("NvimTreeNormal", darker_black)
|
|
||||||
fg_bg("NvimTreeStatuslineNc", darker_black, darker_black)
|
|
||||||
fg_bg("NvimTreeWindowPicker", red, black2)
|
|
||||||
|
|
||||||
-- telescope
|
|
||||||
fg("TelescopeBorder", line)
|
|
||||||
fg("TelescopePromptBorder", line)
|
|
||||||
fg("TelescopeResultsBorder", line)
|
|
||||||
fg("TelescopePreviewBorder", grey)
|
|
||||||
|
|
||||||
-- LspDiagnostics ---
|
|
||||||
|
|
||||||
-- error / warnings
|
|
||||||
fg("LspDiagnosticsSignError", red)
|
|
||||||
fg("LspDiagnosticsVirtualTextError", red)
|
|
||||||
fg("LspDiagnosticsSignWarning", yellow)
|
|
||||||
fg("LspDiagnosticsVirtualTextWarning", yellow)
|
|
||||||
|
|
||||||
-- info
|
|
||||||
fg("LspDiagnosticsSignInformation", green)
|
|
||||||
fg("LspDiagnosticsVirtualTextInformation", green)
|
|
||||||
|
|
||||||
-- hint
|
|
||||||
fg("LspDiagnosticsSignHint", purple)
|
|
||||||
fg("LspDiagnosticsVirtualTextHint", purple)
|
|
||||||
|
|
||||||
-- bufferline
|
|
||||||
|
|
||||||
fg_bg("BufferLineFill", grey_fg, black2)
|
|
||||||
fg_bg("BufferLineBackground", light_grey, black2)
|
|
||||||
|
|
||||||
fg_bg("BufferLineBufferVisible", light_grey, black2)
|
|
||||||
fg_bg("BufferLineBufferSelected", white, black)
|
|
||||||
|
|
||||||
cmd "hi BufferLineBufferSelected gui=bold"
|
|
||||||
|
|
||||||
-- tabs
|
|
||||||
fg_bg("BufferLineTab", light_grey, one_bg3)
|
|
||||||
fg_bg("BufferLineTabSelected", black2, nord_blue)
|
|
||||||
fg_bg("BufferLineTabClose", red, black)
|
|
||||||
|
|
||||||
fg_bg("BufferLineIndicator", black2, black2)
|
|
||||||
fg_bg("BufferLineIndicatorSelected", black, black)
|
|
||||||
|
|
||||||
-- separators
|
|
||||||
fg_bg("BufferLineSeparator", black2, black2)
|
|
||||||
fg_bg("BufferLineSeparatorVisible", black2, black2)
|
|
||||||
fg_bg("BufferLineSeparatorSelected", black, black2)
|
|
||||||
|
|
||||||
-- modified buffers
|
|
||||||
fg_bg("BufferLineModified", red, black2)
|
|
||||||
fg_bg("BufferLineModifiedVisible", red, black2)
|
|
||||||
fg_bg("BufferLineModifiedSelected", green, black)
|
|
||||||
|
|
||||||
-- close buttons
|
|
||||||
fg_bg("BufferLineCLoseButtonVisible", light_grey, black2)
|
|
||||||
fg_bg("BufferLineCLoseButton", light_grey, black2)
|
|
||||||
fg_bg("BufferLineCLoseButtonSelected", red, black)
|
|
||||||
|
|
||||||
-- dashboard
|
|
||||||
|
|
||||||
fg("DashboardHeader", grey_fg)
|
|
||||||
fg("DashboardCenter", grey_fg)
|
|
||||||
fg("DashboardShortcut", grey_fg)
|
|
||||||
fg("DashboardFooter", grey_fg)
|
|
||||||
|
|
||||||
-- Default nvim bg (based on terminal bg)
|
|
||||||
-- cmd "hi Normal guibg=#1e222a"
|
|
@ -1,134 +0,0 @@
|
|||||||
local function map(mode, lhs, rhs, opts)
|
|
||||||
local options = {noremap = true, silent = true}
|
|
||||||
if opts then
|
|
||||||
options = vim.tbl_extend("force", options, opts)
|
|
||||||
end
|
|
||||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
|
||||||
end
|
|
||||||
|
|
||||||
local opt = {}
|
|
||||||
|
|
||||||
-- dont copy any deleted text , this is disabled by default so uncomment the below mappings if you want them
|
|
||||||
--[[ remove this line
|
|
||||||
|
|
||||||
map("n", "dd", [=[ "_dd ]=], opt)
|
|
||||||
map("v", "dd", [=[ "_dd ]=], opt)
|
|
||||||
map("v", "x", [=[ "_x ]=], opt)
|
|
||||||
|
|
||||||
this line too ]]
|
|
||||||
--
|
|
||||||
|
|
||||||
-- OPEN TERMINALS --
|
|
||||||
-- map("n", "<C-l>", [[<Cmd>vnew term://zsh <CR>]], opt) -- term over right
|
|
||||||
-- map("n", "<C-x>", [[<Cmd> split term://zsh | resize 10 <CR>]], opt) -- term bottom
|
|
||||||
-- map("n", "<C-t>t", [[<Cmd> tabnew | term <CR>]], opt) -- term newtab
|
|
||||||
|
|
||||||
-- swap ` and '
|
|
||||||
map("n", "`", "'", opt)
|
|
||||||
map("n", "'", '`', opt)
|
|
||||||
|
|
||||||
-- copy whole file content
|
|
||||||
map("n", "<C-a>", [[ <Cmd> %y+<CR>]], opt)
|
|
||||||
|
|
||||||
-- toggle relative number
|
|
||||||
map("n", "<C-b><C-b>", ":set invrelativenumber<CR>", opt)
|
|
||||||
|
|
||||||
map("n", "<C-s>", ":w <CR>", opt)
|
|
||||||
|
|
||||||
|
|
||||||
-- map("n", "<C-q>", ":bp<bar>sp<bar>bn<bar>bd! <CR>", opt)
|
|
||||||
map("i", "kj", "<ESC>`^", opt)
|
|
||||||
map("i", "jk", "<ESC>`^", opt)
|
|
||||||
|
|
||||||
-- copy till end of line
|
|
||||||
map("n", "Y", "y$", opt)
|
|
||||||
|
|
||||||
-- select previously changed or yanked text
|
|
||||||
map("n", "gm", "`[v`]", opt)
|
|
||||||
|
|
||||||
-- go to the next matching parenthesis
|
|
||||||
map("n", "gp", "%", opt)
|
|
||||||
|
|
||||||
|
|
||||||
-- compe stuff
|
|
||||||
|
|
||||||
local t = function(str)
|
|
||||||
return vim.api.nvim_replace_termcodes(str, true, true, true)
|
|
||||||
end
|
|
||||||
|
|
||||||
local check_back_space = function()
|
|
||||||
local col = vim.fn.col(".") - 1
|
|
||||||
if col == 0 or vim.fn.getline("."):sub(col, col):match("%s") then
|
|
||||||
return true
|
|
||||||
else
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
_G.tab_complete = function()
|
|
||||||
if vim.fn.pumvisible() == 1 then
|
|
||||||
return t "<C-n>"
|
|
||||||
elseif check_back_space() then
|
|
||||||
return t "<Tab>"
|
|
||||||
else
|
|
||||||
return vim.fn["compe#complete"]()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
_G.s_tab_complete = function()
|
|
||||||
if vim.fn.pumvisible() == 1 then
|
|
||||||
return t "<C-p>"
|
|
||||||
elseif vim.fn.call("vsnip#jumpable", {-1}) == 1 then
|
|
||||||
return t "<Plug>(vsnip-jump-prev)"
|
|
||||||
else
|
|
||||||
return t "<S-Tab>"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function _G.completions()
|
|
||||||
local npairs = require("nvim-autopairs")
|
|
||||||
if vim.fn.pumvisible() == 1 then
|
|
||||||
if vim.fn.complete_info()["selected"] ~= -1 then
|
|
||||||
return vim.fn["compe#confirm"]("<CR>")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
return npairs.check_break_line_char()
|
|
||||||
end
|
|
||||||
-- compe mappings
|
|
||||||
map("i", "<Tab>", "v:lua.tab_complete()", {expr = true})
|
|
||||||
map("s", "<Tab>", "v:lua.tab_complete()", {expr = true})
|
|
||||||
map("i", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
|
|
||||||
map("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true})
|
|
||||||
map("i", "<CR>", "v:lua.completions()", {expr = true})
|
|
||||||
|
|
||||||
-- nvimtree
|
|
||||||
map("n", "<leader>'", ":NvimTreeToggle<CR>", opt)
|
|
||||||
|
|
||||||
-- map("n", "<Leader>fn", [[<Cmd> DashboardNewFile<CR>]], opt)
|
|
||||||
-- map("n", "<Leader>bm", [[<Cmd> DashboardJumpMarks<CR>]], opt)
|
|
||||||
-- map("n", "<C-s>l", [[<Cmd> SessionLoad<CR>]], opt)
|
|
||||||
-- map("n", "<C-s>s", [[<Cmd> SessionSave<CR>]], opt)
|
|
||||||
|
|
||||||
-- Telescope
|
|
||||||
-- map("n", "<Leader>gt", [[<Cmd> Telescope git_status <CR>]], opt)
|
|
||||||
-- map("n", "<Leader>cm", [[<Cmd> Telescope git_commits <CR>]], opt)
|
|
||||||
-- map("n", "<Leader>fp", [[<Cmd>lua require('telescope').extensions.media_files.media_files()<CR>]], opt)
|
|
||||||
-- map("n", "<Leader>fb", [[<Cmd>Telescope buffers<CR>]], opt)
|
|
||||||
-- map("n", "<Leader>fh", [[<Cmd>Telescope help_tags<CR>]], opt)
|
|
||||||
-- map("n", "<Leader>fo", [[<Cmd>Telescope oldfiles<CR>]], opt)
|
|
||||||
|
|
||||||
-- bufferline tab stuff
|
|
||||||
map("n", "<S-t>", ":tabnew<CR>", opt) -- new tab
|
|
||||||
map("n", "<S-x>", ":bd!<CR>", opt) -- close tab
|
|
||||||
|
|
||||||
-- indent with tabs
|
|
||||||
map("n", "<TAB>", '>>', opt)
|
|
||||||
map("n", "<S-TAB>", '<<', opt)
|
|
||||||
map("v", "<TAB>", '>', opt)
|
|
||||||
map("v", "<S-TAB>", '<', opt)
|
|
||||||
|
|
||||||
|
|
||||||
map("n", "<F3>", ":set invhlsearch<CR>", opt)
|
|
||||||
-- move around *visually*
|
|
||||||
map("n", "j", "gj", opt)
|
|
||||||
map("n", "k", "gk", opt)
|
|
@ -1,76 +0,0 @@
|
|||||||
local opt = vim.opt
|
|
||||||
|
|
||||||
opt.ruler = false
|
|
||||||
opt.undofile = true
|
|
||||||
opt.undodir = "/home/sahin/.local/share/nvim/undo"
|
|
||||||
opt.backupdir = "/home/sahin/.local/share/nvim/backup"
|
|
||||||
opt.backup = true
|
|
||||||
-- opt.hidden = true
|
|
||||||
opt.ignorecase = true
|
|
||||||
opt.splitbelow = true
|
|
||||||
opt.splitright = true
|
|
||||||
opt.termguicolors = true
|
|
||||||
opt.cul = true
|
|
||||||
opt.mouse = "a"
|
|
||||||
opt.signcolumn = "yes"
|
|
||||||
opt.cmdheight = 1
|
|
||||||
opt.updatetime = 250 -- update interval for gitsigns
|
|
||||||
opt.clipboard = "unnamedplus"
|
|
||||||
opt.scrolloff = 2
|
|
||||||
|
|
||||||
-- Numbers
|
|
||||||
opt.number = true
|
|
||||||
opt.relativenumber=true
|
|
||||||
opt.numberwidth = 2
|
|
||||||
-- opt("w", "relativenumber", true)
|
|
||||||
|
|
||||||
-- for indenline
|
|
||||||
opt.expandtab = true
|
|
||||||
opt.shiftwidth = 2
|
|
||||||
opt.smartindent = true
|
|
||||||
|
|
||||||
-- disable builtin vim plugins
|
|
||||||
vim.g.loaded_gzip = 0
|
|
||||||
vim.g.loaded_tar = 0
|
|
||||||
vim.g.loaded_tarPlugin = 0
|
|
||||||
vim.g.loaded_zipPlugin = 0
|
|
||||||
vim.g.loaded_2html_plugin = 0
|
|
||||||
vim.g.loaded_netrw = 0
|
|
||||||
vim.g.loaded_netrwPlugin = 0
|
|
||||||
vim.g.loaded_matchit = 0
|
|
||||||
vim.g.loaded_matchparen = 0
|
|
||||||
vim.g.loaded_spec = 0
|
|
||||||
|
|
||||||
-- tmux-navigator
|
|
||||||
vim.g.tmux_navigator_disable_when_zoomed = 1
|
|
||||||
vim.g.tmux_navigator_no_wrap = 1 -- You need to merge tmux-navigator with heewa/add-no-wrap-option
|
|
||||||
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
function M.is_buffer_empty()
|
|
||||||
-- Check whether the current buffer is empty
|
|
||||||
return vim.fn.empty(vim.fn.expand("%:t")) == 1
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.has_width_gt(cols)
|
|
||||||
-- Check if the windows width is greater than a given number of columns
|
|
||||||
return vim.fn.winwidth(0) / 2 > cols
|
|
||||||
end
|
|
||||||
|
|
||||||
-- file extension specific tabbing
|
|
||||||
-- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])
|
|
||||||
|
|
||||||
-- blankline config
|
|
||||||
|
|
||||||
M.blankline = function()
|
|
||||||
vim.g.indentLine_enabled = 1
|
|
||||||
vim.g.indent_blankline_char = "▏"
|
|
||||||
|
|
||||||
vim.g.indent_blankline_filetype_exclude = {"help", "terminal", "dashboard"}
|
|
||||||
vim.g.indent_blankline_buftype_exclude = {"terminal"}
|
|
||||||
|
|
||||||
vim.g.indent_blankline_show_trailing_blankline_indent = false
|
|
||||||
vim.g.indent_blankline_show_first_indent_level = false
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,102 +0,0 @@
|
|||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
function on_attach(client, bufnr)
|
|
||||||
local function buf_set_keymap(...)
|
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, ...)
|
|
||||||
end
|
|
||||||
local function buf_set_option(...)
|
|
||||||
vim.api.nvim_buf_set_option(bufnr, ...)
|
|
||||||
end
|
|
||||||
|
|
||||||
buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")
|
|
||||||
|
|
||||||
-- Mappings.
|
|
||||||
local opts = {noremap = true, silent = true}
|
|
||||||
|
|
||||||
buf_set_keymap("n", "gD", "<Cmd>lua vim.lsp.buf.declaration()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "gd", "<Cmd>lua vim.lsp.buf.definition()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "K", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts)
|
|
||||||
-- buf_set_keymap("n", "<C-k>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "<space>wa", "<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "<space>wr", "<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "<space>wl", "<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>", opts)
|
|
||||||
buf_set_keymap("n", "<space>D", "<cmd>lua vim.lsp.buf.type_definition()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "<space>rn", "<cmd>lua vim.lsp.buf.rename()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "gr", "<cmd>lua vim.lsp.buf.references()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "<space>e", "<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", opts)
|
|
||||||
buf_set_keymap("n", "<space>q", "<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>", opts)
|
|
||||||
|
|
||||||
-- Set some keybinds conditional on server capabilities
|
|
||||||
-- if client.resolved_capabilities.document_formatting then
|
|
||||||
-- buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
|
||||||
-- elseif client.resolved_capabilities.document_range_formatting then
|
|
||||||
-- buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.range_formatting()<CR>", opts)
|
|
||||||
-- end
|
|
||||||
end
|
|
||||||
|
|
||||||
-- lspInstall + lspconfig stuff
|
|
||||||
-- config that activates keymaps and enables snippet support
|
|
||||||
local function make_config()
|
|
||||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
|
||||||
capabilities.textDocument.completion.completionItem.snippetSupport = true
|
|
||||||
return {
|
|
||||||
-- enable snippet support
|
|
||||||
capabilities = capabilities,
|
|
||||||
-- map buffer local keybindings when the language server attaches
|
|
||||||
on_attach = on_attach,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
local function setup_servers()
|
|
||||||
require "lspinstall".setup()
|
|
||||||
local lspconf = require("lspconfig")
|
|
||||||
local servers = require "lspinstall".installed_servers()
|
|
||||||
for _, server in pairs(servers) do
|
|
||||||
if server ~= "lua" then
|
|
||||||
lspconf[server].setup {
|
|
||||||
on_attach = on_attach,
|
|
||||||
root_dir = vim.loop.cwd
|
|
||||||
}
|
|
||||||
elseif server == "lua" then
|
|
||||||
lspconf[server].setup {
|
|
||||||
root_dir = vim.loop.cwd,
|
|
||||||
settings = {
|
|
||||||
Lua = {
|
|
||||||
diagnostics = {
|
|
||||||
globals = {"vim"}
|
|
||||||
},
|
|
||||||
workspace = {
|
|
||||||
library = {
|
|
||||||
[vim.fn.expand("$VIMRUNTIME/lua")] = true,
|
|
||||||
[vim.fn.expand("$VIMRUNTIME/lua/vim/lsp")] = true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
telemetry = {
|
|
||||||
enable = false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
setup_servers()
|
|
||||||
|
|
||||||
-- Automatically reload after `:LspInstall <server>` so we don't have to restart neovim
|
|
||||||
require "lspinstall".post_install_hook = function()
|
|
||||||
setup_servers() -- reload installed servers
|
|
||||||
vim.cmd("bufdo e") -- triggers FileType autocmd that starts the server
|
|
||||||
end
|
|
||||||
|
|
||||||
-- replace the default lsp diagnostic letters with prettier symbols
|
|
||||||
vim.fn.sign_define("LspDiagnosticsSignError", {text = "", numhl = "LspDiagnosticsDefaultError"})
|
|
||||||
vim.fn.sign_define("LspDiagnosticsSignWarning", {text = "", numhl = "LspDiagnosticsDefaultWarning"})
|
|
||||||
vim.fn.sign_define("LspDiagnosticsSignInformation", {text = "", numhl = "LspDiagnosticsDefaultInformation"})
|
|
||||||
vim.fn.sign_define("LspDiagnosticsSignHint", {text = "", numhl = "LspDiagnosticsDefaultHint"})
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,103 +0,0 @@
|
|||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
local g = vim.g
|
|
||||||
|
|
||||||
vim.o.termguicolors = true
|
|
||||||
|
|
||||||
g.nvim_tree_side = "left"
|
|
||||||
-- g.nvim_tree_width = 25
|
|
||||||
g.nvim_tree_ignore = {".git", "node_modules", ".cache"}
|
|
||||||
g.nvim_tree_gitignore = 0
|
|
||||||
-- g.nvim_tree_auto_ignore_ft = {"dashboard", "startify"} -- don't open tree on specific fiypes.
|
|
||||||
g.nvim_tree_auto_open = 1
|
|
||||||
g.nvim_tree_auto_close = 0 -- closes tree when it's the last window
|
|
||||||
g.nvim_tree_quit_on_open = 0 -- closes tree when file's opened
|
|
||||||
g.nvim_tree_follow = 1
|
|
||||||
g.nvim_tree_indent_markers = 1
|
|
||||||
g.nvim_tree_hide_dotfiles = 1
|
|
||||||
g.nvim_tree_git_hl = 1
|
|
||||||
g.nvim_tree_highlight_opened_files = 1
|
|
||||||
g.nvim_tree_root_folder_modifier = ":t"
|
|
||||||
g.nvim_tree_tab_open = 0
|
|
||||||
g.nvim_tree_allow_resize = 1
|
|
||||||
g.nvim_tree_add_trailing = 1 -- append a trailing slash to folder names
|
|
||||||
g.nvim_tree_disable_netrw = 1
|
|
||||||
g.nvim_tree_hijack_netrw = 0
|
|
||||||
g.nvim_tree_update_cwd = 1
|
|
||||||
g.nvim_tree_group_empty = 1
|
|
||||||
g.nvim_tree_lsp_diagnostics = 1
|
|
||||||
|
|
||||||
g.nvim_tree_show_icons = {
|
|
||||||
git = 1,
|
|
||||||
folders = 1,
|
|
||||||
files = 1
|
|
||||||
-- folder_arrows= 1
|
|
||||||
}
|
|
||||||
g.nvim_tree_icons = {
|
|
||||||
default = "",
|
|
||||||
symlink = "",
|
|
||||||
git = {
|
|
||||||
unstaged = "✗",
|
|
||||||
staged = "✓",
|
|
||||||
unmerged = "",
|
|
||||||
renamed = "➜",
|
|
||||||
untracked = "★",
|
|
||||||
deleted = "",
|
|
||||||
ignored = "◌"
|
|
||||||
},
|
|
||||||
folder = {
|
|
||||||
-- disable indent_markers option to get arrows working or if you want both arrows and indent then just add the arrow icons in front ofthe default and opened folders below!
|
|
||||||
-- arrow_open = "",
|
|
||||||
-- arrow_closed = "",
|
|
||||||
default = "",
|
|
||||||
open = "",
|
|
||||||
empty = "",
|
|
||||||
empty_open = "",
|
|
||||||
symlink = "",
|
|
||||||
symlink_open = ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local tree_cb = require "nvim-tree.config".nvim_tree_callback
|
|
||||||
|
|
||||||
g.nvim_tree_bindings = {
|
|
||||||
-- {key = {"<CR>", "o", "<2-LeftMouse>"}, cb = tree_cb("edit")},
|
|
||||||
-- {key = {"<2-RightMouse>", "<C-}>"}, cb = tree_cb("cd")},
|
|
||||||
-- {key = "<C-v>", cb = tree_cb("vsplit")},
|
|
||||||
-- {key = "<C-x>", cb = tree_cb("split")},
|
|
||||||
-- {key = "<C-t>", cb = tree_cb("tabnew")},
|
|
||||||
-- {key = "<", cb = tree_cb("prev_sibling")},
|
|
||||||
-- {key = ">", cb = tree_cb("next_sibling")},
|
|
||||||
-- {key = "P", cb = tree_cb("parent_node")},
|
|
||||||
-- {key = "<BS>", cb = tree_cb("close_node")},
|
|
||||||
-- {key = "<S-CR>", cb = tree_cb("close_node")},
|
|
||||||
-- {key = "<Tab>", cb = tree_cb("preview")},
|
|
||||||
-- {key = "K", cb = tree_cb("first_sibling")},
|
|
||||||
-- {key = "J", cb = tree_cb("last_sibling")},
|
|
||||||
-- {key = "I", cb = tree_cb("toggle_ignored")},
|
|
||||||
-- {key = "H", cb = tree_cb("toggle_dotfiles")},
|
|
||||||
-- {key = "R", cb = tree_cb("refresh")},
|
|
||||||
-- {key = "a", cb = tree_cb("create")},
|
|
||||||
-- {key = "d", cb = tree_cb("remove")},
|
|
||||||
-- {key = "r", cb = tree_cb("rename")},
|
|
||||||
{key = "<C->", cb = tree_cb("full_rename")},
|
|
||||||
-- {key = "x", cb = tree_cb("cut")},
|
|
||||||
-- {key = "c", cb = tree_cb("copy")},
|
|
||||||
-- {key = "p", cb = tree_cb("paste")},
|
|
||||||
-- {key = "y", cb = tree_cb("copy_name")},
|
|
||||||
-- {key = "Y", cb = tree_cb("copy_path")},
|
|
||||||
-- {key = "gy", cb = tree_cb("copy_absolute_path")},
|
|
||||||
-- {key = "[c", cb = tree_cb("prev_git_item")},
|
|
||||||
-- {key = "}c", cb = tree_cb("next_git_item")},
|
|
||||||
-- {key = "-", cb = tree_cb("dir_up")},
|
|
||||||
-- {key = "q", cb = tree_cb("close")},
|
|
||||||
{key = {"l", "<CR>", "o"}, cb = tree_cb("edit")},
|
|
||||||
{key = "h", cb = tree_cb("close_node")},
|
|
||||||
{key = "v", cb = tree_cb("vsplit")},
|
|
||||||
{key = "s", cb = tree_cb("split")},
|
|
||||||
{key = "?", cb = tree_cb("toggle_help")}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,202 +0,0 @@
|
|||||||
local packer = require("packer")
|
|
||||||
local use = packer.use
|
|
||||||
|
|
||||||
return packer.startup(
|
|
||||||
function()
|
|
||||||
use "wbthomason/packer.nvim"
|
|
||||||
-- -migrated from my vimrc
|
|
||||||
use "christoomey/vim-tmux-navigator"
|
|
||||||
use 'tpope/vim-repeat'
|
|
||||||
use 'tpope/vim-surround'
|
|
||||||
use 'tpope/vim-unimpaired'
|
|
||||||
use 'tpope/vim-fugitive'
|
|
||||||
use 'tpope/vim-abolish'
|
|
||||||
|
|
||||||
use {'ms-jpq/chadtree', branch='chad', run="python3 -m chadtree deps"}
|
|
||||||
|
|
||||||
use "akinsho/nvim-bufferline.lua"
|
|
||||||
use "glepnir/galaxyline.nvim"
|
|
||||||
|
|
||||||
-- color related stuff
|
|
||||||
use "siduck76/nvim-base16.lua"
|
|
||||||
use "folke/which-key.nvim"
|
|
||||||
|
|
||||||
use {
|
|
||||||
"norcalli/nvim-colorizer.lua",
|
|
||||||
event = "BufRead",
|
|
||||||
config = function()
|
|
||||||
require("colorizer").setup()
|
|
||||||
vim.cmd("ColorizerReloadAllBuffers")
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
-- language related plugins
|
|
||||||
use {
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
event = "BufRead",
|
|
||||||
config = function()
|
|
||||||
require("treesitter-nvim").config()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
use {
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
event = "BufRead",
|
|
||||||
config = function()
|
|
||||||
require("nvim-lspconfig").config()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
use "kabouzeid/nvim-lspinstall"
|
|
||||||
use "glepnir/lspsaga.nvim"
|
|
||||||
|
|
||||||
use {
|
|
||||||
"onsails/lspkind-nvim",
|
|
||||||
event = "BufRead",
|
|
||||||
config = function()
|
|
||||||
require("lspkind").init()
|
|
||||||
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
-- load compe in insert mode only
|
|
||||||
use {
|
|
||||||
"hrsh7th/nvim-compe",
|
|
||||||
event = "InsertEnter",
|
|
||||||
config = function()
|
|
||||||
require("compe-completion").config()
|
|
||||||
end,
|
|
||||||
wants = {"LuaSnip"},
|
|
||||||
requires = {
|
|
||||||
{
|
|
||||||
"L3MON4D3/LuaSnip",
|
|
||||||
wants = "friendly-snippets",
|
|
||||||
event = "InsertCharPre",
|
|
||||||
config = function()
|
|
||||||
require("compe-completion").snippets()
|
|
||||||
end
|
|
||||||
},
|
|
||||||
"rafamadriz/friendly-snippets"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
use {"sbdchd/neoformat", cmd = "Neoformat"}
|
|
||||||
|
|
||||||
-- file managing , picker etc
|
|
||||||
use {
|
|
||||||
"kyazdani42/nvim-tree.lua",
|
|
||||||
cmd = "NvimTreeToggle",
|
|
||||||
config = function()
|
|
||||||
require("nvimTree").config()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
use "kyazdani42/nvim-web-devicons"
|
|
||||||
use 'gruvbox-community/gruvbox'
|
|
||||||
use {
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
requires = {
|
|
||||||
{"nvim-lua/popup.nvim"},
|
|
||||||
{"nvim-lua/plenary.nvim"},
|
|
||||||
{"nvim-telescope/telescope-fzf-native.nvim", run = "make"},
|
|
||||||
{"nvim-telescope/telescope-media-files.nvim"}
|
|
||||||
},
|
|
||||||
cmd = "Telescope",
|
|
||||||
config = function()
|
|
||||||
require("telescope-nvim").config()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
-- git stuff
|
|
||||||
use {
|
|
||||||
"lewis6991/gitsigns.nvim",
|
|
||||||
event = "BufRead",
|
|
||||||
config = function()
|
|
||||||
require("gitsigns-nvim").config()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
-- misc plugins
|
|
||||||
use {
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
event = "InsertEnter",
|
|
||||||
config = function()
|
|
||||||
require("nvim-autopairs").setup()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
use {"andymass/vim-matchup", event = "CursorMoved"}
|
|
||||||
|
|
||||||
use {
|
|
||||||
"terrortylor/nvim-comment",
|
|
||||||
cmd = "CommentToggle",
|
|
||||||
config = function()
|
|
||||||
require("nvim_comment").setup()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
use {
|
|
||||||
"glepnir/dashboard-nvim",
|
|
||||||
cmd = {
|
|
||||||
"Dashboard",
|
|
||||||
"DashboardNewFile",
|
|
||||||
"DashboardJumpMarks",
|
|
||||||
"SessionLoad",
|
|
||||||
"SessionSave"
|
|
||||||
},
|
|
||||||
setup = function()
|
|
||||||
require("dashboard").config()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
use {"tweekmonster/startuptime.vim", cmd = "StartupTime"}
|
|
||||||
|
|
||||||
-- load autosave only if its globally enabled
|
|
||||||
use {
|
|
||||||
"Pocco81/AutoSave.nvim",
|
|
||||||
config = function()
|
|
||||||
require("zenmode").autoSave()
|
|
||||||
end,
|
|
||||||
cond = function()
|
|
||||||
return vim.g.auto_save == true
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
-- smooth scroll
|
|
||||||
use {
|
|
||||||
"karb94/neoscroll.nvim",
|
|
||||||
event = "WinScrolled",
|
|
||||||
config = function()
|
|
||||||
require("neoscroll").setup()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
use {
|
|
||||||
"Pocco81/TrueZen.nvim",
|
|
||||||
cmd = {"TZAtaraxis", "TZMinimalist", "TZFocus"},
|
|
||||||
config = function()
|
|
||||||
require("zenmode").config()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
-- use "alvan/vim-closetag" -- for html autoclosing tag
|
|
||||||
|
|
||||||
use {
|
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
|
||||||
event = "BufRead",
|
|
||||||
setup = function()
|
|
||||||
require("misc-utils").blankline()
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
--- testing area ---
|
|
||||||
use 'puremourning/vimspector'
|
|
||||||
--- testing area ---
|
|
||||||
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
display = {
|
|
||||||
border = {"┌", "─", "┐", "│", "┘", "─", "└", "│"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
@ -1,207 +0,0 @@
|
|||||||
local gl = require("galaxyline")
|
|
||||||
local gls = gl.section
|
|
||||||
local condition = require("galaxyline.condition")
|
|
||||||
|
|
||||||
gl.short_line_list = {" "}
|
|
||||||
|
|
||||||
local global_theme = "themes/" .. vim.g.nvchad_theme
|
|
||||||
local colors = require(global_theme)
|
|
||||||
|
|
||||||
gls.left[1] = {
|
|
||||||
FirstElement = {
|
|
||||||
provider = function()
|
|
||||||
return "▋"
|
|
||||||
end,
|
|
||||||
highlight = {colors.nord_blue, colors.nord_blue}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[2] = {
|
|
||||||
statusIcon = {
|
|
||||||
provider = function()
|
|
||||||
return " "
|
|
||||||
end,
|
|
||||||
highlight = {colors.statusline_bg, colors.nord_blue},
|
|
||||||
separator = " ",
|
|
||||||
separator_highlight = {colors.nord_blue, colors.lightbg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[3] = {
|
|
||||||
FileIcon = {
|
|
||||||
provider = "FileIcon",
|
|
||||||
condition = condition.buffer_not_empty,
|
|
||||||
highlight = {colors.white, colors.lightbg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[4] = {
|
|
||||||
FileName = {
|
|
||||||
provider = {"FileName"},
|
|
||||||
condition = condition.buffer_not_empty,
|
|
||||||
highlight = {colors.white, colors.lightbg},
|
|
||||||
separator = " ",
|
|
||||||
separator_highlight = {colors.lightbg, colors.lightbg2}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[5] = {
|
|
||||||
current_dir = {
|
|
||||||
provider = function()
|
|
||||||
local dir_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
|
|
||||||
return " " .. dir_name .. " "
|
|
||||||
end,
|
|
||||||
highlight = {colors.grey_fg2, colors.lightbg2},
|
|
||||||
separator = " ",
|
|
||||||
separator_highlight = {colors.lightbg2, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
local checkwidth = function()
|
|
||||||
local squeeze_width = vim.fn.winwidth(0) / 2
|
|
||||||
if squeeze_width > 30 then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
gls.left[6] = {
|
|
||||||
DiffAdd = {
|
|
||||||
provider = "DiffAdd",
|
|
||||||
condition = checkwidth,
|
|
||||||
icon = " ",
|
|
||||||
highlight = {colors.white, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[7] = {
|
|
||||||
DiffModified = {
|
|
||||||
provider = "DiffModified",
|
|
||||||
condition = checkwidth,
|
|
||||||
icon = " ",
|
|
||||||
highlight = {colors.grey_fg2, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[8] = {
|
|
||||||
DiffRemove = {
|
|
||||||
provider = "DiffRemove",
|
|
||||||
condition = checkwidth,
|
|
||||||
icon = " ",
|
|
||||||
highlight = {colors.grey_fg2, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[9] = {
|
|
||||||
DiagnosticError = {
|
|
||||||
provider = "DiagnosticError",
|
|
||||||
icon = " ",
|
|
||||||
highlight = {colors.red, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.left[10] = {
|
|
||||||
DiagnosticWarn = {
|
|
||||||
provider = "DiagnosticWarn",
|
|
||||||
icon = " ",
|
|
||||||
highlight = {colors.yellow, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[1] = {
|
|
||||||
lsp_status = {
|
|
||||||
provider = function()
|
|
||||||
local clients = vim.lsp.get_active_clients()
|
|
||||||
if next(clients) ~= nil then
|
|
||||||
return " " .. " " .. " LSP "
|
|
||||||
else
|
|
||||||
return ""
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
highlight = {colors.grey_fg2, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[2] = {
|
|
||||||
GitIcon = {
|
|
||||||
provider = function()
|
|
||||||
return " "
|
|
||||||
end,
|
|
||||||
condition = require("galaxyline.condition").check_git_workspace,
|
|
||||||
highlight = {colors.grey_fg2, colors.statusline_bg},
|
|
||||||
separator = " ",
|
|
||||||
separator_highlight = {colors.statusline_bg, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[3] = {
|
|
||||||
GitBranch = {
|
|
||||||
provider = "GitBranch",
|
|
||||||
condition = require("galaxyline.condition").check_git_workspace,
|
|
||||||
highlight = {colors.grey_fg2, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[4] = {
|
|
||||||
viMode_icon = {
|
|
||||||
provider = function()
|
|
||||||
return " "
|
|
||||||
end,
|
|
||||||
highlight = {colors.statusline_bg, colors.red},
|
|
||||||
separator = " ",
|
|
||||||
separator_highlight = {colors.red, colors.statusline_bg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[5] = {
|
|
||||||
ViMode = {
|
|
||||||
provider = function()
|
|
||||||
local alias = {
|
|
||||||
n = "Normal",
|
|
||||||
i = "Insert",
|
|
||||||
c = "Command",
|
|
||||||
V = "Visual",
|
|
||||||
[""] = "Visual",
|
|
||||||
v = "Visual",
|
|
||||||
R = "Replace"
|
|
||||||
}
|
|
||||||
local current_Mode = alias[vim.fn.mode()]
|
|
||||||
|
|
||||||
if current_Mode == nil then
|
|
||||||
return " Terminal "
|
|
||||||
else
|
|
||||||
return " " .. current_Mode .. " "
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
highlight = {colors.red, colors.lightbg}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[6] = {
|
|
||||||
some_icon = {
|
|
||||||
provider = function()
|
|
||||||
return " "
|
|
||||||
end,
|
|
||||||
separator = "",
|
|
||||||
separator_highlight = {colors.green, colors.lightbg},
|
|
||||||
highlight = {colors.lightbg, colors.green}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
gls.right[7] = {
|
|
||||||
line_percentage = {
|
|
||||||
provider = function()
|
|
||||||
local current_line = vim.fn.line(".")
|
|
||||||
local total_line = vim.fn.line("$")
|
|
||||||
|
|
||||||
if current_line == 1 then
|
|
||||||
return " Top "
|
|
||||||
elseif current_line == vim.fn.line("$") then
|
|
||||||
return " Bot "
|
|
||||||
end
|
|
||||||
local result, _ = math.modf((current_line / total_line) * 100)
|
|
||||||
return " " .. result .. "% "
|
|
||||||
end,
|
|
||||||
highlight = {colors.green, colors.lightbg}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,74 +0,0 @@
|
|||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
require("telescope").setup {
|
|
||||||
defaults = {
|
|
||||||
vimgrep_arguments = {
|
|
||||||
"rg",
|
|
||||||
"--color=never",
|
|
||||||
"--no-heading",
|
|
||||||
"--with-filename",
|
|
||||||
"--line-number",
|
|
||||||
"--column",
|
|
||||||
"--smart-case"
|
|
||||||
},
|
|
||||||
prompt_prefix = " ",
|
|
||||||
selection_caret = " ",
|
|
||||||
entry_prefix = " ",
|
|
||||||
initial_mode = "insert",
|
|
||||||
selection_strategy = "reset",
|
|
||||||
sorting_strategy = "descending",
|
|
||||||
layout_strategy = "horizontal",
|
|
||||||
layout_config = {
|
|
||||||
horizontal = {
|
|
||||||
prompt_position = "top",
|
|
||||||
preview_width = 0.55,
|
|
||||||
results_width = 0.8
|
|
||||||
},
|
|
||||||
vertical = {
|
|
||||||
mirror = false
|
|
||||||
},
|
|
||||||
width = 0.87,
|
|
||||||
height = 0.80,
|
|
||||||
preview_cutoff = 120
|
|
||||||
},
|
|
||||||
file_sorter = require "telescope.sorters".get_fuzzy_file,
|
|
||||||
file_ignore_patterns = {},
|
|
||||||
generic_sorter = require "telescope.sorters".get_generic_fuzzy_sorter,
|
|
||||||
|
|
||||||
path_display = {
|
|
||||||
-- "shorten",
|
|
||||||
"absolute",
|
|
||||||
},
|
|
||||||
winblend = 0,
|
|
||||||
border = {},
|
|
||||||
borderchars = {"─", "│", "─", "│", "╭", "╮", "╯", "╰"},
|
|
||||||
color_devicons = true,
|
|
||||||
use_less = true,
|
|
||||||
set_env = {["COLORTERM"] = "truecolor"}, -- default = nil,
|
|
||||||
file_previewer = require "telescope.previewers".vim_buffer_cat.new,
|
|
||||||
grep_previewer = require "telescope.previewers".vim_buffer_vimgrep.new,
|
|
||||||
qflist_previewer = require "telescope.previewers".vim_buffer_qflist.new,
|
|
||||||
-- Developer configurations: Not meant for general override
|
|
||||||
buffer_previewer_maker = require "telescope.previewers".buffer_previewer_maker
|
|
||||||
},
|
|
||||||
extensions = {
|
|
||||||
fzf = {
|
|
||||||
fuzzy = true, -- false will only do exact matching
|
|
||||||
override_generic_sorter = false, -- override the generic sorter
|
|
||||||
override_file_sorter = true, -- override the file sorter
|
|
||||||
case_mode = "smart_case" -- or "ignore_case" or "respect_case"
|
|
||||||
-- the default case_mode is "smart_case"
|
|
||||||
},
|
|
||||||
media_files = {
|
|
||||||
filetypes = {"png", "webp", "jpg", "jpeg"},
|
|
||||||
find_cmd = "rg" -- find command (defaults to `fd`)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
require("telescope").load_extension("fzf")
|
|
||||||
require("telescope").load_extension("media_files")
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,33 +0,0 @@
|
|||||||
local colors = {
|
|
||||||
white = "#c7b89d",
|
|
||||||
darker_black = "#1e2122",
|
|
||||||
black = "#222526", -- nvim bg
|
|
||||||
black2 = "#26292a",
|
|
||||||
one_bg = "#2b2e2f",
|
|
||||||
one_bg2 = "#2f3233",
|
|
||||||
one_bg3 = "#313435",
|
|
||||||
grey = "#46494a",
|
|
||||||
grey_fg = "#5d6061",
|
|
||||||
grey_fg2 = "#5b5e5f",
|
|
||||||
light_grey = "#585b5c",
|
|
||||||
red = "#ec6b64",
|
|
||||||
baby_pink = "#ce8196",
|
|
||||||
pink = "#ff75a0",
|
|
||||||
line = "#2c2f30", -- for lines like vertsplit
|
|
||||||
green = "#89b482",
|
|
||||||
vibrant_green = "#a9b665",
|
|
||||||
nord_blue = "#6f8faf",
|
|
||||||
blue = "#6d8dad",
|
|
||||||
yellow = "#d6b676",
|
|
||||||
sun = "#d1b171",
|
|
||||||
purple = "#b4bbc8",
|
|
||||||
dark_purple = "#cc7f94",
|
|
||||||
teal = "#749689",
|
|
||||||
orange = "#e78a4e",
|
|
||||||
cyan = "#82b3a8",
|
|
||||||
statusline_bg = "#252829",
|
|
||||||
lightbg = "#2d3139",
|
|
||||||
lightbg2 = "#262a32"
|
|
||||||
}
|
|
||||||
|
|
||||||
return colors
|
|
@ -1,33 +0,0 @@
|
|||||||
local colors = {
|
|
||||||
white = "#abb2bf",
|
|
||||||
darker_black = "#1b1f27",
|
|
||||||
black = "#1e222a", -- nvim bg
|
|
||||||
black2 = "#252931",
|
|
||||||
one_bg = "#282c34", -- real bg of onedark
|
|
||||||
one_bg2 = "#353b45",
|
|
||||||
one_bg3 = "#30343c",
|
|
||||||
grey = "#42464e",
|
|
||||||
grey_fg = "#565c64",
|
|
||||||
grey_fg2 = "#6f737b",
|
|
||||||
light_grey = "#6f737b",
|
|
||||||
red = "#d47d85",
|
|
||||||
baby_pink = "#DE8C92",
|
|
||||||
pink = "#ff75a0",
|
|
||||||
line = "#2a2e36", -- for lines like vertsplit
|
|
||||||
green = "#A3BE8C",
|
|
||||||
vibrant_green = "#7eca9c",
|
|
||||||
nord_blue = "#81A1C1",
|
|
||||||
blue = "#61afef",
|
|
||||||
yellow = "#e7c787",
|
|
||||||
sun = "#EBCB8B",
|
|
||||||
purple = "#b4bbc8",
|
|
||||||
dark_purple = "#c882e7",
|
|
||||||
teal = "#519ABA",
|
|
||||||
orange = "#fca2aa",
|
|
||||||
cyan = "#a3b8ef",
|
|
||||||
statusline_bg = "#22262e",
|
|
||||||
lightbg = "#2d3139",
|
|
||||||
lightbg2 = "#262a32"
|
|
||||||
}
|
|
||||||
|
|
||||||
return colors
|
|
@ -1,19 +0,0 @@
|
|||||||
require "bufferline".setup {
|
|
||||||
options = {
|
|
||||||
offsets = {{filetype = "NvimTree", text = "", padding = 1}},
|
|
||||||
buffer_close_icon = "",
|
|
||||||
modified_icon = "",
|
|
||||||
close_icon = "",
|
|
||||||
left_trunc_marker = "",
|
|
||||||
right_trunc_marker = "",
|
|
||||||
max_name_length = 14,
|
|
||||||
max_prefix_length = 13,
|
|
||||||
tab_size = 20,
|
|
||||||
show_tab_indicators = true,
|
|
||||||
enforce_regular_tabs = false,
|
|
||||||
view = "multiwindow",
|
|
||||||
show_buffer_close_icons = true,
|
|
||||||
separator_style = "thin",
|
|
||||||
mappings = "true"
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,27 +0,0 @@
|
|||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
local ts_config = require("nvim-treesitter.configs")
|
|
||||||
|
|
||||||
ts_config.setup {
|
|
||||||
ensure_installed = {
|
|
||||||
"javascript",
|
|
||||||
"html",
|
|
||||||
"css",
|
|
||||||
"bash",
|
|
||||||
"lua",
|
|
||||||
"json",
|
|
||||||
"c",
|
|
||||||
"python",
|
|
||||||
"java",
|
|
||||||
-- "rust",
|
|
||||||
-- "go"
|
|
||||||
},
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
use_languagetree = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,370 +0,0 @@
|
|||||||
require("which-key").setup {
|
|
||||||
plugins = {
|
|
||||||
marks = true, -- shows a list of your marks on ' and `
|
|
||||||
registers = true, -- shows your registers on " in NORMAL or <C-r> in INSERT mode
|
|
||||||
-- the presets plugin, adds help for a bunch of default keybindings in Neovim
|
|
||||||
-- No actual key bindings are created
|
|
||||||
presets = {
|
|
||||||
operators = false, -- adds help for operators like d, y, ...
|
|
||||||
motions = false, -- adds help for motions
|
|
||||||
text_objects = false, -- help for text objects triggered after entering an operator
|
|
||||||
windows = true, -- default bindings on <c-w>
|
|
||||||
nav = true, -- misc bindings to work with windows
|
|
||||||
z = true, -- bindings for folds, spelling and others prefixed with z
|
|
||||||
g = true -- bindings for prefixed with g
|
|
||||||
}
|
|
||||||
},
|
|
||||||
icons = {
|
|
||||||
breadcrumb = "»", -- symbol used in the command line area that shows your active key combo
|
|
||||||
separator = "➜", -- symbol used between a key and it's label
|
|
||||||
group = "+" -- symbol prepended to a group
|
|
||||||
},
|
|
||||||
window = {
|
|
||||||
border = "single", -- none, single, double, shadow
|
|
||||||
position = "bottom", -- bottom, top
|
|
||||||
margin = {1, 0, 1, 0}, -- extra window margin [top, right, bottom, left]
|
|
||||||
padding = {2, 2, 2, 2} -- extra window padding [top, right, bottom, left]
|
|
||||||
},
|
|
||||||
layout = {
|
|
||||||
height = {min = 4, max = 25}, -- min and max height of the columns
|
|
||||||
width = {min = 20, max = 50}, -- min and max width of the columns
|
|
||||||
spacing = 3 -- spacing between columns
|
|
||||||
},
|
|
||||||
hidden = {"<silent>", "<cmd>", "<Cmd>", "<CR>", "call", "lua", "^:", "^ "}, -- hide mapping boilerplate
|
|
||||||
show_help = true -- show help message on the command line when the popup is visible
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
local function map(mode, lhs, rhs, opts)
|
|
||||||
local options = {noremap = true, silent = true}
|
|
||||||
if opts then
|
|
||||||
options = vim.tbl_extend("force", options, opts)
|
|
||||||
end
|
|
||||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
|
||||||
end
|
|
||||||
|
|
||||||
local opt = {}
|
|
||||||
-- Set leader
|
|
||||||
-- if O.leader_key == ' ' or O.leader_key == 'space' then
|
|
||||||
map('n', '<Space>', '<NOP>', opt)
|
|
||||||
-- vim.api.nvim_set_keymap('n', '<Space>', '<NOP>',
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
vim.g.mapleader = ' '
|
|
||||||
-- else
|
|
||||||
-- vim.api.nvim_set_keymap('n', O.leader_key, '<NOP>',
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
-- vim.g.mapleader = O.leader_key
|
|
||||||
-- end
|
|
||||||
|
|
||||||
local opts = {
|
|
||||||
mode = "n", -- NORMAL mode
|
|
||||||
prefix = "<leader>",
|
|
||||||
buffer = nil, -- Global mappings. Specify a buffer number for buffer local mappings
|
|
||||||
silent = true, -- use `silent` when creating keymaps
|
|
||||||
noremap = true, -- use `noremap` when creating keymaps
|
|
||||||
nowait = false -- use `nowait` when creating keymaps
|
|
||||||
}
|
|
||||||
|
|
||||||
-- cycle tabs
|
|
||||||
map("n", "<leader>n", [[<Cmd>BufferLineCycleNext<CR>]], opt)
|
|
||||||
map("n", "<leader>p", [[<Cmd>BufferLineLineCyclePrev<CR>]], opt)
|
|
||||||
|
|
||||||
-- Truezen.nvim
|
|
||||||
map("n", "<leader>z", ":TZAtaraxis<CR>", opt)
|
|
||||||
map("n", "<leader>m", ":TZMinimalist<CR>", opt)
|
|
||||||
map("n", "<leader>j", ":TZFocus<CR>", opt)
|
|
||||||
|
|
||||||
|
|
||||||
-- no hl
|
|
||||||
vim.api.nvim_set_keymap('n', '<Leader>h', ':let @/=""<CR>',
|
|
||||||
{noremap = true, silent = true})
|
|
||||||
|
|
||||||
-- explorer
|
|
||||||
map("n", "<leader>e", ":NvimTreeToggle<CR>", opt)
|
|
||||||
|
|
||||||
-- TODO this introduces some bugs unfortunately
|
|
||||||
-- vim.api.nvim_set_keymap('n', '<Leader>e',
|
|
||||||
-- ":lua require'lv-nvimtree'.toggle_tree()<CR>",
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
-- vim.api.nvim_set_keymap('n', '<Leader>e',
|
|
||||||
-- ":NvimTreeToggle<CR>",
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
|
|
||||||
-- telescope or snap
|
|
||||||
-- if O.plugin.snap.active then
|
|
||||||
-- vim.api.nvim_set_keymap('n', '<Leader>f', ':Snap find_files<CR>',
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
-- else
|
|
||||||
vim.api.nvim_set_keymap('n', '<Leader>f', ':Telescope find_files<CR>',
|
|
||||||
{noremap = true, silent = true})
|
|
||||||
-- end
|
|
||||||
|
|
||||||
-- dashboard
|
|
||||||
vim.api.nvim_set_keymap('n', '<Leader>;', ':Dashboard<CR>',
|
|
||||||
{noremap = true, silent = true})
|
|
||||||
|
|
||||||
-- Comments
|
|
||||||
map("v", "<leader>/", ":CommentToggle<CR>", opt)
|
|
||||||
|
|
||||||
-- dashboard
|
|
||||||
map("n", "<Leader>;", [[<Cmd> Dashboard<CR>]], opt)
|
|
||||||
|
|
||||||
-- TODO create entire treesitter section
|
|
||||||
|
|
||||||
local mappings = {
|
|
||||||
|
|
||||||
["/"] = {":CommentToggle<CR>", "Comment"},
|
|
||||||
['<tab>'] = {'<C-^>', 'alternate file'},
|
|
||||||
-- ["e"] = "Explorer",
|
|
||||||
--
|
|
||||||
|
|
||||||
-- ["c"]= {":BufferClose<CR>", "Close Buffer"},
|
|
||||||
["f"] = "Find File",
|
|
||||||
["h"] = "No Highlight",
|
|
||||||
['\\'] = { ':vnew<CR>', 'vsplit'},
|
|
||||||
['-'] = { ':new<CR>', 'hsplit'},
|
|
||||||
b = {
|
|
||||||
name = "Buffers",
|
|
||||||
j = {"<cmd>BufferLinePick<cr>", "jump to buffer"},
|
|
||||||
-- f = {O.plugin.snap.active and "<cmd>Snap buffers<cr>" or "<cmd>Telescope buffers<cr>", "Find buffer"},
|
|
||||||
f = {"<cmd>Telescope buffers<cr>", "Find buffer"},
|
|
||||||
w = {"<cmd>BufferLineWipeout<cr>", "wipeout buffer"},
|
|
||||||
h = {"<cmd>BufferLineCloseBuffersLeft<cr>", "close all buffers to the left"},
|
|
||||||
l = {
|
|
||||||
"<cmd>BufferLineCloseBuffersRight<cr>",
|
|
||||||
"close all BufferLines to the right"
|
|
||||||
},
|
|
||||||
D = {
|
|
||||||
"<cmd>BufferLineOrderByDirectory<cr>",
|
|
||||||
"sort BufferLines automatically by directory"
|
|
||||||
},
|
|
||||||
L = {
|
|
||||||
"<cmd>BufferLineOrderByLanguage<cr>",
|
|
||||||
"sort BufferLines automatically by language"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
d = {
|
|
||||||
name = 'Debug',
|
|
||||||
e = {':call vimspector#Reset()<cr>', 'exit debug mode'},
|
|
||||||
l = {':call vimspector#StepInto()<cr>', 'step into'},
|
|
||||||
j = {':call vimspector#StepOver()<cr>', 'step over'},
|
|
||||||
h = {':call vimspector#StepOut()<cr>', 'step out'},
|
|
||||||
k = {':call vimspector#Restart()<cr>', 'restart debugging'},
|
|
||||||
c = {':call vimspector#Continue()<cr>', 'continue'},
|
|
||||||
r = {':call vimspector#RunToCursor()<cr>', 'run to cursor'},
|
|
||||||
d = {':call vimspector#Launch()<cr>', 'Launch'},
|
|
||||||
b = {':call vimspector#ToggleBreakpoint()<cr>', 'toggle breakpoint'},
|
|
||||||
B = {'<Plug>VimspectorToggleConditionalBreakpoint', 'toggle breakpoint'},
|
|
||||||
C = {':call vimspector#ClearBreakpoints()<cr>', 'clear breakpoints'},
|
|
||||||
i = {'<Plug>VimspectorBalloonEval', 'inspect'},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- diagnostics vanilla nvim
|
|
||||||
-- -- diagnostic
|
|
||||||
-- function lv_utils.get_all()
|
|
||||||
-- vim.lsp.diagnostic.get_all()
|
|
||||||
-- end
|
|
||||||
-- function lv_utils.get_next()
|
|
||||||
-- vim.lsp.diagnostic.get_next()
|
|
||||||
-- end
|
|
||||||
-- function lv_utils.get_prev()
|
|
||||||
-- vim.lsp.diagnostic.get_prev()
|
|
||||||
-- end
|
|
||||||
-- function lv_utils.goto_next()
|
|
||||||
-- vim.lsp.diagnostic.goto_next()
|
|
||||||
-- end
|
|
||||||
-- function lv_utils.goto_prev()
|
|
||||||
-- vim.lsp.diagnostic.goto_prev()
|
|
||||||
-- end
|
|
||||||
-- function lv_utils.show_line_diagnostics()
|
|
||||||
-- vim.lsp.diagnostic.show_line_diagnostics()
|
|
||||||
-- end
|
|
||||||
|
|
||||||
-- " Available Debug Adapters:
|
|
||||||
-- " https://microsoft.github.io/debug-adapter-protocol/implementors/adapters/
|
|
||||||
-- " Adapter configuration and installation instructions:
|
|
||||||
-- " https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation
|
|
||||||
-- " Debug Adapter protocol:
|
|
||||||
-- " https://microsoft.github.io/debug-adapter-protocol/
|
|
||||||
-- " Debugging
|
|
||||||
-- command! DebugToggleBreakpoint lua require'dap'.toggle_breakpoint()
|
|
||||||
-- command! DebugStart lua require'dap'.continue()
|
|
||||||
-- command! DebugContinue lua require'dap'.continue()
|
|
||||||
-- command! DebugStepOver lua require'dap'.step_over()
|
|
||||||
-- command! DebugStepOut lua require'dap'.step_out()
|
|
||||||
-- command! DebugStepInto lua require'dap'.step_into()
|
|
||||||
-- command! DebugToggleRepl lua require'dap'.repl.toggle()
|
|
||||||
-- command! DebugGetSession lua require'dap'.session()
|
|
||||||
-- D = {
|
|
||||||
-- name = "Debug",
|
|
||||||
-- b = {"<cmd>DebugToggleBreakpoint<cr>", "Toggle Breakpoint"},
|
|
||||||
-- c = {"<cmd>DebugContinue<cr>", "Continue"},
|
|
||||||
-- i = {"<cmd>DebugStepInto<cr>", "Step Into"},
|
|
||||||
-- o = {"<cmd>DebugStepOver<cr>", "Step Over"},
|
|
||||||
-- r = {"<cmd>DebugToggleRepl<cr>", "Toggle Repl"},
|
|
||||||
-- s = {"<cmd>DebugStart<cr>", "Start"}
|
|
||||||
-- },
|
|
||||||
g = {
|
|
||||||
name = "Git",
|
|
||||||
j = {"<cmd>lua require 'gitsigns'.next_hunk()<cr>", "Next Hunk"},
|
|
||||||
k = {"<cmd>lua require 'gitsigns'.prev_hunk()<cr>", "Prev Hunk"},
|
|
||||||
l = {"<cmd>lua require 'gitsigns'.blame_line()<cr>", "Blame"},
|
|
||||||
p = {"<cmd>lua require 'gitsigns'.preview_hunk()<cr>", "Preview Hunk"},
|
|
||||||
r = {"<cmd>lua require 'gitsigns'.reset_hunk()<cr>", "Reset Hunk"},
|
|
||||||
R = {"<cmd>lua require 'gitsigns'.reset_buffer()<cr>", "Reset Buffer"},
|
|
||||||
s = {"<cmd>lua require 'gitsigns'.stage_hunk()<cr>", "Stage Hunk"},
|
|
||||||
u = {
|
|
||||||
"<cmd>lua require 'gitsigns'.undo_stage_hunk()<cr>",
|
|
||||||
"Undo Stage Hunk"
|
|
||||||
},
|
|
||||||
o = {"<cmd>Telescope git_status<cr>", "Open changed file"},
|
|
||||||
b = {"<cmd>Telescope git_branches<cr>", "Checkout branch"},
|
|
||||||
c = {"<cmd>Telescope git_commits<cr>", "Checkout commit"},
|
|
||||||
C = {
|
|
||||||
"<cmd>Telescope git_bcommits<cr>",
|
|
||||||
"Checkout commit(for current file)"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
l = {
|
|
||||||
name = "LSP",
|
|
||||||
a = {"<cmd>Lspsaga code_action<cr>", "Code Action"},
|
|
||||||
A = {"<cmd>Lspsaga range_code_action<cr>", "Selected Action"},
|
|
||||||
d = {
|
|
||||||
"<cmd>Telescope lsp_document_diagnostics<cr>",
|
|
||||||
"Document Diagnostics"
|
|
||||||
},
|
|
||||||
D = {
|
|
||||||
"<cmd>Telescope lsp_workspace_diagnostics<cr>",
|
|
||||||
"Workspace Diagnostics"
|
|
||||||
},
|
|
||||||
f = {"<cmd>lua vim.lsp.buf.formatting()<cr>", "Format"},
|
|
||||||
h = {"<cmd>Lspsaga hover_doc<cr>", "Hover Doc"},
|
|
||||||
i = {"<cmd>LspInfo<cr>", "Info"},
|
|
||||||
j = {"<cmd>Lspsaga diagnostic_jump_prev<cr>", "Prev Diagnostic"},
|
|
||||||
k = {"<cmd>Lspsaga diagnostic_jump_next<cr>", "Next Diagnostic"},
|
|
||||||
l = {"<cmd>Lspsaga lsp_finder<cr>", "LSP Finder"},
|
|
||||||
L = {"<cmd>Lspsaga show_line_diagnostics<cr>", "Line Diagnostics"},
|
|
||||||
p = {"<cmd>Lspsaga preview_definition<cr>", "Preview Definition"},
|
|
||||||
q = {"<cmd>Telescope quickfix<cr>", "Quickfix"},
|
|
||||||
r = {"<cmd>Lspsaga rename<cr>", "Rename"},
|
|
||||||
t = {"<cmd>LspTypeDefinition<cr>", "Type Definition"},
|
|
||||||
x = {"<cmd>cclose<cr>", "Close Quickfix"},
|
|
||||||
s = {"<cmd> Telescope lsp_document_symbols<cr>", "Document Symbols"},
|
|
||||||
-- s = {O.plugin.symbol_outline.active and "<cmd>SymbolsOutline<cr>" or
|
|
||||||
-- "<cmd> Telescope lsp_document_symbols<cr>", "Document Symbols"},
|
|
||||||
S = {
|
|
||||||
"<cmd>Telescope lsp_dynamic_workspace_symbols<cr>",
|
|
||||||
"Workspace Symbols"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
s = {
|
|
||||||
name = "Search",
|
|
||||||
b = {"<cmd>Telescope git_branches<cr>", "Checkout branch"},
|
|
||||||
c = {"<cmd>Telescope colorscheme<cr>", "Colorscheme"},
|
|
||||||
-- d = {
|
|
||||||
-- "<cmd>Telescope lsp_document_diagnostics<cr>",
|
|
||||||
-- "Document Diagnostics"
|
|
||||||
-- },
|
|
||||||
-- D = {
|
|
||||||
-- "<cmd>Telescope lsp_workspace_diagnostics<cr>",
|
|
||||||
-- "Workspace Diagnostics"
|
|
||||||
-- },
|
|
||||||
f = {"<cmd>Telescope find_files<cr>", "Find File"},
|
|
||||||
-- f = {O.plugin.snap.active and "<cmd>Snap find_files<cr>" or "<cmd>Telescope find_files<cr>", "Find File"},
|
|
||||||
h = {"<cmd>Telescope help_tags<cr>", "Find Help"},
|
|
||||||
-- m = {"<cmd>Telescope marks<cr>", "Marks"},
|
|
||||||
M = {"<cmd>Telescope man_pages<cr>", "Man Pages"},
|
|
||||||
r = {"<cmd>Telescope oldfiles<cr>", "Open Recent File"},
|
|
||||||
-- r = {O.plugin.snap.active and "<cmd>Snap oldfiles<cr>" or "<cmd>Telescope oldfiles<cr>", "Open Recent File"},
|
|
||||||
R = {"<cmd>Telescope registers<cr>", "Registers"},
|
|
||||||
t = {"<cmd>Telescope live_grep<cr>", "Text"}
|
|
||||||
-- t = {O.plugin.snap.active and "<cmd>Snap live_grep<cr>" or "<cmd>Telescope live_grep<cr>", "Text"}
|
|
||||||
},
|
|
||||||
S = {
|
|
||||||
name = "Session",
|
|
||||||
s = {"<cmd>SessionSave<cr>", "Save Session"},
|
|
||||||
l = {"<cmd>SessionLoad<cr>", "Load Session"}
|
|
||||||
},
|
|
||||||
T = {
|
|
||||||
name = "Treesitter",
|
|
||||||
i = {":TSConfigInfo<cr>", "Info"}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
-- if O.plugin.spectre.active then
|
|
||||||
-- mappings['r'] = {
|
|
||||||
-- name = "Replace",
|
|
||||||
-- f = {
|
|
||||||
-- "<cmd>lua require('spectre').open_file_search()<cr>", "Current File"
|
|
||||||
-- },
|
|
||||||
-- p = {"<cmd>lua require('spectre').open()<cr>", "Project"}
|
|
||||||
-- }
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- if O.plugin.trouble.active then
|
|
||||||
-- mappings['d'] = {
|
|
||||||
-- name = "Diagnostics",
|
|
||||||
-- t = {"<cmd>TroubleToggle<cr>", "trouble"},
|
|
||||||
-- w = {"<cmd>TroubleToggle lsp_workspace_diagnostics<cr>", "workspace"},
|
|
||||||
-- d = {"<cmd>TroubleToggle lsp_document_diagnostics<cr>", "document"},
|
|
||||||
-- q = {"<cmd>TroubleToggle quickfix<cr>", "quickfix"},
|
|
||||||
-- l = {"<cmd>TroubleToggle loclist<cr>", "loclist"},
|
|
||||||
-- r = {"<cmd>TroubleToggle lsp_references<cr>", "references"}
|
|
||||||
-- }
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- if O.plugin.gitlinker.active then mappings["gy"] = "Gitlink" end
|
|
||||||
--
|
|
||||||
-- if O.plugin.ts_playground.active then
|
|
||||||
-- vim.api.nvim_set_keymap("n", "<leader>Th",
|
|
||||||
-- ":TSHighlightCapturesUnderCursor<CR>",
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
-- mappings[""] = "Highlight Capture"
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- if O.plugin.zen.active then
|
|
||||||
-- vim.api.nvim_set_keymap("n", "<leader>z", ":ZenMode<CR>",
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
-- mappings["z"] = "Zen"
|
|
||||||
-- end
|
|
||||||
-- if O.plugin.lazygit.active then
|
|
||||||
-- vim.api.nvim_set_keymap("n", "<leader>gg", ":LazyGit<CR>",
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
-- mappings["gg"] = "LazyGit"
|
|
||||||
-- end
|
|
||||||
-- if O.plugin.telescope_project.active then
|
|
||||||
-- -- open projects
|
|
||||||
-- vim.api.nvim_set_keymap('n', '<leader>p',
|
|
||||||
-- ":lua require'telescope'.extensions.project.project{}<CR>",
|
|
||||||
-- {noremap = true, silent = true})
|
|
||||||
-- mappings["p"] = "Projects"
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- -- [";"] = "Dashboard",
|
|
||||||
--
|
|
||||||
-- if O.lang.latex.active then
|
|
||||||
-- mappings["L"] = {
|
|
||||||
-- name = "+Latex",
|
|
||||||
-- c = {"<cmd>VimtexCompile<cr>", "Toggle Compilation Mode"},
|
|
||||||
-- f = {"<cmd>call vimtex#fzf#run()<cr>", "Fzf Find"},
|
|
||||||
-- i = {"<cmd>VimtexInfo<cr>", "Project Information"},
|
|
||||||
-- s = {"<cmd>VimtexStop<cr>", "Stop Project Compilation"},
|
|
||||||
-- t = {"<cmd>VimtexTocToggle<cr>", "Toggle Table Of Content"},
|
|
||||||
-- v = {"<cmd>VimtexView<cr>", "View PDF"}
|
|
||||||
-- }
|
|
||||||
-- end
|
|
||||||
--
|
|
||||||
-- if O.lushmode then
|
|
||||||
-- mappings["L"] = {
|
|
||||||
-- name = "+Lush",
|
|
||||||
-- l = {":Lushify<cr>", "Lushify"},
|
|
||||||
-- x = {":lua require('lush').export_to_buffer(require('lush_theme.cool_name'))", "Lush Export"},
|
|
||||||
-- t = {":LushRunTutorial<cr>", "Lush Tutorial"},
|
|
||||||
-- q = {":LushRunQuickstart<cr>", "Lush Quickstart"}
|
|
||||||
-- }
|
|
||||||
-- end
|
|
||||||
|
|
||||||
local wk = require("which-key")
|
|
||||||
wk.register(mappings, opts)
|
|
@ -1,76 +0,0 @@
|
|||||||
-- plugins made by @Pocco81 =)
|
|
||||||
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
M.config = function()
|
|
||||||
local true_zen = require("true-zen")
|
|
||||||
|
|
||||||
true_zen.setup(
|
|
||||||
{
|
|
||||||
true_false_commands = false,
|
|
||||||
cursor_by_mode = false,
|
|
||||||
before_minimalist_mode_shown = true,
|
|
||||||
before_minimalist_mode_hidden = true,
|
|
||||||
after_minimalist_mode_shown = true,
|
|
||||||
after_minimalist_mode_hidden = true,
|
|
||||||
bottom = {
|
|
||||||
hidden_laststatus = 0,
|
|
||||||
hidden_ruler = false,
|
|
||||||
hidden_showmode = false,
|
|
||||||
hidden_showcmd = false,
|
|
||||||
hidden_cmdheight = 1,
|
|
||||||
shown_laststatus = 2,
|
|
||||||
shown_ruler = true,
|
|
||||||
shown_showmode = false,
|
|
||||||
shown_showcmd = false,
|
|
||||||
shown_cmdheight = 1
|
|
||||||
},
|
|
||||||
top = {
|
|
||||||
hidden_showtabline = 0,
|
|
||||||
shown_showtabline = 2
|
|
||||||
},
|
|
||||||
left = {
|
|
||||||
hidden_number = false,
|
|
||||||
hidden_relativenumber = false,
|
|
||||||
hidden_signcolumn = "no",
|
|
||||||
shown_number = true,
|
|
||||||
shown_relativenumber = false,
|
|
||||||
shown_signcolumn = "yes"
|
|
||||||
},
|
|
||||||
ataraxis = {
|
|
||||||
just_do_it_for_me = false,
|
|
||||||
left_padding = 37,
|
|
||||||
right_padding = 37,
|
|
||||||
top_padding = 2,
|
|
||||||
bottom_padding = 2,
|
|
||||||
custome_bg = "#1e222a"
|
|
||||||
},
|
|
||||||
integrations = {
|
|
||||||
integration_galaxyline = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
-- autosave.nvim plugin disabled by default
|
|
||||||
M.autoSave = function()
|
|
||||||
local autosave = require("autosave")
|
|
||||||
|
|
||||||
autosave.setup(
|
|
||||||
{
|
|
||||||
enabled = vim.g.auto_save, -- takes boolean value from init.lua
|
|
||||||
execution_message = "autosaved at : " .. vim.fn.strftime("%H:%M:%S"),
|
|
||||||
events = {"InsertLeave", "TextChanged"},
|
|
||||||
conditions = {
|
|
||||||
exists = true,
|
|
||||||
filetype_is_not = {},
|
|
||||||
modifiable = true
|
|
||||||
},
|
|
||||||
write_all_buffers = true,
|
|
||||||
on_off_commands = true,
|
|
||||||
clean_command_line_interval = 2500
|
|
||||||
}
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -12,20 +12,33 @@ rounded-corners-exclude = [
|
|||||||
|
|
||||||
|
|
||||||
# Add dual-kawase blur
|
# Add dual-kawase blur
|
||||||
blur-background = true;
|
|
||||||
blur-background-frame = true;
|
|
||||||
blur-background-fixed = true;
|
blur:
|
||||||
blur-kern = "3x3box";
|
{
|
||||||
blur-method = "dual_kawase";
|
background = true;
|
||||||
blur-strength = 2;
|
background-frame = true;
|
||||||
blur-background-exclude = [
|
background-fixed = true;
|
||||||
|
kern = "3x3box";
|
||||||
|
method = "dual_kawase";
|
||||||
|
strength = 6;
|
||||||
|
# blur-strength = 2;
|
||||||
|
|
||||||
|
background-exclude = [
|
||||||
"class_g = 'slop'",
|
"class_g = 'slop'",
|
||||||
"class_g = 'XAVA'",
|
"class_g = 'XAVA'",
|
||||||
"class_g = 'lattedock'",
|
"class_g = 'lattedock'",
|
||||||
"class_g = 'latte-dock'"
|
"class_g = 'latte-dock'"
|
||||||
];
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wintypes:
|
||||||
|
{
|
||||||
|
normal = {blur-background = true;};
|
||||||
|
splash = {blur-background = false;};
|
||||||
|
}
|
||||||
|
|
||||||
shadow = true;
|
shadow = true;
|
||||||
shadow-radius = 12;
|
shadow-radius = 12;
|
||||||
shadow-opacity = 0.25;
|
shadow-opacity = 0.25;
|
||||||
@ -43,3 +56,4 @@ fade-exclude = [ ];
|
|||||||
|
|
||||||
# Do not fade on window open/close.
|
# Do not fade on window open/close.
|
||||||
no-fading-openclose = true
|
no-fading-openclose = true
|
||||||
|
transition-length = 350
|
||||||
|
@ -53,17 +53,18 @@
|
|||||||
|
|
||||||
[bar/main]
|
[bar/main]
|
||||||
monitor = ${env:MONITOR:}
|
monitor = ${env:MONITOR:}
|
||||||
width = 100%:-50
|
width = 100%
|
||||||
offset-x = 25
|
offset-x = 0
|
||||||
offset-y = 0
|
offset-y = 1060
|
||||||
|
|
||||||
height = 20
|
height = 20
|
||||||
radius = 0
|
radius = 2
|
||||||
|
|
||||||
override-redirect = true
|
override-redirect = true
|
||||||
wm-restack = i3
|
wm-restack = i3
|
||||||
|
|
||||||
background = #dd1E222A
|
; background = #dd1E222A
|
||||||
|
background = ${colors.background}
|
||||||
foreground = ${colors.foreground}
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
padding-left = 1
|
padding-left = 1
|
||||||
@ -74,21 +75,58 @@
|
|||||||
font-0 = Hack Nerd Font:pixelsize=11:antialias=true;2.5
|
font-0 = Hack Nerd Font:pixelsize=11:antialias=true;2.5
|
||||||
font-1 = Hack Nerd Font:style=Regular:pixelsize=17:antialias=true;3
|
font-1 = Hack Nerd Font:style=Regular:pixelsize=17:antialias=true;3
|
||||||
|
|
||||||
modules-left = i3 cpu temperaturecpu memory
|
modules-left = i3 cpu temperaturecpu memory xkeyboard
|
||||||
modules-center = xwindow
|
modules-right = bluetooth audio backlight wlan wired-network battery date powermenu
|
||||||
modules-right = audio backlight wlan wired-network battery date powermenu
|
|
||||||
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
; tray-position = right
|
tray-position = right
|
||||||
tray-padding = 0
|
tray-padding = 0
|
||||||
;tray-background = #0063ff
|
;tray-background = #0063ff
|
||||||
|
|
||||||
|
[bar/top]
|
||||||
|
monitor = ${env:MONITOR:}
|
||||||
|
width = 100%
|
||||||
|
offset-x = 0
|
||||||
|
offset-y = 0
|
||||||
|
|
||||||
|
height = 20
|
||||||
|
radius = 2
|
||||||
|
|
||||||
|
override-redirect = true
|
||||||
|
wm-restack = i3
|
||||||
|
|
||||||
|
; background = #dd1E222A
|
||||||
|
background = ${colors.background}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
padding-left = 1
|
||||||
|
padding-right = 1
|
||||||
|
module-margin-left = 1
|
||||||
|
module-margin-right = 2
|
||||||
|
|
||||||
|
font-0 = Hack Nerd Font:pixelsize=11:antialias=true;2.5
|
||||||
|
font-1 = Hack Nerd Font:style=Regular:pixelsize=17:antialias=true;3
|
||||||
|
|
||||||
|
modules-center = xwindow
|
||||||
|
|
||||||
|
cursor-click = pointer
|
||||||
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
|
;tray-background = #0063ff
|
||||||
|
[module/xkeyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
|
||||||
|
; List of indicators to ignore
|
||||||
|
blacklist-0 = num lock
|
||||||
|
blacklist-1 = scroll lock
|
||||||
|
format-foreground = ${colors.fifth}
|
||||||
|
|
||||||
[module/xwindow]
|
[module/xwindow]
|
||||||
type = internal/xwindow
|
type = internal/xwindow
|
||||||
label = %title%
|
label = %title%
|
||||||
|
label-maxlen = 150
|
||||||
|
|
||||||
|
|
||||||
[module/filesystem]
|
[module/filesystem]
|
||||||
@ -99,6 +137,11 @@
|
|||||||
label-unmounted = %mountpoint% not mounted
|
label-unmounted = %mountpoint% not mounted
|
||||||
label-unmounted-foreground = ${colors.foreground}
|
label-unmounted-foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
[module/bluetooth]
|
||||||
|
type = custom/script
|
||||||
|
exec = ~/Desktop/GitRepositories/rofi-bluetooth/rofi-bluetooth --status
|
||||||
|
interval = 1
|
||||||
|
click-left = ~/Desktop/GitRepositories/rofi-bluetooth/rofi-bluetooth &
|
||||||
|
|
||||||
[module/i3]
|
[module/i3]
|
||||||
type = internal/i3
|
type = internal/i3
|
||||||
@ -121,10 +164,10 @@
|
|||||||
ws-icon-0 = "0;"
|
ws-icon-0 = "0;"
|
||||||
ws-icon-1 = "1;"
|
ws-icon-1 = "1;"
|
||||||
ws-icon-2 = "2;"
|
ws-icon-2 = "2;"
|
||||||
ws-icon-3 = "3;"
|
ws-icon-3 = "3;"
|
||||||
ws-icon-4 = "4;4"
|
ws-icon-4 = "4;4"
|
||||||
ws-icon-5 = "5;5"
|
ws-icon-5 = "5;"
|
||||||
ws-icon-6 = "6;6"
|
ws-icon-6 = "6;"
|
||||||
ws-icon-7 = "7;7"
|
ws-icon-7 = "7;7"
|
||||||
ws-icon-8 = "8;8"
|
ws-icon-8 = "8;8"
|
||||||
ws-icon-9 = "9;ﭮ"
|
ws-icon-9 = "9;ﭮ"
|
||||||
@ -136,28 +179,30 @@
|
|||||||
|
|
||||||
label-focused = %icon%
|
label-focused = %icon%
|
||||||
label-focused-foreground = ${colors.fourth}
|
label-focused-foreground = ${colors.fourth}
|
||||||
label-focused-background = #3a3e4e
|
; label-focused-background = #3a3e4e
|
||||||
|
label-focused-background = ${colors.background}
|
||||||
label-focused-padding = 1
|
label-focused-padding = 1
|
||||||
|
|
||||||
label-unfocused = ${self.label-focused}
|
label-unfocused = ${self.label-focused}
|
||||||
label-unfocused-foreground = #0a7383
|
; label-unfocused-foreground = #0a7383
|
||||||
label-unfocused-padding = ${self.label-focused-padding}
|
label-unfocused-foreground = ${colors.fifth}
|
||||||
|
label-unfocused-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
label-visible = ${self.label-focused}
|
label-visible = ${self.label-focused}
|
||||||
label-visible-foreground = #0a7383
|
; label-visible-foreground = #0a7383
|
||||||
|
label-visible-foreground = ${colors.fifth}
|
||||||
label-visible-padding = ${self.label-focused-padding}
|
label-visible-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
label-urgent = ${self.label-focused}
|
label-urgent = ${self.label-focused}
|
||||||
label-urgent-foreground = ${colors.alert}
|
label-urgent-foreground = ${colors.alert}
|
||||||
label-urgent-padding = ${self.label-focused-padding}
|
label-urgent-padding = ${self.label-focused-padding}
|
||||||
|
|
||||||
|
|
||||||
[module/backlight]
|
[module/backlight]
|
||||||
type = internal/backlight
|
type = internal/backlight
|
||||||
card = intel_backlight
|
card = intel_backlight
|
||||||
|
|
||||||
format = <label>
|
format = <label>
|
||||||
label = " %percentage%%"
|
label = %{A1:applet_backlight:}%{A4:light -A 10:}%{A5:light -U 10:} %percentage%% %{A}%{A}%{A}
|
||||||
|
; %{A1:applet_backlight:}%{A4:xbacklight -dec 10:}This opens chromium%{A} and this one firefox%{A}
|
||||||
label-foreground = ${colors.tertiary}
|
label-foreground = ${colors.tertiary}
|
||||||
|
|
||||||
[module/wlan]
|
[module/wlan]
|
||||||
@ -167,16 +212,16 @@
|
|||||||
|
|
||||||
format-connected = <label-connected>
|
format-connected = <label-connected>
|
||||||
format-connected-underline = #9f78e1
|
format-connected-underline = #9f78e1
|
||||||
; label-connected = "直"
|
; label-connected = "直"
|
||||||
label-connected = 直 %essid% %signal%%
|
label-connected = %{A1:applet_network:}直 %essid% %signal%%%{A}
|
||||||
label-connected-foreground = ${colors.primary}
|
label-connected-foreground = ${colors.primary}
|
||||||
|
|
||||||
format-disconnected = <label-disconnected>
|
format-disconnected = <label-disconnected>
|
||||||
format-disconnected-underline = ${self.format-connected-underline}
|
format-disconnected-underline = ${self.format-connected-underline}
|
||||||
label-disconnected = 睊
|
label-disconnected = %{A1:applet_network:}睊%{A}
|
||||||
label-disconnected-foreground = ${colors.alert}
|
label-disconnected-foreground = ${colors.alert}
|
||||||
|
|
||||||
; a = worst
|
; a = worst
|
||||||
ramp-signal-0 = a
|
ramp-signal-0 = a
|
||||||
ramp-signal-1 = b
|
ramp-signal-1 = b
|
||||||
ramp-signal-2 = c
|
ramp-signal-2 = c
|
||||||
@ -209,7 +254,7 @@
|
|||||||
interval = 1
|
interval = 1
|
||||||
thermal-zone = 0
|
thermal-zone = 0
|
||||||
|
|
||||||
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon5/temp1_input
|
hwmon-path = /sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input
|
||||||
|
|
||||||
warn-temperature = 65
|
warn-temperature = 65
|
||||||
|
|
||||||
@ -219,14 +264,14 @@
|
|||||||
format-foreground = ${colors.secondary}
|
format-foreground = ${colors.secondary}
|
||||||
format-overline = ${colors-andromeda.background}
|
format-overline = ${colors-andromeda.background}
|
||||||
format-underline = ${colors-andromeda.background}
|
format-underline = ${colors-andromeda.background}
|
||||||
; format-padding = 2
|
; format-padding = 2
|
||||||
|
|
||||||
format-warn = <ramp> <label-warn>
|
format-warn = <ramp> <label-warn>
|
||||||
; format-warn-background = ${colors-andromeda.background}
|
; format-warn-background = ${colors-andromeda.background}
|
||||||
format-warn-foreground = ${colors.alert}
|
format-warn-foreground = ${colors.alert}
|
||||||
format-warn-overline = ${colors-andromeda.background}
|
format-warn-overline = ${colors-andromeda.background}
|
||||||
format-warn-underline = ${colors-andromeda.background}
|
format-warn-underline = ${colors-andromeda.background}
|
||||||
; format-warn-padding = 2
|
; format-warn-padding = 2
|
||||||
|
|
||||||
label = %temperature-c%
|
label = %temperature-c%
|
||||||
|
|
||||||
@ -263,22 +308,22 @@ label = " %percentage_used%%"
|
|||||||
interface = eth0
|
interface = eth0
|
||||||
|
|
||||||
format-connected-underline = #55aa55
|
format-connected-underline = #55aa55
|
||||||
label-connected = %linkspeed%
|
; label-connected = %linkspeed%
|
||||||
; label-connected =
|
label-connected =
|
||||||
label-connected-foreground = ${colors.primary}
|
label-connected-foreground = ${colors.primary}
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
interval = 1
|
interval = 1
|
||||||
|
|
||||||
date = "%a %b %e,"
|
date = ""
|
||||||
time = "%l:%M %p"
|
time = "%l:%M %p"
|
||||||
date-alt = "%d-%m-%Y"
|
date-alt = "%d-%m-%Y"
|
||||||
time-alt = "%H:%M:%S"
|
time-alt = "%H:%M:%S"
|
||||||
|
|
||||||
format-prefix-foreground = ${colors.foreground}
|
format-prefix-foreground = ${colors.foreground}
|
||||||
format-underline = #0a6cf5
|
format-underline = #0a6cf5
|
||||||
label = %date% %time%
|
label = %{A1:applet_time:}%date%%time%%{A}
|
||||||
|
|
||||||
[module/alsa]
|
[module/alsa]
|
||||||
type = internal/alsa
|
type = internal/alsa
|
||||||
@ -326,18 +371,19 @@ label = " %percentage_used%%"
|
|||||||
click-right = pavucontrol
|
click-right = pavucontrol
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[module/battery]
|
[module/battery]
|
||||||
type = internal/battery
|
type = internal/battery
|
||||||
battery = BAT0
|
battery = BAT0
|
||||||
adapter = AC0
|
adapter = AC0
|
||||||
full-at = 98
|
full-at = 91
|
||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = %{A1:applet_battery:}<animation-charging> <label-charging>%{A}
|
||||||
format-discharging = <ramp-capacity> <label-discharging>
|
format-discharging = %{A1:applet_battery:}<ramp-capacity> <label-discharging>%{A}
|
||||||
|
; label = %{A1:applet_backlight:}%{A4:xbacklight -inc 10:}%{A5:xbacklight -dec 10:} %percentage%% %{A}%{A}%{A}
|
||||||
label-charging = %percentage%%
|
label-charging = %percentage%%
|
||||||
label-discharging = %percentage%%
|
label-discharging = %percentage%%
|
||||||
|
label-full = %{A1:applet_battery:} Fully charged%{A}
|
||||||
label-full = Fully charged
|
|
||||||
label-full-foreground = #00ff00
|
label-full-foreground = #00ff00
|
||||||
|
|
||||||
|
|
||||||
@ -368,8 +414,7 @@ label = " %percentage_used%%"
|
|||||||
animation-charging-2 =
|
animation-charging-2 =
|
||||||
animation-charging-3 =
|
animation-charging-3 =
|
||||||
animation-charging-4 =
|
animation-charging-4 =
|
||||||
animation-charging-5 =
|
animation-charging-5 =
|
||||||
animation-charging-6 =
|
|
||||||
|
|
||||||
animation-charging-foreground = ${colors.fourth}
|
animation-charging-foreground = ${colors.fourth}
|
||||||
|
|
||||||
@ -381,16 +426,16 @@ label = " %percentage_used%%"
|
|||||||
format-spacing = 1
|
format-spacing = 1
|
||||||
content =
|
content =
|
||||||
content-foreground = ${colors.alert}
|
content-foreground = ${colors.alert}
|
||||||
click-left = bash ~/scripts/rofi/launch.sh powermenu
|
click-left = applet_powermenu
|
||||||
|
|
||||||
|
|
||||||
[settings]
|
[settings]
|
||||||
screenchange-reload = true
|
screenchange-reload = true
|
||||||
;compositing-background = xor
|
;compositing-background = xor
|
||||||
;compositing-background = screen
|
;compositing-background = screen
|
||||||
;compositing-foreground = source
|
;compositing-foreground = source
|
||||||
;compositing-border = over
|
;compositing-border = over
|
||||||
;pseudo-transparency =true
|
;pseudo-transparency =true
|
||||||
|
|
||||||
[global/wm]
|
[global/wm]
|
||||||
margin-bottom = 20
|
margin-bottom = 20
|
||||||
|
@ -3,4 +3,5 @@
|
|||||||
pkill polybar
|
pkill polybar
|
||||||
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
for m in $(polybar --list-monitors | cut -d":" -f1); do
|
||||||
MONITOR=$m polybar --reload main &
|
MONITOR=$m polybar --reload main &
|
||||||
|
# MONITOR=$m polybar --reload top &
|
||||||
done
|
done
|
||||||
|
@ -1,128 +0,0 @@
|
|||||||
configuration {
|
|
||||||
modi: "window,run,drun";
|
|
||||||
theme: "clean";
|
|
||||||
show-icons: true;
|
|
||||||
font: "Hack Nerd Font 11";
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "config.rasi"
|
|
||||||
|
|
||||||
* {
|
|
||||||
selected-background: #d8c45d;
|
|
||||||
selected-foreground: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
|
||||||
padding: 90px 120px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainbox {
|
|
||||||
border: 0;
|
|
||||||
border-radius: 15;
|
|
||||||
padding: 20;
|
|
||||||
background-color: @background-solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
#textbox {
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#listview {
|
|
||||||
columns: 5;
|
|
||||||
spacing: 0px;
|
|
||||||
cycle: false;
|
|
||||||
dynamic: true;
|
|
||||||
layout: vertical;
|
|
||||||
background-color: transparent;
|
|
||||||
padding: 12px 0px 0px 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
margin: 4px;
|
|
||||||
padding: 22px 10px 22px 10px;
|
|
||||||
border-radius: 16px;
|
|
||||||
orientation: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
size: 90px;
|
|
||||||
margin: 0 10px 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-text {
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.normal.normal {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.selected.normal {
|
|
||||||
background-color: @selected-background;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
border-color: #d07ef2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.alternate.normal {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode-switcher {
|
|
||||||
border: 0px 0px 0px ;
|
|
||||||
border-color: @separatorcolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
#button {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#button.selected {
|
|
||||||
background-color: @selected-background;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#inputbar {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
padding: 10px;
|
|
||||||
background-color: @selected-background;
|
|
||||||
/*rgba(0,0,0,0.5);*/
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#case-indicator {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#entry {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#prompt {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#textbox-prompt-colon {
|
|
||||||
expand: false;
|
|
||||||
str: ":";
|
|
||||||
margin: 0px 0.3em 0em 0em ;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#inputbar {
|
|
||||||
children: [prompt,textbox-prompt-colon,entry,case-indicator];
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
* {
|
|
||||||
foreground: rgba(196, 203, 212, 100%);
|
|
||||||
selected-foreground: rgba(255, 255, 255, 100%);
|
|
||||||
|
|
||||||
background: #1f243aa0;
|
|
||||||
background-solid: #1f243aff;
|
|
||||||
selected-background: rgba(0, 0, 0, 40%);
|
|
||||||
|
|
||||||
/*#87b5d7;*/
|
|
||||||
/*#6eacda;*/
|
|
||||||
/*#deca72;*/
|
|
||||||
/*#39c9fe;*/
|
|
||||||
|
|
||||||
red: rgba ( 220, 50, 47, 100 % );
|
|
||||||
blue: rgba ( 38, 139, 210, 100 % );
|
|
||||||
}
|
|
||||||
|
|
@ -1 +0,0 @@
|
|||||||
@import "/home/sahin/.cache/wal/colors-rofi-dark"
|
|
@ -1,123 +0,0 @@
|
|||||||
configuration {
|
|
||||||
modi: "window,run,drun";
|
|
||||||
theme: "music";
|
|
||||||
show-icons: true;
|
|
||||||
font: "Hack Nerd Font 11";
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "colors.rasi"
|
|
||||||
|
|
||||||
#window {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
background-color: rgba(255, 255, 255, 0.1);
|
|
||||||
padding: 90px 120px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainbox {
|
|
||||||
border: 0;
|
|
||||||
border-radius: 15;
|
|
||||||
padding: 20;
|
|
||||||
background-color: @background;
|
|
||||||
}
|
|
||||||
|
|
||||||
#textbox {
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#listview {
|
|
||||||
padding: 18px 0px 2px 0px;
|
|
||||||
columns: 5;
|
|
||||||
spacing: 2px;
|
|
||||||
cycle: false;
|
|
||||||
dynamic: true;
|
|
||||||
layout: vertical;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
margin: 4px;
|
|
||||||
padding: 8px;
|
|
||||||
border-radius: 4px;
|
|
||||||
orientation: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
size: 195px;
|
|
||||||
margin: 0 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-text {
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.normal.normal {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.selected.normal {
|
|
||||||
background-color: @selected-background;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
border-color: #d07ef2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.alternate.normal {
|
|
||||||
background-color: transparent;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode-switcher {
|
|
||||||
border: 0px 0px 0px ;
|
|
||||||
border-color: @separatorcolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
#button {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#button.selected {
|
|
||||||
background-color: @selected-background;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#inputbar {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
padding: 10px;
|
|
||||||
background-color: @selected-background;
|
|
||||||
/*rgba(0,0,0,0.5);*/
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#case-indicator {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#entry {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#prompt {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#textbox-prompt-colon {
|
|
||||||
expand: false;
|
|
||||||
str: ":";
|
|
||||||
margin: 0px 0.3em 0em 0em ;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
}
|
|
||||||
|
|
||||||
#inputbar {
|
|
||||||
children: [prompt,textbox-prompt-colon,entry,case-indicator];
|
|
||||||
}
|
|
@ -1,81 +0,0 @@
|
|||||||
configuration {
|
|
||||||
modi: "window,run,drun";
|
|
||||||
theme: "clean";
|
|
||||||
show-icons: true;
|
|
||||||
font: "Hack Nerd Font 10";
|
|
||||||
}
|
|
||||||
|
|
||||||
@import "colors.rasi"
|
|
||||||
|
|
||||||
* {
|
|
||||||
selected-background: #d8c45d;
|
|
||||||
selected-foreground: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
#window {
|
|
||||||
width: 450px;
|
|
||||||
height: 120px;
|
|
||||||
background-color: @background-solid;
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mainbox {
|
|
||||||
border: 0;
|
|
||||||
padding: 0;
|
|
||||||
children: [listview];
|
|
||||||
background-color: @background-solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
#listview {
|
|
||||||
columns: 4;
|
|
||||||
layout: vertical;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
element {
|
|
||||||
margin: 8px;
|
|
||||||
padding: 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
orientation: vertical;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-icon {
|
|
||||||
size: 48px;
|
|
||||||
margin: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
element-text {
|
|
||||||
horizontal-align: 0.5;
|
|
||||||
vertical-align: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.normal.normal {
|
|
||||||
background-color: rgba(0, 0, 0, 0);
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.selected.normal {
|
|
||||||
background-color: @selected-background;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
border-color: #d07ef2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#element.alternate.normal {
|
|
||||||
background-color: rgba(0,0,0,0);
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#mode-switcher {
|
|
||||||
border: 0px 0px 0px ;
|
|
||||||
border-color: @separatorcolor;
|
|
||||||
}
|
|
||||||
|
|
||||||
#button {
|
|
||||||
spacing: 0;
|
|
||||||
text-color: @foreground;
|
|
||||||
}
|
|
||||||
|
|
||||||
#button.selected {
|
|
||||||
background-color: @selected-background;
|
|
||||||
text-color: @selected-foreground;
|
|
||||||
}
|
|
@ -1,991 +0,0 @@
|
|||||||
##################################### TABLE OF CONTENTS #####################################
|
|
||||||
* V I M
|
|
||||||
- M o v e m e n t.
|
|
||||||
- I n s e r t m o d e.
|
|
||||||
- E d i t.
|
|
||||||
- V i s u a l m o d e.
|
|
||||||
- V i s u a l c o m m a n d s.
|
|
||||||
- C u t & p a s t e.
|
|
||||||
- S e a r c h & r e p l a c e.
|
|
||||||
- S e a r c h m u l t i - f i l e.
|
|
||||||
- E x i t.
|
|
||||||
- M u l t i f i l e (b u f f e r s).
|
|
||||||
- T a b s.
|
|
||||||
- S e s s i o n s.
|
|
||||||
- C o m m a n d L i n e.
|
|
||||||
- P l u g i n s.
|
|
||||||
* S U B L I M E
|
|
||||||
* I 3 W M
|
|
||||||
- B a s e.
|
|
||||||
- U t i l i t i e s.
|
|
||||||
- M u l t i m e d i a c o n t r o l.
|
|
||||||
* R A N G E R
|
|
||||||
- B o o k m a r k s.
|
|
||||||
- t a b s.
|
|
||||||
- R a n g e r m o v e m e n t.
|
|
||||||
- R a n g e r f i l e s.
|
|
||||||
- R a n g e r c o m m a n d s.
|
|
||||||
- F i l e s u b s t i t u t i n g.
|
|
||||||
- C u s t o m.
|
|
||||||
* T M U X
|
|
||||||
- S e s s i o n s.
|
|
||||||
- W i n d o w s.
|
|
||||||
- P a n e s.
|
|
||||||
- S y n c.
|
|
||||||
* T I L I X
|
|
||||||
- A p p l i c a t i o n.
|
|
||||||
- t a b s (s e s s i o n s).
|
|
||||||
- C o l u m n s.
|
|
||||||
- R e s i z e c o l u m n.
|
|
||||||
- S e a r c h.
|
|
||||||
* T E R M I N A T O R
|
|
||||||
- C r e a t i o n & d e s t r u c t i o n.
|
|
||||||
- N a v e g a t i o n.
|
|
||||||
- O r g a n i z a t i o n.
|
|
||||||
- M i s c e l a n e o u s.
|
|
||||||
- G r o u p i n g & B r o a d c a s t i n g.
|
|
||||||
* F I R E F O X
|
|
||||||
- C u r r e n t p a g e.
|
|
||||||
- T a b s.
|
|
||||||
- H i s t o r y
|
|
||||||
- B o o k m a r k s.
|
|
||||||
- T o o l s.
|
|
||||||
- P d f.
|
|
||||||
- M i s c.
|
|
||||||
* V I M I U M C
|
|
||||||
- V i m i u m c n a v i g a t i o n.
|
|
||||||
- V o m n i b a r.
|
|
||||||
- F i n d.
|
|
||||||
- N a v i g a t i n g h i s t o r y.
|
|
||||||
- T a b s.
|
|
||||||
* T H U N D E R D B I R D
|
|
||||||
- B a s e.
|
|
||||||
- E m a i l.
|
|
||||||
- C a l e n d a r.
|
|
||||||
- T a s k s.
|
|
||||||
- P l u g i n s.
|
|
||||||
* L I B R E O F F I C E W R I T E R
|
|
||||||
- F u n c t i o n k e y s.
|
|
||||||
- B a s e.
|
|
||||||
- P a r a g r a p h s.
|
|
||||||
- T a b l e s.
|
|
||||||
- M o v i n g o b j e c t s.
|
|
||||||
* L I B R E O F F I C E C A L C
|
|
||||||
- N a v i g a t i o n.
|
|
||||||
- F u n c t i o n k e y s.
|
|
||||||
- F o r m a t c e l l s.
|
|
||||||
- P i v o t t a b l e.
|
|
||||||
* F R A N Z
|
|
||||||
* H E X C H A T
|
|
||||||
* D I S C O R D
|
|
||||||
* R O F I
|
|
||||||
* G I M P [todo]
|
|
||||||
* I N K S C A P E [todo]
|
|
||||||
* S C R I B U S [todo]
|
|
||||||
* S Y N F Y G [todo]
|
|
||||||
* L I G H T W O R K S [todo]
|
|
||||||
* N A T R O N [todo]
|
|
||||||
* B L E N D E R [todo]
|
|
||||||
* A L I A S E S [todo]
|
|
||||||
|
|
||||||
###################################### VIM SHORTCUTS ########################################
|
|
||||||
--------------------------------------- VIM MOVEMENT ----------------------------------------
|
|
||||||
vim move: h # left
|
|
||||||
vim move: j # down
|
|
||||||
vim move: k # up
|
|
||||||
vim move: l # right
|
|
||||||
vim move: H # to top of screen
|
|
||||||
vim move: M # to middle of screen
|
|
||||||
vim move: L # to bottom of screen
|
|
||||||
vim move: w # jump forwards to the start of a word
|
|
||||||
vim move: W # jump forwards to the start of a word (words can contain punctuation)
|
|
||||||
vim move: e # jump forwards to the end of a word
|
|
||||||
vim move: E # jump forwards to the end of a word (words can contain punctuation)
|
|
||||||
vim move: b # jump backwards to the start of a word
|
|
||||||
vim move: B # jump backwards to the start of a word (words can contain punctuation)
|
|
||||||
vim move: 0 # jump to the start of the line
|
|
||||||
vim move: ^ # jump to the first non-blank character of the line
|
|
||||||
vim move: $ # jump to the end of the line
|
|
||||||
vim move: g_ # jump to the last non-blank character of the line
|
|
||||||
vim move: gg # go to the first line of the document
|
|
||||||
vim move: G # go to the last line of the document
|
|
||||||
vim move: 5G # go to line 5
|
|
||||||
vim move: fx # jump to next occurrence of character x
|
|
||||||
vim move: tx # jump to before next occurrence of character x
|
|
||||||
vim move: } # jump to next paragraph (or function/block, when editing code)
|
|
||||||
vim move: { # jump to previous paragraph (or function/block, when editing code)
|
|
||||||
vim move: zz # center cursor on screen
|
|
||||||
vim move: Ctrl + b # move back one full screen
|
|
||||||
vim move: Ctrl + f # move forward one full screen
|
|
||||||
vim move: Ctrl + d # move forward 1/2 a screen
|
|
||||||
vim move: Ctrl + u # move back 1/2 a screen
|
|
||||||
vim move: lead + hjkl # move window
|
|
||||||
vim move: lead+cd # cd current file's dir
|
|
||||||
-------------------------------------- VIM INSERT MODE --------------------------------------
|
|
||||||
vim insert: i # insert before the cursor
|
|
||||||
vim insert: I # insert at the beginning of the line
|
|
||||||
vim insert: a # insert (append) after the cursor
|
|
||||||
vim insert: A # insert (append) at the end of the line
|
|
||||||
vim insert: o # append (open) a new line below the current line
|
|
||||||
vim insert: O # append (open) a new line above the current line
|
|
||||||
vim insert: ea # insert (append) at the end of the word
|
|
||||||
vim insert: Esc # exit insert mode
|
|
||||||
---------------------------------------- VIM EDIT -------------------------------------------
|
|
||||||
vim edit: r # replace a single character
|
|
||||||
vim edit: J # join line below to the current one
|
|
||||||
vim edit: cc # change (replace) entire line
|
|
||||||
vim edit: cw # change (replace) to the start of the next word
|
|
||||||
vim edit: ce # change (replace) to the end of the next word
|
|
||||||
vim edit: cb # change (replace) to the start of the previous word
|
|
||||||
vim edit: c0 # change (replace) to the start of the line
|
|
||||||
vim edit: c$ # change (replace) to the end of the line
|
|
||||||
vim edit: s # delete character and substitute text
|
|
||||||
vim edit: S # delete line and substitute text (same as cc)
|
|
||||||
vim edit: xp # transpose two letters (delete and paste)
|
|
||||||
vim edit: . # repeat last command
|
|
||||||
vim edit: u # undo
|
|
||||||
vim edit: Ctrl + r # redo
|
|
||||||
------------------------------------- VIM VISUAL MODE ---------------------------------------
|
|
||||||
vim visual: v # start visual mode, mark lines, then do a command (like y-yank)
|
|
||||||
vim visual: V # start linewise visual mode
|
|
||||||
vim visual: o # move to other end of marked area
|
|
||||||
vim visual: O # move to other corner of block
|
|
||||||
vim visual: aw # mark a word
|
|
||||||
vim visual: ab # a block with ()
|
|
||||||
vim visual: aB # a block with {}
|
|
||||||
vim visual: ib # inner block with ()
|
|
||||||
vim visual: iB # inner block with {}
|
|
||||||
vim visual: Esc # exit visual mode
|
|
||||||
vim visual: Ctrl + v # start visual block mode
|
|
||||||
vim visual: lead + * # search current selection next
|
|
||||||
vim visual: lead + # # search current selection prev
|
|
||||||
vim visual: lead + gv # quick search selection
|
|
||||||
vim visual: lead + r # search and replace selection
|
|
||||||
vim visual: $1 $2 $3 $$ $q $e # surround sel. with (),[],[],"",'',""
|
|
||||||
---------------------------------- VIM VISUAL COMMANDS --------------------------------------
|
|
||||||
vim visual c: > # shift text right
|
|
||||||
vim visual c: < # shift text left
|
|
||||||
vim visual c: y # yank (copy) marked text
|
|
||||||
vim visual c: d # delete marked text
|
|
||||||
vim visual c: ~ # switch case
|
|
||||||
------------------------------------ VIM CUT & PASTE ----------------------------------------
|
|
||||||
vim cut paste: yy # yank (copy) a line
|
|
||||||
vim cut paste: 2yy # yank (copy) 2 lines
|
|
||||||
vim cut paste: yw # yank (copy) the characters of the word from the cursor position to the start of the next word
|
|
||||||
vim cut paste: y$ # yank (copy) to end of line
|
|
||||||
vim cut paste: p # put (paste) the clipboard after cursor
|
|
||||||
vim cut paste: P # put (paste) before cursor
|
|
||||||
vim cut paste: dd # delete (cut) a line
|
|
||||||
vim cut paste: 2dd # delete (cut) 2 lines
|
|
||||||
vim cut paste: dw # delete (cut) the characters of the word from the cursor position to the start of the next word
|
|
||||||
vim cut paste: D # delete (cut) to the end of the line
|
|
||||||
vim cut paste: d$ # delete (cut) to the end of the line
|
|
||||||
vim cut paste: d^ # delete (cut) to the first non-blank character of the line
|
|
||||||
vim cut paste: d0 # delete (cut) to the begining of the line
|
|
||||||
vim cut paste: x # delete (cut) character
|
|
||||||
vim cut paste: lead + pp # toggle paste mode
|
|
||||||
--------------------------------- VIM SEARCH & REPLACE --------------------------------------
|
|
||||||
vim search replace: spacebar # search
|
|
||||||
vim search replace: ctrl+spacebar # search prev
|
|
||||||
vim search replace: lead+g # quick search
|
|
||||||
vim search replace: /pattern # search for pattern
|
|
||||||
vim search replace: ?pattern # search backward for pattern
|
|
||||||
vim search replace: \vpattern # 'very magic' pattern: non-alphanumeric characters are interpreted as special regex symbols (no escaping needed)
|
|
||||||
vim search replace: n # repeat search in same direction
|
|
||||||
vim search replace: N # repeat search in opposite direction
|
|
||||||
vim search replace: :%s/old/new/g # replace all old with new throughout file
|
|
||||||
vim search replace: :%s/old/new/gc # replace all old with new throughout file with confirmations
|
|
||||||
vim search replace: :noh # remove highlighting of search matches
|
|
||||||
---------------------------------- VIM SEARCH MULTI FILE ------------------------------------
|
|
||||||
vim search multi: :vimgrep /pattern/ {file} # search for pattern in multiple files
|
|
||||||
vim search multi: :cn # jump to the next match
|
|
||||||
vim search multi: :cp # jump to the previous match
|
|
||||||
vim search multi: :copen # open a window containing the list of matches
|
|
||||||
--------------------------------------- VIM EXIT --------------------------------------------
|
|
||||||
vim exit: :w or :w /path # write (save) the file, but don't exit
|
|
||||||
vim exit: :W # write (save) the file as sudo, but don't exit
|
|
||||||
vim exit: :w !sudo tee % # write out the current file using sudo
|
|
||||||
vim exit: :wq or :x or ZZ # write (save) and quit
|
|
||||||
vim exit: :q # quit (fails if there are unsaved changes)
|
|
||||||
vim exit: :q! or ZQ # quit and throw away unsaved changes
|
|
||||||
vim exit: :bd or bd! # Close the file (buffer)
|
|
||||||
----------------------------------- VIM MULTIPLE FILES--------------------------------------
|
|
||||||
vim multi file: lead+q # Open buffer for scripbble
|
|
||||||
vim multi file: lead+bd # close current buffer
|
|
||||||
vim multi file: lead+ba # close all buffers
|
|
||||||
vim multi file: :e file # edit a file in a new buffer
|
|
||||||
vim multi file: :bnext or :bn # go to the next buffer
|
|
||||||
vim multi file: :bprev or :bp # go to the previous buffer
|
|
||||||
vim multi file: :bd # delete a buffer (close a file)
|
|
||||||
vim multi file: :ls # list all open buffers
|
|
||||||
vim multi file: :sp file # open a file in a new buffer and split window
|
|
||||||
vim multi file: :vsp file # open a file in a new buffer and vertically split window
|
|
||||||
vim multi file: Ctrl + wv # split window vertically
|
|
||||||
vim multi file: Ctrl + ws # split window horizontally
|
|
||||||
vim multi file: Ctrl + ww # switch windows
|
|
||||||
vim multi file: Ctrl + wq # quit a window
|
|
||||||
vim multi file: Ctrl + wv # split window vertically
|
|
||||||
vim multi file: Ctrl + wh # move cursor to the left window (vertical split)
|
|
||||||
vim multi file: Ctrl + wl # move cursor to the right window (vertical split)
|
|
||||||
vim multi file: Ctrl + wj # move cursor to the window below (horizontal split)
|
|
||||||
vim multi file: Ctrl + wk # move cursor to the window above (horizontal split)
|
|
||||||
--------------------------------------- VIM TABS --------------------------------------------
|
|
||||||
vim tabs: lead+tn # open a file in a new tab
|
|
||||||
vim tabs: lead+to # tab only
|
|
||||||
vim tabs: lead+tc # tab close
|
|
||||||
vim tabs: lead+tm # tab move
|
|
||||||
vim tabs: lead+te # tab edit
|
|
||||||
vim tabs: <number>gt # move to tab <number>
|
|
||||||
vim tabs: Ctrl + wT # move the current split window into its own tab
|
|
||||||
vim tabs: gt or :tabnext or :tabn # move to the next tab
|
|
||||||
vim tabs: gT or :tabprev or :tabp # move to the previous tab
|
|
||||||
vim tabs: :tabmove <number> # move current tab to the <number>th position (indexed from 0)
|
|
||||||
vim tabs: :tabclose or :tabc # close the current tab and all its windows
|
|
||||||
vim tabs: :tabonly or :tabo # close all tabs except for the current one
|
|
||||||
vim tabs: :tabdo command # run the command on all tabs (e.g. :tabdo q - closes all opened tabs)
|
|
||||||
--------------------------------------- VIM CODE FOLDING ------------------------------------
|
|
||||||
vim folding: zo / zO # Open
|
|
||||||
vim folding: zc / zC # Close
|
|
||||||
vim folding: za / zA # Toggle
|
|
||||||
vim folding: zv # Open folds for this line
|
|
||||||
vim folding: zM # Close all
|
|
||||||
vim folding: zR # Open all
|
|
||||||
vim folding: zm # Fold more (foldlevel += 1)
|
|
||||||
vim folding: zr # Fold less (foldlevel -= 1)
|
|
||||||
vim folding: zx # Update folds
|
|
||||||
vim folding: ADVICE # I recommend using vim-anyfold for better folding.
|
|
||||||
--------------------------------------- VIM SESSIONS -----------------------------------------
|
|
||||||
vim sessions: ":mksession /path" # Save the curren vim session.
|
|
||||||
vim sessions: ":source /path" # Load the specified vim session.
|
|
||||||
--------------------------------------- VIM COMMAND LINE -----------------------------------
|
|
||||||
vim command line: iab # Insert timestamp
|
|
||||||
vim command line: $q # Delete until the last slash
|
|
||||||
--------------------------------------- VIM PLUGINS -----------------------------------------
|
|
||||||
vim plugin nerdtree: lead+nn # Toggle tree
|
|
||||||
vim plugin nerdtree: lead+nf # Tree from bookmark
|
|
||||||
vim plugin nerdtree: lead+nb # Open Bookmark
|
|
||||||
vim plugin buferexplorer: lead+o # See and manage current buffers
|
|
||||||
vim plugin ctrlp.vim: lead+f # Recent files
|
|
||||||
vim plugin ctrlp.vim: lead+b # Recent buffers
|
|
||||||
vim plugin ctrlp.vim: <C-f> # Recent files on CWD
|
|
||||||
vim plugin zen mode: lead+z # Toggle zen mode
|
|
||||||
vim plugin mult cursors: '<C-s>' # multi_cursor_start_word_key
|
|
||||||
vim plugin mult cursors: '<A-s>' # multi_cursor_select_all_word_key
|
|
||||||
vim plugin mult cursors: 'g<C-s>' # multi_cursor_start_key
|
|
||||||
vim plugin mult cursors: 'g<A-s>' # multi_cursor_select_all_key
|
|
||||||
vim plugin mult cursors: '<C-s>' # multi_cursor_next_key
|
|
||||||
vim plugin mult cursors: '<C-p>' # multi_cursor_prev_key
|
|
||||||
vim plugin mult cursors: '<C-x>' # multi_cursor_skip_key
|
|
||||||
vim plugin mult cursors: '<Esc>' # multi_cursor_quit_key
|
|
||||||
vim plugin yankstack: <C-p> # yankstack_substitute_older_paste
|
|
||||||
vim plugin yankstack: <C-n> # yankstack_substitute_newer_paste
|
|
||||||
vim plugin ctrl-p: '<C-f>' # g:ctrlp_map
|
|
||||||
vim plugin ctrl-p: <lead>j # :CtrlP<cr>
|
|
||||||
vim plugin ctrl-p: <C-b> # :CtrlPBuffer<cr>
|
|
||||||
vim plugin snipmate: <C-j> # autocomplete
|
|
||||||
vim plugin surround: Si # Surrounds a string with _() gettext annotation
|
|
||||||
vim plugin ale: <lead>a # Go to the next Ale syntax/lint error
|
|
||||||
vim plugin spell checking: lead+ss # toggle spellcheck
|
|
||||||
vim plugin cope: cc # Open errors bot-right
|
|
||||||
vim plugin cope: lead+co # Open errors in new tab
|
|
||||||
vim plugin cope: lead+n # Next-error
|
|
||||||
vim plugin cope: lead+p # Prev-error
|
|
||||||
vim plugin anyfold: [[ # Move to the beginning of the current block.
|
|
||||||
vim plugin anyfold: ]] # Move to the end of the current block.
|
|
||||||
vim plugin anyfold: ]k # Move to the end of the previous block.
|
|
||||||
vim plugin anyfold: [j # Move to the beginning of the next block.
|
|
||||||
#################################### SUBLIME SHORTCUTS ######################################
|
|
||||||
sublime: ctrl + o # Open file
|
|
||||||
sublime: ctrl + shift + o # Open directory
|
|
||||||
sublime: ctrl + shift + s # Save as
|
|
||||||
sublime: ctrl + n # New tab
|
|
||||||
sublime: ctrl + w # Close tab
|
|
||||||
sublime: mayus + alt + number # Set N of columns
|
|
||||||
sublime: ctrl + number # Select column
|
|
||||||
sublime: ctrl + mayus + number # Move tab to n column
|
|
||||||
sublime: ctrl + shift + p # Change syntax
|
|
||||||
sublime: ctrl + k + b # Toggle tree
|
|
||||||
|
|
||||||
##################################### I3WM SHORTCUTS ########################################
|
|
||||||
---------------------------------------- I3WM BASE ------------------------------------------
|
|
||||||
i3wm base: ctrl + number # Go to workspace
|
|
||||||
i3wm base: ctrl + next/prior # Go to next/prior workspace
|
|
||||||
i3wm base: cmd + arrows # Select application in the current workspace
|
|
||||||
i3wm base: cmd + shift + number # Move application to workspace
|
|
||||||
i3wm base: cmd + shift + arrows # Move application
|
|
||||||
i3wm base: cmd + r # Resize application
|
|
||||||
i3wm base: cmd + a # Focus parent
|
|
||||||
i3wm base: cmd + space # Toggle float
|
|
||||||
i3wm base: cmd + shift + minus # Send to Scratchpad
|
|
||||||
i3wm base: cmd + minus # Toggle Scratchpad
|
|
||||||
i3wm base: cmd + ctrl+x # XKill
|
|
||||||
i3wm base: cmd + n # Show window title
|
|
||||||
i3wm base: cmd + u # Hide window title
|
|
||||||
-------------------------------------- I3WM UTILITIES ---------------------------------------
|
|
||||||
i3wm util: cmd + F1 # Focus ranger
|
|
||||||
i3wm util: cmd + F2 # Pcmanfm
|
|
||||||
i3wm util: cmd + shift+F2 # Pcmanfm as sudo
|
|
||||||
i3wm util: cmd + F3 # calculator
|
|
||||||
i3wm util: cmd + F4 # i3-easyfocus
|
|
||||||
i3wm util: cmd + d # rofi
|
|
||||||
i3wm util: cmd + Tab # rofi-windows
|
|
||||||
i3wm util: cmd + ctrl + s # rofi-shortcuts
|
|
||||||
i3wm util: cmd + ctrl + d # rofi-zeal
|
|
||||||
i3wm util: cmd + ctrl + f # rofi-search
|
|
||||||
i3wm util: cmd + z # dboxmenu
|
|
||||||
i3wm util: cmd + ctrl + c # zenity-calendar
|
|
||||||
i3wm util: cmd + ctrl + w # gnome-weather
|
|
||||||
i3wm util: cmd + ctrl + a # activities
|
|
||||||
i3wm util: cmd + ctrl + b # bmenu
|
|
||||||
-------------------------------- I3WM MULTIMEDIA CONTROLS -----------------------------------
|
|
||||||
i3wm multi: # Mute
|
|
||||||
i3wm multi: # Vol up
|
|
||||||
i3wm multi:: # Vol down
|
|
||||||
i3wm multi:: # Play/pause
|
|
||||||
i3wm multi:: # brightness up
|
|
||||||
i3wm multi:: # brightness down
|
|
||||||
i3wm multi:: # Toggle trackpad
|
|
||||||
------------------------------- I3WM NOTIFICATIONS (dunst) ----------------------------------
|
|
||||||
i3wm notif: ctrl+mod1+h # Close all notifications
|
|
||||||
i3wm notif: ctrl+mod4+h # Show n otifications h istory
|
|
||||||
i3wm notif: ctrl+mod1+p # Show c ontext
|
|
||||||
|
|
||||||
################################### RANGER SHORTCUTS ########################################
|
|
||||||
----------------------------------- RANGER BOOKMARKS ----------------------------------------
|
|
||||||
ranger bookmarks: m - letter # Create bookmark
|
|
||||||
ranger bookmarks: um - letter # Delete bookmark
|
|
||||||
ranger bookmarks: ' or ` # Go to a bookmark
|
|
||||||
ranger bookmarks: gh # Go to home
|
|
||||||
----------------------------------- RANGER TABS ---------------------------------------------
|
|
||||||
ranger tabs: C-n # Create new tab
|
|
||||||
ranger tabs: C-w # Close current tab
|
|
||||||
ranger tabs: tab # Next tab
|
|
||||||
ranger tabs: shift + tab # Previous tab
|
|
||||||
ranger tabs: alt + [n] # goto / create [n] tab
|
|
||||||
----------------------------------- RANGER MOVEMENT -----------------------------------------
|
|
||||||
ranger movement: k # up
|
|
||||||
ranger movement: j # down
|
|
||||||
ranger movement: h # parent directory
|
|
||||||
ranger movement: l # subdirectory
|
|
||||||
ranger movement: gg # go to top of list
|
|
||||||
ranger movement: G # go t bottom of list
|
|
||||||
ranger movement: J # half page down
|
|
||||||
ranger movement: K # half page up
|
|
||||||
ranger movement: H # History Back
|
|
||||||
ranger movement: L # History Forward
|
|
||||||
----------------------------------- RANGER FILES --------------------------------------------
|
|
||||||
ranger files: <Enter> # Open
|
|
||||||
ranger files: r # open file with
|
|
||||||
ranger files: z # toggle settings
|
|
||||||
ranger files: o # change sort order
|
|
||||||
ranger files: zh # view hidden files
|
|
||||||
ranger files: cw # rename current file
|
|
||||||
ranger files: yy # yank / copy
|
|
||||||
ranger files: dd # cut
|
|
||||||
ranger files: pp # paste
|
|
||||||
ranger files: / # search for files :search
|
|
||||||
ranger files: n # next match
|
|
||||||
ranger files: N # prev match
|
|
||||||
ranger files: <del> # Delete
|
|
||||||
ranger: 1l # Unzip selected file (uncompress)
|
|
||||||
----------------------------------- RANGER COMMANDS -----------------------------------------
|
|
||||||
ranger commands: : # Execute Range Command
|
|
||||||
ranger commands: ! # Execute Shell Command
|
|
||||||
ranger commands: chmod # Change file Permissions
|
|
||||||
ranger commands: du # Disk Usage Current Directory
|
|
||||||
----------------------------------- FILE SUBSTITUTING ---------------------------------------
|
|
||||||
ranger subst: %f # Substitute highlighted file
|
|
||||||
ranger subst: %d # Substitute current directory
|
|
||||||
ranger subst: %s # Substitute currently selected files
|
|
||||||
ranger subst: %t # Substitute currently tagged files
|
|
||||||
ranger subst: :bulkrename %s # Example for substitution
|
|
||||||
----------------------------------- RANGER CUSTOM -------------------------------------------
|
|
||||||
ranger: cmd + f1 # Focus ranger
|
|
||||||
|
|
||||||
##################################### TMMUX SHORTCUTS #######################################
|
|
||||||
-------------------------------------- TMUX SESSIONS ----------------------------------------
|
|
||||||
tmux sessions: mode -> s # Select session. Kill one with 'x'
|
|
||||||
--------------------------------------- TMUX WINDOWS ----------------------------------------
|
|
||||||
tmux windows mode -> w # Select window. Kill one with 'x'
|
|
||||||
-------------------------------------- TMUX PANES -------------------------------------------
|
|
||||||
tmux panes: mode -> alt + number # Choose a different pane layout. Kill one with 'exit'
|
|
||||||
tmux panes: mode -> arrow # Select a pane'
|
|
||||||
-------------------------------------- TMUX SYNC --------------------------------------------
|
|
||||||
tmux sync: mode -> x # Toggle sync panes on/off
|
|
||||||
##################################### TILIX SHORTCUTS #######################################
|
|
||||||
------------------------------------ TILIX APPLICATION --------------------------------------
|
|
||||||
tilix appl: F11 # Full screen
|
|
||||||
tilix appl: F12 # Show sessions sidebar
|
|
||||||
tilix appl: unasigned # Open settings
|
|
||||||
tilix appl: unasigned # Open shortcuts cheatsheet
|
|
||||||
--------------------------------- TILIX TABS (SESSIONS) ------------------------------------
|
|
||||||
tilix tabs: mayus + ctrl + t # New session
|
|
||||||
tilix tabs: mayus + ctrl + n # New window
|
|
||||||
tilix tabs: ctrl + pg up # Next session
|
|
||||||
tilix tabs: ctrl + pg down # Previous session
|
|
||||||
tilix tabs: ctrl + alt + [n] # Show session n
|
|
||||||
tilix tabs: ctrl + alt + [n] # Close session
|
|
||||||
tilix tabs: mayus + ctrl + s # Save session
|
|
||||||
tilix tabs: unasigned # Save session on file
|
|
||||||
------------------------------------ TILIX COLUMNS ------------------------------------------
|
|
||||||
tilix columns: ctrl + alt + r # Split right
|
|
||||||
tilix columns: ctrl + alt + d # Split down
|
|
||||||
tilix columns: ctrl + alt + a # Split on aureal pattern
|
|
||||||
tilix wind: alt + arrow # Select column
|
|
||||||
--------------------------------- TILIX RESIZE COLUMN ---------------------------------------
|
|
||||||
tilix resize: ctrl + alt + up # Resize up
|
|
||||||
tilix resize: ctrl + alt + down # Resize down
|
|
||||||
tilix resize: ctrl + alt + left # Resize left
|
|
||||||
tilix resize: ctrl + alt + right # Resize right
|
|
||||||
---------------------------------- TILIX SEARCH --------------------------------------------
|
|
||||||
tilix resize: ctrl + shift + f # Search
|
|
||||||
tilix resize: ctrl + shift + g # Search next
|
|
||||||
tilix resize: ctrl + shift + h # Search prev
|
|
||||||
|
|
||||||
################################### TERMINATOR SHORTCUTS ####################################
|
|
||||||
------------------------------ TERMINATOR CREATION & DESTRUCTION ----------------------------
|
|
||||||
terminator creation: Ctrl+Shift+O # Split terminals Horizontally
|
|
||||||
terminator creation: Ctrl+Shift+E # Split terminals Vertically
|
|
||||||
terminator creation: Ctrl+Shift+T # Open new tab
|
|
||||||
terminator creation: Ctrl+Shift+I # Open a new window (as part of the same process).
|
|
||||||
terminator creation: Alt + L # Open layout launcher
|
|
||||||
terminator creation: Ctrl + shift + W # Close current terminal.
|
|
||||||
terminator creation: Ctrl+Shift+Q # Close current window.
|
|
||||||
----------------------------------- TERMINATOR NAVEGATION -----------------------------------
|
|
||||||
terminator navegation: Alt+Up # Move to the terminal above the current one.
|
|
||||||
terminator navegation: Alt+Down # Move to the terminal below the current one.
|
|
||||||
terminator navegation: Alt+Left # Move to the terminal left of the current one.
|
|
||||||
terminator navegation: Alt+Right # Move to the terminal right of the current one.
|
|
||||||
terminator navegation: Ctrl+PageDown # Move to next Tab.
|
|
||||||
terminator navegation: Ctrl+PageUp # Move to previous Tab.
|
|
||||||
terminator navegation: Ctrl+Shift+N or Ctrl+Tab # Move to next terminal within the same tab, use Ctrl+PageDown to move to the next tab. If cycle_term_tab is False, cycle within the same tab will be disabled.
|
|
||||||
terminator navegation: Ctrl+Shift+P or Ctrl+Shift+Tab # Move to previous terminal within the same tab, use Ctrl+PageUp to move to the previous tab. If cycle_term_tab is False, cycle within the same tab will be disabled.
|
|
||||||
----------------------------------- TERMINATOR ORGANIZATION ---------------------------------
|
|
||||||
terminator organ: Ctrl+Shift+Right # Move parent dragbar Right.
|
|
||||||
terminator organ: Ctrl+Shift+Left # Move parent dragbar Left.
|
|
||||||
terminator organ: Ctrl+Shift+Up # Move parent dragbar Up.
|
|
||||||
terminator organ: Ctrl+Shift+Down # Move parent dragbar Down.
|
|
||||||
terminator organ: Super+R # Rotate terminals clockwise.
|
|
||||||
terminator organ: Drag and Drop # Or you could just drag & drop.
|
|
||||||
terminator organ: Ctrl+Shift+PageDown # Swap tab position with next Tab.
|
|
||||||
terminator organ: Ctrl+Shift+PageUp # Swap tab position with previous Tab.
|
|
||||||
----------------------------------- TERMINATORMISCELANEOUS ----------------------------------
|
|
||||||
terminator misc: Ctrl+Shift+C # Copy selected text to clipboard.
|
|
||||||
terminator misc: Ctrl+Shift+V # Paste clipboard text.
|
|
||||||
terminator misc: Ctrl+Shift+S # Hide/Show Scrollbar.
|
|
||||||
terminator misc: Ctrl+Shift+F # Search within terminal scrollback.
|
|
||||||
terminator misc: Ctrl+Shift+R # Reset terminal state.
|
|
||||||
terminator misc: Ctrl+Shift+G # Reset terminal state and clear window.
|
|
||||||
terminator misc: Ctrl+Plus (+) # Increase font size. Note: This may require you to press shift, depending on your keyboard.
|
|
||||||
terminator misc: Ctrl+Minus (-) # Decrease font size. Note: This may require you to press shift, depending on your keyboard.
|
|
||||||
terminator misc: Ctrl+Zero (0) # Restore font size to original setting.
|
|
||||||
terminator misc: Ctrl+Alt+W # Rename window title.
|
|
||||||
terminator misc: Ctrl+Alt+A # Rename tab title.
|
|
||||||
terminator misc: Ctrl+Alt+X # Rename terminal title.
|
|
||||||
terminator misc: Super+1 # Insert terminal number, i.e. 1 to 12.
|
|
||||||
terminator misc: Super+0 # Insert padded terminal number, i.e. 01 to 12
|
|
||||||
--------------------------------- TERMINATOR GROUPING & BROADCASTING ------------------------
|
|
||||||
terminator broad: F11 # Toggle window to fullscreen.
|
|
||||||
terminator broad: Ctrl +Shift + X # Toggle between showing all terminals and only showing the current one (maximise).
|
|
||||||
terminator broad: Ctrl+Shift+Z # Toggle between showing all terminals and only showing a scaled version of the current one (zoom).
|
|
||||||
terminator broad: Ctrl+Shift+Alt+A # Hide the initial window. Note that this is a global binding, and can only be bound once.
|
|
||||||
terminator broad: Super+T # Group all terminals in the current tab so input sent to one of them, goes to all terminals in the current tab.
|
|
||||||
terminator broad: Super+Shift+T # Remove grouping from all terminals in the current tab.
|
|
||||||
terminator broad: Super+G # Group all terminals so that any input sent to one of them, goes to all of them.
|
|
||||||
terminator broad: Super+Shift+G # Remove grouping from all terminals.
|
|
||||||
terminator broad: Alt+A # Broadcast to All terminals.
|
|
||||||
terminator broad: Alt+G # Broadcast to Grouped terminals.
|
|
||||||
terminator broad: Alt+O # Broadcast Off.
|
|
||||||
|
|
||||||
################################### FIREFOX SHORTCUTS #######################################
|
|
||||||
--------------------------------- FIREFOX CURRENT PAGE ------------------------
|
|
||||||
firefox current pag: F6 # move to the next frame
|
|
||||||
firefox current pag: Shift + F6 # move to the prev frame
|
|
||||||
--------------------------------- FIREFOX EDITING ------------------------
|
|
||||||
firefox edit: Ctrl + Backspace # Delete Word to the Left
|
|
||||||
firefox edit: Ctrl + Del # Delete Word to the Right
|
|
||||||
firefox edit: Ctrl + ← # Go one Word to the Left
|
|
||||||
firefox edit: Ctrl + → # Go one Word to the Right
|
|
||||||
firefox edit: Ctrl + Home # Go to Beginning of Text
|
|
||||||
firefox edit: Ctrl + End # Go to End of Text
|
|
||||||
--------------------------------- FIREFOX SEARCH ------------------------
|
|
||||||
firefox search: Ctrl + F # Find
|
|
||||||
firefox search: F3 Ctrl + G # Find Again
|
|
||||||
firefox search: Shift + F3 Ctrl + Shift + G # Find Previous
|
|
||||||
firefox search: ' # Quick Find within link-text only
|
|
||||||
firefox search: / # Quick Find
|
|
||||||
firefox search: Esc # Close the Find or Quick Find bar - when the Find or Quick Find bar is focused
|
|
||||||
firefox search: Alt + ↓↑ # Switch Search Engine - after you have written something in the address bar
|
|
||||||
firefox search: Ctrl + K Ctrl + J # Focus Address bar for Web Search (writes "? " there) - if search bar is not shown
|
|
||||||
firefox search: Ctrl + K Ctrl + J # Focus Search bar - if search bar is shown
|
|
||||||
firefox search: Ctrl + ↓ Ctrl + ↑ # Change the Default Search Engine - in the Search bar or the Search field of the New Tab page.
|
|
||||||
firefox search: Alt + ↓ Alt + ↑ F4 # View menu to switch, add or manage search engines - when the Search bar is focused
|
|
||||||
--------------------------------- FIREFOX TABS ------------------------
|
|
||||||
firefox tabs: Ctrl + W Ctrl + F4 # Close Tab - except for Pinned Tabs
|
|
||||||
firefox tabs: Ctrl + Shift + W Alt + F4 # Close Window
|
|
||||||
firefox tabs: Ctrl + Tab # Cycle through Tabs in Recently Used Order -if enabled in Preferences
|
|
||||||
firefox tabs: Ctrl + Q # Quit
|
|
||||||
firefox tabs: Ctrl+Page Up, Ctrl+Shift+Tab # Go one Tab to the Left
|
|
||||||
firefox tabs: Ctrl + Page Down Ctrl + Tab # Go one Tab to the Right * if the setting Ctrl+Tab cycles through tabs in recently used order is disabled in Preferences
|
|
||||||
firefox tabs: Alt + 1 # to 8 Go to Tab 1 to 8
|
|
||||||
firefox tabs: Alt + 9 # Go to Last Tab
|
|
||||||
firefox tabs: Ctrl + Shift + Page Up # Move Tab Left
|
|
||||||
firefox tabs: Ctrl + Shift + Page Down # Move Tab Right
|
|
||||||
firefox tabs: Ctrl + Shift + Home # Move Tab to start - requires the currently selected tab to be "in focus" for instance, by hitting Alt + D to focus the address bar, and then Shift + Tab until you reach the browser tab bar.
|
|
||||||
firefox tabs: Ctrl + Shift + End # Move Tab to end - requires the currently selected tab to be "in focus" for instance, by hitting Alt + D to focus the address bar, and then Shift + Tab until you reach the browser tab bar.
|
|
||||||
firefox tabs: Ctrl + M # Mute/Unmute Audio
|
|
||||||
firefox tabs: Ctrl + T # New Tab
|
|
||||||
firefox tabs: Ctrl + N # New Window
|
|
||||||
firefox tabs: Ctrl + Shift + P # New Private Window
|
|
||||||
firefox tabs: Alt + Shift + Enter # Open Address or Search in New Background Tab - from address bar
|
|
||||||
firefox tabs: Alt + Enter # Open Address or Search in New Foreground Tab - from address bar or Search bar
|
|
||||||
firefox tabs: Shift + Enter # Open Address or Search in New Window - from address bar or the Search field on the New Tab page
|
|
||||||
firefox tabs: Ctrl + Enter # Open Search in New Background Tab - from the Search field on the New Tab page. (see note, below)
|
|
||||||
firefox tabs: Ctrl + Shift + Enter # Open Search in New Foreground Tab - from the Search field on the New Tab page. Note: The Foreground and Background Tab shortcuts are switched if the setting When you open a link in a new tab, switch to it immediately is enabled in Preferences
|
|
||||||
firefox tabs: Enter # Open Focused Bookmark or Link in Current Tab
|
|
||||||
firefox tabs: Ctrl + Enter # Open Focused Bookmark in New Foreground Tab
|
|
||||||
firefox tabs: Ctrl + Shift + Enter # Open Focused Bookmark in New Background Tab
|
|
||||||
firefox tabs: Ctrl + Enter # Open Focused Link in New Background Tab (see note, below)
|
|
||||||
firefox tabs: Ctrl + Shift + Enter # Open Focused Link in New Foreground Tab Note: The Foreground and Background Tab shortcuts are switched if the setting When you open a link in a new tab, switch to it immediately is enabled in Preferences
|
|
||||||
firefox tabs: Shift + Enter # Open Focused Bookmark or Link in New Window
|
|
||||||
firefox tabs: Ctrl + Shift + T # Undo Close Tab
|
|
||||||
firefox tabs: Ctrl + Shift + N # Undo Close Window
|
|
||||||
firefox tabs: Ctrl + Shift + X # Moves the URL left or right (if cursor is in the address bar)
|
|
||||||
--------------------------------- FIREFOX HISTORY ------------------------
|
|
||||||
firefox history: Ctrl + H # History sidebar
|
|
||||||
firefox history: Ctrl + Shift + H # Library window (History)
|
|
||||||
firefox history: Ctrl + Shift + Del # Clear Recent History
|
|
||||||
--------------------------------- FIREFOX BOOKMARKS ------------------------
|
|
||||||
firefox marks: Ctrl + D # Bookmark This Page
|
|
||||||
firefox marks: Ctrl + B # Bookmarks sidebar
|
|
||||||
firefox marks: Ctrl + Shift + O # Library window (Bookmarks)
|
|
||||||
--------------------------------- FIREFOX TOOLS ------------------------
|
|
||||||
firefox tools: Ctrl + Shift + Y # Downloads
|
|
||||||
firefox tools: Ctrl + Shift + A # Add-ons
|
|
||||||
firefox tools: F12, Ctrl + Shift + I # Toggle Developer Tools
|
|
||||||
firefox tools: Ctrl + Shift + K # Web Console
|
|
||||||
firefox tools: Ctrl + Shift + C # Inspector
|
|
||||||
firefox tools: Ctrl + Shift + S # Debugger
|
|
||||||
firefox tools: Shift + F7 # Style Editor
|
|
||||||
firefox tools: Shift + F5 # Profiler
|
|
||||||
firefox tools: Ctrl + Shift + E # Network
|
|
||||||
firefox tools: Shift + F2 # Developer Toolbar
|
|
||||||
firefox tools: Ctrl + Shift + M # Responsive Design View
|
|
||||||
firefox tools: Shift + F4 # Scratchpad
|
|
||||||
firefox tools: Ctrl + U # Page Source
|
|
||||||
firefox tools: Ctrl + Shift + J # Browser Console
|
|
||||||
firefox tools: Ctrl + I # Page Info
|
|
||||||
--------------------------------- FIREFOX PDF VIEWER ------------------------
|
|
||||||
firefox pdf: N or J or → # Next page
|
|
||||||
firefox pdf: P or K or ← # Previous page
|
|
||||||
firefox pdf: Ctrl + # Zoom in
|
|
||||||
firefox pdf: Ctrl - # Zoom out
|
|
||||||
firefox pdf: Ctrl + 0 # Automatic Zoom
|
|
||||||
firefox pdf: R # Rotate the document clockwise
|
|
||||||
firefox pdf: Shift + R # Rotate counterclockwise
|
|
||||||
firefox pdf: Ctrl + Alt + P # Switch to Presentation Mode
|
|
||||||
firefox pdf: S # Choose Text Selection Tool
|
|
||||||
firefox pdf: H # Choose Hand Tool
|
|
||||||
firefox pdf: Ctrl + Alt + G # Focus the Page Number input box
|
|
||||||
--------------------------------- FIREFOX MISCELANEOUS ------------------------
|
|
||||||
firefox misc: Ctrl + Enter # Complete .com Address
|
|
||||||
firefox misc: Shift + Del # Delete Selected Autocomplete Entry
|
|
||||||
firefox misc: F11 # Toggle Full Screen
|
|
||||||
firefox misc: Alt or F10 # Toggle Menu Bar activation (showing it temporarily when hidden)
|
|
||||||
firefox misc: Ctrl + Alt + R # Toggle Reader Mode
|
|
||||||
firefox misc: F7 # Caret Browsing
|
|
||||||
firefox misc: F6, Alt + D, Ctrl + L # Focus Address Bar
|
|
||||||
firefox misc: F6, Ctrl + F # Focus Search Field in Library
|
|
||||||
firefox misc: Esc # Stop Autoscroll Mode
|
|
||||||
firefox misc: Shift + F10 # Toggle Context Menu
|
|
||||||
--------------------------------- FIREFOX SIMPLE TABS GROUPS ------------------------
|
|
||||||
firefox misc: Ctrl + space # Show groups
|
|
||||||
firefox misc: ctrl+1-9 # Change to a group
|
|
||||||
|
|
||||||
################################### VIMIUMC SHORTCUTS #######################################
|
|
||||||
---------------------------------- VIMIUMC NAVIGATION --------------------------------------
|
|
||||||
vimiumc nav: ? # This help
|
|
||||||
vimiumc nav: <c-e>, j # Scroll down
|
|
||||||
vimiumc nav: <c-y>, k # Scroll up
|
|
||||||
vimiumc nav: h # Scroll left
|
|
||||||
vimiumc nav: l # Scroll right
|
|
||||||
vimiumc nav: gg # Scroll to the top of the page
|
|
||||||
vimiumc nav: G # Scroll to the bottom of the page
|
|
||||||
vimiumc nav: zH # Scroll all the way to the left
|
|
||||||
vimiumc nav: zL # Scroll all the way to the right
|
|
||||||
vimiumc nav: d # Scroll a page down
|
|
||||||
vimiumc nav: u # Scroll a page up
|
|
||||||
vimiumc nav: r # Reload current frame (use hard)
|
|
||||||
vimiumc nav: <a-r> # Reload N tab(s) (use hard, bypassCache)
|
|
||||||
vimiumc nav: R # Reload N-th tab (use hard)
|
|
||||||
vimiumc nav: gs # View page source
|
|
||||||
vimiumc nav: yy # Copy page's info (use type=url/title/frame, decoded)
|
|
||||||
vimiumc nav: <f2>, <s-f1> # Blur activeElement or refocus it (use flash, select=""/all/all-line/start/end)
|
|
||||||
vimiumc nav: <f1> # Simulate backspace once if focused
|
|
||||||
vimiumc nav: yf # Copy a link URL to the clipboard
|
|
||||||
vimiumc nav: p # Open the clipboard's URL in the current tab
|
|
||||||
vimiumc nav: P # Open the clipboard's URL in N new tab(s)
|
|
||||||
vimiumc nav: gu # Go up the URL hierarchy (use trailingSlash=null/true/false)
|
|
||||||
vimiumc nav: gU # Go to root of current URL hierarchy
|
|
||||||
vimiumc nav: gi # Focus the N-th visible text box on the page and cycle using tab (use keep, select=""/all/all-line/start/end)
|
|
||||||
vimiumc nav: f # Open a link in the current tab (use button=""/right, touch=false/true/"auto")
|
|
||||||
vimiumc nav: F # Open a link in a new tab
|
|
||||||
vimiumc nav: <a-f> # Open multiple links in a new tab
|
|
||||||
vimiumc nav: [[ # Follow the link labeled previous or "<"
|
|
||||||
vimiumc nav: ]] # Follow the link labeled next or ">"
|
|
||||||
vimiumc nav: gf # Cycle forward to the next frame on the page
|
|
||||||
vimiumc nav: gF # Select the tab's main/top frame
|
|
||||||
vimiumc nav: i # Enter insert mode (use key:string)
|
|
||||||
vimiumc nav: <f8>, v # Enter visual mode
|
|
||||||
vimiumc nav: V # Enter visual line mode
|
|
||||||
vimiumc nav: m # Create a new mark (use swap)
|
|
||||||
vimiumc nav: ` # Go to a mark (use prefix=true, swap, mapKey)
|
|
||||||
----------------------------------- VIMIUMC VOMNIBAR ----------------------------------------
|
|
||||||
vimiumc vomni: O # Open URL, history, ... in a new tab (use keyword, url)
|
|
||||||
vimiumc vomni: b # Open a bookmark
|
|
||||||
vimiumc vomni:B # Open a bookmark in a new tab
|
|
||||||
vimiumc vomni:T # Search through your open t a b s?
|
|
||||||
vimiumc vomni:ge # Edit the current URL
|
|
||||||
vimiumc vomni:gE # Edit the current URL and open in a new tab
|
|
||||||
vimiumc vomni:gn # Toggle styles of vomnibar page (use style=dark, current)
|
|
||||||
------------------------------------- VIMIUMC FIND ------------------------------------------
|
|
||||||
vimiumc find: / # Enter find mode (use last, selected=true)
|
|
||||||
vimiumc find: n # Cycle forward to the next find match
|
|
||||||
vimiumc find: N # Cycle backward to the previous find match
|
|
||||||
vimiumc find: <a-n> # Find the second or even earlier query words
|
|
||||||
-------------------------------- VIMIUMC NAVIGATING HISTORY ---------------------------------
|
|
||||||
vimiumc history: H # Go back in history (use reuse=-2/-1)
|
|
||||||
vimiumc history: L # Go forward in history (use reuse=-2/-1)
|
|
||||||
vimiumc history: <a-R> # Reopen current page
|
|
||||||
------------------------------------- VIMIUMC TABS -------------------------------------
|
|
||||||
vimiumc tabs: gt, K, <a-v>, <a-s-c> # Go one tab right
|
|
||||||
vimiumc tabs: gT, J, <a-c> # Go one tab left
|
|
||||||
vimiumc tabs: g0 # Go to the first N-th tab
|
|
||||||
vimiumc tabs: g$ # Go to the last N-th tab
|
|
||||||
vimiumc tabs: t, <a-t> # Create new tab(s)
|
|
||||||
vimiumc tabs: yt # Duplicate current tab for N times
|
|
||||||
vimiumc tabs: x # Close N tab(s) (use mayClose, goto=""/left/right/previous)
|
|
||||||
vimiumc tabs: X # Restore closed tab(s)
|
|
||||||
vimiumc tabs: W # Move tab to next window (use right)
|
|
||||||
vimiumc tabs: <a-p> # Pin or unpin N tab(s)
|
|
||||||
vimiumc tabs: <a-m> # Mute or unmute current tab (use all, other)
|
|
||||||
vimiumc tabs: ^ # Go to previously-visited tab on current window
|
|
||||||
vimiumc tabs: << # Move tab to the left
|
|
||||||
vimiumc tabs: >> # Move tab to the right
|
|
||||||
|
|
||||||
#################################### FRANZ SHORTCUTS ########################################
|
|
||||||
franz: ctrl-1-9 # Select service
|
|
||||||
franz: Tab # Move inside of the service
|
|
||||||
|
|
||||||
################################### HEXCHAT SHORTCUTS #######################################
|
|
||||||
hexchat: ctrl+Page # Next or prev channel of the list
|
|
||||||
hexchat: alt-1-9 # Go to channel
|
|
||||||
hexchat: Shift-Ctrl-page # Change the order of the servers in the list
|
|
||||||
hexchat: alt+left or right # Change tab, if they are enabled
|
|
||||||
hexchat: Shift-page # Next or prev nickname on the list
|
|
||||||
hexchat: Tab # Complete the command
|
|
||||||
hexchat: Ctrl+S # Open server memu
|
|
||||||
|
|
||||||
################################### DISCORD SHORTCUTS #######################################
|
|
||||||
discord: Ctrl + ALT + / # Navigate Between Servers
|
|
||||||
discord: ALT + / # Navigate Between Channels
|
|
||||||
discord: ALT + Shift + / # Navigate Between Unread Channels
|
|
||||||
discord: Ctrl + Shift + ALT + / # Navigate Between Unread Channels with Mentions
|
|
||||||
discord: Escape # Mark Channel as Read
|
|
||||||
discord: Shift + Escape # Mark Server Read
|
|
||||||
discord: Ctrl + Slash # Toggle Hotkeys
|
|
||||||
discord: Ctrl + B # Return to Previous Text Channel
|
|
||||||
discord: Ctrl + ALT + A # Return to Active Audio Channel
|
|
||||||
discord: Ctrl + P # Toggle Pins Popout
|
|
||||||
discord: Ctrl + I # Toggle Mentions Popout
|
|
||||||
discord: Ctrl + U # Toggle Channel Member List
|
|
||||||
discord: Ctrl + E # Toggle Emoji Picker
|
|
||||||
discord: Shift + Page Up # Jump to Oldest Unread Message
|
|
||||||
discord: Ctrl + Shift + N # Create or Join a Server
|
|
||||||
discord: Ctrl + Enter # Answer Incoming Call
|
|
||||||
discord: Ctrl + K # Find or Start a Direct Message
|
|
||||||
discord: Escape # Decline Incoming Call
|
|
||||||
discord: Ctrl + Shift + T # Create A Private Group
|
|
||||||
discord: Ctrl + [ # Start Call in Private Message or Group
|
|
||||||
discord: Tab # Focus Text Area
|
|
||||||
discord: ALT + ← # Return to Connected Audio Channel
|
|
||||||
discord: ALT + → # Return to Previous Text Channel
|
|
||||||
discord: Ctrl + Shift + M # Toggle Mute
|
|
||||||
discord: Ctrl + Shift + D # Toggle Deafen
|
|
||||||
discord: Ctrl + Shift + H # Get Help
|
|
||||||
discord: Ctrl + Shift + U # Upload a File
|
|
||||||
|
|
||||||
#################################### ROFI SHORTCUTS #########################################
|
|
||||||
rofi: Ctrl-v # Insert: Paste from clipboard
|
|
||||||
rofi: Ctrl-Shift-v, Shift-Insert: # Paste primary selection
|
|
||||||
rofi: Ctrl-u # Clear the line
|
|
||||||
rofi: Ctrl- # Beginning of line
|
|
||||||
rofi: Ctrl-e # End of line
|
|
||||||
rofi: Ctrl-f Right # Forward one character
|
|
||||||
rofi: Alt-f, Ctrl-Right # Forward one word
|
|
||||||
rofi: Ctrl-b, Left # Back one character
|
|
||||||
rofi: Alt-b, Ctrl-Left # Back one word
|
|
||||||
rofi: Ctrl-d, Delete # Delete character
|
|
||||||
rofi: Ctrl-Alt-d # Delete word
|
|
||||||
rofi: Ctrl-h, Backspace, Shift-Backspace # Backspace (delete previous character)
|
|
||||||
rofi: Ctrl-Alt-h # Delete previous word
|
|
||||||
rofi: Ctrl-j,Ctrl-m,Enter # Accept entry
|
|
||||||
rofi: Ctrl-n,Down # Select next entry
|
|
||||||
rofi: Ctrl-p,Up # Select previous entry
|
|
||||||
rofi: Page Up # Go to previous page
|
|
||||||
rofi: Page Down # Go to next page
|
|
||||||
rofi: Ctrl-Page Up # Go to previous column
|
|
||||||
rofi: Ctrl-Page Down # Go to next column
|
|
||||||
rofi: Ctrl-Enter # Use entered text as a command (in ssh/run modi)
|
|
||||||
rofi: Shift-Enter # Launch the application in a terminal (in run mode)
|
|
||||||
rofi: Shift-Enter # Return the selected entry and move to the next item while keeping rofi open. (in dmenu)
|
|
||||||
rofi: Shift-Right # Switch to the next mode. The list can be customized with the -switchers argument.
|
|
||||||
rofi: Shift-Left # Switch to the previous mode. The list can be customized with the -switchers argument.
|
|
||||||
rofi: Ctrl-Tab # Switch to the next mode. The list can be customized with the -switchers argument.
|
|
||||||
rofi: Ctrl-Shift-Tab # Switch to the previous mode. The list can be customized with the -switchers argument.
|
|
||||||
rofi: Ctrl-space # Set selected item as input text.
|
|
||||||
rofi: Shift-Del # Delete entry from history.
|
|
||||||
rofi: grave # Toggle case sensitivity.
|
|
||||||
rofi: Alt-grave # Toggle sorting.
|
|
||||||
rofi: Alt-Shift-S # Take a screenshot and store it in the Pictures directory.
|
|
||||||
|
|
||||||
################################# THUNDERBIRD SHORTCUTS #####################################
|
|
||||||
------------------------------------- THUNDERBIRD BASE -------------------------------------
|
|
||||||
thunderbird base: F10, ctrl+f # Open menu
|
|
||||||
thunderbird base: ctrl+w # Close tab
|
|
||||||
thunderbird base: ctrl+pag # Next/prev tab
|
|
||||||
thunderbird base: ctrl+pag # Next/prev tab
|
|
||||||
thunderbird base: F11 # Open sidebar
|
|
||||||
------------------------------------- THUNDERBIRD EMAIL -------------------------------------
|
|
||||||
thunderbird email: ctrl+n # New email
|
|
||||||
thunderbird email: ctrl+r # Reply email
|
|
||||||
---------------------------------- THUNDERBIRD CALENDAR -------------------------------------
|
|
||||||
thunderbird cal: ctrl+shift+c # Open calendar
|
|
||||||
thunderbird cal: ctrl+i # New event
|
|
||||||
thunderbird cal: ctrl+a # Select all events
|
|
||||||
thunderbird cal: ctrl+1-4 # Select day-week-multi-month
|
|
||||||
---------------------------------- THUNDERBIRD TASKS -------------------------------------
|
|
||||||
thunderbird task: ctrl+shift+c # Open Tasks
|
|
||||||
thunderbird task: ctrl+d # Create new task
|
|
||||||
---------------------------------- THUNDERBIRD PLUGINS -------------------------------------
|
|
||||||
thunderbird plug: alt+shift+ta # Open Plugins settings
|
|
||||||
thunderbird plug: alt+shift+tt # Open thunderstats
|
|
||||||
|
|
||||||
############################## LIBREOFFICE WRITER SHORTCUTS #################################
|
|
||||||
------------------------------- LIBREOFFICE FUNCTION KEYS -----------------------------------
|
|
||||||
libre writer func: F2 # Formula Bar
|
|
||||||
libre writer func: Ctrl+F2 # Insert Fields
|
|
||||||
libre writer func: F3 # Complete AutoText
|
|
||||||
libre writer func: Ctrl+F3 # Edit AutoText
|
|
||||||
libre writer func: F4 # Open Data Source View
|
|
||||||
libre writer func: Shift+F4 # Select next frame
|
|
||||||
libre writer func: F5 # Navigator on/off
|
|
||||||
libre writer func: Ctrl+Shift+F5 # Navigator on, go to page number
|
|
||||||
libre writer func: F7 # Spellcheck
|
|
||||||
libre writer func: Ctrl+F7 # Thesaurus
|
|
||||||
libre writer func: F8 # Extension mode
|
|
||||||
libre writer func: Ctrl+F8 # Field shadings on / off
|
|
||||||
libre writer func: Shift+F8 # Additional selection mode
|
|
||||||
libre writer func: Ctrl+Shift+F8 # Block selection mode
|
|
||||||
libre writer func: F9 # Update fields
|
|
||||||
libre writer func: Ctrl+F9 # Show fields
|
|
||||||
libre writer func: Shift+F9 # C a l c ulate Table
|
|
||||||
libre writer func :Ctrl+Shift+F9 # Update Input Fields and Input Lists
|
|
||||||
libre writer func :Ctrl+F10 # Nonprinting Characters on/off
|
|
||||||
libre writer func: F11 # Styles and Formatting window on/off
|
|
||||||
libre writer func: Shift+F11 # Create Style
|
|
||||||
libre writer func: Ctrl+F11 # Sets focus to Apply Style box
|
|
||||||
libre writer func: Ctrl+Shift+F11 # Update Style
|
|
||||||
libre writer func: F12 # Numbering on
|
|
||||||
libre writer func: Ctrl+F12 # Insert or edit Table
|
|
||||||
libre writer func: Shift+F12 # Bullets on
|
|
||||||
libre writer func: Ctrl+Shift+F12 # Numbering / Bullets off
|
|
||||||
------------------------------- LIBREOFFICE WRITER BASE -----------------------------------
|
|
||||||
libre writer base: Ctrl+A # Select All
|
|
||||||
libre writer base: Ctrl+J # Justify
|
|
||||||
libre writer base: Ctrl+D # Double Underline
|
|
||||||
libre writer base: Ctrl+E # Centered
|
|
||||||
libre writer base: Ctrl+H # Find and Replace
|
|
||||||
libre writer base: Ctrl+Shift+P # Superscript
|
|
||||||
libre writer base: Ctrl+L # Align Left
|
|
||||||
libre writer base: Ctrl+R # Align Right
|
|
||||||
libre writer base: Ctrl+Shift+B # Subscript
|
|
||||||
libre writer base: Ctrl+Y # Redo last action
|
|
||||||
libre writer base: Ctrl+0 (zero) # Apply Text Body paragraph style
|
|
||||||
libre writer base: Ctrl+1 # Apply Heading 1 paragraph style
|
|
||||||
libre writer base: Ctrl+2 # Apply Heading 2 paragraph style
|
|
||||||
libre writer base: Ctrl+3 # Apply Heading 3 paragraph style
|
|
||||||
libre writer base: Ctrl+4 # Apply Heading 4 paragraph style
|
|
||||||
libre writer base: Ctrl+5 # Apply Heading 5 paragraph style
|
|
||||||
libre writer base: Ctrl + Plus Key(+) # C a l c ulates the s e l ected text and copies the result to the clipboard.
|
|
||||||
libre writer base: Ctrl+Hyphen(-) # Soft hyphens; hyphenation set by you.
|
|
||||||
libre writer base: Ctrl+Shift+minus sign (-) # Non-breaking hyphen (is not used for hyphenation)
|
|
||||||
libre writer base: Ctrl+multiplication sign * (only on number pad) # Run macro field
|
|
||||||
libre writer base: Ctrl+Shift+Space # Non-breaking spaces. Non-breaking spaces are not used for hyphenation and are not expanded if the text is justified.
|
|
||||||
libre writer base: Shift+Enter # Line break without paragraph change
|
|
||||||
libre writer base: Ctrl+Enter # Manual page break
|
|
||||||
libre writer base: Ctrl+Shift+Enter # Column break in multicolumnar texts
|
|
||||||
libre writer base: Alt+Enter # Inserting a new paragraph without numbering inside a list. Does not work when the cursor is at the end of the list.
|
|
||||||
libre writer base: Alt+Enter # Inserting a new paragraph directly before or after a section, or before a table.
|
|
||||||
libre writer base: Arrow Left # Move cursor to left
|
|
||||||
libre writer base: Shift+Arrow Left # Move cursor with selection to the left
|
|
||||||
libre writer base: Ctrl+Arrow Left # Go to beginning of word
|
|
||||||
libre writer base: Ctrl+Shift+Arrow # Selecting word by word
|
|
||||||
libre writer base: Arrow Right # Move cursor to right
|
|
||||||
libre writer base: Shift+Arrow # Move cursor with selection to the right
|
|
||||||
libre writer base: Ctrl+Arrow # Go to start of next word
|
|
||||||
libre writer base: Ctrl+Shift+Arrow # Selecting to the right word by word
|
|
||||||
libre writer base: Arrow Up # Move cursor up one line
|
|
||||||
libre writer base: Shift+Arrow Up # Selecting lines in an upwards direction
|
|
||||||
libre writer base: Ctrl+Arrow Up # Move cursor to beginning of the previous paragraph
|
|
||||||
libre writer base: Ctrl+Shift+Arrow # Select to beginning of paragraph. Next keystroke extends selection to beginning of previous paragraph
|
|
||||||
libre writer base: Arrow Down # Move cursor down one line
|
|
||||||
libre writer base: Shift+Arrow Down # Selecting lines in a downward direction
|
|
||||||
libre writer base: Ctrl+Arrow Down # Move cursor to beginning of next paragraph.
|
|
||||||
libre writer base: Ctrl+Shift+Arrow # Select to end of paragraph. Next keystroke extends selection to end of next paragraph
|
|
||||||
libre writer base: Home # Go to beginning of line
|
|
||||||
libre writer base: Home+Shift # Go and select to the beginning of a line
|
|
||||||
libre writer base: End # Go to end of line
|
|
||||||
libre writer base: End+Shift # Go and select to end of line
|
|
||||||
libre writer base: Ctrl+Home # Go to start of document
|
|
||||||
libre writer base: Ctrl+Home+Shift # Go and select text to start of document
|
|
||||||
libre writer base: Ctrl+End # Go to end of document
|
|
||||||
libre writer base: Ctrl+End+Shift # Go and select text to end of document
|
|
||||||
libre writer base: Ctrl+PageUp # Switch cursor between text and header
|
|
||||||
libre writer base: Ctrl+PageDown # Switch cursor between text and footer
|
|
||||||
libre writer base: Insert # Insert mode on/off
|
|
||||||
libre writer base: PageUp # Screen page up
|
|
||||||
libre writer base: Shift+PageUp # Move up screen page with selection
|
|
||||||
libre writer base: PageDown # Move down screen page
|
|
||||||
libre writer base: Shift+PageDown # Move down screen page with selection
|
|
||||||
libre writer base: Ctrl+Del # Delete text to end of word
|
|
||||||
libre writer base: Ctrl+Backspace # Delete text to beginning of word. In a list: delete an empty paragraph in front of the current paragraph
|
|
||||||
libre writer base: Ctrl+Del+Shift # Delete text to end of sentence
|
|
||||||
libre writer base: Ctrl+Shift+Back.s # Delete text to beginning of sentence
|
|
||||||
libre writer base: Ctrl+Tab # Next suggestion with Automatic Word Completion
|
|
||||||
libre writer base: Ctrl+Shift+Tab # Use previous suggestion with Automatic Word Completion
|
|
||||||
libre writer base: Ctrl+Alt+Shift+V # Paste the contents of the clipboard as unformatted text.
|
|
||||||
libre writer base: Ctrl + double-click or Ctrl + Shift + F10 # Use this combination to quickly dock or undock the Navigator, Styles and Formatting window, or other windows
|
|
||||||
-------------------- LIBREOFFICE WRITER PARAGRAPH AND HEADING LEVELS ------------------------
|
|
||||||
libre writer parag: Ctrl+Alt+UpArrow # Move the active paragraph or selected paragraphs up one paragraph.
|
|
||||||
libre writer parag: Ctrl+Alt+Down Arrow # Move the active paragraph or selected paragraphs down one paragraph.
|
|
||||||
libre writer parag: Tab # The heading in format "Heading X" (X = 1-9) is moved down one level in the outline.
|
|
||||||
libre writer parag: Shift+Tab # The heading in format "Heading X" (X = 2-10) is moved up one level in the outline.
|
|
||||||
libre writer parag: CTRL+Tab # Inserts tab in front of the heading.
|
|
||||||
------------------------------- LIBREOFFICE WRITER TABLES -----------------------------------
|
|
||||||
libre writer tables: Ctrl+A # If the active cell is empty: selects the whole table. Otherwise: selects the contents of the active cell. Pressing again selects the entire table.
|
|
||||||
libre writer tables: Ctrl+Home # If the active cell is empty: goes to the beginning of the table. Otherwise: first press goes to beginning of the active cell, second press goes to beginning of the current table, third press goes to beginning of document.
|
|
||||||
libre writer tables: Ctrl+End # If the active cell is empty: goes to the end of the table. Otherwise: first press goes to the end of the active cell, second press goes to the end of the current table, third press goes to the end of the document.
|
|
||||||
libre writer tables: Ctrl+Tab # Inserts a tab stop (only in tables). Depending on the Window Manager in use, Alt+Tab may be used instead.
|
|
||||||
libre writer tables: Alt+Arrow Keys # Increases/decreases the size of the column/row on the right/bottom cell edge
|
|
||||||
libre writer tables: Alt+Shift+Arrow Keys # Increase/decrease the size of the column/row on the left/top cell edge
|
|
||||||
libre writer tables: Alt+Ctrl+Arrow Keys # Like Alt, but only the active cell is modified
|
|
||||||
libre writer tables: Ctrl+Alt+Shift+Arrow Keys # Like Alt, but only the active cell is modified
|
|
||||||
libre writer tables: Alt+Insert # 3 seconds in Insert mode, Arrow Key inserts row/column, Ctrl+Arrow Key inserts cell
|
|
||||||
libre writer tables: Alt+Del # 3 seconds in Delete mode, Arrow key deletes row/column, Ctrl+Arrow key merges cell with neighboring cell
|
|
||||||
libre writer tables: Shift+Ctrl+Del # If no whole cell is selected, the text from the cursor to the end of the current sentence is deleted. If the cursor is at the end of a cell, and no whole cell is selected, the contents of the next cell are deleted. If no whole cell is selected and the cursor is at the end of the table, the paragraph following the table will be deleted, unless it is the last paragraph in the document. If one or more cells are selected, the whole rows containing the selection will be deleted. If all rows are selected completely or partially, the entire table will be deleted.
|
|
||||||
-------------------------- LIBREOFFICE WRITER MOVING OBJECTS -------------------------------
|
|
||||||
libre writer move obj: Esc # Cursor is inside a text frame and no text is selected: Escape selects the text frame. Text frame is selected: Escape clears the cursor from the text frame.
|
|
||||||
F2 or Enter or any key # If a text frame is selected: positions the cursor to the end of the text in the text frame. If you press any key that produces a character on screen, and the document is in edit mode, the character is appended to the text.
|
|
||||||
libre writer move obj: Alt+Arrow Keys # Move object.
|
|
||||||
libre writer move obj: Alt+Ctrl+Arrow Keys # Resizes by moving lower right corner.
|
|
||||||
libre writer move obj: Alt+Ctrl+Shift+Arrow # Keys Resizes by moving top left corner.
|
|
||||||
libre writer move obj: Ctrl+Tab # Selects the anchor of an object (in Edit Points mode).
|
|
||||||
|
|
||||||
############################### LIBREOFFICE CALC SHORTCUTS ##################################
|
|
||||||
------------------------------ LIBREOFFICE CALC NAVIGATION ----------------------------------
|
|
||||||
libre calc nav: Ctrl+Home # Moves the cursor to the first cell in the sheet (A1).
|
|
||||||
libre calc nav: Ctrl+End # Moves the cursor to the last cell on the sheet that contains data.
|
|
||||||
libre calc nav: Home # Moves the cursor to the first cell of the current row.
|
|
||||||
libre calc nav: End # Moves the cursor to the last cell of the current row.
|
|
||||||
libre calc nav: Shift+Home # Selects cells from the current cell to the first cell of the current row.
|
|
||||||
libre calc nav: Shift+End # Selects cells from the current cell to the last cell of the current row.
|
|
||||||
libre calc nav: Shift+Page Up # Selects cells from the current cell up to one page in the current column or extends the existing selection one page up.
|
|
||||||
libre calc nav: Shift+Page Down # Selects cells from the current cell down to one page in the current column or extends the existing selection one page down.
|
|
||||||
libre calc nav: Ctrl+Left Arrow # Moves the cursor to the left edge of the current data range. If the column to the left of the cell that contains the cursor is empty, the cursor moves to the next column to the left that contains data.
|
|
||||||
libre calc nav: Ctrl+Right Arrow # Moves the cursor to the right edge of the current data range. If the column to the right of the cell that contains the cursor is empty, the cursor moves to the next column to the right that contains data.
|
|
||||||
libre calc nav: Ctrl+Up Arrow # Moves the cursor to the top edge of the current data range. If the row above the cell that contains the cursor is empty, the cursor moves up to the next row that contains data.
|
|
||||||
libre calc nav: Ctrl+Down Arrow # Moves the cursor to the bottom edge of the current data range. If the row below the cell that contains the cursor is empty, the cursor moves down to the next row that contains data.
|
|
||||||
libre calc nav: Ctrl+Shift+Arrow # Selects all cells containing data from the current cell to the end of the continuous range of data cells, in the direction of the arrow pressed. If used to select rows and columns together, a rectangular cell range is selected.
|
|
||||||
libre calc nav: Ctrl+Page Up # Moves one sheet to the left.
|
|
||||||
libre calc nav: Ctrl+Page Down # Moves one sheet to the right.
|
|
||||||
libre calc nav: Alt+Page Up # Moves one screen to the left.
|
|
||||||
libre calc nav: Alt+Page Down # Moves one screen page to the right.
|
|
||||||
libre calc nav: Shift+Ctrl+Page Up # Adds the previous sheet to the current selection of sheets. If all the sheets in a spreadsheet are selected, this shortcut key combination only selects the previous sheet. Makes the previous sheet the current sheet.
|
|
||||||
libre calc nav: Shift+Ctrl+Page Down # Adds the next sheet to the current selection of sheets. If all the sheets in a spreadsheet are selected, this shortcut key combination only selects the next sheet. Makes the next sheet the current sheet.
|
|
||||||
libre calc nav: Ctrl+ * # Selects the data range that contains the cursor. A range is a contiguous cell range that contains data and is bounded by empty row and columns.
|
|
||||||
libre calc nav: Ctrl+ / # Selects the matrix formula range that contains the cursor.
|
|
||||||
libre calc nav: Ctrl+Plus key # Insert cells (as in menu Insert - Cells)
|
|
||||||
libre calc nav: Ctrl+Minus key # Delete cells (as in menu Edit - Delete Cells)
|
|
||||||
libre calc nav: Enter (in a selected range) # Moves the cursor down one cell in a selected range. To specify the direction that the cursor moves, choose Tools - Options - LibreOffice Calc - General.
|
|
||||||
libre calc nav: Ctrl+ ` # Displays or hides the formulas instead of the values in all cells.
|
|
||||||
---------------------------- LIBREOFFICE CALC FUNCTION KEYS ---------------------------------
|
|
||||||
libre calc func: Ctrl+F1 # Displays the comment that is attached to the current cell
|
|
||||||
libre calc func: F2 # Switches to Edit mode and places the cursor at the end of the contents of the current cell. Press again to exit Edit mode. If the cursor is in an input box in a dialog that has a Minimize button, the dialog is hidden and the input box remains visible. Press F2 again to show the whole dialog.
|
|
||||||
libre calc func: Ctrl+F2 # Opens the Function Wizard.
|
|
||||||
libre calc func: Shift+Ctrl+F2 # Moves the cursor to the Input line where you can enter a formula for the current cell.
|
|
||||||
libre calc func: Ctrl+F3 # Opens the Define Names dialog.
|
|
||||||
libre calc func: F4 # Shows or Hides the Database explorer.
|
|
||||||
libre calc func: Shift+F4 # Rearranges the relative or absolute references (for example, A1, $A$1, $A1, A$1) in the input field.
|
|
||||||
libre calc func: F5 # Shows or hides the Navigator.
|
|
||||||
libre calc func: Shift+F5 # Traces dependents.
|
|
||||||
libre calc func: Shift+F7 # Traces precedents.
|
|
||||||
libre calc func: Shift+Ctrl+F5 # Moves the cursor from the Input line to the Sheet area box.
|
|
||||||
libre calc func: F7 # Checks spelling in the current sheet.
|
|
||||||
libre calc func: Ctrl+F7 # Opens the Thesaurus if the current cell contains text.
|
|
||||||
libre calc func: F8 # Turns additional selection mode on or off. In this mode, you can use the arrow keys to extend the selection. You can also click in another cell to extend the selection.
|
|
||||||
libre calc func: Ctrl+F8 # Highlights cells containing values.
|
|
||||||
libre calc func: F9 # Recalculates changed formulas in the current sheet.
|
|
||||||
libre calc func: Ctrl+Shift+F9 # Recalculates all formulas in all sheets.
|
|
||||||
libre calc func: Ctrl+F9 # Updates the selected chart.
|
|
||||||
libre calc func: F11 # Opens the Styles and Formatting window where you can apply a formatting style to the contents of the cell or to the current sheet.
|
|
||||||
libre calc func: Shift+F11 # Creates a document template.
|
|
||||||
libre calc func: Shift+Ctrl+F11 # Updates the templates.
|
|
||||||
libre calc func: F12 # Groups the selected data range.
|
|
||||||
libre calc func: Ctrl+F12 # Ungroups the selected data range.
|
|
||||||
libre calc func: Alt+Down Arrow # Increases the height of current row (only in OpenOffice.org legacy compatibility mode).
|
|
||||||
libre calc func: Alt+Up Arrow # Decreases the height of current row (only in OpenOffice.org legacy compatibility mode).
|
|
||||||
libre calc func: Alt+Right Arrow # Increases the width of the current column.
|
|
||||||
libre calc func: Alt+Left Arrow # Decreases the width of the current column.
|
|
||||||
libre calc func: Alt+Shift+Arrow # Optimizes the column width or row height based on the current cell.
|
|
||||||
----------------------------- LIBREOFFICE CALC FORMAT CELLS --------------------------------
|
|
||||||
libre calc cell format: Ctrl+1 # Open Format Cells dialog
|
|
||||||
libre calc cell format: Ctrl+Shift+1 # Two decimal places, thousands separator
|
|
||||||
libre calc cell format: Ctrl+Shift+2 # Standard exponential format
|
|
||||||
libre calc cell format: Ctrl+Shift+3 # Standard date format
|
|
||||||
libre calc cell format: Ctrl+Shift+4 # Standard currency format
|
|
||||||
libre calc cell format: Ctrl+Shift+5 # Standard percentage format (two decimal places)
|
|
||||||
libre calc cell format: Ctrl+Shift+6 # Standard format
|
|
||||||
----------------------------- LIBREOFFICE CALC PIVOT TABLE ---------------------------------
|
|
||||||
libre calc cell pivot: Tab # Changes the focus by moving forwards through the areas and buttons of the dialog.
|
|
||||||
libre calc cell pivot: Shift+Tab # Changes the focus by moving backwards through the areas and buttons of the dialog.
|
|
||||||
libre calc cell pivot: Up Arrow # Moves the focus up one item in the current dialog area.
|
|
||||||
libre calc cell pivot: Down Arrow # Moves the focus down one item in the current dialog area.
|
|
||||||
libre calc cell pivot: Left Arrow # Moves the focus one item to the left in the current dialog area.
|
|
||||||
libre calc cell pivot: Right Arrow # Moves the focus one item to the right in the current dialog area.
|
|
||||||
libre calc cell pivot: Home # Selects the first item in the current dialog area.
|
|
||||||
libre calc cell pivot: End # Selects the last item in the current dialog area.
|
|
||||||
libre calc cell pivot: Alt # Copies or moves the current field into the "Row" area.
|
|
||||||
libre calc cell pivot: Alt # Copies or moves the current field into the "Column" area.
|
|
||||||
libre calc cell pivot: Alt # Copies or moves the current field into the "Data" area.
|
|
||||||
libre calc cell pivot: Ctrl+Up # Arrow Moves the current field up one place.
|
|
||||||
libre calc cell pivot: Ctrl+Down # Arrow Moves the current field down one place.
|
|
||||||
libre calc cell pivot: Ctrl+Left # Arrow Moves the current field one place to the left.
|
|
||||||
libre calc cell pivot: Ctrl+Right # Arrow Moves the current field one place to the right.
|
|
||||||
libre calc cell pivot: Ctrl+Home # Moves the current field to the first place.
|
|
||||||
libre calc cell pivot: Ctrl+End # Moves the current field to the last place.
|
|
||||||
libre calc cell pivot: Alt+O # Displays the options for the current field.
|
|
||||||
libre calc cell pivot: Delete # Removes the current field from the area.
|
|
||||||
|
|
||||||
################################# CLIPIT #####################################f
|
|
||||||
clipit: alt+ctrl+h # Open clipboard
|
|
||||||
clipit: alt+ctrl+f # Find on history
|
|
||||||
|
|
||||||
################################# GIMP #####################################
|
|
||||||
################################# INKSCAPE #####################################
|
|
||||||
################################# SCRIBUS #####################################
|
|
||||||
################################# SYNFIG #####################################
|
|
||||||
################################# LIGHTWORKS #####################################
|
|
||||||
################################# NATRON #####################################
|
|
||||||
################################# BLENDER #####################################
|
|
||||||
################################# ALIASES #####################################
|
|
@ -10,6 +10,8 @@
|
|||||||
close_window = None
|
close_window = None
|
||||||
go_down = None
|
go_down = None
|
||||||
go_left = None
|
go_left = None
|
||||||
|
go_next = None
|
||||||
|
go_prev = None
|
||||||
go_right = None
|
go_right = None
|
||||||
go_up = None
|
go_up = None
|
||||||
zoom_in = <Primary>KP_Add
|
zoom_in = <Primary>KP_Add
|
||||||
@ -25,7 +27,7 @@
|
|||||||
[plugins]
|
[plugins]
|
||||||
[profiles]
|
[profiles]
|
||||||
[[default]]
|
[[default]]
|
||||||
background_darkness = 0.93
|
background_darkness = 0.95
|
||||||
background_type = transparent
|
background_type = transparent
|
||||||
cursor_color = "#aaaaaa"
|
cursor_color = "#aaaaaa"
|
||||||
custom_command = TERMINAL_NAME=Terminator /usr/bin/zsh
|
custom_command = TERMINAL_NAME=Terminator /usr/bin/zsh
|
||||||
|
@ -109,7 +109,7 @@
|
|||||||
max_icon_size = 40
|
max_icon_size = 40
|
||||||
|
|
||||||
# Paths to default icons.
|
# Paths to default icons.
|
||||||
icon_path = /usr/share/icons/ePapirus/128x128/apps:/usr/share/icons/ePapirus/128x128/devices:/usr/share/icons/ePapirus/128x128/mimetypes:/usr/share/icons/ePapirus/128x128/places:/usr/share/icons/Papirus/48x48/actions:/usr/share/icons/Papirus/48x48/apps:/usr/share/icons/Papirus/48x48/devices:/usr/share/icons/Papirus/48x48:emblems:/usr/share/icons/Papirus/48x48/emotes:/usr/share/icons/Papirus/48x48/mimetypes:/usr/share/icons/Papirus/48x48/places:/usr/share/icons/Papirus/48x48/status
|
icon_path = /usr/share/icons/ePapirus/128x128/apps:/usr/share/icons/ePapirus/128x128/devices:/usr/share/icons/ePapirus/128x128/mimetypes:/usr/share/icons/ePapirus/128x128/places:/usr/share/icons/Papirus/48x48/actions:/usr/share/icons/Papirus/48x48/apps:/usr/share/icons/Papirus/48x48/devices:/usr/share/icons/Papirus/48x48:emblems:/usr/share/icons/Papirus/48x48/emotes:/usr/share/icons/Papirus/48x48/mimetypes:/usr/share/icons/Papirus/48x48/places:/usr/share/icons/Papirus/48x48/status:/usr/share/icons/Papirus/16x16/actions:/usr/share/icons/Papirus/16x16/apps:/usr/share/icons/Papirus/16x16/devices:/usr/share/icons/Papirus/16x16/emblems:/usr/share/icons/Papirus/16x16/emotes:/usr/share/icons/Papirus/16x16/mimetypes:/usr/share/icons/Papirus/16x16/panel:/usr/share/icons/Papirus/16x16/places:/usr/share/icons/Papirus/16x16/status
|
||||||
|
|
||||||
|
|
||||||
# --- History --- #
|
# --- History --- #
|
||||||
@ -157,8 +157,8 @@
|
|||||||
|
|
||||||
|
|
||||||
# --- Mouse --- #
|
# --- Mouse --- #
|
||||||
mouse_left_click = close_current
|
mouse_middle_click = close_current
|
||||||
mouse_middle_click = do_action, close_current
|
mouse_left_click = do_action, close_current
|
||||||
mouse_right_click = close_all
|
mouse_right_click = close_all
|
||||||
|
|
||||||
|
|
||||||
|
46
.tmux.conf
46
.tmux.conf
@ -21,6 +21,12 @@ if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
|
|||||||
if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
|
if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
|
||||||
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
|
"bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
|
||||||
|
|
||||||
|
bind-key -n C-] copy-mode
|
||||||
|
bind-key -n 'C-M-c' copy-mode
|
||||||
|
bind-key C-] copy-mode
|
||||||
|
|
||||||
|
bind-key -n C-_ run-shell '/bin/bash ~/scripts/search-notes.sh'
|
||||||
|
|
||||||
bind-key -T copy-mode-vi 'C-h' select-pane -L
|
bind-key -T copy-mode-vi 'C-h' select-pane -L
|
||||||
bind-key -T copy-mode-vi 'C-j' select-pane -D
|
bind-key -T copy-mode-vi 'C-j' select-pane -D
|
||||||
bind-key -T copy-mode-vi 'C-k' select-pane -U
|
bind-key -T copy-mode-vi 'C-k' select-pane -U
|
||||||
@ -35,6 +41,7 @@ setw -g mode-keys vi
|
|||||||
# Mouse support - set to on if you want to use the mouse
|
# Mouse support - set to on if you want to use the mouse
|
||||||
setw -g mouse on
|
setw -g mouse on
|
||||||
|
|
||||||
|
|
||||||
# source the .tmux.conf file with prefix + r
|
# source the .tmux.conf file with prefix + r
|
||||||
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
|
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
|
||||||
|
|
||||||
@ -56,7 +63,7 @@ bind-key -n C-q confirm-before kill-pane
|
|||||||
bind-key -n C-S-q confirm-before kill-window
|
bind-key -n C-S-q confirm-before kill-window
|
||||||
|
|
||||||
# no prefix, just c-x
|
# no prefix, just c-x
|
||||||
bind -n C-x setw synchronize-panes
|
bind C-x setw synchronize-panes
|
||||||
|
|
||||||
# reorder windows
|
# reorder windows
|
||||||
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
|
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
|
||||||
@ -81,23 +88,21 @@ set -ga terminal-overrides ",xterm-256color*:Tc"
|
|||||||
# use <prefix> C-l to clear screen
|
# use <prefix> C-l to clear screen
|
||||||
bind C-l send-keys 'C-l'
|
bind C-l send-keys 'C-l'
|
||||||
|
|
||||||
# use <prefix> j for zooming the current pane
|
# use <prefix> Enter for zooming the current pane
|
||||||
bind-key j if-shell "$is_vim" {
|
bind-key Enter if-shell "$is_vim" {
|
||||||
resize-pane -Z
|
resize-pane -Z
|
||||||
send-keys C-w =
|
send-keys C-w =
|
||||||
} {
|
} {
|
||||||
resize-pane -Z
|
resize-pane -Z
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bind-key i run-shell "tmux neww ~/scripts/cheat.sh"
|
||||||
|
|
||||||
bind-key C-j if-shell "$is_vim" {
|
|
||||||
resize-pane -Z
|
|
||||||
send-keys C-w =
|
|
||||||
} {
|
|
||||||
resize-pane -Z
|
|
||||||
}
|
|
||||||
|
|
||||||
unbind z
|
|
||||||
|
# use <prefix> C-j for join pane
|
||||||
|
bind-key C-j join-pane
|
||||||
|
|
||||||
|
|
||||||
# status bar theme
|
# status bar theme
|
||||||
set -g status 'on'
|
set -g status 'on'
|
||||||
@ -119,10 +124,10 @@ set -g status-left '#[fg=colour0,bg=colour11] #S #[fg=colour11,bg=colour12,nobol
|
|||||||
# above status + whoami and uptime
|
# above status + whoami and uptime
|
||||||
# set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] #(whoami) #(uptime | cut -d " " -f 1,2,3) #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
|
# set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] #(whoami) #(uptime | cut -d " " -f 1,2,3) #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
|
||||||
|
|
||||||
setw -g window-status-current-format '#[fg=colour12,bg=default,nobold,nounderscore]#[fg=colour0,bg=colour12,noreverse] #I #W #F #[fg=colour12,bg=default,nobold,nounderscore,noitalics]'
|
setw -g window-status-current-format '#[fg=colour12,bg=default,nobold,nounderscore]#[fg=colour0,bg=colour12,noreverse,bold] #I #W #F #[fg=colour12,bg=default,nobold,nounderscore,noitalics]'
|
||||||
setw -g window-status-format '#[fg=colour10,bg=default,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour10] #I #W #[fg=colour10,bg=default,nobold,nounderscore,noitalics]'
|
setw -g window-status-format '#[fg=colour10,bg=default,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour10] #I #W #[fg=colour10,bg=default,nobold,nounderscore,noitalics]'
|
||||||
|
|
||||||
set -g status-right '#[fg=colour14,bg=default,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour14] %R %a %h-%d #[fg=colour12,bg=colour14,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour12] #{battery_color_charge_fg}#[bg=colour12]#{battery_icon} #{battery_percentage}#[fg=colour9,bg=colour12,nobold,nounderscore,noitalics] #{prefix_highlight}'
|
set -g status-right '#{pomodoro_status}#[fg=colour14,bg=default,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour14] %R %a %h-%d #[fg=colour12,bg=colour14,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour12] #{battery_color_charge_fg}#[bg=colour12]#{battery_icon} #{battery_percentage}#[fg=colour9,bg=colour12,nobold,nounderscore,noitalics] #{prefix_highlight}'
|
||||||
|
|
||||||
set -g status-interval 1
|
set -g status-interval 1
|
||||||
|
|
||||||
@ -141,6 +146,17 @@ set -g @prefix_highlight_sync_prompt 'SYNC'
|
|||||||
|
|
||||||
set -g @resurrect-strategy-vim 'session'
|
set -g @resurrect-strategy-vim 'session'
|
||||||
set -g @batt_icon_status_charging '⚡'
|
set -g @batt_icon_status_charging '⚡'
|
||||||
|
set -g @yank_selection_mouse 'clipboard' # or 'primary' or 'secondary'
|
||||||
|
set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default
|
||||||
|
set -g @copycat_hash_search 'C-h'
|
||||||
|
set -g @copycat_ip_search 'M-i'
|
||||||
|
set -g @copytk-copy-command "xsel --clipboard"
|
||||||
|
set -g @menus_trigger 'h'
|
||||||
|
|
||||||
|
set -g @pomodoro_start 'a' # Start a Pomodoro with tmux-prefix + p
|
||||||
|
set -g @pomodoro_cancel 'A' # Cancel a Pomodoro with tmux-prefix key + P
|
||||||
|
set -g @pomodoro_on " #[fg=$text_red]🍅 " # The formatted output when the pomodoro is running
|
||||||
|
set -g @pomodoro_complete " #[fg=$text_green]🍅 " # The formatted output when the break is running
|
||||||
|
|
||||||
# set -g @continuum-boot 'on'
|
# set -g @continuum-boot 'on'
|
||||||
# set -g @continuum-restore 'on'
|
# set -g @continuum-restore 'on'
|
||||||
@ -154,4 +170,10 @@ set -g @plugin 'tmux-plugins/tmux-yank'
|
|||||||
set -g @plugin 'tmux-plugins/tmux-copycat'
|
set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-cowboy'
|
||||||
|
set -g @plugin 'jaclu/tmux-menus'
|
||||||
|
set -g @plugin 'laktak/extrakto'
|
||||||
|
set -g @plugin 'CrispyConductor/tmux-copy-toolkit'
|
||||||
|
set -g @plugin 'olimorris/tmux-pomodoro-plus'
|
||||||
run '~/.tmux/plugins/tpm/tpm'
|
run '~/.tmux/plugins/tpm/tpm'
|
||||||
|
|
||||||
|
@ -1,8 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# get todays md5sum and extract first 2 chars then convert it to base 10
|
# get todays md5sum and extract first 2 chars then convert it to base 10
|
||||||
todays_hash=$(date +%x | md5sum | cut -c 1-2)
|
randomizer=$(cat ~/.wallpaper_randomizer)
|
||||||
base10=$(echo "ibase=16;$todays_hash" | bc)
|
today=$(date +%x)
|
||||||
|
todays_hash=$(echo "$randomizer $today" | md5sum | cut -c 1-2)
|
||||||
|
base10=$(echo $((0x$todays_hash)) | bc)
|
||||||
|
|
||||||
|
echo "base 10 ${base10}"
|
||||||
|
|
||||||
# calculate the index for the wallpaper set: base10 % num_of_dirs
|
# calculate the index for the wallpaper set: base10 % num_of_dirs
|
||||||
dirs=$(find ~/Pictures/Wallpapers/time-based/* -maxdepth 1 -type d)
|
dirs=$(find ~/Pictures/Wallpapers/time-based/* -maxdepth 1 -type d)
|
||||||
@ -32,5 +36,5 @@ set_wallpaper() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
# if the current wallpaper is different than the previous one, set it
|
# if the current wallpaper is different than the previous one, set it
|
||||||
[[ $(< ~/.last_wallpaper_path) != "$actual_file" ]] && set_wallpaper $actual_file
|
[[ $(< ~/.last_wallpaper_path) != "$actual_file" || $1 ]] && set_wallpaper $actual_file
|
||||||
echo "$actual_file" > ~/.last_wallpaper_path
|
echo "$actual_file" > ~/.last_wallpaper_path
|
||||||
|
@ -22,6 +22,6 @@ charging=$(acpi | cut -d ' ' -f 3 | tr -d ',| ')
|
|||||||
# fi
|
# fi
|
||||||
|
|
||||||
if [[ "$batteryLevel" -le "$batteryLimit" ]] && [[ "$charging" == "Discharging" ]]; then
|
if [[ "$batteryLevel" -le "$batteryLimit" ]] && [[ "$charging" == "Discharging" ]]; then
|
||||||
/usr/bin/notify-send -a "Battery Warning" --urgency critical "Battery level at ${batteryLevel}%" -i abrt
|
/usr/bin/notify-send -a "Battery Warning" --urgency critical "Battery level at ${batteryLevel}%" -i abrt -t 10000
|
||||||
/usr/bin/paplay /usr/share/sounds/Oxygen-K3B-Finish-Error.ogg
|
/usr/bin/paplay /usr/share/sounds/Oxygen-K3B-Finish-Error.ogg
|
||||||
fi
|
fi
|
||||||
|
@ -33,7 +33,6 @@ i3lock \
|
|||||||
--keyhl-color=$W \
|
--keyhl-color=$W \
|
||||||
--bshl-color=$W \
|
--bshl-color=$W \
|
||||||
\
|
\
|
||||||
--screen 1 \
|
|
||||||
--blur 5 \
|
--blur 5 \
|
||||||
--clock \
|
--clock \
|
||||||
--indicator \
|
--indicator \
|
||||||
|
Loading…
Reference in New Issue
Block a user