dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit d4e85a8c5f79a1448d277483ac32ae50656b43cd
parent 180db6d05027fb4ec3b5d5e260c9e7a16e7031c2
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sat, 15 Jun 2019 16:08:41 +0200

Hide right part of status bar, simplify HTML of bookmark page

Diffstat:
M.tmux.conf | 10+++++-----
M.w3m/bookmark.html | 34+++++++++++++++++++++++++++-------
2 files changed, 32 insertions(+), 12 deletions(-)

diff --git a/.tmux.conf b/.tmux.conf @@ -35,7 +35,7 @@ setw -g window-status-current-format '#[fg=6] #I #W#[fg=default] ' setw -g window-status-separator '#[fg=7]|#[fg=default]' set -g status-bg default # background color for status bar set -g status-position bottom # put status bar on top or bottom -set -g status-interval 2 # interval in s to update status +set -g status-interval 5 # interval in s to update status set -g status-justify left # horizontal alignment set -g message-style fg=default,bg=default # appearance of status messages set -g message-command-style fg=default # appearance of status message cmds @@ -53,12 +53,12 @@ set-hook -g window-linked 'if -F "#{==:#{session_windows},1}" "set status off" " set-hook -g window-unlinked 'if -F "#{==:#{session_windows},1}" "set status off" "set status on"' # Right section of status bar -if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=#81a2be]#(/usr/local/bin/mpc | head -n 1 | sed 's/volume.*$//') #[fg=cyan]#(~/.local/bin/battery-osx) #(~/.local/bin/mailstatus) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%F #[fg=#bababa]%R\"" - -if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=7]#(sysstatus)\"" +#if-shell 'uname | grep -qi Darwin' "set -g status-right \"#[fg=#81a2be]#(/usr/local/bin/mpc | head -n 1 | sed 's/volume.*$//') #[fg=cyan]#(~/.local/bin/battery-osx) #(~/.local/bin/mailstatus) #[fg=yellow]#(uptime|sed 's/.* //') #[fg=#666666]%F #[fg=#bababa]%R\"" +#if-shell 'uname | grep -qi Linux' "set -g status-right \"#[fg=7]#(sysstatus)\"" +set -g status-right "" # Scaling of status-bar sections -set -g status-right-length 40 +set -g status-right-length 0 #### NAVIGATION diff --git a/.w3m/bookmark.html b/.w3m/bookmark.html @@ -1,12 +1,33 @@ <!DOCTYPE html> <html lang="en"> -<head> -<meta charset="utf-8"/> +<meta charset="utf-8"> +<meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bookmarks</title> -<link href="style.css" rel="stylesheet" media="screen"> -</head> -<body> +<style> + body{ + margin:1em auto; + max-width:40em; + padding:0 .62em; + font:1.2em/1.62 sans-serif; + } + h1,h2,h3 { + line-height:1.2; + } + a { + color: #126b8c; + text-decoration: none; + } + @media print{ + body{ + max-width:none + } + } +</style> +<article> +<header> <h1><a href="bookmarks.html">Bookmarks</a></h1> +<aside>And it’s fucking perfect.</aside> +</header> <h2>Search</h2> <ul> <li><a href="https://duckduckgo.com/lite/">DuckDuckGo (https)</a> @@ -92,5 +113,4 @@ <li><a href="https://www.openstreetmap.org/">Open Street Map</a> <!--End of section (do not delete this comment)--> </ul> -</body> -</html> +</article>