changes from p1

This commit is contained in:
anaximenes 2022-02-15 09:42:24 +05:30
parent 420f5cd8ee
commit c5ebefcb67
8 changed files with 291 additions and 38 deletions

232
amfora/config.toml Normal file
View File

@ -0,0 +1,232 @@
# This is the default config file.
# It also shows all the default values, if you don't create the file.
# All URL values may omit the scheme and/or port, as well as the beginning double slash
# Valid URL examples:
# gemini://example.com
# //example.com
# example.com
# example.com:123
[a-general]
# Press Ctrl-H to access it
home = "gemini://gemini.circumlunar.space"
# Follow up to 5 Gemini redirects without prompting.
# A prompt is always shown after the 5th redirect and for redirects to protocols other than Gemini.
# If set to false, a prompt will be shown before following redirects.
auto_redirect = false
# What command to run to open a HTTP(S) URL.
# Set to "default" to try to guess the browser, or set to "off" to not open HTTP(S) URLs.
# If a command is set, than the URL will be added (in quotes) to the end of the command.
# A space will be prepended to the URL.
#
# The best to define a command is using a string array.
# Examples:
# http = ['firefox']
# http = ['custom-browser', '--flag', '--option=2']
# http = ['/path/with spaces/in it/firefox']
#
# Note the use of single quotes, so that backslashes will not be escaped.
# Using just a string will also work, but it is deprecated, and will degrade if
# you use paths with spaces.
http = 'default'
# Any URL that will accept a query string can be put here
search = "gemini://gus.guru/search"
# Whether colors will be used in the terminal
color = true
# Whether ANSI color codes from the page content should be rendered
ansi = true
# Whether to replace list asterisks with unicode bullets
bullets = true
# Whether to show link after link text
show_link = false
# A number from 0 to 1, indicating what percentage of the terminal width the left margin should take up.
left_margin = 0.15
# The max number of columns to wrap a page's text to. Preformatted blocks are not wrapped.
max_width = 100
# 'downloads' is the path to a downloads folder.
# An empty value means the code will find the default downloads folder for your system.
# If the path does not exist it will be created.
# Note the use of single quotes, so that backslashes will not be escaped.
downloads = ''
# Max size for displayable content in bytes - after that size a download window pops up
page_max_size = 2097152 # 2 MiB
# Max time it takes to load a page in seconds - after that a download window pops up
page_max_time = 10
# Whether to replace tab numbers with emoji favicons, which are cached.
emoji_favicons = false
[auth]
# Authentication settings
# Note the use of single quotes for values, so that backslashes will not be escaped.
[auth.certs]
# Client certificates
# Set domain name equal to path to client cert
# "example.com" = 'mycert.crt'
[auth.keys]
# Client certificate keys
# Set domain name equal to path to key for the client cert above
# "example.com" = 'mycert.key'
[keybindings]
# In the future there will be more settings here.
# Hold down shift and press the numbers on your keyboard (1,2,3,4,5,6,7,8,9,0) to set this up.
# It is default set to be accurate for US keyboards.
shift_numbers = "!@#$%^&*()"
[url-handlers]
# Allows setting the commands to run for various URL schemes.
# E.g. to open FTP URLs with FileZilla set the following key:
# ftp = 'filezilla'
# You can set any scheme to "off" or "" to disable handling it, or
# just leave the key unset.
#
# DO NOT use this for setting the HTTP command.
# Use the http setting in the "a-general" section above.
#
# NOTE: These settings are overrided by the ones in the proxies section.
# Note the use of single quotes, so that backslashes will not be escaped.
# This is a special key that defines the handler for all URL schemes for which
# no handler is defined.
other = 'off'
[cache]
# Options for page cache - which is only for text pages
# Increase the cache size to speed up browsing at the expense of memory
# Zero values mean there is no limit
max_size = 0 # Size in bytes
max_pages = 30 # The maximum number of pages the cache will store
# How long a page will stay in cache, in seconds.
timeout = 1800 # 30 mins
[proxies]
# Allows setting a Gemini proxy for different schemes.
# The settings are similar to the url-handlers section above.
# E.g. to open a gopher page by connecting to a Gemini proxy server:
# gopher = "example.com:123"
#
# Port 1965 is assumed if no port is specified.
#
# NOTE: These settings override any external handlers specified in
# the url-handlers section.
#
# Note that HTTP and HTTPS are treated as separate protocols here.
[subscriptions]
# For tracking feeds and pages
# Whether a pop-up appears when viewing a potential feed
popup = true
# How often to check for updates to subscriptions in the background, in seconds.
# Set it to 0 to disable this feature. You can still update individual feeds
# manually, or restart the browser.
#
# Note Amfora will check for updates on browser start no matter what this setting is.
update_interval = 1800 # 30 mins
# How many subscriptions can be checked at the same time when updating.
# If you have many subscriptions you may want to increase this for faster
# update times. Any value below 1 will be corrected to 1.
workers = 3
# The number of subscription updates displayed per page.
entries_per_page = 20
[theme]
# This section is for changing the COLORS used in Amfora.
# These colors only apply if 'color' is enabled above.
# Colors can be set using a W3C color name, or a hex value such as "#ffffff".
# Note that not all colors will work on terminals that do not have truecolor support.
# If you want to stick to the standard 16 or 256 colors, you can get
# a list of those here: https://jonasjacek.github.io/colors/
# DO NOT use the names from that site, just the hex codes.
# Definitions:
# bg = background
# fg = foreground
# dl = download
# btn = button
# hdg = heading
# bkmk = bookmark
# modal = a popup window/box in the middle of the screen
# EXAMPLES:
# hdg_1 = "green"
# hdg_2 = "#5f0000"
# Available keys to set:
# bg: background for pages, tab row, app in general
# tab_num: The number/highlight of the tabs at the top
# tab_divider: The color of the divider character between tab numbers: |
# bottombar_label: The color of the prompt that appears when you press space
# bottombar_text: The color of the text you type
# bottombar_bg
# hdg_1
# hdg_2
# hdg_3
# amfora_link: A link that Amfora supports viewing. For now this is only gemini://
# foreign_link: HTTP(S), Gopher, etc
# link_number: The silver number that appears to the left of a link
# regular_text: Normal gemini text, and plaintext documents
# quote_text
# preformatted_text
# list_text
# btn_bg: The bg color for all modal buttons
# btn_text: The text color for all modal buttons
# dl_choice_modal_bg
# dl_choice_modal_text
# dl_modal_bg
# dl_modal_text
# info_modal_bg
# info_modal_text
# error_modal_bg
# error_modal_text
# yesno_modal_bg
# yesno_modal_text
# tofu_modal_bg
# tofu_modal_text
# subscription_modal_bg
# subscription_modal_text
# input_modal_bg
# input_modal_text
# input_modal_field_bg: The bg of the input field, where you type the text
# input_modal_field_text: The color of the text you type
# bkmk_modal_bg
# bkmk_modal_text
# bkmk_modal_label
# bkmk_modal_field_bg
# bkmk_modal_field_text

18
amfora/newtab.gmi Normal file
View File

@ -0,0 +1,18 @@
```
_____
_____ _____ _/ ____\ ____ _______ _____
\__ \ / \ \ __\ / _ \ \_ __ \ \__ \
/ __ \_ | Y Y \ | | ( (_) ) | | \/ / __ \_
(____ / |__|_| / |__| \____/ |__| (____ /
\/ \/ \/
```
Regularly visted gemlogs and capsules:
=> gemini://gemini.circumlunar.space Project Gemini Home
=> gemini://rawtext.club Rawtext Club
=> gemini://gemini.techrights.org Techrights
=> gemini://cadence.moe/ cadence moe
=> gemini://gemini.circumlunar.space/~solderpunk/gemlog/ solderpunk
=> gemini://idiomdrottning.org idiomdrottning
=> gemini://gemini.circumlunar.space/~iolfree/ iolfree

View File

@ -1,16 +1,3 @@
------------------------------------------------------
-- Simple and well documented rc.lua for newbs --
-- --
-- Copyright (C) 2020 Anonyeah Punday --
------------------------------------------------------
----x Licence - GPL v3.0 x----
-- This configuration file is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, see <http://www.gnu.org/licenses/>. --
----x End Licence x----
----x Importing libraries x----
pcall(require, "luarocks.loader")
@ -62,17 +49,17 @@ end
----x Defining Variables x----
-- Theme file --
beautiful.init("/home/ayn/.config/awesome/theme.lua")
beautiful.init("/home/user/.config/awesome/theme.lua")
-- Frequently used apps --
utox = "utox"
terminal = "st"
scrot = "scrot"
mumble = "mumble"
dmenu = "dmenu_run"
leafpad = "leafpad"
browser = "librewolf"
torrent = "transmission-qt"
torrent = "torrential"
tor = "torbrowser-launcher"
nnn = terminal .. " -e nnn"
cmus = terminal .. " -e cmus"
@ -89,7 +76,6 @@ modkey = "Mod4"
----x End Defining Variables x----
----x Layouts x----
awful.layout.layouts = {
@ -289,12 +275,14 @@ globalkeys = gears.table.join(
{description = "Launch librewolf", group = "Applications"}),
awful.key({ modkey, }, "e", function () awful.spawn(amfora) end,
{description = "Launch amfora", group = "Applications"}),
awful.key({ modkey, }, "g", function () awful.spawn(mumble) end,
{description = "Launch mumble", group = "Applications"}),
awful.key({ modkey, }, "m", function () awful.spawn(cmus) end,
{description = "Launch cmus", group = "Applications"}),
awful.key({ modkey, }, "n", function () awful.spawn(torrent) end,
{description = "Launch transmission", group = "Applications"}),
awful.key({ modkey, }, "u", function () awful.spawn(mumble) end,
{description = "Launch mumble", group = "Applications"}),
{description = "Launch torrential", group = "Applications"}),
awful.key({ modkey, }, "r", function () awful.spawn(dmenu) end,
{description = "Launch dmenu", group = "Applications"}),
awful.key({ modkey, }, "v", function () awful.spawn(newsboat) end,
{description = "Launch newsboat", group = "Applications"}),
awful.key({ modkey, }, "w", function () awful.spawn(tor) end,
@ -353,8 +341,8 @@ globalkeys = gears.table.join(
{description = "restore minimized", group = "client"}),
-- Prompt
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}),
-- awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
-- {description = "run prompt", group = "launcher"}),
-- awful.key({ modkey }, "x",
-- function ()
@ -586,8 +574,7 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
-- For making the trackpad work normally --
-- NOTE: Requires xinput and libinput packages to be installed --
-- Replace "DELL.." with the name of your trackpad --
awful.spawn.with_shell([[xinput --set-prop "DELL0767:00 06CB:7E92 Touchpad" "libinput Tapping Enabled" 1 && xinput --set-prop "DELL0767:00 06CB:7E92 Touchpad" "libinput Natural Scrolling Enabled" 1]])
awful.spawn.with_shell([[xbacklight -set 5]])
awful.spawn.with_shell([[redshift -PO 3500]])
----x End Autostart x----

View File

@ -16,15 +16,15 @@ local dpi = require("beautiful.xresources").apply_dpi
-- {{{ Main
local theme = {}
theme.wallpaper = "/home/user/.config/awesome/wallpaper.jpg"
theme.wallpaper = "/home/user/.config/awesome/wall.jpg"
-- }}}
-- {{{ Styles
theme.font = "Liberation Mono 14"
theme.font = "Monospace Bold 20"
-- {{{ Colors
theme.fg_normal = "#F7F7F7"
theme.fg_focus = "#00FF00"
theme.fg_focus = "#D21242"
theme.fg_urgent = "#000000"
theme.fg_minimize = "#FFFFFF"
theme.bg_normal = "#171717"
@ -38,7 +38,7 @@ theme.bg_systray = theme.bg_normal
theme.useless_gap = dpi(4)
theme.border_width = dpi(2)
theme.border_normal = "#C5C5C5"
theme.border_focus = "#66ff66"
theme.border_focus = "#D21242"
theme.border_marked = "#CC9393"
-- }}}

7
bashrc
View File

@ -1,9 +1,4 @@
# -- Simple and well documented .bashrc for newbs -- #
# -- -- #
# -- Copyright (C) 2020 Anonyeah Punday -- #
# -- -- #
# ----x Licence - GPL v3.0 x---- #
# Basics
[[ $- != *i* ]] && return #bash does nothing when not running interactively
set +o history #turn history off

18
gtkrc-2.0 Normal file
View File

@ -0,0 +1,18 @@
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/user/.gtkrc-2.0.mine"
gtk-theme-name="Kripton"
gtk-icon-theme-name="breeze-dark"
gtk-font-name="Monospace Bold 16"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_ICONS
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintfull"

View File

@ -3,7 +3,7 @@
max-items 75
confirm-exit yes
browser librewolf
refresh-on-startup yes
refresh-on-startup no
confirm-mark-feed-read no
cache-file "~/.cache/newsboat/cache.db"
@ -31,17 +31,17 @@ color listnormal default default
color listnormal_unread magenta default bold
color listfocus red default
color listfocus_unread red default bold
color info white blue bold
color info white black bold
# Highlighting
highlight all "---.*---" green
highlight all "---.*---" white
highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold
highlight article "(^Link:.*|^Date:.*)" default default
highlight article "https?://[^ ]+" green default
highlight article "^(Title):.*$" blue default
highlight article "\\[[0-9][0-9]*\\]" magenta default bold
highlight article "\\[[0-9][0-9]*\\]" red default bold
highlight article "\\[image\\ [0-9]+\\]" green default bold
highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold
highlight article ":.*\\(link\\)$" cyan default

3
vimrc
View File

@ -4,4 +4,7 @@ colo inkpot
set fillchars+=vert:!
set complete+=kspell
autocmd bufreadpre *.md set textwidth=60
autocmd bufreadpre *.txt set textwidth=60
autocmd BufRead,BufNewFile *.md set spell spelllang=en_gb
autocmd BufRead,BufNewFile *.gmi set spell spelllang=en_gb
autocmd BufRead,BufNewFile *.txt set spell spelllang=en_gb