brew: packages: rtv -> tuir

`rtv` is not maintained anymore & `tuir` is the recommended fork
parent d4a35a93
...@@ -19,7 +19,7 @@ create_session() { ...@@ -19,7 +19,7 @@ create_session() {
open_or_log newsboat open_or_log newsboat
tmux new-window -n 'reddit' tmux new-window -n 'reddit'
open_or_log rtv open_or_log tuir
tmux new-window -n 'weechat' tmux new-window -n 'weechat'
# Stop Weechat from renaming the window # Stop Weechat from renaming the window
......
...@@ -70,7 +70,6 @@ brew "msmtp" ...@@ -70,7 +70,6 @@ brew "msmtp"
brew "offlineimap" brew "offlineimap"
brew "neomutt/homebrew-neomutt/neomutt", args: ["with-gpgme", "with-notmuch-patch", "with-lua"] brew "neomutt/homebrew-neomutt/neomutt", args: ["with-gpgme", "with-notmuch-patch", "with-lua"]
# End Mail # End Mail
brew "rtv"
brew "tmux", args: ["HEAD"] brew "tmux", args: ["HEAD"]
brew "vim" brew "vim"
brew "weechat" # , args: ["with-curl"] brew "weechat" # , args: ["with-curl"]
......
; Reddit Terminal Viewer Configuration File ; Reddit Terminal Viewer Configuration File
; https://github.com/michael-lazar/rtv ; https://github.com/michael-lazar/tuir
; ;
; This file should be placed in $XDG_CONFIG/rtv/rtv.cfg ; This file should be placed in $XDG_CONFIG/tuir/rtv.cfg
; If $XDG_CONFIG is not set, use ~/.config/rtv/rtv.cfg ; If $XDG_CONFIG is not set, use ~/.config/tuir/rtv.cfg
[rtv] [tuir]
################## ##################
# General Settings # General Settings
################## ##################
...@@ -20,7 +20,7 @@ monochrome = False ...@@ -20,7 +20,7 @@ monochrome = False
flash = True flash = True
; Enable debugging by logging all HTTP requests and errors to the given file. ; Enable debugging by logging all HTTP requests and errors to the given file.
;log = /tmp/rtv.log ;log = /tmp/tuir.log
; Default subreddit that will be opened when the program launches. ; Default subreddit that will be opened when the program launches.
subreddit = front subreddit = front
...@@ -28,7 +28,7 @@ subreddit = front ...@@ -28,7 +28,7 @@ subreddit = front
;subreddit = python+linux+programming ;subreddit = python+linux+programming
;subreddit = all ;subreddit = all
; Allow rtv to store reddit authentication credentials between sessions. ; Allow tuir to store reddit authentication credentials between sessions.
persistent = True persistent = True
; Clear any stored credentials when the program starts. ; Clear any stored credentials when the program starts.
...@@ -46,7 +46,7 @@ max_comment_cols = 120 ...@@ -46,7 +46,7 @@ max_comment_cols = 120
; Hide username if logged in, display "Logged in" instead ; Hide username if logged in, display "Logged in" instead
hide_username = False hide_username = False
; Color theme, use "rtv --list-themes" to view a list of valid options. ; Color theme, use "tuir --list-themes" to view a list of valid options.
; This can be an absolute filepath, or the name of a theme file that has ; This can be an absolute filepath, or the name of a theme file that has
; been installed into either the custom of default theme paths. ; been installed into either the custom of default theme paths.
theme = molokai-modified theme = molokai-modified
...@@ -55,16 +55,16 @@ theme = molokai-modified ...@@ -55,16 +55,16 @@ theme = molokai-modified
# OAuth Settings # OAuth Settings
################ ################
; This sections defines the paramaters that will be used during the OAuth ; This sections defines the paramaters that will be used during the OAuth
; authentication process. rtv is registered as an "installed app", ; authentication process. tuir is registered as an "installed app",
; see https://github.com/reddit/reddit/wiki/OAuth2 for more information. ; see https://github.com/reddit/reddit/wiki/OAuth2 for more information.
; These settings are defined at https://www.reddit.com/prefs/apps and should ; These settings are defined at https://www.reddit.com/prefs/apps and should
; not be altered unless you are defining your own developer application. ; not be altered unless you are defining your own developer application.
oauth_client_id = E2oEtRQfdfAfNQ oauth_client_id = zjyhNI7tK8ivzQ
oauth_client_secret = praw_gapfill oauth_client_secret = praw_gapfill
oauth_redirect_uri = http://127.0.0.1:65000/ oauth_redirect_uri = http://127.0.0.1:65000/
; Port that the rtv webserver will listen on. This should match the redirect ; Port that the tuir webserver will listen on. This should match the redirect
; uri defined above. ; uri defined above.
oauth_redirect_port = 65000 oauth_redirect_port = 65000
...@@ -74,7 +74,7 @@ oauth_scope = edit,history,identity,mysubreddits,privatemessages,read,report,sav ...@@ -74,7 +74,7 @@ oauth_scope = edit,history,identity,mysubreddits,privatemessages,read,report,sav
; This is a separate token for the imgur api. It's used to extract images ; This is a separate token for the imgur api. It's used to extract images
; from imgur links and albums so they can be opened with mailcap. ; from imgur links and albums so they can be opened with mailcap.
; See https://imgur.com/account/settings/apps to generate your own key. ; See https://imgur.com/account/settings/apps to generate your own key.
imgur_client_id = 93396265f59dec9 imgur_client_id = b33d69ac8931734
[bindings] [bindings]
############## ##############
......
...@@ -17,13 +17,14 @@ PACKAGES=( ...@@ -17,13 +17,14 @@ PACKAGES=(
"black" "black"
"pynvim" "pynvim"
"pylint" "pylint"
"tuir"
) )
FLAGS='' FLAGS=''
for package in "${PACKAGES[@]}"; do for package in "${PACKAGES[@]}"; do
[[ $package == "pip" ]] && FLAGS="--upgrade" || FLAGS="--user" [[ $package == "pip" ]] && FLAGS="--upgrade" || FLAGS="--user"
[[ $package == "black" ]] && pip3 install "$FLAGS" "$package" || pip2 install "$FLAGS" "$package" && pip3 install "$FLAGS" "$package" [[ $package == "black" || $package == 'tuir' ]] && pip3 install "$FLAGS" "$package" || pip2 install "$FLAGS" "$package" && pip3 install "$FLAGS" "$package"
done done
unset -v PACKAGES FLAGS unset -v PACKAGES FLAGS
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment