SHARE
TWEET

calendar_rofi

a guest Jun 1st, 2018 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #! /bin/sh
  2.  
  3. today=$(date '+%A, %d %b %Y')
  4.  
  5. export TERM=xterm
  6. cal --color=always \
  7.     | sed 's/\x1b\[[7;]*m/\<b\>\<u\>/g' \
  8.     | sed 's/\x1b\[[27;]*m/\<\/u\>\<\/b\>/g' \
  9.     | rofi -dmenu -p " $today" \
  10.         -markup-rows -no-fullscreen -hide-scrollbar \
  11.     -location 0 -bw 2 -eh 1 \
  12.     -font 'Terminus bold 12' \
  13.         -theme-str '#inputbar {children: [prompt];}' \
  14.         -theme-str '#inputbar {padding: 0.35em;}' \
  15.         -theme-str '#listview {lines: 7;}' \
  16.         -theme-str '#element selected.normal {text-color: #5994ad; background-color: #303d44;}' \
  17.         -theme-str '#window {x-offset: 42.2%; y-offset: -33%;}' \
  18.         -theme-str '#window {width: 202;}'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top