nvim lsp improvements, changed back to alacritty and added tmux sessionizer
This commit is contained in:
parent
6eeb393859
commit
184e72e8af
18 changed files with 71 additions and 3745 deletions
13
.local/share/scripts/monitor.sh
Executable file
13
.local/share/scripts/monitor.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
gpu_mode=$(/usr/bin/envycontrol -q)
|
||||
if [ "$gpu_mode" = "nvidia" ]; then
|
||||
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
||||
xrandr --auto
|
||||
xrandr --output HDMI-0 --above eDP-1-1
|
||||
xrandr --output HDMI-0 --primary
|
||||
else
|
||||
xrandr --auto
|
||||
xrandr --output HDMI-1-0 --above eDP-1
|
||||
xrandr --output HDMI-1-0 --primary
|
||||
fi
|
3
.local/share/scripts/msmb.sh
Executable file
3
.local/share/scripts/msmb.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
sudo mount -t cifs -o uid=1000,credentials=/home/tsousa/.smb-creds //192.168.1.56/smb-apollo /mnt/smb/
|
26
.local/share/scripts/tmux-sessionizer.sh
Executable file
26
.local/share/scripts/tmux-sessionizer.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
# Script from https://github.com/ThePrimeagen/.dotfiles/blob/master/bin/.local/scripts/tmux-sessionizer
|
||||
|
||||
if [[ $# -eq 1 ]]; then
|
||||
selected=$1
|
||||
else
|
||||
selected=$(find ~/.config ~/gits ~/uni ~/2sem ~/ -mindepth 1 -maxdepth 1 -type d | fzf)
|
||||
fi
|
||||
|
||||
if [[ -z "$selected" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
selected_name=$(basename "$selected" | tr . _)
|
||||
tmux_running=$(pgrep tmux)
|
||||
|
||||
if [[ -z $TMUX ]] && [[ -z "$tmux_running" ]]; then
|
||||
tmux new-session -s "$selected_name" -c "$selected"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if ! tmux has-session -t="$selected_name" 2> /dev/null; then
|
||||
tmux new-session -ds "$selected_name" -c "$selected"
|
||||
fi
|
||||
|
||||
tmux switch-client -t "$selected_name"
|
7
.local/share/scripts/wgetbb.sh
Executable file
7
.local/share/scripts/wgetbb.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
creds=~/.bb-creds
|
||||
username=$(awk -F '=' '/username/ {print $2}' $creds)
|
||||
password=$(awk -F '=' '/password/ {print $2}' $creds)
|
||||
|
||||
wget --user="$username" --password="$password" "$1"
|
Loading…
Add table
Add a link
Reference in a new issue