Squashed commit of the following:

- rofi kaomoji-picker.sh and keybind in i3
    - rofi edit for vimish motions
    - indent change
    - swapped tmux keys
    - echo port on auto port
    - added proxy ignore to newsboat autofetch
    - added xorg-xwayland
    - autoport mc script using socat
    - removed /dev from cam alias
This commit is contained in:
iceyrazor 2025-10-17 18:31:32 -05:00
parent 62ba4da27d
commit fe74ef66ee
9 changed files with 69 additions and 25 deletions

View File

@ -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"

View File

@ -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

View File

@ -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"
}

View File

@ -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";
}

View File

@ -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

13
env/.local/bin/scripts/autoport_mc.sh vendored Executable file
View File

@ -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

19
env/.local/bin/system/kaomoji-picker.sh vendored Executable file
View File

@ -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

View File

@ -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)

View File

@ -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