mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Compare commits
6 Commits
fe777d181e
...
6e720c0c08
Author | SHA1 | Date | |
---|---|---|---|
6e720c0c08 | |||
6f597ecb83 | |||
c817068114 | |||
b028b1d815 | |||
5466f5e70d | |||
7f4b2eac42 |
@ -39,14 +39,16 @@ A repository of my personal configuration files.
|
||||
- [[https://github.com/baskerville/bspwm][bspwm]]
|
||||
- [[https://github.com/caffeine-ng/caffeine-ng][caffeine-ng]]
|
||||
- [[https://the.exa.website/][exa]]
|
||||
- [[https://fishshell.com/][fish]]
|
||||
- [[https://github.com/junegunn/fzf][fzf]]
|
||||
- [[https://git-scm.com/][git]]
|
||||
- [[https://github.com/cylgom/ly][Ly]]
|
||||
- [[https://github.com/internalfx/mailcap][mailcap]]
|
||||
- [[https://mpv.io/][mpv]]
|
||||
- [[https://github.com/dylanaraps/pfetch][pfetch]]
|
||||
- [[https://github.com/dylanaraps/pywal][pywal]]
|
||||
- [[http://www.gnu.org/software/stow/][stow]]
|
||||
- [[https://www.python.org/][Python]]
|
||||
- [[https://fishshell.com/][fish]]
|
||||
- [[https://github.com/baskerville/sxhkd][sxhkd]]
|
||||
- [[https://github.com/stoeckmann/xwallpaper][xwallpaper]]
|
||||
** LSP Backends
|
||||
@ -62,6 +64,7 @@ A repository of my personal configuration files.
|
||||
* Configured Applications
|
||||
- [[https://github.com/alacritty/][alacritty]]
|
||||
- [[https://github.com/baskerville/bspwm][bspwm]]
|
||||
- [[https://github.com/xgi/castero][castero]]
|
||||
- [[https://github.com/hlissner/doom-emacs][Doom Emacs]]
|
||||
- [[https://firejail.wordpress.com/][firejail]]
|
||||
- [[https://fishshell.com/][fish]]
|
||||
@ -78,6 +81,7 @@ A repository of my personal configuration files.
|
||||
- [[http://jonls.dk/redshift/][redshift]]
|
||||
- [[https://github.com/baskerville/sxhkd][sxhkd]]
|
||||
- [[https://tmux.github.io/][tmux]]
|
||||
- [[https://gitlab.com/ajak/tuir][tuir]]
|
||||
- [[https://vifm.info/][vifm]]
|
||||
- [[https://weechat.org/][weechat]]
|
||||
|
||||
|
@ -40,7 +40,6 @@ bspc config gapless_monocle true
|
||||
|
||||
bspc rule -a "Syncthing GTK" state=floating
|
||||
bspc rule -a Gimp state=floating
|
||||
bspc rule -a Gpodder desktop='^4'
|
||||
bspc rule -a Spotify desktop='^4'
|
||||
bspc rule -a Spt desktop='^4'
|
||||
bspc rule -a Emacs state=tiled
|
||||
@ -79,7 +78,6 @@ start_if_not_running pasystray
|
||||
start_if_not_running redshift-gtk
|
||||
start_if_not_running syncthing-gtk
|
||||
start_if_not_running caffeine
|
||||
start_if_not_running gpodder
|
||||
start_if_not_running brave
|
||||
pkill -f spt
|
||||
alacritty --class Spt,Spt -e ~/.local/bin/spotify-command-line &
|
||||
|
4
bspwm/.xinitrc
Normal file → Executable file
4
bspwm/.xinitrc
Normal file → Executable file
@ -1,4 +1,6 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
setxkbmap -option caps:escape
|
||||
xrdb -merge -I$HOME ~/.Xresources
|
||||
|
||||
xec bspwm
|
||||
exec bspwm
|
||||
|
256
castero/.config/castero/castero.conf
Normal file
256
castero/.config/castero/castero.conf
Normal file
@ -0,0 +1,256 @@
|
||||
# castero configuration file
|
||||
# https://github.com/xgi/castero
|
||||
|
||||
|
||||
[client]
|
||||
# Whether to ask for confirmation before deleting a feed.
|
||||
# default: False
|
||||
delete_feed_confirmation = False
|
||||
|
||||
# The minimum number of feeds before the client asks you for confirmation
|
||||
# after pressing the reload key.
|
||||
# default: 10
|
||||
reload_feeds_threshold = 10
|
||||
|
||||
# The maximum number of episodes to retain per feed. Set to -1 for no limit.
|
||||
# default: -1
|
||||
max_episodes = -1
|
||||
|
||||
# Whether to keep episodes in the client even if they are no longer present on
|
||||
# the feed (i.e. the RSS feed only shows the x most recent episodes).
|
||||
# default: False
|
||||
retain_absent_episodes = False
|
||||
|
||||
# Hide vertical borders between menus.
|
||||
# default: False
|
||||
disable_vertical_borders = False
|
||||
|
||||
# Whether to remove HTML tags from feed/episode descriptions.
|
||||
# default: True
|
||||
clean_html_descriptions = True
|
||||
|
||||
# Whether to right-align the current episode time/duration.
|
||||
# default: False
|
||||
right_align_time = False
|
||||
|
||||
# The display refresh delay, in ms. Lower for better responsiveness but higher
|
||||
# CPU usage.
|
||||
# default: 70
|
||||
refresh_delay = 70
|
||||
|
||||
# The external player to use for media playback.
|
||||
# If the given player is not valid or a dependency is not met, the client will
|
||||
# instead try to use the first valid interface.
|
||||
# Available players (in order of precedence):
|
||||
# mpv, vlc
|
||||
# default: (blank)
|
||||
player =
|
||||
|
||||
# The command to run when you press key_execute (default e). All instances of
|
||||
# the following tokens are replaced with the corresponding episode attributes:
|
||||
# {file} - the episode enclosure, usually a remote mp3 file
|
||||
# {title} - the episode name
|
||||
# {description} - the episode description
|
||||
# {link} - the link to the episode, which is often a blog post
|
||||
# {pubdate} - the publish date/time of the episode
|
||||
# {copyright} - the copyright of the episode
|
||||
# Most of these attributes have spaces, so you will probably want to enclose
|
||||
# the token with quotations.
|
||||
# For example, `firefox "{file}"` would open the file in Firefox.
|
||||
# The client executes the text you enter as a shell command. Use with caution!
|
||||
# default: (blank)
|
||||
execute_command =
|
||||
|
||||
|
||||
[feeds]
|
||||
# Whether to reload/refresh your feeds when the client starts. Depending on how
|
||||
# many feeds you have, this operation may take a long time.
|
||||
# default: False
|
||||
reload_on_start = False
|
||||
|
||||
|
||||
[downloads]
|
||||
# The (absolute) location to save episodes downloaded for offline playback. Set
|
||||
# to blank or whitespaces to disable -- the client will default to either
|
||||
# $XDG_DATA_DIR, if set, otherwise ~/.local/share/castero/downloaded
|
||||
# default: (blank)
|
||||
custom_download_dir =
|
||||
|
||||
# The timeout for network requests, in seconds. The same value is used for
|
||||
# connection and read timeouts.
|
||||
# default: 3
|
||||
request_timeout = 3
|
||||
|
||||
|
||||
[colors]
|
||||
# Available colors for all fields are:
|
||||
# black, blue, cyan, green, magenta, red, white, yellow, transparent (background),
|
||||
# integer from -1 to 255 if terminal supports 256 colors
|
||||
# NOTE: Background transparency only works on compatible terminals with compositing
|
||||
|
||||
# The foreground (text) color of the main interface.
|
||||
# default: yellow
|
||||
color_foreground = yellow
|
||||
|
||||
# The background color of the main interface.
|
||||
# default: black
|
||||
color_background = black
|
||||
|
||||
# The foreground (text) color of selected items.
|
||||
# default: black
|
||||
color_foreground_alt = black
|
||||
|
||||
# The background color of selected items.
|
||||
# default: white
|
||||
color_background_alt = white
|
||||
|
||||
# The foreground (text) color of marked items. Paired with color_background.
|
||||
# default: green
|
||||
color_foreground_dim = green
|
||||
|
||||
# The foreground (text) color of status lines. Paired with color_background.
|
||||
# default: white
|
||||
color_foreground_status = white
|
||||
|
||||
# The foreground (text) color of menu headings. Paired with color_background.
|
||||
# default: yellow
|
||||
color_foreground_heading = yellow
|
||||
|
||||
# The foreground (text) color of dividers. Paired with color_background.
|
||||
# default: white
|
||||
color_foreground_dividers = white
|
||||
|
||||
[playback]
|
||||
# The distance to move forward when pressing seek keys, in seconds.
|
||||
# default: 30
|
||||
seek_distance_forward = 30
|
||||
|
||||
# The distance to move backward when pressing seek keys, in seconds.
|
||||
# default: 10
|
||||
seek_distance_backward = 10
|
||||
|
||||
# The default playback speed. See also the rate_increase/rate_decrease keys.
|
||||
# default: 1.0
|
||||
default_playback_speed = 1.0
|
||||
|
||||
|
||||
[keys]
|
||||
# Keybindings for controlling the client. Entries may not be blank, but may
|
||||
# overlap -- however, only one operation will be performed for each key press.
|
||||
# Please see this page for a list of available key names:
|
||||
# https://docs.python.org/3/library/curses.html#constants
|
||||
|
||||
# Show the help menu.
|
||||
# default: h
|
||||
key_help = ?
|
||||
|
||||
# Exit the client
|
||||
# default: q
|
||||
key_exit = q
|
||||
|
||||
# Add a feed.
|
||||
# default: a
|
||||
key_add_feed = a
|
||||
|
||||
# Delete the selected feed.
|
||||
# default: d
|
||||
key_delete = d
|
||||
|
||||
# Reload/refresh feeds.
|
||||
# default: r
|
||||
key_reload = r
|
||||
|
||||
# Save episode for offline playback.
|
||||
# default: s
|
||||
key_save = s
|
||||
|
||||
# Navigate up.
|
||||
# default: UP
|
||||
key_up = k
|
||||
|
||||
# Navigate right.
|
||||
# default: RIGHT
|
||||
key_right = l
|
||||
|
||||
# Navigate down.
|
||||
# default: DOWN
|
||||
key_down = j
|
||||
|
||||
# Navigate left.
|
||||
# default: LEFT
|
||||
key_left = h
|
||||
|
||||
# Scroll menu up.
|
||||
# default: PPAGE
|
||||
key_scroll_up = PPAGE
|
||||
|
||||
# Scroll menu down.
|
||||
# default: NPAGE
|
||||
key_scroll_down = NPAGE
|
||||
|
||||
# Play selected feed/episode.
|
||||
# default: ENTER
|
||||
key_play_selected = ENTER
|
||||
|
||||
# Add selected feed/episode to queue.
|
||||
# default: SPACE
|
||||
key_add_selected = SPACE
|
||||
|
||||
# Clear the queue.
|
||||
# default: c
|
||||
key_clear = c
|
||||
|
||||
# Go to the next episode in the queue.
|
||||
# default: n
|
||||
key_next = n
|
||||
|
||||
# Execute a command on the selected episode. See also execute_command.
|
||||
key_execute = e
|
||||
|
||||
# Invert the order of the menu.
|
||||
# default: i
|
||||
key_invert = i
|
||||
|
||||
# Filter the contents of the menu. Press again to clear the filter.
|
||||
# default: /
|
||||
key_filter = /
|
||||
|
||||
# Mark the episode as played/unplayed.
|
||||
# default: i
|
||||
key_mark_played = m
|
||||
|
||||
# Pause/play the current episode.
|
||||
# default: p
|
||||
key_pause_play = p
|
||||
|
||||
# Alternate binding for key_pause_play -- make identical to disable.
|
||||
# default: k
|
||||
key_pause_play_alt = k
|
||||
|
||||
# Seek forward.
|
||||
# default: f
|
||||
key_seek_forward = f
|
||||
|
||||
# Alternate binding for key_seek_forward -- make identical to disable.
|
||||
# default: l
|
||||
key_seek_forward_alt = >
|
||||
|
||||
# Seek backward.
|
||||
# default: b
|
||||
key_seek_backward = b
|
||||
|
||||
# Alternate binding for key_seek_backward -- make identical to disable.
|
||||
# default: j
|
||||
key_seek_backward_alt = <
|
||||
|
||||
# Increase playback speed.
|
||||
# default: ]
|
||||
key_rate_increase = ]
|
||||
|
||||
# Decrease playback speed.
|
||||
# default: [
|
||||
key_rate_decrease = [
|
||||
|
||||
# Show episode URL.
|
||||
# default: u
|
||||
key_show_url = u
|
@ -2,9 +2,9 @@
|
||||
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||
|
||||
include "/home/alrayyes/.gtkrc-2.0.mine"
|
||||
gtk-theme-name="OSX-Arc-Shadow"
|
||||
gtk-icon-theme-name="Arc"
|
||||
gtk-font-name="Cantarell 11"
|
||||
gtk-theme-name="Adwaita-dark"
|
||||
gtk-icon-theme-name="Papirus-Dark"
|
||||
gtk-font-name="Cantarell Thin 11"
|
||||
gtk-cursor-theme-name="Adwaita"
|
||||
gtk-cursor-theme-size=0
|
||||
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
||||
|
@ -48,7 +48,7 @@ monitor = ${env:MONITOR:eDP1}
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = battery0 battery1 wlan bluetooth
|
||||
modules-right = xbacklight volume memory cpu temperature filesystem docker updates-arch-combined mail rss github date
|
||||
modules-right = xbacklight volume memory cpu temperature filesystem docker updates-arch-combined mail reddit github rss date
|
||||
|
||||
tray-position = right
|
||||
|
||||
@ -58,7 +58,7 @@ monitor = ${env:MONITOR:DP-1}
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center = player-mpris-tail
|
||||
modules-right = eth bluetooth volume memory cpu temperature filesystem docker updates-arch-combined mail rss github date
|
||||
modules-right = eth bluetooth volume memory cpu temperature filesystem docker updates-arch-combined mail reddit github rss date
|
||||
|
||||
tray-position = right
|
||||
|
||||
@ -424,6 +424,13 @@ type = custom/script
|
||||
exec = ~/.config/polybar/bin/dockerstatus
|
||||
label = %output%
|
||||
|
||||
[module/reddit]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/bin/notification-reddit.sh
|
||||
interval = 300
|
||||
label = %output%
|
||||
click-left = brave https://www.reddit.com/message/unread
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
|
10
tuir/.local/bin/sxiveh
Executable file
10
tuir/.local/bin/sxiveh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
case $@ in
|
||||
http*://*)
|
||||
curl -o sxivimage -s "$@"
|
||||
sxiv sxivimage
|
||||
rm sxivimage
|
||||
;;
|
||||
*) sxiv "$@" ;;
|
||||
esac
|
71
tuir/.mailcap
Normal file
71
tuir/.mailcap
Normal file
@ -0,0 +1,71 @@
|
||||
# Example mailcap file for Terminal UI for Reddit
|
||||
# https://gitlab.com/ajak/tuir/
|
||||
#
|
||||
# Copy the contents of this file to {HOME}/.mailcap, or point to it using $MAILCAPS
|
||||
# Then launch TUIR using the --enable-media flag. All shell commands defined in
|
||||
# this file depend on external programs that must be installed on your system.
|
||||
#
|
||||
# HELP REQUESTED! If you come up with your own commands (especially for OS X)
|
||||
# and would like to share, please post an issue on the GitHub tracker and we
|
||||
# can get them added to this file as references.
|
||||
#
|
||||
#
|
||||
# Mailcap 101
|
||||
# - The first entry with a matching MIME type will be executed, * is a wildcard
|
||||
# - %s will be replaced with the image or video url
|
||||
# - Add ``test=test -n "$DISPLAY"`` if your command opens a new window
|
||||
# - Add ``needsterminal`` for commands that use the terminal
|
||||
# - Add ``copiousoutput`` for commands that dump text to stdout
|
||||
|
||||
###############################################################################
|
||||
# Commands below this point will open media in a separate window without
|
||||
# pausing execution of TUIR.
|
||||
###############################################################################
|
||||
|
||||
# Feh is a simple and effective image viewer
|
||||
# Note that tuir returns a list of urls for imgur albums, so we don't put quotes
|
||||
# around the `%s`
|
||||
# image/x-imgur-album; feh -g 640x480 -. %s; test=test -n "$DISPLAY"
|
||||
image/gif; mpv '%s' --loop=inf; test=test -n "$DISPLAY"
|
||||
# image/*; feh -g 640x480 -. '%s'; test=test -n "$DISPLAY"
|
||||
image/*; sxiveh '%s'; test=test -n "$DISPLAY"
|
||||
|
||||
# Youtube videos are assigned a custom mime-type, which can be streamed with
|
||||
# vlc or youtube-dl.
|
||||
# video/x-youtube; vlc '%s' --width 640 --height 480; test=test -n "$DISPLAY"
|
||||
video/x-youtube; mpv '%s'; test=test -n "$DISPLAY"
|
||||
|
||||
# Mpv is a simple and effective video streamer
|
||||
video/*; mpv '%s' --loop=inf; test=test -n "$DISPLAY"
|
||||
|
||||
###############################################################################
|
||||
# Commands below this point will attempt to display media directly in the
|
||||
# terminal when a desktop is not available (e.g. inside of an SSH session)
|
||||
###############################################################################
|
||||
|
||||
# View images directly in your terminal with iTerm2
|
||||
# curl -L https://iterm2.com/misc/install_shell_integration_and_utilities.sh | bash
|
||||
# image/*; bash -c '[[ "%s" == http* ]] && (curl -s %s | ~/.iterm2/imgcat) || ~/.iterm2/imgcat %s' && read -n 1; needsterminal
|
||||
|
||||
# View true images in the terminal, supported by rxvt-unicode, xterm and st
|
||||
# Requires the w3m-img package
|
||||
# image/*; w3m -o 'ext_image_viewer=off' '%s'; needsterminal
|
||||
|
||||
# Don't have a solution for albums yet
|
||||
image/x-imgur-album; echo
|
||||
|
||||
# 256 color images using half-width unicode characters
|
||||
# Much higher quality that img2txt, but must be built from source
|
||||
# https://github.com/rossy/img2xterm
|
||||
image/*; curl -s '%s' | convert -resize 80x80 - jpg:/tmp/tuir.jpg && img2xterm /tmp/tuir.jpg; needsterminal; copiousoutput
|
||||
|
||||
# Display images in classic ascii using img2txt and lib-caca
|
||||
image/*; curl -s '%s' | convert - jpg:/tmp/tuir.jpg && img2txt -f utf8 /tmp/tuir.jpg; needsterminal; copiousoutput
|
||||
|
||||
# Full motion videos - requires a framebuffer to view
|
||||
video/x-youtube; mpv -vo drm -quiet '%s'; needsterminal
|
||||
video/*; mpv -vo drm -quiet '%s'; needsterminal
|
||||
|
||||
# Ascii videos
|
||||
# video/x-youtube; youtube-dl -q -o - '%s' | mplayer -cache 8192 -vo caca -quiet -; needsterminal
|
||||
# video/*; wget '%s' -O - | mplayer -cache 8192 -vo caca -quiet -; needsterminal
|
Loading…
Reference in New Issue
Block a user