From 855ee6fe93e074f2329a0a0914fef16a94ebbaa8 Mon Sep 17 00:00:00 2001 From: Michael Chalupiak Date: Tue, 12 Nov 2024 19:24:28 -0500 Subject: [PATCH 1/2] hls --- config/.bash_profile | 9 +++++++++ config/.bashrc | 3 ++- config/.config/nvim/after/plugin/lsp.lua | 2 ++ config/.profile | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/.bash_profile b/config/.bash_profile index 9429ccb..98876db 100644 --- a/config/.bash_profile +++ b/config/.bash_profile @@ -6,3 +6,12 @@ source ~/.bashrc # Added by Toolbox App export PATH="$PATH:/home/mikec/.local/share/JetBrains/Toolbox/scripts" + + +# BEGIN opam configuration +# This is useful if you're using opam as it adds: +# - the correct directories to the PATH +# - auto-completion for the opam binary +# This section can be safely removed at any time if needed. +test -r '/home/mikec/.opam/opam-init/init.sh' && . '/home/mikec/.opam/opam-init/init.sh' > /dev/null 2> /dev/null || true +# END opam configuration diff --git a/config/.bashrc b/config/.bashrc index 4dc2db7..4369dcf 100644 --- a/config/.bashrc +++ b/config/.bashrc @@ -171,4 +171,5 @@ alias ssh='TERM="xterm-256color" ssh' export DISABLE_TELEMETRY=YES -[ -f "/home/mikec/.ghcup/env" ] && . "/home/mikec/.ghcup/env" # ghcup-env + +[ -f "/home/mikec/.ghcup/env" ] && . "/home/mikec/.ghcup/env" # ghcup-env \ No newline at end of file diff --git a/config/.config/nvim/after/plugin/lsp.lua b/config/.config/nvim/after/plugin/lsp.lua index 3feb871..885ea7d 100755 --- a/config/.config/nvim/after/plugin/lsp.lua +++ b/config/.config/nvim/after/plugin/lsp.lua @@ -27,6 +27,8 @@ lsp_config.nim_langserver.setup{ } } +lsp_config.hls.setup{} + local cmp = require("cmp") local cmp_select = {behavior = cmp.SelectBehavior.Select} local cmp_mappings = lsp.defaults.cmp_mappings({ diff --git a/config/.profile b/config/.profile index ac4aae2..d56d937 100644 --- a/config/.profile +++ b/config/.profile @@ -9,4 +9,5 @@ fi export PATH="$PATH:/home/mikec/.local/share/JetBrains/Toolbox/scripts" + [ -f "/home/mikec/.ghcup/env" ] && . "/home/mikec/.ghcup/env" # ghcup-env \ No newline at end of file From d0c2f9551f5267b52f48b20adc736ef9bed41cbb Mon Sep 17 00:00:00 2001 From: Michael Chalupiak Date: Tue, 12 Nov 2024 19:26:18 -0500 Subject: [PATCH 2/2] commit --- config/.config/bspwm/bspwmrc | 1 + config/.scripts/mounter | 3 ++- config/.scripts/webcam | 1 + config/.xprofile | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 config/.scripts/webcam diff --git a/config/.config/bspwm/bspwmrc b/config/.config/bspwm/bspwmrc index dd58efa..39c9fa7 100755 --- a/config/.config/bspwm/bspwmrc +++ b/config/.config/bspwm/bspwmrc @@ -4,6 +4,7 @@ sxhkd & xsetroot -cursor_name left_ptr pgrep bspswallow || bspswallow & +pgrep statnot || statnot & # polybar example & #~/.scripts/panel.sh if [ $(pgrep polybar) ]; then diff --git a/config/.scripts/mounter b/config/.scripts/mounter index 389f2d3..6710b20 100755 --- a/config/.scripts/mounter +++ b/config/.scripts/mounter @@ -57,7 +57,7 @@ test -n "$alldrives" # Feed all found drives to dmenu and get user choice. chosen="$(echo "$alldrives" | dmenu -p "Mount which drive?" -i)" - +# # Function for prompting user for a mountpoint. getmount(){ mp="$(find /mnt /media /mount /home -maxdepth 1 -type d 2>/dev/null | dmenu -i -p "Mount this drive where?")" @@ -110,6 +110,7 @@ case "$chosen" in 📱*) notify-send "❗Note" "Remember to allow file access on your phone now." + echo "here" getmount number="${chosen%%:*}" number="${chosen:1}" # This is a bashism. diff --git a/config/.scripts/webcam b/config/.scripts/webcam new file mode 100755 index 0000000..6c61514 --- /dev/null +++ b/config/.scripts/webcam @@ -0,0 +1 @@ +mpv --demuxer-lavf-format=video4linux2 --demuxer-lavf-o-set=input_format=mjpeg --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1) diff --git a/config/.xprofile b/config/.xprofile index 4948809..4bb6218 100644 --- a/config/.xprofile +++ b/config/.xprofile @@ -1,6 +1,8 @@ export PATH="${PATH}:$HOME/.scripts:~/.local/share/gem/ruby/3.0.0/bin" #export GDK_SCALE=2 #export GDK_DPI_SCALE=0.5 +export XCURSOR_SIZE=32 +export SUDO_ASKPASS=ksshaskpass #sxhkd -c $HOME/.config/berry/sxhkdrc & # xrandr --output DisplayPort-0 --rate 165 autorandr -c