From d49e4b0a25c7cc75ade210c7092eea8feb75e692 Mon Sep 17 00:00:00 2001 From: navewindre Date: Sun, 13 Jul 2025 01:45:05 +0200 Subject: restructure --- .projector_off | 7 --- .projector_on | 29 ----------- .restart-panel | 3 -- Xresources | 66 ------------------------- bin/desktop-audio-record | 20 ++++++++ bin/hotkey-legend | 38 ++++++++++++++ bin/ocr | 7 +++ bin/srtrename | 42 ++++++++++++++++ config/Thunar/accels.scm | 125 +++++++++++++++++++++++++++++++++++++++++++++++ config/Thunar/uca.xml | 13 +++++ copy-all.sh | 6 +++ desktop-audio-record | 20 -------- home/.Xmodmap | 13 +++++ home/.Xresources | 66 +++++++++++++++++++++++++ home/.lang.sh | 17 +++++++ home/.lscolors | 1 + home/.panel.sh | 18 +++++++ home/.panel2.sh | 17 +++++++ home/.projector_off | 7 +++ home/.projector_on | 29 +++++++++++ home/.restart-panel | 3 ++ home/.signout.sh | 12 +++++ home/.xinitrc | 15 ++++++ hotkey-legend | 38 -------------- lang.sh | 17 ------- lscolors | 1 - ocr | 7 --- panel.sh | 18 ------- panel2.sh | 17 ------- record.sh | 20 -------- signout.sh | 12 ----- srtrename | 42 ---------------- xinitrc | 15 ------ xmodmap | 13 ----- 34 files changed, 449 insertions(+), 325 deletions(-) delete mode 100755 .projector_off delete mode 100755 .projector_on delete mode 100755 .restart-panel delete mode 100644 Xresources create mode 100755 bin/desktop-audio-record create mode 100755 bin/hotkey-legend create mode 100755 bin/ocr create mode 100755 bin/srtrename create mode 100644 config/Thunar/accels.scm create mode 100644 config/Thunar/uca.xml delete mode 100755 desktop-audio-record create mode 100644 home/.Xmodmap create mode 100644 home/.Xresources create mode 100755 home/.lang.sh create mode 100755 home/.lscolors create mode 100755 home/.panel.sh create mode 100755 home/.panel2.sh create mode 100755 home/.projector_off create mode 100755 home/.projector_on create mode 100755 home/.restart-panel create mode 100755 home/.signout.sh create mode 100755 home/.xinitrc delete mode 100755 hotkey-legend delete mode 100755 lang.sh delete mode 100755 lscolors delete mode 100755 ocr delete mode 100755 panel.sh delete mode 100755 panel2.sh delete mode 100755 record.sh delete mode 100755 signout.sh delete mode 100755 srtrename delete mode 100755 xinitrc delete mode 100644 xmodmap diff --git a/.projector_off b/.projector_off deleted file mode 100755 index f1e72f7..0000000 --- a/.projector_off +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -killall spacefm -screen -d -m "$HOME/.config/openbox/spacefm" - -xrandr --output DP-2 --off - diff --git a/.projector_on b/.projector_on deleted file mode 100755 index 2f2cd12..0000000 --- a/.projector_on +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -~/.config/openbox/autorun/1_screenres -xrandr --output DP-2 --mode 1920x1080 --rate 60 --pos 3200x0 - -if [ ! -d "$HOME/Pictures/Wall" ]; then - exit 1 -fi - -while IFS= read -r file; do - if [ -n "$files_string" ]; then - files_string+=" " - fi - files_string+="$file" -done < <(find "$HOME/Pictures/Wall" -type f) - -IFS=' ' read -ra files <<< "$files_string" -sorted_files=($(printf "%s\n" "${files[@]}" | sort)) -sorted_file_list=$(printf "%s " "${sorted_files[@]}") - -echo $sorted_file_list - -killall spacefm -screen -d -m "$HOME/.config/openbox/spacefm" - - -sleep 1 -feh --bg-fill $sorted_file_list - diff --git a/.restart-panel b/.restart-panel deleted file mode 100755 index 578bd82..0000000 --- a/.restart-panel +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -killall xfce4-panel -xfce4-panel & diff --git a/Xresources b/Xresources deleted file mode 100644 index 26fc791..0000000 --- a/Xresources +++ /dev/null @@ -1,66 +0,0 @@ -Xft.dpi:88 - -*.background: #000000 -*.foreground: #ffffff -URxvt.font: xft:Px437 DOS/V re. JPN12:size=10 -URxvt.boldFont: xft:Px437 DOS/V re. JPN12:size=10 - -! black -*.color0: #000000 -*.color8: #4d4d4d - -! red -*.color1: #9f2625 -*.color9: #ff0400 - -! green -*.color2: #31cb1b -*.color10: #23fd00 - -! yellow -*.color3: #cecb00 -*.color11: #fffd00 - -! blue -*.color4: #3347c8 -*.color12: #3655ff - -! magenta -*.color5: #cb1ed1 -*.color13: #fd28ff - -! cyan -*.color6: #0dcdcd -*.color14: #3bffff - -! white -*.color7: #e5e5e5 -*.color15: #ffffff - - -URxvt.scrollBar: false -URxvt.depth: 32 -URxvt.urgentOnBell: true -URxvt.Iso14755: false -URxvt.keysym.Shift-Up: command:\033]720;1\007 -URxvt.keysym.Shift-Down: command:\033]721;1\007 -URxvt.keysym.Control-Up: \033[1;5A -URxvt.keysym.Control-Down: \033[1;5B -URxvt.keysym.Control-Right: \033[1;5C -URxvt.keysym.Control-Left: \033[1;5D -URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select -URxvt.copyCommand: xclip -i -selection clipboard -URxvt.pasteCommand: xclip -o -selection clipboard -URxvt.keysym.M-c: perl:clipboard:copy -URxvt.keysym.M-v: perl:clipboard:paste -URxvt.keysym.M-C-v: perl:clipboard:paste_escaped -URxvt.keysym.M-Escape: perl:keyboard-select:activate -URxvt.keysym.M-s: perl:keyboard-select:search -URxvt.keysym.M-u: perl:url-select:select_next -URxvt.keysym.C-minus: command:\033]710;xft:Px437 DOS/V re. JPN12:size=10\007 -URxvt.keysym.C-0: command:\033]710;xft:Px437 DOS/V re. JPN24:size=18\007 -URxvt.urlLauncher: firefox -URxvt.underlineURLs: true -URxvt.urlButton: 1 -URxvt.geometry: 84x24 -URXvt.inputMethod: ibus diff --git a/bin/desktop-audio-record b/bin/desktop-audio-record new file mode 100755 index 0000000..2e8bc74 --- /dev/null +++ b/bin/desktop-audio-record @@ -0,0 +1,20 @@ +#!/bin/bash + +rm /tmp/desktop_audio_temp.mp3 + +cleanup() { + echo "Recording stopped. Cleaning up..." + kill $FFMPEG_PID + echo "file:///tmp/desktop_audio_temp.mp3" | xclip -sel c + gxmessage -geometry 350x50 -title "audio recorded" -center "desktop dudio has been copied to your clipboard." + exit 0 +} + +trap cleanup SIGINT SIGTERM + +ffmpeg -f pulse -i alsa_output.usb-FX-AUDIO-_DAC-X3PRO_20313330544D4319001C8004-00.analog-stereo.monitor /tmp/desktop_audio_temp.mp3 & + +FFMPEG_PID=$! +xev | grep -q "keycode: 9" && cleanup + +wait $FFMPEG_PID diff --git a/bin/hotkey-legend b/bin/hotkey-legend new file mode 100755 index 0000000..6660ebf --- /dev/null +++ b/bin/hotkey-legend @@ -0,0 +1,38 @@ +#!/bin/sh + +gxmessage -center "help: +================================================================ +window controls: +win+w/a/s/d - move window left/right/top/bottom +win+q/e/z/c - move window to corner +win+shift+w/a/s/d/q/e/z/c - move to window in direction + +win+shift+r - resize window +win+shift+x - move window +win+ctrl+q - close window + +alt+left click - move window +alt+right click - move/resize window + +win+x - maximize window +win+ctrl+t - tile windows +win+ctrl+r - untile windows +win+1 - toggle tile mode +win+2/3 - resize tile master/slave + +win+1 - make current window tiled master +win+2/3 - resize tile master/slave + +win+shift+1 - toggle tile mode +win+ctrl+2/3 - change tiled master window count +win+shift+2/3 - change tiled slave window count +win+alt+w/s - move tiled window to prev/next position +win+alt+a/d - move tiled window to prev/next screen + +launchers: +win - xfce4-popup-whiskermenu +win+r - xfce4-appfinder +win+t - xfce4-terminal +win+ctrl+s - screenshot (scrot + xclip) +win+ctrl+e - ocr +" diff --git a/bin/ocr b/bin/ocr new file mode 100755 index 0000000..eb1d096 --- /dev/null +++ b/bin/ocr @@ -0,0 +1,7 @@ +#!/bin/bash +READ=$(scrot -s 'temp_%Y%m%d_%H%M%S.png' -e 'tesseract $f stdout -l jpn && rm $f') + +if [[ ! -z $READ ]]; then + echo $READ | xclip -selection clipboard +fi + diff --git a/bin/srtrename b/bin/srtrename new file mode 100755 index 0000000..33166e8 --- /dev/null +++ b/bin/srtrename @@ -0,0 +1,42 @@ +#!/bin/bash + +# Enable debug output +set -x + +# Loop through all subtitle files +for srt in *.srt; do + # Skip if no .srt files found + [[ -f "$srt" ]] || { echo "No .srt files found"; exit 1; } + + echo "Processing subtitle file: $srt" + + # Extract the episode number (S01E04) - more specific pattern + episode=$(echo "$srt" | grep -o "S[0-9]\{2\}E[0-9]\{2\}") + echo "Extracted episode number: $episode" + + # Find the corresponding video file + video_file=$(find . -maxdepth 1 -type f -name "*${episode}*.mkv") + echo "Found video file: $video_file" + + # If a matching video file is found + if [[ -n "$video_file" ]]; then + # Remove the .mkv extension and leading ./ + video_basename=$(basename "$video_file" .mkv) + # Create new subtitle name + new_name="${video_basename}.srt" + + echo "Will rename '$srt' to '$new_name'" + + # Only rename if the new name is different + if [[ "$srt" != "$new_name" ]]; then + mv -v "$srt" "$new_name" + else + echo "File already has the correct name" + fi + else + echo "No matching video file found for '$srt'" + # List all mkv files for debugging + echo "Available mkv files:" + ls -l *.mkv + fi +done diff --git a/config/Thunar/accels.scm b/config/Thunar/accels.scm new file mode 100644 index 0000000..2e08077 --- /dev/null +++ b/config/Thunar/accels.scm @@ -0,0 +1,125 @@ +; thunar GtkAccelMap rc-file -*- scheme -*- +; this file is an automated accelerator map dump +; +; (gtk_accel_path "/ThunarStandardView/sort-by-type" "") +; (gtk_accel_path "/ThunarStatusBar/toggle-last-modified" "") +; (gtk_accel_path "/Thunarwindow/menu" "") +; (gtk_accel_path "/ThunarActionManager/cut" "x") +; (gtk_accel_path "/ThunarStandardView/sort-by-size" "") +; (gtk_accel_path "/ThunarWindow/file-menu" "") +; (gtk_accel_path "/ThunarWindow/close-tab" "w") +; (gtk_accel_path "/ThunarWindow/switch-previous-tab-alt" "ISO_Left_Tab") +; (gtk_accel_path "/ThunarStatusBar/toggle-size" "") +; (gtk_accel_path "/ThunarWindow/new-window" "n") +; (gtk_accel_path "/ThunarWindow/clear-directory-specific-settings" "") +; (gtk_accel_path "/ThunarWindow/close-window" "q") +; (gtk_accel_path "/ThunarWindow/open-parent" "Up") +; (gtk_accel_path "/ThunarWindow/view-side-pane-menu" "") +; (gtk_accel_path "/ThunarStatusBar/toggle-size-in-bytes" "") +; (gtk_accel_path "/ThunarWindow/switch-previous-tab" "Page_Up") +; (gtk_accel_path "/ThunarActionManager/open" "o") +; (gtk_accel_path "/ThunarStandardView/sort-ascending" "") +; (gtk_accel_path "/ThunarWindow/toggle-split-view" "F3") +; (gtk_accel_path "/ThunarActionManager/copy-2" "Insert") +; (gtk_accel_path "/ThunarActionManager/trash-delete" "Delete") +; (gtk_accel_path "/ThunarWindow/open-recent" "") +; (gtk_accel_path "/ThunarWindow/view-configure-toolbar" "") +; (gtk_accel_path "/ThunarStandardView/forward" "Right") +; (gtk_accel_path "/ThunarActionManager/restore" "") +; (gtk_accel_path "/ThunarWindow/open-location-alt" "d") +; (gtk_accel_path "/ThunarWindow/zoom-out-alt" "KP_Subtract") +; (gtk_accel_path "/ThunarStandardView/select-by-pattern" "s") +; (gtk_accel_path "/ThunarWindow/open-file-menu" "F10") +; (gtk_accel_path "/ThunarWindow/contents" "F1") +; (gtk_accel_path "/ThunarWindow/show-highlight" "") +; (gtk_accel_path "/ThunarStandardView/sort-descending" "") +; (gtk_accel_path "/ThunarStandardView/sort-by-name" "") +; (gtk_accel_path "/ThunarStandardView/select-all-files" "a") +; (gtk_accel_path "/ThunarActionManager/execute" "") +; (gtk_accel_path "/ThunarStandardView/properties" "Return") +; (gtk_accel_path "/ThunarActionManager/cut-2" "") +; (gtk_accel_path "/ThunarStandardView/sort-by-dtime" "") +; (gtk_accel_path "/ThunarWindow/switch-next-tab" "Page_Down") +; (gtk_accel_path "/ThunarWindow/open-templates" "") +; (gtk_accel_path "/ThunarActionManager/paste-2" "Insert") +; (gtk_accel_path "/ThunarStatusBar/toggle-filetype" "") +; (gtk_accel_path "/ThunarWindow/close-all-windows" "w") +; (gtk_accel_path "/ThunarStandardView/create-document" "") +; (gtk_accel_path "/ThunarWindow/detach-tab" "") +; (gtk_accel_path "/ThunarWindow/cancel-search" "Escape") +; (gtk_accel_path "/ThunarWindow/zoom-in-alt2" "equal") +; (gtk_accel_path "/ThunarStatusBar/toggle-hidden-count" "") +; (gtk_accel_path "/ThunarShortcutsPane/sendto-shortcuts" "d") +; (gtk_accel_path "/ThunarActionManager/undo" "z") +; (gtk_accel_path "/ThunarStandardView/toggle-sort-order" "") +; (gtk_accel_path "/ThunarWindow/view-location-selector-entry" "") +; (gtk_accel_path "/ThunarActionManager/paste" "v") +; (gtk_accel_path "/ThunarWindow/zoom-in-alt1" "KP_Add") +; (gtk_accel_path "/ThunarWindow/view-menubar" "m") +; (gtk_accel_path "/ThunarStandardView/back" "Left") +; (gtk_accel_path "/ThunarWindow/open-desktop" "") +; (gtk_accel_path "/ThunarWindow/view-as-detailed-list" "2") +; (gtk_accel_path "/ThunarActionManager/restore-show" "") +; (gtk_accel_path "/ThunarWindow/sendto-menu" "") +; (gtk_accel_path "/ThunarStatusBar/toggle-display-name" "") +; (gtk_accel_path "/ThunarWindow/go-menu" "") +; (gtk_accel_path "/ThunarWindow/zoom-out" "minus") +; (gtk_accel_path "/ThunarWindow/remove-from-recent" "") +; (gtk_accel_path "/ThunarActionManager/open-with-other" "") +; (gtk_accel_path "/ThunarStandardView/invert-selection" "i") +; (gtk_accel_path "/ThunarWindow/view-side-pane-shortcuts" "b") +; (gtk_accel_path "/ThunarWindow/reload-alt-2" "Reload") +; (gtk_accel_path "/ThunarWindow/view-location-selector-menu" "") +; (gtk_accel_path "/ThunarWindow/reload" "r") +; (gtk_accel_path "/ThunarWindow/edit-menu" "") +; (gtk_accel_path "/ThunarActionManager/copy" "c") +; (gtk_accel_path "/ThunarWindow/bookmarks-menu" "") +; (gtk_accel_path "/ThunarStandardView/forward-alt" "Forward") +; (gtk_accel_path "/ThunarActionManager/move-to-trash" "") +; (gtk_accel_path "/ThunarWindow/reload-alt-1" "F5") +; (gtk_accel_path "/ThunarActionManager/delete-3" "KP_Delete") +; (gtk_accel_path "/ThunarStandardView/unselect-all-files" "Escape") +; (gtk_accel_path "/ThunarWindow/contents/help-menu" "") +; (gtk_accel_path "/ThunarStandardView/arrange-items-menu" "") +; (gtk_accel_path "/ThunarStandardView/sort-by-mtime" "") +; (gtk_accel_path "/ThunarWindow/open-computer" "") +; (gtk_accel_path "/ThunarWindow/toggle-image-preview" "") +; (gtk_accel_path "/ThunarWindow/toggle-side-pane" "F9") +; (gtk_accel_path "/ThunarWindow/view-as-icons" "1") +; (gtk_accel_path "/ThunarActionManager/delete-2" "Delete") +; (gtk_accel_path "/ThunarWindow/zoom-in" "plus") +; (gtk_accel_path "/ThunarStandardView/rename" "F2") +(gtk_accel_path "/ThunarWindow/open-location" "g") +; (gtk_accel_path "/ThunarWindow/view-as-compact-list" "3") +; (gtk_accel_path "/ThunarWindow/view-menu" "") +; (gtk_accel_path "/ThunarWindow/search" "f") +; (gtk_accel_path "/ThunarWindow/new-tab" "t") +; (gtk_accel_path "/ThunarWindow/zoom-reset" "0") +; (gtk_accel_path "/ThunarStandardView/back-alt2" "Back") +; (gtk_accel_path "/ThunarActionManager/open-in-new-tab" "p") +; (gtk_accel_path "/ThunarWindow/view-location-selector-buttons" "") +; (gtk_accel_path "/ThunarActionManager/redo" "z") +; (gtk_accel_path "/ThunarWindow/open-trash" "") +; (gtk_accel_path "/ThunarActionManager/open-in-new-window" "o") +; (gtk_accel_path "/ThunarWindow/view-statusbar" "") +; (gtk_accel_path "/ThunarActionManager/open-location" "") +; (gtk_accel_path "/ThunarStandardView/duplicate" "") +; (gtk_accel_path "/ThunarActionManager/trash-delete-2" "KP_Delete") +; (gtk_accel_path "/ThunarStandardView/back-alt1" "BackSpace") +; (gtk_accel_path "/ThunarStandardView/create-folder" "n") +(gtk_accel_path "/ThunarWindow/open-home" "Home") +; (gtk_accel_path "/ThunarWindow/switch-focused-split-view-pane" "") +; (gtk_accel_path "/ThunarWindow/show-hidden" "h") +; (gtk_accel_path "/ThunarStandardView/set-default-app" "") +; (gtk_accel_path "/ThunarWindow/empty-trash" "") +; (gtk_accel_path "/ThunarWindow/preferences" "") +; (gtk_accel_path "/ThunarActionManager/delete" "") +; (gtk_accel_path "/ThunarWindow/open-network" "") +; (gtk_accel_path "/ThunarWindow/view-side-pane-tree" "e") +; (gtk_accel_path "/ThunarWindow/open-file-system" "") +; (gtk_accel_path "/ThunarWindow/search-alt" "Search") +; (gtk_accel_path "/ThunarWindow/switch-next-tab-alt" "Tab") +; (gtk_accel_path "/ThunarActionManager/sendto-desktop" "") +; (gtk_accel_path "/ThunarStandardView/make-link" "") +; (gtk_accel_path "/ThunarWindow/zoom-reset-alt" "KP_0") +; (gtk_accel_path "/ThunarWindow/about" "") diff --git a/config/Thunar/uca.xml b/config/Thunar/uca.xml new file mode 100644 index 0000000..04a6748 --- /dev/null +++ b/config/Thunar/uca.xml @@ -0,0 +1,13 @@ + + + + utilities-terminal + Open Terminal Here + 1731260116923518-1 + exo-open --working-directory %f --launch TerminalEmulator + Example for a custom action + * + + + + diff --git a/copy-all.sh b/copy-all.sh index 296bf3d..2c6eaab 100644 --- a/copy-all.sh +++ b/copy-all.sh @@ -10,5 +10,11 @@ fi cp -rf ./config/* ~/.config/ cp -rf ./icons/* ~/.icons/ cp -rf ./themes/* ~/.themes/ +mkdir -p ~/.local/bin/ +cp -rf ./bin ~/.local/bin/ +cp -rf ./home/* ~/ cp ./vimrc ~/.vimrc +cp ./nvimrc ~/.nvimrc cp ./zshrc ~/.zshrc + +ln -s ~/.nvimrc ~/.config/nvim/init.vim diff --git a/desktop-audio-record b/desktop-audio-record deleted file mode 100755 index 2e8bc74..0000000 --- a/desktop-audio-record +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -rm /tmp/desktop_audio_temp.mp3 - -cleanup() { - echo "Recording stopped. Cleaning up..." - kill $FFMPEG_PID - echo "file:///tmp/desktop_audio_temp.mp3" | xclip -sel c - gxmessage -geometry 350x50 -title "audio recorded" -center "desktop dudio has been copied to your clipboard." - exit 0 -} - -trap cleanup SIGINT SIGTERM - -ffmpeg -f pulse -i alsa_output.usb-FX-AUDIO-_DAC-X3PRO_20313330544D4319001C8004-00.analog-stereo.monitor /tmp/desktop_audio_temp.mp3 & - -FFMPEG_PID=$! -xev | grep -q "keycode: 9" && cleanup - -wait $FFMPEG_PID diff --git a/home/.Xmodmap b/home/.Xmodmap new file mode 100644 index 0000000..f49fa66 --- /dev/null +++ b/home/.Xmodmap @@ -0,0 +1,13 @@ +remove Lock = Caps_Lock +keysym Caps_Lock = Escape + +clear Mod1 +clear Mod4 + +keycode 133 = Alt_L +keycode 134 = Alt_R +keycode 64 = Super_L +keycode 108 = Super_R + +add Mod1 = Alt_L Alt_R +add Mod4 = Super_L Super_R diff --git a/home/.Xresources b/home/.Xresources new file mode 100644 index 0000000..26fc791 --- /dev/null +++ b/home/.Xresources @@ -0,0 +1,66 @@ +Xft.dpi:88 + +*.background: #000000 +*.foreground: #ffffff +URxvt.font: xft:Px437 DOS/V re. JPN12:size=10 +URxvt.boldFont: xft:Px437 DOS/V re. JPN12:size=10 + +! black +*.color0: #000000 +*.color8: #4d4d4d + +! red +*.color1: #9f2625 +*.color9: #ff0400 + +! green +*.color2: #31cb1b +*.color10: #23fd00 + +! yellow +*.color3: #cecb00 +*.color11: #fffd00 + +! blue +*.color4: #3347c8 +*.color12: #3655ff + +! magenta +*.color5: #cb1ed1 +*.color13: #fd28ff + +! cyan +*.color6: #0dcdcd +*.color14: #3bffff + +! white +*.color7: #e5e5e5 +*.color15: #ffffff + + +URxvt.scrollBar: false +URxvt.depth: 32 +URxvt.urgentOnBell: true +URxvt.Iso14755: false +URxvt.keysym.Shift-Up: command:\033]720;1\007 +URxvt.keysym.Shift-Down: command:\033]721;1\007 +URxvt.keysym.Control-Up: \033[1;5A +URxvt.keysym.Control-Down: \033[1;5B +URxvt.keysym.Control-Right: \033[1;5C +URxvt.keysym.Control-Left: \033[1;5D +URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select +URxvt.copyCommand: xclip -i -selection clipboard +URxvt.pasteCommand: xclip -o -selection clipboard +URxvt.keysym.M-c: perl:clipboard:copy +URxvt.keysym.M-v: perl:clipboard:paste +URxvt.keysym.M-C-v: perl:clipboard:paste_escaped +URxvt.keysym.M-Escape: perl:keyboard-select:activate +URxvt.keysym.M-s: perl:keyboard-select:search +URxvt.keysym.M-u: perl:url-select:select_next +URxvt.keysym.C-minus: command:\033]710;xft:Px437 DOS/V re. JPN12:size=10\007 +URxvt.keysym.C-0: command:\033]710;xft:Px437 DOS/V re. JPN24:size=18\007 +URxvt.urlLauncher: firefox +URxvt.underlineURLs: true +URxvt.urlButton: 1 +URxvt.geometry: 84x24 +URXvt.inputMethod: ibus diff --git a/home/.lang.sh b/home/.lang.sh new file mode 100755 index 0000000..8b9fab1 --- /dev/null +++ b/home/.lang.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +ENGINES=$(ibus engine) +case "$ENGINES" in + *en*) + echo "EN" + ;; + *pl*) + echo "PL" + ;; + *anthy*) + echo "JA" + ;; + *) + echo "??" + ;; +esac diff --git a/home/.lscolors b/home/.lscolors new file mode 100755 index 0000000..41e35c0 --- /dev/null +++ b/home/.lscolors @@ -0,0 +1 @@ +export LS_COLORS="ca=0:st=0:tw=0:cd=0;38;2;249;38;114;48;2;51;51;51:su=0:pi=0;38;2;0;0;0;48;2;102;217;239:bd=0;38;2;102;217;239;48;2;51;51;51:rs=0:ln=0;38;2;249;38;114:ow=0:sg=0:do=0;38;2;0;0;0;48;2;249;38;114:di=0;38;2;102;217;239:or=0;38;2;0;0;0;48;2;255;74;68:no=0:ex=1;38;2;249;38;114:so=0;38;2;0;0;0;48;2;249;38;114:mi=0;38;2;0;0;0;48;2;255;74;68:*~=0;38;2;122;112;112:mh=0:fi=0:*.o=0;38;2;122;112;112:*.d=0;38;2;0;255;135:*.h=0;38;2;0;255;135:*.c=0;38;2;0;255;135:*.r=0;38;2;0;255;135:*.t=0;38;2;0;255;135:*.z=4;38;2;249;38;114:*.m=0;38;2;0;255;135:*.p=0;38;2;0;255;135:*.a=1;38;2;249;38;114:*.bc=0;38;2;122;112;112:*.as=0;38;2;0;255;135:*.nb=0;38;2;0;255;135:*.rm=0;38;2;253;151;31:*.js=0;38;2;0;255;135:*.cr=0;38;2;0;255;135:*css=0;38;2;0;255;135:*.py=0;38;2;0;255;135:*.la=0;38;2;122;112;112:*.di=0;38;2;0;255;135:*.jl=0;38;2;0;255;135:*.gz=4;38;2;249;38;114:*.pp=0;38;2;0;255;135:*.go=0;38;2;0;255;135:*.vb=0;38;2;0;255;135:*.hs=0;38;2;0;255;135:*.hh=0;38;2;0;255;135:*.el=0;38;2;0;255;135:*.mn=0;38;2;0;255;135:*.xz=4;38;2;249;38;114:*.rs=0;38;2;0;255;135:*.md=0;38;2;226;209;57:*.ml=0;38;2;0;255;135:*.cc=0;38;2;0;255;135:*.kt=0;38;2;0;255;135:*.7z=4;38;2;249;38;114:*.pm=0;38;2;0;255;135:*.sh=0;38;2;0;255;135:*.ts=0;38;2;0;255;135:*.so=1;38;2;249;38;114:*.ex=0;38;2;0;255;135:*.rb=0;38;2;0;255;135:*.ll=0;38;2;0;255;135:*.fs=0;38;2;0;255;135:*.td=0;38;2;0;255;135:*.gv=0;38;2;0;255;135:*.ui=0;38;2;166;226;46:*.pl=0;38;2;0;255;135:*.wv=0;38;2;253;151;31:*.hi=0;38;2;122;112;112:*.lo=0;38;2;122;112;112:*.ko=1;38;2;249;38;114:*.cs=0;38;2;0;255;135:*.ps=0;38;2;230;219;116:*.bz=4;38;2;249;38;114:*.cp=0;38;2;0;255;135:*.bib=0;38;2;166;226;46:*.aif=0;38;2;253;151;31:*.sxi=0;38;2;230;219;116:*.rtf=0;38;2;230;219;116:*.mp4=0;38;2;253;151;31:*.tif=0;38;2;253;151;31:*.jar=4;38;2;249;38;114:*.aux=0;38;2;122;112;112:*.swf=0;38;2;253;151;31:*.nix=0;38;2;166;226;46:*.pid=0;38;2;122;112;112:*.otf=0;38;2;253;151;31:*.erl=0;38;2;0;255;135:*.zip=4;38;2;249;38;114:*.lua=0;38;2;0;255;135:*.gif=0;38;2;253;151;31:*.ps1=0;38;2;0;255;135:*.xmp=0;38;2;166;226;46:*.vim=0;38;2;0;255;135:*.ltx=0;38;2;0;255;135:*.iso=4;38;2;249;38;114:*.ipp=0;38;2;0;255;135:*.mpg=0;38;2;253;151;31:*.tex=0;38;2;0;255;135:*.vcd=4;38;2;249;38;114:*.pod=0;38;2;0;255;135:*.dot=0;38;2;0;255;135:*.xlr=0;38;2;230;219;116:*.inc=0;38;2;0;255;135:*.psd=0;38;2;253;151;31:*.mid=0;38;2;253;151;31:*.hpp=0;38;2;0;255;135:*.sxw=0;38;2;230;219;116:*.bat=1;38;2;249;38;114:*.dmg=4;38;2;249;38;114:*.htm=0;38;2;226;209;57:*.yml=0;38;2;166;226;46:*.xls=0;38;2;230;219;116:*.pps=0;38;2;230;219;116:*.fsi=0;38;2;0;255;135:*.mp3=0;38;2;253;151;31:*.m4v=0;38;2;253;151;31:*.mkv=0;38;2;253;151;31:*.png=0;38;2;253;151;31:*.gvy=0;38;2;0;255;135:*hgrc=0;38;2;166;226;46:*.pkg=4;38;2;249;38;114:*.awk=0;38;2;0;255;135:*.csx=0;38;2;0;255;135:*.tsx=0;38;2;0;255;135:*.zsh=0;38;2;0;255;135:*.eps=0;38;2;253;151;31:*.ttf=0;38;2;253;151;31:*.jpg=0;38;2;253;151;31:*.doc=0;38;2;230;219;116:*.out=0;38;2;122;112;112:*.flv=0;38;2;253;151;31:*.log=0;38;2;122;112;112:*.pyo=0;38;2;122;112;112:*.bz2=4;38;2;249;38;114:*.ics=0;38;2;230;219;116:*.img=4;38;2;249;38;114:*.idx=0;38;2;122;112;112:*.bsh=0;38;2;0;255;135:*.wav=0;38;2;253;151;31:*.fnt=0;38;2;253;151;31:*.bin=4;38;2;249;38;114:*.c++=0;38;2;0;255;135:*.mov=0;38;2;253;151;31:*.tgz=4;38;2;249;38;114:*.cxx=0;38;2;0;255;135:*.dll=1;38;2;249;38;114:*.fon=0;38;2;253;151;31:*.bag=4;38;2;249;38;114:*.csv=0;38;2;226;209;57:*.pro=0;38;2;166;226;46:*.bst=0;38;2;166;226;46:*.vob=0;38;2;253;151;31:*.inl=0;38;2;0;255;135:*.xcf=0;38;2;253;151;31:*.git=0;38;2;122;112;112:*.fsx=0;38;2;0;255;135:*.exs=0;38;2;0;255;135:*.apk=4;38;2;249;38;114:*.hxx=0;38;2;0;255;135:*.php=0;38;2;0;255;135:*.exe=1;38;2;249;38;114:*.sbt=0;38;2;0;255;135:*.mir=0;38;2;0;255;135:*.ilg=0;38;2;122;112;112:*.pyd=0;38;2;122;112;112:*.htc=0;38;2;0;255;135:*.com=1;38;2;249;38;114:*.ppm=0;38;2;253;151;31:*.tmp=0;38;2;122;112;112:*.ind=0;38;2;122;112;112:*.cpp=0;38;2;0;255;135:*.odp=0;38;2;230;219;116:*.ppt=0;38;2;230;219;116:*.zst=4;38;2;249;38;114:*.svg=0;38;2;253;151;31:*.rar=4;38;2;249;38;114:*.wma=0;38;2;253;151;31:*.toc=0;38;2;122;112;112:*.ico=0;38;2;253;151;31:*.odt=0;38;2;230;219;116:*.tbz=4;38;2;249;38;114:*.bbl=0;38;2;122;112;112:*.asa=0;38;2;0;255;135:*.pas=0;38;2;0;255;135:*.swp=0;38;2;122;112;112:*.dox=0;38;2;166;226;46:*.wmv=0;38;2;253;151;31:*.txt=0;38;2;226;209;57:*.tar=4;38;2;249;38;114:*.def=0;38;2;0;255;135:*.sty=0;38;2;122;112;112:*.kts=0;38;2;0;255;135:*.pyc=0;38;2;122;112;112:*.elm=0;38;2;0;255;135:*.m4a=0;38;2;253;151;31:*.bak=0;38;2;122;112;112:*.sql=0;38;2;0;255;135:*.arj=4;38;2;249;38;114:*.ini=0;38;2;166;226;46:*.h++=0;38;2;0;255;135:*.blg=0;38;2;122;112;112:*.rpm=4;38;2;249;38;114:*.tcl=0;38;2;0;255;135:*.bcf=0;38;2;122;112;112:*.kex=0;38;2;230;219;116:*.mli=0;38;2;0;255;135:*.tml=0;38;2;166;226;46:*.xml=0;38;2;226;209;57:*.cfg=0;38;2;166;226;46:*.deb=4;38;2;249;38;114:*.bmp=0;38;2;253;151;31:*.ogg=0;38;2;253;151;31:*.rst=0;38;2;226;209;57:*.cgi=0;38;2;0;255;135:*.epp=0;38;2;0;255;135:*.pdf=0;38;2;230;219;116:*.pbm=0;38;2;253;151;31:*TODO=1:*.ods=0;38;2;230;219;116:*.dpr=0;38;2;0;255;135:*.clj=0;38;2;0;255;135:*.avi=0;38;2;253;151;31:*.pgm=0;38;2;253;151;31:*.fls=0;38;2;122;112;112:*.psd1=0;38;2;0;255;135:*.json=0;38;2;166;226;46:*.bash=0;38;2;0;255;135:*.fish=0;38;2;0;255;135:*.opus=0;38;2;253;151;31:*.epub=0;38;2;230;219;116:*.flac=0;38;2;253;151;31:*.h264=0;38;2;253;151;31:*.pptx=0;38;2;230;219;116:*.psm1=0;38;2;0;255;135:*.lock=0;38;2;122;112;112:*.docx=0;38;2;230;219;116:*.java=0;38;2;0;255;135:*.webm=0;38;2;253;151;31:*.tbz2=4;38;2;249;38;114:*.toml=0;38;2;166;226;46:*.less=0;38;2;0;255;135:*.html=0;38;2;226;209;57:*.tiff=0;38;2;253;151;31:*.xlsx=0;38;2;230;219;116:*.rlib=0;38;2;122;112;112:*.conf=0;38;2;166;226;46:*.diff=0;38;2;0;255;135:*.dart=0;38;2;0;255;135:*.lisp=0;38;2;0;255;135:*.purs=0;38;2;0;255;135:*.orig=0;38;2;122;112;112:*.mpeg=0;38;2;253;151;31:*.hgrc=0;38;2;166;226;46:*.yaml=0;38;2;166;226;46:*.make=0;38;2;166;226;46:*.jpeg=0;38;2;253;151;31:*.class=0;38;2;122;112;112:*.swift=0;38;2;0;255;135:*.xhtml=0;38;2;226;209;57:*.shtml=0;38;2;226;209;57:*.dyn_o=0;38;2;122;112;112:*.toast=4;38;2;249;38;114:*.cmake=0;38;2;166;226;46:*.patch=0;38;2;0;255;135:*.scala=0;38;2;0;255;135:*.ipynb=0;38;2;0;255;135:*.mdown=0;38;2;226;209;57:*.cabal=0;38;2;0;255;135:*passwd=0;38;2;166;226;46:*.cache=0;38;2;122;112;112:*shadow=0;38;2;166;226;46:*README=0;38;2;0;0;0;48;2;230;219;116:*.groovy=0;38;2;0;255;135:*.dyn_hi=0;38;2;122;112;112:*TODO.md=1:*.config=0;38;2;166;226;46:*.flake8=0;38;2;166;226;46:*.matlab=0;38;2;0;255;135:*.ignore=0;38;2;166;226;46:*INSTALL=0;38;2;0;0;0;48;2;230;219;116:*.gradle=0;38;2;0;255;135:*COPYING=0;38;2;182;182;182:*LICENSE=0;38;2;182;182;182:*setup.py=0;38;2;166;226;46:*.desktop=0;38;2;166;226;46:*TODO.txt=1:*.gemspec=0;38;2;166;226;46:*Doxyfile=0;38;2;166;226;46:*Makefile=0;38;2;166;226;46:*.rgignore=0;38;2;166;226;46:*.markdown=0;38;2;226;209;57:*.DS_Store=0;38;2;122;112;112:*README.md=0;38;2;0;0;0;48;2;230;219;116:*.fdignore=0;38;2;166;226;46:*configure=0;38;2;166;226;46:*COPYRIGHT=0;38;2;182;182;182:*.cmake.in=0;38;2;166;226;46:*.kdevelop=0;38;2;166;226;46:*.gitconfig=0;38;2;166;226;46:*Dockerfile=0;38;2;166;226;46:*README.txt=0;38;2;0;0;0;48;2;230;219;116:*.localized=0;38;2;122;112;112:*SConstruct=0;38;2;166;226;46:*.gitignore=0;38;2;166;226;46:*CODEOWNERS=0;38;2;166;226;46:*SConscript=0;38;2;166;226;46:*.scons_opt=0;38;2;122;112;112:*INSTALL.md=0;38;2;0;0;0;48;2;230;219;116:*.gitmodules=0;38;2;166;226;46:*Makefile.am=0;38;2;166;226;46:*.travis.yml=0;38;2;230;219;116:*MANIFEST.in=0;38;2;166;226;46:*LICENSE-MIT=0;38;2;182;182;182:*.synctex.gz=0;38;2;122;112;112:*Makefile.in=0;38;2;122;112;112:*INSTALL.txt=0;38;2;0;0;0;48;2;230;219;116:*CONTRIBUTORS=0;38;2;0;0;0;48;2;230;219;116:*configure.ac=0;38;2;166;226;46:*.fdb_latexmk=0;38;2;122;112;112:*.applescript=0;38;2;0;255;135:*appveyor.yml=0;38;2;230;219;116:*.clang-format=0;38;2;166;226;46:*.gitattributes=0;38;2;166;226;46:*LICENSE-APACHE=0;38;2;182;182;182:*CMakeCache.txt=0;38;2;122;112;112:*CMakeLists.txt=0;38;2;166;226;46:*CONTRIBUTORS.md=0;38;2;0;0;0;48;2;230;219;116:*.sconsign.dblite=0;38;2;122;112;112:*requirements.txt=0;38;2;166;226;46:*CONTRIBUTORS.txt=0;38;2;0;0;0;48;2;230;219;116:*package-lock.json=0;38;2;122;112;112:*.CFUserTextEncoding=0;38;2;122;112;112" diff --git a/home/.panel.sh b/home/.panel.sh new file mode 100755 index 0000000..6d0e225 --- /dev/null +++ b/home/.panel.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Get CPU usage +cpu_usage=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print int(100 - $1)"%"}') + +# Get free space on root drive +free_space=$(df -h / | awk '/\// {print $4}') + +if command -v nvidia-smi &> /dev/null; then + gpu_usage=$(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{print $1"%"}') + gpu_info="| GPU: $gpu_usage" +else + gpu_info="" +fi + + +echo "CPU: $cpu_usage $gpu_info | ヂスク: $free_space |" + diff --git a/home/.panel2.sh b/home/.panel2.sh new file mode 100755 index 0000000..be609e1 --- /dev/null +++ b/home/.panel2.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Get CPU usage +cpu_usage=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print int(100 - $1)"%"}') + +# Get free space on root drive +free_space=$(df -h / | awk '/\// {print $4}') + +if command -v nvidia-smi &> /dev/null; then + gpu_usage=$(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{print $1"%"}') + gpu_info="| GPU: $gpu_usage" +else + gpu_info="" +fi + +echo " CPU: $cpu_usage $gpu_info | ヂスク: $free_space |" + diff --git a/home/.projector_off b/home/.projector_off new file mode 100755 index 0000000..f1e72f7 --- /dev/null +++ b/home/.projector_off @@ -0,0 +1,7 @@ +#!/bin/sh + +killall spacefm +screen -d -m "$HOME/.config/openbox/spacefm" + +xrandr --output DP-2 --off + diff --git a/home/.projector_on b/home/.projector_on new file mode 100755 index 0000000..2f2cd12 --- /dev/null +++ b/home/.projector_on @@ -0,0 +1,29 @@ +#!/bin/sh + +~/.config/openbox/autorun/1_screenres +xrandr --output DP-2 --mode 1920x1080 --rate 60 --pos 3200x0 + +if [ ! -d "$HOME/Pictures/Wall" ]; then + exit 1 +fi + +while IFS= read -r file; do + if [ -n "$files_string" ]; then + files_string+=" " + fi + files_string+="$file" +done < <(find "$HOME/Pictures/Wall" -type f) + +IFS=' ' read -ra files <<< "$files_string" +sorted_files=($(printf "%s\n" "${files[@]}" | sort)) +sorted_file_list=$(printf "%s " "${sorted_files[@]}") + +echo $sorted_file_list + +killall spacefm +screen -d -m "$HOME/.config/openbox/spacefm" + + +sleep 1 +feh --bg-fill $sorted_file_list + diff --git a/home/.restart-panel b/home/.restart-panel new file mode 100755 index 0000000..578bd82 --- /dev/null +++ b/home/.restart-panel @@ -0,0 +1,3 @@ +#!/bin/sh +killall xfce4-panel +xfce4-panel & diff --git a/home/.signout.sh b/home/.signout.sh new file mode 100755 index 0000000..9ff7a52 --- /dev/null +++ b/home/.signout.sh @@ -0,0 +1,12 @@ +gmessage "Are you sure you want to shut down your computer?" -center -title "Take action" -font "Sans bold 10" -default "Cancel" -buttons "_Cancel":1,"_Log out":2,"_Reboot":3,"_Shut down":4 >/dev/null + +case $? in +1) +echo "Exit";; +2) +killall openbox;; +3) +sudo shutdown -r now;; +4) +sudo shutdown -h now;; +esac diff --git a/home/.xinitrc b/home/.xinitrc new file mode 100755 index 0000000..36d6469 --- /dev/null +++ b/home/.xinitrc @@ -0,0 +1,15 @@ +#!/bin/sh + +# /etc/X11/xinit/xinitrc +# +# global xinitrc file, used by all X sessions started by xinit (startx) + +# invoke global X session script +# +export GTK_IM_MODULE=ibus +export QT_IM_MODULE=ibus +export XMODIFIERS='@im=ibus' +xrandr --output DP-0 --mode 1920x1080 --rate 165 +xrandr --output DP-0 --mode 1280x1024 --rate 75 +[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap +. /etc/X11/Xsession diff --git a/hotkey-legend b/hotkey-legend deleted file mode 100755 index 6660ebf..0000000 --- a/hotkey-legend +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -gxmessage -center "help: -================================================================ -window controls: -win+w/a/s/d - move window left/right/top/bottom -win+q/e/z/c - move window to corner -win+shift+w/a/s/d/q/e/z/c - move to window in direction - -win+shift+r - resize window -win+shift+x - move window -win+ctrl+q - close window - -alt+left click - move window -alt+right click - move/resize window - -win+x - maximize window -win+ctrl+t - tile windows -win+ctrl+r - untile windows -win+1 - toggle tile mode -win+2/3 - resize tile master/slave - -win+1 - make current window tiled master -win+2/3 - resize tile master/slave - -win+shift+1 - toggle tile mode -win+ctrl+2/3 - change tiled master window count -win+shift+2/3 - change tiled slave window count -win+alt+w/s - move tiled window to prev/next position -win+alt+a/d - move tiled window to prev/next screen - -launchers: -win - xfce4-popup-whiskermenu -win+r - xfce4-appfinder -win+t - xfce4-terminal -win+ctrl+s - screenshot (scrot + xclip) -win+ctrl+e - ocr -" diff --git a/lang.sh b/lang.sh deleted file mode 100755 index 8b9fab1..0000000 --- a/lang.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -ENGINES=$(ibus engine) -case "$ENGINES" in - *en*) - echo "EN" - ;; - *pl*) - echo "PL" - ;; - *anthy*) - echo "JA" - ;; - *) - echo "??" - ;; -esac diff --git a/lscolors b/lscolors deleted file mode 100755 index 41e35c0..0000000 --- a/lscolors +++ /dev/null @@ -1 +0,0 @@ -export LS_COLORS="ca=0:st=0:tw=0:cd=0;38;2;249;38;114;48;2;51;51;51:su=0:pi=0;38;2;0;0;0;48;2;102;217;239:bd=0;38;2;102;217;239;48;2;51;51;51:rs=0:ln=0;38;2;249;38;114:ow=0:sg=0:do=0;38;2;0;0;0;48;2;249;38;114:di=0;38;2;102;217;239:or=0;38;2;0;0;0;48;2;255;74;68:no=0:ex=1;38;2;249;38;114:so=0;38;2;0;0;0;48;2;249;38;114:mi=0;38;2;0;0;0;48;2;255;74;68:*~=0;38;2;122;112;112:mh=0:fi=0:*.o=0;38;2;122;112;112:*.d=0;38;2;0;255;135:*.h=0;38;2;0;255;135:*.c=0;38;2;0;255;135:*.r=0;38;2;0;255;135:*.t=0;38;2;0;255;135:*.z=4;38;2;249;38;114:*.m=0;38;2;0;255;135:*.p=0;38;2;0;255;135:*.a=1;38;2;249;38;114:*.bc=0;38;2;122;112;112:*.as=0;38;2;0;255;135:*.nb=0;38;2;0;255;135:*.rm=0;38;2;253;151;31:*.js=0;38;2;0;255;135:*.cr=0;38;2;0;255;135:*css=0;38;2;0;255;135:*.py=0;38;2;0;255;135:*.la=0;38;2;122;112;112:*.di=0;38;2;0;255;135:*.jl=0;38;2;0;255;135:*.gz=4;38;2;249;38;114:*.pp=0;38;2;0;255;135:*.go=0;38;2;0;255;135:*.vb=0;38;2;0;255;135:*.hs=0;38;2;0;255;135:*.hh=0;38;2;0;255;135:*.el=0;38;2;0;255;135:*.mn=0;38;2;0;255;135:*.xz=4;38;2;249;38;114:*.rs=0;38;2;0;255;135:*.md=0;38;2;226;209;57:*.ml=0;38;2;0;255;135:*.cc=0;38;2;0;255;135:*.kt=0;38;2;0;255;135:*.7z=4;38;2;249;38;114:*.pm=0;38;2;0;255;135:*.sh=0;38;2;0;255;135:*.ts=0;38;2;0;255;135:*.so=1;38;2;249;38;114:*.ex=0;38;2;0;255;135:*.rb=0;38;2;0;255;135:*.ll=0;38;2;0;255;135:*.fs=0;38;2;0;255;135:*.td=0;38;2;0;255;135:*.gv=0;38;2;0;255;135:*.ui=0;38;2;166;226;46:*.pl=0;38;2;0;255;135:*.wv=0;38;2;253;151;31:*.hi=0;38;2;122;112;112:*.lo=0;38;2;122;112;112:*.ko=1;38;2;249;38;114:*.cs=0;38;2;0;255;135:*.ps=0;38;2;230;219;116:*.bz=4;38;2;249;38;114:*.cp=0;38;2;0;255;135:*.bib=0;38;2;166;226;46:*.aif=0;38;2;253;151;31:*.sxi=0;38;2;230;219;116:*.rtf=0;38;2;230;219;116:*.mp4=0;38;2;253;151;31:*.tif=0;38;2;253;151;31:*.jar=4;38;2;249;38;114:*.aux=0;38;2;122;112;112:*.swf=0;38;2;253;151;31:*.nix=0;38;2;166;226;46:*.pid=0;38;2;122;112;112:*.otf=0;38;2;253;151;31:*.erl=0;38;2;0;255;135:*.zip=4;38;2;249;38;114:*.lua=0;38;2;0;255;135:*.gif=0;38;2;253;151;31:*.ps1=0;38;2;0;255;135:*.xmp=0;38;2;166;226;46:*.vim=0;38;2;0;255;135:*.ltx=0;38;2;0;255;135:*.iso=4;38;2;249;38;114:*.ipp=0;38;2;0;255;135:*.mpg=0;38;2;253;151;31:*.tex=0;38;2;0;255;135:*.vcd=4;38;2;249;38;114:*.pod=0;38;2;0;255;135:*.dot=0;38;2;0;255;135:*.xlr=0;38;2;230;219;116:*.inc=0;38;2;0;255;135:*.psd=0;38;2;253;151;31:*.mid=0;38;2;253;151;31:*.hpp=0;38;2;0;255;135:*.sxw=0;38;2;230;219;116:*.bat=1;38;2;249;38;114:*.dmg=4;38;2;249;38;114:*.htm=0;38;2;226;209;57:*.yml=0;38;2;166;226;46:*.xls=0;38;2;230;219;116:*.pps=0;38;2;230;219;116:*.fsi=0;38;2;0;255;135:*.mp3=0;38;2;253;151;31:*.m4v=0;38;2;253;151;31:*.mkv=0;38;2;253;151;31:*.png=0;38;2;253;151;31:*.gvy=0;38;2;0;255;135:*hgrc=0;38;2;166;226;46:*.pkg=4;38;2;249;38;114:*.awk=0;38;2;0;255;135:*.csx=0;38;2;0;255;135:*.tsx=0;38;2;0;255;135:*.zsh=0;38;2;0;255;135:*.eps=0;38;2;253;151;31:*.ttf=0;38;2;253;151;31:*.jpg=0;38;2;253;151;31:*.doc=0;38;2;230;219;116:*.out=0;38;2;122;112;112:*.flv=0;38;2;253;151;31:*.log=0;38;2;122;112;112:*.pyo=0;38;2;122;112;112:*.bz2=4;38;2;249;38;114:*.ics=0;38;2;230;219;116:*.img=4;38;2;249;38;114:*.idx=0;38;2;122;112;112:*.bsh=0;38;2;0;255;135:*.wav=0;38;2;253;151;31:*.fnt=0;38;2;253;151;31:*.bin=4;38;2;249;38;114:*.c++=0;38;2;0;255;135:*.mov=0;38;2;253;151;31:*.tgz=4;38;2;249;38;114:*.cxx=0;38;2;0;255;135:*.dll=1;38;2;249;38;114:*.fon=0;38;2;253;151;31:*.bag=4;38;2;249;38;114:*.csv=0;38;2;226;209;57:*.pro=0;38;2;166;226;46:*.bst=0;38;2;166;226;46:*.vob=0;38;2;253;151;31:*.inl=0;38;2;0;255;135:*.xcf=0;38;2;253;151;31:*.git=0;38;2;122;112;112:*.fsx=0;38;2;0;255;135:*.exs=0;38;2;0;255;135:*.apk=4;38;2;249;38;114:*.hxx=0;38;2;0;255;135:*.php=0;38;2;0;255;135:*.exe=1;38;2;249;38;114:*.sbt=0;38;2;0;255;135:*.mir=0;38;2;0;255;135:*.ilg=0;38;2;122;112;112:*.pyd=0;38;2;122;112;112:*.htc=0;38;2;0;255;135:*.com=1;38;2;249;38;114:*.ppm=0;38;2;253;151;31:*.tmp=0;38;2;122;112;112:*.ind=0;38;2;122;112;112:*.cpp=0;38;2;0;255;135:*.odp=0;38;2;230;219;116:*.ppt=0;38;2;230;219;116:*.zst=4;38;2;249;38;114:*.svg=0;38;2;253;151;31:*.rar=4;38;2;249;38;114:*.wma=0;38;2;253;151;31:*.toc=0;38;2;122;112;112:*.ico=0;38;2;253;151;31:*.odt=0;38;2;230;219;116:*.tbz=4;38;2;249;38;114:*.bbl=0;38;2;122;112;112:*.asa=0;38;2;0;255;135:*.pas=0;38;2;0;255;135:*.swp=0;38;2;122;112;112:*.dox=0;38;2;166;226;46:*.wmv=0;38;2;253;151;31:*.txt=0;38;2;226;209;57:*.tar=4;38;2;249;38;114:*.def=0;38;2;0;255;135:*.sty=0;38;2;122;112;112:*.kts=0;38;2;0;255;135:*.pyc=0;38;2;122;112;112:*.elm=0;38;2;0;255;135:*.m4a=0;38;2;253;151;31:*.bak=0;38;2;122;112;112:*.sql=0;38;2;0;255;135:*.arj=4;38;2;249;38;114:*.ini=0;38;2;166;226;46:*.h++=0;38;2;0;255;135:*.blg=0;38;2;122;112;112:*.rpm=4;38;2;249;38;114:*.tcl=0;38;2;0;255;135:*.bcf=0;38;2;122;112;112:*.kex=0;38;2;230;219;116:*.mli=0;38;2;0;255;135:*.tml=0;38;2;166;226;46:*.xml=0;38;2;226;209;57:*.cfg=0;38;2;166;226;46:*.deb=4;38;2;249;38;114:*.bmp=0;38;2;253;151;31:*.ogg=0;38;2;253;151;31:*.rst=0;38;2;226;209;57:*.cgi=0;38;2;0;255;135:*.epp=0;38;2;0;255;135:*.pdf=0;38;2;230;219;116:*.pbm=0;38;2;253;151;31:*TODO=1:*.ods=0;38;2;230;219;116:*.dpr=0;38;2;0;255;135:*.clj=0;38;2;0;255;135:*.avi=0;38;2;253;151;31:*.pgm=0;38;2;253;151;31:*.fls=0;38;2;122;112;112:*.psd1=0;38;2;0;255;135:*.json=0;38;2;166;226;46:*.bash=0;38;2;0;255;135:*.fish=0;38;2;0;255;135:*.opus=0;38;2;253;151;31:*.epub=0;38;2;230;219;116:*.flac=0;38;2;253;151;31:*.h264=0;38;2;253;151;31:*.pptx=0;38;2;230;219;116:*.psm1=0;38;2;0;255;135:*.lock=0;38;2;122;112;112:*.docx=0;38;2;230;219;116:*.java=0;38;2;0;255;135:*.webm=0;38;2;253;151;31:*.tbz2=4;38;2;249;38;114:*.toml=0;38;2;166;226;46:*.less=0;38;2;0;255;135:*.html=0;38;2;226;209;57:*.tiff=0;38;2;253;151;31:*.xlsx=0;38;2;230;219;116:*.rlib=0;38;2;122;112;112:*.conf=0;38;2;166;226;46:*.diff=0;38;2;0;255;135:*.dart=0;38;2;0;255;135:*.lisp=0;38;2;0;255;135:*.purs=0;38;2;0;255;135:*.orig=0;38;2;122;112;112:*.mpeg=0;38;2;253;151;31:*.hgrc=0;38;2;166;226;46:*.yaml=0;38;2;166;226;46:*.make=0;38;2;166;226;46:*.jpeg=0;38;2;253;151;31:*.class=0;38;2;122;112;112:*.swift=0;38;2;0;255;135:*.xhtml=0;38;2;226;209;57:*.shtml=0;38;2;226;209;57:*.dyn_o=0;38;2;122;112;112:*.toast=4;38;2;249;38;114:*.cmake=0;38;2;166;226;46:*.patch=0;38;2;0;255;135:*.scala=0;38;2;0;255;135:*.ipynb=0;38;2;0;255;135:*.mdown=0;38;2;226;209;57:*.cabal=0;38;2;0;255;135:*passwd=0;38;2;166;226;46:*.cache=0;38;2;122;112;112:*shadow=0;38;2;166;226;46:*README=0;38;2;0;0;0;48;2;230;219;116:*.groovy=0;38;2;0;255;135:*.dyn_hi=0;38;2;122;112;112:*TODO.md=1:*.config=0;38;2;166;226;46:*.flake8=0;38;2;166;226;46:*.matlab=0;38;2;0;255;135:*.ignore=0;38;2;166;226;46:*INSTALL=0;38;2;0;0;0;48;2;230;219;116:*.gradle=0;38;2;0;255;135:*COPYING=0;38;2;182;182;182:*LICENSE=0;38;2;182;182;182:*setup.py=0;38;2;166;226;46:*.desktop=0;38;2;166;226;46:*TODO.txt=1:*.gemspec=0;38;2;166;226;46:*Doxyfile=0;38;2;166;226;46:*Makefile=0;38;2;166;226;46:*.rgignore=0;38;2;166;226;46:*.markdown=0;38;2;226;209;57:*.DS_Store=0;38;2;122;112;112:*README.md=0;38;2;0;0;0;48;2;230;219;116:*.fdignore=0;38;2;166;226;46:*configure=0;38;2;166;226;46:*COPYRIGHT=0;38;2;182;182;182:*.cmake.in=0;38;2;166;226;46:*.kdevelop=0;38;2;166;226;46:*.gitconfig=0;38;2;166;226;46:*Dockerfile=0;38;2;166;226;46:*README.txt=0;38;2;0;0;0;48;2;230;219;116:*.localized=0;38;2;122;112;112:*SConstruct=0;38;2;166;226;46:*.gitignore=0;38;2;166;226;46:*CODEOWNERS=0;38;2;166;226;46:*SConscript=0;38;2;166;226;46:*.scons_opt=0;38;2;122;112;112:*INSTALL.md=0;38;2;0;0;0;48;2;230;219;116:*.gitmodules=0;38;2;166;226;46:*Makefile.am=0;38;2;166;226;46:*.travis.yml=0;38;2;230;219;116:*MANIFEST.in=0;38;2;166;226;46:*LICENSE-MIT=0;38;2;182;182;182:*.synctex.gz=0;38;2;122;112;112:*Makefile.in=0;38;2;122;112;112:*INSTALL.txt=0;38;2;0;0;0;48;2;230;219;116:*CONTRIBUTORS=0;38;2;0;0;0;48;2;230;219;116:*configure.ac=0;38;2;166;226;46:*.fdb_latexmk=0;38;2;122;112;112:*.applescript=0;38;2;0;255;135:*appveyor.yml=0;38;2;230;219;116:*.clang-format=0;38;2;166;226;46:*.gitattributes=0;38;2;166;226;46:*LICENSE-APACHE=0;38;2;182;182;182:*CMakeCache.txt=0;38;2;122;112;112:*CMakeLists.txt=0;38;2;166;226;46:*CONTRIBUTORS.md=0;38;2;0;0;0;48;2;230;219;116:*.sconsign.dblite=0;38;2;122;112;112:*requirements.txt=0;38;2;166;226;46:*CONTRIBUTORS.txt=0;38;2;0;0;0;48;2;230;219;116:*package-lock.json=0;38;2;122;112;112:*.CFUserTextEncoding=0;38;2;122;112;112" diff --git a/ocr b/ocr deleted file mode 100755 index eb1d096..0000000 --- a/ocr +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -READ=$(scrot -s 'temp_%Y%m%d_%H%M%S.png' -e 'tesseract $f stdout -l jpn && rm $f') - -if [[ ! -z $READ ]]; then - echo $READ | xclip -selection clipboard -fi - diff --git a/panel.sh b/panel.sh deleted file mode 100755 index 6d0e225..0000000 --- a/panel.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -# Get CPU usage -cpu_usage=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print int(100 - $1)"%"}') - -# Get free space on root drive -free_space=$(df -h / | awk '/\// {print $4}') - -if command -v nvidia-smi &> /dev/null; then - gpu_usage=$(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{print $1"%"}') - gpu_info="| GPU: $gpu_usage" -else - gpu_info="" -fi - - -echo "CPU: $cpu_usage $gpu_info | ヂスク: $free_space |" - diff --git a/panel2.sh b/panel2.sh deleted file mode 100755 index be609e1..0000000 --- a/panel2.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -# Get CPU usage -cpu_usage=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print int(100 - $1)"%"}') - -# Get free space on root drive -free_space=$(df -h / | awk '/\// {print $4}') - -if command -v nvidia-smi &> /dev/null; then - gpu_usage=$(nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits | awk '{print $1"%"}') - gpu_info="| GPU: $gpu_usage" -else - gpu_info="" -fi - -echo " CPU: $cpu_usage $gpu_info | ヂスク: $free_space |" - diff --git a/record.sh b/record.sh deleted file mode 100755 index 2e8bc74..0000000 --- a/record.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash - -rm /tmp/desktop_audio_temp.mp3 - -cleanup() { - echo "Recording stopped. Cleaning up..." - kill $FFMPEG_PID - echo "file:///tmp/desktop_audio_temp.mp3" | xclip -sel c - gxmessage -geometry 350x50 -title "audio recorded" -center "desktop dudio has been copied to your clipboard." - exit 0 -} - -trap cleanup SIGINT SIGTERM - -ffmpeg -f pulse -i alsa_output.usb-FX-AUDIO-_DAC-X3PRO_20313330544D4319001C8004-00.analog-stereo.monitor /tmp/desktop_audio_temp.mp3 & - -FFMPEG_PID=$! -xev | grep -q "keycode: 9" && cleanup - -wait $FFMPEG_PID diff --git a/signout.sh b/signout.sh deleted file mode 100755 index 9ff7a52..0000000 --- a/signout.sh +++ /dev/null @@ -1,12 +0,0 @@ -gmessage "Are you sure you want to shut down your computer?" -center -title "Take action" -font "Sans bold 10" -default "Cancel" -buttons "_Cancel":1,"_Log out":2,"_Reboot":3,"_Shut down":4 >/dev/null - -case $? in -1) -echo "Exit";; -2) -killall openbox;; -3) -sudo shutdown -r now;; -4) -sudo shutdown -h now;; -esac diff --git a/srtrename b/srtrename deleted file mode 100755 index 33166e8..0000000 --- a/srtrename +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# Enable debug output -set -x - -# Loop through all subtitle files -for srt in *.srt; do - # Skip if no .srt files found - [[ -f "$srt" ]] || { echo "No .srt files found"; exit 1; } - - echo "Processing subtitle file: $srt" - - # Extract the episode number (S01E04) - more specific pattern - episode=$(echo "$srt" | grep -o "S[0-9]\{2\}E[0-9]\{2\}") - echo "Extracted episode number: $episode" - - # Find the corresponding video file - video_file=$(find . -maxdepth 1 -type f -name "*${episode}*.mkv") - echo "Found video file: $video_file" - - # If a matching video file is found - if [[ -n "$video_file" ]]; then - # Remove the .mkv extension and leading ./ - video_basename=$(basename "$video_file" .mkv) - # Create new subtitle name - new_name="${video_basename}.srt" - - echo "Will rename '$srt' to '$new_name'" - - # Only rename if the new name is different - if [[ "$srt" != "$new_name" ]]; then - mv -v "$srt" "$new_name" - else - echo "File already has the correct name" - fi - else - echo "No matching video file found for '$srt'" - # List all mkv files for debugging - echo "Available mkv files:" - ls -l *.mkv - fi -done diff --git a/xinitrc b/xinitrc deleted file mode 100755 index 36d6469..0000000 --- a/xinitrc +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -# /etc/X11/xinit/xinitrc -# -# global xinitrc file, used by all X sessions started by xinit (startx) - -# invoke global X session script -# -export GTK_IM_MODULE=ibus -export QT_IM_MODULE=ibus -export XMODIFIERS='@im=ibus' -xrandr --output DP-0 --mode 1920x1080 --rate 165 -xrandr --output DP-0 --mode 1280x1024 --rate 75 -[ -f ~/.Xmodmap ] && xmodmap ~/.Xmodmap -. /etc/X11/Xsession diff --git a/xmodmap b/xmodmap deleted file mode 100644 index f49fa66..0000000 --- a/xmodmap +++ /dev/null @@ -1,13 +0,0 @@ -remove Lock = Caps_Lock -keysym Caps_Lock = Escape - -clear Mod1 -clear Mod4 - -keycode 133 = Alt_L -keycode 134 = Alt_R -keycode 64 = Super_L -keycode 108 = Super_R - -add Mod1 = Alt_L Alt_R -add Mod4 = Super_L Super_R -- cgit v1.2.3