diff --git a/env/.config/.profile b/env/.config/.profile index b1a8520..ad7f60f 100755 --- a/env/.config/.profile +++ b/env/.config/.profile @@ -95,7 +95,7 @@ alias msfd="fukn mount /dev/sdc1 u2" alias msf="fukn cryptsetup open /dev/sdc2 flashdrive && fukn mount /dev/mapper/flashdrive ~/u" alias umsf="fukn umount ~/u && fukn cryptsetup close flashdrive" -alias cam="ffplay -input_format mjpeg -fast -fflags +nobuffer -i -framerate 30 -max_delay 100 -max_probe_packets 0 -analyzeduration 0 -flags +low_delay /dev/video0" +alias cam="ffplay -input_format mjpeg -fast -fflags +nobuffer -i -framerate 30 -max_delay 100 -max_probe_packets 0 -analyzeduration 0 -flags +low_delay" alias sc="ffmpeg -f x11grab -framerate 1 -video_size 1920x1200 -i :0.0 -vframes 1 -crf 18 ~/Pictures/Screenshots/$(date '+%m-%d-%Y-%I-%M')_${RANDOM}_screenshot.jpeg" alias sccam="ffmpeg -f video4linux2 -i /dev/v4l/by-id/usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera_SN0001-video-index0 -vframes 1 -video_size 1280x720 test.jpeg" alias scs="sleep 3s && ffmpeg -f x11grab -framerate 1 -video_size 1920x1200 -i :0.0 -vframes 1 -crf 18 output.jpeg" diff --git a/env/.config/i3/config b/env/.config/i3/config index 6d14cc9..5d0393f 100644 --- a/env/.config/i3/config +++ b/env/.config/i3/config @@ -98,6 +98,7 @@ bindsym $mod+q kill # start dmenu (a program launcher) bindsym $mod+d exec --no-startup-id "rofi -x11 -show drun" bindsym $mod+SHIFT+D exec $HOME/.local/bin/system/rofi-search-web.sh +bindsym $mod+Control+period exec $HOME/.local/bin/system/kaomoji-picker.sh #toggle border bindsym $mod+Shift+b border toggle diff --git a/env/.config/i3status/config b/env/.config/i3status/config index 52ccec0..34c18c0 100644 --- a/env/.config/i3status/config +++ b/env/.config/i3status/config @@ -7,8 +7,8 @@ # If the above line is not correctly displayed, fix your editor first! general { - colors = true - interval = 5 + colors = true + interval = 5 } order += "ipv6" @@ -21,33 +21,33 @@ order += "memory" order += "tztime local" wireless _first_ { - format_up = "W: (%quality at %essid) %ip" - format_down = "W: down" + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" } ethernet _first_ { - format_up = "E: %ip (%speed)" - format_down = "E: down" + format_up = "E: %ip (%speed)" + format_down = "E: down" } battery all { - format = "%status %percentage %remaining" + format = "%status %percentage %remaining" } disk "/" { - format = "%avail" + format = "%avail" } load { - format = "%1min" + format = "%1min" } memory { - format = "%used | %available" - threshold_degraded = "1G" - format_degraded = "MEMORY < %available" + format = "%used | %available" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" } tztime local { - format = "%a %m/%d/%Y %I:%M%p" + format = "%a %m/%d/%Y %I:%M%p" } diff --git a/env/.config/rofi/config.rasi b/env/.config/rofi/config.rasi index 837eea0..bf6a13d 100644 --- a/env/.config/rofi/config.rasi +++ b/env/.config/rofi/config.rasi @@ -13,3 +13,14 @@ window, mainbox{ //border-radius: 20px; } + +configuration { + kb-row-up: "Up,Control+k,Shift+Tab,Shift+ISO_Left_Tab"; + kb-row-down: "Down,Control+j"; + kb-accept-entry: "Control+m,Return,KP_Enter"; + terminal: "mate-terminal"; + kb-remove-to-eol: "Control+Shift+e"; + /*kb-mode-next: "Shift+Right,Control+Tab,Control+l";*/ + kb-mode-previous: "Shift+Left,Control+Shift+Tab,Control+h"; + kb-remove-char-back: "BackSpace"; +} diff --git a/env/.config/tmux/tmux.conf b/env/.config/tmux/tmux.conf index b3702ba..7579dd7 100755 --- a/env/.config/tmux/tmux.conf +++ b/env/.config/tmux/tmux.conf @@ -8,7 +8,7 @@ set -g visual-activity off #set -g status-interval 3 unbind C-b -set-option -g prefix C-Space +set-option -g prefix C-space # set vim mode set-window-option -g mode-keys vi @@ -33,15 +33,15 @@ setw -g pane-base-index 1 set -g renumber-windows on # renumber windows when one is closed # nav rebinds -bind -r h select-pane -L -bind -r j select-pane -D -bind -r k select-pane -U -bind -r l select-pane -R +bind -r C-h select-pane -L +bind -r C-j select-pane -D +bind -r C-k select-pane -U +bind -r C-l select-pane -R -bind -r C-h resize-pane -L 5 -bind -r C-j resize-pane -D 5 -bind -r C-k resize-pane -U 5 -bind -r C-l resize-pane -R 5 +bind -r h resize-pane -L 5 +bind -r j resize-pane -D 5 +bind -r k resize-pane -U 5 +bind -r l resize-pane -R 5 bind -r m resize-pane -Z # maximize # pane joining diff --git a/env/.local/bin/scripts/autoport_mc.sh b/env/.local/bin/scripts/autoport_mc.sh new file mode 100755 index 0000000..8ccf0b0 --- /dev/null +++ b/env/.local/bin/scripts/autoport_mc.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# this finds the log file from a picked instance using rofi. then fords traffic thorugh 25565 +if [ -z "$LOG_FILE" ]; then + choice="$HOME/stuff/minecraft/polymc/instances/$(ls ~/stuff/minecraft/polymc/instances | rofi -dmenu -p "Instance")" + LOG_FILE="$(find "$choice" -mindepth 1 -maxdepth 1 -type d | grep "minecraft$")/logs/latest.log" +fi + +setport="$(cat "$LOG_FILE" | grep "Started on" | sed 's/.*Started on //' | tail -n 1)" +echo $setport +if [ "$setport" ]; then + doas socat TCP6-LISTEN:25565,fork TCP4:127.0.0.1:$setport +fi diff --git a/env/.local/bin/system/kaomoji-picker.sh b/env/.local/bin/system/kaomoji-picker.sh new file mode 100755 index 0000000..d1ac4fd --- /dev/null +++ b/env/.local/bin/system/kaomoji-picker.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# set up to work with https://github.com/Aptivi-Analytics/KaomojiList.git + +KAO_FILE="$HOME/stuff/manual-programs/KaomojiList/kaomojis.json" + +choices=$(jq '.[]|.categories|.[]|.name' "$KAO_FILE" | sed 's/"//g') + +choice=$(echo "$choices" | sed /^$/d | rofi -dmenu "$prompt_message") + +emojlist=$(jq --arg sel "$choice" '..| select(.name==$sel)? | .emoticons | .[]' "$KAO_FILE") + +emoj=$(echo "$emojlist" | sed /^$/d | rofi -dmenu "$prompt_message") + +if [ "$WAYLAND_DISPLAY" ]; then + echo "$emoj" | wl-copy +else + echo "$emoj" | xclip -sel clip +fi diff --git a/env/.local/bin/system/start-scripts/newsboat-fetch.sh b/env/.local/bin/system/start-scripts/newsboat-fetch.sh index 5534489..0b95d5d 100755 --- a/env/.local/bin/system/start-scripts/newsboat-fetch.sh +++ b/env/.local/bin/system/start-scripts/newsboat-fetch.sh @@ -1,6 +1,6 @@ #!/bin/bash newsboat_loop(){ - newsboat -x reload + NO_PROXY=\".com,.org,.xyz,.chat,.social,.net,.co\" newsboat -x reload #newsboat -x print-unread | xargs -0 notify-send "newsboat feed" unreads=$(newsboat -x print-unread) diff --git a/runs-all/get-reqs-arch/wayland.sh b/runs-all/get-reqs-arch/wayland.sh index 3455bc3..1a197f8 100755 --- a/runs-all/get-reqs-arch/wayland.sh +++ b/runs-all/get-reqs-arch/wayland.sh @@ -1,2 +1,2 @@ -$sudo pacman -S --noconfirm wayland waybar wlogout hyprlock xdg-desktop-portal xdg-desktop-portal-gtk qt6-wayland qt5-wayland +$sudo pacman -S --noconfirm wayland waybar wlogout hyprlock xdg-desktop-portal xdg-desktop-portal-gtk qt6-wayland qt5-wayland xorg-xwayland $aurm -S --noconfirm dunst-git sddm-theme-tokyo-night-git