├── .config ├── autostart │ ├── battery_mon.desktop │ ├── lock_screen_slideshow.desktop │ ├── opacify_windows.desktop │ └── workspace_background_switcher.desktop └── gtk-3.0 │ └── gtk.css ├── .local ├── bin │ ├── battery_mon.sh │ ├── lock_screen_slideshow.sh │ ├── opacify_windows.sh │ └── workspace_background_switcher.sh └── share │ └── nemo │ └── actions │ ├── action_scripts │ ├── apply_custom_emblem.sh │ ├── apply_custom_icon.sh │ ├── attach_to_email_xdg-email.sh │ ├── bookmark_favourite.sh │ ├── check_bookmark_favourite.sh │ ├── check_not_executable.sh │ ├── check_ownership.sh │ ├── close_windows.sh │ ├── copy_to_admin.sh │ ├── create_dir_admin.sh │ ├── create_file_admin.sh │ ├── create_link_in_target.sh │ ├── delete_admin.sh │ ├── disk_usage.sh │ ├── geany_sudoedit_check.sh │ ├── get_random_files.sh │ ├── make_executable.sh │ ├── move_to_admin.sh │ ├── nano_sudoedit_check.sh │ ├── next_wallpaper.sh │ ├── open_wallpaper.sh │ ├── print_tree.sh │ ├── rename_admin.sh │ ├── set_folder_view_recursively.sh │ ├── shellcheck.sh │ ├── show_metadata.sh │ ├── show_parent_package.sh │ ├── take_ownership.sh │ ├── toggle_checked.sh │ ├── xed_sudoedit_check.sh │ └── zenity_askpass.sh │ ├── apply_custom_emblem.nemo_action │ ├── apply_custom_icon.nemo_action │ ├── attach_to_email_tbird.nemo_action │ ├── attach_to_email_xdg-email.nemo_action │ ├── bookmark_favourite.nemo_action │ ├── close_all_windows.nemo_action │ ├── close_windows_in_workspace.nemo_action │ ├── copy_to_admin.nemo_action │ ├── create_dir_admin.nemo_action │ ├── create_dir_admin_background.nemo_action │ ├── create_file_admin.nemo_action │ ├── create_file_admin_background.nemo_action │ ├── create_link_in_target.nemo_action │ ├── create_link_on_desktop.nemo_action │ ├── delete_admin.nemo_action │ ├── disk_usage.nemo_action │ ├── geany_sudoedit.nemo_action │ ├── get_random_file.nemo_action │ ├── make_executable.nemo_action │ ├── media-info.nemo_action │ ├── move_to_admin.nemo_action │ ├── nano_sudoedit.nemo_action │ ├── new-workspace.nemo_action │ ├── next-wallpaper.nemo_action │ ├── next_workspace.nemo_action │ ├── open_wallpaper.nemo_action │ ├── previous_workspace.nemo_action │ ├── print_tree.nemo_action │ ├── remove-workspace.nemo_action │ ├── rename_admin.nemo_action │ ├── session_lock.nemo_action │ ├── session_logout.nemo_action │ ├── session_menu_logout.nemo_action │ ├── session_menu_poweroff.nemo_action │ ├── session_reboot.nemo_action │ ├── session_shutdown.nemo_action │ ├── session_suspend.nemo_action │ ├── set_folder_view_recursively.nemo_action │ ├── shellcheck.nemo_action │ ├── show_metadata.nemo_action │ ├── show_parent_package.nemo_action │ ├── take_ownership.nemo_action │ ├── toggle_checked.nemo_action │ ├── toggle_slideshow.nemo_action │ ├── touch_file.nemo_action │ ├── window_overview.nemo_action │ ├── workspace_overview.nemo_action │ └── xed_sudoedit.nemo_action ├── LICENSE ├── README.md └── opt └── login_screen_random_background.sh /.config/autostart/battery_mon.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Exec=battery_mon.sh 4 | X-GNOME-Autostart-enabled=true 5 | NoDisplay=false 6 | Hidden=false 7 | Name=battery_mon.desktop 8 | Comment=Low battery alerts 9 | X-GNOME-Autostart-Delay=15 10 | -------------------------------------------------------------------------------- /.config/autostart/lock_screen_slideshow.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Exec=lock_screen_slideshow.sh 4 | X-GNOME-Autostart-enabled=true 5 | NoDisplay=false 6 | Hidden=false 7 | Name=lock_screen_slideshow.desktop 8 | Comment=Start a background slideshow on screensaver activation 9 | X-GNOME-Autostart-Delay=30 10 | -------------------------------------------------------------------------------- /.config/autostart/opacify_windows.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Exec=opacify_windows.sh 4 | X-GNOME-Autostart-enabled=true 5 | NoDisplay=false 6 | Hidden=false 7 | Name=opacify_windows.desktop 8 | Comment=Manage windows opacity 9 | X-GNOME-Autostart-Delay=0 10 | -------------------------------------------------------------------------------- /.config/autostart/workspace_background_switcher.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Type=Application 3 | Exec=workspace_background_switcher.sh 4 | X-GNOME-Autostart-enabled=true 5 | NoDisplay=false 6 | Hidden=false 7 | Name=workspace_background_switcher.desktop 8 | Comment=Per workspace backgrounds 9 | X-GNOME-Autostart-Delay=15 10 | -------------------------------------------------------------------------------- /.config/gtk-3.0/gtk.css: -------------------------------------------------------------------------------- 1 | /* Nemo desktop over-rides */ 2 | /* Improve visibility of icon labels on light backgrounds */ 3 | .nemo-desktop.nemo-canvas-item { 4 | color: #fff; 5 | text-shadow: 0px 0px 2px #000, 1px 1px #000, 1px -1px #000, -1px 1px #000, -1px -1px #000, 1px 0px #000, 0px 1px #000, -1px 0px #000, 0px -1px #000; 6 | } 7 | /* Eliminate hover effects on label */ 8 | .nemo-desktop.nemo-canvas-item:hover { 9 | background-color: transparent; 10 | background-image: none; 11 | } 12 | /* Improve theme integration for selected icon label effects */ 13 | .nemo-desktop.nemo-canvas-item:selected { 14 | background-color: @theme_selected_bg_color; 15 | background-image: none; 16 | color: @theme_selected_fg_color; 17 | text-shadow: none; 18 | } 19 | 20 | /* Scrollbar width fixes */ 21 | scrollbar.vertical slider, 22 | scrollbar.slider.vertical 23 | { 24 | min-width: 1em; 25 | } 26 | scrollbar.horizontal slider, 27 | scrollbar.slider.horizontal 28 | { 29 | min-height: 1em; 30 | } 31 | 32 | /* Better visibility of screen-saver text on light backgrounds */ 33 | .csstage .unlockbox, 34 | .csstage .clock, 35 | .csstage .notificationwidget, 36 | .csstage .powerwidget, 37 | .csstage .trackname, 38 | .csstage .albumartist { 39 | color: #fff; 40 | text-shadow: 0px 0px 2px #000, 1px 1px #000, 1px -1px #000, -1px 1px #000, -1px -1px #000, 1px 0px #000, 0px 1px #000, -1px 0px #000, 0px -1px #000; 41 | } 42 | -------------------------------------------------------------------------------- /.local/bin/battery_mon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Script to send persistent notification on low battery events 4 | # Depends on zenity - apt install zenity 5 | # Save script in ~/bin or ~/.local/bin and make executable. 6 | # Add an entry to your startup applications. 7 | 8 | # This script will update Cinnamon's backend power settings to base low battery warnings and actions on 9 | # remaining battery percentage rather than time. It also updates the thresholds for the native notification 10 | # and actions to those set in the variables listed below. 11 | 12 | # Low Battery Warning Level 13 | LOW_BAT=20 14 | 15 | # Critical Battery Warning Level 16 | CRIT_BAT=13 17 | 18 | # Critical Battery Action Level 19 | CRIT_BAT_ACTION=10 20 | 21 | # Main script starts here 22 | # Check for existing instances and kill them leaving current instance running 23 | for PID in $(pidof -o %PPID -x "${0##*/}"); do 24 | if [ "$PID" != $$ ]; then 25 | kill -9 "$PID" 26 | fi 27 | done 28 | #Find battery 29 | if upower -e | grep battery; then 30 | BATTERY=$(upower -e | grep battery) 31 | else 32 | echo "Error could not find battery" 33 | exit 1 34 | fi 35 | 36 | # Update Gsettings 37 | gsettings set org.cinnamon.settings-daemon.plugins.power use-time-for-policy false 38 | gsettings set org.cinnamon.settings-daemon.plugins.power percentage-low "$LOW_BAT" 39 | gsettings set org.cinnamon.settings-daemon.plugins.power percentage-critical "$CRIT_BAT"; 40 | gsettings set org.cinnamon.settings-daemon.plugins.power percentage-action "$CRIT_BAT_ACTION"; 41 | 42 | # Get Critical Battery Action from Gsettings 43 | 44 | CRIT_ACTION=$(gsettings get org.cinnamon.settings-daemon.plugins.power critical-battery-action) 45 | if [ "$CRIT_ACTION" == "'suspend'" ] && busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanHybridSleep | grep yes && gsettings get org.cinnamon.SessionManager prefer-hybrid-sleep; then 46 | CRIT_ACTION="'hybrid-sleep'" 47 | fi 48 | 49 | # Start loop 50 | while true; do 51 | STATE=$(upower -i "$BATTERY" | grep -E state|xargs|cut -d' ' -f2|sed s/%//) 52 | if [ "$STATE" != "discharging" ]; then 53 | STATUS="OK" 54 | sleep 1m 55 | continue 56 | else 57 | LEVEL=$(upower -i "$BATTERY" | grep -E percentage|xargs|cut -d' ' -f2|sed s/%//) 58 | if [ "$LEVEL" -gt "$LOW_BAT" ]; then 59 | STATUS="OK" 60 | sleep 1m 61 | continue 62 | elif [ "$LEVEL" -le "$CRIT_BAT" ] && [ "$STATUS" != "Critical" ] ; then 63 | zenity --warning --text="\nBattery Critically Low - $LEVEL% left.\n\nPlugin to AC as soon as possible.\n\nThe system will $CRIT_ACTION at $CRIT_BAT_ACTION%" --width=400 64 | STATUS="Critical" 65 | sleep 1m 66 | continue 67 | elif [ "$LEVEL" -le "$LOW_BAT" ] && [ "$STATUS" != "Low" ] && [ "$STATUS" != "Critical" ]; then 68 | zenity --warning --text="\nBattery Low - $LEVEL% left.\n\nPlugin to AC.\n\nThe system will $CRIT_ACTION at $CRIT_BAT_ACTION%" --width=400 69 | STATUS="Low" 70 | sleep 1m 71 | continue 72 | fi 73 | fi 74 | sleep 1m 75 | done 76 | -------------------------------------------------------------------------------- /.local/bin/lock_screen_slideshow.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Script to set a custom background or slideshow for Cinnamon's default lockscreen & screensaver 4 | # Built and tested with Cinnamon 4.0.9 on Mint 19.1, but will probably work with older versions of Cinnamon 5 | # Save the script as ~/bin/lock_screen_slideshow.sh or ~/.local/bin/lock_screen_slideshow.sh and make executable 6 | # Add a entry to Startup Applications to launch the script after user login with a delay of 30 seconds 7 | 8 | # These variables are intended to be set by the end user. 9 | 10 | # Set STATIC_BACKGROUND to the path to your image of choice for static image mode 11 | STATIC_BACKGROUND="/usr/share/backgrounds/linuxmint/default_background.jpg" 12 | 13 | # Set SLIDESHOW to true if you want a lock-screen / screensaver slideshow, false if you want a static image 14 | SLIDESHOW=true 15 | 16 | # Set SLIDESHOW_DIR to a directory of your choice 17 | # This directory and it's sub-directorys will be searched for images 18 | # for display in a random order in slideshow mode 19 | SLIDESHOW_DIR="/usr/share/backgrounds" 20 | 21 | # Set SLIDESHOW_RANDOM to true if you want the display of images in slideshow mode to be randomised, false if not 22 | SLIDESHOW_RANDOM=true 23 | 24 | # Set to PERSISTENT_INDEX=true if you want to remember the position of a non-random slideshow between sessions, false if not 25 | PERSISTENT_INDEX=true 26 | 27 | # INTERVAL is the time time in seconds between background transitions in slideshow mode 28 | INTERVAL=10 29 | 30 | # Main script starts here 31 | # Check for existing instances and kill them leaving current instance running 32 | for PID in $(pidof -o %PPID -x "${0##*/}"); do 33 | if [ "$PID" != $$ ]; then 34 | kill -9 "$PID" 35 | fi 36 | done 37 | 38 | # set initial status 39 | ACTIVE=false 40 | 41 | # Populate IMAGES array in non random slideshow mode 42 | if ( $SLIDESHOW && ! $SLIDESHOW_RANDOM ); then 43 | if ( $PERSISTENT_INDEX ) && [ -f ~/.config/smurphos_lock_screen_index ]; then 44 | INDEX=$(cat ~/.config/smurphos_lock_screen_index) 45 | else 46 | INDEX=0 47 | fi 48 | IMAGES=() 49 | while IFS= read -r -d $'\n'; do 50 | IMAGES+=("$REPLY") 51 | done < <(find "$SLIDESHOW_DIR" -iname '*.*p*g' | sort -n) 52 | fi 53 | 54 | # Start the main loop to monitor screensaver status changes 55 | dbus-monitor --session "interface='org.cinnamon.ScreenSaver', member='ActiveChanged'" | while read -r STATE 56 | do 57 | if echo "$STATE" | grep -q "boolean true"; then 58 | # If screensaver just activated check status of native background slide-show, get user background and either set static 59 | # lock screen background or start slideshow 60 | if ( ! $ACTIVE ) ; then 61 | NATIVE_SLIDESHOW_STATE=$(gsettings get org.cinnamon.desktop.background.slideshow slideshow-enabled) 62 | DESK_BACKGROUND=$(gsettings get org.cinnamon.desktop.background picture-uri) 63 | DESK_MODE=$(gsettings get org.cinnamon.desktop.background picture-options) 64 | gsettings set org.cinnamon.desktop.background picture-options "zoom" 65 | ACTIVE=true 66 | if ( ! $SLIDESHOW ) ; then 67 | gsettings set org.cinnamon.desktop.background picture-uri "file://$STATIC_BACKGROUND" 68 | else 69 | ((TIMER=SECONDS)) 70 | fi 71 | fi 72 | # Update background if in slideshow mode 73 | if ( $SLIDESHOW ); then 74 | # Start loop to update background whilst screensaver remains active 75 | while dbus-send --print-reply --dest=org.cinnamon.ScreenSaver /org/cinnamon/ScreenSaver org.cinnamon.ScreenSaver.GetActive | grep -q "boolean true" 76 | do 77 | if (( TIMER <= SECONDS )) ; then 78 | if ( $SLIDESHOW_RANDOM ); then 79 | LOCK_BACKGROUND="$(find "$SLIDESHOW_DIR" -iname '*.*p*g' | shuf -n1)" 80 | else 81 | LOCK_BACKGROUND="${IMAGES[$INDEX]}" 82 | ((INDEX++)) 83 | if [ $INDEX -ge "${#IMAGES[@]}" ]; then 84 | INDEX=0 85 | fi 86 | if ( $PERSISTENT_INDEX ); then 87 | echo "$INDEX" > ~/.config/smurphos_lock_screen_index 88 | fi 89 | fi 90 | gsettings set org.cinnamon.desktop.background picture-uri "file://$LOCK_BACKGROUND" 91 | ((TIMER=SECONDS+INTERVAL)) 92 | fi 93 | # Sleep adds a slight delay to background reverting after the slideshow ends, but avoids excessive CPU by limiting the looped check of screensaver status to once per second. 94 | sleep 1 95 | done 96 | fi 97 | else 98 | # Set background back to the user background and unpause native slideshow on screensaver de-activation 99 | if ( $ACTIVE ) ; then 100 | gsettings set org.cinnamon.desktop.background picture-options "$DESK_MODE" 101 | if ( $NATIVE_SLIDESHOW_STATE ) ; then 102 | gsettings set org.cinnamon.desktop.background.slideshow slideshow-enabled "$NATIVE_SLIDESHOW_STATE" 103 | else 104 | gsettings set org.cinnamon.desktop.background picture-uri "$DESK_BACKGROUND" 105 | fi 106 | ACTIVE=false 107 | fi 108 | fi 109 | done 110 | -------------------------------------------------------------------------------- /.local/bin/opacify_windows.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # A script to set window opacity depending on window status & type. 4 | # Save as ~/bin/opacify_windows.sh or ~./local/bin/opacify_windows.sh and make executable 5 | # Add a startup applications entry to run opacify_windows.sh when you log-in. 6 | 7 | # Requires xdotool and wmctrl - apt install xdotool wmctrl 8 | 9 | # These variables define the opacity of various window types - values 1 to 100 10 | EXCLUDE_OPACITY=100 # Excluded windows 11 | FULLSCREEN_OPACITY=100 # Full screen windows 12 | TILED_OPACITY=100 # Tiled focused windows 13 | MAXIMISED_OPACITY=100 # Maximised focused windows 14 | DEMANDS_ATTENTION_OPACITY=100 # Any window demanding attention 15 | FOCUS_OPACITY=98 # Focused non-maximised application 16 | GROUP_OPACITY=95 # Unfocussed applications that share a PID with the focussed application 17 | DEFAULT_OPACITY=75 # Any others - e.g unfocused applications. 18 | 19 | # Any window types to exclude. See https://standards.freedesktop.org/wm-spec/latest/ar01s05.html 20 | EXCLUDE_TYPE='DESKTOP|DOCK|SPLASH' 21 | 22 | # Any Window classes to exclude. This is a way of excluding specific applications from the opacify function. 23 | # You can determine window classes for currently open applications using wmctrl -lx 24 | EXCLUDE_CLASS='Firefox|Google-chrome|Xplayer|vlc' 25 | 26 | # This function is called on a change of Window state and updates the opacity of all windows on the current workspace. 27 | function opacify_windows { 28 | # get current workspace with xdotool 29 | WORKSPACE=$(xdotool get_desktop) 30 | # set focused window opacity 31 | if xprop -id "$1" _NET_WM_WINDOW_TYPE | grep -E $EXCLUDE_TYPE || xprop -id "$1" WM_CLASS | grep -E $EXCLUDE_CLASS; then 32 | xprop -id "$1" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * EXCLUDE_OPACITY / 100)))" 33 | elif xprop -id "$1" _NET_WM_STATE | grep -q FULLSCREEN; then 34 | xprop -id "$1" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * FULLSCREEN_OPACITY / 100)))" 35 | elif xprop -id "$1" _NET_WM_STATE | grep -q TILE; then 36 | xprop -id "$1" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * TILED_OPACITY / 100)))" 37 | elif xprop -id "$1" _NET_WM_STATE | grep -q MAXIMIZED; then 38 | xprop -id "$1" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * MAXIMISED_OPACITY / 100)))" 39 | elif xprop -id "$1" _NET_WM_STATE | grep -q DEMANDS; then 40 | xprop -id "$1" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * DEMANDS_ATTENTION_OPACITY / 100)))" 41 | else 42 | xprop -id "$1" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * FOCUS_OPACITY / 100)))" 43 | fi 44 | # Don't update all windows unless there has been a change in focus 45 | if [ "$1" == "$2" ]; then 46 | return 47 | fi 48 | # get list of all window IDs in workspace 49 | WIDS=$(wmctrl -l | awk "/ $WORKSPACE /" | awk '{print$1}') 50 | # run through list and update opacity 51 | for w in $WIDS; do 52 | if xprop -id "$w" _NET_WM_WINDOW_TYPE | grep -E $EXCLUDE_TYPE || xprop -id "$w" WM_CLASS | grep -E $EXCLUDE_CLASS; then 53 | xprop -id "$w" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * EXCLUDE_OPACITY / 100)))" 54 | elif xprop -id "$w" _NET_WM_STATE | grep -q DEMANDS; then 55 | xprop -id "$w" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * DEMANDS_ATTENTION_OPACITY / 100)))" 56 | elif [ "$w" != "$1" ] && diff <(xprop -id "$w" _NET_WM_PID) <(xprop -id "$1" _NET_WM_PID); then 57 | xprop -id "$w" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * GROUP_OPACITY / 100)))" 58 | elif [ "$w" != "$1" ]; then 59 | xprop -id "$w" -f _NET_WM_WINDOW_OPACITY 32c -set _NET_WM_WINDOW_OPACITY "$(printf 0x%x $((0xffffffff * DEFAULT_OPACITY / 100)))" 60 | fi 61 | done } 62 | 63 | # Main script starts here 64 | # Check for existing instances and kill them leaving current instance running 65 | for PID in $(pidof -o %PPID -x "${0##*/}"); do 66 | if [ "$PID" != $$ ]; then 67 | kill -9 "$PID" 68 | fi 69 | done 70 | # main loop 71 | while : 72 | do 73 | # get current focused window 74 | while ! xdotool getactivewindow 2> /dev/null; do true; done 75 | INITID=$(printf 0x0%x "$(xdotool getactivewindow)") 76 | # wait for any change in state in the originally focused window 77 | xprop -notype -id "$INITID" -spy _NET_WM_STATE 2> /dev/null | while read -r; 78 | do 79 | sleep 0.1; 80 | # update the currently focused window in case the change was a change in focus 81 | while ! xdotool getactivewindow 2> /dev/null; do true; done 82 | FOCUSID=$(printf 0x0%x "$(xdotool getactivewindow)") 83 | # call opacify function 84 | opacify_windows "$FOCUSID" "$INITID" 85 | # if change was a change in focus kill the xprop -spy process and restart loop 86 | if [ "$INITID" != "$FOCUSID" ]; then 87 | pkill -P $$ xprop 88 | break 89 | fi 90 | done 91 | done 92 | -------------------------------------------------------------------------------- /.local/bin/workspace_background_switcher.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Script to set a per workspace desktop background in Cinnamon. 3 | # Save as ~/bin/workspace_backgrounds_switcher.sh or ~/.local/bin/workspace_backgrounds_switcher.sh and make executable 4 | # Add an entry in startup applications to launch the script on start-up. 5 | 6 | # Set your images here - one per active workspace. 7 | # Add extra WORKSPACE_BACKGROUND[X] entries as necessary. 8 | WORKSPACE_BACKGROUND[0]="/usr/share/backgrounds/linuxmint/bookwood_linuxmint.jpg" 9 | WORKSPACE_BACKGROUND[1]="/usr/share/backgrounds/linuxmint/edesigner_linuxmint.png" 10 | WORKSPACE_BACKGROUND[2]="/usr/share/backgrounds/linuxmint/sele_linuxmint.png" 11 | 12 | 13 | # Main script starts here 14 | # Check for existing instances and kill them leaving current instance running 15 | for PID in $(pidof -o %PPID -x "${0##*/}"); do 16 | if [ "$PID" != $$ ]; then 17 | kill -9 "$PID" 18 | fi 19 | done 20 | # Monitor for workspace changes and set the background on change. 21 | xprop -root -spy _NET_CURRENT_DESKTOP | while read -r; 22 | do 23 | WORKSPACE=$(echo ${REPLY} | cut -d" " -f3) 24 | gsettings set org.cinnamon.desktop.background picture-uri "file://${WORKSPACE_BACKGROUND[$WORKSPACE]}" 25 | done 26 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/apply_custom_emblem.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #Shell script for nemo action apply_custom_emblem 4 | #Requires zenity - apt install zenity 5 | #Requires imagemagick - apt install imagemagick 6 | #Requires wmctrl - apt install wmctrl 7 | #Requires xplayer-video-thumbnailer or totem-video-thumbnailer - apt install xplayer or apt install totem 8 | 9 | #Make a local emblems directory if it does not exist 10 | mkdir -p "$HOME"/.icons/hicolor/256x256/emblems 11 | 12 | #Create emblem function 13 | function create_emblem { 14 | #If source is jpg, png or tiff use source directly to create emblem, otherwise use thumb-nailer to create a temporary source image 15 | if file "$2" | grep JPEG || file "$2" | grep PNG || file "$2" | grep TIFF; then 16 | convert "$2" -resize 256x256^ / -gravity center -extent 256x256 /tmp/emblem.png 17 | else 18 | "$3" -s 1024 "$2" /tmp/thumbnail.png 19 | convert /tmp/thumbnail.png -resize 256x256^ / -gravity center -extent 256x256 /tmp/emblem.png 20 | fi 21 | OUTPUT_FILE="$HOME"/.icons/hicolor/256x256/emblems/emblem-custom-$(identify -format %#\\n /tmp/emblem.png | cut -c 1-24) 22 | mv -f /tmp/emblem.png "$OUTPUT_FILE".png 23 | #Apply new emblem to directory 24 | gio set -t stringv "$1" metadata::emblems "$(basename "$OUTPUT_FILE")" 25 | } 26 | 27 | # Check which thumb-nailer is available 28 | if command -v xplayer-video-thumbnailer; then 29 | THUMBNAILER="xplayer-video-thumbnailer" 30 | elif command -v totem-video-thumbnailer; then 31 | THUMBNAILER="totem-video-thumbnailer" 32 | else 33 | zenity --info --width=250 --text="No supported thumbnailer available. Please install xplayer or totem"; 34 | exit 1 35 | fi 36 | 37 | #Random image or picker? 38 | if [ -f "$1" ] || ANSWER=$(zenity --question --icon-name=dialog-question --extra-button="Cancel" --no-wrap --title="Use file selection dialogue?" --text="\nChoose YES to select an image to use as emblem for $1\n\nChoose NO to use a random emblem for $1"); then 39 | #Picker 40 | if [ -d "$1" ]; then 41 | SOURCE_DIR="$1" 42 | else 43 | SOURCE_DIR=$(xdg-user-dir PICTURES) 44 | fi 45 | SOURCE_PIC=$(zenity --file-selection --filename="$SOURCE_DIR"/ --file-filter='Supported media (jpg/png/gif/tiff/mp3/mp4/mkv/avi/mov) | *.jp*g *JP*G *.png *.PNG *.gif *.GIF *.tif* *.TIF^ *.mp* *.MP* *.mkv *.MKV *.avi *.AVI *.mov *.MOV' --file-filter='All files | *' --title "Select source file") 46 | if [ -z "$SOURCE_PIC" ]; then 47 | exit 1; 48 | fi 49 | create_emblem "$1" "$SOURCE_PIC" "$THUMBNAILER" 50 | elif [ "$ANSWER" == "Cancel" ]; then 51 | exit 1; 52 | else 53 | #Random image select a maxdepth 54 | DEPTH=$(zenity --entry --title="Select maximum depth." --entry-text="1" --text="Confirm the maximum number of sub directory levels to search for images\n\nThe value should be greater than 0\n") 55 | if [ -z "$DEPTH" ]; then 56 | exit 1; 57 | fi 58 | if [[ ! $DEPTH =~ ^[0-9]+$ ]] || [[ $DEPTH = "0" ]]; then 59 | zenity --info --width=250 --text="Depth must be an integer greater than 0. Aborting operation. Please try again."; 60 | exit 1 61 | fi 62 | #Apply random emblems to sub-directories recursively? 63 | if ANSWER=$(zenity --question --icon-name=dialog-question --extra-button="Cancel" --no-wrap --title="Apply emblems recursively?" --text="\nChoose YES to apply random emblems to $1 and it's sub-directories\n\nChoose NO to apply a random emblem to $1 only"); then 64 | COUNT=0 65 | PROGRESS=0 66 | MAX=$(find -L "$1" -type d | wc -l) 67 | INCREMENT=$(echo "scale=2;$MAX / 100" | bc) 68 | find -L "$1" -type d -print0 | while IFS= read -r -d $'\0' DIRS; do 69 | SOURCE_PIC=$(find -L "$DIRS" -maxdepth "$DEPTH" -iname '*.jp*g' -o -iname '*.png' -o -iname '*.gif' -o -iname '*.tif*' -o -iname '*.mp*' -o -iname '*.mkv' -o -iname '*.avi' -o -iname '*.mov' | shuf -n1) 70 | ((COUNT++)) 71 | if [ -n "$SOURCE_PIC" ]; then 72 | create_emblem "$DIRS" "$SOURCE_PIC" "$THUMBNAILER" 73 | fi 74 | PROGRESS=$(echo "$COUNT / $INCREMENT" | bc) 75 | echo "$PROGRESS" 76 | echo "# $COUNT of $MAX : $PROGRESS% Processing: $(basename "$DIRS")" 77 | done > >(zenity --progress --auto-close --percentage=0 --time-remaining --text="Applying emblems to $1 and sub-directories ") 78 | elif [ "$ANSWER" == "Cancel" ]; then 79 | exit 1; 80 | else 81 | SOURCE_PIC=$(find -L "$1" -maxdepth "$DEPTH" -iname '*.jp*g' -o -iname '*.png' -o -iname '*.gif' -o -iname '*.tif*' -o -iname '*.mp*' -o -iname '*.mkv' -o -iname '*.avi' -o -iname '*.mov' | shuf -n1) 82 | if [ -z "$SOURCE_PIC" ]; then 83 | zenity --error --width=250 --text="Could not apply a random custom emblem\n\nNo supported file type found in directory" 84 | exit 1; 85 | fi 86 | create_emblem "$1" "$SOURCE_PIC" "$THUMBNAILER" 87 | fi 88 | fi 89 | #Quit and restart nemo desktop to load new emblems 90 | nemo-desktop -q 91 | nemo-desktop & 92 | # Only restart nemo if there is at least one nemo window open. 93 | # This will reopen nemo in the same directory as was active when the action was launched. 94 | # Todo - find a reliable way to get the path of all open nemo windows / tabs and restart all of them. 95 | if wmctrl -lx | grep nemo.Nemo; then 96 | nemo -q 97 | nemo "$(dirname "$1")" & 98 | else 99 | nemo -q 100 | fi 101 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/apply_custom_icon.sh: -------------------------------------------------------------------------------- 1 | #!/bin/dash 2 | #Shell script for nemo action apply_custom_icon 3 | #Requires zenity - apt install zenity 4 | #Picker 5 | if [ -d "$1" ]; then 6 | SOURCE_DIR="$1" 7 | else 8 | SOURCE_DIR=$(xdg-user-dir PICTURES) 9 | fi 10 | SOURCE_PIC=$(zenity --file-selection --filename="$SOURCE_DIR"/ --file-filter='Supported media (jpg/png/gif/tiff) | *.jp*g *JP*G *.png *.PNG *.gif *.GIF *.tif* *.TIF^' --file-filter='All files | *' --title "Select source file") 11 | if [ -z "$SOURCE_PIC" ]; then 12 | exit 1; 13 | fi 14 | #Apply new icon 15 | gio set -t string "$1" metadata::custom-icon "file://$SOURCE_PIC" 16 | touch "$1" 17 | 18 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/attach_to_email_xdg-email.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | COMMAND="xdg-email" 3 | for file in "$@" 4 | do 5 | COMMAND="$COMMAND --attach '$file'" 6 | done 7 | sh -c "$COMMAND" 8 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/bookmark_favourite.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in "$@"; do 3 | UNQUOTED=${i:1:-1} 4 | FILE_PATH=${UNQUOTED#file:\/\/} 5 | if ! dconf read /org/x/apps/favorites/list | grep -q "$i"; then 6 | FAVORITES=$(dconf read /org/x/apps/favorites/list | sed 's/^.//;s/.$//') 7 | if [ "$FAVORITES" = "as [" ] || [ -z "$FAVORITES" ]; then 8 | FAVORITES="'$i::inode/directory'" 9 | else 10 | FAVORITES="$FAVORITES, '$i::inode/directory'" 11 | fi 12 | dconf write /org/x/apps/favorites/list "[$FAVORITES]" 13 | gio set -t stringv "$FILE_PATH" metadata::xapp-favorite true 14 | fi 15 | if ! grep -q "$i" ~/.config/gtk-3.0/bookmarks; then 16 | echo "$i" >> ~/.config/gtk-3.0/bookmarks 17 | fi 18 | done 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/check_bookmark_favourite.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in "$@"; do 3 | if dconf read /org/x/apps/favorites/list | grep -q "$i" && grep -q "$i" ~/.config/gtk-3.0/bookmarks; then 4 | RESULT="1" 5 | continue 6 | else 7 | RESULT="0" 8 | break 9 | fi 10 | done 11 | exit "$RESULT" 12 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/check_not_executable.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in "$@"; do 3 | if [ -x "$i" ]; then 4 | RESULT="1" 5 | continue 6 | else 7 | RESULT="0" 8 | break 9 | fi 10 | done 11 | exit "$RESULT" 12 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/check_ownership.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in "$@"; do 3 | if [ "$(stat -c %U "$i")" = "$USER" ] ; then 4 | RESULT="1" 5 | continue 6 | else 7 | RESULT="0" 8 | break 9 | fi 10 | done 11 | exit "$RESULT" 12 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/close_windows.sh: -------------------------------------------------------------------------------- 1 | #!/bin/dash 2 | 3 | # Close windows gracefully 4 | # depends on xdotool (apt install xdotool) and wmctrl (apt install wmctrl) 5 | 6 | # Usage 7 | # close_windows.sh workspace: Closes all windows in current workspaces 8 | # close_windows.sh all: Closes all windows all workspace 9 | 10 | # you can exlude windows by their WM_CLASS 11 | # e.g EXCLUSION1=Gnome-terminal 12 | # add additional EXCLUSIONx lines as required 13 | EXCLUSION1=foo 14 | EXCLUSION2=foo 15 | 16 | case "$1" 17 | in 18 | all ) # get windows 19 | WINDOWS=$(wmctrl -l | cut -f1 -d' ');; 20 | workspace ) # get current workspace with xdotool 21 | WORKSPACE=$(xdotool get_desktop) 22 | # get windows in current workspace 23 | WINDOWS=$(wmctrl -l | awk "/ $WORKSPACE /" | cut -f1 -d' ');; 24 | * ) echo "Usage\n\nclose_windows.sh workspace: Closes all windows in current workspaces\nclose_windows.sh all: Closes all windows all workspace"; 25 | exit 1;; 26 | esac 27 | 28 | # get ignored windows from exclusions and desktop 29 | # expand awk statement with additional `|| /$EXCLUSIONx/` as required 30 | NOTWINDOWS=$(wmctrl -l | awk "/ -1 / || /$EXCLUSION1/ || /$EXCLUSION2/" | cut -f1 -d' ') 31 | 32 | # close windows gracefully 33 | for i in $WINDOWS; do 34 | if ! echo "$NOTWINDOWS" | grep -wq "$i" ; then 35 | wmctrl -ic "$i" 36 | fi 37 | sleep 0.1 38 | done 39 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/copy_to_admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Get destination directory 3 | DEST=$(zenity --file-selection --directory --title "Select the directory to copy to.") 4 | if [ -z "$DEST" ]; then 5 | exit 1; 6 | fi 7 | #Get ownership of $DEST 8 | DESTOWNER=$(stat -c %U "$DEST") 9 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 10 | SUCCESSSTRING="Successfully copied:" 11 | for i in "$@"; do 12 | #Check not overwriting an existing file or directory 13 | FILE=$(basename "$i") 14 | if [ -e "$DEST/$FILE" ]; then 15 | if ! zenity --question --icon-name=dialog-warning --width=250 --default-cancel --title="File conflict" --text="$DEST/$FILE already exists. Overwrite existing?"; then 16 | NAME=$(zenity --entry --width=250 --title "File name" --text="Select an alternative file name or press cancel to abort." --entry-text="$FILE(Copy)") 17 | if [ -z "$NAME" ]; then 18 | exit 1 19 | fi 20 | else 21 | NAME=$FILE 22 | fi 23 | else 24 | NAME=$FILE 25 | fi 26 | #Is destination under ownership of user? 27 | if [ "$DESTOWNER" != "$USER" ] ; then 28 | sudo -A -u "$DESTOWNER" cp -r "$i" "$DEST/$NAME" 29 | else 30 | cp -r "$i" "$DEST/$NAME" 31 | fi 32 | if [ $? = 1 ]; then 33 | zenity --info --width=250 --text="Error copying $i. Try again." 34 | exit 1 35 | else 36 | SUCCESSSTRING+=" 37 | $i to $DEST/$NAME" 38 | fi 39 | done 40 | notify-send "$SUCCESSSTRING" 41 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/create_dir_admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Enter directory name 3 | NAME=$(zenity --entry --width 250 --title="Entire directory name." --text="Please type a name for your new directory.") 4 | if [ -z "$NAME" ]; then 5 | exit 1; 6 | fi 7 | #Check not overwriting an existing file or directory 8 | if [ -e "$1/$NAME" ]; then 9 | zenity --info --width=250 --text="Error creating directory. $1/$NAME already exists. Try again." 10 | exit 1 11 | fi 12 | #Is destination under ownership of user? 13 | DESTOWNER=$(stat -c %U "$1") 14 | if [ "$DESTOWNER" != "$USER" ] ; then 15 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 16 | sudo -A -u "$DESTOWNER" mkdir "$1/$NAME" 17 | else 18 | mkdir "$1/$NAME" 19 | fi 20 | if [ $? = 1 ]; then 21 | zenity --info --width=250 --text="Error creating directory. Try again." 22 | exit 1 23 | else 24 | notify-send --expire-time=200000 "Successfully created $1/$NAME" 25 | exit 0 26 | fi 27 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/create_file_admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Enter file name 3 | NAME=$(zenity --entry --width 250 --title="Entire file name." --text="Please type a name for your new file.") 4 | if [ -z "$NAME" ]; then 5 | exit 1; 6 | fi 7 | #Check not overwriting an existing file or directory 8 | if [ -e "$1/$NAME" ]; then 9 | zenity --info --width=250 --text="Error creating file. $1/$NAME already exists. Try again." 10 | exit 1 11 | fi 12 | #Is destination under ownership of user? 13 | DESTOWNER=$(stat -c %U "$1") 14 | if [ "$DESTOWNER" != "$USER" ] ; then 15 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 16 | sudo -A -u "$DESTOWNER" touch "$1/$NAME" 17 | else 18 | touch "$1/$NAME" 19 | fi 20 | if [ $? = 1 ]; then 21 | zenity --info --width=250 --text="Error creating file. Try again." 22 | exit 1 23 | else 24 | notify-send --expire-time=200000 "Successfully created $1/$NAME" 25 | exit 0 26 | fi 27 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/create_link_in_target.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Get destination directory 3 | DEST=$(zenity --file-selection --directory --title "Select the directory to create the link in.") 4 | if [ -z "$DEST" ]; then 5 | exit 1; 6 | fi 7 | #Confirm name of link 8 | FILE=$(basename "$1") 9 | if [ ! -e "$DEST/$FILE" ]; then 10 | NAME=$(zenity --entry --width=250 --title "Link name" --text="Confirm link name" --entry-text="$FILE" ) 11 | else 12 | NAME=$(zenity --entry --width=250 --title "Link name" --text="Confirm link name" --entry-text="Link to $FILE" ) 13 | fi 14 | if [ -z "$NAME" ]; then 15 | exit 1; 16 | fi 17 | #Check not overwriting an existing file or directory 18 | if [ -e "$DEST/$NAME" ]; then 19 | zenity --info --width=250 --text="Error creating link. $DEST/$NAME already exists. Try again." 20 | exit 1 21 | fi 22 | #Is destination writeable? 23 | if [ ! -w "$DEST" ] ; then 24 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 25 | sudo -A ln -s "$1" "$DEST/$NAME" 26 | else 27 | ln -s "$1" "$DEST/$NAME" 28 | fi 29 | if [ $? = 1 ]; then 30 | zenity --info --width=250 --text="Error creating link. Try again." 31 | exit 1 32 | else 33 | notify-send --expire-time=200000 "Successfully created link from $DEST/$NAME to $1" 34 | exit 0 35 | fi 36 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/delete_admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | CONFIRM=false 3 | SUCCESSSTRING="Successfully deleted:" 4 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 5 | for i in "$@"; do 6 | #Is directory writeable? 7 | if [ ! -w "$(dirname "$i")" ]; then 8 | if ( ! $CONFIRM ); then 9 | if zenity --question --icon-name=dialog-warning --width=250 --default-cancel --title="Please confirm deletion" --text="This action cannot be undone!\n\nDelete $# files/directories?"; then 10 | CONFIRM=true 11 | sudo -A rm -r "$i" 12 | else 13 | exit 1 14 | fi 15 | else 16 | sudo -A rm -r "$i" 17 | fi 18 | else 19 | if ( ! $CONFIRM ); then 20 | if zenity --question --icon-name=dialog-warning --width=250 --default-cancel --title="Please confirm deletion" --text="This action cannot be undone!\n\nDelete $# files/directories?"; then 21 | CONFIRM=true 22 | rm -r "$i" 23 | else 24 | exit 1 25 | fi 26 | else 27 | rm -r "$i" 28 | fi 29 | fi 30 | if [ $? = 1 ]; then 31 | zenity --warning --width=250 --text="Error deleting $i\n\nOperation aborted." 32 | exit 1 33 | else 34 | SUCCESSSTRING+=" 35 | $i" 36 | fi 37 | done 38 | notify-send "$SUCCESSSTRING" 39 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/disk_usage.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for DIR in "$@"; do 3 | if [ -L "$DIR" ]; then 4 | if zenity --question --icon-name=dialog-question --no-wrap --text="One of your selections is a symlink.\n\nDo you want to include the disk usage of symlinked files and directories?"; then 5 | zenity --info --no-wrap --title="Disk Usage (Inc. Symlinks)" --text="Combined Disk Usage of\n\n$(printf '%s\n' "$@")\n\n$(du -Lhc "$@" | tail -n1 | cut -d ' ' -f 1)" 6 | exit 7 | else 8 | break 9 | fi 10 | fi 11 | done 12 | zenity --info --no-wrap --title="Disk Usage" --text="Combined Disk Usage of\n\n$(printf '%s\n' "$@")\n\n$(du -hc "$@" | tail -n1 | cut -d ' ' -f 1)" 13 | 14 | 15 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/geany_sudoedit_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | FILEOWNER=$(stat -c %U "$1") 3 | if [ "$FILEOWNER" = "$USER" ]; then 4 | geany -si "$1" 5 | else 6 | export SUDO_EDITOR="geany -si" 7 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 8 | sudoedit -A -u "$FILEOWNER" "$1" 9 | fi 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/get_random_files.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Define target directory and number of files 3 | TARGET=$(zenity --file-selection --directory --title "Select a target directory.") 4 | if [ -z "$TARGET" ]; then 5 | exit 1; 6 | fi 7 | #Is target writeable? 8 | if [ ! -w "$TARGET" ] ; then 9 | zenity --info --width=250 --text="You do not have permission to copy files to $TARGET" 10 | exit 1 11 | fi 12 | NUMBER=$(zenity --entry --title="How many random files?" --text="Please enter an integer.") 13 | if ! [[ $NUMBER =~ ^[0-9]+$ ]]; then 14 | zenity --info --width=250 --text="That's not an integer. Aborting operation. Please try again."; 15 | exit 1 16 | fi 17 | #Send a notification for job start 18 | notify-send --expire-time=100000 "Get random files is working." 19 | find "$1/" -type f | shuf -n"$NUMBER" | while read -r FILE; do cp -v "$FILE" "$TARGET/${FILE##*/}"; done 20 | notify-send --expire-time=200000 "Your random files are in $TARGET" 21 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/make_executable.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 3 | SUCCESSSTRING="Made executable:" 4 | for i in "$@"; do 5 | if [ -x "$i" ]; then 6 | continue 7 | fi 8 | #Get ownership 9 | OWNER=$(stat -c %U "$i") 10 | if [ "$OWNER" != "$USER" ] ; then 11 | sudo -A -u "OWNER" chmod +x "$i" 12 | else 13 | chmod +x "$i" 14 | fi 15 | if [ $? = 1 ]; then 16 | zenity --info --width=250 --text="Error making $i executable. Try again." 17 | exit 1 18 | else 19 | SUCCESSSTRING+=" 20 | $i" 21 | fi 22 | done 23 | notify-send "$SUCCESSSTRING" 24 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/move_to_admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Get destination directory 3 | DEST=$(zenity --file-selection --directory --title "Select the directory to move to.") 4 | if [ -z "$DEST" ]; then 5 | exit 1; 6 | fi 7 | #Get ownership of $DEST 8 | DESTOWNER=$(stat -c %U "$DEST") 9 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 10 | SUCCESSSTRING="Successfully moved:" 11 | for i in "$@"; do 12 | #Check not overwriting an existing file or directory 13 | FILE=$(basename "$i") 14 | if [ -e "$DEST/$FILE" ]; then 15 | if ! zenity --question --icon-name=dialog-warning --width=250 --default-cancel --title="File conflict" --text="$DEST/$FILE already exists. Overwrite existing?"; then 16 | NAME=$(zenity --entry --width=250 --title "File name" --text="Select an alternative file name or press cancel to abort." --entry-text="$FILE(Copy)") 17 | if [ -z "$NAME" ]; then 18 | exit 1 19 | fi 20 | else 21 | NAME=$FILE 22 | fi 23 | else 24 | NAME=$FILE 25 | fi 26 | #Check current file owner 27 | SOURCEOWNER=$(stat -c %U "$i") 28 | #Is destination under ownership of user? 29 | if [ "$DESTOWNER" != "$USER" ]; then 30 | if [ "$DESTOWNER" == "$SOURCEOWNER" ]; then 31 | sudo -A -u "$DESTOWNER" mv "$i" "$DEST/$NAME" 32 | else 33 | sudo -A -u "$DESTOWNER" cp -r "$i" "$DEST/$NAME" 34 | sudo -A rm -r "$i" 35 | fi 36 | elif [ "$SOURCEOWNER" != "$USER" ]; then 37 | cp -r "$i" "$DEST/$NAME" 38 | sudo -A rm -r "$i" 39 | else 40 | mv "$i" "$DEST/$NAME" 41 | fi 42 | if [ $? = 1 ]; then 43 | zenity --info --width=250 --text="Error moving $i. Try again." 44 | exit 1 45 | else 46 | SUCCESSSTRING+=" 47 | $i to $DEST/$NAME" 48 | fi 49 | done 50 | notify-send "$SUCCESSSTRING" 51 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/nano_sudoedit_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | FILEOWNER=$(stat -c %U "$1") 3 | if [ "$FILEOWNER" = "$USER" ]; then 4 | nano "$1" 5 | else 6 | export SUDO_EDITOR="nano" 7 | sudoedit -u "$FILEOWNER" "$1" 8 | fi 9 | 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/next_wallpaper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if [ "$(gsettings get org.cinnamon.desktop.background.slideshow slideshow-enabled)" == false ] ; then 3 | gsettings set org.cinnamon.desktop.background.slideshow slideshow-enabled true 4 | fi 5 | if [ "$(gsettings get org.cinnamon.desktop.background.slideshow slideshow-paused)" == true ] ; then 6 | gsettings set org.cinnamon.desktop.background.slideshow slideshow-paused false 7 | fi 8 | dbus-send --print-reply --dest=org.Cinnamon.Slideshow /org/Cinnamon/Slideshow org.Cinnamon.Slideshow.getNextImage 9 | 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/open_wallpaper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | URI=$(gsettings get org.cinnamon.desktop.background picture-uri) 3 | UNQUOTED=${URI:1:-1} 4 | FILE_PATH=${UNQUOTED#file:\/\/} 5 | CHOICE=$(zenity --question --no-wrap --switch --extra-button="Open wallpaper directory" --extra-button="Open wallpaper in default image viewer" --extra-button="Cancel" --text="$FILE_PATH" --title="Current Wallpaper") 6 | case "$CHOICE" in 7 | "Open wallpaper directory") 8 | xdg-open "$(dirname "$FILE_PATH")";; 9 | "Open wallpaper in default image viewer") 10 | xdg-open "$FILE_PATH";; 11 | *) 12 | exit 1;; 13 | esac 14 | 15 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/print_tree.sh: -------------------------------------------------------------------------------- 1 | #!/bin/dash 2 | for i in "$@"; do 3 | tree "$i" --si --sort=size -H "$i" -o /tmp/"$(basename "$i")".html 4 | xdg-open /tmp/"$(basename "$i")".html 5 | done 6 | exit 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/rename_admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #Get new name 3 | ENTRY=$(basename "$1") 4 | NAME=$(zenity --entry --width=400 --title "File name" --text="Confirm new filename" --entry-text="$ENTRY") 5 | if [ -z "$NAME" ]; then 6 | exit 1; 7 | fi 8 | #Check not overwriting an existing file or directory 9 | if [ -e "$2/$NAME" ]; then 10 | zenity --info --width=250 --text="Error. $2/$NAME already exists. Try again." 11 | exit 1 12 | fi 13 | #Is location writeable? 14 | if [ ! -w "$2" ] ; then 15 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 16 | sudo -A mv "$1" "$2/$NAME" 17 | else 18 | mv "$1" "$2/$NAME" 19 | fi 20 | if [ $? = 1 ]; then 21 | zenity --info --width=250 --text="Error renaming $1. Try again." 22 | exit 1 23 | else 24 | notify-send --expire-time=200000 "Successfully renamed $1 to $2/$NAME" 25 | exit 0 26 | fi 27 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/set_folder_view_recursively.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #Shell script for nemo action apply_folder_view recursively 4 | #Requires zenity - apt install zenity 5 | #Requires wmctrl - apt install wmctrl 6 | 7 | # Function to set metadata with progress indicator 8 | function set_metadata { 9 | COUNT=0 10 | PROGRESS=0 11 | MAX=$(find -L "$1" -type d | wc -l) 12 | INCREMENT=$(echo "scale=2;$MAX / 100" | bc) 13 | find -L "$1" -type d -print0 | while IFS= read -r -d $'\0' DIRS; do 14 | gio set "$DIRS" metadata::nemo-default-view "$2" 15 | gio set "$DIRS" $3 16 | ((COUNT++)) 17 | PROGRESS=$(echo "$COUNT / $INCREMENT" | bc) 18 | echo "$PROGRESS" 19 | echo "# $COUNT of $MAX : $PROGRESS% Processing: $(basename "$DIRS")" 20 | done > >(zenity --progress --auto-close --percentage=0 --time-remaining --text="Applying view preferences to $1 and sub-folders) ") 21 | } 22 | 23 | # Select a view preference for selected selected directory and sub-directories 24 | VIEW=$(zenity --entry --entry-text="1" --title="Select view type" --text="Select a view type for $1/*\nEnter 1, 2 or 3\n\n1- Icon View\n2- Compact View\n3- List View\n") 25 | if [ -z "$VIEW" ]; then 26 | exit 1; 27 | fi 28 | if [[ ! $VIEW =~ ^[1-3]+$ ]] || [[ $VIEW -lt 1 ]] || [[ $VIEW -gt 3 ]]; then 29 | zenity --info --width=250 --text="View-type must be an integer in the range 1 to 3. Aborting operation. Please try again."; 30 | exit 1 31 | fi 32 | # Select a zoom preference for selected directory and sub-directories 33 | ZOOM=$(zenity --entry --entry-text="1" --title="Select zoom level" --text="Select a zoom level for $1/*\n\Enter 0, 1, 2, 3, 4, 5 or 6\n\n\n0- 33%\n1- 50% \n2- 66%\n3- 100%\n4- 150% \n5- 200% \n6- 400%\n") 34 | if [ -z "$ZOOM" ]; then 35 | exit 1; 36 | fi 37 | if [[ ! $ZOOM =~ ^[0-6]+$ ]] || [[ $ZOOM -lt 0 ]] || [[ $ZOOM -gt 6 ]]; then 38 | zenity --info --width=250 --text="Zoom must be an integer in the range 0 to 6. Aborting operation. Please try again."; 39 | exit 1 40 | fi 41 | # Apply choices via set_metadata function 42 | case $VIEW in 43 | 1) 44 | set_metadata "$1" "OAFIID:Nemo_File_Manager_Icon_View" "metadata::nemo-icon-view-zoom-level $ZOOM" 45 | ;; 46 | 2) 47 | set_metadata "$1" "OAFIID:Nemo_File_Manager_Compact_View" "metadata::nemo-compact-view-zoom-level $ZOOM" 48 | ;; 49 | 3) 50 | set_metadata "$1" "OAFIID:Nemo_File_Manager_List_View" "metadata::nemo-list-view-zoom-level $ZOOM" 51 | ;; 52 | esac 53 | # Restart Nemo to apply changes. 54 | if wmctrl -lx | grep nemo.Nemo; then 55 | nemo -q 56 | nemo "$(dirname "$1")" & 57 | else 58 | nemo -q 59 | fi 60 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/shellcheck.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in "$@"; do 3 | shellcheck -W 10 "$i" > /tmp/shellcheck_"$(basename "$i")".txt; 4 | if [ -s /tmp/shellcheck_"$(basename "$i")".txt ]; then 5 | xdg-open /tmp/shellcheck_"$(basename "$i")".txt 6 | xdg-open "$i" 7 | gio set -t stringv "$i" metadata::emblems emblem-warning 8 | else 9 | gio set -t stringv "$i" metadata::emblems emblem-checked 10 | fi 11 | touch "$i" 12 | done 13 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/show_metadata.sh: -------------------------------------------------------------------------------- 1 | #!/bin/dash 2 | OUTPUT=$(gio info "$1" | grep "metadata::") 3 | if [ -z "$OUTPUT" ]; then 4 | OUTPUT="$1 has no metadata" 5 | fi 6 | zenity --info --ellipsize --text="Metadata for $1\n\n$OUTPUT" 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/show_parent_package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/dash 2 | OUTPUT=$(dpkg -S "$1" | cut -f1 -d:) 3 | if [ -z "$OUTPUT" ]; then 4 | zenity --info --ellipsize --text="$1\nis not provided by any known package" 5 | else 6 | zenity --info --ellipsize --text="$1\nis from the package(s) $OUTPUT" 7 | fi 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/take_ownership.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 3 | SUCCESSSTRING="Ownership changed to $USER:$USER -" 4 | COMMAND="sudo -A chown" 5 | for i in "$@"; do 6 | if [ "$(stat -c %U "$i")" = "$USER" ] ; then 7 | continue 8 | fi 9 | if [ -d "$i" ]; then 10 | if zenity --question --icon-name=dialog-question --no-wrap --title="Take ownership" --text="Take ownership of directories recursively?"; then 11 | COMMAND="sudo -A chown -R" 12 | fi 13 | break 14 | fi 15 | done 16 | for i in "$@"; do 17 | if stat -c %U "$i" | grep "$USER"; then 18 | continue 19 | fi 20 | eval "$COMMAND $USER:$USER '$i'" 21 | if [ $? = 1 ]; then 22 | zenity --info --width=250 --text="Error taking ownership of $i. Try again." 23 | exit 1 24 | else 25 | SUCCESSSTRING+=" 26 | $i" 27 | fi 28 | done 29 | notify-send "$SUCCESSSTRING" 30 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/toggle_checked.sh: -------------------------------------------------------------------------------- 1 | #!/bin/dash 2 | for i in "$@"; do 3 | if gio info "$i" | grep "emblem-default"; then 4 | gio set -t unset "$i" metadata::emblems 5 | else 6 | gio set -t stringv "$i" metadata::emblems emblem-default 7 | fi 8 | touch "$i" 9 | done 10 | exit 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/xed_sudoedit_check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | FILEOWNER=$(stat -c %U "$1") 3 | if [ "$FILEOWNER" = "$USER" ]; then 4 | xed "$1" 5 | else 6 | export SUDO_EDITOR="xed -w" 7 | export SUDO_ASKPASS="$HOME/.local/share/nemo/actions/action_scripts/zenity_askpass.sh" 8 | sudoedit -A -u "$FILEOWNER" "$1" 9 | fi 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/action_scripts/zenity_askpass.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | zenity --password --title="Authenticate" 3 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/apply_custom_emblem.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Apply Custom _Emblem 3 | Comment=Apply a custom picture emblem to %F and optionally it's sub-directories 4 | Exec= 5 | Icon-Name=image-x-generic-symbolic 6 | Selection=s 7 | Extensions=any; 8 | Quote=double 9 | Dependencies=zenity;wmctrl;convert;identify; 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/apply_custom_icon.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Apply Custom _Icon 3 | Comment=Apply a custom icon to %F 4 | Exec= 5 | Icon-Name=image-x-generic-symbolic 6 | Selection=s 7 | Extensions=any 8 | EscapeSpaces=true 9 | Dependencies=zenity; 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/attach_to_email_tbird.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Attach to email 3 | Comment=Attach %F to email in Thunderbird 4 | Exec=thunderbird -compose to=,"attachment='%F'" 5 | Icon-Name=mail-attachment-symbolic 6 | Selection=notnone 7 | Extensions=nodirs 8 | Separator=, 9 | Dependencies=thunderbird; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/attach_to_email_xdg-email.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Attach to email 3 | Comment=Attach %F to email in default mail application 4 | Exec= 5 | Icon-Name=mail-attachment-symbolic 6 | Selection=notnone 7 | Extensions=nodirs 8 | Quote=double 9 | Dependencies=xdg-email; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/bookmark_favourite.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Add to Bookmarks & Favourites 3 | Comment=Add %F as a Bookmark and Favourite 4 | Exec= 5 | Selection=notnone 6 | Extensions=dir; 7 | Icon-Name=emblem-favorite-symbolic 8 | Conditions=exec 9 | Quote=double 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/close_all_windows.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # A desktop context menu item to gracefully close all open application 3 | # windows in all workspaces. 4 | # Requires wmctrl (apt install wmctrl) and xdotool (apt install xdotool). 5 | Name=Close _All Windows 6 | Comment=Close all windows in all workspaces 7 | Exec= 8 | Selection=None 9 | Extensions=any; 10 | Icon-Name=application-exit-symbolic 11 | Dependencies=wmctrl;xdotool; 12 | Conditions=desktop; 13 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/close_windows_in_workspace.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # A desktop context menu item to gracefully close all open application 3 | # windows in the current workspace 4 | # Requires wmctrl (apt install wmctrl) and xdotool (apt install xdotool). 5 | Name=Close All Windows In _Workspace 6 | Comment=Close all windows in current workspace 7 | Exec= 8 | Selection=None 9 | Extensions=any; 10 | Icon-Name=application-exit-symbolic 11 | Dependencies=wmctrl;xdotool; 12 | Conditions=desktop; 13 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/copy_to_admin.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Copy To (Admin) 3 | Comment=Copy %F to a destination of your choice elevating privileges if necessary. 4 | Exec= 5 | Icon-Name=edit-copy-symbolic 6 | Selection=notnone 7 | Extensions=any; 8 | EscapeSpaces=true 9 | Dependencies=zenity; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/create_dir_admin.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # An action to create a new directory on right click of an existing directory. 3 | # Will request password authentication if elevated privileges are needed to complete the action. 4 | # Requires companion script create_dir_admin.sh 5 | Name=Create _Directory (Admin) 6 | Comment=Create a directory in %F elevating privileges in necessary 7 | Exec= 8 | Selection=s 9 | Extensions=dir; 10 | Icon-Name=folder-new-symbolic 11 | Dependencies=mkdir; 12 | EscapeSpaces=true 13 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/create_dir_admin_background.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # An action to create a new directory on right click on empty space in nemo. 3 | # Will request password authentication if elevated privileges are needed to complete the action. 4 | # Requires companion script create_dir_admin.sh 5 | Name=Create _Directory (Admin) 6 | Comment=Create a directory in %F elevating privileges in necessary 7 | Exec= 8 | Selection=none 9 | Extensions=dir; 10 | Icon-Name=folder-new-symbolic 11 | Dependencies=mkdir; 12 | EscapeSpaces=true 13 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/create_file_admin.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # An action to create a new file on right click on a directory. 3 | # Will request password authentication if elevated privileges are needed to complete the action. 4 | # Requires companion script create_file_admin.sh 5 | Name=Create _File (Admin) 6 | Comment=Create a file in %F elevating privileges in necessary 7 | Exec= 8 | Selection=s 9 | Extensions=dir; 10 | Icon-Name=document-new-symbolic 11 | Dependencies=touch; 12 | EscapeSpaces=true 13 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/create_file_admin_background.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # An action to create a new file on right click on empty space in nemo. 3 | # Will request password authentication if elevated privileges are needed to complete the action. 4 | # Requires companion script create_file_admin.sh 5 | Name=Create _File (Admin) 6 | Comment=Create a file in %F elevating privileges in necessary 7 | Exec= 8 | Selection=none 9 | Extensions=dir; 10 | Icon-Name=document-new-symbolic 11 | Dependencies=touch; 12 | EscapeSpaces=true 13 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/create_link_in_target.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # An action to create a link to the file / directory in another directory. 3 | # Will request password authentication if elevated privileges are needed to complete the action. 4 | Name=Create _Link (Admin) 5 | Comment=Create a link to %F in a user selected destination directory 6 | Exec= 7 | Icon-Name=insert-link-symbolic 8 | Selection=s 9 | Extensions=any; 10 | EscapeSpaces=true 11 | Dependencies=zenity; 12 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/create_link_on_desktop.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Create Link on Desktop 3 | Comment=Create a link to %F on the desktop 4 | Exec=sh -c 'if ln -s "%F" -t "$(xdg-user-dir DESKTOP)"; then notify-send "Desktop symlink added for" "%F"; else notify-send "Failed to create desktop symlink for" "%F"; fi' 5 | Icon-Name=insert-link-symbolic 6 | Selection=s 7 | Extensions=any; 8 | 9 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/delete_admin.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # An action to delete a file or directory and it's contents. 3 | # Will request password authentication if elevated privileges are needed to complete the action. 4 | Name=_Delete (Admin) 5 | Comment=Delete %F elevating privileges if necessary 6 | Exec= 7 | Icon-Name=edit-delete-symbolic 8 | Selection=notnone 9 | Extensions=any; 10 | EscapeSpaces=true 11 | Dependencies=zenity; 12 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/disk_usage.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Disk _Usage 3 | Comment=Gives total disk usage for selected items. 4 | Exec= 5 | Extensions=any 6 | Icon-Name=drive-multidisk-symbolic 7 | Selection=notnone 8 | Quote=double 9 | Active=true 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/geany_sudoedit.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | 3 | Name=_Geany (Sudoedit) 4 | Comment=Open %F with geany, opening as different user when needed via sudoedit. 5 | Exec= 6 | Icon-Name=text-editor-symbolic 7 | #Stock-Id= 8 | Selection=s 9 | #Extensions= 10 | Mimetypes=text/plain;text/css;text/english;text/html;text/x-apt-sources-list;text/x-c;text/x-c++;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-diff;text/x-dsrc;text/x-java;text/x-makefile;text/x-moc;text/x-pascal;text/x-perl;text/x-python;text/x-sql;text/x-tcl;text/x-tex; 11 | #Separator= 12 | #Quote= 13 | Dependencies=sudoedit;geany; 14 | #Conditions= 15 | EscapeSpaces=true 16 | Terminal=false 17 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/get_random_file.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # Ever needed a random selection of music, video or pictures from a folder? 3 | # If so this action is your friend. 4 | Name=Copy _Random Files 5 | Comment=Copy a random selection of files from %F and paste them to a folder of your choice. 6 | Exec= 7 | Icon-Name=media-playlist-shuffle-symbolic 8 | Selection=any 9 | Extensions=dir; 10 | EscapeSpaces=true 11 | Dependencies=zenity; 12 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/make_executable.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Make Executable (Admin) 3 | Comment=Mark %F as executable elevating privileges if necessary. 4 | Exec= 5 | Icon-Name=application-x-executable-symbolic 6 | Selection=notnone 7 | Extensions=nodirs; 8 | Conditions=exec ; 9 | Quote=double 10 | Dependencies=zenity; 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/media-info.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # Requires mediainfo-gui - apt install mediainfo-gui 3 | Name=Media _Properties 4 | Comment=Open %F with mediainfo-gui 5 | Exec=mediainfo-gui %F 6 | Icon-Name=applications-multimedia-symbolic 7 | #Stock-Id= 8 | Selection=s 9 | #Extensions= 10 | Mimetypes=video/mpeg;video/x-mpeg;video/msvideo;video/quicktime;video/x-anim;video/x-avi;video/x-ms-asf;video/x-ms-wmv;video/x-msvideo;video/x-nsv;video/x-flc;video/x-fli;video/x-flv;video/vnd.rn-realvideo;video/mp4;video/mp4v-es;video/mp2t;application/ogg;application/x-ogg;video/x-ogm+ogg;audio/x-vorbis+ogg;application/x-matroska;audio/x-matroska;video/x-matroska;video/webm;audio/webm;audio/x-mp3;audio/x-mpeg;audio/mpeg;audio/x-wav;audio/x-mpegurl;audio/x-scpls;audio/x-m4a;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;application/vnd.rn-realmedia;audio/x-real-audio;audio/x-pn-realaudio;application/x-flac;audio/x-flac;application/x-shockwave-flash;audio/vnd.rn-realaudio;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;application/x-extension-mp4;audio/mp4;audio/amr;audio/amr-wb;application/x-shorten;audio/x-ape;audio/x-wavpack;audio/x-tta;audio/x-opus+ogg; 11 | #Separator= 12 | #Quote= 13 | EscapeSpaces=true 14 | Dependencies=mediainfo-gui; 15 | #Conditions= 16 | #Terminal= 17 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/move_to_admin.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Move To (Admin) 3 | Comment=Move %F to a destination of your choice elevating privileges if necessary. 4 | Exec= 5 | Icon-Name=edit-cut-symbolic 6 | Selection=notnone 7 | Extensions=any; 8 | EscapeSpaces=true 9 | Dependencies=zenity;convert;gio; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/nano_sudoedit.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | 3 | Name=_Nano (Sudoedit) 4 | Comment=Open %F with nano opening as different user when needed via sudoedit. 5 | Exec= 6 | Icon-Name=text-editor-symbolic 7 | #Stock-Id= 8 | Selection=s 9 | #Extensions= 10 | Mimetypes=text/plain;text/css;text/english;text/html;text/x-apt-sources-list;text/x-c;text/x-c++;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-diff;text/x-dsrc;text/x-java;text/x-makefile;text/x-moc;text/x-pascal;text/x-perl;text/x-python;text/x-sql;text/x-tcl;text/x-tex; 11 | #Separator= 12 | #Quote= 13 | Dependencies=sudoedit;nano; 14 | #Conditions= 15 | EscapeSpaces=true 16 | Terminal=true 17 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/new-workspace.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Create _New Workspace 3 | Comment=Create a new workspace and move to it 4 | Exec=sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.JumpToNewWorkspace >/dev/null' 5 | Selection=None 6 | Extensions=any; 7 | Conditions=desktop;dbus org.Cinnamon; 8 | Icon-Name=tab-new-symbolic 9 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/next-wallpaper.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # Enables and de-pauses slideshow and selects next wall. 3 | Name=Next _Wallpaper 4 | Comment=Rotate desktop wallpaper 5 | Exec= 6 | Icon-Name=media-seek-forward-symbolic 7 | Selection=none 8 | Extensions=any; 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/next_workspace.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Next Workspace 3 | Comment=Goto to next workspace 4 | Exec=sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.switchWorkspaceRight >/dev/null' 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=go-next-symbolic 8 | Dependencies=xdotool; 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/open_wallpaper.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # Allows user to open current wallpaper. 3 | Name=Open Wallpaper 4 | Comment=Open current desktop wallpaper 5 | Exec= 6 | Icon-Name=image-x-generic-symbolic 7 | Selection=none 8 | Extensions=any; 9 | Conditions=desktop; 10 | Dependencies=xdg-open;gsettings;zenity; 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/previous_workspace.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Previous Workspace 3 | Comment=Goto to previous workspace 4 | Exec=sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.switchWorkspaceLeft >/dev/null' 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=go-previous-symbolic 8 | Dependencies=xdotool; 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/print_tree.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Print Tree 3 | Comment=Print tree output for %F to a html file and display in default browser 4 | Exec= 5 | Icon-Name=view-list-symbolic 6 | Selection=any 7 | Extensions=dir; 8 | EscapeSpaces=true 9 | Dependencies=tree; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/remove-workspace.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # Remove current workspace. 3 | Name=_Remove Workspace 4 | Comment=Remove the currently active workspace 5 | Exec=sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.RemoveCurrentWorkspace >/dev/null' 6 | Selection=None 7 | Extensions=any; 8 | Conditions=desktop;dbus org.Cinnamon;gsettings org.cinnamon.desktop.wm.preferences num-workspaces i gt 1; 9 | Icon-Name=edit-delete-symbolic 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/rename_admin.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Rename (Admin) 3 | Comment=Rename %F elevating privileges if necessary 4 | Exec= 5 | Icon-Name=document-edit-symbolic 6 | Selection=s 7 | Extensions=any; 8 | Quote=double 9 | Dependencies=zenity; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/session_lock.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Lock Session Now 3 | Comment=Lock the session and activate screensaver 4 | Exec=cinnamon-screensaver-command -l 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=system-lock-screen-symbolic 8 | Dependencies=cinnamon-screensaver-command 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/session_logout.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Logout Now 3 | Comment=Logout of the session immediately 4 | Exec=cinnamon-session-quit --logout --no-prompt 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=system-users-symbolic 8 | Dependencies=systemctl 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/session_menu_logout.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Logout Dialogue 3 | Comment=Show the logout session dialogue 4 | Exec=cinnamon-session-quit --logout 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=system-users-symbolic 8 | Dependencies=cinnamon-session-quit 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/session_menu_poweroff.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Poweroff Dialogue 3 | Comment=Show the shutdown session dialogue 4 | Exec=cinnamon-session-quit --power-off 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=system-shutdown-symbolic 8 | Dependencies=cinnamon-session-quit 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/session_reboot.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Reboot Now 3 | Comment=Reboot the system immediately 4 | Exec=systemctl reboot 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=system-shutdown-symbolic 8 | Dependencies=systemctl; 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/session_shutdown.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Poweroff Now 3 | Comment=Shutdown the system immediately 4 | Exec=systemctl poweroff 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=system-shutdown-symbolic 8 | Dependencies=systemctl 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/session_suspend.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Suspend Now 3 | Comment=Suspend the system 4 | Exec=systemctl suspend 5 | Selection=None 6 | Extensions=any; 7 | Icon-Name=system-shutdown-symbolic 8 | Dependencies=systemctl 9 | Conditions=desktop; 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/set_folder_view_recursively.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Set Folder _View Recursively 3 | Comment=Sets the view-type and zoom level for %F and sub-directories 4 | Exec= 5 | Icon-Name=folder-symbolic 6 | Selection=s 7 | Extensions=dir; 8 | EscapeSpaces=true 9 | Dependencies=zenity;gio;wmctrl; 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/shellcheck.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # Requires shellcheck to be installed (apt install shellcheck) 3 | Name=_Shellcheck 4 | Comment=Lint %F with shellcheck 5 | Exec= 6 | Icon-Name=system-search-symbolic 7 | Selection=notnone 8 | Mimetypes=application/x-shellscript; 9 | EscapeSpaces=true 10 | Dependencies=shellcheck; 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/show_metadata.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Show _Metadata 3 | Comment=Display a dialogue with %F's metadata 4 | Exec= 5 | Icon-Name=help-faq-symbolic 6 | Selection=s 7 | Extensions=any; 8 | Quote=double 9 | Dependencies=zenity; 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/show_parent_package.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Show _Parent Package 3 | Comment=Display a dialogue that shows which package %F's is from 4 | Exec= 5 | Icon-Name=package-x-generic-symbolic 6 | Selection=s 7 | Extensions=any; 8 | EscapeSpaces=true 9 | Dependencies=zenity;dpkg; 10 | 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/take_ownership.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Take Ownership (Admin) 3 | Comment=Take ownership of %F 4 | Exec= 5 | Icon-Name=system-users-symbolic 6 | Selection=notnone 7 | Extensions=any; 8 | Conditions=exec ; 9 | Quote=double 10 | Dependencies=zenity; 11 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/toggle_checked.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=Toggle _Check 3 | Comment=Adds a checked emblem to a file/folder. If the file/folder is already checked, removes emblem. 4 | Exec= 5 | Icon-Name=checkbox-checked-symbolic 6 | Selection=any 7 | Extensions=any; 8 | EscapeSpaces=true 9 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/toggle_slideshow.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Toggle Desktop Slideshow 3 | Comment=Toggle the desktop wallpaper slidehow on/off 4 | Exec= sh -c 'if gsettings get org.cinnamon.desktop.background.slideshow slideshow-enabled | grep "false"; then gsettings set org.cinnamon.desktop.background.slideshow slideshow-enabled true; else gsettings set org.cinnamon.desktop.background.slideshow slideshow-enabled false; fi' 5 | Icon-Name=preferences-desktop-wallpaper-symbolic 6 | Selection=none 7 | Extensions=any; 8 | Conditions=desktop; 9 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/touch_file.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | Name=_Touch File 3 | Comment=Touch file to update modified date 4 | Exec=touch %F 5 | Selection=notnone 6 | Extensions=any; 7 | Icon-Name=edit-select-symbolic 8 | Dependencies=touch; 9 | EscapeSpaces=true 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/window_overview.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # View windows overview 3 | Name=Window Overview (_Scale) 4 | Comment=Open overview to add, remove, or organize windows 5 | Exec=sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.ShowOverview >/dev/null' 6 | Selection=None 7 | Extensions=any; 8 | Conditions=desktop;dbus org.Cinnamon; 9 | Icon-Name=view-app-grid-symbolic 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/workspace_overview.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | # View workspace overview. 3 | Name=Workspace Overview (_Expo) 4 | Comment=Open worksapce overview to manage workspaces 5 | Exec=sh -c 'dbus-send --dest=org.Cinnamon --print-reply /org/Cinnamon org.Cinnamon.ShowExpo >/dev/null' 6 | Selection=None 7 | Extensions=any; 8 | Conditions=desktop;dbus org.Cinnamon; 9 | Icon-Name=view-grid-symbolic 10 | -------------------------------------------------------------------------------- /.local/share/nemo/actions/xed_sudoedit.nemo_action: -------------------------------------------------------------------------------- 1 | [Nemo Action] 2 | 3 | Name=_Xed (Sudoedit) 4 | Comment=Open %F with xed opening as different user when needed via sudoedit. 5 | Exec= 6 | Icon-Name=text-editor-symbolic 7 | #Stock-Id= 8 | Selection=s 9 | #Extensions= 10 | Mimetypes=text/plain;text/css;text/english;text/html;text/x-apt-sources-list;text/x-c;text/x-c++;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-diff;text/x-dsrc;text/x-java;text/x-makefile;text/x-moc;text/x-pascal;text/x-perl;text/x-python;text/x-sql;text/x-tcl;text/x-tex; 11 | #Separator= 12 | #Quote= 13 | Dependencies=sudoedit;xed; 14 | #Conditions= 15 | EscapeSpaces=true 16 | Terminal=false 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nemo Actions & Cinnamon Scripts 2 | 3 | A collection of custom context menu actions for the Nemo file manager, along with some [miscellaneous feature scripts](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#cinnamon-scripts) intended for the Cinnamon desktop environment. 4 | 5 | Also included is a [GTK over-ride](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#miscellaneous-tweaks) file to increase the width of GTK application scrollbars, improve the visibility of labels on desktop icons, and improve the visibility of text on the cinnamon lock-screen / screen-saver. 6 | 7 | # Nemo Actions 8 | 9 | Nemo actions add additional context menu items to the right click menu in the Nemo file manager and on the Cinnamon desktop. 10 | 11 | An action can be added to Nemo by saving it's definition file with the file extension `.nemo_action` in `~/.local/share/nemo/actions` 12 | 13 | Some actions in this repo also require an associated shell script. These should be saved in `~/.local/share/nemo/actions/action_scripts` and be made executable 14 | 15 | ## Nemo Action installation 16 | 17 | These instructions assume a Debian/Ubuntu based distro for the commands to install dependencies. For users of other distros please replace `sudo apt` with the equivalent for your distro's package management system. 18 | 19 | First install git 20 | 21 | `sudo apt install git` 22 | 23 | Then clone this repo 24 | 25 | `git clone https://github.com/smurphos/nemo_actions_and_cinnamon_scripts.git` 26 | 27 | Having cloned the repo you can either install all of the actions using the commands below or refer to the index of actions to install individual actions. 28 | 29 | To install all of the nemo actions 30 | 31 | `cp -rv ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/ ~/.local/share/nemo` 32 | 33 | Install other dependencies used by the actions 34 | 35 | `sudo apt install zenity xdotool wmctrl mediainfo-gui shellcheck tree imagemagick` 36 | 37 | Either `sudo apt install xplayer` or `sudo apt install totem` 38 | 39 | Open Nemo > Preferences > Plugins and review any actions you wish to disable. 40 | 41 | ## Nemo Action updating 42 | 43 | In a terminal navigate to the `nemo_actions_and_cinnamon_scripts` folder created when you originally cloned the repo 44 | 45 | e.g `cd nemo_actions_and_cinnamon_scripts` 46 | 47 | Once in the correct folder update your local copy with the latest commits, before reinstalling your actions. 48 | 49 | `git pull origin; cd ..` 50 | 51 | ## Nemo Actions Index 52 | 53 | ## Desktop context menu actions 54 | 55 | ### Close windows actions. 56 | 57 | A set of two actions and an associated shell script to allow the user to gracefully close all open windows on the current workspace or all workspaces via right click on the desktop. 58 | 59 | [close_windows_in_workspace.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/close_windows_in_workspace.nemo_action) 60 | 61 | [close_all_windows.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/close_all_windows.nemo_action) 62 | 63 | [close_windows.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/close_windows.sh) 64 | 65 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 66 | 67 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/close_windows_in_workspace.nemo_action ~/.local/share/nemo/actions` 68 | 69 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/close_all_windows.nemo_action ~/.local/share/nemo/actions` 70 | 71 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 72 | 73 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/close_windows.sh ~/.local/share/nemo/actions/action_scripts` 74 | 75 | `sudo apt install xdotool wmctrl` 76 | 77 | ### Workspace management actions 78 | 79 | A set of six actions to allow easy management of workspaces from the desktop context menu. 80 | 81 | [new-workspace.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/new-workspace.nemo_action) 82 | 83 | [delete-workspace.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/.local/share/nemo/actions/delete-workspace.nemo_action) 84 | 85 | [previous_workspace.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/previous_workspace.nemo_action) 86 | 87 | [next_workspace.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/next_workspace.nemo_action) 88 | 89 | [workspace_overview.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/workspace_overview.nemo_action) 90 | 91 | [window_overview.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/window_overview.nemo_action) 92 | 93 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 94 | 95 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/new-workspace.nemo_action ~/.local/share/nemo/actions` 96 | 97 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/delete-workspace.nemo_action ~/.local/share/nemo/actions` 98 | 99 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/previous_workspace.nemo_action ~/.local/share/nemo/actions` 100 | 101 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/next_workspace.nemo_action ~/.local/share/nemo/actions` 102 | 103 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/workspace_overview.nemo_action ~/.local/share/nemo/actions` 104 | 105 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/window_overview.nemo_action ~/.local/share/nemo/actions` 106 | 107 | ### Background slide-show actions 108 | 109 | An action to quickly toggle the desktop background slide-show. 110 | 111 | [toggle_slideshow.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/toggle_slideshow.nemo_action) 112 | 113 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 114 | 115 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/toggle_slideshow.nemo_action ~/.local/share/nemo/actions` 116 | 117 | An action to select the next-wallpaper in the desktop slide-show - if the slide-show is currently disabled this action will also 118 | enable the slide-show. 119 | 120 | [next-wallpaper.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/next-wallpaper.nemo_action) 121 | 122 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 123 | 124 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/next-wallpaper.nemo_action ~/.local/share/nemo/actions` 125 | 126 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/next-wallpaper.sh ~/.local/share/nemo/actions/action_scripts` 127 | 128 | An action to open the current wallpaper's directory in the file manager, or in the default image viewing application. Requires zenity. 129 | 130 | [open-wallpaper.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/open-wallpaper.nemo_action) 131 | 132 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 133 | 134 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/open-wallpaper.nemo_action ~/.local/share/nemo/actions` 135 | 136 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/open-wallpaper.sh ~/.local/share/nemo/actions/action_scripts` 137 | 138 | `sudo apt install zenity` 139 | 140 | ### Session management actions 141 | 142 | The first two actions give quick access from the desktop context menu to the shutdown and logoff session dialogues. 143 | 144 | [session_menu_logout.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/session_menu_logout.nemo_action) 145 | 146 | [session_menu_poweroff.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/session_menu_poweroff.nemo_action) 147 | 148 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 149 | 150 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_menu_logout.nemo_action ~/.local/share/nemo/actions` 151 | 152 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_menu_poweroff.nemo_action ~/.local/share/nemo/actions` 153 | 154 | These five actions immediately invoke the requested action. 155 | 156 | [session_reboot.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/session_reboot.nemo_action) 157 | 158 | [session_shutdown.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/session_shutdown.nemo_action) 159 | 160 | [session_suspend.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/session_suspend.nemo_action) 161 | 162 | [session_lock.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/session_lock.nemo_action) 163 | 164 | [session_logout.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/session_logout.nemo_action) 165 | 166 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 167 | 168 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_reboot.nemo_action~/.local/share/nemo/actions` 169 | 170 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_shutdown.nemo_action ~/.local/share/nemo/actions` 171 | 172 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_suspend.nemo_action ~/.local/share/nemo/actions` 173 | 174 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_lock.nemo_action ~/.local/share/nemo/actions` 175 | 176 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/session_logout.nemo_action ~/.local/share/nemo/actions` 177 | 178 | ## General Actions 179 | 180 | ### Add to Favourites and Bookmarks 181 | 182 | An action to add a single or multiple selection of directories to nemo bookmarks and nemo favourites. Main use case is for those who use tree-view in the side-pane where favourites but not bookmarks is available to maintain a synced selection of favourites and bookmarks. 183 | 184 | [bookmark_favourite.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/bookmark_favourite.nemo_action) 185 | 186 | [bookmark_favourite.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/bookmark_favourite.sh) 187 | 188 | [check_bookmark_favourite.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/check_bookmark_favourite.sh) 189 | 190 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 191 | 192 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/bookmark_favourite.nemo_action ~/.local/share/nemo/actions` 193 | 194 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 195 | 196 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/bookmark_favourite.sh ~/.local/share/nemo/actions/action_scripts` 197 | 198 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/check_bookmark_favourite.sh ~/.local/share/nemo/actions/action_scripts` 199 | 200 | ### Attach to Email Actions 201 | 202 | Nemo's native Send in Email action was removed in Nemo 4.8. Here are two potential replacements. The first one is specific to Thunderbird as an email client. The second is generic and uses xdg-email and has been tested with both Thunderbird and Evolution. Please note that on some distros xdg-email may have been patched to remove the ability to add attachments. At time of writing xdg-email does work on Linux Mint 20.x 203 | 204 | [attach_to_email_tbird.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/attach_to_email_tbird.nemo_action) 205 | 206 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 207 | 208 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/attach_to_email_tbird.nemo_action ~/.local/share/nemo/actions` 209 | 210 | [attach_to_email_xdg-email.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/attach_to_email_xdg-email.nemo_action) 211 | 212 | [attach_to_email_xdg-email.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/attach_to_email_xdg-email.sh) 213 | 214 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 215 | 216 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/attach_to_email_xdg-email.nemo_action ~/.local/share/nemo/actions` 217 | 218 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 219 | 220 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/attach_to_email_xdg-email.sh ~/.local/share/nemo/actions/action_scripts` 221 | 222 | ### Edit as other user actions 223 | 224 | These actions allow you to open text files with a password prompt for elevated privileges if necessary from a regular instance of Nemo. They will all open the file with the specified text-editor using sudoedit to elevate privileges as the owner of the file if that is not the user. The could be as root or another user on the system. 225 | 226 | Three versions are supplied, using the CLI text editor Nano, Linux Mint's default GUI text editor Xed and finally the GUI text editor Geany. If you have a different preferred text editor the actions and scripts can easily be modified to suit your needs. The actions invoking a GUI text editor require zenity. 227 | 228 | [nano_sudoedit.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/nano_sudoedit.nemo_action) 229 | 230 | [nano_sudoedit_check.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/nano_sudoedit_check.sh) 231 | 232 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 233 | 234 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/nano_sudoedit.nemo_action ~/.local/share/nemo/actions` 235 | 236 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 237 | 238 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/nano_sudoedit_check.sh ~/.local/share/nemo/actions/action_scripts` 239 | 240 | [xed_sudoedit.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/xed_sudoedit.nemo_action) 241 | 242 | [xed_sudoedit_check.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/xed_sudoedit_check.sh) 243 | 244 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 245 | 246 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/xed_sudoedit.nemo_action ~/.local/share/nemo/actions` 247 | 248 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 249 | 250 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/xed_sudoedit_check.sh ~/.local/share/nemo/actions/action_scripts` 251 | 252 | `sudo apt install zenity` 253 | 254 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 255 | 256 | [geany_sudoedit.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/geany_sudoedit.nemo_action) 257 | 258 | [geany_sudoedit_check.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/geany_sudoedit_check.sh) 259 | 260 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 261 | 262 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/geany_sudoedit.nemo_action ~/.local/share/nemo/actions` 263 | 264 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 265 | 266 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/geany_sudoedit_check.sh ~/.local/share/nemo/actions/action_scripts` 267 | 268 | `sudo apt install zenity` 269 | 270 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 271 | 272 | ### File actions as admin 273 | 274 | These actions and their associated shell scripts allow the user to undertake a range of file management activities with elevated privileges if needed from a regular instance of Nemo. 275 | 276 | They will all request password authentication if elevated privileges are necessary to complete the action. 277 | 278 | All require zenity. 279 | 280 | ### Copy to (Admin) 281 | 282 | Supports single and multiple selections. 283 | 284 | [copy_to_admin.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/copy_to_admin.nemo_action) 285 | 286 | [copy_to_admin.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/copy_to_admin.sh) 287 | 288 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 289 | 290 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/copy_to_admin.nemo_action ~/.local/share/nemo/actions` 291 | 292 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 293 | 294 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/copy_to_admin.sh ~/.local/share/nemo/actions/action_scripts` 295 | 296 | `sudo apt install zenity` 297 | 298 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 299 | 300 | ### Move to (Admin) 301 | 302 | Supports single and multiple selections 303 | 304 | [move_to_admin.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/move_to_admin.nemo_action) 305 | 306 | [move_to_admin.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/move_to_admin.sh) 307 | 308 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 309 | 310 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/move_to_admin.nemo_action ~/.local/share/nemo/actions` 311 | 312 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 313 | 314 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/move_to_admin.sh ~/.local/share/nemo/actions/action_scripts` 315 | 316 | `sudo apt install zenity` 317 | 318 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 319 | 320 | ### Creating links (Admin) 321 | 322 | Supports single selections only. Create a link to a file / folder in a directory of your choice. 323 | 324 | [create_link_in_target.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/create_link_in_target.nemo_action) 325 | 326 | [create_link_in_target.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/create_link_in_target.sh) 327 | 328 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 329 | 330 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_link_in_target.nemo_action ~/.local/share/nemo/actions` 331 | 332 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 333 | 334 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/create_link_in_target.sh ~/.local/share/nemo/actions/action_scripts` 335 | 336 | `sudo apt install zenity` 337 | 338 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 339 | 340 | ### Create Directory (Admin) 341 | 342 | This action has two nemo_action files, one for right-click on a directory, and one for right-click on empty space. 343 | 344 | [create_dir_admin.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/create_dir_admin.nemo_action) 345 | 346 | [create_dir_admin_background.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/create_dir_admin_background.nemo_action) 347 | 348 | [create_dir_admin.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/create_dir_admin.sh) 349 | 350 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 351 | 352 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_dir_admin.nemo_action ~/.local/share/nemo/actions` 353 | 354 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_dir_admin_background.nemo_action ~/.local/share/nemo/actions` 355 | 356 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 357 | 358 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/create_dir_admin.sh ~/.local/share/nemo/actions/action_scripts` 359 | 360 | `sudo apt install zenity` 361 | 362 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 363 | 364 | ### Create File (Admin) 365 | 366 | This action has two nemo_action files, one for right-click on a directory, and one for right-click on empty space. 367 | 368 | [create_file_admin.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/create_file_admin.nemo_action) 369 | 370 | [create_file_admin_background.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/create_file_admin_background.nemo_action) 371 | 372 | [create_file_admin.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/create_file_admin.sh) 373 | 374 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 375 | 376 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_file_admin.nemo_action ~/.local/share/nemo/actions` 377 | 378 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_file_admin_background.nemo_action ~/.local/share/nemo/actions` 379 | 380 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 381 | 382 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/create_file_admin.sh ~/.local/share/nemo/actions/action_scripts` 383 | 384 | `sudo apt install zenity` 385 | 386 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 387 | 388 | ### Delete (Admin) 389 | 390 | Supports single and multiple selections. 391 | 392 | [delete_admin.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/delete_admin.nemo_action) 393 | 394 | [delete_admin.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/delete_admin.sh) 395 | 396 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 397 | 398 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/delete_admin.nemo_action ~/.local/share/nemo/actions` 399 | 400 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 401 | 402 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/delete_admin.sh ~/.local/share/nemo/actions/action_scripts` 403 | 404 | `sudo apt install zenity` 405 | 406 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 407 | 408 | ### Rename (Admin) 409 | 410 | Supports single selections only. 411 | 412 | [rename_admin.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/rename_admin.nemo_action) 413 | 414 | [rename_admin.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/rename_admin.sh) 415 | 416 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 417 | 418 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/rename_admin.nemo_action ~/.local/share/nemo/actions` 419 | 420 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 421 | 422 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/rename_admin.sh ~/.local/share/nemo/actions/action_scripts` 423 | 424 | `sudo apt install zenity` 425 | 426 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 427 | 428 | ### Take Ownership (Admin) 429 | 430 | Quickly bring files or directories under the current user's ownership. Supports single and multiple selections of files and directories. For multiple selections will display if at least one selection is not under the users ownership. If directories are included in the selection the user is given the option to take ownership recursively. 431 | 432 | [take_ownership.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/take_ownership.nemo_action) 433 | 434 | [take_ownership.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/take_ownership.sh) 435 | 436 | [check_ownership.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/check_ownership.sh) 437 | 438 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 439 | 440 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/take_ownership.nemo_action ~/.local/share/nemo/actions` 441 | 442 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 443 | 444 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/take_ownership.sh ~/.local/share/nemo/actions/action_scripts` 445 | 446 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/check_ownership.sh ~/.local/share/nemo/actions/action_scripts` 447 | 448 | `sudo apt install zenity` 449 | 450 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 451 | 452 | ### Make Executable (Admin) 453 | 454 | Quickly add executable bit to files. Supports single and multiple selections. For multiple selections will display if at least one selection is not currently executable. 455 | 456 | [make_executable.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/make_executable.nemo_action) 457 | 458 | [make_executable.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/make_executable.sh) 459 | 460 | [check_not_executable.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/check_not_executable.sh) 461 | 462 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 463 | 464 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/make_executable.nemo_action ~/.local/share/nemo/actions` 465 | 466 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 467 | 468 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/make_executable.sh ~/.local/share/nemo/actions/action_scripts` 469 | 470 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/check_not_executable.sh ~/.local/share/nemo/actions/action_scripts` 471 | 472 | `sudo apt install zenity` 473 | 474 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/zenity_askpass.sh ~/.local/share/nemo/actions/action_scripts` 475 | 476 | ### Disk Usage action 477 | 478 | Select single or multiple files / directories to be presented with a zenity window showing the total disk usage of the selection. 479 | Based on an action by Linux Mint forum member [sadhu](https://forums.linuxmint.com/memberlist.php?mode=viewprofile&u=129286) 480 | 481 | [disk_usage.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/disk_usage.nemo_action) 482 | 483 | [disk_usage.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/disk_usage.sh) 484 | 485 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 486 | 487 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/disk_usage.nemo_action ~/.local/share/nemo/actions` 488 | 489 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 490 | 491 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/disk_usage.sh ~/.local/share/nemo/actions/action_scripts` 492 | 493 | `sudo apt install zenity` 494 | 495 | ### File metadata action 496 | 497 | Select single files / directories to be presented with a zenity window summarising the gvfs metadata associated with file. 498 | 499 | [show_metadata.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/show_metadata.nemo_action) 500 | 501 | [show_metadata.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/show_metadata.sh) 502 | 503 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 504 | 505 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/show_metadata.nemo_action ~/.local/share/nemo/actions` 506 | 507 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 508 | 509 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/show_metadata.sh ~/.local/share/nemo/actions/action_scripts` 510 | 511 | `sudo apt install zenity` 512 | 513 | ### Show parent package action 514 | 515 | Select single files or directories to be presented with a zenity window stating which debian package(s) installed the file or has content in the folder. 516 | This action is only for nemo installed on Debian based systems 517 | 518 | [show_parent_package.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/show_parent_package.nemo_action) 519 | 520 | [show_parent_package.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/show_parent_package.sh) 521 | 522 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 523 | 524 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/show_parent_package.nemo_action ~/.local/share/nemo/actions` 525 | 526 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 527 | 528 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/show_parent_package.sh ~/.local/share/nemo/actions/action_scripts` 529 | 530 | `sudo apt install zenity` 531 | 532 | ### Create link on desktop 533 | 534 | An action to quickly create a symlink on the Desktop to any single file or folder selection 535 | 536 | [create_link_on_desktop.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/create_link_on_desktop.nemo_action) 537 | 538 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 539 | 540 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/create_link_on_desktop.nemo_action ~/.local/share/nemo/actions` 541 | 542 | ### Apply custom emblems 543 | 544 | This action allows the user to create and set custom emblems derived from image files, album art or video thumbnails to files and directories. 545 | For directories there is an option to use a random emblem generated from the directory contents and it can be run recursively on the selected directory and it's sub-directories. 546 | 547 | Requires zenity, wmctrl, imagemagick and either xplayer or totem to be installed. 548 | 549 | [apply_custom_emblem.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/apply_custom_emblem.nemo_action) 550 | 551 | [apply_custom_emblem.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/apply_custom_emblem.sh) 552 | 553 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 554 | 555 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/apply_custom_emblem.nemo_action ~/.local/share/nemo/actions` 556 | 557 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/apply_custom_emblem.sh ~/.local/share/nemo/actions/action_scripts` 558 | 559 | `sudo apt install zenity wmctrl imagemagick` 560 | 561 | Either `sudo apt install xplayer` or `sudo apt install totem` 562 | 563 | ### Apply custom icon 564 | 565 | This action action provides an alteranative to the stock icon picker to quickly apply an image as a custom icon for a file or directory. Requires zenity. 566 | 567 | [apply_custom_icon.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/apply_custom_icon.nemo_action) 568 | 569 | [apply_custom_icon.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/apply_custom_icon.sh) 570 | 571 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 572 | 573 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/apply_custom_icon.nemo_action ~/.local/share/nemo/actions` 574 | 575 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/apply_custom_icon.sh ~/.local/share/nemo/actions/action_scripts` 576 | 577 | `sudo apt install zenity` 578 | 579 | ### Set folder view recursively 580 | 581 | This action allows the user to set default folder view (list, compact or icon) and zoom level recursively to a directory and it's sub-directories. 582 | 583 | Requires zenity, wmctrl, and gio. Mint users should be aware that gio is only available in Mint 19 and later. 584 | 585 | [set_folder_view_recursively.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/set_folder_view_recursively.nemo_action) 586 | 587 | [set_folder_view_recursively.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/set_folder_view_recursively.sh) 588 | 589 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 590 | 591 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/set_folder_view_recursively.nemo_action ~/.local/share/nemo/actions` 592 | 593 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/set_folder_view_recursively.sh ~/.local/share/nemo/actions/action_scripts` 594 | 595 | `sudo apt install zenity wmctrl` 596 | 597 | ### Media info 598 | 599 | Shows information about media files in a separate window using mediainfo-gui - . 600 | 601 | [media-info.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/.local/share/nemo/actions/general_actions/media-info.nemo_action) 602 | 603 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 604 | 605 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/media-info.nemo_action ~/.local/share/nemo/actions` 606 | 607 | `sudo apt install mediainfo-gui` 608 | 609 | ### View a tree-view directory structure in your browser 610 | 611 | An action and associated shell script to produce an html tree-view of the directory and file structure below the selected directory. Requires tree - `sudo apt install tree` 612 | 613 | [print_tree.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/print_tree.nemo_action) 614 | 615 | [print_tree.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/print_tree.sh) 616 | 617 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 618 | 619 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/print_tree.nemo_action ~/.local/share/nemo/actions` 620 | 621 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 622 | 623 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/print_tree.sh ~/.local/share/nemo/actions/action_scripts` 624 | 625 | `sudo apt install tree` 626 | 627 | ### Copy a random selection of files from a directory 628 | 629 | Ever wanted to grab a random selection of music files or pictures from a collection? This action is for you. 630 | Uses zenity to ask the user to confirm number of files and where to paste them. 631 | 632 | [get_random_file.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/get_random_file.nemo_action) 633 | 634 | [get_random_files.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/get_random_files.sh) 635 | 636 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 637 | 638 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/get_random_file.nemo_action ~/.local/share/nemo/actions` 639 | 640 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 641 | 642 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/get_random_files.sh ~/.local/share/nemo/actions/action_scripts` 643 | 644 | `sudo apt install zenity` 645 | 646 | ### Toggle checked emblem 647 | 648 | An action and associated shell script to quickly add or remove a ✓ emblem to the file/folder. 649 | 650 | [toggle_checked.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/toggle_checked.nemo_action) 651 | 652 | [toggle_checked.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/toggle_checked.sh) 653 | 654 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 655 | 656 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/toggle_checked.nemo_action ~/.local/share/nemo/actions` 657 | 658 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 659 | 660 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/toggle_checked.sh ~/.local/share/nemo/actions/action_scripts` 661 | 662 | ### Update a files modification date 663 | 664 | [touch_file.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/touch_file.nemo_action) 665 | 666 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 667 | 668 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/touch_file.nemo_action ~/.local/share/nemo/actions` 669 | 670 | ### Check a shell script for errors 671 | 672 | This action and associated shell script will check your shell scripts for errors with shellcheck. 673 | Scripts with no issues will be marked with a checked emblem, scripts with warnings will be marked with a warning emblem and the shellcheck output along with the shell script itself will be opened in a text editor for review. 674 | 675 | [shellcheck.nemo_action](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/shellcheck.nemo_action) 676 | 677 | [shellcheck.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/share/nemo/actions/action_scripts/shellcheck.sh) 678 | 679 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#nemo-action-installation) 680 | 681 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/toggle_checked.nemo_action ~/.local/share/nemo/actions` 682 | 683 | `mkdir -p ~/.local/share/nemo/actions/action_scripts` 684 | 685 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/share/nemo/actions/action_scripts/toggle_checked.sh ~/.local/share/nemo/actions/action_scripts` 686 | 687 | `sudo apt install shellcheck` 688 | 689 | # Cinnamon Scripts 690 | 691 | This is a small selection of feature scripts that add new features or improve existing features for the Cinnamon desktop. 692 | 693 | ## Cinnamon Scripts Installation 694 | 695 | These instructions assume a Debian/Ubuntu based distro for the commands to install dependencies. For users of other distros please replace `sudo apt` woth the equivalent for your distro's package management system. 696 | 697 | They also assume your distro is set up to automatically add `~/.local/bin/` to your $PATH when it exists. This is the case in Linux Mint main edition but not LMDE for example. 698 | 699 | If after installation scripts are not autostarting on login check the output of `echo $PATH`. If the output does not include `~/.local/bin/` this can normally be rectified by adding the string `PATH=~/.local/bin/:$PATH` to `~/.profile` 700 | 701 | First install git 702 | 703 | `sudo apt install git` 704 | 705 | Then clone this repo if you haven't already. 706 | 707 | `git clone https://github.com/smurphos/nemo_actions_and_cinnamon_scripts.git` 708 | 709 | Having cloned the repo you can either install all of the scripts using the commands below or refer to the index of scripts to install individual scripts. 710 | 711 | To install all of the cinnamon scripts 712 | 713 | `cp -rv ./nemo_actions_and_cinnamon_scripts/.local/bin/ ~/.local` 714 | 715 | `sudo cp -r ./nemo_actions_and_cinnamon_scripts/opt/login_screen_random_background.sh /opt` 716 | 717 | To install autostart entries for relevant scripts 718 | 719 | `cp -rv ./nemo_actions_and_cinnamon_scripts/.config/autostart/ ~/.config` 720 | 721 | Install dependencies required by the scripts 722 | 723 | `sudo apt install zenity xdotool wmctrl` 724 | 725 | See the scripts index for any other script specific setup recommendations. 726 | 727 | Log off and back on. 728 | 729 | ## Cinnamon Script updating 730 | 731 | In a terminal navigate to the `nemo_actions_and_cinnamon_scripts` folder created when you originally cloned the repo 732 | 733 | e.g `cd nemo_actions_and_cinnamon_scripts` 734 | 735 | Once in the correct folder update your local copy with the latest commits, before reinstalling your scripts. 736 | 737 | `git pull origin; cd ..` 738 | 739 | ## Cinnamon Scripts Index 740 | 741 | ### Lock Screen Slideshow 742 | 743 | This script adds a user configurable desktop background slideshow function to the native Cinnamon screensaver/screen locker. 744 | It is intended to be run on user login as a startup application. 745 | 746 | [lock_screen_slideshow.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/bin/lock_screen_slideshow.sh) 747 | 748 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#cinnamon-scripts-installation) 749 | 750 | `mkdir -p ~/.local/bin` 751 | 752 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/lock_screen_slideshow.sh ~/.local/bin` 753 | 754 | `cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/lock_screen_slideshow.desktop ~/.config/autostart` 755 | 756 | Optionally review the script to amend end user editable variables to suit your preferences. 757 | 758 | `xdg-open ~/.local/bin/lock_screen_slideshow.sh` 759 | 760 | Logout and log back in. 761 | 762 | ### Login Screen Random Background 763 | 764 | This script facilitates the user being presented with a random background on the login screen. It is compatible with any Mint edition using Slick-Greeter and LightDM, not just Cinnamon. 765 | It is intended to be run from the root crontab. 766 | 767 | [login_screen_random_background.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/opt/login_screen_random_background.sh) 768 | 769 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#cinnamon-scripts-installation) 770 | 771 | `sudo cp -r ./nemo_actions_and_cinnamon_scripts/opt/login_screen_random_background.sh /opt` 772 | 773 | Optionally review the script to amend end user editable variables to suit your preferences. 774 | 775 | `sudoedit /opt/login_screen_random_background.sh` 776 | 777 | Login Screen Random Background is intended to be run from the root crontab. To set up run 778 | 779 | `sudo crontab -e` 780 | 781 | In the CLI text editor that opens add the following lines to the bottom of the file. 782 | Ctrl-O, Enter, Ctrl-X to save the new crontab entries. This will run the script on boot and every half an hour. 783 | 784 | ``` 785 | @reboot /opt/login_screen_random_background.sh 786 | 0,30 * * * * /opt/login_screen_random_background.sh 787 | ``` 788 | 789 | ### Workspace Background Switcher 790 | 791 | This script allows the user to different backgrounds for each Cinnamon workspace. It is intended to be run on user login as a startup application. 792 | 793 | [workspace_background_switcher.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/bin/workspace_background_switcher.sh) 794 | 795 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#cinnamon-scripts-installation) 796 | 797 | `mkdir -p ~/.local/bin` 798 | 799 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/workspace_background_switcher.sh ~/.local/bin` 800 | 801 | `cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/workspace_background_switcher.desktop ~/.config/autostart` 802 | 803 | Optionally review the script to amend end user editable variables to suit your preferences. 804 | 805 | `xdg-open ~/.local/bin/workspace_background_switcher.sh` 806 | 807 | ### Opacify Windows 808 | 809 | This script allows the user to set default opacity levels for open windows based on the window status and type. For example unfocused windows can be translucent whilst focused windows are opaque. 810 | The effect is independent of the users theme and can be used with any GTK theme. It is intended to be run on user login as a startup application. Requires xdotool and wmctrl - `sudo apt install xdotool wmctrl` 811 | 812 | [opacify_windows.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/bin/opacify_windows.sh) 813 | 814 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#cinnamon-scripts-installation) 815 | 816 | `mkdir -p ~/.local/bin` 817 | 818 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/opacify_windows.sh ~/.local/bin` 819 | 820 | `cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/opacify_windows.desktop ~/.config/autostart` 821 | 822 | `sudo apt install xdotool wmctrl` 823 | 824 | Optionally review the script to amend end user editable variables to suit your preferences. 825 | 826 | `xdg-open ~/.local/bin/opacify_windows.sh` 827 | 828 | ### Battery Event Warnings 829 | 830 | This script uses zenity - `sudo apt install zenity` to open a warning window on battery low and critically low events. This can be helpful if gaming or watching full screen video whilst running on battery as the zenity window will demand attention. 831 | It is intended to be run on user login as a startup application. Please note the script modifies Cinnamon's default thresholds for Low & Critical battery events and actions. Please review the script if you want to set these thresholds to your preference. 832 | 833 | [battery_mon.sh](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.local/bin/battery_mon.sh) 834 | 835 | To install after [cloning repo](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts#cinnamon-scripts-installation) 836 | 837 | `mkdir -p ~/.local/bin` 838 | 839 | `cp -r ./nemo_actions_and_cinnamon_scripts/.local/bin/battery_mon.sh ~/.local/bin` 840 | 841 | `cp -r ./nemo_actions_and_cinnamon_scripts/.config/autostart/battery_mon.desktop ~/.config/autostart` 842 | 843 | `sudo apt install zenity` 844 | 845 | Optionally review the script to amend end user editable variables to suit your preferences. 846 | 847 | `xdg-open ~/.local/bin/battery_mon.sh` 848 | 849 | # Miscellaneous tweaks 850 | 851 | ## GTK over-ride for Cinnamon 852 | 853 | This small gtk.css file over-rides is intended to improve visibility of desktop icon labels and screen-saver / screen-locker text on light coloured backgrounds. It also increases the width of scroll bars in GTK3 apps and allows the scrollbars size to vary with changes in text scaling factor. 854 | 855 | [gtk.css](https://github.com/smurphos/nemo_actions_and_cinnamon_scripts/blob/master/.config/gtk-3.0/gtk.css) 856 | 857 | ## Installation 858 | 859 | First clone this repo if you haven't already. 860 | 861 | `git clone https://github.com/smurphos/nemo_actions_and_cinnamon_scripts.git` 862 | 863 | To install the gtk.css over-ride file 864 | 865 | `cp -rv ./nemo_actions_and_cinnamon_scripts/.config/gtk-3.0/ ~/.config` 866 | 867 | Log off and back on. 868 | 869 | 870 | -------------------------------------------------------------------------------- /opt/login_screen_random_background.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # Script to randomly set slick-greeter's (Mint's Login screen) background from pictures in a directory 3 | 4 | # Save as /opt/login_screen_random_background.sh and make executable 5 | # Run sudo crontab -e 6 | # Add the lines 7 | 8 | # @reboot /opt/login_screen_random_background.sh 9 | # 0,30 * * * * /opt/login_screen_random_background.sh 10 | 11 | # Ctrl-O and then Ctrl-X to save the crontab. 12 | # The login-screen background will then update on boot and every half an hour. 13 | 14 | # These variables are intended to be set by the end user. 15 | # Set PICS_DIR to a directory of your choice that is not in an encrypted home folder. 16 | # This directory and it's sub-directories will be searched for images 17 | # for display on the login screen. 18 | PICS_DIR="/usr/share/backgrounds" 19 | 20 | # Ensure that the directory and it contents permissions allow for all users to read the contents 21 | # e.g. 22 | # find /path/to/folder -type d -exec chmod -c 775 {} ";" 23 | # find /path/to/folder -type f -exec chmod -c 664 {} "; 24 | 25 | # This variable controls whether the order of images is random (true) or sequential (false) 26 | RANDOM_ORDER=true 27 | 28 | # Main script 29 | # Set Working Directory 30 | cd /etc/lightdm || exit 31 | # Create slick-greeter.conf if it doesn't exist 32 | if [ ! -f slick-greeter.conf ]; then 33 | touch slick-greeter.conf 34 | echo "[Greeter]" >> slick-greeter.conf 35 | fi 36 | # Check for draw-user-backgrounds=false declaration and add it if missing 37 | if (! grep -q "draw-user-backgrounds=false" slick-greeter.conf) ; then 38 | echo "draw-user-backgrounds=false" >> slick-greeter.conf 39 | fi 40 | # Populate IMAGES array in sequential mode 41 | if ( ! $RANDOM_ORDER ); then 42 | if [ -f /opt/login_screen_index ]; then 43 | INDEX=$(cat /opt/login_screen_index) 44 | else 45 | INDEX=0 46 | fi 47 | IMAGES=() 48 | while IFS= read -r -d $'\0'; do 49 | IMAGES+=("$REPLY") 50 | done < <(find "$PICS_DIR" -iname '*.*p*g' -print0) 51 | fi 52 | # Get current background (if any) 53 | OLD_PIC=$(grep "^background=" slick-greeter.conf) 54 | # Get new background 55 | if ( $RANDOM_ORDER ); then 56 | NEW_PIC="background=$(find "$PICS_DIR" -iname '*.*p*g' | shuf -n1)" 57 | else 58 | NEW_PIC="background=${IMAGES[$INDEX]}" 59 | ((INDEX++)) 60 | if [ $INDEX -ge "${#IMAGES[@]}" ]; then 61 | INDEX=0 62 | fi 63 | echo $INDEX > /opt/login_screen_index 64 | fi 65 | # Command to set or replace background image 66 | if [ -n "$OLD_PIC" ]; then 67 | sed -i "s|$OLD_PIC|$NEW_PIC|g" slick-greeter.conf 68 | else 69 | echo "$NEW_PIC" >> slick-greeter.conf 70 | fi 71 | --------------------------------------------------------------------------------