dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 236794dd9003e248529358884b2f9da696491fb6
parent 9cf3e178617b07870d47382a6be9878499e6ff6b
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Tue, 14 Apr 2020 18:10:19 +0200

Add and remove some scripts

Diffstat:
Abin/dmenu_emoji | 13+++++++++++++
Mbin/dmenu_statusbar | 2+-
Dbin/ncmpcpp.sh | 1-
Abin/tsurf | 3+++
Rbin/eduroam -> bin/wifi-eduroam | 0
5 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/bin/dmenu_emoji b/bin/dmenu_emoji @@ -0,0 +1,13 @@ +#!/bin/sh + +# Taken from Luke Smith <https://github.com/LukeSmithxyz> + +# Must have xclip installed to even show menu. +xclip -h 2>/dev/null || exit 1 + +chosen=$(cut -d ';' -f1 ~/.local/share/emoji | dmenu -p Emoji -c -i -l 20 | sed "s/ .*//") + +[ "$chosen" != "" ] || exit + +echo "$chosen" | tr -d '\n' | xclip -selection clipboard +#notify-send "'$chosen' copied to clipboard." & diff --git a/bin/dmenu_statusbar b/bin/dmenu_statusbar @@ -20,4 +20,4 @@ TEMP="$(($(cat /sys/class/thermal/thermal_zone0/temp) / 1000))°C" BAT="$(acpi -b | awk '{ print $4 " " }' | tr -d ',' | tr -d ' ')" CURRENT_SONG="$(mpc --format "[[%composer%|%artist%][ - %album%][ - %title%] | [%file%]]" current)" -echo "LOCALTIME = $LOCALTIME\nVOL = $VOL\nIP = $IP\nVPN = $VPN\nTEMP = $TEMP\nBAT = $BAT\nUTC = $UTC\nSONG = $CURRENT_SONG" | dmenu "$@" +echo "🕓 $LOCALTIME\n🔊 $VOL\n $IP\n🚆 $VPN\n $TEMP\n $BAT\n🎼 $CURRENT_SONG" | dmenu -p System\ Info: -fn "Sans:size=11" diff --git a/bin/ncmpcpp.sh b/bin/ncmpcpp.sh @@ -1 +0,0 @@ -st -e ncmpcpp diff --git a/bin/tsurf b/bin/tsurf @@ -0,0 +1,3 @@ +#!/bin/dash + +tabbed -c surf -e & disown diff --git a/bin/eduroam b/bin/wifi-eduroam