about summary refs log tree commit diff stats
path: root/hm/soispha/pkgs/scripts/small_functions
diff options
context:
space:
mode:
Diffstat (limited to 'hm/soispha/pkgs/scripts/small_functions')
-rwxr-xr-xhm/soispha/pkgs/scripts/small_functions/dldragon28
-rwxr-xr-xhm/soispha/pkgs/scripts/small_functions/gtk-themes21
-rwxr-xr-xhm/soispha/pkgs/scripts/small_functions/mocs15
-rwxr-xr-xhm/soispha/pkgs/scripts/small_functions/screen_shot10
4 files changed, 0 insertions, 74 deletions
diff --git a/hm/soispha/pkgs/scripts/small_functions/dldragon b/hm/soispha/pkgs/scripts/small_functions/dldragon
deleted file mode 100755
index ea75c362..00000000
--- a/hm/soispha/pkgs/scripts/small_functions/dldragon
+++ /dev/null
@@ -1,28 +0,0 @@
-#! /usr/bin/env dash
-# Provides the ability to download a file by dropping it into a window
-
-url=$(dragon -t -x)
-
-if [ -n "$url" ]; then
-  printf "File Name: "
-  name=""
-  while [ -z $name ] || [ -e $name ]
-  do
-    read -r name
-    if [ -e "$name" ]; then
-      printf "File already exists, overwrite (y|n): "
-      read -r ans
-
-      if [ "$ans" = "y" ]; then
-        break
-      else
-        printf "File Name: "
-      fi
-    fi
-  done
-
-  # Download the file with curl
-  [ -n "$name" ] && curl -o "$name" "$url" || exit 1
-else
-  exit 1
-fi
diff --git a/hm/soispha/pkgs/scripts/small_functions/gtk-themes b/hm/soispha/pkgs/scripts/small_functions/gtk-themes
deleted file mode 100755
index 41c1a162..00000000
--- a/hm/soispha/pkgs/scripts/small_functions/gtk-themes
+++ /dev/null
@@ -1,21 +0,0 @@
-#! /usr/bin/env dash
-
-# shellcheck source=/dev/null
-SHELL_LIBRARY_VERSION="1.7.1" . %SHELL_LIBRARY_PATH
-
-
-# TODO: document, what this does
-
-# usage: import-gsettings
-config="${XDG_CONFIG_HOME:-$HOME/.config}/gtk-3.0/settings.ini"
-if [ ! -f "$config" ]; then exit 1; fi
-
-gnome_schema="org.gnome.desktop.interface"
-gtk_theme="$(grep 'gtk-theme-name' "$config" | sed 's/.*\s*=\s*//')"
-icon_theme="$(grep 'gtk-icon-theme-name' "$config" | sed 's/.*\s*=\s*//')"
-cursor_theme="$(grep 'gtk-cursor-theme-name' "$config" | sed 's/.*\s*=\s*//')"
-font_name="$(grep 'gtk-font-name' "$config" | sed 's/.*\s*=\s*//')"
-gsettings set "$gnome_schema" gtk-theme "$gtk_theme"
-gsettings set "$gnome_schema" icon-theme "$icon_theme"
-gsettings set "$gnome_schema" cursor-theme "$cursor_theme"
-gsettings set "$gnome_schema" font-name "$font_name"
diff --git a/hm/soispha/pkgs/scripts/small_functions/mocs b/hm/soispha/pkgs/scripts/small_functions/mocs
deleted file mode 100755
index e14a84c8..00000000
--- a/hm/soispha/pkgs/scripts/small_functions/mocs
+++ /dev/null
@@ -1,15 +0,0 @@
-#! /bin/bash
-if [[ "$(pgrep mocp)" -eq 0 ]];
-then
-    mocp -M "${XDG_CONFIG_HOME}"/moc -S
-    if [[  $1 -eq 0 ]];
-    then
-        mocp -M "${XDG_CONFIG_HOME}"/moc -v 12
-    else
-        mocp -M "${XDG_CONFIG_HOME}"/moc -v "$1"
-    fi
-    mocp -M "${XDG_CONFIG_HOME}"/moc -p
-    mymocp&
-else
-    mocp -M "${XDG_CONFIG_HOME}"/moc -G
-fi
diff --git a/hm/soispha/pkgs/scripts/small_functions/screen_shot b/hm/soispha/pkgs/scripts/small_functions/screen_shot
deleted file mode 100755
index ff0d3ee4..00000000
--- a/hm/soispha/pkgs/scripts/small_functions/screen_shot
+++ /dev/null
@@ -1,10 +0,0 @@
-#! /usr/bin/env dash
-
-# shellcheck source=/dev/null
-SHELL_LIBRARY_VERSION="1.7.1" . %SHELL_LIBRARY_PATH
-
-date="$(date +%s)"
-grim -g "$(slurp)" "$HOME/media/pictures/screenshots/$date.png" &&
-    alacritty -e ll -command ":{{ set sortby atime; set reverse!; }}" "$HOME/media/pictures/screenshots/$date.png"
-
-# vim: ft=sh