diff --git a/scripts/_thunar-terminal b/scripts/_thunar-terminal new file mode 100755 index 0000000..64971b8 --- /dev/null +++ b/scripts/_thunar-terminal @@ -0,0 +1,10 @@ +#!/bin/sh + +for path +do + test -f "$path" && + path=$(dirname "$path") + + cd "$path" + terminal +done diff --git a/scripts/default.nix b/scripts/default.nix index d4bdc58..c4d8252 100644 --- a/scripts/default.nix +++ b/scripts/default.nix @@ -22,6 +22,7 @@ br = [ ]; bmenu = [ bemenu final.dhist fish j4-dmenu-desktop jq sway ]; _diffr = [ diffr ]; + _thunar-terminal = [ final.terminal ]; kak-pager = [ fish final._diffr ]; kak-man-pager = [ final.kak-pager ]; showkeys = diff --git a/user/home.nix b/user/home.nix index f709ae1..a4f0163 100644 --- a/user/home.nix +++ b/user/home.nix @@ -133,6 +133,10 @@ in { }; programs.bash = { enable = true; }; + xdg.configFile = { + "thunar/".source = ./thunar; + }; + systemd.user.services = { steam = { Unit = { diff --git a/user/thunar/accels.scm b/user/thunar/accels.scm new file mode 100644 index 0000000..b5930e1 --- /dev/null +++ b/user/thunar/accels.scm @@ -0,0 +1,96 @@ +; thunar GtkAccelMap rc-file -*- scheme -*- +; this file is an automated accelerator map dump +; +; (gtk_accel_path "/ThunarLauncher/delete-3" "KP_Delete") +; (gtk_accel_path "/ThunarWindow/reload" "r") +; (gtk_accel_path "/ThunarLauncher/delete" "") +; (gtk_accel_path "/ThunarStandardView/invert-selection" "") +(gtk_accel_path "/ThunarActions/uca-action-1623021489374475-1" "Return") +; (gtk_accel_path "/ThunarLauncher/open-in-new-tab" "p") +; (gtk_accel_path "/ThunarLauncher/delete-2" "Delete") +; (gtk_accel_path "/ThunarWindow/zoom-in" "KP_Add") +; (gtk_accel_path "/ThunarWindow/empty-trash" "") +; (gtk_accel_path "/ThunarLauncher/open" "o") +(gtk_accel_path "/ThunarActions/uca-action-1623196889794306-1" "c") +; (gtk_accel_path "/ThunarWindow/view-side-pane-menu" "") +; (gtk_accel_path "/ThunarStandardView/sort-ascending" "") +; (gtk_accel_path "/ThunarWindow/open-network" "") +; (gtk_accel_path "/ThunarWindow/contents/help-menu" "") +; (gtk_accel_path "/ThunarWindow/open-file-system" "") +; (gtk_accel_path "/ThunarStandardView/back-alt" "BackSpace") +; (gtk_accel_path "/ThunarLauncher/paste" "v") +; (gtk_accel_path "/ThunarWindow/switch-next-tab" "Page_Down") +; (gtk_accel_path "/ThunarWindow/open-file-menu" "F10") +; (gtk_accel_path "/ThunarWindow/view-as-compact-list" "3") +; (gtk_accel_path "/ThunarWindow/about" "") +; (gtk_accel_path "/ThunarWindow/clear-directory-specific-settings" "") +; (gtk_accel_path "/ThunarWindow/open-computer" "") +; (gtk_accel_path "/ThunarWindow/view-menu" "") +; (gtk_accel_path "/ThunarWindow/open-parent" "Up") +; (gtk_accel_path "/ThunarStandardView/properties" "Return") +; (gtk_accel_path "/ThunarLauncher/open-in-new-window" "o") +; (gtk_accel_path "/ThunarStandardView/back" "Left") +; (gtk_accel_path "/ThunarLauncher/trash-delete" "Delete") +; (gtk_accel_path "/ThunarWindow/sendto-menu" "") +; (gtk_accel_path "/ThunarWindow/reload-alt" "F5") +; (gtk_accel_path "/ThunarWindow/zoom-out-alt" "minus") +; (gtk_accel_path "/ThunarStandardView/select-by-pattern" "s") +; (gtk_accel_path "/ThunarStandardView/rename" "F2") +; (gtk_accel_path "/ThunarStandardView/create-document" "") +; (gtk_accel_path "/ThunarShortcutsPane/sendto-shortcuts" "") +; (gtk_accel_path "/ThunarStandardView/sort-by-type" "") +; (gtk_accel_path "/ThunarWindow/close-tab" "w") +; (gtk_accel_path "/ThunarWindow/view-side-pane-tree" "e") +(gtk_accel_path "/ThunarActions/uca-action-1623198055590793-3" "m") +; (gtk_accel_path "/ThunarWindow/toggle-side-pane" "F9") +; (gtk_accel_path "/ThunarWindow/open-home" "Home") +; (gtk_accel_path "/ThunarLauncher/execute" "") +; (gtk_accel_path "/ThunarWindow/open-templates" "") +; (gtk_accel_path "/ThunarWindow/open-location-alt" "d") +; (gtk_accel_path "/ThunarWindow/close-window" "q") +; (gtk_accel_path "/ThunarStandardView/duplicate" "") +; (gtk_accel_path "/ThunarLauncher/cut" "x") +; (gtk_accel_path "/ThunarLauncher/sendto-desktop" "") +; (gtk_accel_path "/ThunarWindow/zoom-in-alt2" "equal") +; (gtk_accel_path "/ThunarWindow/view-location-selector-toolbar" "") +; (gtk_accel_path "/ThunarStandardView/select-all-files" "a") +; (gtk_accel_path "/ThunarLauncher/open-with-other" "") +; (gtk_accel_path "/ThunarWindow/zoom-out" "KP_Subtract") +; (gtk_accel_path "/ThunarWindow/contents" "F1") +; (gtk_accel_path "/ThunarWindow/view-side-pane-shortcuts" "b") +; (gtk_accel_path "/ThunarWindow/edit-menu" "") +; (gtk_accel_path "/ThunarWindow/zoom-in-alt1" "plus") +; (gtk_accel_path "/ThunarWindow/preferences" "") +(gtk_accel_path "/ThunarActions/uca-action-1623199341595037-4" "r") +; (gtk_accel_path "/ThunarWindow/switch-previous-tab" "Page_Up") +; (gtk_accel_path "/ThunarStandardView/sort-by-size" "") +; (gtk_accel_path "/ThunarStandardView/create-folder" "n") +; (gtk_accel_path "/ThunarWindow/view-location-selector-menu" "") +; (gtk_accel_path "/ThunarWindow/view-statusbar" "") +; (gtk_accel_path "/ThunarWindow/close-all-windows" "w") +; (gtk_accel_path "/ThunarWindow/open-trash" "") +; (gtk_accel_path "/ThunarLauncher/restore" "") +; (gtk_accel_path "/ThunarWindow/open-desktop" "") +; (gtk_accel_path "/ThunarStandardView/arrange-items-menu" "") +; (gtk_accel_path "/ThunarWindow/open-location" "l") +; (gtk_accel_path "/ThunarWindow/new-window" "n") +; (gtk_accel_path "/ThunarWindow/view-menubar" "m") +; (gtk_accel_path "/ThunarWindow/zoom-reset-alt" "0") +; (gtk_accel_path "/ThunarWindow/view-as-detailed-list" "2") +; (gtk_accel_path "/ThunarWindow/view-as-icons" "1") +(gtk_accel_path "/ThunarActions/uca-action-1623196941650150-2" "x") +; (gtk_accel_path "/ThunarStandardView/forward" "Right") +; (gtk_accel_path "/ThunarLauncher/copy" "c") +; (gtk_accel_path "/ThunarWindow/file-menu" "") +; (gtk_accel_path "/ThunarStandardView/make-link" "") +; (gtk_accel_path "/ThunarStandardView/sort-descending" "") +; (gtk_accel_path "/ThunarWindow/new-tab" "t") +; (gtk_accel_path "/ThunarWindow/go-menu" "") +; (gtk_accel_path "/ThunarLauncher/trash-delete-2" "KP_Delete") +; (gtk_accel_path "/ThunarStandardView/sort-by-mtime" "") +; (gtk_accel_path "/ThunarWindow/view-location-selector-pathbar" "") +; (gtk_accel_path "/ThunarWindow/show-hidden" "h") +; (gtk_accel_path "/ThunarStandardView/sort-by-name" "") +; (gtk_accel_path "/ThunarWindow/zoom-reset" "KP_0") +; (gtk_accel_path "/ThunarLauncher/move-to-trash" "") +; (gtk_accel_path "/ThunarWindow/detach-tab" "") diff --git a/user/thunar/uca.xml b/user/thunar/uca.xml new file mode 100644 index 0000000..d0b8932 --- /dev/null +++ b/user/thunar/uca.xml @@ -0,0 +1,64 @@ + + + + utilities-terminal + Open Terminal + 1623021489374475-1 + _thunar-terminal "%f" + + * + + + + + + + + + + folder-copy + Copy Path + 1623196889794306-1 + wl-copy %F + + * + + + + + + + + + edit-copy + Copy Name + 1623196941650150-2 + wl-copy %N + + * + + + + + + + + + gimp + Meme + 1623198055590793-3 + memegen --open -i %f + + * + + + + com.github.peteruithoven.resizer + Resize Image + 1623199341595037-4 + imgrs %f + + * + + +