diff --git a/.local/bin/cron/cronprofile b/.local/bin/cron/cronprofile new file mode 100644 index 000000000..a324e9fcb --- /dev/null +++ b/.local/bin/cron/cronprofile @@ -0,0 +1,18 @@ +#!/bin/sh + +export XDG_DESKTOP_DIR="$HOME/Desktop" +export XDG_DOCUMENTS_DIR="$HOME/Documents" +export XDG_DOWNLOAD_DIR="$HOME/Downloads" +export XDG_MUSIC_DIR="$HOME/Music" +export XDG_PICTURES_DIR="$HOME/Pictures" +export XDG_PUBLICSHARE_DIR="$HOME/Public" +export XDG_TEMPLATES_DIR="$HOME/Templates" +export XDG_VIDEOS_DIR="$HOME/Videos" +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_STATE_HOME="$HOME/.local/state" + +x="$(cat "$XDG_STATE_HOME/dbus_session_bus_address")" +export DBUS_SESSION_BUS_ADDRESS="$x" +export DISPLAY=:0 diff --git a/.local/bin/startgraphical b/.local/bin/startgraphical deleted file mode 100755 index 6179839cd..000000000 --- a/.local/bin/startgraphical +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -echo lol diff --git a/.local/bin/trash-restore b/.local/bin/trash-restore index 303470d94..659a46493 100755 --- a/.local/bin/trash-restore +++ b/.local/bin/trash-restore @@ -4,7 +4,6 @@ use warnings; use feature("signatures"); use File::Basename; -use File::Copy; use Cwd; sub fs_root ($file_name) { @@ -75,5 +74,5 @@ my $file_dest = $files[$index][0] . $files[$index][1]; my $file_src = $trash_dir . "files/" . $files[$index][3]; my $file_info = $trash_dir . "info/" . $files[$index][3]; -move( $file_src, $file_dest ) or die "$!\n"; +rename( $file_src, $file_dest ) or die "$!\n"; unlink($file_info); diff --git a/.local/bin/displayselect b/.local/bin/trash/displayselect similarity index 100% rename from .local/bin/displayselect rename to .local/bin/trash/displayselect diff --git a/.local/bin/dmenuflameshot b/.local/bin/trash/dmenuflameshot similarity index 100% rename from .local/bin/dmenuflameshot rename to .local/bin/trash/dmenuflameshot diff --git a/.local/bin/linkhandler b/.local/bin/trash/linkhandler similarity index 100% rename from .local/bin/linkhandler rename to .local/bin/trash/linkhandler diff --git a/.local/bin/opout b/.local/bin/trash/opout similarity index 100% rename from .local/bin/opout rename to .local/bin/trash/opout diff --git a/.local/bin/pauseallmpv b/.local/bin/trash/pauseallmpv similarity index 100% rename from .local/bin/pauseallmpv rename to .local/bin/trash/pauseallmpv diff --git a/.local/bin/podentr b/.local/bin/trash/podentr similarity index 100% rename from .local/bin/podentr rename to .local/bin/trash/podentr diff --git a/.local/bin/qndl b/.local/bin/trash/qndl similarity index 100% rename from .local/bin/qndl rename to .local/bin/trash/qndl diff --git a/.local/bin/queueandnotify b/.local/bin/trash/queueandnotify similarity index 100% rename from .local/bin/queueandnotify rename to .local/bin/trash/queueandnotify diff --git a/.local/bin/rotdir b/.local/bin/trash/rotdir similarity index 100% rename from .local/bin/rotdir rename to .local/bin/trash/rotdir