Compare commits
1
Commits
main
..
eaf0870894
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eaf0870894 |
No files matched your search
@@ -11,7 +11,6 @@ export_paths+=("${HOME}/dotfiles/scripts")
|
|||||||
export_paths+=("${HOME}/dotfiles/desktop-files")
|
export_paths+=("${HOME}/dotfiles/desktop-files")
|
||||||
export_paths+=("/opt/jlink")
|
export_paths+=("/opt/jlink")
|
||||||
export_paths+=("${HOME}/.cargo/bin")
|
export_paths+=("${HOME}/.cargo/bin")
|
||||||
export_paths+=("/opt/arm-gnu-toolchain-15.2.rel1-x86_64-arm-none-eabi/bin")
|
|
||||||
|
|
||||||
for entry in ${export_paths[@]}; do
|
for entry in ${export_paths[@]}; do
|
||||||
if ! [[ -d "${entry}" ]]; then
|
if ! [[ -d "${entry}" ]]; then
|
||||||
|
|||||||
+9
-12
@@ -16,7 +16,7 @@ export HISTFILESIZE=${history_size}
|
|||||||
# configure pagers
|
# configure pagers
|
||||||
export PAGER='less --use-color -R'
|
export PAGER='less --use-color -R'
|
||||||
|
|
||||||
if $(command -v nvim &>/dev/null); then
|
if $(which nvim &>/dev/null); then
|
||||||
export MANPAGER='nvim +Man!'
|
export MANPAGER='nvim +Man!'
|
||||||
alias vim='nvim'
|
alias vim='nvim'
|
||||||
fi
|
fi
|
||||||
@@ -31,16 +31,13 @@ fi
|
|||||||
#bind -r "\C-l"
|
#bind -r "\C-l"
|
||||||
|
|
||||||
# define aliases
|
# define aliases
|
||||||
if ! $(command -v navigate &>/dev/null); then
|
if ! $(which navigate &>/dev/null); then
|
||||||
alias push='pushd'
|
alias push='pushd'
|
||||||
alias pop='popd'
|
alias pop='popd'
|
||||||
alias stack='dirs -v'
|
alias stack='dirs -v'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $(command -v scan &>/dev/null); then
|
if $(which eza &>/dev/null); then
|
||||||
alias list='scan -Alg --sort ext --permissions octal --time modified'
|
|
||||||
alias tree='scan -Alg --sort ext --permissions octal --time modified -t'
|
|
||||||
elif $(command -v eza &>/dev/null); then
|
|
||||||
alias list='eza -lao --no-permissions --group-directories-first \
|
alias list='eza -lao --no-permissions --group-directories-first \
|
||||||
-s=ext --color=always --time-style long-iso'
|
-s=ext --color=always --time-style long-iso'
|
||||||
alias tree='eza -laoT --no-permissions --group-directories-first \
|
alias tree='eza -laoT --no-permissions --group-directories-first \
|
||||||
@@ -50,7 +47,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# aliases related to `grep`
|
# aliases related to `grep`
|
||||||
if $(command -v ug &>/dev/null); then
|
if $(which ug &>/dev/null); then
|
||||||
alias ugi='ug -j'
|
alias ugi='ug -j'
|
||||||
fi
|
fi
|
||||||
alias grep='grep --color=always'
|
alias grep='grep --color=always'
|
||||||
@@ -59,14 +56,14 @@ alias bdiff='diff -uw --color=always'
|
|||||||
|
|
||||||
alias sbash='source ~/.bashrc'
|
alias sbash='source ~/.bashrc'
|
||||||
|
|
||||||
if $(command -v ip &>/dev/null); then
|
if $(which ip &>/dev/null); then
|
||||||
alias ip='ip -c'
|
alias ip='ip -c'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# because `libreWolf` is ambiguous for tab completion
|
# because `libreWolf` is ambiguous for tab completion
|
||||||
if $(command -v librewolf &>/dev/null); then
|
if $(which librewolf &>/dev/null); then
|
||||||
alias firefox='librewolf'
|
alias firefox='librewolf'
|
||||||
elif $(command -v librewolf.appimage &>/dev/null); then
|
elif $(which librewolf.appimage &>/dev/null); then
|
||||||
alias firefox='librewolf.appimage'
|
alias firefox='librewolf.appimage'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -74,7 +71,7 @@ fi
|
|||||||
## run script to setup default tmux session and then attach the session
|
## run script to setup default tmux session and then attach the session
|
||||||
## attaching the session needs to be done from the calling shell, otherwise
|
## attaching the session needs to be done from the calling shell, otherwise
|
||||||
## the setup script will only terminate after detaching or killing the session
|
## the setup script will only terminate after detaching or killing the session
|
||||||
if $(command -v tmux &>/dev/null); then
|
if $(which tmux &>/dev/null); then
|
||||||
alias dmux='bash default-tmux-session.sh && tmux attach'
|
alias dmux='bash default-tmux-session.sh && tmux attach'
|
||||||
|
|
||||||
alias tks='tmux kill-session'
|
alias tks='tmux kill-session'
|
||||||
@@ -94,7 +91,7 @@ PS1='[\u@\h \W]\$ '
|
|||||||
export TERM="xterm-256color"
|
export TERM="xterm-256color"
|
||||||
|
|
||||||
# setup `starship`
|
# setup `starship`
|
||||||
if $(command -v starship &>/dev/null); then
|
if $(which starship &>/dev/null); then
|
||||||
eval "$(starship init bash)"
|
eval "$(starship init bash)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Name=firefox
|
Name=firefox
|
||||||
Comment=launch zegonix's browser of choice
|
Comment=launch zegonix browser of choice
|
||||||
Exec=librewolf.appimage
|
Exec=bash start-browser.sh
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Network;WebBrowser;
|
Categories=Network;WebBrowser;
|
||||||
@@ -16,7 +16,7 @@ background-opacity = 1.0
|
|||||||
selection-invert-fg-bg = true
|
selection-invert-fg-bg = true
|
||||||
|
|
||||||
window-decoration = server
|
window-decoration = server
|
||||||
mouse-scroll-multiplier = precision:1.0,discrete:1
|
mouse-scroll-multiplier = 1.0
|
||||||
|
|
||||||
app-notifications = no-clipboard-copy
|
app-notifications = no-clipboard-copy
|
||||||
copy-on-select = false
|
copy-on-select = false
|
||||||
@@ -24,11 +24,4 @@ clipboard-paste-protection = false
|
|||||||
clipboard-read = allow
|
clipboard-read = allow
|
||||||
clipboard-write = allow
|
clipboard-write = allow
|
||||||
|
|
||||||
# unbind keybindings
|
|
||||||
keybind = alt+one=unbind
|
|
||||||
keybind = alt+two=unbind
|
|
||||||
keybind = alt+three=unbind
|
|
||||||
keybind = alt+four=unbind
|
|
||||||
|
|
||||||
# custom theme!
|
|
||||||
theme = zegonix
|
theme = zegonix
|
||||||
@@ -22,4 +22,4 @@
|
|||||||
|
|
||||||
oneline = log \
|
oneline = log \
|
||||||
-n 20 \
|
-n 20 \
|
||||||
--pretty='tformat:%C(yellow)%h %C(brightblue)%<(8,trunc)%an %C(blue)%as%C(auto)%d %C(reset)%s'
|
--pretty='tformat:%C(yellow)%h %C(blue)%as%C(auto)%d %C(reset)%s'
|
||||||
+33
-45
@@ -1,25 +1,20 @@
|
|||||||
# i3 configuration
|
# 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).
|
||||||
|
#
|
||||||
|
|
||||||
## [note]
|
# i3 config file (v4)
|
||||||
##
|
#
|
||||||
## this configuration relies on Xresources for the monitor setup
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
||||||
## edit '~/.Xresources' and add the following lines:
|
|
||||||
##
|
|
||||||
## ```
|
|
||||||
## i3wm.main_display: <output>
|
|
||||||
## i3wm.aux_display: <output>
|
|
||||||
## # example:
|
|
||||||
## # i3wm.main_display: DP-1
|
|
||||||
## ```
|
|
||||||
##
|
|
||||||
## then execute `xrdb -merge ~/.Xresources`
|
|
||||||
|
|
||||||
|
set $Alt Mod1
|
||||||
set $alt Mod1
|
set $Super Mod4
|
||||||
set $super Mod4
|
|
||||||
set $mod Mod4
|
set $mod Mod4
|
||||||
|
|
||||||
# variable definitions for workspaces
|
# 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"
|
||||||
@@ -31,7 +26,7 @@ set $ws8 "8"
|
|||||||
set $ws9 "9"
|
set $ws9 "9"
|
||||||
set $ws10 "10"
|
set $ws10 "10"
|
||||||
|
|
||||||
# use modifier to manipulate floating windows with the mouse
|
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# move tiling windows via drag & drop by left-clicking into the title bar,
|
# move tiling windows via drag & drop by left-clicking into the title bar,
|
||||||
@@ -117,7 +112,7 @@ bindsym $mod+n split h
|
|||||||
bindsym $mod+v split v
|
bindsym $mod+v split v
|
||||||
|
|
||||||
# toggle window between tiling/floating
|
# toggle window between tiling/floating
|
||||||
bindsym $mod+$alt+Shift+f floating toggle
|
bindsym $mod+$Alt+Shift+f floating toggle
|
||||||
|
|
||||||
# enter fullscreen mode for the focused container
|
# enter fullscreen mode for the focused container
|
||||||
bindsym $mod+f fullscreen toggle
|
bindsym $mod+f fullscreen toggle
|
||||||
@@ -149,22 +144,22 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
|
|||||||
bindsym $mod+Shift+z move scratchpad
|
bindsym $mod+Shift+z move scratchpad
|
||||||
|
|
||||||
# move focused container and switch to workspace
|
# move focused container and switch to workspace
|
||||||
bindsym $mod+$alt+1 move container to workspace number $ws1; workspace number $ws1
|
bindsym $mod+$Alt+1 move container to workspace number $ws1; workspace number $ws1
|
||||||
bindsym $mod+$alt+2 move container to workspace number $ws2; workspace number $ws2
|
bindsym $mod+$Alt+2 move container to workspace number $ws2; workspace number $ws2
|
||||||
bindsym $mod+$alt+3 move container to workspace number $ws3; workspace number $ws3
|
bindsym $mod+$Alt+3 move container to workspace number $ws3; workspace number $ws3
|
||||||
bindsym $mod+$alt+4 move container to workspace number $ws4; workspace number $ws4
|
bindsym $mod+$Alt+4 move container to workspace number $ws4; workspace number $ws4
|
||||||
bindsym $mod+$alt+5 move container to workspace number $ws5; workspace number $ws5
|
bindsym $mod+$Alt+5 move container to workspace number $ws5; workspace number $ws5
|
||||||
bindsym $mod+$alt+6 move container to workspace number $ws6; workspace number $ws6
|
bindsym $mod+$Alt+6 move container to workspace number $ws6; workspace number $ws6
|
||||||
bindsym $mod+$alt+7 move container to workspace number $ws7; workspace number $ws7
|
bindsym $mod+$Alt+7 move container to workspace number $ws7; workspace number $ws7
|
||||||
bindsym $mod+$alt+8 move container to workspace number $ws8; workspace number $ws8
|
bindsym $mod+$Alt+8 move container to workspace number $ws8; workspace number $ws8
|
||||||
bindsym $mod+$alt+9 move container to workspace number $ws9; workspace number $ws9
|
bindsym $mod+$Alt+9 move container to workspace number $ws9; workspace number $ws9
|
||||||
bindsym $mod+$alt+0 move container to workspace number $ws10; workspace number $ws10
|
bindsym $mod+$Alt+0 move container to workspace number $ws10; workspace number $ws10
|
||||||
|
|
||||||
# switch workspace
|
# switch workspace
|
||||||
bindsym $mod+Shift+Tab workspace prev
|
bindsym $mod+Shift+Tab workspace prev
|
||||||
bindsym $alt+Shift+Tab workspace prev
|
bindsym $Alt+Shift+Tab workspace prev
|
||||||
bindsym $mod+Tab workspace next
|
bindsym $mod+Tab workspace next
|
||||||
bindsym $alt+Tab workspace next
|
bindsym $Alt+Tab workspace next
|
||||||
|
|
||||||
# move focused workspace to output
|
# move focused workspace to output
|
||||||
bindsym $mod+u move workspace to output left
|
bindsym $mod+u move workspace to output left
|
||||||
@@ -173,9 +168,8 @@ bindsym $mod+o move workspace to output up
|
|||||||
bindsym $mod+p move workspace to output right
|
bindsym $mod+p move workspace to output right
|
||||||
|
|
||||||
# take screenshots
|
# take screenshots
|
||||||
bindsym $mod+s exec --no-startup-id bash x11-screenshot.sh "clipboard"
|
bindsym $mod+s exec --no-startup-id maim -suo | xclip -selection clipboard -t image/png
|
||||||
bindsym $mod+Shift+s exec --no-startup-id bash x11-screenshot.sh
|
bindsym $mod+Shift+s exec --no-startup-id maim -suo "${HOME}/Pictures/screenshots/$(date '+%Y%m%d_%H%M%S').png"
|
||||||
bindsym $mod+c exec --no-startup-id bash x11-screenshot.sh "colour"
|
|
||||||
|
|
||||||
# use pactl for media keys
|
# use pactl for media keys
|
||||||
set $refresh_i3status killall -SIGUSR1 i3status
|
set $refresh_i3status killall -SIGUSR1 i3status
|
||||||
@@ -203,7 +197,7 @@ mouse_warping none
|
|||||||
############################
|
############################
|
||||||
|
|
||||||
# load background image
|
# load background image
|
||||||
exec --no-startup-id feh --bg-fill ~/dotfiles/images/pixel-windows.png
|
exec --no-startup-id feh --bg-fill ~/dotfiles/images/pixel-hill.png
|
||||||
|
|
||||||
# window border style
|
# window border style
|
||||||
default_border pixel 2
|
default_border pixel 2
|
||||||
@@ -236,15 +230,9 @@ client.urgent $transp $background $text_focus $transp $transp
|
|||||||
client.placeholder $transp $background $text_focus $transp $transp
|
client.placeholder $transp $background $text_focus $transp $transp
|
||||||
client.background $background
|
client.background $background
|
||||||
|
|
||||||
|
exec i3-msg workspace number $ws1
|
||||||
|
|
||||||
|
|
||||||
# window rules
|
# window rules
|
||||||
for_window [title="Slay.*" class="steam.*"] floating enable
|
for_window [title="Slay.*" class="steam.*"] floating enable
|
||||||
|
|
||||||
# display workspace 1 on the main display at start
|
|
||||||
set_from_resource $main_display i3wm.main_display DP-1
|
|
||||||
set_from_resource $aux_display i3wm.aux_display DP-2
|
|
||||||
|
|
||||||
workspace $ws1 output $main_display
|
|
||||||
workspace $ws2 output $aux_display
|
|
||||||
|
|
||||||
# select workspace 1 at startup
|
|
||||||
exec i3-msg workspace number $ws1
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
|
|
||||||
[Default Applications]
|
|
||||||
text/html=firefox.desktop
|
|
||||||
x-scheme-handler/http=firefox.desktop
|
|
||||||
x-scheme-handler/https=firefox.desktop
|
|
||||||
x-scheme-handler/about=firefox.desktop
|
|
||||||
x-scheme-handler/unknown=firefox.desktop
|
|
||||||
image/png=firefox.desktop
|
|
||||||
image/jpeg=firefox.desktop
|
|
||||||
image/gif=firefox.desktop
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
|
branch = "0.1.x",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
{ -- If encountering errors, see telescope-fzf-native README for installation instructions
|
{ -- If encountering errors, see telescope-fzf-native README for installation instructions
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ vim.keymap.set("n", "<leader>+", "<C-a>", opts) -- increment
|
|||||||
vim.keymap.set("n", "<leader>-", "<C-x>", opts) -- decrement
|
vim.keymap.set("n", "<leader>-", "<C-x>", opts) -- decrement
|
||||||
|
|
||||||
-- Window management
|
-- Window management
|
||||||
vim.keymap.set("n", "<leader>h", "<C-w>v", opts) -- split window vertically
|
vim.keymap.set("n", "<leader>v", "<C-w>v", opts) -- split window vertically
|
||||||
vim.keymap.set("n", "<leader>v", "<C-w>s", opts) -- split window horizontally
|
vim.keymap.set("n", "<leader>h", "<C-w>s", opts) -- split window horizontally
|
||||||
vim.keymap.set("n", "<leader>se", "<C-w>=", opts) -- make split windows equal width & height
|
vim.keymap.set("n", "<leader>se", "<C-w>=", opts) -- make split windows equal width & height
|
||||||
|
|
||||||
-- Navigate between splits
|
-- Navigate between splits
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ separator-foreground = ${colors.background}
|
|||||||
font-0 = "Jet Brains Mono Nerd Font:size=14:weight=Bold;2"
|
font-0 = "Jet Brains Mono Nerd Font:size=14:weight=Bold;2"
|
||||||
|
|
||||||
modules-left = xworkspaces xwindow
|
modules-left = xworkspaces xwindow
|
||||||
modules-right = xkeyboard pulseaudio eth date
|
modules-right = xkeyboard pulseaudio cpu eth date
|
||||||
|
|
||||||
cursor-click = pointer
|
cursor-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
@@ -162,6 +162,13 @@ format-prefix = "RAM "
|
|||||||
format-prefix-foreground = ${colors.primary}
|
format-prefix-foreground = ${colors.primary}
|
||||||
label = %percentage_used:2%%
|
label = %percentage_used:2%%
|
||||||
|
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 2
|
||||||
|
format-prefix = " "
|
||||||
|
format-prefix-foreground = ${colors.primary}
|
||||||
|
label = %percentage:2%%
|
||||||
|
|
||||||
[network-base]
|
[network-base]
|
||||||
type = internal/network
|
type = internal/network
|
||||||
interval = 5
|
interval = 5
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ function __search-history {
|
|||||||
READLINE_POINT=$((0 + ${#command}))
|
READLINE_POINT=$((0 + ${#command}))
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$-" == *i* ]] && $(which fzf &>/dev/null); then
|
if [[ "$-" == *i* ]] && which fzf &>/dev/null; then
|
||||||
bind -r "\C-r"
|
bind -r "\C-r"
|
||||||
bind -x '"\C-r": __search-history'
|
bind -x '"\C-r": __search-history'
|
||||||
fi
|
fi
|
||||||
Executable
+9
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if $(which librewolf &>/dev/null); then
|
||||||
|
librewolf
|
||||||
|
elif $(which librewolf.appimage); then
|
||||||
|
librewolf.appimage
|
||||||
|
else
|
||||||
|
notify-send "[ERROR]" "Failed to start browser"
|
||||||
|
fi
|
||||||
Regular → Executable
+4
-4
@@ -6,7 +6,7 @@ function remove-whitespace {
|
|||||||
exclude_paths=(
|
exclude_paths=(
|
||||||
".git"
|
".git"
|
||||||
)
|
)
|
||||||
exclude_extensions=(
|
exclude_files=(
|
||||||
"*.lst"
|
"*.lst"
|
||||||
"*.map"
|
"*.map"
|
||||||
"*.svd"
|
"*.svd"
|
||||||
@@ -97,16 +97,16 @@ function remove-whitespace {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
excludes+=(")" "-type" "d" "-prune" "-o")
|
excludes+=(")" "-type d" "-prune" "-o")
|
||||||
|
|
||||||
for arg in "${exclude_extensions[@]}"; do
|
for arg in "${exclude_files[@]}"; do
|
||||||
excludes+=("-not" "-name" "${arg}")
|
excludes+=("-not" "-name" "${arg}")
|
||||||
done
|
done
|
||||||
|
|
||||||
for arg in "${path_args[@]}"; do
|
for arg in "${path_args[@]}"; do
|
||||||
files=("$(
|
files=("$(
|
||||||
find "${arg}" \
|
find "${arg}" \
|
||||||
"${excludes[@]}" \
|
${excludes[@]} \
|
||||||
-type f \
|
-type f \
|
||||||
-exec grep -EIq "${grep_regex}" {} \; \
|
-exec grep -EIq "${grep_regex}" {} \; \
|
||||||
-print
|
-print
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
unset use_clipboard
|
|
||||||
if [[ "$1" == "--clipboard" ]]; then
|
|
||||||
use_clipboard="true"
|
|
||||||
elif [[ "$1" == "--colour" ]]; then
|
|
||||||
pick_colour="true"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! $(which slop &>/dev/null); then
|
|
||||||
notify-send "[screenshot]" "missing \`slop\`"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
if [[ -n "${use_clipboard}" ]] && ! $(which xclip &>/dev/null); then
|
|
||||||
notify-send "[screenshot]" "missing \`xclip\`"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
screenshots_path="${HOME}/screenshots"
|
|
||||||
if [[ ! -d "${screenshots_path}" ]]; then
|
|
||||||
mkdir "${screenshots_path}"
|
|
||||||
fi
|
|
||||||
temp_file="${screenshots_path}/temporary.png"
|
|
||||||
|
|
||||||
maim -suo -f png -t 0 "${temp_file}"
|
|
||||||
|
|
||||||
# meh!
|
|
||||||
function colour_picker {
|
|
||||||
colour_value="$(magick "${temp_file}" -scale 1x1\! -format "#%[hex:p{0,0}]" info:)"
|
|
||||||
notify-send "[colour picker]" "${colour_value}"
|
|
||||||
echo "${colour_value}" | xclip -selection clipboard
|
|
||||||
remove_temporary_file
|
|
||||||
}
|
|
||||||
|
|
||||||
function clipboard {
|
|
||||||
xclip -selection clipboard -t image/png <"${temp_file}"
|
|
||||||
remove_temporary_file
|
|
||||||
}
|
|
||||||
|
|
||||||
function save_screenshot {
|
|
||||||
mv "${temp_file}" "${screenshots_path}/$(date '+%Y%m%d_%H%M%S').png"
|
|
||||||
}
|
|
||||||
|
|
||||||
function remove_temporary_file {
|
|
||||||
rm "${temp_file}"
|
|
||||||
}
|
|
||||||
|
|
||||||
case "$1" in
|
|
||||||
"clipboard") clipboard ;;
|
|
||||||
"colour") colour_picker ;;
|
|
||||||
*) save_screenshot ;;
|
|
||||||
esac
|
|
||||||
@@ -48,14 +48,14 @@ bind-key v split-pane -v -c "#{pane_current_path}"
|
|||||||
bind-key h split-pane -h -c "#{pane_current_path}"
|
bind-key h split-pane -h -c "#{pane_current_path}"
|
||||||
bind-key b break-pane
|
bind-key b break-pane
|
||||||
unbind t
|
unbind t
|
||||||
bind-key t command-prompt -p "move pane to window:" "join-pane -t :'%%'"
|
bind-key t command-prompt -p "move pane to window:" "join-pane -t '%%'"
|
||||||
|
|
||||||
bind-key -n M-1 select-layout even-horizontal
|
bind-key -n M-1 select-layout even-horizontal
|
||||||
bind-key -n M-2 select-layout even-vertical
|
bind-key -n M-2 select-layout even-vertical
|
||||||
bind-key -n M-3 select-layout tiled
|
bind-key -n M-3 select-layout tiled
|
||||||
|
|
||||||
unbind x
|
unbind x
|
||||||
bind-key x kill-pane
|
bind-key x kill-pane -t +0
|
||||||
|
|
||||||
# detach current session and close terminal
|
# detach current session and close terminal
|
||||||
bind-key k run "tmux detach -P"
|
bind-key k run "tmux detach -P"
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ set-option -g renumber-windows on
|
|||||||
set -g status-interval 5
|
set -g status-interval 5
|
||||||
|
|
||||||
# buffer size
|
# buffer size
|
||||||
set-option -g history-limit 50000
|
set-option -g history-limit 10000
|
||||||
|
|
||||||
# source keymaps
|
# source keymaps
|
||||||
source $HOME/.config/tmux/keymaps.conf
|
source $HOME/.config/tmux/keymaps.conf
|
||||||
|
|||||||
Reference in new issue
Block a user