dotfiles

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

commit ba1b9ac70730017b7efbc18bb74d3304976c8e98
parent fc7e330d48d8aa93476ed34856c4490b4e0c3780
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Tue, 17 Dec 2019 22:15:23 +0100

Put new dmenu center flag

Diffstat:
Mbin/dmenu_addressbook | 2+-
Mbin/dmenu_hist | 2+-
Mbin/dmenu_statusbar | 2+-
Mbin/mpv-youtube.bash | 2+-
Msuckless/dwm/config.h | 12++++++------
5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/bin/dmenu_addressbook b/bin/dmenu_addressbook @@ -1,3 +1,3 @@ #!/bin/sh -cat ~/.mutt/aliases.muttrc | sed '/#/d' | sed '/^[[:space:]]*$/d' | cut -d' ' -f3- | dmenu -p "Address book:" -l 40 -fn "Sans:size=11" -i +cat ~/.mutt/aliases.muttrc | sed '/#/d' | sed '/^[[:space:]]*$/d' | cut -d' ' -f3- | dmenu -c -p "Address book:" -l 40 -fn "Sans:size=11" -i | xdotool type --clearmodifiers --file - diff --git a/bin/dmenu_hist b/bin/dmenu_hist @@ -2,4 +2,4 @@ HISTFILE=~/.zhistory set -o history -`history | sort -nr | dmenu -p History: -l 40 -fn "Sans:size=11" | sed 's/^\s*[0-9]\+\s*//'` +`history | sort -nr | dmenu -c -p History: -l 40 -fn "Sans:size=11" | sed 's/^\s*[0-9]\+\s*//'` 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 -p System\ Info: -l 8 -fn "Sans:size=11" +echo "LOCALTIME = $LOCALTIME\nVOL = $VOL\nIP = $IP\nVPN = $VPN\nTEMP = $TEMP\nBAT = $BAT\nUTC = $UTC\nSONG = $CURRENT_SONG" | dmenu -c -p System\ Info: -l 8 -fn "Sans:size=11" diff --git a/bin/mpv-youtube.bash b/bin/mpv-youtube.bash @@ -4,7 +4,7 @@ BOOKMARKS="$HOME/.bookmarks.html" TMPFILE=$HOME/.tmp/mpv-youtube.last LASTENTRY=`< $TMPFILE` -ENTRY=$(cat <(printf 'Last: %s\n\n' "$LASTENTRY") <(paste -d' ' <(pup -f $BOOKMARKS "dt a attr{adddate}") <(pup -f $BOOKMARKS "dt a text{}") <(pup -f $BOOKMARKS "dt a attr{href}") | egrep "https?://(www\.)?youtube\.(com|de)" | sort -r | cut -d' ' -f2-) | dmenu -p "YouTube Bookmarks:" -i -l 30) +ENTRY=$(cat <(printf 'Last: %s\n\n' "$LASTENTRY") <(paste -d' ' <(pup -f $BOOKMARKS "dt a attr{adddate}") <(pup -f $BOOKMARKS "dt a text{}") <(pup -f $BOOKMARKS "dt a attr{href}") | egrep "https?://(www\.)?youtube\.(com|de)" | sort -r | cut -d' ' -f2-) | dmenu -c -p "YouTube Bookmarks:" -i -l 30) if [ -z "$ENTRY" ]; then exit 0 else diff --git a/suckless/dwm/config.h b/suckless/dwm/config.h @@ -75,13 +75,13 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-p", "Run:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-c", "-p", "Run:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; static const char *topcmd[] = {"st", "-e", "top", NULL }; static const char *screenshotcmd[] = { "maim", "-s", "/tmp/screenshot.png" }; -static const char *clipcmd[] = { "clipmenu", "-p", "Clipboard:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define clipmenu command */ -static const char *passcmd[] = { "passmenu", "--type", "-p", "Pass:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define passmenu command */ -static const char *passclipcmd[] = { "passmenu", "-p", "Pass to Clip:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define passmenu command */ +static const char *clipcmd[] = { "clipmenu", "-c", "-p", "Clipboard:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define clipmenu command */ +static const char *passcmd[] = { "passmenu", "--type", "-c", "-p", "Pass:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define passmenu command */ +static const char *passclipcmd[] = { "passmenu", "-c", "-p", "Pass to Clip:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define passmenu command */ static const char *browsercmd[] = { "firefox-nightly", NULL }; /* Define browser start command */ static const char *emailcmd[] = { "st", "-e", "mutt", NULL }; /* Define email client start command */ static const char *musicplayercmd[] = { "ncmpcpp.sh", NULL }; @@ -94,8 +94,8 @@ static const char *showtempcmd[] = { "cowsay_temperatur.sh", NULL }; static const char *showsongcmd[] = { "cowsay_current_song.sh", NULL }; static const char *histcmd[] = { "dmenu_hist", NULL }; /* Define command for searching the command history */ static const char *lockcmd[] = { "slock", NULL }; /* Define command for locking screen */ -static const char *musiclibcmd[] = { "mpdmenu", "::", "-i", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for browsing music collection */ -static const char *musicplcmd[] = { "mpdmenu", "-p", "::", "-i", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for browsing music collection */ +static const char *musiclibcmd[] = { "mpdmenu", "::", "-c", "-i", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for browsing music collection */ +static const char *musicplcmd[] = { "mpdmenu", "-p", "::", "-c", "-i", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for browsing music collection */ static const char *youtubeviewercmd[] = { "youtube-viewer.sh", NULL }; /* Search YouTube*/ static const char *mpvyoutubecmd[] = { "st", "-e", "mpv-youtube.bash", NULL }; /* Stream YouTube videos with mpv from bookmarks file*/ static const char *addressbookcmd[] = { "dmenu_addressbook", NULL }; /* Define command to show addressbook */