gitea repo
This commit is contained in:
commit
f610209aff
66 changed files with 2439 additions and 0 deletions
23
dotfiles/bash_files/all_hosts/bashrc
Normal file
23
dotfiles/bash_files/all_hosts/bashrc
Normal file
|
@ -0,0 +1,23 @@
|
|||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
#dont put duplicate lines or lines starting with space in the history
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
HISTFILESIZE=-1
|
||||
HISTSIZE=-1
|
||||
export PROMPT_COMMAND='history -a'
|
||||
|
||||
if [ -f ~/.bash_local ]; then
|
||||
. ~/.bash_local
|
||||
fi
|
||||
|
||||
|
||||
PS1="\[\e[32m\][\[\e[m\]\[\e[32m\]\u\[\e[m\]\[\e[32m\]@\[\e[m\]\[\e[32m\]\h\[\e[m\]\[\e[32m\]]\[\e[m\]\[\e[34m\]\W\[\e[m\]\[\e[36m\]\\$\[\e[m\] "
|
||||
if [ ! -z "$SSH_CLIENT" ]
|
||||
then
|
||||
PS1="\[\e[32m\][\[\e[m\]\[\e[31m\]\u\[\e[m\]\[\e[31m\]@\[\e[m\]\[\e[31m\]\h\[\e[m\]\[\e[32m\]]\[\e[m\]\[\e[34m\]\W\[\e[m\]\[\e[36m\]\\$\[\e[m\] "
|
||||
fi
|
||||
|
||||
export PATH=$PATH:$HOME/bin
|
||||
|
19
dotfiles/bash_files/all_hosts/config
Normal file
19
dotfiles/bash_files/all_hosts/config
Normal file
|
@ -0,0 +1,19 @@
|
|||
alias cp="cp -i" # confirm before overwriting something
|
||||
alias df='df -h' # human-readable sizes
|
||||
alias free='free -m' # show sizes in MB
|
||||
alias du='du -h'
|
||||
alias diff='diff --color=auto'
|
||||
alias grep='grep --color=auto'
|
||||
alias ip='ip -color=auto'
|
||||
alias ls='ls --color=auto'
|
||||
alias vm='mv'
|
||||
alias cat='bat -pp'
|
||||
alias ll="ls -lhA"
|
||||
|
||||
rnd() {
|
||||
echo $((RANDOM%10000+1000))
|
||||
}
|
||||
|
||||
### NIX ###
|
||||
alias rebuild="sudo nixos-rebuild switch --flake ~/nixos#$NIXHOST"
|
||||
alias search="nix search nixpkgs"
|
38
dotfiles/bash_files/desk/docker
Normal file
38
dotfiles/bash_files/desk/docker
Normal file
|
@ -0,0 +1,38 @@
|
|||
### Docker ###
|
||||
alias dps="docker ps --format '{{.Names}}'"
|
||||
|
||||
d_term(){
|
||||
docker exec -it $1 /bin/bash
|
||||
}
|
||||
|
||||
d_up(){
|
||||
path=~/docker
|
||||
if [[ -z "$1" && $(pwd) == "$path/"* ]]; then
|
||||
docker compose up -d
|
||||
elif [[ -z "$1" && $(pwd) != "$path/"* ]]; then
|
||||
echo "not in compose folder"
|
||||
elif [[ -n "$1" ]]; then
|
||||
if ls "$path" | grep -q "$1"; then
|
||||
(cd "$path/$1" && docker compose up -d)
|
||||
else
|
||||
echo "container $1 not found"
|
||||
ls "$path"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
d_down(){
|
||||
path=~/docker
|
||||
if [[ -z "$1" && $(pwd) == "$path/"* ]]; then
|
||||
docker compose down
|
||||
elif [[ -z "$1" && $(pwd) != "$path/"* ]]; then
|
||||
echo "not in compose folder"
|
||||
elif [[ -n "$1" ]]; then
|
||||
if ls "$path" | grep -q "$1"; then
|
||||
(cd "$path/$1" && docker compose down)
|
||||
else
|
||||
echo "container $1 not found"
|
||||
ls "$path"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
23
dotfiles/bash_files/desk/methods
Normal file
23
dotfiles/bash_files/desk/methods
Normal file
|
@ -0,0 +1,23 @@
|
|||
mp(){
|
||||
nohup mousepad $1 </dev/null >/dev/null 2>&1 &
|
||||
disown
|
||||
}
|
||||
|
||||
cs(){
|
||||
# cp -l fullpath fullpath/Documents/cheatsheet
|
||||
# path=~/Documents/cheatsheet
|
||||
path=/solid/dir/reference/cheatsheet/
|
||||
if [[ -z "$1" ]]; then
|
||||
ls $path
|
||||
else
|
||||
if [[ $2 = "-e" ]]; then
|
||||
vim $path/$1
|
||||
else
|
||||
bat -pp $path/$1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
timer(){
|
||||
while true; do printf '%s\r' "$(date)"; done
|
||||
}
|
7
dotfiles/bash_files/desk/shortcuts
Normal file
7
dotfiles/bash_files/desk/shortcuts
Normal file
|
@ -0,0 +1,7 @@
|
|||
alias ctllist="systemctl --type=service"
|
||||
alias esc='setxkbmap -option "caps:swapescape"'
|
||||
alias checkip="curl ipinfo.io"
|
||||
alias hold='hold=$(pwd)'
|
||||
|
||||
alias ollama_up="./scripts/VM/VMmanager.sh macvtap; sudo virsh start ollama_vm"
|
||||
|
10
dotfiles/gtk-3.0/bookmarks
Normal file
10
dotfiles/gtk-3.0/bookmarks
Normal file
|
@ -0,0 +1,10 @@
|
|||
file:///home/fred/Downloads
|
||||
file:///home/fred/Documents
|
||||
file:///home/fred/scripts
|
||||
file:///nfs
|
||||
file:///solid/dir/reference/cheatsheet
|
||||
file:///solid
|
||||
file:///solid/dir/reference/scratch
|
||||
file:///docker/compose docker
|
||||
file:///solid/job
|
||||
file:///home/fred/nixos
|
217
dotfiles/i3/config
Normal file
217
dotfiles/i3/config
Normal file
|
@ -0,0 +1,217 @@
|
|||
font pango:monospace 8
|
||||
exec --no-startup-id dex --autostart --environment i3
|
||||
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
|
||||
|
||||
# applets
|
||||
exec --no-startup-id nm-applet
|
||||
exec volumeicon
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
|
||||
# use these keys for focus, movement, and resize directions when reaching for
|
||||
# the arrows is not convenient
|
||||
set $up k
|
||||
set $down j
|
||||
set $left h
|
||||
set $right l
|
||||
|
||||
# use Mouse+Mod1 to drag floating windows to their wanted position
|
||||
floating_modifier Mod1
|
||||
#floating_modifier Mod4
|
||||
# change focus
|
||||
bindsym Mod4+$left focus left
|
||||
bindsym Mod4+$down focus down
|
||||
bindsym Mod4+$up focus up
|
||||
bindsym Mod4+$right focus right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym Mod4+Left focus left
|
||||
bindsym Mod4+Down focus down
|
||||
bindsym Mod4+Up focus up
|
||||
bindsym Mod4+Right focus right
|
||||
|
||||
# move focused window
|
||||
bindsym Control+Shift+$left move left
|
||||
bindsym Control+Shift+$down move down
|
||||
bindsym Control+Shift+$up move up
|
||||
bindsym Control+Shift+$right move right
|
||||
|
||||
# alternatively, you can use the cursor keys:
|
||||
bindsym Mod4+Shift+Left move left
|
||||
bindsym Mod4+Shift+Down move down
|
||||
bindsym Mod4+Shift+Up move up
|
||||
bindsym Mod4+Shift+Right move right
|
||||
|
||||
# split in horizontal orientation
|
||||
bindsym Mod4+period split h
|
||||
bindsym Mod4+c split h
|
||||
|
||||
# split in vertical orientation
|
||||
bindsym Mod4+comma split v
|
||||
bindsym Mod4+x split v
|
||||
|
||||
# enter fullscreen mode for the focused container
|
||||
bindsym Mod4+g fullscreen toggle
|
||||
|
||||
# toggle tiling / floating
|
||||
bindsym Control+Shift+space floating toggle
|
||||
|
||||
# change focus between tiling / floating windows
|
||||
bindsym Control+space focus mode_toggle
|
||||
|
||||
# move the currently focused window to the scratchpad
|
||||
bindsym Control+Shift+0 move scratchpad
|
||||
|
||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
bindsym Control+0 scratchpad show
|
||||
|
||||
# Define scripts folder
|
||||
set $scripts "/home/fred/scripts"
|
||||
|
||||
# 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 $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
#set $ws10 "10"
|
||||
|
||||
# switch to workspace
|
||||
bindsym Control+1 workspace number $ws1
|
||||
bindsym Control+2 workspace number $ws2
|
||||
bindsym Control+3 workspace number $ws3
|
||||
bindsym Control+4 workspace number $ws4
|
||||
bindsym Control+5 workspace number $ws5
|
||||
bindsym Control+6 workspace number $ws6
|
||||
bindsym Control+7 workspace number $ws7
|
||||
bindsym Control+8 workspace number $ws8
|
||||
bindsym Control+9 workspace number $ws9
|
||||
#bindsym Control+0 workspace number $ws10
|
||||
|
||||
# move focused container to workspace
|
||||
bindsym Control+Shift+1 move container to workspace number $ws1
|
||||
bindsym Control+Shift+2 move container to workspace number $ws2
|
||||
bindsym Control+Shift+3 move container to workspace number $ws3
|
||||
bindsym Control+Shift+4 move container to workspace number $ws4
|
||||
bindsym Control+Shift+5 move container to workspace number $ws5
|
||||
bindsym Control+Shift+6 move container to workspace number $ws6
|
||||
bindsym Control+Shift+7 move container to workspace number $ws7
|
||||
bindsym Control+Shift+8 move container to workspace number $ws8
|
||||
bindsym Control+Shift+9 move container to workspace number $ws9
|
||||
#bindsym Control+Shift+0 move container to workspace number $ws10
|
||||
|
||||
|
||||
# resize window (you can also use the mouse for that)
|
||||
bindsym Control+Mod4+h resize shrink width 10 px or 10 ppt
|
||||
bindsym Control+Mod4+j resize grow height 10 px or 10 ppt
|
||||
bindsym Control+Mod4+k resize shrink height 10 px or 10 ppt
|
||||
bindsym Control+Mod4+l resize grow width 10 px or 10 ppt
|
||||
|
||||
bindsym Mod4+Button4 resize shrink width 10 px or 10 ppt
|
||||
bindsym Mod4+Button5 resize grow height 10 px or 10 ppt
|
||||
bindsym Mod4+Button6 resize shrink height 10 px or 10 ppt
|
||||
bindsym Mod4+Button7 resize grow width 10 px or 10 ppt
|
||||
|
||||
# Start i3bar to display a workspace bar (plus the system information i3status
|
||||
# finds out, if available)
|
||||
bar {
|
||||
status_command i3blocks
|
||||
tray_output HDMI-A-0
|
||||
|
||||
}
|
||||
|
||||
####session management
|
||||
bindsym Mod4+grave exec screens 4
|
||||
bindsym Control+Shift+q kill
|
||||
#bindsym Control+Shift+c reload
|
||||
bindsym Control+Shift+r restart
|
||||
#bindsym Control+Mod1+p exec i3-msg exit
|
||||
bindsym Control+Mod1+p exec xfce4-session-logout --logout
|
||||
bindsym Control+Mod1+bracketright exec i3lock -c 000000
|
||||
bindsym Control+Mod1+Delete exec i3-sensible-terminal -e 'sh $scripts/setup.sh off'
|
||||
bindsym Control+Shift+Delete exec i3-sensible-terminal -e 'sh $scripts/setup.sh reboot'
|
||||
bindsym Control+Mod4+F12 exec i3-sensible-terminal -e 'sh $scripts/VM/VMmanager.sh toggle'
|
||||
bindsym Control+Shift+F12 exec i3-sensible-terminal -e 'sh $scripts/VM/VMmanager.sh reboot'
|
||||
bindsym --release Control+Mod4+v exec "xdotool keyup Control keyup Super click 2"
|
||||
bindsym --release Control+Mod4+d exec "xdotool keyup Control keyup Super type $(date +%y.%m.%d.)"
|
||||
|
||||
####Screenshots
|
||||
bindsym Control+Shift+Print exec xfce4-screenshooter -r
|
||||
bindsym Control+Mod1+Print exec xfce4-screenshooter -w
|
||||
bindsym Print exec xfce4-screenshooter
|
||||
|
||||
####program shortcuts
|
||||
bindsym Mod4+r exec "rofi -modi drun,run -show drun"
|
||||
bindsym Mod1+c exec --no-startup-id rofi -show calc -modi calc -no-show-match -no-sort
|
||||
bindsym Mod4+f exec firefox
|
||||
bindsym Mod4+v exec thunar
|
||||
bindsym Mod4+t exec i3-sensible-terminal
|
||||
bindsym Mod4+a exec xterm -e "ssh -t mf"
|
||||
bindsym Mod4+d workspace number $ws2; exec discord
|
||||
bindsym Mod4+w exec deluge
|
||||
bindsym Mod4+b exec mousepad
|
||||
|
||||
bindsym --release Mod4+u exec sh $scripts/shortcuts.sh searchbar
|
||||
|
||||
####Function keys
|
||||
#bindsym F1 exec playerctl play-pause
|
||||
#bindsym F2 exec playerctl stop
|
||||
#bindsym F3 exec playerctl previous
|
||||
#bindsym F4 exec playerctl next
|
||||
#bindsym F5 exec --no-startup-id pactl set-sink-mute 0 toggle
|
||||
#bindsym F6 exec --no-startup-id pactl set-sink-volume 0 -5%
|
||||
#bindsym F7 exec --no-startup-id pactl set-sink-volume 0 +5%
|
||||
#bindsym --release F8 exec xdotool key Shift+Alt+b
|
||||
#bindsym --release F8 exec xdotool key s
|
||||
#bindsym --release F3 exec xdotool key p
|
||||
#bindsym --release F4 exec xdotool key n
|
||||
#bindsym --release F1 exec xdotool key space
|
||||
|
||||
#########XP-pen
|
||||
#bindsym Mod1+Up exec sh $scripts/remote/xp.sh q_up
|
||||
#bindsym Mod1+Down exec sh $scripts/remote/xp.sh q_down
|
||||
bindsym --release Mod1+1 exec sh $scripts/remote/xp.sh k1
|
||||
bindsym --release Mod1+2 exec sh $scripts/remote/xp.sh k2
|
||||
bindsym --release Mod1+3 exec sh $scripts/remote/xp.sh k3
|
||||
bindsym --release Mod1+4 exec sh $scripts/remote/xp.sh k4
|
||||
bindsym --release Mod1+5 exec sh $scripts/remote/xp.sh k5
|
||||
bindsym --release Mod1+6 exec sh $scripts/remote/xp.sh k6
|
||||
bindsym --release Mod1+7 exec sh $scripts/remote/xp.sh k7
|
||||
bindsym --release Mod1+8 exec sh $scripts/remote/xp.sh k8
|
||||
bindsym --release Mod1+9 exec sh $scripts/remote/xp.sh k9
|
||||
bindsym --release Mod1+0 exec sh $scripts/remote/xp.sh k10
|
||||
|
||||
|
||||
####startup
|
||||
exec --no-startup-id sh $scripts/init.sh
|
||||
#workspace 1 output HDMI-2
|
||||
#workspace 2 output DP-5
|
||||
#workspace 3 output DP-6
|
||||
|
||||
workspace 1 output HDMI-A-0
|
||||
workspace 2 output DisplayPort-1
|
||||
workspace 3 output DisplayPort-2
|
||||
|
||||
exec_always --no-startup-id feh --bg-scale /home/fred/Pictures/wallpaper/800252.png
|
||||
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
|
||||
exec --no-startup-id xset dpms 0 0 600 &
|
||||
exec --no-startup-id xss-lock -- i3lock -c 000000 &
|
||||
#exec --no-startup-id numlockx o
|
||||
exec_always --no-startup-id exec sh $scripts/setup.sh sync
|
||||
exec --no-startup-id xbindkeys
|
||||
exec --no-startup-id i3-msg 'workspace 3; exec firefox'
|
||||
exec --no-startup-id solaar --window=hide
|
||||
exec --no-startup-id input-remapper-control --command autoload
|
||||
#exec --no-startup-id /usr/lib/pentablet/PenTablet
|
||||
#for_window [class="PenTablet"] move scratchpad
|
23
dotfiles/i3blocks/clean
Normal file
23
dotfiles/i3blocks/clean
Normal file
|
@ -0,0 +1,23 @@
|
|||
# i3blocks configuration file
|
||||
#
|
||||
# The i3blocks man page describes the usage of the binary,
|
||||
# and its website describes the configuration:
|
||||
#
|
||||
# https://vivien.github.io/i3blocks
|
||||
|
||||
|
||||
# Global properties
|
||||
separator=true
|
||||
separator_block_width=15
|
||||
|
||||
[public-ip]
|
||||
command=wget -qO - icanhazip.com
|
||||
interval=once
|
||||
|
||||
|
||||
[time]
|
||||
command=date '+%m-%d %H:%M'
|
||||
#command=date '+%Y-%m-%d %I:%M'
|
||||
interval=1
|
||||
|
||||
|
27
dotfiles/i3blocks/guest
Normal file
27
dotfiles/i3blocks/guest
Normal file
|
@ -0,0 +1,27 @@
|
|||
# i3blocks configuration file
|
||||
#
|
||||
# The i3blocks man page describes the usage of the binary,
|
||||
# and its website describes the configuration:
|
||||
#
|
||||
# https://vivien.github.io/i3blocks
|
||||
|
||||
|
||||
# Global properties
|
||||
separator=true
|
||||
separator_block_width=15
|
||||
|
||||
[public-ip]
|
||||
command=wget -qO - icanhazip.com
|
||||
interval=once
|
||||
|
||||
|
||||
[time]
|
||||
command=date '+%m-%d %H:%M'
|
||||
#command=date '+%Y-%m-%d %I:%M'
|
||||
interval=1
|
||||
|
||||
[click]
|
||||
full_text=[Keyboard]
|
||||
command=sh /home/fred/scripts/VM/keyboard_vm.sh
|
||||
color=#FF0000
|
||||
|
27
dotfiles/i3blocks/host
Normal file
27
dotfiles/i3blocks/host
Normal file
|
@ -0,0 +1,27 @@
|
|||
# i3blocks configuration file
|
||||
#
|
||||
# The i3blocks man page describes the usage of the binary,
|
||||
# and its website describes the configuration:
|
||||
#
|
||||
# https://vivien.github.io/i3blocks
|
||||
|
||||
|
||||
# Global properties
|
||||
separator=true
|
||||
separator_block_width=15
|
||||
|
||||
[public-ip]
|
||||
command=wget -qO - icanhazip.com
|
||||
interval=once
|
||||
|
||||
|
||||
[time]
|
||||
command=date '+%m-%d %H:%M'
|
||||
#command=date '+%Y-%m-%d %I:%M'
|
||||
interval=1
|
||||
|
||||
[click]
|
||||
full_text=[Keyboard]
|
||||
command=sh /home/fred/scripts/VM/keyboard_vm.sh
|
||||
color=#00FF00
|
||||
|
20
dotfiles/nvim/.neoconf.json
Normal file
20
dotfiles/nvim/.neoconf.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"neodev": {
|
||||
"library": {
|
||||
"enabled": true,
|
||||
"plugins": true
|
||||
}
|
||||
},
|
||||
"neoconf": {
|
||||
"plugins": {
|
||||
"lua_ls": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"lspconfig": {
|
||||
"lua_ls": {
|
||||
"Lua.format.enable": false
|
||||
}
|
||||
}
|
||||
}
|
7
dotfiles/nvim/.stylua.toml
Normal file
7
dotfiles/nvim/.stylua.toml
Normal file
|
@ -0,0 +1,7 @@
|
|||
column_width = 120
|
||||
line_endings = "Unix"
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
quote_style = "AutoPreferDouble"
|
||||
call_parentheses = "None"
|
||||
collapse_simple_statement = "Always"
|
34
dotfiles/nvim/README.md
Normal file
34
dotfiles/nvim/README.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
# AstroNvim Template
|
||||
|
||||
**NOTE:** This is for AstroNvim v5+
|
||||
|
||||
A template for getting started with [AstroNvim](https://github.com/AstroNvim/AstroNvim)
|
||||
|
||||
## 🛠️ Installation
|
||||
|
||||
#### Make a backup of your current nvim and shared folder
|
||||
|
||||
```shell
|
||||
mv ~/.config/nvim ~/.config/nvim.bak
|
||||
mv ~/.local/share/nvim ~/.local/share/nvim.bak
|
||||
mv ~/.local/state/nvim ~/.local/state/nvim.bak
|
||||
mv ~/.cache/nvim ~/.cache/nvim.bak
|
||||
```
|
||||
|
||||
#### Create a new user repository from this template
|
||||
|
||||
Press the "Use this template" button above to create a new repository to store your user configuration.
|
||||
|
||||
You can also just clone this repository directly if you do not want to track your user configuration in GitHub.
|
||||
|
||||
#### Clone the repository
|
||||
|
||||
```shell
|
||||
git clone https://github.com/<your_user>/<your_repository> ~/.config/nvim
|
||||
```
|
||||
|
||||
#### Start Neovim
|
||||
|
||||
```shell
|
||||
nvim
|
||||
```
|
19
dotfiles/nvim/init.lua
Normal file
19
dotfiles/nvim/init.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
-- This file simply bootstraps the installation of Lazy.nvim and then calls other files for execution
|
||||
-- This file doesn't necessarily need to be touched, BE CAUTIOUS editing this file and proceed at your own risk.
|
||||
local lazypath = vim.env.LAZY or vim.fn.stdpath "data" .. "/lazy/lazy.nvim"
|
||||
if not (vim.env.LAZY or (vim.uv or vim.loop).fs_stat(lazypath)) then
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- validate that lazy is available
|
||||
if not pcall(require, "lazy") then
|
||||
-- stylua: ignore
|
||||
vim.api.nvim_echo({ { ("Unable to load lazy from: %s\n"):format(lazypath), "ErrorMsg" }, { "Press any key to exit...", "MoreMsg" } }, true, {})
|
||||
vim.fn.getchar()
|
||||
vim.cmd.quit()
|
||||
end
|
||||
|
||||
require "lazy_setup"
|
||||
require "polish"
|
12
dotfiles/nvim/lua/community.lua
Normal file
12
dotfiles/nvim/lua/community.lua
Normal file
|
@ -0,0 +1,12 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroCommunity: import any community modules here
|
||||
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
|
||||
-- This guarantees that the specs are processed before any user plugins.
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrocommunity",
|
||||
{ import = "astrocommunity.pack.lua" },
|
||||
-- import/override with your plugins folder
|
||||
}
|
32
dotfiles/nvim/lua/lazy_setup.lua
Normal file
32
dotfiles/nvim/lua/lazy_setup.lua
Normal file
|
@ -0,0 +1,32 @@
|
|||
require("lazy").setup({
|
||||
{
|
||||
"AstroNvim/AstroNvim",
|
||||
version = "^5", -- Remove version tracking to elect for nightly AstroNvim
|
||||
import = "astronvim.plugins",
|
||||
opts = { -- AstroNvim options must be set here with the `import` key
|
||||
mapleader = " ", -- This ensures the leader key must be configured before Lazy is set up
|
||||
maplocalleader = ",", -- This ensures the localleader key must be configured before Lazy is set up
|
||||
icons_enabled = true, -- Set to false to disable icons (if no Nerd Font is available)
|
||||
pin_plugins = nil, -- Default will pin plugins when tracking `version` of AstroNvim, set to true/false to override
|
||||
update_notifications = true, -- Enable/disable notification about running `:Lazy update` twice to update pinned plugins
|
||||
},
|
||||
},
|
||||
{ import = "community" },
|
||||
{ import = "plugins" },
|
||||
} --[[@as LazySpec]], {
|
||||
-- Configure any other `lazy.nvim` configuration options here
|
||||
install = { colorscheme = { "astrotheme", "habamax" } },
|
||||
ui = { backdrop = 100 },
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins, add more to your liking
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
"netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
} --[[@as LazyConfig]])
|
85
dotfiles/nvim/lua/plugins/astrocore.lua
Normal file
85
dotfiles/nvim/lua/plugins/astrocore.lua
Normal file
|
@ -0,0 +1,85 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroCore provides a central place to modify mappings, vim options, autocommands, and more!
|
||||
-- Configuration documentation can be found with `:h astrocore`
|
||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
||||
-- as this provides autocomplete and documentation while editing
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrocore",
|
||||
---@type AstroCoreOpts
|
||||
opts = {
|
||||
-- Configure core features of AstroNvim
|
||||
features = {
|
||||
large_buf = { size = 1024 * 256, lines = 10000 }, -- set global limits for large files for disabling features like treesitter
|
||||
autopairs = true, -- enable autopairs at start
|
||||
cmp = true, -- enable completion at start
|
||||
diagnostics = { virtual_text = true, virtual_lines = false }, -- diagnostic settings on startup
|
||||
highlighturl = true, -- highlight URLs at start
|
||||
notifications = true, -- enable notifications at start
|
||||
},
|
||||
-- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on
|
||||
diagnostics = {
|
||||
virtual_text = true,
|
||||
underline = true,
|
||||
},
|
||||
-- passed to `vim.filetype.add`
|
||||
filetypes = {
|
||||
-- see `:h vim.filetype.add` for usage
|
||||
extension = {
|
||||
foo = "fooscript",
|
||||
},
|
||||
filename = {
|
||||
[".foorc"] = "fooscript",
|
||||
},
|
||||
pattern = {
|
||||
[".*/etc/foo/.*"] = "fooscript",
|
||||
},
|
||||
},
|
||||
-- vim options can be configured here
|
||||
options = {
|
||||
opt = { -- vim.opt.<key>
|
||||
relativenumber = true, -- sets vim.opt.relativenumber
|
||||
number = true, -- sets vim.opt.number
|
||||
spell = false, -- sets vim.opt.spell
|
||||
signcolumn = "yes", -- sets vim.opt.signcolumn to yes
|
||||
wrap = false, -- sets vim.opt.wrap
|
||||
},
|
||||
g = { -- vim.g.<key>
|
||||
-- configure global vim variables (vim.g)
|
||||
-- NOTE: `mapleader` and `maplocalleader` must be set in the AstroNvim opts or before `lazy.setup`
|
||||
-- This can be found in the `lua/lazy_setup.lua` file
|
||||
},
|
||||
},
|
||||
-- Mappings can be configured through AstroCore as well.
|
||||
-- NOTE: keycodes follow the casing in the vimdocs. For example, `<Leader>` must be capitalized
|
||||
mappings = {
|
||||
-- first key is the mode
|
||||
n = {
|
||||
-- second key is the lefthand side of the map
|
||||
|
||||
-- navigate buffer tabs
|
||||
["]b"] = { function() require("astrocore.buffer").nav(vim.v.count1) end, desc = "Next buffer" },
|
||||
["[b"] = { function() require("astrocore.buffer").nav(-vim.v.count1) end, desc = "Previous buffer" },
|
||||
|
||||
-- mappings seen under group name "Buffer"
|
||||
["<Leader>bd"] = {
|
||||
function()
|
||||
require("astroui.status.heirline").buffer_picker(
|
||||
function(bufnr) require("astrocore.buffer").close(bufnr) end
|
||||
)
|
||||
end,
|
||||
desc = "Close buffer from tabline",
|
||||
},
|
||||
|
||||
-- tables with just a `desc` key will be registered with which-key if it's installed
|
||||
-- this is useful for naming menus
|
||||
-- ["<Leader>b"] = { desc = "Buffers" },
|
||||
|
||||
-- setting a mapping to false will disable it
|
||||
-- ["<C-S>"] = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
105
dotfiles/nvim/lua/plugins/astrolsp.lua
Normal file
105
dotfiles/nvim/lua/plugins/astrolsp.lua
Normal file
|
@ -0,0 +1,105 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroLSP allows you to customize the features in AstroNvim's LSP configuration engine
|
||||
-- Configuration documentation can be found with `:h astrolsp`
|
||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
||||
-- as this provides autocomplete and documentation while editing
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astrolsp",
|
||||
---@type AstroLSPOpts
|
||||
opts = {
|
||||
-- Configuration table of features provided by AstroLSP
|
||||
features = {
|
||||
codelens = true, -- enable/disable codelens refresh on start
|
||||
inlay_hints = false, -- enable/disable inlay hints on start
|
||||
semantic_tokens = true, -- enable/disable semantic token highlighting
|
||||
},
|
||||
-- customize lsp formatting options
|
||||
formatting = {
|
||||
-- control auto formatting on save
|
||||
format_on_save = {
|
||||
enabled = true, -- enable or disable format on save globally
|
||||
allow_filetypes = { -- enable format on save for specified filetypes only
|
||||
-- "go",
|
||||
},
|
||||
ignore_filetypes = { -- disable format on save for specified filetypes
|
||||
-- "python",
|
||||
},
|
||||
},
|
||||
disabled = { -- disable formatting capabilities for the listed language servers
|
||||
-- disable lua_ls formatting capability if you want to use StyLua to format your lua code
|
||||
-- "lua_ls",
|
||||
},
|
||||
timeout_ms = 1000, -- default format timeout
|
||||
-- filter = function(client) -- fully override the default formatting function
|
||||
-- return true
|
||||
-- end
|
||||
},
|
||||
-- enable servers that you already have installed without mason
|
||||
servers = {
|
||||
-- "pyright"
|
||||
},
|
||||
-- customize language server configuration options passed to `lspconfig`
|
||||
---@diagnostic disable: missing-fields
|
||||
config = {
|
||||
-- clangd = { capabilities = { offsetEncoding = "utf-8" } },
|
||||
},
|
||||
-- customize how language servers are attached
|
||||
handlers = {
|
||||
-- a function without a key is simply the default handler, functions take two parameters, the server name and the configured options table for that server
|
||||
-- function(server, opts) require("lspconfig")[server].setup(opts) end
|
||||
|
||||
-- the key is the server that is being setup with `lspconfig`
|
||||
-- rust_analyzer = false, -- setting a handler to false will disable the set up of that language server
|
||||
-- pyright = function(_, opts) require("lspconfig").pyright.setup(opts) end -- or a custom handler function can be passed
|
||||
},
|
||||
-- Configure buffer local auto commands to add when attaching a language server
|
||||
autocmds = {
|
||||
-- first key is the `augroup` to add the auto commands to (:h augroup)
|
||||
lsp_codelens_refresh = {
|
||||
-- Optional condition to create/delete auto command group
|
||||
-- can either be a string of a client capability or a function of `fun(client, bufnr): boolean`
|
||||
-- condition will be resolved for each client on each execution and if it ever fails for all clients,
|
||||
-- the auto commands will be deleted for that buffer
|
||||
cond = "textDocument/codeLens",
|
||||
-- cond = function(client, bufnr) return client.name == "lua_ls" end,
|
||||
-- list of auto commands to set
|
||||
{
|
||||
-- events to trigger
|
||||
event = { "InsertLeave", "BufEnter" },
|
||||
-- the rest of the autocmd options (:h nvim_create_autocmd)
|
||||
desc = "Refresh codelens (buffer)",
|
||||
callback = function(args)
|
||||
if require("astrolsp").config.features.codelens then vim.lsp.codelens.refresh { bufnr = args.buf } end
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- mappings to be set up on attaching of a language server
|
||||
mappings = {
|
||||
n = {
|
||||
-- a `cond` key can provided as the string of a server capability to be required to attach, or a function with `client` and `bufnr` parameters from the `on_attach` that returns a boolean
|
||||
gD = {
|
||||
function() vim.lsp.buf.declaration() end,
|
||||
desc = "Declaration of current symbol",
|
||||
cond = "textDocument/declaration",
|
||||
},
|
||||
["<Leader>uY"] = {
|
||||
function() require("astrolsp.toggles").buffer_semantic_tokens() end,
|
||||
desc = "Toggle LSP semantic highlight (buffer)",
|
||||
cond = function(client)
|
||||
return client.supports_method "textDocument/semanticTokens/full" and vim.lsp.semantic_tokens ~= nil
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
-- A custom `on_attach` function to be run after the default `on_attach` function
|
||||
-- takes two parameters `client` and `bufnr` (`:h lspconfig-setup`)
|
||||
on_attach = function(client, bufnr)
|
||||
-- this would disable semanticTokensProvider for all clients
|
||||
-- client.server_capabilities.semanticTokensProvider = nil
|
||||
end,
|
||||
},
|
||||
}
|
39
dotfiles/nvim/lua/plugins/astroui.lua
Normal file
39
dotfiles/nvim/lua/plugins/astroui.lua
Normal file
|
@ -0,0 +1,39 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- AstroUI provides the basis for configuring the AstroNvim User Interface
|
||||
-- Configuration documentation can be found with `:h astroui`
|
||||
-- NOTE: We highly recommend setting up the Lua Language Server (`:LspInstall lua_ls`)
|
||||
-- as this provides autocomplete and documentation while editing
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"AstroNvim/astroui",
|
||||
---@type AstroUIOpts
|
||||
opts = {
|
||||
-- change colorscheme
|
||||
colorscheme = "astrodark",
|
||||
-- AstroUI allows you to easily modify highlight groups easily for any and all colorschemes
|
||||
highlights = {
|
||||
init = { -- this table overrides highlights in all themes
|
||||
-- Normal = { bg = "#000000" },
|
||||
},
|
||||
astrodark = { -- a table of overrides/changes when applying the astrotheme theme
|
||||
-- Normal = { bg = "#000000" },
|
||||
},
|
||||
},
|
||||
-- Icons can be configured throughout the interface
|
||||
icons = {
|
||||
-- configure the loading of the lsp in the status line
|
||||
LSPLoading1 = "⠋",
|
||||
LSPLoading2 = "⠙",
|
||||
LSPLoading3 = "⠹",
|
||||
LSPLoading4 = "⠸",
|
||||
LSPLoading5 = "⠼",
|
||||
LSPLoading6 = "⠴",
|
||||
LSPLoading7 = "⠦",
|
||||
LSPLoading8 = "⠧",
|
||||
LSPLoading9 = "⠇",
|
||||
LSPLoading10 = "⠏",
|
||||
},
|
||||
},
|
||||
}
|
28
dotfiles/nvim/lua/plugins/mason.lua
Normal file
28
dotfiles/nvim/lua/plugins/mason.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- Customize Mason
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
-- use mason-tool-installer for automatically installing Mason packages
|
||||
{
|
||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||
-- overrides `require("mason-tool-installer").setup(...)`
|
||||
opts = {
|
||||
-- Make sure to use the names found in `:Mason`
|
||||
ensure_installed = {
|
||||
-- install language servers
|
||||
"lua-language-server",
|
||||
|
||||
-- install formatters
|
||||
"stylua",
|
||||
|
||||
-- install debuggers
|
||||
"debugpy",
|
||||
|
||||
-- install any other package
|
||||
"tree-sitter-cli",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
24
dotfiles/nvim/lua/plugins/none-ls.lua
Normal file
24
dotfiles/nvim/lua/plugins/none-ls.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- Customize None-ls sources
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"nvimtools/none-ls.nvim",
|
||||
opts = function(_, opts)
|
||||
-- opts variable is the default configuration table for the setup function call
|
||||
-- local null_ls = require "null-ls"
|
||||
|
||||
-- Check supported formatters and linters
|
||||
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
||||
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
||||
|
||||
-- Only insert new sources, do not replace the existing ones
|
||||
-- (If you wish to replace, use `opts.sources = {}` instead of the `list_insert_unique` function)
|
||||
opts.sources = require("astrocore").list_insert_unique(opts.sources, {
|
||||
-- Set a formatter
|
||||
-- null_ls.builtins.formatting.stylua,
|
||||
-- null_ls.builtins.formatting.prettier,
|
||||
})
|
||||
end,
|
||||
}
|
15
dotfiles/nvim/lua/plugins/treesitter.lua
Normal file
15
dotfiles/nvim/lua/plugins/treesitter.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- Customize Treesitter
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua",
|
||||
"vim",
|
||||
-- add more arguments for adding more treesitter parsers
|
||||
},
|
||||
},
|
||||
}
|
88
dotfiles/nvim/lua/plugins/user.lua
Normal file
88
dotfiles/nvim/lua/plugins/user.lua
Normal file
|
@ -0,0 +1,88 @@
|
|||
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- You can also add or configure plugins by creating files in this `plugins/` folder
|
||||
-- PLEASE REMOVE THE EXAMPLES YOU HAVE NO INTEREST IN BEFORE ENABLING THIS FILE
|
||||
-- Here are some examples:
|
||||
|
||||
---@type LazySpec
|
||||
return {
|
||||
|
||||
-- == Examples of Adding Plugins ==
|
||||
|
||||
"andweeb/presence.nvim",
|
||||
{
|
||||
"ray-x/lsp_signature.nvim",
|
||||
event = "BufRead",
|
||||
config = function() require("lsp_signature").setup() end,
|
||||
},
|
||||
|
||||
-- == Examples of Overriding Plugins ==
|
||||
|
||||
-- customize dashboard options
|
||||
{
|
||||
"folke/snacks.nvim",
|
||||
opts = {
|
||||
dashboard = {
|
||||
preset = {
|
||||
header = table.concat({
|
||||
" █████ ███████ ████████ ██████ ██████ ",
|
||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||
"███████ ███████ ██ ██████ ██ ██",
|
||||
"██ ██ ██ ██ ██ ██ ██ ██",
|
||||
"██ ██ ███████ ██ ██ ██ ██████ ",
|
||||
"",
|
||||
"███ ██ ██ ██ ██ ███ ███",
|
||||
"████ ██ ██ ██ ██ ████ ████",
|
||||
"██ ██ ██ ██ ██ ██ ██ ████ ██",
|
||||
"██ ██ ██ ██ ██ ██ ██ ██ ██",
|
||||
"██ ████ ████ ██ ██ ██",
|
||||
}, "\n"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- You can disable default plugins as follows:
|
||||
{ "max397574/better-escape.nvim", enabled = false },
|
||||
|
||||
-- You can also easily customize additional setup of plugins that is outside of the plugin's setup call
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
config = function(plugin, opts)
|
||||
require "astronvim.plugins.configs.luasnip"(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||
-- add more custom luasnip configuration such as filetype extend or custom snippets
|
||||
local luasnip = require "luasnip"
|
||||
luasnip.filetype_extend("javascript", { "javascriptreact" })
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"windwp/nvim-autopairs",
|
||||
config = function(plugin, opts)
|
||||
require "astronvim.plugins.configs.nvim-autopairs"(plugin, opts) -- include the default astronvim config that calls the setup call
|
||||
-- add more custom autopairs configuration such as custom rules
|
||||
local npairs = require "nvim-autopairs"
|
||||
local Rule = require "nvim-autopairs.rule"
|
||||
local cond = require "nvim-autopairs.conds"
|
||||
npairs.add_rules(
|
||||
{
|
||||
Rule("$", "$", { "tex", "latex" })
|
||||
-- don't add a pair if the next character is %
|
||||
:with_pair(cond.not_after_regex "%%")
|
||||
-- don't add a pair if the previous character is xxx
|
||||
:with_pair(
|
||||
cond.not_before_regex("xxx", 3)
|
||||
)
|
||||
-- don't move right when repeat character
|
||||
:with_move(cond.none())
|
||||
-- don't delete if the next character is xx
|
||||
:with_del(cond.not_after_regex "xx")
|
||||
-- disable adding a newline when you press <cr>
|
||||
:with_cr(cond.none()),
|
||||
},
|
||||
-- disable for .vim files, but it work for another filetypes
|
||||
Rule("a", "a", "-vim")
|
||||
)
|
||||
end,
|
||||
},
|
||||
}
|
5
dotfiles/nvim/lua/polish.lua
Normal file
5
dotfiles/nvim/lua/polish.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
if true then return end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
||||
|
||||
-- This will run last in the setup process.
|
||||
-- This is just pure lua so anything that doesn't
|
||||
-- fit in the normal config locations above can go here
|
6
dotfiles/nvim/neovim.yml
Normal file
6
dotfiles/nvim/neovim.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
base: lua51
|
||||
|
||||
globals:
|
||||
vim:
|
||||
any: true
|
8
dotfiles/nvim/selene.toml
Normal file
8
dotfiles/nvim/selene.toml
Normal file
|
@ -0,0 +1,8 @@
|
|||
std = "neovim"
|
||||
|
||||
[rules]
|
||||
global_usage = "allow"
|
||||
if_same_then_else = "allow"
|
||||
incorrect_standard_library_use = "allow"
|
||||
mixed_table = "allow"
|
||||
multiple_statements = "allow"
|
16
dotfiles/qemu/qemu-hooks
Executable file
16
dotfiles/qemu/qemu-hooks
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# note 25/5/31 these exports were included from my arch install, not sure why. disabling for now, if they arent needed the next time I look at this feel free to remove them
|
||||
export XAUTHORITY=/home/fred/.Xauthority
|
||||
export DISPLAY=:0
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
|
||||
|
||||
#guest_name="$1"
|
||||
#libvirt_task="$2"
|
||||
if [[ $2 = "started" ]]; then
|
||||
# on_hook runs inline on VMmanager
|
||||
echo "no-op"
|
||||
elif [[ $2 = "stopped" ]]; then
|
||||
bash /home/fred/scripts/VM/VMmanager.sh off_hook
|
||||
fi
|
||||
|
52
dotfiles/solaar/config.yaml
Normal file
52
dotfiles/solaar/config.yaml
Normal file
|
@ -0,0 +1,52 @@
|
|||
- 1.1.14
|
||||
- _NAME: MX Master 3S
|
||||
_absent: [hi-res-scroll, lowres-scroll-mode, onboard_profiles, report_rate, report_rate_extended, pointer_speed, dpi_extended, speed-change, backlight,
|
||||
backlight_level, backlight_duration_hands_out, backlight_duration_hands_in, backlight_duration_powered, backlight-timed, led_control, led_zone_, rgb_control,
|
||||
rgb_zone_, brightness_control, per-key-lighting, fn-swap, persistent-remappable-keys, disable-keyboard-keys, crown-smooth, divert-crown, divert-gkeys,
|
||||
m-key-leds, mr-key-led, multiplatform, gesture2-gestures, gesture2-divert, gesture2-params, sidetone, equalizer, adc_power_management]
|
||||
_battery: 4100
|
||||
_modelId: B03400000000
|
||||
_sensitive: {change-host: false, divert-keys: false, reprogrammable-keys: false, scroll-ratchet: true, thumb-scroll-invert: false, thumb-scroll-mode: false}
|
||||
_serial: 51EA2265
|
||||
_unitId: 51EA2265
|
||||
_wpid: B034
|
||||
change-host: null
|
||||
divert-keys: {82: 0, 83: 0, 86: 0, 195: 1, 196: 1}
|
||||
dpi: 1000
|
||||
hires-scroll-mode: false
|
||||
hires-smooth-invert: false
|
||||
hires-smooth-resolution: false
|
||||
reprogrammable-keys: {80: 80, 81: 81, 82: 82, 83: 83, 86: 86, 195: 195, 196: 196}
|
||||
scroll-ratchet: 1
|
||||
smart-shift: 1
|
||||
thumb-scroll-invert: true
|
||||
thumb-scroll-mode: false
|
||||
- _NAME: Wireless Keyboard MK270
|
||||
_modelId: Wireless Keyboard MK270
|
||||
_sensitive: {hires-scroll-mode: ignore, hires-smooth-invert: ignore, hires-smooth-resolution: ignore}
|
||||
_serial: '00000000'
|
||||
_unitId: '00000000'
|
||||
_wpid: '4023'
|
||||
fn-swap: false
|
||||
- _NAME: Wireless Mouse M185 new
|
||||
_sensitive: {hires-scroll-mode: ignore, hires-smooth-invert: ignore, hires-smooth-resolution: ignore}
|
||||
_serial: '00000000'
|
||||
_wpid: '4054'
|
||||
divert-keys: {82: 0}
|
||||
lowres-scroll-mode: false
|
||||
pointer_speed: 256
|
||||
reprogrammable-keys: {80: 80, 81: 81, 82: 82}
|
||||
- _NAME: MX Master 3 Wireless Mouse
|
||||
_modelId: B02340820000
|
||||
_sensitive: {hires-scroll-mode: ignore, hires-smooth-invert: ignore, hires-smooth-resolution: ignore}
|
||||
_serial: 73738B2B
|
||||
_unitId: 73738B2B
|
||||
_wpid: '4082'
|
||||
change-host: null
|
||||
divert-keys: {82: 0, 83: 0, 86: 0, 195: 0, 196: 0}
|
||||
dpi: 1000
|
||||
reprogrammable-keys: {80: 80, 81: 81, 82: 82, 83: 83, 86: 86, 195: 195, 196: 196}
|
||||
scroll-ratchet: 1
|
||||
smart-shift: 1
|
||||
thumb-scroll-invert: false
|
||||
thumb-scroll-mode: false
|
20
dotfiles/solaar/rules.yaml
Normal file
20
dotfiles/solaar/rules.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
%YAML 1.3
|
||||
---
|
||||
- Rule:
|
||||
- KeyIsDown: Mouse Gesture Button
|
||||
- KeyPress:
|
||||
- Alt_L
|
||||
- depress
|
||||
- MouseClick: [left, depress]
|
||||
- Rule:
|
||||
- Key: [Mouse Gesture Button, released]
|
||||
- KeyPress:
|
||||
- Alt_L
|
||||
- release
|
||||
- MouseClick: [left, release]
|
||||
- Rule:
|
||||
- Key: [Smart Shift, pressed]
|
||||
- KeyPress:
|
||||
- [Control_L, Shift_L, Q]
|
||||
- click
|
||||
...
|
90
dotfiles/thunar/uca.xml
Normal file
90
dotfiles/thunar/uca.xml
Normal file
|
@ -0,0 +1,90 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<actions>
|
||||
<action>
|
||||
<icon>utilities-terminal</icon>
|
||||
<name>Open Terminal Here</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1665544021585627-1</unique-id>
|
||||
<command>cd %f && i3-sensible-terminal -hold</command>
|
||||
<description>Example for a custom action</description>
|
||||
<range></range>
|
||||
<patterns>*</patterns>
|
||||
<startup-notify/>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon></icon>
|
||||
<name>Open root here</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1665876753058215-1</unique-id>
|
||||
<command>sudo thunar %f</command>
|
||||
<description></description>
|
||||
<range></range>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>inode-symlink</icon>
|
||||
<name>Symlink</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1699833063931640-1</unique-id>
|
||||
<command>ln -Ts %f "$(basename %n | sed "s/\(.*\)\.\(.*\)/\1-sl.\2/")"</command>
|
||||
<description>Create a symlink</description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
<audio-files/>
|
||||
<image-files/>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
<video-files/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>drive-harddisk</icon>
|
||||
<name>Hardlink</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1699833176600678-2</unique-id>
|
||||
<command>ln %f "$(basename %n | sed "s/\(.*\)\.\(.*\)/\1-hl.\2/")"</command>
|
||||
<description>Create a hardlink</description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
<audio-files/>
|
||||
<image-files/>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
<video-files/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>applications-utilities</icon>
|
||||
<name>batch hardlinks</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1732821951376075-1</unique-id>
|
||||
<command>bash -c 'for file in "$@"; do ln "$file" "$(dirname "$file")/hl-$(basename "$file")"; done' -- %F</command>
|
||||
<description></description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
<audio-files/>
|
||||
<image-files/>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
<video-files/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>edit-paste</icon>
|
||||
<name>timestamp copy</name>
|
||||
<submenu></submenu>
|
||||
<unique-id>1746467825367729-1</unique-id>
|
||||
<command>~/scripts/copy_with_timestamp.sh %f</command>
|
||||
<description>create copy of file prepended with timestamp</description>
|
||||
<range>*</range>
|
||||
<patterns>*</patterns>
|
||||
<startup-notify/>
|
||||
<audio-files/>
|
||||
<image-files/>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
<video-files/>
|
||||
</action>
|
||||
</actions>
|
26
dotfiles/volumeicon/volumeicon
Normal file
26
dotfiles/volumeicon/volumeicon
Normal file
|
@ -0,0 +1,26 @@
|
|||
[Alsa]
|
||||
card=default
|
||||
channel=Master
|
||||
|
||||
[Notification]
|
||||
show_notification=true
|
||||
notification_type=0
|
||||
|
||||
[StatusIcon]
|
||||
stepsize=5
|
||||
onclick=pavucontrol
|
||||
theme=Default
|
||||
use_panel_specific_icons=false
|
||||
lmb_slider=false
|
||||
mmb_mute=false
|
||||
use_horizontal_slider=false
|
||||
show_sound_level=false
|
||||
use_transparent_background=false
|
||||
|
||||
[Hotkeys]
|
||||
up_enabled=false
|
||||
down_enabled=false
|
||||
mute_enabled=false
|
||||
up=XF86AudioRaiseVolume
|
||||
down=XF86AudioLowerVolume
|
||||
mute=XF86AudioMute
|
84
dotfiles/xbindkeys/xbindkeysrc
Normal file
84
dotfiles/xbindkeys/xbindkeysrc
Normal file
|
@ -0,0 +1,84 @@
|
|||
# For the benefit of emacs users: -*- shell-script -*-
|
||||
###########################
|
||||
# xbindkeys configuration #
|
||||
###########################
|
||||
#
|
||||
# Version: 1.8.7
|
||||
#
|
||||
# If you edit this file, do not forget to uncomment any lines
|
||||
# that you change.
|
||||
# The pound(#) symbol may be used anywhere for comments.
|
||||
#
|
||||
# To specify a key, you can use 'xbindkeys --key' or
|
||||
# 'xbindkeys --multikey' and put one of the two lines in this file.
|
||||
#
|
||||
# The format of a command line is:
|
||||
# "command to start"
|
||||
# associated key
|
||||
#
|
||||
#
|
||||
# A list of keys is in /usr/include/X11/keysym.h and in
|
||||
# /usr/include/X11/keysymdef.h
|
||||
# The XK_ is not needed.
|
||||
#
|
||||
# List of modifier:
|
||||
# Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
|
||||
# Mod3 (CapsLock), Mod4 (win), Mod5 (Scroll).
|
||||
#
|
||||
|
||||
# The release modifier is not a standard X modifier, but you can
|
||||
# use it if you want to catch release events instead of press events
|
||||
|
||||
# By defaults, xbindkeys does not pay attention with the modifiers
|
||||
# NumLock, CapsLock and ScrollLock.
|
||||
# Uncomment the lines above if you want to pay attention to them.
|
||||
|
||||
#keystate_numlock = enable
|
||||
#keystate_capslock = enable
|
||||
#keystate_scrolllock= enable
|
||||
|
||||
#alias reset = "killall xbindkeys; sleep .2; xbindkeys"
|
||||
|
||||
################################
|
||||
# Start of keybinds #
|
||||
################################
|
||||
|
||||
### resize windows with super key + scroll
|
||||
"xdotool key --clearmodifiers Super_L+ctrl+h"
|
||||
Mod4 + b:7
|
||||
|
||||
"xdotool key --clearmodifiers Super_L+ctrl+l"
|
||||
Mod4 + b:6
|
||||
|
||||
"xdotool key --clearmodifiers Super_L+ctrl+j"
|
||||
Mod4 + b:4
|
||||
|
||||
"xdotool key --clearmodifiers Super_L+ctrl+k"
|
||||
Mod4 + b:5
|
||||
|
||||
|
||||
### left and right with scroll wheel
|
||||
#"xdotool key --clearmodifiers Left"
|
||||
#b:7
|
||||
|
||||
#"xdotool key --clearmodifiers Right"
|
||||
#b:6
|
||||
|
||||
|
||||
### switch workspaces with thumbbuttons
|
||||
"sh ~/scripts/workspace_switcher.sh next"
|
||||
b:9
|
||||
|
||||
"sh ~/scripts/workspace_switcher.sh prev"
|
||||
b:8
|
||||
|
||||
"sh ~/scripts/workspace_switcher.sh send_next"
|
||||
Mod4 + b:9
|
||||
|
||||
"sh ~/scripts/workspace_switcher.sh send_prev"
|
||||
Mod4 + b:8
|
||||
|
||||
|
||||
##################################
|
||||
# End of xbindkeys configuration #
|
||||
##################################
|
42
dotfiles/xfce-perchannel-xml/xsettings.xml
Normal file
42
dotfiles/xfce-perchannel-xml/xsettings.xml
Normal file
|
@ -0,0 +1,42 @@
|
|||
<?xml version="1.1" encoding="UTF-8"?>
|
||||
|
||||
<channel name="xsettings" version="1.0">
|
||||
<property name="Net" type="empty">
|
||||
<property name="ThemeName" type="string" value="Adwaita-dark"/>
|
||||
<property name="IconThemeName" type="empty"/>
|
||||
<property name="DoubleClickTime" type="empty"/>
|
||||
<property name="DoubleClickDistance" type="empty"/>
|
||||
<property name="DndDragThreshold" type="empty"/>
|
||||
<property name="CursorBlink" type="empty"/>
|
||||
<property name="CursorBlinkTime" type="empty"/>
|
||||
<property name="SoundThemeName" type="empty"/>
|
||||
<property name="EnableEventSounds" type="empty"/>
|
||||
<property name="EnableInputFeedbackSounds" type="empty"/>
|
||||
</property>
|
||||
<property name="Xft" type="empty">
|
||||
<property name="DPI" type="empty"/>
|
||||
<property name="Antialias" type="empty"/>
|
||||
<property name="Hinting" type="empty"/>
|
||||
<property name="HintStyle" type="empty"/>
|
||||
<property name="RGBA" type="empty"/>
|
||||
</property>
|
||||
<property name="Gtk" type="empty">
|
||||
<property name="CanChangeAccels" type="empty"/>
|
||||
<property name="ColorPalette" type="empty"/>
|
||||
<property name="FontName" type="empty"/>
|
||||
<property name="MonospaceFontName" type="empty"/>
|
||||
<property name="IconSizes" type="empty"/>
|
||||
<property name="KeyThemeName" type="empty"/>
|
||||
<property name="MenuImages" type="empty"/>
|
||||
<property name="ButtonImages" type="empty"/>
|
||||
<property name="MenuBarAccel" type="empty"/>
|
||||
<property name="CursorThemeName" type="string" value="Adwaita"/>
|
||||
<property name="CursorThemeSize" type="empty"/>
|
||||
<property name="DecorationLayout" type="string" value="icon,menu:minimize,maximize,close"/>
|
||||
<property name="DialogsUseHeader" type="empty"/>
|
||||
<property name="TitlebarMiddleClick" type="empty"/>
|
||||
</property>
|
||||
<property name="Gdk" type="empty">
|
||||
<property name="WindowScalingFactor" type="empty"/>
|
||||
</property>
|
||||
</channel>
|
2
dotfiles/xprofile/xprofile
Normal file
2
dotfiles/xprofile/xprofile
Normal file
|
@ -0,0 +1,2 @@
|
|||
# give i3 config access to path
|
||||
export PATH=$PATH:$HOME/bin
|
Loading…
Add table
Add a link
Reference in a new issue