From 01ce3fc9a5c105a1d80de8c43f0cf0a494324140 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Fri, 25 Nov 2022 15:53:50 -0500 Subject: refactor: moved to using lxsudo instead of gksudo (which now seems to be unmaintained) --- .config/Thunar/accels.scm | 38 ++++++++++++++++---------------------- .config/Thunar/renamerrc | 14 ++++++++++---- .config/Thunar/uca.xml | 4 ++-- .config/awesome/rc.lua | 4 ++-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.config/Thunar/accels.scm b/.config/Thunar/accels.scm index 4da2437..13fb886 100644 --- a/.config/Thunar/accels.scm +++ b/.config/Thunar/accels.scm @@ -1,7 +1,8 @@ -; Thunar GtkAccelMap rc-file -*- scheme -*- +; thunar GtkAccelMap rc-file -*- scheme -*- ; this file is an automated accelerator map dump ; ; (gtk_accel_path "/ThunarLauncher/delete-3" "KP_Delete") +; (gtk_accel_path "/ThunarLauncher/move-to-trash" "") ; (gtk_accel_path "/ThunarLauncher/delete" "") ; (gtk_accel_path "/ThunarStandardView/invert-selection" "") ; (gtk_accel_path "/ThunarBookmarks/399503bb1565fd667e608c0857f2d60e" "") @@ -13,20 +14,18 @@ ; (gtk_accel_path "/ThunarWindow/reload" "r") ; (gtk_accel_path "/ThunarBookmarks/3ec8a1ad16951616ef2418b0409090c7" "") ; (gtk_accel_path "/ThunarWindow/view-side-pane-menu" "") -; (gtk_accel_path "/ThunarStandardView/sort-ascending" "") ; (gtk_accel_path "/ThunarWindow/open-network" "") ; (gtk_accel_path "/ThunarBookmarks/af2f1389ee2b8cd3cbc1d6ef17581407" "") ; (gtk_accel_path "/ThunarWindow/contents/help-menu" "") -; (gtk_accel_path "/ThunarLauncher/move-to-trash" "") +; (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/open-computer" "") ; (gtk_accel_path "/ThunarWindow/clear-directory-specific-settings" "") -; (gtk_accel_path "/ThunarWindow/open-file-system" "") +; (gtk_accel_path "/ThunarWindow/open-computer" "") ; (gtk_accel_path "/ThunarWindow/open-parent" "Up") ; (gtk_accel_path "/ThunarWindow/view-menu" "") ; (gtk_accel_path "/ThunarStandardView/properties" "Return") @@ -34,26 +33,26 @@ ; (gtk_accel_path "/ThunarStandardView/back" "Left") ; (gtk_accel_path "/ThunarLauncher/trash-delete" "Delete") ; (gtk_accel_path "/ThunarWindow/sendto-menu" "") -; (gtk_accel_path "/ThunarBookmarks/31dde9903a2efefec97f46f612fd983b" "") ; (gtk_accel_path "/ThunarWindow/reload-alt" "F5") +; (gtk_accel_path "/ThunarBookmarks/584b065ec3fad1083269ea0c15332d09" "") ; (gtk_accel_path "/ThunarBookmarks/3e6a4ee1e00e35dcea96ffe998aa763c" "") ; (gtk_accel_path "/ThunarWindow/zoom-out-alt" "minus") -; (gtk_accel_path "/ThunarStandardView/select-all-files" "a") ; (gtk_accel_path "/ThunarStandardView/select-by-pattern" "s") -; (gtk_accel_path "/ThunarBookmarks/584b065ec3fad1083269ea0c15332d09" "") +; (gtk_accel_path "/ThunarStandardView/rename" "F2") +; (gtk_accel_path "/ThunarStandardView/configure-columns" "") ; (gtk_accel_path "/ThunarStandardView/create-document" "") ; (gtk_accel_path "/ThunarWindow/close-tab" "w") ; (gtk_accel_path "/ThunarWindow/view-side-pane-tree" "e") ; (gtk_accel_path "/ThunarShortcutsPane/sendto-shortcuts" "") -; (gtk_accel_path "/ThunarBookmarks/0b26f85d5320dd3854a2d7efe505bf82" "") -; (gtk_accel_path "/ThunarStandardView/rename" "F2") +; (gtk_accel_path "/ThunarLauncher/execute" "") ; (gtk_accel_path "/ThunarWindow/toggle-side-pane" "F9") +; (gtk_accel_path "/ThunarBookmarks/0b26f85d5320dd3854a2d7efe505bf82" "") ; (gtk_accel_path "/ThunarWindow/open-home" "Home") -; (gtk_accel_path "/ThunarWindow/open-location-alt" "d") ; (gtk_accel_path "/ThunarBookmarks/b6ceefff69a3be93d51ae0b51b4251b9" "") ; (gtk_accel_path "/ThunarWindow/open-templates" "") -; (gtk_accel_path "/ThunarLauncher/execute" "") -; (gtk_accel_path "/ThunarWindow/close-window" "q") +; (gtk_accel_path "/ThunarWindow/open-location-alt" "d") +; (gtk_accel_path "/ThunarStandardView/select-all-files" "a") +; (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") @@ -61,26 +60,24 @@ ; (gtk_accel_path "/ThunarBookmarks/f033da049c13cbd0f23f9419385379a0" "") ; (gtk_accel_path "/ThunarLauncher/open-with-other" "") ; (gtk_accel_path "/ThunarWindow/zoom-out" "KP_Subtract") -; (gtk_accel_path "/ThunarStandardView/duplicate" "") +; (gtk_accel_path "/ThunarWindow/zoom-in-alt1" "plus") ; (gtk_accel_path "/ThunarWindow/view-side-pane-shortcuts" "b") ; (gtk_accel_path "/ThunarWindow/edit-menu" "") ; (gtk_accel_path "/ThunarWindow/contents" "F1") +; (gtk_accel_path "/ThunarWindow/close-window" "q") ; (gtk_accel_path "/ThunarWindow/preferences" "") -; (gtk_accel_path "/ThunarWindow/zoom-in-alt1" "plus") ; (gtk_accel_path "/ThunarWindow/switch-previous-tab" "Page_Up") ; (gtk_accel_path "/ThunarBookmarks/a806e5a18dc34eca5d99dce02ca16f79" "") -; (gtk_accel_path "/ThunarStandardView/sort-by-type" "") +; (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 "/ThunarStandardView/sort-by-mtime" "") ; (gtk_accel_path "/ThunarWindow/open-desktop" "") -; (gtk_accel_path "/ThunarStandardView/arrange-items-menu" "") -; (gtk_accel_path "/ThunarStandardView/create-folder" "n") ; (gtk_accel_path "/ThunarWindow/open-location" "l") ; (gtk_accel_path "/ThunarWindow/view-menubar" "m") +(gtk_accel_path "/ThunarActions/uca-action-1601790652249199-1" "F4") ; (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") @@ -89,14 +86,11 @@ ; (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 "/ThunarStandardView/sort-by-size" "") ; (gtk_accel_path "/ThunarBookmarks/789ed04b78e0e5f0aae0b799c43c8fd7" "") ; (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/trash-delete-2" "KP_Delete") ; (gtk_accel_path "/ThunarWindow/detach-tab" "") diff --git a/.config/Thunar/renamerrc b/.config/Thunar/renamerrc index dded2f9..20328c3 100644 --- a/.config/Thunar/renamerrc +++ b/.config/Thunar/renamerrc @@ -1,5 +1,5 @@ [Configuration] -LastActiveMode=THUNAR_RENAMER_MODE_SUFFIX +LastActiveMode=THUNAR_RENAMER_MODE_NAME LastActiveRenamer=ThunarSbrInsertRenamer [ThunarSbrNumberRenamer] @@ -8,9 +8,15 @@ Text=Link Locations\ Mode=THUNAR_SBR_NUMBER_MODE_123 Start=1 +[ThunarSbrReplaceRenamer] +CaseSensitive=FALSE +Replacement=discard +Pattern=screenshot +Regexp=FALSE + [ThunarSbrInsertRenamer] -Offset=0 -Text=.bak +Offset=4 +Text=\ Ariana Grande Mode=THUNAR_SBR_INSERT_MODE_INSERT -OffsetMode=THUNAR_SBR_OFFSET_MODE_RIGHT +OffsetMode=THUNAR_SBR_OFFSET_MODE_LEFT diff --git a/.config/Thunar/uca.xml b/.config/Thunar/uca.xml index 26e0273..aed91d9 100644 --- a/.config/Thunar/uca.xml +++ b/.config/Thunar/uca.xml @@ -14,7 +14,7 @@ folder-visiting Open as ROOT 1601859832500541-1 - gksudo dbus-launch thunar %f + lxsudo dbus-launch thunar %f * @@ -23,7 +23,7 @@ text-x-makefile Edit as ROOT 1601859882692361-2 - gksudo dbus-launch xed %f + lxsudo dbus-launch gvim %f * diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 3af9b74..9b4a524 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -72,9 +72,9 @@ myawesomemenu = { { "dunst=0", function() awful.spawn.easy_async_with_shell("dunstctl set-paused true") end, }, { "dunst=1", function() awful.spawn.easy_async_with_shell("dunstctl set-paused false") end, }, { "refresh", awesome.restart }, - { "reboot" , function() awful.spawn("sh -c 'gksudo reboot now'") end }, + { "reboot" , function() awful.spawn("sh -c 'lxsudo reboot now'") end }, -- { "quit", function() awesome.quit() end }, - { "shutdown", function() awful.spawn("sh -c 'gksudo shutdown now'") end}, + { "shutdown", function() awful.spawn("sh -c 'lxsudo shutdown now'") end}, { "stagnate", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl hibernate'") end}, { "suspend", function() awful.spawn.easy_async_with_shell("sh -c 'systemctl suspend'") end}, { "logout", function () awful.spawn("sh -c 'pkill -9 -u $USER'") end }, -- cgit v1.2.3