From b95adef425e3dab8abd0f9cff73dca1eb049b075 Mon Sep 17 00:00:00 2001 From: Mateja Date: Wed, 25 Nov 2020 23:06:42 +0100 Subject: programs now managed by debian-setup --- programs | 18 ------------------ scripts/mpd_show | 6 ++++++ scripts/unmount-usb | 11 +++++++++++ stuff/scripts/mpd_show | 6 ------ stuff/scripts/unmount-usb | 11 ----------- 5 files changed, 17 insertions(+), 35 deletions(-) delete mode 100644 programs create mode 100755 scripts/mpd_show create mode 100755 scripts/unmount-usb delete mode 100755 stuff/scripts/mpd_show delete mode 100755 stuff/scripts/unmount-usb diff --git a/programs b/programs deleted file mode 100644 index 635b2ef..0000000 --- a/programs +++ /dev/null @@ -1,18 +0,0 @@ -qtile - -dunst -udiskie -picom - -feh -dmenu rofi -xterm termite -ttf-fira-mono ttf-nerd-fonts-symbols -xorg-xinit numlockx - -#i3 -#xmonad -#xmonad-contrib -#xmonad-utils -#xmobar -#xdotool diff --git a/scripts/mpd_show b/scripts/mpd_show new file mode 100755 index 0000000..8d14a1d --- /dev/null +++ b/scripts/mpd_show @@ -0,0 +1,6 @@ +#!/bin/sh + +raw="$(mpc)" +song=$(echo "$raw" | sed -n '1p') +time=$(echo "$raw" | sed -n '2p') +notify-send "$song" "$time" diff --git a/scripts/unmount-usb b/scripts/unmount-usb new file mode 100755 index 0000000..c90dde4 --- /dev/null +++ b/scripts/unmount-usb @@ -0,0 +1,11 @@ +#!/bin/bash +options=$(lsblk | grep /media/$USER | rev | cut -d ' ' -f 1 | rev) +[ -n "$options" ] && opt_num=$(echo "$options" | wc -l) || opt_num=0 +if [ $opt_num == 0 ]; then + notify-send "Nothing mounted!" +elif [ $opt_num == 1 ]; then + udiskie-umount "$options" +else + unmount_device=$(echo "$options" | dmenu -p "What device you want to unmount?") + [[ ! -z "$unmount_device" ]] && udiskie-umount "$unmount_device" +fi diff --git a/stuff/scripts/mpd_show b/stuff/scripts/mpd_show deleted file mode 100755 index 8d14a1d..0000000 --- a/stuff/scripts/mpd_show +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -raw="$(mpc)" -song=$(echo "$raw" | sed -n '1p') -time=$(echo "$raw" | sed -n '2p') -notify-send "$song" "$time" diff --git a/stuff/scripts/unmount-usb b/stuff/scripts/unmount-usb deleted file mode 100755 index c90dde4..0000000 --- a/stuff/scripts/unmount-usb +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -options=$(lsblk | grep /media/$USER | rev | cut -d ' ' -f 1 | rev) -[ -n "$options" ] && opt_num=$(echo "$options" | wc -l) || opt_num=0 -if [ $opt_num == 0 ]; then - notify-send "Nothing mounted!" -elif [ $opt_num == 1 ]; then - udiskie-umount "$options" -else - unmount_device=$(echo "$options" | dmenu -p "What device you want to unmount?") - [[ ! -z "$unmount_device" ]] && udiskie-umount "$unmount_device" -fi -- cgit v1.2.3