dotfiles

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

commit 56463e570e8912c84e9c12198aff1298fa6cfbb4
parent 25062f5c99bd29a464ed8a16db7a32b737cf84a3
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Sun, 29 Dec 2019 22:09:36 +0100

Adjust dmenu font size

Also adjust general dwm font size

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 -c -p "Address book:" -l 40 -fn "Sans:size=11" -i | sed -z '$ s/\n$//'| xdotool type --clearmodifiers --file - +cat ~/.mutt/aliases.muttrc | sed '/#/d' | sed '/^[[:space:]]*$/d' | cut -d' ' -f3- | dmenu "$@" | sed -z '$ s/\n$//'| 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 -c -p History: -l 40 -fn "Sans:size=11" | sed 's/^\s*[0-9]\+\s*//'` +`history | sort -nr | dmenu "$@" | 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 -c -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 "$@" 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 -c -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 "$@") if [ -z "$ENTRY" ]; then exit 0 else diff --git a/suckless/dwm/config.h b/suckless/dwm/config.h @@ -9,8 +9,8 @@ static const unsigned int snap = 32; /* snap pixel */ static const int showtitle = 0; /* 0 means no title */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ -static const char *fonts[] = { "Sans:size=9" }; -static const char dmenufont[] = "Sans:size=11"; +static const char *fonts[] = { "Sans:size=11" }; +static const char dmenufont[] = "Sans:size=12"; static const char dmenuln[] = "20"; static const char col_gray1[] = "#222222"; static const char col_gray2[] = "#444444"; @@ -85,20 +85,20 @@ static const char *passclipcmd[] = { "passmenu", "-c", "-p", "Pass to Clip:", "- 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 }; -static const char *statusbarcmd[] = { "dmenu_statusbar", NULL }; /* Define command for starting dmenu-based statusbar */ +static const char *statusbarcmd[] = { "dmenu_statusbar", "-c", "-p", "System Info:", "-l", "8", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for starting dmenu-based statusbar */ static const char *showtimecmd[] = { "tty-clock.sh", NULL }; static const char *showvolumecmd[] = { "cowsay_volume.sh", NULL }; static const char *showbatterycmd[] = { "cowsay_battery.sh", NULL }; static const char *showipcmd[] = { "cowsay_ip.sh", NULL }; 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 *histcmd[] = { "dmenu_hist", "-c", "-p", "History:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command for searching the command history */ static const char *lockcmd[] = { "slock", NULL }; /* Define command for locking screen */ 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 */ +static const char *mpvyoutubecmd[] = { "st", "-e", "mpv-youtube.bash", "-c", "-p", "YouTube Bookmarks:", "-i", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Stream YouTube videos with mpv from bookmarks file*/ +static const char *addressbookcmd[] = { "dmenu_addressbook", "-c", "-i", "-p", "Address book:", "-l", dmenuln, "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; /* Define command to show addressbook */ static const char *volumeupcmd[] = { "pactl", "set-sink-volume", "0", "+1%", NULL }; static const char *volumedowncmd[] = { "pactl", "set-sink-volume", "0", "-1%", NULL }; static const char *volumemutecmd[] = { "amixer", "-q", "-D", "pulse", "sset", "Master", "toggle", NULL };