aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Noll <nnoll523@gmail.com>2020-06-20 21:04:14 -0700
committerNicholas Noll <nnoll523@gmail.com>2020-06-20 21:04:14 -0700
commit641ea1557ccc0099ef5471a16503938bd00924af (patch)
tree249ca7c822162099b04936af7c2526c23be7ba1b
parente12e88483cc0a2dbdc2b6ff6a3c45750cfc17d1e (diff)
larger fonts for laptop
-rwxr-xr-xbin/tmux-send37
-rw-r--r--sys/cmd/dwm/config.h2
-rw-r--r--sys/cmd/menu/config.h2
-rw-r--r--sys/cmd/term/config.h4
4 files changed, 41 insertions, 4 deletions
diff --git a/bin/tmux-send b/bin/tmux-send
new file mode 100755
index 0000000..47a6de8
--- /dev/null
+++ b/bin/tmux-send
@@ -0,0 +1,37 @@
+#!/bin/sh
+
+dir=$1
+tty=$(tmux list-panes -F "#{pane_active}#{pane_tty}" | grep '^1' | cut -c2-)
+vim=$(ps -o stat=,command= -t $tty | awk 'BEGIN{flag=0} {if($1 ~ /S*+/ && $2 ~ /nvim/){flag +=1}}; END {print flag}')
+
+if [ $vim -gt 0 ]; then
+ case $dir in
+ up)
+ tmux send-keys C-k
+ ;;
+ down)
+ tmux send-keys C-j
+ ;;
+ left)
+ tmux send-keys C-h
+ ;;
+ right)
+ tmux send-keys C-l
+ ;;
+ esac
+else
+ case $dir in
+ up)
+ tmux select-pane -U
+ ;;
+ down)
+ tmux select-pane -D
+ ;;
+ left)
+ tmux select-pane -L
+ ;;
+ right)
+ tmux select-pane -R
+ ;;
+ esac
+fi
diff --git a/sys/cmd/dwm/config.h b/sys/cmd/dwm/config.h
index 053b9f8..6875304 100644
--- a/sys/cmd/dwm/config.h
+++ b/sys/cmd/dwm/config.h
@@ -8,7 +8,7 @@ static uint snap = 32; /* snap pixel */
static int swallowfloating = 0; /* 1 will swallow floating by default */
static int showbar = 1; /* 0 means no bar */
static int topbar = 1; /* 0 means bottom bar */
-static char *fonts[] = { "consolas:size=12" };
+static char *fonts[] = { "consolas:size=14" };
static char col_gray1[] = "#323232";
static char col_gray2[] = "#444444";
static char col_gray3[] = "#bbbbbb";
diff --git a/sys/cmd/menu/config.h b/sys/cmd/menu/config.h
index 1e14aa9..090d465 100644
--- a/sys/cmd/menu/config.h
+++ b/sys/cmd/menu/config.h
@@ -5,7 +5,7 @@
static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */
/* -fn option overrides fonts[0]; default X11 font or font set */
static const char *fonts[] = {
- "consolas:size=12"
+ "consolas:size=14"
};
static const char *prompt = "cmds"; /* -p option; prompt to the left of input field */
diff --git a/sys/cmd/term/config.h b/sys/cmd/term/config.h
index 2b35a74..1002e17 100644
--- a/sys/cmd/term/config.h
+++ b/sys/cmd/term/config.h
@@ -6,7 +6,7 @@
*
* font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html
*/
-static char *font = "consolas:pixelsize=16:antialias=true";
+static char *font = "consolas:pixelsize=18:antialias=true";
static int borderpx = 2;
/*
@@ -17,7 +17,7 @@ static int borderpx = 2;
* 4: value of shell in /etc/passwd
* 5: value of shell in config.h
*/
-static char *shell = "/bin/sh";
+static char *shell = "/bin/mksh";
char *utmp = nil;
/* scroll program: to enable use a string like "scroll" */
char *scroll = nil;