Compare commits
70 Commits
b0f485d51d
...
trisquel_o
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
59f815002f | ||
|
|
db517a0759 | ||
|
|
b382e491b8 | ||
|
|
5492a527c0 | ||
|
|
c6ef708071 | ||
|
|
0f063a4e58 | ||
|
|
a8e907de50 | ||
|
|
9b921046cf | ||
| 327d13992e | |||
| 19e1e133e3 | |||
| c7fe0235bf | |||
| dab8e342aa | |||
| 897490b10b | |||
| cb2490baae | |||
| 7c9c25f09d | |||
| 064d6f6a3b | |||
| 64d731775f | |||
| 943ad74f4a | |||
| 2f4b1b8fed | |||
| a4484f61e7 | |||
| 11deb87570 | |||
| fe4cf2905a | |||
| ebf47c763d | |||
| 1c284fc34b | |||
| 8bfb4d86bf | |||
| ba5e462587 | |||
| 304d81bf4b | |||
| d1f2ecbc14 | |||
| 23d686908d | |||
| e9c0ca90a6 | |||
| 24737b5d6e | |||
| 53917e3ddb | |||
| 753ef8d1e6 | |||
| dd4c7872ef | |||
| efd2a556e3 | |||
| 59b7021575 | |||
| 68c8455073 | |||
| c19dbb03d1 | |||
| f16409f465 | |||
| 32ae4a17ae | |||
| 109f484936 | |||
| c2fe5c9811 | |||
| bb5c4b5c06 | |||
| b1d7aa9cb1 | |||
| ad07d9272e | |||
| 0472c796b2 | |||
| 363a8d0440 | |||
| 2119392270 | |||
| 397bb5aed9 | |||
| 6f15c86181 | |||
| 31cc007c70 | |||
| 9f2cfa3849 | |||
| e1ff44b590 | |||
| f49d81c912 | |||
| 8042eacbc0 | |||
| 786661b08e | |||
| 53ccea9dec | |||
|
|
1080aa0e88 | ||
|
|
d1b4d55854 | ||
|
|
45add07ce1 | ||
|
|
a44bab4040 | ||
|
|
9aa74fc5cc | ||
|
|
9a038c970d | ||
|
|
636423b8a6 | ||
|
|
758b1dca78 | ||
|
|
c8d671eaff | ||
|
|
f5cbaf2c30 | ||
|
|
108349b074 | ||
|
|
973fda02ae | ||
|
|
58d3a10ac4 |
26
.bash_env
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Environment exports
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export XDG_CONFIG_HOME=~/.config
|
||||
export XDG_CACHE_HOME=~/.cache
|
||||
export XDG_DATA_HOME=~/.local/share
|
||||
export BROWSER=/usr/bin/firefox
|
||||
export VISUAL=emacsclient
|
||||
export EDITOR=emacsclient
|
||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
export DESKTOP_SESSION=sway
|
||||
|
||||
# Scripts Path
|
||||
PATH=$PATH:~/.local/bin
|
||||
PATH=$PATH:~/bin
|
||||
|
||||
# Doom Path
|
||||
PATH=$PATH:~/.config/emacs/bin/
|
||||
|
||||
# Flatpak path
|
||||
PATH=$PATH:/var/lib/flatpak/exports/bin
|
||||
PATH=$PATH:/var/lib/flatpak/app
|
||||
|
||||
# Guile Load Path
|
||||
export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
|
||||
@@ -1,13 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export XDG_CONFIG_HOME=~/.config
|
||||
export XDG_CACHE_HOME=~/.cache
|
||||
export XDG_DATA_HOME=~/.local/share
|
||||
export BROWSER=/usr/bin/firefox-esr
|
||||
export VISUAL=vim
|
||||
export EDITOR=vim
|
||||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
export DESKTOP_SESSION=sway
|
||||
export XDG_CURRENT_DESKTOP=KDE
|
||||
[ "$(tty)" = "/dev/tty1" ] && exec sway
|
||||
if [ -f ~/.bash_env ]; then
|
||||
. "$HOME"/.bash_env
|
||||
fi
|
||||
|
||||
# [ "$(tty)" = "/dev/tty1" ] && exec sway
|
||||
|
||||
308
.bashrc
@@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
iatest=$(expr index "$-" i)
|
||||
#!/bin/sh
|
||||
|
||||
export TERM=xterm-256color
|
||||
|
||||
#If not running interactively, don't do anything
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
#Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
@@ -9,10 +13,11 @@ fi
|
||||
#Enable bash programmable completion features in interactive shells
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
|
||||
if [ -f ~/.bash_env ]; then
|
||||
. "$HOME"/.bash_env
|
||||
fi
|
||||
|
||||
#######################################################
|
||||
# EXPORTS
|
||||
@@ -30,27 +35,13 @@ shopt -s checkwinsize
|
||||
|
||||
# Causes bash to append to history instead of overwriting it so if you start a new terminal, you have old session history
|
||||
shopt -s histappend
|
||||
PROMPT_COMMAND='history -a'
|
||||
|
||||
# Allow ctrl-S for history navigation (with ctrl-R)
|
||||
stty -ixon
|
||||
|
||||
# Ignore case on auto-completion
|
||||
# Note: bind used instead of sticking these in .inputrc
|
||||
if [[ $iatest > 0 ]]; then bind "set completion-ignore-case on"; fi
|
||||
|
||||
# Show auto-completion list automatically, without double tab
|
||||
if [[ $iatest > 0 ]]; then bind "set show-all-if-ambiguous On"; fi
|
||||
|
||||
# Set the default editor
|
||||
export EDITOR=vim
|
||||
export VISUAL=vim
|
||||
|
||||
# To have colors for ls and all grep commands such as grep, egrep and zgrep
|
||||
export CLICOLOR=1
|
||||
export LS_COLORS='no=00:fi=00:di=00;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:*.xml=00;31:'
|
||||
alias grep="/usr/bin/grep $GREP_OPTIONS"
|
||||
unset GREP_OPTIONS
|
||||
|
||||
# Color for manpages in less makes manpages a little easier to read
|
||||
export LESS_TERMCAP_mb=$'\E[01;31m'
|
||||
@@ -60,22 +51,21 @@ export LESS_TERMCAP_se=$'\E[0m'
|
||||
export LESS_TERMCAP_so=$'\E[01;44;33m'
|
||||
export LESS_TERMCAP_ue=$'\E[0m'
|
||||
export LESS_TERMCAP_us=$'\E[01;32m'
|
||||
export LC_WHO=rorlando
|
||||
|
||||
# Scripts Path
|
||||
PATH=$PATH:~/code/scripts
|
||||
PATH=$PATH:~/.local/bin
|
||||
PATH=$PATH:~/bin
|
||||
#######################################################
|
||||
# GOPASS
|
||||
#######################################################
|
||||
|
||||
# Doom Path
|
||||
PATH=$PATH:~/.config/emacs/bin/
|
||||
# Ensure gopass autocompletion is sourced
|
||||
#source <(gopass completion bash)
|
||||
|
||||
# Flatpak path
|
||||
PATH=$PATH:/var/lib/flatpak/exports/bin
|
||||
PATH=$PATH:/var/lib/flatpak/app
|
||||
# Gopass aliases
|
||||
alias gpi='gopass insert --multiline'
|
||||
alias gpl='gopass ls'
|
||||
alias gps='gopass show'
|
||||
alias gpsclip='gopass show --clip'
|
||||
alias gpe='gopass edit'
|
||||
|
||||
# deadbeef path
|
||||
PATH=$PATH:/opt/deadbeef/bin
|
||||
|
||||
#######################################################
|
||||
# ALIAS
|
||||
@@ -83,20 +73,15 @@ PATH=$PATH:/opt/deadbeef/bin
|
||||
# To temporarily bypass an alias, we preceed the command with a \
|
||||
# EG: the ls command is aliased, but to use the normal ls command you would type \ls
|
||||
|
||||
# Pacman aliases
|
||||
alias install='sudo apt install'
|
||||
alias update='sudo apt update'
|
||||
alias update='sudo apt upgrade'
|
||||
alias uu='sudo apt update && sudo apt upgrade'
|
||||
alias search='apt search'
|
||||
alias remove='sudo apt remove'
|
||||
#alias v='nvim'
|
||||
#alias vim='nvim'
|
||||
#alias vi='nvim'
|
||||
|
||||
# Rsync push music to jellyfin
|
||||
alias music_hd_to_cleric="rsync -r -e 'ssh -p 46668' --info=progress2 /run/media/opal/e1f36c5c-4775-4549-8edc-1fa4d273b82e/music cleric:/data/media/"
|
||||
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
# APT
|
||||
alias ain='sudo apt install'
|
||||
alias are='sudo apt remove'
|
||||
alias aup='sudo apt update && sudo apt upgrade'
|
||||
alias ase='apt search'
|
||||
|
||||
# alias to show the date
|
||||
alias da='date "+%Y-%m-%d %A %T %Z"'
|
||||
@@ -123,37 +108,12 @@ alias .....='cd ../../../..'
|
||||
# cd into the old directory
|
||||
alias bd='cd "$OLDPWD"'
|
||||
|
||||
# Alias's for multiple directory listing commands
|
||||
alias ls='exa --icons'
|
||||
alias la='ls -Alh' # show hidden files
|
||||
#alias ls='ls -aFh --color=always' # add colors and file type extensions
|
||||
alias lx='ls -lXBh' # sort by extension
|
||||
alias lk='ls -lSrh' # sort by size
|
||||
alias lc='ls -lcrh' # sort by change time
|
||||
alias lu='ls -lurh' # sort by access time
|
||||
alias lr='ls -lRh' # recursive ls
|
||||
alias lt='ls -ltrh' # sort by date
|
||||
alias lm='ls -alh |more' # pipe through 'more'
|
||||
alias lw='ls -xAh' # wide listing format
|
||||
alias ll='ls -Fls' # long listing format
|
||||
alias labc='ls -lap' #alphabetical sort
|
||||
alias ldir="ls -l | egrep '^d'" # directories only
|
||||
|
||||
# Search command line history
|
||||
alias h="history | grep "
|
||||
|
||||
# Search files in the current folder
|
||||
alias f="find . | grep "
|
||||
|
||||
# Count all files (recursively) in the current folder
|
||||
alias countfiles="for t in files links directories; do echo \`find . -type \${t:0:1} | wc -l\` \$t; done 2> /dev/null"
|
||||
|
||||
# Show current network connections to the server
|
||||
alias ipview="netstat -anpl | grep :80 | awk {'print \$5'} | cut -d\":\" -f1 | sort | uniq -c | sort -n | sed -e 's/^ *//' -e 's/ *\$//'"
|
||||
|
||||
# Show open ports
|
||||
alias openports='netstat -nape --inet'
|
||||
|
||||
# Alias's to show disk space and space used in a folder
|
||||
alias diskspace="du -S | sort -n -r |more"
|
||||
alias folders='du -h --max-depth=1'
|
||||
@@ -170,208 +130,55 @@ alias untar='tar -xvf'
|
||||
alias unbz2='tar -xvjf'
|
||||
alias ungz='tar -xvzf'
|
||||
|
||||
# Show all logs in /var/log
|
||||
alias logs="sudo find /var/log -type f -exec file {} \; | grep 'text' | cut -d' ' -f1 | sed -e's/:$//g' | grep -v '[0-9]$' | xargs tail -f"
|
||||
# Wget (keeps hsts files out of $HOME)
|
||||
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
||||
|
||||
# SHA1
|
||||
alias sha1='openssl sha1'
|
||||
# Translate
|
||||
alias tbr='trans :pt-BR'
|
||||
|
||||
#######################################################
|
||||
# WORK
|
||||
#######################################################
|
||||
|
||||
# Wireguard
|
||||
alias wgup='sudo wg-quick up /etc/wireguard/wg0.conf'
|
||||
alias wgdown='sudo wg-quick down /etc/wireguard/wg0.conf'
|
||||
|
||||
# Hugo
|
||||
alias hss='hugo server --noHTTPCache'
|
||||
|
||||
# Work
|
||||
alias stork='ssh stork'
|
||||
alias mail='ssh mail'
|
||||
alias eel='ssh eel'
|
||||
# Keychain
|
||||
alias keys='eval $(keychain --eval --quiet ry_ecdsa) && eval $(keychain --eval --quiet id_rsa)'
|
||||
|
||||
# Wget (keeps hsts files out of $HOME)
|
||||
alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'
|
||||
|
||||
alias transbr='trans :pt-BR'
|
||||
|
||||
# #######################################################
|
||||
# # SPECIAL FUNCTIONS
|
||||
# #######################################################
|
||||
|
||||
# Searches for text in all files in the current folder
|
||||
ftext() {
|
||||
# -i case-insensitive
|
||||
# -I ignore binary files
|
||||
# -H causes filename to be printed
|
||||
# -r recursive search
|
||||
# -n causes line number to be printed
|
||||
# optional: -F treat search term as a literal, not a regular expression
|
||||
# optional: -l only print filenames and not the matching lines ex. grep -irl "$1" *
|
||||
grep -iIHrn --color=always "$1" . | less -r
|
||||
}
|
||||
|
||||
# Copy file with a progress bar
|
||||
cpp() {
|
||||
set -e
|
||||
strace -q -ewrite cp -- "${1}" "${2}" 2>&1 |
|
||||
awk '{
|
||||
count += $NF
|
||||
if (count % 10 == 0) {
|
||||
percent = count / total_size * 100
|
||||
printf "%3d%% [", percent
|
||||
for (i=0;i<=percent;i++)
|
||||
printf "="
|
||||
printf ">"
|
||||
for (i=percent;i<100;i++)
|
||||
printf " "
|
||||
printf "]\r"
|
||||
}
|
||||
}
|
||||
END { print "" }' total_size=$(stat -c '%s' "${1}") count=0
|
||||
}
|
||||
|
||||
# Copy and go to the directory
|
||||
cpg() {
|
||||
if [ -d "$2" ]; then
|
||||
cp $1 $2 && cd $2
|
||||
else
|
||||
cp $1 $2
|
||||
fi
|
||||
}
|
||||
|
||||
# Move and go to the directory
|
||||
mvg() {
|
||||
if [ -d "$2" ]; then
|
||||
mv $1 $2 && cd $2
|
||||
else
|
||||
mv $1 $2
|
||||
fi
|
||||
}
|
||||
#######################################################
|
||||
# SPECIAL FUNCTIONS
|
||||
#######################################################
|
||||
|
||||
# Create and go to the directory
|
||||
mkdirg() {
|
||||
mkdir -p $1
|
||||
cd $1
|
||||
mkdir -p "$1"
|
||||
cd "$1" || exit
|
||||
}
|
||||
|
||||
# Goes up a specified number of directories (i.e. up 4)
|
||||
up() {
|
||||
local d=""
|
||||
limit=$1
|
||||
for ((i = 1; i <= limit; i++)); do
|
||||
d=$d/..
|
||||
done
|
||||
d=$(echo $d | sed 's/^\///')
|
||||
if [ -z "$d" ]; then
|
||||
d=..
|
||||
fi
|
||||
cd $d
|
||||
}
|
||||
|
||||
# Show current network information
|
||||
netinfo() {
|
||||
echo "--------------- Network Information ---------------"
|
||||
/sbin/ifconfig | awk /'inet addr/ {print $2}'
|
||||
echo ""
|
||||
/sbin/ifconfig | awk /'Bcast/ {print $3}'
|
||||
echo ""
|
||||
/sbin/ifconfig | awk /'inet addr/ {print $4}'
|
||||
|
||||
/sbin/ifconfig | awk /'HWaddr/ {print $4,$5}'
|
||||
echo "---------------------------------------------------"
|
||||
}
|
||||
|
||||
# IP address lookup
|
||||
alias whatismyip="whatsmyip"
|
||||
function whatsmyip() {
|
||||
# Dumps a list of all IP addresses for every device
|
||||
# /sbin/ifconfig |grep -B1 "inet addr" |awk '{ if ( $1 == "inet" ) { print $2 } else if ( $2 == "Link" ) { printf "%s:" ,$1 } }' |awk -F: '{ print $1 ": " $3 }';
|
||||
|
||||
# Internal IP Lookup
|
||||
echo -n "Internal IP: "
|
||||
/sbin/ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}'
|
||||
|
||||
# External IP Lookup
|
||||
echo -n "External IP: "
|
||||
wget http://smart-ip.net/myip -O - -q
|
||||
}
|
||||
|
||||
# View Apache logs
|
||||
apachelog() {
|
||||
if [ -f /etc/httpd/conf/httpd.conf ]; then
|
||||
cd /var/log/httpd && ls -xAh && multitail --no-repeat -c -s 2 /var/log/httpd/*_log
|
||||
else
|
||||
cd /var/log/apache2 && ls -xAh && multitail --no-repeat -c -s 2 /var/log/apache2/*.log
|
||||
fi
|
||||
}
|
||||
|
||||
#######################################################
|
||||
# Prompt
|
||||
#######################################################
|
||||
|
||||
function __setprompt {
|
||||
|
||||
# Define colors
|
||||
local LIGHTGRAY="\033[0;37m"
|
||||
local WHITE="\033[1;37m"
|
||||
local BLACK="\033[0;30m"
|
||||
local DARKGRAY="\033[1;30m"
|
||||
local RED="\033[0;31m"
|
||||
local LIGHTRED="\033[1;31m"
|
||||
local GREEN="\033[0;32m"
|
||||
local LIGHTGREEN="\033[1;32m"
|
||||
local BROWN="\033[0;33m"
|
||||
local YELLOW="\033[1;33m"
|
||||
local BLUE="\033[0;34m"
|
||||
local LIGHTBLUE="\033[1;34m"
|
||||
local MAGENTA="\033[0;35m"
|
||||
local LIGHTMAGENTA="\033[1;35m"
|
||||
local CYAN="\033[0;36m"
|
||||
local LIGHTCYAN="\033[1;36m"
|
||||
local NOCOLOR="\033[0m"
|
||||
local PURPLE="\033[1;34m"
|
||||
|
||||
PS1=""
|
||||
# User and server
|
||||
local SSH_IP=$(echo $SSH_CLIENT | awk '{ print $1 }')
|
||||
local SSH2_IP=$(echo $SSH2_CLIENT | awk '{ print $1 }')
|
||||
if [ $SSH2_IP ] || [ $SSH_IP ]; then
|
||||
PS1+="(\[${PURPLE}\]\u@\h"
|
||||
else
|
||||
PS1+="(\[${PURPLE}\]\u"
|
||||
fi
|
||||
|
||||
# Current directory
|
||||
PS1+="\[${LIGHTGRAY}\]:\[${BROWN}\]\w\[${LIGHTGRAY}\])-"
|
||||
|
||||
# Total size of files in current directory
|
||||
PS1+="(\[${GREEN}\]$(/bin/ls -lah | /bin/grep -m 1 total | /bin/sed 's/total //')\[${LIGHTGRAY}\]:"
|
||||
|
||||
# Number of files
|
||||
PS1+="\[${GREEN}\]\$(/bin/ls -A -1 | /usr/bin/wc -l)\[${LIGHTGRAY}\])-"
|
||||
|
||||
# git branch
|
||||
PS1+="(\[${LIGHTGRAY}\]\$(git branch --show-current 2>/dev/null)\[${LIGHTGRAY}\])"
|
||||
|
||||
# Skip to the next line
|
||||
PS1+="\n"
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
PS1+="\[${GREEN}\] >\[${NOCOLOR}\] " # Normal user
|
||||
else
|
||||
PS1+="\[${RED}\]>\[${NOCOLOR}\] " # Root user
|
||||
fi
|
||||
|
||||
# PS2 is used to continue a command using the \ character
|
||||
PS2="\[${LIGHTGRAY}\]>\[${NOCOLOR}\] "
|
||||
|
||||
# PS3 is used to enter a number choice in a script
|
||||
PS3='Please enter a number from above list: '
|
||||
|
||||
# PS4 is used for tracing a script in debug mode
|
||||
PS4='\[${LIGHTGRAY}\]+\[${NOCOLOR}\] '
|
||||
# Function to get the current Git branch
|
||||
function parse_git_branch {
|
||||
git branch 2>/dev/null | grep -e '^*' | sed 's/^* \(.*\)/ (\1)/'
|
||||
}
|
||||
PROMPT_COMMAND='__setprompt'
|
||||
|
||||
# Define colors
|
||||
export RED='\[\033[0;31m\]'
|
||||
export BLUE='\[\033[0;34m\]'
|
||||
GREEN='\[\033[0;32m\]'
|
||||
YELLOW='\[\033[0;33m\]'
|
||||
CYAN='\[\033[0;36m\]'
|
||||
WHITE='\[\033[0;37m\]'
|
||||
RESET='\[\033[0m\]'
|
||||
|
||||
# Custom prompt
|
||||
PS1="${CYAN}[\u@\h ${YELLOW}\w${GREEN}\$(parse_git_branch)${CYAN}]${WHITE}${RESET}\n\$ "
|
||||
|
||||
|
||||
#######################################################
|
||||
@@ -380,4 +187,3 @@ PROMPT_COMMAND='__setprompt'
|
||||
eval $(keychain --eval --quiet ry_ecdsa)
|
||||
eval $(keychain --eval --quiet id_rsa)
|
||||
|
||||
|
||||
|
||||
19
.config/alacritty/alacritty.toml
Normal file
@@ -0,0 +1,19 @@
|
||||
import = ["/home/opal/.config/alacritty/gruvbox-light.toml"]
|
||||
|
||||
[env]
|
||||
TERM = "xterm-256color"
|
||||
|
||||
[font]
|
||||
size = 18
|
||||
|
||||
[font.normal]
|
||||
family = "Terminus"
|
||||
style = "Bold"
|
||||
|
||||
[font.offset]
|
||||
x = 0
|
||||
y = 0
|
||||
|
||||
[window]
|
||||
opacity = 0.9
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
import:
|
||||
- ~/.config/alacritty/dracula.yml
|
||||
# Env
|
||||
env:
|
||||
TERM: xterm-256color
|
||||
|
||||
# Font configuration
|
||||
font:
|
||||
normal:
|
||||
family: Hack
|
||||
style: Regular
|
||||
size: 15
|
||||
offset:
|
||||
x: 0
|
||||
y: 0
|
||||
|
||||
window:
|
||||
opacity: 0.90
|
||||
@@ -1,61 +0,0 @@
|
||||
# Dracula theme for Alacritty
|
||||
# https://draculatheme.com/alacritty
|
||||
#
|
||||
# Color palette
|
||||
# https://spec.draculatheme.com
|
||||
#
|
||||
# Template
|
||||
# https://github.com/alacritty/alacritty/blob/master/alacritty.yml
|
||||
|
||||
colors:
|
||||
primary:
|
||||
background: "#282a36"
|
||||
foreground: "#f8f8f2"
|
||||
bright_foreground: "#ffffff"
|
||||
cursor:
|
||||
text: CellBackground
|
||||
cursor: CellForeground
|
||||
vi_mode_cursor:
|
||||
text: CellBackground
|
||||
cursor: CellForeground
|
||||
search:
|
||||
matches:
|
||||
foreground: "#44475a"
|
||||
background: "#50fa7b"
|
||||
focused_match:
|
||||
foreground: "#44475a"
|
||||
background: "#ffb86c"
|
||||
footer_bar:
|
||||
background: "#282a36"
|
||||
foreground: "#f8f8f2"
|
||||
hints:
|
||||
start:
|
||||
foreground: "#282a36"
|
||||
background: "#f1fa8c"
|
||||
end:
|
||||
foreground: "#f1fa8c"
|
||||
background: "#282a36"
|
||||
line_indicator:
|
||||
foreground: None
|
||||
background: None
|
||||
selection:
|
||||
text: CellForeground
|
||||
background: "#44475a"
|
||||
normal:
|
||||
black: "#21222c"
|
||||
red: "#ff5555"
|
||||
green: "#50fa7b"
|
||||
yellow: "#f1fa8c"
|
||||
blue: "#bd93f9"
|
||||
magenta: "#ff79c6"
|
||||
cyan: "#8be9fd"
|
||||
white: "#f8f8f2"
|
||||
bright:
|
||||
black: "#6272a4"
|
||||
red: "#ff6e6e"
|
||||
green: "#69ff94"
|
||||
yellow: "#ffffa5"
|
||||
blue: "#d6acff"
|
||||
magenta: "#ff92df"
|
||||
cyan: "#a4ffff"
|
||||
white: "#ffffff"
|
||||
30
.config/alacritty/gruvbox-light.toml
Normal file
@@ -0,0 +1,30 @@
|
||||
# Colors (Gruvbox light)
|
||||
|
||||
# Default colors
|
||||
[colors.primary]
|
||||
# hard contrast background = = '#f9f5d7'
|
||||
background = '#E8D8B0'
|
||||
# soft contrast background = = '#f2e5bc'
|
||||
foreground = '#3c3836'
|
||||
|
||||
# Normal colors
|
||||
[colors.normal]
|
||||
black = '#fbf1c7'
|
||||
red = '#cc241d'
|
||||
green = '#98971a'
|
||||
yellow = '#d79921'
|
||||
blue = '#458588'
|
||||
magenta = '#b16286'
|
||||
cyan = '#689d6a'
|
||||
white = '#7c6f64'
|
||||
|
||||
# Bright colors
|
||||
[colors.bright]
|
||||
black = '#928374'
|
||||
red = '#9d0006'
|
||||
green = '#79740e'
|
||||
yellow = '#b57614'
|
||||
blue = '#076678'
|
||||
magenta = '#8f3f71'
|
||||
cyan = '#427b58'
|
||||
white = '#3c3836'
|
||||
29
.config/alacritty/gruvbox-material-hard-dark.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
# Colors (Gruvbox Material Hard Dark)
|
||||
|
||||
# Default colors
|
||||
[colors.primary]
|
||||
background = '#1d2021'
|
||||
foreground = '#d4be98'
|
||||
|
||||
# Normal colors
|
||||
[colors.normal]
|
||||
black = '#32302f'
|
||||
red = '#ea6962'
|
||||
green = '#a9b665'
|
||||
yellow = '#d8a657'
|
||||
blue = '#7daea3'
|
||||
magenta = '#d3869b'
|
||||
cyan = '#89b482'
|
||||
white = '#d4be98'
|
||||
|
||||
# Bright colors (same as normal colors)
|
||||
[colors.bright]
|
||||
black = '#32302f'
|
||||
red = '#ea6962'
|
||||
green = '#a9b665'
|
||||
yellow = '#d8a657'
|
||||
blue = '#7daea3'
|
||||
magenta = '#d3869b'
|
||||
cyan = '#89b482'
|
||||
white = '#d4be98'
|
||||
|
||||
28
.config/alacritty/theme.toml
Normal file
@@ -0,0 +1,28 @@
|
||||
# Colors (Gruvbox Material Hard Dark)
|
||||
|
||||
# Default colors
|
||||
[colors.primary]
|
||||
background = '#1d2021'
|
||||
foreground = '#d4be98'
|
||||
|
||||
# Normal colors
|
||||
[colors.normal]
|
||||
black = '#32302f'
|
||||
red = '#ea6962'
|
||||
green = '#a9b665'
|
||||
yellow = '#d8a657'
|
||||
blue = '#7daea3'
|
||||
magenta = '#d3869b'
|
||||
cyan = '#89b482'
|
||||
white = '#d4be98'
|
||||
|
||||
# Bright colors (same as normal colors)
|
||||
[colors.bright]
|
||||
black = '#32302f'
|
||||
red = '#ea6962'
|
||||
green = '#a9b665'
|
||||
yellow = '#d8a657'
|
||||
blue = '#7daea3'
|
||||
magenta = '#d3869b'
|
||||
cyan = '#89b482'
|
||||
white = '#d4be98'
|
||||
38
.config/borgmatic/config.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
location:
|
||||
source_directories:
|
||||
- /home/*
|
||||
repositories:
|
||||
- ssh://opal@server/data/opal/media/backups/laptop
|
||||
exclude_patterns:
|
||||
- /home/*/.cache
|
||||
- /home/*/.var
|
||||
- /home/*/.config/emacs
|
||||
- /home/*/.mozilla
|
||||
- /home/*/.thunderbird
|
||||
- /home/*/.w3m
|
||||
- /home/*/.ansible
|
||||
- /home/*/.keychain
|
||||
- /home/*/.pki
|
||||
|
||||
storage:
|
||||
encryption_passcommand: gopass show -o backups/laptop
|
||||
ssh_command: ssh -i ~/.ssh/ry_ecdsa -p 46668
|
||||
|
||||
retention:
|
||||
keep_daily: 7
|
||||
keep_weekly: 4
|
||||
keep_monthly: 6
|
||||
keep_yearly: 1
|
||||
|
||||
consistency:
|
||||
checks:
|
||||
- name: repository
|
||||
check_last: 3
|
||||
|
||||
hooks:
|
||||
before_backup:
|
||||
- echo "Starting a backup."
|
||||
after_backup:
|
||||
- echo "Finished a backup."
|
||||
on_error:
|
||||
- echo "Error during backup."
|
||||
74
.config/calcurse/caldav/config
Normal file
@@ -0,0 +1,74 @@
|
||||
# If you want to synchronize calcurse with a CalDAV server using
|
||||
# calcurse-caldav, create a new directory at $XDG_CONFIG_HOME/calcurse/caldav/
|
||||
# (~/.config/calcurse/caldav/) and $XDG_DATA_HOME/calcurse/caldav/
|
||||
# (~/.local/share/calcurse/caldav/) and copy this file to
|
||||
# $XDG_CONFIG_HOME/calcurse/caldav/config and adjust the configuration below.
|
||||
# Alternatively, if using ~/.calcurse, create a new directory at
|
||||
# ~/.calcurse/caldav/ and copy this file to ~/.calcurse/caldav/config and adjust
|
||||
# the configuration file below.
|
||||
|
||||
[General]
|
||||
# Path to the calcurse binary that is used for importing/exporting items.
|
||||
Binary = calcurse
|
||||
|
||||
# Host name of the server that hosts CalDAV. Do NOT prepend a protocol prefix,
|
||||
# such as http:// or https://. Append :<port> for a port other than 80.
|
||||
Hostname = dav.opal.sh
|
||||
|
||||
# Path to the CalDAV calendar on the host specified above. This is the base
|
||||
# path following your host name in the URL.
|
||||
Path = /dav.php/calendars/ryan/ryan-cal/
|
||||
|
||||
# Type of authentication to use. Must be "basic" or "oauth2"
|
||||
#AuthMethod = basic
|
||||
|
||||
# Enable this if you want to skip SSL certificate checks.
|
||||
InsecureSSL = No
|
||||
|
||||
# Disable this if you want to use HTTP instead of HTTPS.
|
||||
# Using plain HTTP is highly discouraged.
|
||||
HTTPS = Yes
|
||||
|
||||
# This option allows you to filter the types of tasks synced. To this end, the
|
||||
# value of this option should be a comma-separated list of item types, where
|
||||
# each item type is either "event", "apt", "recur-event", "recur-apt", "todo",
|
||||
# "recur" or "cal". Note that the comma-separated list must not contain any
|
||||
# spaces. Refer to the documentation of the --filter-type command line argument
|
||||
# of calcurse for more details. Set this option to "cal" if the configured
|
||||
# CalDAV server doesn't support tasks, such as is the case with Google
|
||||
# Calendar.
|
||||
SyncFilter = cal,todo
|
||||
|
||||
# Disable this option to actually enable synchronization. If it is enabled,
|
||||
# nothing is actually written to the server or to the local data files. If you
|
||||
# combine DryRun = Yes with Verbose = Yes, you get a log of what would have
|
||||
# happened with this option disabled.
|
||||
DryRun = No
|
||||
|
||||
# Enable this if you want detailed logs written to stdout.
|
||||
Verbose = Yes
|
||||
|
||||
# Credentials for HTTP Basic Authentication (if required).
|
||||
# Set `Password` to your password in plaintext (unsafe),
|
||||
# or `PasswordCommand` to a shell command that retrieves it (recommended).
|
||||
[Auth]
|
||||
Username = ryan
|
||||
#Password = password
|
||||
PasswordCommand = gopass show -o self-hosted/dav.opal.sh
|
||||
|
||||
# Optionally specify additional HTTP headers here.
|
||||
#[CustomHeaders]
|
||||
#User-Agent = Mac_OS_X/10.9.2 (13C64) CalendarAgent/176
|
||||
|
||||
# Use the following to synchronize with an OAuth2-based service
|
||||
# such as Google Calendar.
|
||||
#[OAuth2]
|
||||
#ClientID = your_client_id
|
||||
#ClientSecret = your_client_secret
|
||||
|
||||
# Scope of access for API calls. Synchronization requires read/write.
|
||||
#Scope = https://example.com/resource/scope
|
||||
|
||||
# Change the redirect URI if you receive errors, but ensure that it is identical
|
||||
# to the redirect URI you specified in the API settings.
|
||||
#RedirectURI = http://127.0.0.1
|
||||
26
.config/calcurse/hooks/post-save
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# 1. Make a commit if the calcurse directories contain a Git repository.
|
||||
# 2. Synchronize with a CalDAV server if calcurse-caldav is configured.
|
||||
|
||||
data_dir="$HOME/.calcurse"
|
||||
config_dir="$HOME/.calcurse"
|
||||
|
||||
if [ ! -d "$data_dir" ]; then
|
||||
data_dir="${XDG_DATA_HOME:-$HOME/.local/share}/calcurse"
|
||||
config_dir="${XDG_CONFIG_HOME:-$HOME/.config}/calcurse"
|
||||
fi
|
||||
|
||||
# Do not do anything when synchronizing with a CalDAV server.
|
||||
[ -f "$data_dir/caldav/lock" ] && exit
|
||||
|
||||
# Run the CalDAV synchronization script in the background.
|
||||
cd "$data_dir" || exit
|
||||
if [ -d caldav ] && command -v calcurse-caldav >/dev/null; then
|
||||
(
|
||||
date="$(date +'%b %d %H:%M:%S')"
|
||||
echo "$date Running calcurse-caldav from the post-save hook..."
|
||||
calcurse-caldav
|
||||
echo
|
||||
) >>caldav/log 2>&1 &
|
||||
fi
|
||||
18
.config/calcurse/hooks/pre-load
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -d "$HOME/.calcurse" ] && data_dir="$HOME/.calcurse" || data_dir="${XDG_DATA_HOME:-$HOME/.local/share}/calcurse"
|
||||
|
||||
cd "$data_dir" || exit
|
||||
|
||||
# Do not do anything when synchronizing with a CalDAV server.
|
||||
[ -f caldav/lock ] && exit
|
||||
|
||||
# Run the CalDAV synchronization script in the background.
|
||||
if [ -d caldav ] && command -v calcurse-caldav >/dev/null; then
|
||||
(
|
||||
date="$(date +'%b %d %H:%M:%S')"
|
||||
echo "$date Running calcurse-caldav from the pre-load hook..."
|
||||
calcurse-caldav
|
||||
echo
|
||||
) >>caldav/log 2>&1 &
|
||||
fi
|
||||
@@ -1,32 +1,35 @@
|
||||
(setq fancy-splash-image "~/.config/doom/splash.png")
|
||||
;;(setq fancy-splash-image "~/.config/doom/splash.png")
|
||||
|
||||
;; Clean up starting screen
|
||||
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-shortmenu)
|
||||
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-banner)
|
||||
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-footer)
|
||||
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-loaded)
|
||||
(add-hook! '+doom-dashboard-mode-hook (hide-mode-line-mode 1) (hl-line-mode -1))
|
||||
(setq-hook! '+doom-dashboard-mode-hook evil-normal-state-cursor (list nil))
|
||||
|
||||
(add-load-path! "/usr/share/emacs/site-lisp/mu4e")
|
||||
|
||||
;; Set name & e-mail
|
||||
(setq user-full-name "opal"
|
||||
user-mail-address "ry.orlando@pm.me")
|
||||
user-mail-address "ry.orlando@proton.me")
|
||||
|
||||
;; (setq doom-theme 'doom-dracula)
|
||||
(load-theme 'doom-dracula t)
|
||||
;;(define-key global-map (kbd "<f5>") #'modus-themes-toggle)
|
||||
;; Theme & background color
|
||||
(load-theme 'ef-eagle t)
|
||||
(set-face-background 'default "#E8D8B0")
|
||||
|
||||
;; Lockfiles
|
||||
(setq create-lockfiles nil)
|
||||
|
||||
;; Remove line numbers from specific modes
|
||||
(dolist (mode '(org-mode-hook
|
||||
term-mode-hook
|
||||
shell-mode-hook
|
||||
eshell-mode-hook))
|
||||
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
||||
|
||||
(setq browse-url-browser-function 'browse-url-generic
|
||||
browse-url-generic-program "qutebrowser")
|
||||
|
||||
(set-face-attribute 'default nil :font "Hack" :height 130 :weight 'regular)
|
||||
(set-face-attribute 'fixed-pitch nil :font "Hack" :height 1.0 :weight 'regular)
|
||||
(set-face-attribute 'variable-pitch nil :font "Hack" :height 1.0 :weight 'bold)
|
||||
;; Font configuration
|
||||
(set-face-attribute 'default nil :font "Monospace" :height 190)
|
||||
(set-face-attribute 'fixed-pitch nil :font "Monospace" :height 190)
|
||||
(set-face-attribute 'variable-pitch nil :font "ETBembo" :height 190)
|
||||
|
||||
(defun opal/org-font-setup ()
|
||||
;; Replace list hyphen with dot
|
||||
@@ -44,26 +47,36 @@
|
||||
(org-level-6 . 1.1)
|
||||
(org-level-7 . 1.1)
|
||||
(org-level-8 . 1.1)))
|
||||
(set-face-attribute (car face) nil :font "Hack" :weight 'regular :height (cdr face)))
|
||||
(set-face-attribute (car face) nil :font "ETBembo" :weight 'regular :height (cdr face)))
|
||||
|
||||
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
||||
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'line-number nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'line-number-current-line nil :inherit 'fixed-pitch))
|
||||
;; Set properties and scheduling faces to inherit variable-pitch and be smaller
|
||||
;; Comment out these lines because mixed-pitch-mode will handle these.
|
||||
(set-face-attribute 'org-property-value nil :inherit 'variable-pitch :height 150)
|
||||
(set-face-attribute 'org-special-keyword nil :inherit 'variable-pitch :height 150)
|
||||
(set-face-attribute 'org-scheduled-today nil :inherit 'variable-pitch :height 150)
|
||||
(set-face-attribute 'org-drawer nil :inherit 'variable-pitch :height 150)
|
||||
(set-face-attribute 'org-date nil :inherit 'variable-pitch :height 150)
|
||||
|
||||
;; Ensure that all agenda items use fixed-pitch font
|
||||
(custom-set-faces
|
||||
'(org-agenda-date-today ((t (:inherit fixed-pitch :weight bold))))
|
||||
'(org-agenda-date ((t (:inherit fixed-pitch))))
|
||||
'(org-agenda-date-weekend ((t (:inherit fixed-pitch :weight bold))))
|
||||
'(org-agenda-done ((t (:inherit fixed-pitch :strike-through t))))
|
||||
'(org-agenda-dimmed-todo-face ((t (:inherit fixed-pitch))))
|
||||
'(org-agenda-structure ((t (:inherit fixed-pitch))))
|
||||
'(org-scheduled ((t (:inherit fixed-pitch))))
|
||||
'(org-scheduled-today ((t (:inherit fixed-pitch))))
|
||||
'(org-scheduled-previously ((t (:inherit fixed-pitch))))
|
||||
'(org-upcoming-deadline ((t (:inherit fixed-pitch))))
|
||||
'(org-deadline-announce ((t (:inherit fixed-pitch))))
|
||||
'(org-time-grid ((t (:inherit fixed-pitch)))))
|
||||
)
|
||||
|
||||
(defun opal/org-mode-setup ()
|
||||
(org-indent-mode)
|
||||
(variable-pitch-mode 1)
|
||||
(visual-line-mode 1))
|
||||
(visual-line-mode 1)
|
||||
(mixed-pitch-mode 1))
|
||||
|
||||
(use-package org
|
||||
:commands (org-capture org-agenda)
|
||||
@@ -74,62 +87,70 @@
|
||||
(setq org-log-done 'time)
|
||||
(setq org-log-into-drawer t)
|
||||
(setq org-startup-folded t)
|
||||
(setq org-indent-indentation-per-level 2)
|
||||
(setq org-hide-emphasis-markers t)
|
||||
(setq org-agenda-files
|
||||
'("~/work/work.org"))
|
||||
'("~/documents/org/agenda/todo.org"))
|
||||
|
||||
(require 'org-habit)
|
||||
(add-to-list 'org-modules 'org-habit)
|
||||
(setq org-habit-graph-column 60)
|
||||
|
||||
(setq org-todo-keywords
|
||||
'((sequence "NEXT(n)" "TODO(t)" "|" "DONE(d!)")
|
||||
(sequence "ACTIVE(a)" "PROJ(p)" "READY(r)" "WAIT(w@/!)" "HOLD(h)" "BACKLOG(b)" "DOC(u)" "|" "COMPLETED(c)" "CANC(k@)")))
|
||||
'((sequence "NEXT(n)" "TODO(t)" "|" "DONE(d!)")
|
||||
(sequence "ACTIVE(a)" "PROJ(p)" "READY(r)" "HOLD(h)" "BACKLOG(b)" "|" "CANC(k@)")))
|
||||
|
||||
(setq org-todo-keyword-faces
|
||||
'(("NEXT" . "red") ("TODO" . "orange") ("WAIT" . "yellow") ("DONE" . "green")))
|
||||
'(("NEXT" . "red") ("TODO" . "orange") ("WAIT" . "yellow") ("DONE" . "green")))
|
||||
|
||||
(setq org-refile-targets
|
||||
'(("archive.org" :maxlevel . 1)
|
||||
("planner.org" :maxlevel . 1)))
|
||||
'(("archive.org" :maxlevel . 1)
|
||||
("planner.org" :maxlevel . 1)))
|
||||
|
||||
;; Save Org buffers after refiling!
|
||||
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
||||
|
||||
(add-hook 'org-mode-hook #'org-make-toc-mode)
|
||||
|
||||
;; Configure custom agenda views
|
||||
(setq org-agenda-custom-commands
|
||||
'(("d" "Dashboard"
|
||||
((agenda "" ((org-deadline-warning-days 7)))
|
||||
(todo "NEXT"
|
||||
((org-agenda-overriding-header "Next Tasks")))
|
||||
(tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects")))))
|
||||
|
||||
("n" "Next Tasks"
|
||||
((todo "NEXT"
|
||||
((org-agenda-overriding-header "Next Tasks")))))
|
||||
|
||||
;; Low-effort next actions
|
||||
("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0"
|
||||
((org-agenda-overriding-header "Low Effort Tasks")
|
||||
(org-agenda-max-todos 20)
|
||||
(org-agenda-files org-agenda-files)))))
|
||||
'(("d" "Custom Dashboard"
|
||||
;; NEXT items for today
|
||||
((tags "+TODO=\"NEXT\"+SCHEDULED=\"<+0d>\"|+DEADLINE=\"<+0d>\""
|
||||
((org-agenda-overriding-header "\nNEXT Items for Today\n"))) ; Show NEXT items scheduled or due today
|
||||
;; TODO items for today
|
||||
(tags "+TODO=\"TODO\"+SCHEDULED=\"<+0d>\"|+DEADLINE=\"<+0d>\""
|
||||
((org-agenda-overriding-header "\nTODO Items for Today\n"))) ; Show TODO items scheduled or due today
|
||||
;; DONE items for today
|
||||
(tags "+TODO=\"DONE\"+CLOSED>=\"<-3d>\""
|
||||
((org-agenda-overriding-header "\nDone Items for Today\n"))) ; Show DONE items closed today
|
||||
;; Agenda for today
|
||||
(agenda ""
|
||||
((org-agenda-span 1) ; Show only today
|
||||
(org-agenda-start-day "0d") ; Start from today
|
||||
(org-agenda-show-all-dates t) ; Ensure all dates are shown
|
||||
(org-agenda-overriding-header "\nAgenda (Today)\n")))
|
||||
;; Agenda for next 3 days (no time grid)
|
||||
(agenda ""
|
||||
((org-agenda-span 3) ; Show the next 3 days
|
||||
(org-agenda-start-day "+1d") ; Start from tomorrow
|
||||
(org-agenda-overriding-header "\nAgenda (Next 3 Days)\n")
|
||||
(org-agenda-time-grid nil))))))) ; Remove time grid
|
||||
|
||||
;; Create capture templates
|
||||
(setq org-capture-templates
|
||||
`(("t" "Tasks")
|
||||
("tt" "Task" entry (file+olp "~/work/work.org" "Inbox")
|
||||
"* TODO %?\n %U\n %a\n %i" :empty-lines 1)))
|
||||
`(("t" "Tasks")
|
||||
("tw" "Work Task" entry (file+headline "~/documents/org/agenda/todo.org" "Work")
|
||||
"* TODO %?\n %U\n %i" :empty-lines 1)
|
||||
("tp" "Personal Task" entry (file+headline "~/documents/org/agenda/todo.org" "Personal")
|
||||
"* TODO %?\n %U\n %i" :empty-lines 1)
|
||||
("tb" "Backlog Task" entry (file+headline "~/documents/org/agenda/todo.org" "Backlog")
|
||||
"* BACKLOG %?\n %U\n %i" :empty-lines 1)))
|
||||
|
||||
;; Tell Org to stop indenting inside of org source blocks.
|
||||
(setq org-edit-src-content-indentation 0)
|
||||
|
||||
;; Set org agenda dir
|
||||
(setq org-directory "~/org/")
|
||||
|
||||
;; Open links in browser
|
||||
(setq browse-url-browser-function 'browse-url-generic
|
||||
browse-url-generic-program "firefox")
|
||||
(setq org-directory "~/documents/org/")
|
||||
|
||||
;; Init org font setup
|
||||
(opal/org-font-setup))
|
||||
@@ -142,7 +163,7 @@
|
||||
|
||||
(defun opal/org-mode-visual-fill ()
|
||||
(setq visual-fill-column-width 150
|
||||
visual-fill-column-center-text t)
|
||||
visual-fill-column-center-text t)
|
||||
(visual-fill-column-mode 1))
|
||||
|
||||
(use-package visual-fill-column
|
||||
@@ -155,64 +176,144 @@
|
||||
'((emacs-lisp . t)
|
||||
(lisp . t)
|
||||
(python . t)
|
||||
(sql . t)
|
||||
(clojure . t)))
|
||||
(sql . t)))
|
||||
|
||||
(push '("conf-unix" . conf-unix) org-src-lang-modes))
|
||||
|
||||
;; Set geiser default language
|
||||
(setq geiser-default-implementation '(guile))
|
||||
|
||||
(with-eval-after-load 'org
|
||||
(require 'org-tempo)
|
||||
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
||||
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
|
||||
(add-to-list 'org-structure-template-alist '("cl" . "src lisp"))
|
||||
(add-to-list 'org-structure-template-alist '("sql" . "src sql"))
|
||||
(add-to-list 'org-structure-template-alist '("py" . "src python"))
|
||||
(add-to-list 'org-structure-template-alist '("clj" . "src clojure")))
|
||||
(add-to-list 'org-structure-template-alist '("py" . "src python")))
|
||||
|
||||
;; (use-package mu4e
|
||||
;; :config
|
||||
;; ;; Se t to 't' to avoid mail syncing issues w/ mbsync
|
||||
;; (setq mu4e-change-filenames-when-moving t)
|
||||
;; Programming
|
||||
(setq geiser-guile-binary "/usr/bin/guile3.0")
|
||||
|
||||
;; ;; Refresh mail every X minutes
|
||||
;; (setq mu4e-update-interval (* 10 60))
|
||||
;; (setq mu4e-get-mail-command "mbsync -a -c ~/.config/mbsync/mbsyncrc")
|
||||
;; (setq mu4e-maildir "~/mail")
|
||||
;; Playing youtube videos via mpv/yt-dlp/emms
|
||||
(defun opal/play-yt-url-at-point ()
|
||||
"Play YT link under point with EMMS/MPV/yt-dlp."
|
||||
(interactive)
|
||||
(let ((url (thing-at-point 'url t)))
|
||||
(if url
|
||||
(emms-play-url url)
|
||||
(message "No URL found at point."))))
|
||||
|
||||
;; (setq mu4e-contexts
|
||||
;; (list
|
||||
;; ;; Work Email
|
||||
;; (make-mu4e-context
|
||||
;; :name "work"
|
||||
;; :match-func
|
||||
;; (lambda (msg)
|
||||
;; (when msg
|
||||
;; (string-prefix-p "/work" (mu4e-message-field msg :maildir))))
|
||||
(global-set-key (kbd "C-c y") 'opal/play-yt-url-at-point)
|
||||
|
||||
;; :vars '((user-mail-address . "rorlando@flyingcroc.net")
|
||||
;; (user-full-name . "Ryan Orlando")
|
||||
;; (mu4e-drafts-folder . "/work/drafts")
|
||||
;; (mu4e-sent-folder . "/work/sent")
|
||||
;; (mu4e-trash-folder . "/work/trash")))))
|
||||
(setq browse-url-browser-function 'browse-url-generic
|
||||
browse-url-generic-program "/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community")
|
||||
|
||||
;; (setq mu4e-maildir-shortcuts
|
||||
;; '(("/work/inbox" . ?i)
|
||||
;; ("/work/sent" . ?s)
|
||||
;; ("/work/trash" . ?t)
|
||||
;; ("/work/drafts" . ?d))))
|
||||
;; Elfeed
|
||||
(defun opal/elfeed-open-in-browser ()
|
||||
"Open the current Elfeed entry link in browser (LibreWolf)."
|
||||
(interactive)
|
||||
(let ((link (elfeed-entry-link (elfeed-search-selected :single))))
|
||||
(if link
|
||||
(browse-url link)
|
||||
(message "No link to open."))))
|
||||
|
||||
(use-package vterm
|
||||
:commands vterm
|
||||
(defun opal/elfeed-open-in-eww()
|
||||
"Open the current Elfeed entry link in eww."
|
||||
(interactive)
|
||||
(let ((link (elfeed-entry-link (elfeed-search-selected :single))))
|
||||
(if link
|
||||
(eww-browse-url link)
|
||||
(message "No link to open."))))
|
||||
|
||||
(defun opal/elfeed-mark-all-read ()
|
||||
"Marks all feeds in *elfeed-search* as read."
|
||||
(interactive)
|
||||
(elfeed-untag elfeed-search-entries 'unread)
|
||||
(elfeed-search-update :force)) ; redraw
|
||||
|
||||
(use-package elfeed
|
||||
:bind
|
||||
(("C-c e" . elfeed))
|
||||
:config
|
||||
(setq vterm-shell "bash")
|
||||
(setq vterm-tramp-shells '("ssh" "/bin/bash")))
|
||||
;; Ensure faces are set after elfeed has loaded
|
||||
(with-eval-after-load 'elfeed
|
||||
(set-face-attribute 'elfeed-search-filter-face nil :inherit 'variable-pitch :height 200)
|
||||
;; Monospace fonts are necessary for text/column alignment in the *elfeed-search* buffer
|
||||
(set-face-attribute 'elfeed-search-title-face nil :inherit 'fixed-pitch :height 200)
|
||||
(set-face-attribute 'elfeed-search-feed-face nil :inherit 'fixed-pitch :height 200))
|
||||
|
||||
(setq rmh-elfeed-org-files (list "~/sync/elfeed/feeds.org"))
|
||||
(add-hook! 'elfeed-search-mode-hook 'elfeed-update)
|
||||
(after! elfeed
|
||||
(setq elfeed-search-filter "@1-month-ago +unread"))
|
||||
;; Set variable-pitch face for article fonts in the *elfeed-entry* buffer
|
||||
(add-hook 'elfeed-show-mode-hook
|
||||
(lambda () (buffer-face-set 'variable-pitch)))
|
||||
|
||||
;; Set default search filter
|
||||
(setq elfeed-search-filter "@2-weeks-ago +unread")
|
||||
|
||||
;; Update feeds automatically when entering Elfeed search mode
|
||||
(add-hook 'elfeed-search-mode-hook 'elfeed-update)
|
||||
|
||||
;; Evil keybindings for Elfeed
|
||||
(evil-define-key 'normal elfeed-search-mode-map
|
||||
"f" 'opal/elfeed-open-in-browser ;; Open link in Browser
|
||||
"e" 'opal/elfeed-open-in-eww ;; Open link in eww
|
||||
"r" 'opal/elfeed-mark-all-read ;; Marks all feeds as read
|
||||
"gr" 'elfeed-update ;; Refresh feeds
|
||||
"q" 'quit-window)) ;; Quit Elfeed
|
||||
|
||||
(setq create-lockfiles nil)
|
||||
|
||||
;; Make sure eww opens in it's own buffer
|
||||
(after! eww
|
||||
(set-popup-rule! "^\\*eww\\*" :ignore t))
|
||||
|
||||
(after! osm
|
||||
(set-popup-rule! "^\\*osm\\*" :ignore t))
|
||||
|
||||
;; eww
|
||||
(defun opal/eww-reddit-redirect(url)
|
||||
"Redirect reddit.com to custom URL."
|
||||
(replace-regexp-in-string "https://www.reddit.com" "https://eddrit.com" url))
|
||||
|
||||
(use-package eww
|
||||
:config
|
||||
(setq browse-url-browser-function 'eww-browse-url)
|
||||
|
||||
;; Set eww webpage title in the modeline bar instead of just *eww*
|
||||
(setq eww-auto-rename-buffer 'title)
|
||||
|
||||
;; Set privacy respecting proxies
|
||||
(setq reddit-proxy "https://eddrit.com")
|
||||
|
||||
;; Redirect reddit links to privacy respecting frontends.
|
||||
(setq eww-url-transformers '(eww-remove-tracking opal/eww-reddit-redirect))
|
||||
|
||||
;; Make sure eww opens in it's own buffer
|
||||
(after! eww
|
||||
(set-popup-rule! "^\\*eww\\*" :ignore t)))
|
||||
|
||||
;; Since I sometimes write notes in two languages, guess-language will allow for multiple language
|
||||
;; spelling checks to be done in a single buffer.
|
||||
(use-package guess-language
|
||||
:defer t
|
||||
:init (add-hook 'text-mode-hook #'guess-language-mode)
|
||||
:config
|
||||
(setq guess-language-langcodes '((en . ("en_US" "English"))
|
||||
(pt_BR . ("pt_BR" "Brazilian Portuguese")))
|
||||
guess-language-languages '(en pt_BR)
|
||||
guess-language-min-paragraph-length 45)
|
||||
:diminish guess-language-mode)
|
||||
|
||||
(setq geiser-guile-binary "/usr/bin/guile3.0")
|
||||
|
||||
(defun opal/nov-mode-setup ()
|
||||
"Configure fonts for nov.el."
|
||||
(variable-pitch-mode 1) ; Enable variable-pitch-mode
|
||||
(visual-line-mode 1) ; Enable line wrapping at word boundaries
|
||||
(setq visual-fill-column-width 150
|
||||
visual-fill-column-center-text t
|
||||
line-spacing 0.2)
|
||||
(visual-fill-column-mode 1))
|
||||
|
||||
(add-hook 'nov-mode-hook 'opal/nov-mode-setup)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode))
|
||||
|
||||
(setq +lookup-dictionary-prefer-offline t)
|
||||
(setq dictionary-server "dict.org")
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
||||
'(auth-source-save-behavior nil)
|
||||
'(custom-safe-themes
|
||||
'("944d52450c57b7cbba08f9b3d08095eb7a5541b0ecfb3a0a9ecd4a18f3c28948" "dad40020beea412623b04507a4c185079bff4dcea20a93d8f8451acb6afc8358" "a0415d8fc6aeec455376f0cbcc1bee5f8c408295d1c2b9a1336db6947b89dd98" "a9a67b318b7417adbedaab02f05fa679973e9718d9d26075c6235b1f0db703c8" "1704976a1797342a1b4ea7a75bdbb3be1569f4619134341bd5a4c1cfb16abad4" "b5803dfb0e4b6b71f309606587dd88651efe0972a5be16ece6a958b197caeed8" default))
|
||||
'("b00cb300c114f3b971370c9ef9b6b8a347fa02b1af2aa4c02dab47eaa0ad930b" "d6d4e0512dcaae663f7bd304557d6bc8b78c576be5af9c0b62b8447fb79b5fde" "13096a9a6e75c7330c1bc500f30a8f4407bd618431c94aeab55c9855731a95e1" "48042425e84cd92184837e01d0b4fe9f912d875c43021c3bcb7eeb51f1be5710" "c5878086e65614424a84ad5c758b07e9edcf4c513e08a1c5b1533f313d1b17f1" "10e5d4cc0f67ed5cafac0f4252093d2119ee8b8cb449e7053273453c1a1eb7cc" "ffafb0e9f63935183713b204c11d22225008559fa62133a69848835f4f4a758c" "7964b513f8a2bb14803e717e0ac0123f100fb92160dcf4a467f530868ebaae3e" "f053f92735d6d238461da8512b9c071a5ce3b9d972501f7a5e6682a90bf29725" "944d52450c57b7cbba08f9b3d08095eb7a5541b0ecfb3a0a9ecd4a18f3c28948" "dad40020beea412623b04507a4c185079bff4dcea20a93d8f8451acb6afc8358" "a0415d8fc6aeec455376f0cbcc1bee5f8c408295d1c2b9a1336db6947b89dd98" "a9a67b318b7417adbedaab02f05fa679973e9718d9d26075c6235b1f0db703c8" "1704976a1797342a1b4ea7a75bdbb3be1569f4619134341bd5a4c1cfb16abad4" "b5803dfb0e4b6b71f309606587dd88651efe0972a5be16ece6a958b197caeed8" default))
|
||||
'(exwm-floating-border-color "#191b20")
|
||||
'(fci-rule-color "#5B6268")
|
||||
'(highlight-tail-colors
|
||||
@@ -50,4 +50,16 @@
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
)
|
||||
'(org-agenda-date ((t (:inherit fixed-pitch))))
|
||||
'(org-agenda-date-today ((t (:inherit fixed-pitch :weight bold))))
|
||||
'(org-agenda-date-weekend ((t (:inherit fixed-pitch :weight bold))))
|
||||
'(org-agenda-dimmed-todo-face ((t (:inherit fixed-pitch))))
|
||||
'(org-agenda-done ((t (:inherit fixed-pitch :strike-through t))))
|
||||
'(org-agenda-structure ((t (:inherit fixed-pitch))))
|
||||
'(org-deadline-announce ((t (:inherit fixed-pitch))))
|
||||
'(org-scheduled ((t (:inherit fixed-pitch))))
|
||||
'(org-scheduled-previously ((t (:inherit fixed-pitch))))
|
||||
'(org-scheduled-today ((t (:inherit fixed-pitch))))
|
||||
'(org-time-grid ((t (:inherit fixed-pitch))))
|
||||
'(org-upcoming-deadline ((t (:inherit fixed-pitch))))
|
||||
'(variable-pitch ((t (:slant normal :weight regular :height 200 :width normal :foundry "PfEd" :family "ETBembo")))))
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
;;hydra
|
||||
;;indent-guides ; highlighted indent columns
|
||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||
minimap ; show a map of the code on the side
|
||||
;;minimap ; show a map of the code on the side
|
||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||
;;nav-flash ; blink cursor line after big motions
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
@@ -34,7 +34,7 @@
|
||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||
tabs ; a tab bar for Emacs
|
||||
;;treemacs ; a project drawer, like neotree but cooler
|
||||
unicode ; extended unicode support for various languages
|
||||
;;unicode ; extended unicode support for various languages
|
||||
vc-gutter ; vcs diff in the fringe
|
||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||
;;window-select ; visually switch windows
|
||||
@@ -74,7 +74,7 @@
|
||||
;;grammar ; tasing grammar mistake every you make
|
||||
|
||||
:tools
|
||||
ansible
|
||||
;;ansible
|
||||
;;biblio ; Writes a PhD for you (citation needed)
|
||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||
;;direnv
|
||||
@@ -83,14 +83,14 @@
|
||||
;;ein ; tame Jupyter notebooks with emacs
|
||||
(eval +overlay) ; run code, run (also, repls)
|
||||
;;gist ; interacting with github gists
|
||||
lookup ; navigate your code and its documentation
|
||||
(lookup +dictionary) ; navigate your code and its documentation
|
||||
lsp ; M-x vscode
|
||||
magit ; a git porcelain for Emacs
|
||||
;;make ; run make tasks from Emacs
|
||||
;;pass ; password manager for nerds
|
||||
pdf ; pdf enhancements
|
||||
;;prodigy ; FIXME managing external services & code builders
|
||||
rgb ; creating color strings
|
||||
;;rgb ; creating color strings
|
||||
;;taskrunner ; taskrunner for all your projects
|
||||
;;terraform ; infrastructure as code
|
||||
;;tmux ; an API for interacting with tmux
|
||||
@@ -125,7 +125,7 @@
|
||||
;;fsharp ; ML stands for Microsoft's Language
|
||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||
;;gdscript ; the language you waited for
|
||||
(go +lsp) ; the hipster dialect
|
||||
;;(go +lsp) ; the hipster dialect
|
||||
;;(haskell +lsp) ; a language that's lazier than I am
|
||||
;;hy ; readability of scheme w/ speed of python
|
||||
;;idris ; a language you can depend on
|
||||
@@ -146,16 +146,16 @@
|
||||
;;php ; perl's insecure younger brother
|
||||
;;plantuml ; diagrams for confusing people more
|
||||
;;purescript ; javascript, but functional
|
||||
(python +lsp) ; beautiful is better than ugly
|
||||
(python +lsp +pyright) ; beautiful is better than ugly
|
||||
;;qt ; the 'cutest' gui framework ever
|
||||
;;racket ; a DSL for DSLs
|
||||
;;raku ; the artist formerly known as perl6
|
||||
;;rest ; Emacs as a REST client
|
||||
;;rst ; ReST in peace
|
||||
(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||
;;scala ; java, but good
|
||||
;;(scheme +guile) ; a fully conniving family of lisps
|
||||
(scheme +guile) ; a fully conniving family of lisps
|
||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||
;;sml
|
||||
;;solidity ; do you need a blockchain? No.
|
||||
@@ -171,10 +171,10 @@
|
||||
;;(wanderlust +gmail)
|
||||
|
||||
:app
|
||||
;;calendar
|
||||
;;emms
|
||||
calendar
|
||||
emms
|
||||
;;everywhere ; *leave* Emacs!? You must be joking
|
||||
;;irc ; how neckbeards socialize
|
||||
irc ; how neckbeards socialize
|
||||
(rss +org) ; emacs as an RSS reader
|
||||
;;twitter ; twitter client https://twitter.com/vnought
|
||||
|
||||
|
||||
@@ -1,5 +1,15 @@
|
||||
;; Include
|
||||
(package! org-bullets)
|
||||
(package! visual-fill-column)
|
||||
(package! org-make-toc)
|
||||
(package! modus-themes)
|
||||
(package! ef-themes)
|
||||
(package! org-drill)
|
||||
(package! pomm)
|
||||
(package! mixed-pitch)
|
||||
(package! guess-language)
|
||||
(package! sicp)
|
||||
(package! nov)
|
||||
(package! osm)
|
||||
|
||||
;; Remove
|
||||
(package! dirvish :disable t)
|
||||
|
||||
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 416 KiB |
@@ -1,4 +1,5 @@
|
||||
[global]
|
||||
geometry = "300x50-10+50"
|
||||
monitor = 0
|
||||
follow = keyboard
|
||||
indicate_hidden = yes
|
||||
@@ -23,7 +24,7 @@ show_indicators = no
|
||||
icon_position = off
|
||||
sticky_history = yes
|
||||
history_length = 20
|
||||
browser = /usr/bin/icecat -new-tab
|
||||
browser = /usr/bin/abrowser -new-tab
|
||||
always_run_script = true
|
||||
title = Dunst
|
||||
class = Dunst
|
||||
|
||||
254
.config/foot/foot.ini
Normal file
@@ -0,0 +1,254 @@
|
||||
# -*- conf -*-
|
||||
|
||||
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
|
||||
#term=xterm-256color (or xterm-256color if built with -Dterminfo=disabled)
|
||||
|
||||
# app-id=foot # globally set wayland app-id. Default values are "foot" and "footclient" for desktop and server mode
|
||||
# title=foot
|
||||
# locked-title=no
|
||||
|
||||
font=Monospace:size=11
|
||||
# font-bold=<bold variant of regular font>
|
||||
# font-italic=<italic variant of regular font>
|
||||
# font-bold-italic=<bold+italic variant of regular font>
|
||||
# font-size-adjustment=0.5
|
||||
# line-height=<font metrics>
|
||||
# letter-spacing=0
|
||||
# horizontal-letter-offset=0
|
||||
# vertical-letter-offset=0
|
||||
# underline-offset=<font metrics>
|
||||
# underline-thickness=<font underline thickness>
|
||||
# strikeout-thickness=<font strikeout thickness>
|
||||
# box-drawings-uses-font-glyphs=no
|
||||
# dpi-aware=no
|
||||
|
||||
# initial-window-size-pixels=700x500 # Or,
|
||||
# initial-window-size-chars=<COLSxROWS>
|
||||
# initial-window-mode=windowed
|
||||
# pad=0x0 # optionally append 'center'
|
||||
# resize-by-cells=yes
|
||||
# resize-keep-grid=yes
|
||||
# resize-delay-ms=100
|
||||
|
||||
# bold-text-in-bright=no
|
||||
# word-delimiters=,│`|:"'()[]{}<>
|
||||
# selection-target=primary
|
||||
# workers=<number of logical CPUs>
|
||||
# utmp-helper=/usr/lib/utempter/utempter # When utmp backend is ‘libutempter’ (Linux)
|
||||
# utmp-helper=/usr/libexec/ulog-helper # When utmp backend is ‘ulog’ (FreeBSD)
|
||||
|
||||
[bell]
|
||||
# urgent=no
|
||||
# notify=no
|
||||
# visual=no
|
||||
# command=
|
||||
# command-focused=no
|
||||
|
||||
[scrollback]
|
||||
lines=1000
|
||||
# multiplier=3.0
|
||||
# indicator-position=relative
|
||||
# indicator-format=""
|
||||
|
||||
[url]
|
||||
# launch=xdg-open ${url}
|
||||
# label-letters=sadfjklewcmpgh
|
||||
# osc8-underline=url-mode
|
||||
# protocols=http, https, ftp, ftps, file, gemini, gopher
|
||||
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
|
||||
|
||||
[cursor]
|
||||
# style=block
|
||||
# color=<inverse foreground/background>
|
||||
# blink=no
|
||||
# blink-rate=500
|
||||
# beam-thickness=1.5
|
||||
# underline-thickness=<font underline thickness>
|
||||
|
||||
[mouse]
|
||||
# hide-when-typing=no
|
||||
# alternate-scroll-mode=yes
|
||||
|
||||
|
||||
[colors]
|
||||
|
||||
# Background and Foreground
|
||||
background=E8D8B0 # Match Gruvbox light background
|
||||
foreground=3c3836 # Match Gruvbox light foreground
|
||||
|
||||
## Normal/regular colors (color palette 0-7)
|
||||
regular0=fbf1c7 # black
|
||||
regular1=cc241d # red
|
||||
regular2=98971a # green
|
||||
regular3=d79921 # yellow
|
||||
regular4=458588 # blue
|
||||
regular5=7c6f64 # magenta (desaturated brownish-gray)
|
||||
regular6=689d6a # cyan
|
||||
regular7=7c6f64 # white
|
||||
|
||||
## Bright colors (color palette 8-15)
|
||||
bright0=928374 # bright black
|
||||
bright1=9d0006 # bright red
|
||||
bright2=79740e # bright green
|
||||
bright3=b57614 # bright yellow
|
||||
bright4=076678 # bright blue
|
||||
bright5=7c6f64 # bright magenta (neutral/desaturated tone)
|
||||
bright6=427b58 # bright cyan
|
||||
bright7=3c3836 # bright white
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# alpha=1.0
|
||||
# background=242424
|
||||
# foreground=ffffff
|
||||
# flash=7f7f00
|
||||
# flash-alpha=0.5
|
||||
|
||||
## Normal/regular colors (color palette 0-7)
|
||||
# regular0=242424 # black
|
||||
# regular1=f62b5a # red
|
||||
# regular2=47b413 # green
|
||||
# regular3=e3c401 # yellow
|
||||
# regular4=24acd4 # blue
|
||||
# regular5=f2affd # magenta
|
||||
# regular6=13c299 # cyan
|
||||
# regular7=e6e6e6 # white
|
||||
|
||||
## Bright colors (color palette 8-15)
|
||||
# bright0=616161 # bright black
|
||||
# bright1=ff4d51 # bright red
|
||||
# bright2=35d450 # bright green
|
||||
# bright3=e9e836 # bright yellow
|
||||
# bright4=5dc5f8 # bright blue
|
||||
# bright5=feabf2 # bright magenta
|
||||
# bright6=24dfc4 # bright cyan
|
||||
# bright7=ffffff # bright white
|
||||
|
||||
## dimmed colors (see foot.ini(5) man page)
|
||||
# dim0=<not set>
|
||||
# ...
|
||||
# dim7=<not-set>
|
||||
|
||||
## The remaining 256-color palette
|
||||
# 16 = <256-color palette #16>
|
||||
# ...
|
||||
# 255 = <256-color palette #255>
|
||||
|
||||
## Misc colors
|
||||
# selection-foreground=<inverse foreground/background>
|
||||
# selection-background=<inverse foreground/background>
|
||||
# jump-labels=<regular0> <regular3> # black-on-yellow
|
||||
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
|
||||
# search-box-no-match=<regular0> <regular1> # black-on-red
|
||||
# search-box-match=<regular0> <regular3> # black-on-yellow
|
||||
# urls=<regular3>
|
||||
|
||||
[csd]
|
||||
# preferred=server
|
||||
# size=26
|
||||
# font=<primary font>
|
||||
# color=<foreground color>
|
||||
# hide-when-maximized=no
|
||||
# double-click-to-maximize=yes
|
||||
# border-width=0
|
||||
# border-color=<csd.color>
|
||||
# button-width=26
|
||||
# button-color=<background color>
|
||||
# button-minimize-color=<regular4>
|
||||
# button-maximize-color=<regular2>
|
||||
# button-close-color=<regular1>
|
||||
|
||||
[key-bindings]
|
||||
# scrollback-up-page=Shift+Page_Up
|
||||
# scrollback-up-half-page=none
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down
|
||||
# scrollback-down-half-page=none
|
||||
# scrollback-down-line=none
|
||||
# scrollback-home=none
|
||||
# scrollback-end=none
|
||||
# clipboard-copy=Control+Shift+c XF86Copy
|
||||
# clipboard-paste=Control+Shift+v XF86Paste
|
||||
# primary-paste=Shift+Insert
|
||||
# search-start=Control+Shift+r
|
||||
# font-increase=Control+plus Control+equal Control+KP_Add
|
||||
# font-decrease=Control+minus Control+KP_Subtract
|
||||
# font-reset=Control+0 Control+KP_0
|
||||
# spawn-terminal=Control+Shift+n
|
||||
# minimize=none
|
||||
# maximize=none
|
||||
# fullscreen=none
|
||||
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
|
||||
# pipe-selected=[xargs -r firefox] none
|
||||
# pipe-command-output=[wl-copy] none # Copy last command's output to the clipboard
|
||||
# show-urls-launch=Control+Shift+o
|
||||
# show-urls-copy=none
|
||||
# show-urls-persistent=none
|
||||
# prompt-prev=Control+Shift+z
|
||||
# prompt-next=Control+Shift+x
|
||||
# unicode-input=Control+Shift+u
|
||||
# noop=none
|
||||
|
||||
[search-bindings]
|
||||
# cancel=Control+g Control+c Escape
|
||||
# commit=Return
|
||||
# find-prev=Control+r
|
||||
# find-next=Control+s
|
||||
# cursor-left=Left Control+b
|
||||
# cursor-left-word=Control+Left Mod1+b
|
||||
# cursor-right=Right Control+f
|
||||
# cursor-right-word=Control+Right Mod1+f
|
||||
# cursor-home=Home Control+a
|
||||
# cursor-end=End Control+e
|
||||
# delete-prev=BackSpace
|
||||
# delete-prev-word=Mod1+BackSpace Control+BackSpace
|
||||
# delete-next=Delete
|
||||
# delete-next-word=Mod1+d Control+Delete
|
||||
# extend-char=Shift+Right
|
||||
# extend-to-word-boundary=Control+w Control+Shift+Right
|
||||
# extend-to-next-whitespace=Control+Shift+w
|
||||
# extend-line-down=Shift+Down
|
||||
# extend-backward-char=Shift+Left
|
||||
# extend-backward-to-word-boundary=Control+Shift+Left
|
||||
# extend-backward-to-next-whitespace=none
|
||||
# extend-line-up=Shift+Up
|
||||
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
|
||||
# primary-paste=Shift+Insert
|
||||
# unicode-input=none
|
||||
# quit=none
|
||||
# scrollback-up-page=Shift+Page_Up
|
||||
# scrollback-up-half-page=none
|
||||
# scrollback-up-line=none
|
||||
# scrollback-down-page=Shift+Page_Down
|
||||
# scrollback-down-half-page=none
|
||||
# scrollback-down-line=none
|
||||
# scrollback-home=none
|
||||
# scrollback-end=none
|
||||
|
||||
[url-bindings]
|
||||
# cancel=Control+g Control+c Control+d Escape
|
||||
# toggle-url-visible=t
|
||||
|
||||
|
||||
[mouse-bindings]
|
||||
# scrollback-up-mouse=BTN_WHEEL_BACK
|
||||
# scrollback-down-mouse=BTN_WHEEL_FORWARD
|
||||
# font-increase=Control+BTN_WHEEL_BACK
|
||||
# font-decrease=Control+BTN_WHEEL_FORWARD
|
||||
# selection-override-modifiers=Shift
|
||||
# primary-paste=BTN_MIDDLE
|
||||
# select-begin=BTN_LEFT
|
||||
# select-begin-block=Control+BTN_LEFT
|
||||
# select-extend=BTN_RIGHT
|
||||
# select-extend-character-wise=Control+BTN_RIGHT
|
||||
# select-word=BTN_LEFT-2
|
||||
# select-word-whitespace=Control+BTN_LEFT-2
|
||||
# select-quote = BTN_LEFT-3
|
||||
# select-row=BTN_LEFT-4
|
||||
|
||||
# vim: ft=dosini
|
||||
|
||||
|
||||
@@ -1,8 +1,22 @@
|
||||
[Added Associations]
|
||||
video/mp4=org.videolan.VLC.desktop;org.kde.dragonplayer.desktop;mpv.desktop;
|
||||
video/quicktime=org.videolan.VLC.desktop;org.kde.dragonplayer.desktop;mpv.desktop;
|
||||
video/mp4=mpv.desktop;
|
||||
video/quicktime=mpv.desktop;
|
||||
|
||||
[Default Applications]
|
||||
inode/directory=pcmanfm-qt
|
||||
video/mp4=org.videolan.VLC.desktop;
|
||||
video/quicktime=org.videolan.VLC.desktop
|
||||
inode/directory=thunar
|
||||
video/mp4=mpv.desktop;
|
||||
video/quicktime=mpv.desktop
|
||||
|
||||
text/html=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
application/xhtml+xml=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
application/xml=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
text/xml=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
text/xsl=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
application/rss+xml=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
application/atom+xml=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
x-scheme-handler/http=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
x-scheme-handler/https=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
x-scheme-handler/ftp=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
x-scheme-handler/chrome=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
x-scheme-handler/about=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
x-scheme-handler/mailto=/var/lib/flatpak/exports/bin/io.gitlab.librewolf-community
|
||||
|
||||
@@ -39,3 +39,8 @@ highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold
|
||||
highlight article ":.*\\(link\\)$" cyan default
|
||||
highlight article ":.*\\(image\\)$" blue default
|
||||
highlight article ":.*\\(embedded flash\\)$" magenta default
|
||||
|
||||
#urls-source "ttrss"
|
||||
#ttrss-url "https://rss.opal.sh/tt-rss/"
|
||||
#ttrss-login "ryan"
|
||||
#ttrss-passwordeval "gopass show -o self-hosted/rss.opal.sh"
|
||||
|
||||
@@ -1,18 +1,16 @@
|
||||
---Reddit---
|
||||
https://www.reddit.com/r/stupidpol/.rss
|
||||
---News---
|
||||
https://thegrayzone.com/rss
|
||||
https://multipolarista.com/rss
|
||||
https://www.telesurenglish.net/feed/
|
||||
https://theintercept.com/feed/
|
||||
---Tech---
|
||||
https://landchad.net/rss.xml
|
||||
https://videos.lukesmith.xyz/feeds/videos.xml?videoChannelId=2 "~Luke Smith (Videos)"
|
||||
https://pluralistic.net/feed/
|
||||
https://blog.privacyguides.org/feed_rss_created.xml
|
||||
---News---
|
||||
https://thegrayzone.com/rss
|
||||
https://multipolarista.com/rss
|
||||
---Podcasts---
|
||||
https://feeds.simplecast.com/dCXMIpJz "Last Podcast On the Left"
|
||||
http://feeds.soundcloud.com/users/soundcloud:users:572119410/sounds.rss podcasts "Fall of Civilziation"
|
||||
https://feeds.feedburner.com/dancarlin/history?format=xml podcasts "Hardcore History"
|
||||
---Reddit---
|
||||
https://www.reddit.com/r/stupidpol/.rss
|
||||
https://www.reddit.com/r/redscarepod/.rss
|
||||
---Youtube---
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UC3Vuq4Q1bKFtAiKYlwRv3oA
|
||||
https://www.youtube.com/feeds/videos.xml?channel_id=UCXulruMI7BHj3kGyosNa0jA
|
||||
|
||||
53
.config/nvim/init.lua
Normal file
@@ -0,0 +1,53 @@
|
||||
require("config.lazy")
|
||||
|
||||
vim.opt.title = true
|
||||
vim.opt.background = 'dark'
|
||||
vim.opt.guicursor = ''
|
||||
vim.opt.mouse = 'a'
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.clipboard:append('unnamedplus')
|
||||
vim.opt.showmode = false
|
||||
vim.opt.ruler = false
|
||||
vim.opt.laststatus = 0
|
||||
vim.opt.showcmd = false
|
||||
|
||||
vim.cmd('highlight Normal ctermbg=NONE guibg=NONE')
|
||||
|
||||
-- Some basics:
|
||||
vim.api.nvim_set_keymap('n', 'c', '"_c', { noremap = true })
|
||||
vim.opt.compatible = false
|
||||
vim.cmd('filetype plugin on')
|
||||
vim.cmd('syntax on')
|
||||
vim.opt.encoding = 'utf-8'
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- Enable autocompletion:
|
||||
vim.opt.wildmode = { 'longest', 'list', 'full' }
|
||||
|
||||
-- Disables automatic commenting on newline:
|
||||
vim.api.nvim_exec([[
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||
]], false)
|
||||
|
||||
-- Perform dot commands over visual blocks:
|
||||
vim.api.nvim_set_keymap('v', '.', ':normal .<CR>', { noremap = true })
|
||||
|
||||
-- Goyo plugin makes text more readable when writing prose:
|
||||
vim.api.nvim_set_keymap('n', '<leader>f', ':Goyo | set bg=light | set linebreak<CR>', { noremap = true })
|
||||
|
||||
-- Spell-check set to <leader>o, 'o' for 'orthography':
|
||||
vim.api.nvim_set_keymap('n', '<leader>o', ':setlocal spell! spelllang=en_us<CR>', { noremap = true })
|
||||
|
||||
-- Splits open at the bottom and right, which is non-retarded, unlike vim defaults.
|
||||
vim.opt.splitbelow = true
|
||||
vim.opt.splitright = true
|
||||
|
||||
-- Shortcutting split navigation, saving a keypress:
|
||||
vim.api.nvim_set_keymap('n', '<C-h>', '<C-w>h', { noremap = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-j>', '<C-w>j', { noremap = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-k>', '<C-w>k', { noremap = true })
|
||||
vim.api.nvim_set_keymap('n', '<C-l>', '<C-w>l', { noremap = true })
|
||||
|
||||
vim.cmd("colorscheme gruvbox")
|
||||
vim.o.background = "light" -- or "light" for light mode
|
||||
@@ -1,36 +0,0 @@
|
||||
set title
|
||||
set bg=light
|
||||
set go=a
|
||||
set mouse=a
|
||||
set nohlsearch
|
||||
set clipboard+=unnamedplus
|
||||
set noshowmode
|
||||
set noruler
|
||||
set laststatus=0
|
||||
set noshowcmd
|
||||
|
||||
" Some basics:
|
||||
nnoremap c "_c
|
||||
set nocompatible
|
||||
filetype plugin on
|
||||
syntax on
|
||||
set encoding=utf-8
|
||||
set number relativenumber
|
||||
" Enable autocompletion:
|
||||
set wildmode=longest,list,full
|
||||
" Disables automatic commenting on newline:
|
||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||
" Perform dot commands over visual blocks:
|
||||
vnoremap . :normal .<CR>
|
||||
" Goyo plugin makes text more readable when writing prose:
|
||||
map <leader>f :Goyo \| set bg=light \| set linebreak<CR>
|
||||
" Spell-check set to <leader>o, 'o' for 'orthography':
|
||||
map <leader>o :setlocal spell! spelllang=en_us<CR>
|
||||
" Splits open at the bottom and right, which is non-retarded, unlike vim defaults.
|
||||
set splitbelow splitright
|
||||
|
||||
" Shortcutting split navigation, saving a keypress:
|
||||
map <C-h> <C-w>h
|
||||
map <C-j> <C-w>j
|
||||
map <C-k> <C-w>k
|
||||
map <C-l> <C-w>l
|
||||
51
.config/nvim/lua/config/lazy.lua
Normal file
@@ -0,0 +1,51 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- import your plugins
|
||||
-- add the Gruvbox plugin
|
||||
{
|
||||
"ellisonleao/gruvbox.nvim",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require("gruvbox").setup({
|
||||
contrast = "hard", -- can be "soft", "medium" or "hard"
|
||||
palette_overrides = {
|
||||
bright_green = "#a9b665",
|
||||
},
|
||||
overrides = {
|
||||
SignColumn = { bg = "#1e2021" },
|
||||
},
|
||||
transparent_mode = true,
|
||||
})
|
||||
end
|
||||
},
|
||||
},
|
||||
-- Configure any other settings here. See the documentation for more details.
|
||||
-- colorscheme that will be used when installing plugins.
|
||||
install = { colorscheme = { "habamax" } },
|
||||
-- automatically check for plugin updates
|
||||
checker = { enabled = true },
|
||||
})
|
||||
27
.config/nyxt/config.lisp
Normal file
@@ -0,0 +1,27 @@
|
||||
;; vi keybindings
|
||||
(define-configuration buffer
|
||||
((default-modes
|
||||
(pushnew 'nyxt/mode/vi:vi-normal-mode %slot-value%))))
|
||||
|
||||
;; Vi-insert mode for prompt-buffer (minibuffer)
|
||||
(define-configuration prompt-buffer
|
||||
((default-modes (append '(vi-insert-mode) %slot-default%))))
|
||||
|
||||
(defvar *my-search-engines*
|
||||
(list
|
||||
'("ddg" "https://duckduckgo.com/?q=~a" "https://duckduckgo.com"))
|
||||
"List of search engines.")
|
||||
|
||||
(define-configuration context-buffer
|
||||
"Set DuckDuckGo as the default search engine."
|
||||
((search-engines
|
||||
(append %slot-default%
|
||||
(mapcar
|
||||
(lambda (engine) (apply 'make-search-engine engine))
|
||||
*my-search-engines*)))))
|
||||
|
||||
(define-configuration (web-buffer)
|
||||
((default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))
|
||||
|
||||
(defmethod customize-instance ((document-buffer document-buffer) &key)
|
||||
(setf (slot-value document-buffer 'zoom-ratio-default) 1.1))
|
||||
5
.config/qt5ct/colors/manegarm.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
[ColorScheme]
|
||||
active_colors=#ff7cb518, #ff424559, #ff484d6b, #ff95836f, #ff3f444a, #ff3f444a, #ff95836f, #ff3f444a, #ff7cb518, #ff1c1408, #ff1c1408, #ff3f444a, #ff95836f, #ff7cb518, #ffdbc077, #ffdbc077, #ff3f444a, #ff95836f, #ff3f444a, #ffdfdfdf, #ff3f444a
|
||||
disabled_colors=#ff7cb518, #ff424559, #ff484d6b, #ff95836f, #ff3f444a, #ff3f444a, #ff95836f, #ff3f444a, #ff7cb518, #ff1c1408, #ff1c1408, #ff3f444a, #ff95836f, #ff7cb518, #ffdbc077, #ffdbc077, #ff3f444a, #ff95836f, #ff3f444a, #ffdfdfdf, #ff3f444a
|
||||
inactive_colors=#ff7cb518, #ff424559, #ff484d6b, #ff95836f, #ff3f444a, #ff3f444a, #ff95836f, #ff3f444a, #ff7cb518, #ff1c1408, #ff1c1408, #ff3f444a, #ff95836f, #ff7cb518, #ffdbc077, #ffdbc077, #ff3f444a, #ff95836f, #ff3f444a, #ffdfdfdf, #ff3f444a
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
style=Fusion
|
||||
icon_theme=Papirus-Dark
|
||||
custom_palette=true
|
||||
color_scheme_path=~/.config/qt5ct/colors/dracula.conf
|
||||
color_scheme_path=~/.config/qt5ct/colors/manegarm.conf
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
exec_always {
|
||||
gsettings set org.gnome.desktop.interface gtk-theme 'Arc-Darker'
|
||||
gsettings set org.gnome.desktop.interface icon-theme 'Papirus-Dark'
|
||||
}
|
||||
|
||||
#######################
|
||||
# VARIABLES
|
||||
#######################
|
||||
# Directional Keys
|
||||
set $left h
|
||||
set $down j
|
||||
@@ -13,16 +11,20 @@ set $right l
|
||||
set $mod Mod4
|
||||
|
||||
# Terminal
|
||||
set $term alacritty
|
||||
set $term foot
|
||||
|
||||
# Application Launcher
|
||||
#set $menu bemenu-run -i -l 5 -c --margin 500 --fn 'Hack Nerd Font 15'
|
||||
#set $menu bemenu-run -p Run: -l 10 -c -M 500 --fn 'Terminus 17' --tf '#ff4e00' --ff '#dbc077' --hf '#ff4e00'
|
||||
set $menu rofi -show
|
||||
|
||||
#######################
|
||||
# GENERAL KEYBINDS
|
||||
#######################
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
# Start wofi
|
||||
# Start rofi
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Kill focused window
|
||||
@@ -39,18 +41,16 @@ floating_modifier $mod normal
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
#bindsym $mod+Shift+x exec swaymsg -r exit
|
||||
# bindsym $mod+Shift+x exec swaymsg -r exit
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $mod+Shift+comma exec /usr/bin/keepassxc
|
||||
|
||||
## Volume
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +2%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
|
||||
## Volume for non-media button keyboards
|
||||
#bindsym $mod+Shift+n exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
#bindsym $mod+Shift+b exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
#bindsym $mod+Shift+m exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
|
||||
# Media playerctl
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
@@ -101,7 +101,7 @@ bindsym $mod+v splitv
|
||||
# Switch the current container between different layout styles
|
||||
#bindsym $mod+s layout stacking
|
||||
#bindsym $mod+w layout tabbed
|
||||
# bindsym $mod+e layout toggle split
|
||||
#bindsym $mod+e layout toggle split
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
@@ -126,6 +126,7 @@ bindsym $mod+Shift+minus move scratchpad
|
||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
bindsym $mod+minus scratchpad show
|
||||
|
||||
#
|
||||
# Resizing containers:
|
||||
#
|
||||
@@ -162,26 +163,50 @@ bindsym $mod+Mod1+g exec grimshot save output
|
||||
bindsym $mod+Ctrl+g exec grimshot save window
|
||||
|
||||
# Turn the system off
|
||||
bindsym $mod+Shift+e exec wlogout -p layer-shell
|
||||
#bindsym $mod+Shift+e exec wlogout -p layer-shell
|
||||
|
||||
# Bookmarks
|
||||
# bindsym $mod+Insert exec wtype $(grep -v '^#' ~/.local/share/bookmarks/bookmarks | bemenu -p Bookmark: -l 50 -c -M 500 --fn 'Terminus 16' --tf '#ff4e00' --ff '#dbc077' --hf '#ff4e00' | cut -d ' ' -f1)
|
||||
|
||||
# bindsym $mod+Shift+Insert exec ~/.local/bin/bookmark_insert
|
||||
|
||||
# Emojis
|
||||
# bindsym $mod+Shift+e exec wtype $(awk '{print $1, $0}' ~/.local/share/chars/emojis* | bemenu -p Emoji: -l 25 -c -M 500 --fn 'Noto Color Emoji,Terminus 16' --tf '#ff4e00' --ff '#dbc077' --hf '#ff4e00' | awk '{print $1}')
|
||||
|
||||
|
||||
#######################
|
||||
# EXECS
|
||||
#######################
|
||||
|
||||
set $gnome-schema org.gnome.desktop.interface
|
||||
|
||||
# Set GTK/icon theme
|
||||
exec {
|
||||
gsettings set $gnome-schema gtk-theme 'Arc-Darker'
|
||||
gsettings set $gnome-schema icon-theme 'Papirus'
|
||||
gsettings set $gnome-schema cursor-theme 'breeze_cursors'
|
||||
gsettings set $gnome-schema cursor-size 30
|
||||
gsettings set $schema gtk-application-prefer-dark-theme true
|
||||
}
|
||||
|
||||
# Syncthing
|
||||
exec /usr/bin/syncthing &
|
||||
|
||||
# Notifications
|
||||
exec_always dunst
|
||||
exec pgrep -x dunst > /dev/null || dunst
|
||||
|
||||
# Wlsunset (Night Light)
|
||||
exec_always wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500
|
||||
# Gammastep until wlsunset becomes a thing again:
|
||||
exec_always sleep 2 && pgrep -x gammastep > /dev/null || gammastep -l 47.6062:-122.3321 -t 3000:2500
|
||||
|
||||
# udiskie - auto usb mounting
|
||||
exec /usr/bin/udiskie &
|
||||
|
||||
# Network Manager tray applet
|
||||
exec_always /usr/bin/nm-applet
|
||||
exec pgrep -x nm-tray || /usr/bin/nm-tray
|
||||
|
||||
# Bluetooth manager tray applet
|
||||
exec /usr/bin/blueman-applet
|
||||
|
||||
# Clamshell Mode Script
|
||||
#exec_always ~/.config/sway/clamshell.sh
|
||||
|
||||
# KDE polkit
|
||||
exec /usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
|
||||
|
||||
@@ -189,42 +214,45 @@ exec /usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
|
||||
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
exec hash dbus-update-activation-environment 2>/dev/null && dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
|
||||
# Weather script (runs every 900 seconds, updates /tmp/weather.txt for swaybar to read from).
|
||||
exec_always sleep 2 && ~/.config/sway/scripts/weather_swaybar.scm &
|
||||
|
||||
# Idle configuration
|
||||
#exec swayidle -w \
|
||||
# timeout 3200 'swaymsg "output * dpms off"' \
|
||||
# resume 'swaymsg "output * dpms on"' \
|
||||
# before-sleep 'swaylock -f'
|
||||
# timeout 15 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
|
||||
|
||||
#######################
|
||||
# DECORATIONS
|
||||
#######################
|
||||
|
||||
# Gaps
|
||||
smart_gaps off
|
||||
gaps inner 5
|
||||
gaps outer 5
|
||||
|
||||
# Window Borders
|
||||
default_border pixel 3
|
||||
default_floating_border none
|
||||
client.focused "#6400b0" "#7607e6" "#ffffff" "#6400b0"
|
||||
client.focused "#D27A31" "#5F9EA0" "#000000" "#D27A31"
|
||||
|
||||
set $opacity 0.90
|
||||
set $opacity 0.9
|
||||
for_window [class="Emacs"] opacity $opacity
|
||||
for_window [app_id="dolphin"] opacity $opacity
|
||||
for_window [app_id="foot"] opacity $opacity
|
||||
for_window [app_id="strawberry"] opacity $opacity
|
||||
for_window [app_id="Nautilus"] opacity $opacity
|
||||
for_window [class="KeePassXC"] opacity $opacity
|
||||
for_window [class="KeePassXC"] floating enable
|
||||
#for_window [app_id="org.kde.polkit-kde-authentication-agent-1"] floating enable
|
||||
#for_window [app_id="bemenu"] floating enable
|
||||
#for_window [app_id="bemenu"] layer top
|
||||
|
||||
# Gaps
|
||||
smart_gaps on
|
||||
gaps inner 5
|
||||
gaps outer 2
|
||||
|
||||
# Idle configuration
|
||||
exec swayidle -w \
|
||||
timeout 3200 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f'
|
||||
# timeout 15 'if pgrep -x swaylock; then swaymsg "output * dpms off"; fi' \
|
||||
#######################
|
||||
# INPUTS
|
||||
#######################
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
#
|
||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
input type:keyboard {
|
||||
# Capslock key should work as escape key
|
||||
# See /usr/share/X11/xkb/rules/xorg.lst for options
|
||||
@@ -235,31 +263,64 @@ input type:keyboard {
|
||||
repeat_rate 45
|
||||
}
|
||||
|
||||
# Disable trackpad by default
|
||||
#input "1739:52824:SYNA8008:00_06CB:CE58_Touchpad" {
|
||||
# events disable
|
||||
#}
|
||||
|
||||
# Set trackpoint sensitivity on Laptop
|
||||
input "2:10:TPPS/2_Elan_TrackPoint" {
|
||||
pointer_accel 1.0
|
||||
accel_profile "flat"
|
||||
}
|
||||
|
||||
# Set trackpoint sensitivity on Tex Shinobi USB
|
||||
input "1241:1031:USB-HID_Keyboard_Mouse" {
|
||||
pointer_accel 0.3
|
||||
accel_profile "flat"
|
||||
}
|
||||
|
||||
seat seat0 xcursor_theme breeze_cursors 30
|
||||
|
||||
# Hide mouse cursor after inactivity
|
||||
seat * hide_cursor 10000
|
||||
|
||||
# Enable/disable trackpad
|
||||
bindsym $mod+t exec swaymsg input "1739:52824:SYNA8008:00_06CB:CE58_Touchpad" events disabled
|
||||
bindsym $mod+Shift+t exec swaymsg input "1739:52824:SYNA8008:00_06CB:CE58_Touchpad" events enabled
|
||||
|
||||
#######################
|
||||
# OUTPUTS
|
||||
#######################
|
||||
|
||||
# Lid stuff
|
||||
set $laptop eDP-1
|
||||
bindswitch --reload --locked lid:on output $laptop disable
|
||||
bindswitch --reload --locked lid:off output $laptop enable
|
||||
|
||||
# Monitors
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
output HDMI-A-1 scale 2.0
|
||||
output * bg /home/opal/.config/wallpapers/tropical-mountains.jpg fill
|
||||
#output HDMI-A-1 scale 2.0
|
||||
|
||||
# Wallpaper
|
||||
output * bg ~/.config/wallpapers/greek-ruins.jpg fill
|
||||
|
||||
# Enable/Disable extra HDMI screens
|
||||
bindsym $mod+Shift+m output "HDMI-A-1" enable
|
||||
bindsym $mod+Shift+n output "HDMI-A-1" disable
|
||||
|
||||
# Wallpaper
|
||||
|
||||
#######################
|
||||
# WORKSPACES
|
||||
#######################
|
||||
|
||||
# Assign workspaces to numbers
|
||||
set $ws1 number "1"
|
||||
set $ws2 number "2"
|
||||
set $ws3 number "3"
|
||||
set $ws4 number "4"
|
||||
set $ws5 number "5"
|
||||
set $ws6 number "6"
|
||||
set $ws7 number "0"
|
||||
set $ws1 "1:I"
|
||||
set $ws2 "2:II"
|
||||
set $ws3 "3:III"
|
||||
set $ws4 "4:IV"
|
||||
set $ws5 "5:V"
|
||||
set $ws6 "6:VI"
|
||||
set $ws7 "7:VII"
|
||||
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace $ws1
|
||||
@@ -279,7 +340,25 @@ bindsym $mod+Shift+5 move container to workspace $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace $ws6
|
||||
bindsym $mod+Shift+0 move container to workspace $ws7
|
||||
|
||||
# Status Bar:
|
||||
|
||||
#######################
|
||||
# BAR
|
||||
#######################
|
||||
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
position top
|
||||
font "ETBembo 17"
|
||||
height 40
|
||||
icon_theme "Papirus"
|
||||
strip_workspace_numbers yes
|
||||
status_command ~/.config/sway/scripts/bar.sh
|
||||
|
||||
colors {
|
||||
statusline #ffffff
|
||||
background #000000AA
|
||||
inactive_workspace #323232AA #323232AA #5c5c5cAA
|
||||
focused_workspace #323232AA #5c5c5cAA #FFFFFFAA
|
||||
}
|
||||
|
||||
#swaybar_command waybar
|
||||
}
|
||||
|
||||
109
.config/sway/scripts/bar.sh
Executable file
@@ -0,0 +1,109 @@
|
||||
#!/bin/bash
|
||||
|
||||
get_date() {
|
||||
echo -n " $(date '+%a %d/%m/%y %H:%M')"
|
||||
}
|
||||
|
||||
get_battery() {
|
||||
BATTERY_PATH="/sys/class/power_supply/BAT0"
|
||||
|
||||
if [ -f "$BATTERY_PATH/capacity" ]; then
|
||||
BAT_PERCENT=$(cat "$BATTERY_PATH/capacity")
|
||||
BAT_STATUS=$(cat "$BATTERY_PATH/status")
|
||||
|
||||
# Determine battery icon based on percentage
|
||||
case $BAT_PERCENT in
|
||||
9[5-9]|100)
|
||||
ICON="" # Full battery (95%-100%)
|
||||
;;
|
||||
9[0-4])
|
||||
ICON="" # 90%-94% battery
|
||||
;;
|
||||
8[0-9])
|
||||
ICON="" # 80% battery
|
||||
;;
|
||||
7[0-9])
|
||||
ICON="" # 70% battery
|
||||
;;
|
||||
6[0-9])
|
||||
ICON="" # 60% battery
|
||||
;;
|
||||
5[0-9])
|
||||
ICON="" # 50% battery
|
||||
;;
|
||||
4[0-9])
|
||||
ICON="" # 40% battery
|
||||
;;
|
||||
3[0-9])
|
||||
ICON="" # 30% battery
|
||||
;;
|
||||
2[0-9])
|
||||
ICON="" # 20% battery
|
||||
;;
|
||||
1[0-9])
|
||||
ICON="" # 10% battery
|
||||
;;
|
||||
*)
|
||||
ICON="" # Critical battery (less than 10%)
|
||||
;;
|
||||
esac
|
||||
|
||||
# Display charging icon if the battery is charging
|
||||
if [ "$BAT_STATUS" == "Charging" ] || [ "$BAT_STATUS" == "Unknown" ]; then
|
||||
echo -n " $BAT_PERCENT%"
|
||||
else
|
||||
echo -n "$ICON $BAT_PERCENT%"
|
||||
fi
|
||||
|
||||
# Send notifications at critical levels
|
||||
case $BAT_PERCENT in
|
||||
30)
|
||||
notify-send -u normal "Battery at 30%" "Consider plugging in."
|
||||
;;
|
||||
20)
|
||||
notify-send -u normal "Battery at 20%" "Battery is getting low."
|
||||
;;
|
||||
10)
|
||||
notify-send -u critical "Battery at 10%" "Battery is critically low!"
|
||||
;;
|
||||
[5])
|
||||
notify-send -u critical "Battery at 5%" "Battery is about to die!"
|
||||
;;
|
||||
esac
|
||||
|
||||
else
|
||||
echo -n "Battery not found"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
get_volume() {
|
||||
# Get the default sink (output device)
|
||||
SINK=$(pactl info | awk -F': ' '/Default Sink/ {print $2}')
|
||||
|
||||
# Get the volume percentage
|
||||
VOLUME=$(pactl get-sink-volume "$SINK" | awk '{print $5}' | head -n1)
|
||||
|
||||
# Get the mute status
|
||||
MUTE_STATUS=$(pactl get-sink-mute "$SINK" | awk '{print $2}')
|
||||
|
||||
# Check if the output is muted
|
||||
if [ "$MUTE_STATUS" == "no" ]; then
|
||||
# Volume is not muted, display the volume percentage
|
||||
echo -n " $VOLUME"
|
||||
else
|
||||
# Volume is muted, display mute icon
|
||||
echo -n " Muted"
|
||||
fi
|
||||
}
|
||||
|
||||
get_weather() {
|
||||
temp=$(cat /tmp/weather.txt)
|
||||
echo "$temp"
|
||||
}
|
||||
|
||||
|
||||
while true; do
|
||||
echo "$(get_weather) $(get_volume) $(get_date) $(get_battery)"
|
||||
sleep 1
|
||||
done
|
||||
91
.config/sway/scripts/weather_swaybar.scm
Executable file
@@ -0,0 +1,91 @@
|
||||
#!/usr/bin/env guile-3.0
|
||||
!#
|
||||
|
||||
(use-modules (web client)
|
||||
(json)
|
||||
(rnrs bytevectors)
|
||||
(ice-9 receive)
|
||||
(srfi srfi-18)) ;; For sleep functionality
|
||||
|
||||
(define api-key "99631af2d6db903d1f689c7d2cb13764")
|
||||
(define city-id "5809844")
|
||||
(define units "metric")
|
||||
|
||||
;; Construct the openweathermap URL with API token, city ID, and unit of measurement
|
||||
(define weather-url
|
||||
(format #f "http://api.openweathermap.org/data/2.5/weather?id=~a&units=~a&appid=~a"
|
||||
city-id units api-key))
|
||||
|
||||
;; Define weather icons as an association list
|
||||
(define weather-icons
|
||||
'(("clear sky" . "☀️")
|
||||
("few clouds" . "🌤️")
|
||||
("scattered clouds" . "🌥️")
|
||||
("broken clouds" . "☁️")
|
||||
("overcast clouds" . "☁️")
|
||||
("shower rain" . "🌦️")
|
||||
("light rain" . "🌧️")
|
||||
("light intensity drizzle" . "🌧️")
|
||||
("rain" . "🌧️")
|
||||
("moderate rain" . "🌧️")
|
||||
("thunderstorm" . "⛈️")
|
||||
("snow" . "❄️")
|
||||
("mist" . "🌫️")
|
||||
("haze" . "🌫️")
|
||||
("smoke" . "🌫️")
|
||||
("fog" . "🌫️")))
|
||||
|
||||
;; Convert Celsius to Fahrenheit
|
||||
(define (celsius-to-fahrenheit celsius)
|
||||
(+ (* celsius (/ 9 5)) 32))
|
||||
|
||||
;; Get weather icon based on description
|
||||
(define (get-weather-icon description)
|
||||
(or (assoc-ref weather-icons description) "❓"))
|
||||
|
||||
;; Parse and extract weather data from JSON
|
||||
(define (extract-weather-data json-data)
|
||||
(let* ((main (assoc "main" json-data))
|
||||
(temp-c (and main
|
||||
(cdr (assoc "temp" (cdr main)))))
|
||||
;; Round and convert to exact integer
|
||||
(temp-c-value (and temp-c
|
||||
(inexact->exact
|
||||
(round temp-c))))
|
||||
(weather-description
|
||||
(cdr (assoc "description"
|
||||
(vector-ref (cdr (assoc "weather" json-data)) 0)))))
|
||||
;; Return temperature (C, F), description, and icon
|
||||
(values temp-c-value
|
||||
(and temp-c-value
|
||||
(inexact->exact
|
||||
(round (celsius-to-fahrenheit temp-c-value))))
|
||||
weather-description
|
||||
(get-weather-icon weather-description))))
|
||||
|
||||
;; Fetch and display weather data to a file
|
||||
(define (get-weather)
|
||||
;; Request and parse the data
|
||||
(receive (response-status response-body)
|
||||
(http-request weather-url)
|
||||
(let ((json-data (json-string->scm
|
||||
(utf8->string response-body))))
|
||||
(call-with-values
|
||||
(lambda () (extract-weather-data json-data))
|
||||
(lambda (temp-c temp-f description icon)
|
||||
;; Open file for writing
|
||||
(call-with-output-file "/tmp/weather.txt"
|
||||
(lambda (port)
|
||||
;; Write the weather information to the file
|
||||
(if temp-c
|
||||
(format port "~a ~d°C / ~d°F~%" icon temp-c temp-f)
|
||||
(format port "Error: Temperature data not available.\n")))))))))
|
||||
|
||||
;; Run the script indefinitely, fetching weather every 900 seconds (15 minutes)
|
||||
(define (run-indefinitely)
|
||||
(let loop ()
|
||||
(get-weather)
|
||||
(sleep 900) ;; Sleep for 900 seconds (15 minutes)
|
||||
(loop)))
|
||||
|
||||
(run-indefinitely)
|
||||
@@ -1,5 +1,5 @@
|
||||
# Image
|
||||
image=~/.config/wallpapers/dante-bite.jpg
|
||||
image=~/.config/wallpapers/greek-ruins.jpg
|
||||
scaling=fill
|
||||
|
||||
# Indicator
|
||||
|
||||
BIN
.config/wallpapers/blasfemia.png
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 1.4 MiB |
BIN
.config/wallpapers/exterminator.png
Normal file
|
After Width: | Height: | Size: 1.8 MiB |
BIN
.config/wallpapers/greek-ruins.jpg
Normal file
|
After Width: | Height: | Size: 1.9 MiB |
|
Before Width: | Height: | Size: 3.2 MiB |
@@ -1,16 +1,15 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 35,
|
||||
"height": 44,
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"modules-center": ["clock"],
|
||||
"modules-right": ["custom/l_end","custom/wlsunset","custom/padd","pulseaudio", "custom/padd","network", "custom/padd","battery", "tray", "custom/power","custom/padd"],
|
||||
"modules-center": ["clock","custom/padd","custom/weather"],
|
||||
"modules-right": ["custom/l_end","custom/music","custom/padd","pulseaudio","custom/padd","network", "custom/padd","battery","custom/padd", "tray","custom/power","custom/padd"],
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"format": "<span size='large'>{icon}</span>",
|
||||
"format": "{name}",
|
||||
},
|
||||
|
||||
"sway/mode": {
|
||||
"format": "<span style='italic'>{}</span>"
|
||||
},
|
||||
@@ -21,33 +20,43 @@
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{: %H:%M %A %B %d}",
|
||||
"format": " {:%H:%M %D}",
|
||||
"tooltip-format": "<tt><big>{calendar}</big></tt>"
|
||||
},
|
||||
|
||||
"custom/music": {
|
||||
"exec": "~/.config/waybar/scripts/music.scm",
|
||||
"interval": 3,
|
||||
"tooltip": false
|
||||
},
|
||||
"custom/weather": {
|
||||
"exec": "~/.config/waybar/scripts/weather.scm",
|
||||
"interval": 600,
|
||||
"tooltip": false
|
||||
},
|
||||
"battery": {
|
||||
"interval": 30,
|
||||
"interval": 15,
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"full-at": "99",
|
||||
"format": " {capacity}%",
|
||||
"format-good": " {capacity}%", // An empty format will hide the module
|
||||
"format-full": "<span size='large' rise='-1600'></span> Full",
|
||||
"format-charging": "<span size='large' rise='-1600'></span> {capacity}% "
|
||||
"full-at": "100",
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-icons": ["","", "","", "", "", "", "", "", ""],
|
||||
"format-good": " %", // An empty format will hide the module
|
||||
"format-full": "",
|
||||
"format-charging": " {capacity}% "
|
||||
},
|
||||
"custom/wlsunset": {
|
||||
"format": "<span size='large'></span>",
|
||||
"format-icons": ["", ""],
|
||||
"on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500"
|
||||
"format": "{icon}",
|
||||
"format-icons": [""],
|
||||
"on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 3100"
|
||||
},
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format-wifi": " {essid}",
|
||||
"format-ethernet": " {ifname}",
|
||||
"format-disconnected": "",
|
||||
"format-wifi": "",
|
||||
"format-ethernet": "",
|
||||
"format-disconnected": " ",
|
||||
"tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}",
|
||||
"on-click": "alacritty -e nmtui"
|
||||
},
|
||||
@@ -57,17 +66,17 @@
|
||||
"on-click": "pavucontrol",
|
||||
"on-scroll-down": "amixer set Master 3%-",
|
||||
"format": "",
|
||||
"format": "<span size='large'>{icon}</span> {volume}%",
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": "",
|
||||
"format-icons": {
|
||||
"headset": "",
|
||||
"headphone": "",
|
||||
"default": ["", "", " "]
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
},
|
||||
|
||||
"custom/power": {
|
||||
"format": "⏻{}",
|
||||
"format": "",
|
||||
//"exec": "echo ; echo logout",
|
||||
"on-click": "wlogout -p layer-shell",
|
||||
"interval" : 86400, // once every day
|
||||
|
||||
30
.config/waybar/scripts/music.py
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess
|
||||
|
||||
|
||||
def get_playerctl_metadata(field):
|
||||
result = subprocess.run(
|
||||
["playerctl", "--player=strawberry", "metadata", field],
|
||||
stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE,
|
||||
text=True,
|
||||
)
|
||||
if result.returncode == 0:
|
||||
return result.stdout.strip()
|
||||
return None
|
||||
|
||||
|
||||
def abbreviate(text, max_length=30):
|
||||
if len(text) > max_length:
|
||||
return text[: max_length - 3] + "..."
|
||||
return text
|
||||
|
||||
|
||||
artist = get_playerctl_metadata("artist")
|
||||
title = get_playerctl_metadata("title")
|
||||
|
||||
if artist and title:
|
||||
display_text = f"{artist} - {title}"
|
||||
display_text = abbreviate(display_text, 40) # Adjust the max_length as needed
|
||||
print(f" {display_text}")
|
||||
36
.config/waybar/scripts/music.scm
Executable file
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env guile-3.0
|
||||
!#
|
||||
|
||||
(use-modules (ice-9 popen)
|
||||
(ice-9 rdelim))
|
||||
|
||||
;; Function to get playerctl metadata
|
||||
(define (get-playerctl-metadata field)
|
||||
(let* ((command (string-append "playerctl --player=strawberry metadata " field))
|
||||
(port (open-input-pipe command))
|
||||
(output (read-line port)))
|
||||
(close-pipe port)
|
||||
output))
|
||||
|
||||
;; Function to abbreviate a string if it's longer than max-length
|
||||
(define (abbreviate text max-length)
|
||||
(if (> (string-length text) max-length)
|
||||
(string-append (substring text 0 (- max-length 3)) "...")
|
||||
text))
|
||||
|
||||
(define music-note "🎵")
|
||||
|
||||
;; Main logic to display artist and title
|
||||
(let* ((artist (get-playerctl-metadata "artist"))
|
||||
(title (get-playerctl-metadata "title"))
|
||||
(display-text
|
||||
(if (and (string? artist) (string? title))
|
||||
(abbreviate (string-append artist " - " title) 30)
|
||||
#f))) ;; Set to #f if artist or title is not available
|
||||
(if display-text
|
||||
(begin
|
||||
(display music-note) ;; Display the music note icon
|
||||
(display " ")
|
||||
(display display-text)
|
||||
(newline))
|
||||
(display "")))
|
||||
60
.config/waybar/scripts/weather.py
Executable file
@@ -0,0 +1,60 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import requests
|
||||
import json
|
||||
import sys
|
||||
|
||||
API_KEY = "99631af2d6db903d1f689c7d2cb13764"
|
||||
CITY_ID = "5809844"
|
||||
UNITS = "metric"
|
||||
|
||||
def celsius_to_fahrenheit(celsius):
|
||||
return (celsius * 9 / 5) + 32
|
||||
|
||||
|
||||
def get_weather_icon(description):
|
||||
icons = {
|
||||
"clear sky": "☀️",
|
||||
"few clouds": "🌤️",
|
||||
"scattered clouds": "🌥️",
|
||||
"broken clouds": "☁️",
|
||||
"overcast clouds": "☁️",
|
||||
"shower rain": "🌦️",
|
||||
"light rain": "🌧️",
|
||||
"rain": "🌧️",
|
||||
"moderate rain": "🌧️",
|
||||
"thunderstorm": "⛈️",
|
||||
"snow": "❄️",
|
||||
"mist": "🌫️",
|
||||
"haze": "🌫️",
|
||||
"smoke": "🌫️",
|
||||
"fog": "🌫️",
|
||||
}
|
||||
return icons.get(description, "❓")
|
||||
|
||||
|
||||
try:
|
||||
response = requests.get(
|
||||
f"http://api.openweathermap.org/data/2.5/weather?id={CITY_ID}&units={UNITS}&appid={API_KEY}"
|
||||
)
|
||||
response.raise_for_status()
|
||||
weather_data = response.json()
|
||||
#print(weather_data)
|
||||
|
||||
weather_desc = weather_data["weather"][0]["description"]
|
||||
#print(weather_desc)
|
||||
temp_c = round(weather_data["main"]["temp"])
|
||||
temp_f = round(celsius_to_fahrenheit(temp_c))
|
||||
weather_icon = get_weather_icon(weather_desc)
|
||||
|
||||
print(f"{weather_icon} {temp_c}°C / {temp_f}°F")
|
||||
|
||||
except requests.exceptions.RequestException as e:
|
||||
print(f"Error: {e}")
|
||||
print(json.dumps({"text": "", "tooltip": "Could not retrieve weather data"}))
|
||||
sys.exit(1)
|
||||
|
||||
except json.JSONDecodeError:
|
||||
print("Error: Failed to parse JSON response")
|
||||
print(response.content)
|
||||
sys.exit(1)
|
||||
86
.config/waybar/scripts/weather.scm
Executable file
@@ -0,0 +1,86 @@
|
||||
#!/usr/bin/env guile-3.0
|
||||
!#
|
||||
|
||||
(use-modules (web client)
|
||||
(json)
|
||||
(rnrs bytevectors)
|
||||
(ice-9 receive))
|
||||
|
||||
(define api-key "99631af2d6db903d1f689c7d2cb13764")
|
||||
(define city-id "5809844")
|
||||
(define units "metric")
|
||||
|
||||
;; Construct the openweathermap URL with API token, city ID, and unit of measurement
|
||||
(define weather-url
|
||||
(format #f "http://api.openweathermap.org/data/2.5/weather?id=~a&units=~a&appid=~a"
|
||||
city-id units api-key))
|
||||
|
||||
;; Define weather icons as an association list
|
||||
(define weather-icons
|
||||
'(("clear sky" . "☀️")
|
||||
("few clouds" . "🌤️")
|
||||
("scattered clouds" . "🌥️")
|
||||
("broken clouds" . "☁️")
|
||||
("overcast clouds" . "☁️")
|
||||
("shower rain" . "🌦️")
|
||||
("light rain" . "🌧️")
|
||||
("light intensity drizzle" . "🌧️")
|
||||
("rain" . "🌧️")
|
||||
("moderate rain" . "🌧️")
|
||||
("thunderstorm" . "⛈️")
|
||||
("snow" . "❄️")
|
||||
("mist" . "🌫️")
|
||||
("haze" . "🌫️")
|
||||
("smoke" . "🌫️")
|
||||
("fog" . "🌫️")))
|
||||
|
||||
;; Convert Celsius to Fahrenheit
|
||||
(define (celsius-to-fahrenheit celsius)
|
||||
(+ (* celsius (/ 9 5)) 32))
|
||||
|
||||
;; Get weather icon based on description
|
||||
(define (get-weather-icon description)
|
||||
(or (assoc-ref weather-icons description) "❓"))
|
||||
|
||||
;; Parse and extract weather data from JSON
|
||||
(define (extract-weather-data json-data)
|
||||
(let* ((main (assoc "main" json-data))
|
||||
(temp-c (and main
|
||||
(cdr (assoc "temp" (cdr main)))))
|
||||
|
||||
;; Round and convert to exact integer
|
||||
(temp-c-value (and temp-c
|
||||
(inexact->exact
|
||||
(round temp-c))))
|
||||
(weather-description
|
||||
(cdr (assoc "description"
|
||||
(vector-ref (cdr (assoc "weather" json-data)) 0)))))
|
||||
|
||||
;; Return temperature (C, F), description, and icon
|
||||
(values temp-c-value
|
||||
(and temp-c-value
|
||||
(inexact->exact
|
||||
(round (celsius-to-fahrenheit temp-c-value))))
|
||||
weather-description
|
||||
(get-weather-icon weather-description))))
|
||||
|
||||
;; Fetch and display weather data
|
||||
(define (get-weather)
|
||||
;; Request and parse the data
|
||||
(receive (response-status response-body)
|
||||
(http-request weather-url)
|
||||
(let ((json-data (json-string->scm
|
||||
(utf8->string response-body))))
|
||||
(call-with-values
|
||||
(lambda () (extract-weather-data json-data))
|
||||
(lambda (temp-c temp-f description icon)
|
||||
;; For debugging
|
||||
;;(format #t "Description: ~a ~%" description)
|
||||
|
||||
;; Display the weather information
|
||||
(if temp-c
|
||||
(format #t "~a ~d°C / ~d°F~%"
|
||||
icon temp-c temp-f)
|
||||
(display "Error: Temperature data not available.\n")))))))
|
||||
|
||||
(get-weather)
|
||||
@@ -1,92 +1,69 @@
|
||||
\* {
|
||||
/* General styles */
|
||||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: Iosevka, FontAwesome;
|
||||
font-size: 15px;
|
||||
font-family: "ETBembo", "Font Awesome 6 Free";
|
||||
font-size: 20px;
|
||||
min-height: 0;
|
||||
color: #bebebe;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
opacity: 0.7;
|
||||
background: #000000;
|
||||
color: #bebebe;
|
||||
}
|
||||
|
||||
/* Specific module styles */
|
||||
#workspaces button {
|
||||
color: #bebebe;
|
||||
background: transparent;
|
||||
padding: 0px 5px 0px 5px;
|
||||
margin: 5px 10px 0 10px;
|
||||
}
|
||||
#workspaces button.focused {
|
||||
color: white;
|
||||
margin: 5px 10px 0 10px;
|
||||
}
|
||||
|
||||
#workspaces button.focused,
|
||||
#workspaces button.active {
|
||||
color: white;
|
||||
margin: 5px 10px 0 10px;
|
||||
}
|
||||
|
||||
#workspaces button.urgent{
|
||||
margin: 5px 10px 0 10px;
|
||||
padding: 0px 8px 0px 8px;
|
||||
#workspaces button.urgent {
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
border-radius: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
#mode {
|
||||
font-family: "Iosevka";
|
||||
margin: 0px 15px 0px 15px;
|
||||
padding: 0px 12px 0px 12px;
|
||||
color: black;
|
||||
background: white;
|
||||
}
|
||||
|
||||
#battery{
|
||||
color: #bebebe;
|
||||
margin:7px 4px 0 4px;
|
||||
#battery {
|
||||
/* margin: top right bottom left; */
|
||||
margin: 8px 2px 8px 2px;
|
||||
border-radius: 5px;
|
||||
padding: 0px 5px 0px 5px;
|
||||
}
|
||||
}
|
||||
|
||||
#network {
|
||||
color: #bebebe;
|
||||
margin:7px 4px 4px 4px;
|
||||
font-size: 16.5px;
|
||||
border-radius: 6px;
|
||||
/* padding: 0px 5px 0px 5px; */
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
color: #bebebe;
|
||||
margin:7px 4px 0 4px;
|
||||
font-size: 16.5px;
|
||||
border-radius: 6px;
|
||||
/*padding: 0px 0px 0px 0px;*/
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
@keyframes critical {
|
||||
to {
|
||||
background: rgba(187,56,0, 1);
|
||||
border-radius: 7px;
|
||||
margin:7px 4px 0 4px;
|
||||
padding: 3px 8px 2px 8px;
|
||||
background: rgba(187,56,0, 1);
|
||||
border-radius: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes urgent {
|
||||
to {
|
||||
background: rgba(212,140,0, 1);
|
||||
color: black;
|
||||
border-radius: 7px;
|
||||
background: rgba(212,140,0, 1);
|
||||
color: black;
|
||||
border-radius: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
padding: 0px 6px 0px 6px;
|
||||
color: #bebebe;
|
||||
animation-name: critical;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
@@ -94,55 +71,32 @@ window#waybar {
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#clock {
|
||||
border: none;
|
||||
color: #bebebe;
|
||||
font-family: Manjari;
|
||||
font-size: 16.5px;
|
||||
border-radius: 0;
|
||||
padding: 3px 6px 2px 0px;
|
||||
}
|
||||
#clock {}
|
||||
|
||||
#clock:hover {
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
background: inherit;
|
||||
}
|
||||
#custom-weather {}
|
||||
|
||||
#custom-wlsunset {
|
||||
margin:7px 4px 0 4px;
|
||||
color: #bebebe;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
/* padding: 0px px 5px 0px; */
|
||||
}
|
||||
|
||||
#custom-wlsunset:hover {
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
background: inherit;
|
||||
}
|
||||
#custom-music {}
|
||||
|
||||
#custom-wlsunset {}
|
||||
#pulseaudio {
|
||||
background: transparent;
|
||||
margin:7px 4px 0 4px;
|
||||
font-size: 16.5px;
|
||||
color: #bebebe;
|
||||
/* border-radius: 5px; */
|
||||
/* padding: 0px 5px 0px 5px; */
|
||||
}
|
||||
|
||||
#custom-power {
|
||||
/* margin: top right bottom left; */
|
||||
margin:0px 3px 0px 5px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#tray {
|
||||
margin: 7px 15px 3px 4px;
|
||||
/* margin: top right bottom left; */
|
||||
margin: 8px 2px 8px 2px;
|
||||
background: rgba(40,40,40, .65);
|
||||
border-radius: 6px;
|
||||
padding: 5px 3px 5px 5px;
|
||||
padding: 5px 5px 5px 5px;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
color: #bebebe;
|
||||
background: transparent;
|
||||
margin: 7px 4px 0 4px;
|
||||
border-radius: 6px;
|
||||
padding: 0px 5px 0px 5px;
|
||||
}
|
||||
|
||||
5
.gitignore
vendored
@@ -1,3 +1,8 @@
|
||||
.config/qutebrowser/quickmarks
|
||||
.config/borgmatic/config.yaml
|
||||
.config/beets/beets-library.db
|
||||
*.swp
|
||||
lazy-lock.json
|
||||
*.sync-conflict*
|
||||
.stfolder
|
||||
flycheck-packages.el
|
||||
|
||||
30
.local/bin/bookmark_insert
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
clipboard_text=$(wl-paste -p)
|
||||
bookmarks_file="$HOME/.local/share/bookmarks/bookmarks"
|
||||
|
||||
if [ ! -f "$bookmarks_file" ]; then
|
||||
notify-send "Error" "Bookmark file doesn't exist. Please pull the repo."
|
||||
echo "Bookmark file doesn't exist. Please pull the repo." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Trim leading and trailing whitespace from clipboard
|
||||
clipboard_text=$(echo "$clipboard_text" | xargs)
|
||||
|
||||
# Check if clipboard is not empty
|
||||
if [ -n "$clipboard_text" ]; then
|
||||
# Escape special characters for grep and check for exact match
|
||||
if grep -Fxq "$clipboard_text" "$bookmarks_file"; then
|
||||
notify-send "Bookmark already exists!" "$clipboard_text"
|
||||
else
|
||||
# Append the text to the bookmarks file
|
||||
echo "$clipboard_text" >> "$bookmarks_file"
|
||||
notify-send "Bookmark saved" "$clipboard_text"
|
||||
|
||||
# Run git update script
|
||||
sh "$HOME/.local/bin/bookmark_update"
|
||||
fi
|
||||
else
|
||||
notify-send "No text selected" "Please highlight some text to save as a bookmark."
|
||||
fi
|
||||
24
.local/bin/bookmark_update
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Define the paths and repository
|
||||
bookmarks_file="$HOME/.local/share/bookmarks/bookmarks"
|
||||
repo_path="$HOME/.local/share/bookmarks"
|
||||
|
||||
# Pull the latest changes
|
||||
cd "$repo_path" || exit
|
||||
git pull origin master
|
||||
|
||||
# Check if the bookmarks file has changed
|
||||
if [ -n "$(git status --porcelain "$bookmarks_file")" ]; then
|
||||
# Add and commit the bookmarks file
|
||||
git add "$bookmarks_file"
|
||||
git commit -m "Update bookmarks file"
|
||||
|
||||
# Push the changes and log output
|
||||
#git push origin master
|
||||
|
||||
notify-send "Bookmarks updated" "Please push your changes."
|
||||
else
|
||||
notify-send "No changes" "No changes to the bookmarks file."
|
||||
fi
|
||||
|
||||
1630
.local/share/chars/emojis
Normal file
@@ -1,9 +0,0 @@
|
||||
if [[ -z "$XDG_CONFIG_HOME" ]]
|
||||
then
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
fi
|
||||
|
||||
if [[ -d "$XDG_CONFIG_HOME/zsh" ]]
|
||||
then
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
fi
|
||||
@@ -1,298 +0,0 @@
|
||||
(add-to-list 'load-path "~/.guix-profile/bin/guile")
|
||||
(add-to-list 'load-path "~/.guix-profile/share/emacs/site-lisp")
|
||||
|
||||
;; Match Emacs program path to be the same as user shell
|
||||
(defun set-exec-path-from-shell-PATH ()
|
||||
"Set up Emacs' `exec-path' and PATH environment variable to match
|
||||
that used by the user's shell."
|
||||
(interactive)
|
||||
(let ((path-from-shell (replace-regexp-in-string
|
||||
"[ \t\n]*$" "" (shell-command-to-string
|
||||
"$SHELL --login -c 'echo $PATH'"))))
|
||||
(setenv "PATH" path-from-shell)
|
||||
(setq exec-path (split-string path-from-shell path-separator))))
|
||||
|
||||
(set-exec-path-from-shell-PATH)
|
||||
|
||||
;; Setting general info
|
||||
(setq user-full-name "Ry"
|
||||
user-mail-address "ry@opal.sh")
|
||||
|
||||
;; Set line number
|
||||
(setq display-line-numbers-type t)
|
||||
|
||||
;; Keeps text lines from going off screen.
|
||||
(set-default 'truncate-lines nil)
|
||||
;; Add this hook to ERC if I run into trouble with truncated lines in other modes.
|
||||
;; (add-hook 'erc-mode-hook (lambda () (setq-default truncate-lines nil)))
|
||||
|
||||
|
||||
;; Only enable line numbers for certain modes
|
||||
(dolist (mode '(org-mode-hook
|
||||
term-mode-hook
|
||||
shell-mode-hook
|
||||
eshell-mode-hook))
|
||||
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
||||
|
||||
;; Enable clipboard
|
||||
(setq x-select-enable-clipboard t)
|
||||
|
||||
;; load theme
|
||||
(setq doom-theme 'modus-operandi)
|
||||
|
||||
;; Configure Modus theme
|
||||
(use-package modus-themes
|
||||
:init
|
||||
(setq modus-themes-italic-constructs t
|
||||
modus-themes-bold-constructs nil
|
||||
modus-themes-region '(accented bg-only no-extend)
|
||||
modus-themes-org-blocks 'greyscale
|
||||
modus-themes-paren-match 'intense
|
||||
modus-themes-mixed-fonts t)
|
||||
|
||||
;; Load the theme files before enabling a theme
|
||||
(modus-themes-load-themes)
|
||||
:config
|
||||
|
||||
(modus-themes-load-vivendi) ;; OR (modus-themes-load-operandi)
|
||||
:bind ("<f5>" . modus-themes-toggle))
|
||||
|
||||
;; Set fonts
|
||||
(set-face-attribute 'default nil :font "Fira Code" :height 125 :weight 'medium)
|
||||
(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular)
|
||||
(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium)
|
||||
|
||||
(defun rymacs/org-font-setup ()
|
||||
;; Replace list hyphen with dot
|
||||
(font-lock-add-keywords 'org-mode
|
||||
'(("^ *\\([-]\\) "
|
||||
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1)
|
||||
"•"))))))
|
||||
|
||||
;; Set faces for heading levels
|
||||
(dolist (face '((org-level-1 . 1.2)
|
||||
(org-level-2 . 1.1)
|
||||
(org-level-3 . 1.05)
|
||||
(org-level-4 . 1.0)
|
||||
(org-level-5 . 1.1)
|
||||
(org-level-6 . 1.1)
|
||||
(org-level-7 . 1.1)
|
||||
(org-level-8 . 1.1)))
|
||||
(set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face)))
|
||||
|
||||
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
||||
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'line-number nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'line-number-current-line nil :inherit 'fixed-pitch))
|
||||
|
||||
;; Set org agenda dir
|
||||
(setq org-directory "~/org/")
|
||||
|
||||
(defun rymacs/org-mode-setup ()
|
||||
(org-indent-mode)
|
||||
(variable-pitch-mode 1)
|
||||
(visual-line-mode 1)
|
||||
(setq org-startup-folded t))
|
||||
|
||||
(use-package org
|
||||
:commands (org-capture org-agenda)
|
||||
:hook (org-mode . rymacs/org-mode-setup)
|
||||
:config
|
||||
(setq org-ellipsis " ▾")
|
||||
(setq org-agenda-start-with-log-mode t)
|
||||
(setq org-log-done 'time)
|
||||
(setq org-log-into-drawer t)
|
||||
|
||||
(setq org-agenda-files
|
||||
'("~/org/projects/"
|
||||
"~/org/tasks/"
|
||||
))
|
||||
|
||||
(require 'org-habit)
|
||||
(add-to-list 'org-modules 'org-habit)
|
||||
(setq org-habit-graph-column 60)
|
||||
|
||||
(setq org-todo-keywords
|
||||
'((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
||||
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)")))
|
||||
|
||||
(setq org-refile-targets
|
||||
'(("archive.org" :maxlevel . 1)
|
||||
("planner.org" :maxlevel . 1)))
|
||||
|
||||
;; Save Org buffers after refiling!
|
||||
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
||||
|
||||
(setq org-tag-alist
|
||||
'((:startgroup)
|
||||
; Put mutually exclusive tags here
|
||||
(:endgroup)
|
||||
("@errand" . ?E)
|
||||
("@home" . ?H)
|
||||
("@work" . ?W)
|
||||
("agenda" . ?a)
|
||||
("planning" . ?p)
|
||||
("publish" . ?P)
|
||||
("batch" . ?b)
|
||||
("note" . ?n)
|
||||
("idea" . ?i)))
|
||||
|
||||
;; Configure custom agenda views
|
||||
(setq org-agenda-custom-commands
|
||||
'(("d" "Dashboard"
|
||||
((agenda "" ((org-deadline-warning-days 7)))
|
||||
(todo "NEXT"
|
||||
((org-agenda-overriding-header "Next Tasks")))
|
||||
(tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects")))))
|
||||
|
||||
("n" "Next Tasks"
|
||||
((todo "NEXT"
|
||||
((org-agenda-overriding-header "Next Tasks")))))
|
||||
|
||||
;; Low-effort next actions
|
||||
("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0"
|
||||
((org-agenda-overriding-header "Low Effort Tasks")
|
||||
(org-agenda-max-todos 20)
|
||||
(org-agenda-files org-agenda-files)))))
|
||||
|
||||
;; Create capture templates
|
||||
(setq org-capture-templates
|
||||
`(("t" "Tasks")
|
||||
("tt" "Task" entry (file+olp "~/org/planner/tasks.org" "Inbox")
|
||||
"* TODO %?\n %U\n %a\n %i" :empty-lines 1)
|
||||
|
||||
("p" "Projects")
|
||||
("pp" "Project File" entry (file+olp "~/org/projects/auto-infra-overview.org" "Inbox")
|
||||
"* TODO %?\n %U\n %a\n %i" :empty-lines 1)))
|
||||
;; Init font setup
|
||||
(rymacs/org-font-setup))
|
||||
|
||||
;; Change default pretty bullets to circles
|
||||
(use-package org-bullets
|
||||
:after org
|
||||
:hook (org-mode . org-bullets-mode)
|
||||
:custom
|
||||
(org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●")))
|
||||
|
||||
;; Creates margins, and centerrs content in org mode.
|
||||
(defun rymacs/org-mode-visual-fill ()
|
||||
(setq visual-fill-column-width 100
|
||||
visual-fill-column-center-text t)
|
||||
(visual-fill-column-mode 1))
|
||||
|
||||
(use-package visual-fill-column
|
||||
:hook (org-mode . rymacs/org-mode-visual-fill))
|
||||
|
||||
(use-package ob-racket
|
||||
:after org
|
||||
:config
|
||||
(add-hook 'ob-racket-pre-runtime-library-load-hook
|
||||
#'ob-racket-raco-make-runtime-library))
|
||||
|
||||
;; Load languages for babel code blocks.
|
||||
(with-eval-after-load 'org
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((emacs-lisp . t)
|
||||
(racket . t)
|
||||
(python . t)
|
||||
(scheme . t)
|
||||
(javascript . t)
|
||||
(html . t)
|
||||
(css . t)
|
||||
(lisp . t)))
|
||||
|
||||
(push '("conf-unix" . conf-unix) org-src-lang-modes))
|
||||
|
||||
(setq geiser-default-implementation '(guile))
|
||||
|
||||
;; Make shortcuts to easily create babel source code blocks.
|
||||
(with-eval-after-load 'org
|
||||
(require 'org-tempo)
|
||||
|
||||
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
||||
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
|
||||
(add-to-list 'org-structure-template-alist '("py" . "src python"))
|
||||
(add-to-list 'org-structure-template-alist '("yml" . "src yaml"))
|
||||
(add-to-list 'org-structure-template-alist '("scm" . "src scheme"))
|
||||
(add-to-list 'org-structure-template-alist '("js" . "src javascript"))
|
||||
(add-to-list 'org-structure-template-alist '("html" . "src html"))
|
||||
(add-to-list 'org-structure-template-alist '("css" . "src css"))
|
||||
(add-to-list 'org-structure-template-alist '("rt" . "src racket"))
|
||||
(add-to-list 'org-structure-template-alist '("cl" . "src lisp")))
|
||||
|
||||
;; ;; Define a function that automatically executes rymacs/org-babel-tangle-config (a wrapper around org-babel-tangle) when saving this file.
|
||||
;; (defun rymacs/org-babel-tangle-config ()
|
||||
;; (when (string-equal (file-name-directory (buffer-file-name))
|
||||
;; (expand-file-name "~/.dotfiles/.config/doom"))
|
||||
|
||||
;; (let ((org-confirm-babel-evaluate nil))
|
||||
;; (org-babel-tangle))))
|
||||
|
||||
;; (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'rymacs/org-babel-tangle-config)))
|
||||
|
||||
(after! sly
|
||||
(load "/home/ry/quicklisp/clhs-use-local.el" t)
|
||||
(setq sly-lisp-implementations
|
||||
'((sbcl ("/bin/sbcl" "-L" "sbcl" "-Q" "run") :coding-system utf-8-unix)
|
||||
(ccl ("/usr/local/bin/ccl64" :coding-system utf-8-unix)))))
|
||||
|
||||
(defmacro define-sly-lisp (name)
|
||||
`(defun ,name () (interactive) (let ((sly-default-lisp ',name)) (sly))))
|
||||
|
||||
(define-sly-lisp sbcl)
|
||||
(define-sly-lisp ccl)
|
||||
|
||||
(use-package mu4e
|
||||
:config
|
||||
;; This is set to 't' to avoid mail syncing issues when using mbsync
|
||||
(setq mu4e-change-filenames-when-moving t)
|
||||
|
||||
;; Refresh mail using isync every 5 minutes
|
||||
(setq mu4e-update-interval (* 5 60))
|
||||
(setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsync/mbsyncrc")
|
||||
(setq mu4e-maildir "~/Mail")
|
||||
|
||||
(setq mu4e-contexts
|
||||
(list
|
||||
;; Opal.sh
|
||||
(make-mu4e-context
|
||||
:name "Ry P."
|
||||
:match-func
|
||||
(lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p "/opal.sh" (mu4e-message-field msg :maildir))))
|
||||
|
||||
:vars '((user-mail-address . "ry@opal.sh")
|
||||
(user-full-name . "Ry P.")
|
||||
(mu4e-drafts-folder . "/opal.sh/Drafts")
|
||||
(mu4e-sent-folder . "/opal.sh/Sent")
|
||||
(mu4e-trash-folder . "/opal.sh/Trash")))))
|
||||
|
||||
(setq mu4e-maildir-shortcuts
|
||||
'(("/opal.sh/Inbox" . ?i)
|
||||
("/opal.sh/Sent" . ?s)
|
||||
("/opal.sh/Trash" . ?t)
|
||||
("/opal.sh/Drafts" . ?d))))
|
||||
|
||||
(setq erc-server "irc.libera.chat" ;sets default server
|
||||
erc-nick "opalvaults" ; Sets nick
|
||||
erc-user-full-name "opalvaults"
|
||||
erc-track-shorten-start 8
|
||||
erc-kill-buffer-on-part t
|
||||
erc-auto-query 'bury
|
||||
erc-fill-column 90
|
||||
erc-fill-function 'erc-fill-static
|
||||
erc-fill-static-center 20
|
||||
erc-track-visibility nil
|
||||
erc-interpret-mirc-color t
|
||||
erc-rename-buffers t
|
||||
erc-track-exclude-server-buffer t)
|
||||
@@ -1,189 +0,0 @@
|
||||
;;; init.el -*- lexical-binding: t; -*-
|
||||
|
||||
;; This file controls what Doom modules are enabled and what order they load
|
||||
;; in. Remember to run 'doom sync' after modifying it!
|
||||
|
||||
;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's
|
||||
;; documentation. There you'll find a "Module Index" link where you'll find
|
||||
;; a comprehensive list of Doom's modules and what flags they support.
|
||||
|
||||
;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or
|
||||
;; 'C-c c k' for non-vim users) to view its documentation. This works on
|
||||
;; flags as well (those symbols that start with a plus).
|
||||
;;
|
||||
;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its
|
||||
;; directory (for easy access to its source code).
|
||||
|
||||
(doom! :input
|
||||
;;chinese
|
||||
;;japanese
|
||||
;;layout ; auie,ctsrnm is the superior home row
|
||||
|
||||
:completion
|
||||
company ; the ultimate code completion backend
|
||||
;;helm ; the *other* search engine for love and life
|
||||
;;ido ; the other *other* search engine...
|
||||
;;ivy ; a search engine for love and life
|
||||
vertico ; the search engine of the future
|
||||
|
||||
:ui
|
||||
;;deft ; notational velocity for Emacs
|
||||
doom ; what makes DOOM look the way it does
|
||||
;;doom-dashboard ; a nifty splash screen for Emacs
|
||||
;;doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||
(emoji +unicode) ; 🙂
|
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
;;hydra
|
||||
;;indent-guides ; highlighted indent columns
|
||||
ligatures ; ligatures and symbols to make your code pretty again
|
||||
;;minimap ; show a map of the code on the side
|
||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||
;;nav-flash ; blink cursor line after big motions
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
ophints ; highlight the region an operation acts on
|
||||
(popup +defaults) ; tame sudden yet inevitable temporary windows
|
||||
tabs ; a tab bar for Emacs
|
||||
;;treemacs ; a project drawer, like neotree but cooler
|
||||
unicode ; extended unicode support for various languages
|
||||
vc-gutter ; vcs diff in the fringe
|
||||
vi-tilde-fringe ; fringe tildes to mark beyond EOB
|
||||
;;window-select ; visually switch windows
|
||||
workspaces ; tab emulation, persistence & separate workspaces
|
||||
;;zen ; distraction-free coding or writing
|
||||
|
||||
:editor
|
||||
(evil +everywhere); come to the dark side, we have cookies
|
||||
file-templates ; auto-snippets for empty files
|
||||
fold ; (nigh) universal code folding
|
||||
(format +onsave) ; automated prettiness
|
||||
;;god ; run Emacs commands without modifier keys
|
||||
;;lispy ; vim for lisp, for people who don't like vim
|
||||
;;multiple-cursors ; editing in many places at once
|
||||
;;objed ; text object editing for the innocent
|
||||
;;parinfer ; turn lisp into python, sort of
|
||||
;;rotate-text ; cycle region at point between text candidates
|
||||
snippets ; my elves. They type so I don't have to
|
||||
word-wrap ; soft wrapping with language-aware indent
|
||||
|
||||
:emacs
|
||||
dired ; making dired pretty [functional]
|
||||
electric ; smarter, keyword-based electric-indent
|
||||
ibuffer ; interactive buffer management
|
||||
undo ; persistent, smarter undo for your inevitable mistakes
|
||||
vc ; version-control and Emacs, sitting in a tree
|
||||
|
||||
:term
|
||||
eshell ; the elisp shell that works everywhere
|
||||
;;shell ; simple shell REPL for Emacs
|
||||
;;term ; basic terminal emulator for Emacs
|
||||
vterm ; the best terminal emulation in Emacs
|
||||
|
||||
:checkers
|
||||
syntax ; tasing you for every semicolon you forget
|
||||
;;(spell +flyspell) ; tasing you for misspelling mispelling
|
||||
grammar ; tasing grammar mistake every you make
|
||||
|
||||
:tools
|
||||
;;ansible
|
||||
;;debugger ; FIXME stepping through code, to help you add bugs
|
||||
;;direnv
|
||||
docker
|
||||
;;editorconfig ; let someone else argue about tabs vs spaces
|
||||
;;ein ; tame Jupyter notebooks with emacs
|
||||
(eval +overlay) ; run code, run (also, repls)
|
||||
;;gist ; interacting with github gists
|
||||
lookup ; navigate your code and its documentation
|
||||
lsp ; M-x vscode
|
||||
magit ; a git porcelain for Emacs
|
||||
;;make ; run make tasks from Emacs
|
||||
;;pass ; password manager for nerds
|
||||
pdf ; pdf enhancements
|
||||
;;prodigy ; FIXME managing external services & code builders
|
||||
;;rgb ; creating color strings
|
||||
;;taskrunner ; taskrunner for all your projects
|
||||
;;terraform ; infrastructure as code
|
||||
;;tmux ; an API for interacting with tmux
|
||||
;;upload ; map local to remote projects via ssh/ftp
|
||||
|
||||
:os
|
||||
(:if IS-MAC macos) ; improve compatibility with macOS
|
||||
tty ; improve the terminal Emacs experience
|
||||
|
||||
:lang
|
||||
;;agda ; types of types of types of types...
|
||||
;;beancount ; mind the GAAP
|
||||
;;cc ; C > C++ == 1
|
||||
;;clojure ; java with a lisp
|
||||
common-lisp ; if you've seen one lisp, you've seen them all
|
||||
;;coq ; proofs-as-programs
|
||||
;;crystal ; ruby at the speed of c
|
||||
;;csharp ; unity, .NET, and mono shenanigans
|
||||
;;data ; config/data formats
|
||||
;;(dart +flutter) ; paint ui and not much else
|
||||
;;dhall
|
||||
;;elixir ; erlang done right
|
||||
;;elm ; care for a cup of TEA?
|
||||
emacs-lisp ; drown in parentheses
|
||||
;;erlang ; an elegant language for a more civilized age
|
||||
;;ess ; emacs speaks statistics
|
||||
;;factor
|
||||
;;faust ; dsp, but you get to keep your soul
|
||||
;;fsharp ; ML stands for Microsoft's Language
|
||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||
;;gdscript ; the language you waited for
|
||||
;;(go +lsp) ; the hipster dialect
|
||||
;;(haskell +lsp) ; a language that's lazier than I am
|
||||
;;hy ; readability of scheme w/ speed of python
|
||||
;;idris ; a language you can depend on
|
||||
;;json ; At least it ain't XML
|
||||
;;(java +meghanada) ; the poster child for carpal tunnel syndrome
|
||||
;;javascript ; all(hope(abandon(ye(who(enter(here))))))
|
||||
;;julia ; a better, faster MATLAB
|
||||
;;kotlin ; a better, slicker Java(Script)
|
||||
;;latex ; writing papers in Emacs has never been so fun
|
||||
;;lean ; for folks with too much to prove
|
||||
;;ledger ; be audit you can be
|
||||
;;lua ; one-based indices? one-based indices
|
||||
markdown ; writing docs for people to ignore
|
||||
;;nim ; python + lisp at the speed of c
|
||||
;;nix ; I hereby declare "nix geht mehr!"
|
||||
;;ocaml ; an objective camel
|
||||
org ; organize your plain life in plain text
|
||||
;;php ; perl's insecure younger brother
|
||||
;;plantuml ; diagrams for confusing people more
|
||||
;;purescript ; javascript, but functional
|
||||
python ; beautiful is better than ugly
|
||||
;;qt ; the 'cutest' gui framework ever
|
||||
racket ; a DSL for DSLs
|
||||
;;raku ; the artist formerly known as perl6
|
||||
;;rest ; Emacs as a REST client
|
||||
;;rst ; ReST in peace
|
||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||
;;scala ; java, but good
|
||||
(scheme +guile) ; a fully conniving family of lisps
|
||||
sh ; she sells {ba,z,fi}sh shells on the C xor
|
||||
;;sml
|
||||
;;solidity ; do you need a blockchain? No.
|
||||
;;swift ; who asked for emoji variables?
|
||||
;;terra ; Earth and Moon in alignment for performance.
|
||||
web ; the tubes
|
||||
yaml ; JSON, but readable
|
||||
;;zig ; C, but simpler
|
||||
|
||||
:email
|
||||
(mu4e +org +gmail)
|
||||
;;notmuch
|
||||
;;(wanderlust +gmail)
|
||||
|
||||
:app
|
||||
;;calendar
|
||||
;;emms
|
||||
;;everywhere ; *leave* Emacs!? You must be joking
|
||||
irc ; how neckbeards socialize
|
||||
(rss +org) ; emacs as an RSS reader
|
||||
;;twitter ; twitter client https://twitter.com/vnought
|
||||
|
||||
:config
|
||||
;;literate
|
||||
(default +bindings +smartparens))
|
||||
@@ -1,57 +0,0 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; $DOOMDIR/packages.el
|
||||
|
||||
;; To install a package with Doom you must declare them here and run 'doom sync'
|
||||
;; on the command line, then restart Emacs for the changes to take effect -- or
|
||||
;; use 'M-x doom/reload'.
|
||||
|
||||
(package! org-bullets)
|
||||
(package! modus-themes)
|
||||
(package! org-pomodoro)
|
||||
(package! visual-fill-column)
|
||||
(package! tide)
|
||||
(package! ob-racket
|
||||
:recipe (:host github :repo "hasu/emacs-ob-racket"))
|
||||
|
||||
;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror:
|
||||
;(package! some-package)
|
||||
|
||||
;; To install a package directly from a remote git repo, you must specify a
|
||||
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||
;; https://github.com/raxod502/straight.el#the-recipe-format
|
||||
;(package! another-package
|
||||
; :recipe (:host github :repo "username/repo"))
|
||||
|
||||
;; If the package you are trying to install does not contain a PACKAGENAME.el
|
||||
;; file, or is located in a subdirectory of the repo, you'll need to specify
|
||||
;; `:files' in the `:recipe':
|
||||
;(package! this-package
|
||||
; :recipe (:host github :repo "username/repo"
|
||||
; :files ("some-file.el" "src/lisp/*.el")))
|
||||
|
||||
;; If you'd like to disable a package included with Doom, you can do so here
|
||||
;; with the `:disable' property:
|
||||
;(package! builtin-package :disable t)
|
||||
|
||||
;; You can override the recipe of a built in package without having to specify
|
||||
;; all the properties for `:recipe'. These will inherit the rest of its recipe
|
||||
;; from Doom or MELPA/ELPA/Emacsmirror:
|
||||
;(package! builtin-package :recipe (:nonrecursive t))
|
||||
;(package! builtin-package-2 :recipe (:repo "myfork/package"))
|
||||
|
||||
;; Specify a `:branch' to install a package from a particular branch or tag.
|
||||
;; This is required for some packages whose default branch isn't 'master' (which
|
||||
;; our package manager can't deal with; see raxod502/straight.el#279)
|
||||
;(package! builtin-package :recipe (:branch "develop"))
|
||||
|
||||
;; Use `:pin' to specify a particular commit to install.
|
||||
;(package! builtin-package :pin "1a2b3c4d5e")
|
||||
|
||||
|
||||
;; Doom's packages are pinned to a specific commit and updated from release to
|
||||
;; release. The `unpin!' macro allows you to unpin single packages...
|
||||
;(unpin! pinned-package)
|
||||
;; ...or multiple packages
|
||||
;(unpin! pinned-package another-pinned-package)
|
||||
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
|
||||
;(unpin! t)
|
||||
@@ -1,52 +0,0 @@
|
||||
[global]
|
||||
monitor = 0
|
||||
follow = keyboard
|
||||
geometry = "250x50-24+24"
|
||||
indicate_hidden = yes
|
||||
shrink = no
|
||||
separator_height = 0
|
||||
padding = 16
|
||||
horizontal_padding = 24
|
||||
frame_width = 2
|
||||
sort = no
|
||||
idle_threshold = 120
|
||||
font = Noto Sans 8
|
||||
line_height = 4
|
||||
markup = full
|
||||
format = "<b>%s</b>\n%b"
|
||||
alignment = left
|
||||
show_age_threshold = 60
|
||||
word_wrap = yes
|
||||
ignore_newline = no
|
||||
stack_duplicates = false
|
||||
hide_duplicate_count = yes
|
||||
show_indicators = no
|
||||
icon_position = off
|
||||
sticky_history = yes
|
||||
history_length = 20
|
||||
browser = /usr/bin/icecat -new-tab
|
||||
always_run_script = true
|
||||
title = Dunst
|
||||
class = Dunst
|
||||
|
||||
[shortcuts]
|
||||
close = ctrl+space
|
||||
close_all = ctrl+shift+space
|
||||
history = ctrl+grave
|
||||
context = ctrl+shift+period
|
||||
|
||||
[urgency_low]
|
||||
background = "#2f343f"
|
||||
foreground = "#d8dee8"
|
||||
timeout = 2
|
||||
|
||||
[urgency_normal]
|
||||
background = "#2f343f"
|
||||
foreground = "#d8dee8"
|
||||
timeout = 4
|
||||
|
||||
[urgency_critical]
|
||||
background = "#2f343f"
|
||||
foreground = "#d8dee8"
|
||||
frame_color = "#bf616a"
|
||||
timeout = 0
|
||||
31
archive/elfeed/elfeed.org
Normal file
@@ -0,0 +1,31 @@
|
||||
* Feeds
|
||||
** Emacs
|
||||
*** https://sachachua.com/blog/feed/index.xml :tech: :emacs:
|
||||
*** https://protesilaos.com/master.xml :tech: :emacs: :philosophy:
|
||||
*** https://systemcrafters.net/rss/news.xml :tech: :emacs:
|
||||
|
||||
** Reddit
|
||||
*** https://www.reddit.com/r/stupidpol/.rss :reddit: :politics:
|
||||
|
||||
** News
|
||||
*** https://thegrayzone.com/rss :news: :politics:
|
||||
*** https://multipolarista.com/rss :news: :politics:
|
||||
*** https://www.telesurenglish.net/feed/ :news: :politics:
|
||||
*** https://theintercept.com/feed/ :news: :politics:
|
||||
*** https://www.dropsitenews.com/feed :news: :politics:
|
||||
|
||||
** Tech
|
||||
*** https://landchad.net/rss.xml :tech:
|
||||
*** https://videos.lukesmith.xyz/feeds/videos.xml?videoChannelId=2 :tech: :linux:
|
||||
*** https://pluralistic.net/feed/ :tech: :privacy:
|
||||
*** https://blog.privacyguides.org/feed_rss_created.xml :tech: :privacy:
|
||||
|
||||
** Podcasts
|
||||
*** https://feeds.simplecast.com/dCXMIpJz :podcast: :history:
|
||||
*** http://feeds.soundcloud.com/users/soundcloud:users:572119410/sounds.rss :podcast: :music:
|
||||
*** https://feeds.feedburner.com/dancarlin/history?format=xml :podcast: :history:
|
||||
|
||||
** Youtube
|
||||
*** https://www.youtube.com/channel/UC_bOcLgDdfE1whPDIwx3M_g :youtube: :travel:
|
||||
*** https://www.youtube.com/feeds/videos.xml?channel_id=UC8uT9cgJorJPWu7ITLGo9Ww :youtube: :tech: :retro:
|
||||
*** https://www.youtube.com/feeds/videos.xml?channel_id=UC0aanx5rpr7D1M7KCFYzrLQ :youtube: :commentary: :politics:
|
||||
@@ -1,2 +0,0 @@
|
||||
clear lock
|
||||
keycode 66 = Escape Caps_Lock NoSymbol NoSymbol
|
||||
@@ -1,49 +0,0 @@
|
||||
### WINDOW SETTINGS
|
||||
|
||||
# Stick window to all workspaces: 0=No, 1=Yes
|
||||
stick=1
|
||||
# Undecorated window: 0=No, 1=Yes
|
||||
undecorated=1
|
||||
# Close the window if it loses focus: 0=No, 1=Yes
|
||||
close_on_unfocus=1
|
||||
# Initial window position: 'center', 'mouse' or 'none'
|
||||
position=mouse
|
||||
# Move the window horizontally from its intial position
|
||||
x_offset=1
|
||||
# Move the window vertically from its initial position
|
||||
y_offset=1
|
||||
|
||||
### COLORS
|
||||
|
||||
# Window background specified with CSS color
|
||||
background_color=#000000
|
||||
# Text color specified with CSS color
|
||||
foreground_color=#dfdfdf
|
||||
# Dates of previous and following months, colored with CSS
|
||||
fringe_date_color=#404040
|
||||
# Highlight color for the current date
|
||||
highlight_color=#c61740
|
||||
|
||||
### FONTS
|
||||
|
||||
# Month font with CSS size and weight
|
||||
month_font_size=xx-large
|
||||
month_font_weight=normal
|
||||
|
||||
# Weekday column header font with CSS size and weight
|
||||
day_font_size=75%
|
||||
day_font_weight=normal
|
||||
|
||||
# Date number font with CSS size and weight
|
||||
date_font_size=x-large
|
||||
date_font_weight=bold
|
||||
|
||||
# Arrow font, ie '<' and '>' with CSS size and weight
|
||||
arrow_font_size = xx-large
|
||||
arrow_font_weight = bold
|
||||
|
||||
### CALENDAR SETTINGS
|
||||
|
||||
# Sunday=0, Monday=1, Tuesday=2, Wednesday=3
|
||||
# Thursday=4, Friday=5, Saturday=6
|
||||
week_start=1
|
||||
@@ -1,206 +0,0 @@
|
||||
;; (in-package :nyxt)
|
||||
;; (load "~/quicklisp/setup.lisp")
|
||||
;; (ql:quickload 'slynk)
|
||||
;; ;; (push #p"~/common-lisp/sly/" asdf:*central-registry*)
|
||||
;; ;; (asdf:load-system :slynk)
|
||||
;; ;; (slynk:create-server :port 4008)
|
||||
|
||||
(load-after-system :slynk (nyxt-init-file "my-slink.lisp"))
|
||||
;; (load-after-system :slynk "~/.config/nyxt/my-slynk.lisp")
|
||||
|
||||
;; Vim-normal mode by default
|
||||
(define-configuration buffer
|
||||
((default-modes (append '(vi-normal-mode) '(blocker-mode) %slot-default%))))
|
||||
|
||||
;; Vim-insert for prompt-buffer (minibuffer)
|
||||
(define-configuration prompt-buffer
|
||||
((default-modes (append '(vi-insert-mode) %slot-default%))))
|
||||
|
||||
;; Keybindings
|
||||
;; (Note: Override Map will override any other custom keybindings so use a prefix key.)
|
||||
(define-configuration buffer
|
||||
((override-map (define-key %slot-default%
|
||||
"C-x s" 'nyxt/web-mode:search-buffers
|
||||
"C-x u" 'copy-username
|
||||
"C-x p" 'copy-password))))
|
||||
|
||||
;;Message buffer color configuration
|
||||
(define-configuration window
|
||||
((message-buffer-style
|
||||
(str:concat
|
||||
%slot-default%
|
||||
(cl-css:css
|
||||
'((body
|
||||
:background-color "black"
|
||||
:color "white")))))))
|
||||
|
||||
;; Mini-buffer style
|
||||
(define-configuration prompt-buffer
|
||||
((style (str:concat
|
||||
%slot-default%
|
||||
(cl-css:css
|
||||
'((body
|
||||
:background-color "black"
|
||||
:color "white")
|
||||
("#prompt-area"
|
||||
:background-color "black")
|
||||
;; The area you input text in.
|
||||
("#input"
|
||||
:background-color "#EDDDAA")
|
||||
(".source-name"
|
||||
:color "black"
|
||||
:background-color "#125458")
|
||||
(".source-content"
|
||||
:background-color "black")
|
||||
(".source-content th"
|
||||
:border "1px solid #125458"
|
||||
:background-color "black")
|
||||
;; The currently highlighted option.
|
||||
("#selection"
|
||||
:background-color "#125458"
|
||||
:color "black")
|
||||
(.marked :background-color "#8B3A3A"
|
||||
:font-weight "bold"
|
||||
:color "white")
|
||||
(.selected :background-color "black"
|
||||
:color "white")))))))
|
||||
|
||||
;; Internal buffer (help, bookmarks, buffers panel)
|
||||
(define-configuration (internal-buffer panel-buffer)
|
||||
((style
|
||||
(str:concat
|
||||
%slot-default%
|
||||
(cl-css:css
|
||||
'((title
|
||||
:color "#CD5C5C")
|
||||
(body
|
||||
:background-color "black"
|
||||
:color "lightgray")
|
||||
(hr
|
||||
:color "lightgray")
|
||||
(a
|
||||
:color "#125458")
|
||||
(.button
|
||||
:color "white"
|
||||
:background-color "#125458")))))))
|
||||
|
||||
;; Link hints in web mode
|
||||
(define-configuration nyxt/web-mode:web-mode
|
||||
((nyxt/web-mode:highlighted-box-style
|
||||
(cl-css:css
|
||||
'((".nyxt-hint.nyxt-highlight-hint"
|
||||
:background "#125458"))))))
|
||||
|
||||
;; Modeline
|
||||
(define-configuration status-buffer
|
||||
((style (str:concat
|
||||
%slot-default%
|
||||
(cl-css:css
|
||||
;; Arrows on the left.
|
||||
'(("#controls"
|
||||
:border-top "1px solid white"
|
||||
:background-color "#125458")
|
||||
;; To the right of the arrows.
|
||||
("#url"
|
||||
:background-color "black"
|
||||
:color "white"
|
||||
:border-top "1px solid white")
|
||||
;; Far to the right.
|
||||
("#modes"
|
||||
:background-color "black"
|
||||
:border-top "1px solid white")
|
||||
;; The center segment.
|
||||
("#tabs"
|
||||
:background-color "#125458"
|
||||
:color "black"
|
||||
:border-top "1px solid white")))))))
|
||||
|
||||
;; Overriding dark theme colors
|
||||
(define-configuration nyxt/style-mode:dark-mode
|
||||
((style #.(cl-css:css
|
||||
'((*
|
||||
:background-color "black !important"
|
||||
:background-image "none !important"
|
||||
:color "white")
|
||||
(a
|
||||
:background-color "black !important"
|
||||
:background-image "none !important"
|
||||
:color "#556B2F !important"))))))
|
||||
|
||||
(define-configuration password:keepassxc-interface
|
||||
((password:password-file "/home/opal/.config/keepassxc/.kdbx-store/opal.kdbx")))
|
||||
|
||||
(define-configuration buffer
|
||||
((password-interface (make-instance 'password:user-keepassxc-interface))))
|
||||
|
||||
;; (define-command set-url (&key (prefill-current-url-p t))
|
||||
;; "Set the URL for the current buffer, completing with history."
|
||||
;; (let ((history (set-url-history *browser*))
|
||||
;; (actions (list (make-command buffer-load* (suggestion-values)
|
||||
;; "Load first selected URL in current buffer and the rest in new buffer(s)."
|
||||
;; (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) (rest suggestion-values))
|
||||
;; (buffer-load (url (first suggestion-values))))
|
||||
;; (make-command new-buffer-load (suggestion-values)
|
||||
;; "Load URL(s) in new buffer(s)."
|
||||
;; (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) (rest suggestion-values))
|
||||
;; (make-buffer-focus :url (url (first suggestion-values)))))))
|
||||
;; (pushnew-url-history history (url (current-buffer)))
|
||||
;; (prompt
|
||||
;; :prompt "Open URL"
|
||||
;; :input (if prefill-current-url-p
|
||||
;; (render-url (url (current-buffer))) "")
|
||||
;; :history history
|
||||
;; :sources (list (make-instance 'user-new-url-or-search-source :actions actions)
|
||||
;; (make-instance 'bookmark-source :actions actions)
|
||||
;; (make-instance 'user-global-history-source :actions actions)
|
||||
;; (make-instance 'search-engine-url-source :actions actions)))))
|
||||
|
||||
;; (define-command set-url-new-buffer (&key (prefill-current-url-p t))
|
||||
;; "Prompt for a URL and set it in a new focused buffer."
|
||||
;; (let ((history (set-url-history *browser*))
|
||||
;; (actions (list (make-command new-buffer-load (suggestion-values)
|
||||
;; "Load URL(s) in new buffer(s)"
|
||||
;; (mapc (lambda (suggestion) (make-buffer :url (url suggestion)))
|
||||
;; (rest suggestion-values))
|
||||
;; (make-buffer-focus :url (url (first suggestion-values)))))))
|
||||
;; (pushnew-url-history history (url (current-buffer)))
|
||||
;; (prompt
|
||||
;; :prompt "Open URL in new buffer"
|
||||
;; :input (if prefill-current-url-p
|
||||
;; (render-url (url (current-buffer))) "")
|
||||
;; :history history
|
||||
;; :sources (list (make-instance 'user-new-url-or-search-source :actions actions)
|
||||
;; (make-instance 'bookmark-source :actions actions)
|
||||
;; (make-instance 'user-global-history-source :actions actions)
|
||||
;; (make-instance 'search-engine-url-source :actions actions)))))
|
||||
|
||||
;; I would like to implement redirection, or some extension to handle it for me.
|
||||
;; todo: Redirect reddit to teddit
|
||||
;; (defun old-reddit-handler (request-data)
|
||||
;; (let ((url (url request-data)))
|
||||
;; (setf (url request-data)
|
||||
;; (if (search "reddit.com" (quri:uri-host url))
|
||||
;; (progn
|
||||
;; (setf (quri:uri-host url) "old.reddit.com")
|
||||
;; (log:info "Switching to old Reddit: ~s" (render-url url))
|
||||
;; url)
|
||||
;; url)))
|
||||
;; request-data)
|
||||
|
||||
;; (define-configuration web-buffer
|
||||
;; ((request-resource-hook
|
||||
;; (hooks:add-hook %slot-default% (make-handler-resource #'old-reddit-handler)))))
|
||||
;; (See url-dispatching-handler for a simpler way to achieve the same result.)
|
||||
|
||||
;; (defun nyxt-init-file (&optional subpath)
|
||||
;; "Return SUBPATH relative to `*init-file-path*'.
|
||||
;; Return nil if `*init-file-path*' is nil.
|
||||
|
||||
;; Example:
|
||||
;; If we want to load a define-command procedure that lives in ~/path/to/nyxt/config/dir/my-slink.lisp
|
||||
;; (load-after-system :slynk (nyxt-init-file \"my-slink.lisp\"))"
|
||||
;; (if subpath
|
||||
;; (uiop:subpathname* (uiop:pathname-directory-pathname
|
||||
;; (expand-path *init-file-path*))
|
||||
;; subpath)
|
||||
;; (expand-path *init-file-path*)))
|
||||
@@ -1,10 +0,0 @@
|
||||
(define-command-global start-slynk (&optional (slynk-port *swank-port*))
|
||||
"Start a Slynk server that can be connected to, for instance, in
|
||||
Emacs via SLY.
|
||||
|
||||
Warning: This allows Nyxt to be controlled remotely, that is, to execute
|
||||
arbitrary code with the privileges of the user running Nyxt. Make sure
|
||||
you understand the security risks associated with this before running
|
||||
this command."
|
||||
(slynk:create-server :port slynk-port :dont-close t)
|
||||
(echo "Slynk server started at port ~a" slynk-port))
|
||||
@@ -1,506 +0,0 @@
|
||||
#+title: Emacs Custom Configuration File
|
||||
#+PROPERTY: header-args:emacs-lisp :tangle ~/Dotfiles/.config/doom/config.el :mkdirp yes :lexical yes
|
||||
|
||||
* Configuration
|
||||
:PROPERTIES:
|
||||
:VISITBILITY: children
|
||||
:END:
|
||||
** Table of Contents :TOC_4_gh:
|
||||
- [[#configuration][Configuration]]
|
||||
- [[#general][General]]
|
||||
- [[#load-paths][Load Paths]]
|
||||
- [[#user-info][User Info]]
|
||||
- [[#visual][Visual]]
|
||||
- [[#misc][Misc]]
|
||||
- [[#theme][Theme]]
|
||||
- [[#fonts][Fonts]]
|
||||
- [[#org][Org]]
|
||||
- [[#fonts-and-symbols][Fonts and Symbols]]
|
||||
- [[#general-1][General]]
|
||||
- [[#better-heading-bullets][Better Heading Bullets]]
|
||||
- [[#center-org-buffers][Center Org Buffers]]
|
||||
- [[#org-babel][Org Babel]]
|
||||
- [[#racket-specific-language][Racket Specific Language]]
|
||||
- [[#babel-languages][Babel Languages]]
|
||||
- [[#soure-block-creation-shortcuts][Soure Block Creation Shortcuts]]
|
||||
- [[#babel-configuration-file-automation-hook][Babel Configuration File Automation Hook]]
|
||||
- [[#programming-languages][Programming Languages]]
|
||||
- [[#common-lisp][Common Lisp]]
|
||||
- [[#mu4e-e-mail][Mu4e (E-mail)]]
|
||||
- [[#erc-irc][ERC (IRC)]]
|
||||
|
||||
** General
|
||||
*** Load Paths
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'load-path "~/.guix-profile/bin/guile")
|
||||
(add-to-list 'load-path "~/.guix-profile/share/emacs/site-lisp")
|
||||
|
||||
;; Match Emacs program path to be the same as user shell
|
||||
(defun set-exec-path-from-shell-PATH ()
|
||||
"Set up Emacs' `exec-path' and PATH environment variable to match
|
||||
that used by the user's shell."
|
||||
(interactive)
|
||||
(let ((path-from-shell (replace-regexp-in-string
|
||||
"[ \t\n]*$" "" (shell-command-to-string
|
||||
"$SHELL --login -c 'echo $PATH'"))))
|
||||
(setenv "PATH" path-from-shell)
|
||||
(setq exec-path (split-string path-from-shell path-separator))))
|
||||
|
||||
(set-exec-path-from-shell-PATH)
|
||||
#+end_src
|
||||
|
||||
*** User Info
|
||||
#+begin_src emacs-lisp
|
||||
;; Setting general info
|
||||
(setq user-full-name "Ry"
|
||||
user-mail-address "ry@opal.sh")
|
||||
#+end_src
|
||||
|
||||
*** Visual
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
;; Set line number
|
||||
(setq display-line-numbers-type t)
|
||||
|
||||
;; Keeps text lines from going off screen.
|
||||
(set-default 'truncate-lines nil)
|
||||
;; Add this hook to ERC if I run into trouble with truncated lines in other modes.
|
||||
;; (add-hook 'erc-mode-hook (lambda () (setq-default truncate-lines nil)))
|
||||
|
||||
|
||||
;; Only enable line numbers for certain modes
|
||||
(dolist (mode '(org-mode-hook
|
||||
term-mode-hook
|
||||
shell-mode-hook
|
||||
eshell-mode-hook))
|
||||
(add-hook mode (lambda () (display-line-numbers-mode 0))))
|
||||
#+end_src
|
||||
|
||||
*** Misc
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Enable clipboard
|
||||
(setq x-select-enable-clipboard t)
|
||||
#+end_src
|
||||
|
||||
** Theme
|
||||
#+begin_src emacs-lisp
|
||||
;; load theme
|
||||
(setq doom-theme 'modus-operandi)
|
||||
|
||||
;; Configure Modus theme
|
||||
(use-package modus-themes
|
||||
:init
|
||||
(setq modus-themes-italic-constructs t
|
||||
modus-themes-bold-constructs nil
|
||||
modus-themes-region '(accented bg-only no-extend)
|
||||
modus-themes-org-blocks 'greyscale
|
||||
modus-themes-paren-match 'intense
|
||||
modus-themes-mixed-fonts t)
|
||||
|
||||
;; Load the theme files before enabling a theme
|
||||
(modus-themes-load-themes)
|
||||
:config
|
||||
|
||||
(modus-themes-load-vivendi) ;; OR (modus-themes-load-operandi)
|
||||
:bind ("<f5>" . modus-themes-toggle))
|
||||
|
||||
#+end_src
|
||||
|
||||
** Fonts
|
||||
Using [[https://github.com/tonsky/FiraCode][Fira Code]] + Fira Code Retina.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
;; Set fonts
|
||||
(set-face-attribute 'default nil :font "Fira Code" :height 125 :weight 'medium)
|
||||
(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular)
|
||||
(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium)
|
||||
|
||||
#+end_src
|
||||
|
||||
** Org
|
||||
*** Fonts and Symbols
|
||||
Here we are setting general font configuration in order to make editing in org mode a bit more streamlined to look at.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
(defun rymacs/org-font-setup ()
|
||||
;; Replace list hyphen with dot
|
||||
(font-lock-add-keywords 'org-mode
|
||||
'(("^ *\\([-]\\) "
|
||||
(0 (prog1 () (compose-region (match-beginning 1) (match-end 1)
|
||||
"•"))))))
|
||||
|
||||
;; Set faces for heading levels
|
||||
(dolist (face '((org-level-1 . 1.2)
|
||||
(org-level-2 . 1.1)
|
||||
(org-level-3 . 1.05)
|
||||
(org-level-4 . 1.0)
|
||||
(org-level-5 . 1.1)
|
||||
(org-level-6 . 1.1)
|
||||
(org-level-7 . 1.1)
|
||||
(org-level-8 . 1.1)))
|
||||
(set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face)))
|
||||
|
||||
;; Ensure that anything that should be fixed-pitch in Org files appears that way
|
||||
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-table nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-formula nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch))
|
||||
(set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch))
|
||||
(set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'line-number nil :inherit 'fixed-pitch)
|
||||
(set-face-attribute 'line-number-current-line nil :inherit 'fixed-pitch))
|
||||
|
||||
#+end_src
|
||||
|
||||
*** General
|
||||
|
||||
Main Org/Agenda configuration.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Set org agenda dir
|
||||
(setq org-directory "~/org/")
|
||||
|
||||
(defun rymacs/org-mode-setup ()
|
||||
(org-indent-mode)
|
||||
(variable-pitch-mode 1)
|
||||
(visual-line-mode 1)
|
||||
(setq org-startup-folded t))
|
||||
|
||||
(use-package org
|
||||
:commands (org-capture org-agenda)
|
||||
:hook (org-mode . rymacs/org-mode-setup)
|
||||
:config
|
||||
(setq org-ellipsis " ▾")
|
||||
(setq org-agenda-start-with-log-mode t)
|
||||
(setq org-log-done 'time)
|
||||
(setq org-log-into-drawer t)
|
||||
|
||||
(setq org-agenda-files
|
||||
'("~/org/projects/"
|
||||
"~/org/tasks/"
|
||||
))
|
||||
|
||||
(require 'org-habit)
|
||||
(add-to-list 'org-modules 'org-habit)
|
||||
(setq org-habit-graph-column 60)
|
||||
|
||||
(setq org-todo-keywords
|
||||
'((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)")
|
||||
(sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)")))
|
||||
|
||||
(setq org-refile-targets
|
||||
'(("archive.org" :maxlevel . 1)
|
||||
("planner.org" :maxlevel . 1)))
|
||||
|
||||
;; Save Org buffers after refiling!
|
||||
(advice-add 'org-refile :after 'org-save-all-org-buffers)
|
||||
|
||||
(setq org-tag-alist
|
||||
'((:startgroup)
|
||||
; Put mutually exclusive tags here
|
||||
(:endgroup)
|
||||
("@errand" . ?E)
|
||||
("@home" . ?H)
|
||||
("@work" . ?W)
|
||||
("agenda" . ?a)
|
||||
("planning" . ?p)
|
||||
("publish" . ?P)
|
||||
("batch" . ?b)
|
||||
("note" . ?n)
|
||||
("idea" . ?i)))
|
||||
|
||||
;; Configure custom agenda views
|
||||
(setq org-agenda-custom-commands
|
||||
'(("d" "Dashboard"
|
||||
((agenda "" ((org-deadline-warning-days 7)))
|
||||
(todo "NEXT"
|
||||
((org-agenda-overriding-header "Next Tasks")))
|
||||
(tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects")))))
|
||||
|
||||
("n" "Next Tasks"
|
||||
((todo "NEXT"
|
||||
((org-agenda-overriding-header "Next Tasks")))))
|
||||
|
||||
;; Low-effort next actions
|
||||
("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0"
|
||||
((org-agenda-overriding-header "Low Effort Tasks")
|
||||
(org-agenda-max-todos 20)
|
||||
(org-agenda-files org-agenda-files)))))
|
||||
|
||||
;; Create capture templates
|
||||
(setq org-capture-templates
|
||||
`(("t" "Tasks")
|
||||
("tt" "Task" entry (file+olp "~/org/planner/tasks.org" "Inbox")
|
||||
"* TODO %?\n %U\n %a\n %i" :empty-lines 1)
|
||||
|
||||
("p" "Projects")
|
||||
("pp" "Project File" entry (file+olp "~/org/projects/auto-infra-overview.org" "Inbox")
|
||||
"* TODO %?\n %U\n %a\n %i" :empty-lines 1)))
|
||||
;; Init font setup
|
||||
(rymacs/org-font-setup))
|
||||
|
||||
#+end_src
|
||||
|
||||
*** Better Heading Bullets
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
;; Change default pretty bullets to circles
|
||||
(use-package org-bullets
|
||||
:after org
|
||||
:hook (org-mode . org-bullets-mode)
|
||||
:custom
|
||||
(org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●")))
|
||||
|
||||
#+end_src
|
||||
|
||||
*** Center Org Buffers
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
;; Creates margins, and centerrs content in org mode.
|
||||
(defun rymacs/org-mode-visual-fill ()
|
||||
(setq visual-fill-column-width 100
|
||||
visual-fill-column-center-text t)
|
||||
(visual-fill-column-mode 1))
|
||||
|
||||
(use-package visual-fill-column
|
||||
:hook (org-mode . rymacs/org-mode-visual-fill))
|
||||
|
||||
#+end_src
|
||||
|
||||
*** Org Babel
|
||||
Org Babel allows us to evaluate source code blocks within org mode. With this functionality, we can tell org babel to insert the content of the source block codes into any file specified by using the org-babel-tangle function.
|
||||
**** Racket Specific Language
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ob-racket
|
||||
:after org
|
||||
:config
|
||||
(add-hook 'ob-racket-pre-runtime-library-load-hook
|
||||
#'ob-racket-raco-make-runtime-library))
|
||||
#+end_src
|
||||
|
||||
**** Babel Languages
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
;; Load languages for babel code blocks.
|
||||
(with-eval-after-load 'org
|
||||
(org-babel-do-load-languages
|
||||
'org-babel-load-languages
|
||||
'((emacs-lisp . t)
|
||||
(racket . t)
|
||||
(python . t)
|
||||
(scheme . t)
|
||||
(javascript . t)
|
||||
(html . t)
|
||||
(css . t)
|
||||
(lisp . t)))
|
||||
|
||||
(push '("conf-unix" . conf-unix) org-src-lang-modes))
|
||||
|
||||
(setq geiser-default-implementation '(guile))
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
| guile |
|
||||
|
||||
**** Soure Block Creation Shortcuts
|
||||
Here we use a package called org-tempo.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
;; Make shortcuts to easily create babel source code blocks.
|
||||
(with-eval-after-load 'org
|
||||
(require 'org-tempo)
|
||||
|
||||
(add-to-list 'org-structure-template-alist '("sh" . "src shell"))
|
||||
(add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp"))
|
||||
(add-to-list 'org-structure-template-alist '("py" . "src python"))
|
||||
(add-to-list 'org-structure-template-alist '("yml" . "src yaml"))
|
||||
(add-to-list 'org-structure-template-alist '("scm" . "src scheme"))
|
||||
(add-to-list 'org-structure-template-alist '("js" . "src javascript"))
|
||||
(add-to-list 'org-structure-template-alist '("html" . "src html"))
|
||||
(add-to-list 'org-structure-template-alist '("css" . "src css"))
|
||||
(add-to-list 'org-structure-template-alist '("rt" . "src racket"))
|
||||
(add-to-list 'org-structure-template-alist '("cl" . "src lisp")))
|
||||
#+end_src
|
||||
|
||||
**** Babel Configuration File Automation Hook
|
||||
|
||||
TODO: This needs to be fixed, or find an equiv.
|
||||
Since we don't want to have to manually use the org-babel-tangle function everytime we make changes to the corresponding .org file, we create an automation hook that executes the function every time we save.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
;; ;; Define a function that automatically executes rymacs/org-babel-tangle-config (a wrapper around org-babel-tangle) when saving this file.
|
||||
;; (defun rymacs/org-babel-tangle-config ()
|
||||
;; (when (string-equal (file-name-directory (buffer-file-name))
|
||||
;; (expand-file-name "~/.dotfiles/.config/doom"))
|
||||
|
||||
;; (let ((org-confirm-babel-evaluate nil))
|
||||
;; (org-babel-tangle))))
|
||||
|
||||
;; (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'rymacs/org-babel-tangle-config)))
|
||||
|
||||
#+end_src
|
||||
|
||||
# *** Org Roam
|
||||
# I use Org Roam as an alternative to writing traditional notes. Instead of long sprawling .org files, each note in Org roam is a excerpt of a specific idea or topic that has links to other notes made with Org Roam. Roam also allows you to pull up a buffer to look at which notes are linked in other notes. This creates a spawling network of information that is useful, quick to draw information from, and can create a notetaking experience that is interactive and seamless.
|
||||
|
||||
# #+begin_src emacs-lisp
|
||||
|
||||
# (use-package org-roam
|
||||
# :init
|
||||
# (setq org-roam-v2-ack t)
|
||||
# :custom
|
||||
# (org-roam-directory "~/roam/notes/")
|
||||
# (org-roam-completion-everywhere t)
|
||||
# (org-roam-capture-templates
|
||||
# '(("d" "default" plain
|
||||
# "%?"
|
||||
# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||
# :unnarrowed t)
|
||||
# ("r" "resources" plain
|
||||
# (file "~/roam/templates/resource-template.org")
|
||||
# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||
# :unnarrowed t)
|
||||
# ("f" "files" plain
|
||||
# (file "~/roam/templates/res-file-note-temp.org")
|
||||
# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||
# :unnarrowed t)
|
||||
# ("c" "cli" plain
|
||||
# (file "~/roam/templates/commands-template.org")
|
||||
# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n")
|
||||
# :unnarrowed t)))
|
||||
# :bind (("C-c n l" . org-roam-buffer-toggle)
|
||||
# ("C-c n f" . org-roam-node-find)
|
||||
# ("C-c n i" . org-roam-node-insert)
|
||||
# ("C-c n I" . org-roam-node-insert-immediate)
|
||||
# ("C-c n p" . my/org-roam-find-project)
|
||||
# :map org-mode-map
|
||||
# ("C-M-i" . completion-at-point)
|
||||
# :map org-roam-dailies-map
|
||||
# ("Y" . org-roam-dailies-capture-yesterday)
|
||||
# ("T" . org-roam-dailies-capture-tomorrow))
|
||||
# :bind-keymap
|
||||
# ("C-c n d" . org-roam-dailies-map)
|
||||
# :config
|
||||
# (require 'org-roam-dailies) ;; Ensure the keymap is available
|
||||
# (org-roam-db-autosync-mode))
|
||||
|
||||
# ;; Function to enable the ability to quickly insert a link without
|
||||
# ;; opening a capture buffer.
|
||||
# (defun org-roam-node-insert-immediate (arg &rest args)
|
||||
# (interactive "P")
|
||||
# (let ((args (cons arg args))
|
||||
# (org-roam-capture-templates (list (append (car org-roam-capture-templates)
|
||||
# '(:immediate-finish t)))))
|
||||
# (apply #'org-roam-node-insert args)))
|
||||
|
||||
# #+end_src
|
||||
|
||||
# *** Deft Configuration
|
||||
|
||||
# Deft is a package that helps browse and filter plain text files. I use it to search through org-roam notes.
|
||||
|
||||
# #+begin_src emacs-lisp
|
||||
|
||||
# (use-package deft
|
||||
# :after org
|
||||
# :bind
|
||||
# ("C-c n d" . deft)
|
||||
# :custom
|
||||
# (deft-recursive t)
|
||||
# (deft-use-filter-string-for-filename t)
|
||||
# (deft-default-extension "org")
|
||||
# (deft-directory org-roam-directory))
|
||||
|
||||
# #+end_src
|
||||
** Programming Languages
|
||||
*** Common Lisp
|
||||
#+begin_src emacs-lisp
|
||||
(after! sly
|
||||
(load "/home/ry/quicklisp/clhs-use-local.el" t)
|
||||
(setq sly-lisp-implementations
|
||||
'((sbcl ("/bin/sbcl" "-L" "sbcl" "-Q" "run") :coding-system utf-8-unix)
|
||||
(ccl ("/usr/local/bin/ccl64" :coding-system utf-8-unix)))))
|
||||
|
||||
(defmacro define-sly-lisp (name)
|
||||
`(defun ,name () (interactive) (let ((sly-default-lisp ',name)) (sly))))
|
||||
|
||||
(define-sly-lisp sbcl)
|
||||
(define-sly-lisp ccl)
|
||||
#+end_src
|
||||
|
||||
** Mu4e (E-mail)
|
||||
|
||||
Account Information:
|
||||
- IMAP: imap.opal.sh -- 993
|
||||
- SMTP smtp.opal.sh -- 587
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
(use-package mu4e
|
||||
:config
|
||||
;; This is set to 't' to avoid mail syncing issues when using mbsync
|
||||
(setq mu4e-change-filenames-when-moving t)
|
||||
|
||||
;; Refresh mail using isync every 5 minutes
|
||||
(setq mu4e-update-interval (* 5 60))
|
||||
(setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsync/mbsyncrc")
|
||||
(setq mu4e-maildir "~/Mail")
|
||||
|
||||
(setq mu4e-contexts
|
||||
(list
|
||||
;; Opal.sh
|
||||
(make-mu4e-context
|
||||
:name "Ry P."
|
||||
:match-func
|
||||
(lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p "/opal.sh" (mu4e-message-field msg :maildir))))
|
||||
|
||||
:vars '((user-mail-address . "ry@opal.sh")
|
||||
(user-full-name . "Ry P.")
|
||||
(mu4e-drafts-folder . "/opal.sh/Drafts")
|
||||
(mu4e-sent-folder . "/opal.sh/Sent")
|
||||
(mu4e-trash-folder . "/opal.sh/Trash")))))
|
||||
|
||||
(setq mu4e-maildir-shortcuts
|
||||
'(("/opal.sh/Inbox" . ?i)
|
||||
("/opal.sh/Sent" . ?s)
|
||||
("/opal.sh/Trash" . ?t)
|
||||
("/opal.sh/Drafts" . ?d))))
|
||||
|
||||
#+end_src
|
||||
|
||||
** ERC (IRC)
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
(setq erc-server "irc.libera.chat" ;sets default server
|
||||
erc-nick "opalvaults" ; Sets nick
|
||||
erc-user-full-name "opalvaults"
|
||||
erc-track-shorten-start 8
|
||||
erc-kill-buffer-on-part t
|
||||
erc-auto-query 'bury
|
||||
erc-fill-column 90
|
||||
erc-fill-function 'erc-fill-static
|
||||
erc-fill-static-center 20
|
||||
erc-track-visibility nil
|
||||
erc-interpret-mirc-color t
|
||||
erc-rename-buffers t
|
||||
erc-track-exclude-server-buffer t)
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: t
|
||||
|
||||
0
archive/qutebrowser/bookmarks/urls
Normal file
@@ -1,92 +1,152 @@
|
||||
// Config //
|
||||
configuration {
|
||||
modi: "drun";
|
||||
font: "Fira Code Regular 10";
|
||||
show-icons: true;
|
||||
icon-theme: "Reversal-dark";
|
||||
display-drun: "";
|
||||
drun-display-format: "{name}";
|
||||
sidebar-mode: false;
|
||||
modi: "drun,filebrowser,window";
|
||||
show-icons: true;
|
||||
display-drun: "";
|
||||
display-run: "";
|
||||
display-filebrowser: "";
|
||||
display-window: "";
|
||||
drun-display-format: "{name}";
|
||||
window-format: "{w}{t}";
|
||||
font: "Hack Font 10";
|
||||
icon-theme: "Papirus";
|
||||
}
|
||||
|
||||
@theme "/dev/null"
|
||||
@theme "~/.config/rofi/graphite-mono.rasi"
|
||||
|
||||
* {
|
||||
bg: #151515;
|
||||
fg: #e8e8d3;
|
||||
accent: #687363;
|
||||
button: #1c1c1c;
|
||||
|
||||
background-color: @bg;
|
||||
text-color: @fg;
|
||||
}
|
||||
|
||||
// Main //
|
||||
window {
|
||||
border-radius: 7px;
|
||||
width: 50%;
|
||||
padding: 32px;
|
||||
height: 200px;
|
||||
width: 600px;
|
||||
transparency: "real";
|
||||
fullscreen: false;
|
||||
enabled: true;
|
||||
cursor: "default";
|
||||
spacing: 0px;
|
||||
padding: 0px;
|
||||
border: 2px;
|
||||
border-radius: 40px;
|
||||
border-color: @main-br;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
prompt {
|
||||
background-color: @button;
|
||||
enabled: true;
|
||||
padding: 0.5% 32px 0% -0.5%;
|
||||
font: "Rubik 10";
|
||||
}
|
||||
|
||||
entry {
|
||||
placeholder: "Search";
|
||||
background-color: @button;
|
||||
placeholder-color: @fg;
|
||||
expand: true;
|
||||
padding: 0.15% 0% 0% 0%;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
children: [ prompt, entry ];
|
||||
background-color: @button;
|
||||
expand: false;
|
||||
border-radius: 6px;
|
||||
margin: 0%;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
listview {
|
||||
columns: 4;
|
||||
lines: 3;
|
||||
cycle: false;
|
||||
dynamic: true;
|
||||
layout: vertical;
|
||||
}
|
||||
|
||||
mainbox {
|
||||
children: [ inputbar, listview ];
|
||||
spacing: 2%;
|
||||
padding: 2% 1% 2% 1%;
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 0px;
|
||||
orientation: vertical;
|
||||
children: [ "listbox" , "inputmode" ];
|
||||
background-color: rgba(32, 32, 32, 0.88);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Lists //
|
||||
listbox {
|
||||
padding: 0px;
|
||||
spacing: 0px;
|
||||
orientation: horizontal;
|
||||
children: [ "listview" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
listview {
|
||||
padding: 10px;
|
||||
spacing: 0px;
|
||||
enabled: true;
|
||||
columns: 5;
|
||||
cycle: true;
|
||||
dynamic: true;
|
||||
scrollbar: false;
|
||||
layout: vertical;
|
||||
reverse: false;
|
||||
fixed-height: true;
|
||||
fixed-columns: true;
|
||||
cursor: "default";
|
||||
background-color: @main-bg;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
|
||||
|
||||
// Inputs //
|
||||
inputmode {
|
||||
padding: 0px;
|
||||
spacing: 0px;
|
||||
orientation: horizontal;
|
||||
children: [ "inputbar" , "mode-switcher" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
inputbar {
|
||||
enabled: true;
|
||||
width: 400px;
|
||||
height: 0px;
|
||||
spacing: 0px;
|
||||
padding: 30px 10px 30px 65px;
|
||||
children: [ "entry" ];
|
||||
background-color: transparent;
|
||||
}
|
||||
entry {
|
||||
vertical-align: 0.5;
|
||||
border-radius: 50px;
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 10px;
|
||||
text-color: @main-fg;
|
||||
background-color: @main-bg;
|
||||
}
|
||||
|
||||
|
||||
// Modes //
|
||||
mode-switcher {
|
||||
width: 200px;
|
||||
orientation: horizontal;
|
||||
enabled: true;
|
||||
padding: 30px 65px 30px 0px;
|
||||
spacing: 10px;
|
||||
background-color: transparent;
|
||||
}
|
||||
button {
|
||||
cursor: pointer;
|
||||
padding: 0px;
|
||||
border-radius: 50px;
|
||||
background-color: @main-bg;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
button selected {
|
||||
background-color: @main-fg;
|
||||
text-color: @main-bg;
|
||||
}
|
||||
|
||||
|
||||
// Elements //
|
||||
element {
|
||||
orientation: vertical;
|
||||
padding: 2% 0% 2% 0%;
|
||||
orientation: vertical;
|
||||
enabled: true;
|
||||
spacing: 0px;
|
||||
padding: 10px;
|
||||
border-radius: 25px;
|
||||
cursor: pointer;
|
||||
background-color: transparent;
|
||||
text-color: @main-fg;
|
||||
}
|
||||
@media(max-aspect-ratio: 1.8) {
|
||||
element {
|
||||
orientation: vertical;
|
||||
}
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: @select-bg;
|
||||
text-color: @select-fg;
|
||||
}
|
||||
|
||||
element-icon {
|
||||
size: 48px;
|
||||
horizontal-align: 0.5;
|
||||
size: 38px;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
element-text {
|
||||
expand: true;
|
||||
horizontal-align: 0.5;
|
||||
vertical-align: 0.5;
|
||||
margin: 0.5% 0.5% -0.5% 0.5%;
|
||||
}
|
||||
|
||||
element-text, element-icon {
|
||||
background-color: inherit;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: @button;
|
||||
border-radius: 6px;
|
||||
vertical-align: 0.5;
|
||||
horizontal-align: 0.5;
|
||||
cursor: inherit;
|
||||
background-color: transparent;
|
||||
text-color: inherit;
|
||||
}
|
||||
|
||||
10
archive/rofi/graphite-mono.rasi
Normal file
@@ -0,0 +1,10 @@
|
||||
* {
|
||||
main-bg: #262626e6;
|
||||
main-fg: #d9d9d9ff;
|
||||
main-br: #a6a6a6ff;
|
||||
main-ex: #595959cc;
|
||||
select-bg: #a6a6a6ff;
|
||||
select-fg: #262626ff;
|
||||
separatorcolor: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
@@ -1,271 +0,0 @@
|
||||
# Directional Keys
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
# Mod Key
|
||||
set $mod Mod4
|
||||
|
||||
# Terminal
|
||||
set $term alacritty
|
||||
|
||||
# Application Launcher
|
||||
set $menu killall wofi || wofi
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
# Start wofi
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Lock SwayWM
|
||||
bindsym Control+Shift+l exec swaylock
|
||||
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
bindsym $mod+Shift+x exec swaymsg -r exit
|
||||
|
||||
## Volume
|
||||
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
|
||||
## Volume for non-media button keyboards
|
||||
bindsym $mod+Shift+n exec pactl set-sink-volume @DEFAULT_SINK@ +5%
|
||||
bindsym $mod+Shift+b exec pactl set-sink-volume @DEFAULT_SINK@ -5%
|
||||
bindsym $mod+Shift+m exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
|
||||
# Media playerctl
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
|
||||
# Backlight
|
||||
bindsym XF86MonBrightnessUp exec light -A 10 && notify-send " Light" "Brightness: $(light)%" --hint="int:value:$(light)"
|
||||
bindsym XF86MonBrightnessDown exec light -U 10 && notify-send " Light" "Brightness: $(light)%" --hint="int:value:$(light)"
|
||||
|
||||
# Moving around:
|
||||
# Move your focus around
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# Move the focused window with the same, but add Shift
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
# Ditto, with arrow keys
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
# Layout stuff:
|
||||
#
|
||||
# You can "split" the current object of your focus with
|
||||
# $mod+b or $mod+v, for horizontal and vertical splits
|
||||
# respectively.
|
||||
bindsym $mod+b splith
|
||||
bindsym $mod+v splitv
|
||||
|
||||
# Switch the current container between different layout styles
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# Move focus to the parent container
|
||||
bindsym $mod+a focus parent
|
||||
#
|
||||
# Scratchpad:
|
||||
#
|
||||
# Sway has a "scratchpad", which is a bag of holding for windows.
|
||||
# You can send windows there and get them back later.
|
||||
|
||||
# Move the currently focused window to the scratchpad
|
||||
bindsym $mod+Shift+minus move scratchpad
|
||||
|
||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
bindsym $mod+minus scratchpad show
|
||||
#
|
||||
# Resizing containers:
|
||||
#
|
||||
mode "resize" {
|
||||
# left will shrink the containers width
|
||||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 10px
|
||||
bindsym $down resize grow height 10px
|
||||
bindsym $up resize shrink height 10px
|
||||
bindsym $right resize grow width 10px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 10px
|
||||
bindsym Down resize grow height 10px
|
||||
bindsym Up resize shrink height 10px
|
||||
bindsym Right resize grow width 10px
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Screenshot (Grimshot)
|
||||
bindsym $mod+g exec grimshot save active
|
||||
bindsym $mod+Shift+g exec grimshot save area
|
||||
bindsym $mod+Mod1+g exec grimshot save output
|
||||
bindsym $mod+Ctrl+g exec grimshot save window
|
||||
|
||||
# Turn the system off
|
||||
bindsym $mod+Shift+e exec swaynag -t custom -m 'What action would you like to perform?' -b 'Shutdown' 'poweroff' -b 'Restart' 'poweroff --reboot' -b 'Suspend' 'systemctl suspend'
|
||||
|
||||
# Notifications
|
||||
exec_always --no-startup-id dunst
|
||||
|
||||
# Clamshell Mode Script
|
||||
exec_always ~/dotfiles/.config/sway/clamshell.sh
|
||||
|
||||
# flash focus
|
||||
exec --no-startup-id flashfocus
|
||||
|
||||
# udiskie - auto usb mounting
|
||||
exec --no-startup-id /usr/bin/udiskie
|
||||
|
||||
# polkit
|
||||
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||
|
||||
# Network Manager tray applet
|
||||
exec /usr/bin/nm-applet --indicator
|
||||
|
||||
# Bluetooth manager tray applet
|
||||
exec /usr/bin/blueman-applet
|
||||
|
||||
# Gtk
|
||||
exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
exec hash dbus-update-activation-environment 2>/dev/null && \
|
||||
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
|
||||
|
||||
# Wlsunset (Night Light)
|
||||
exec_always wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500
|
||||
|
||||
set $opacity 0.98
|
||||
for_window [class=".*"] opacity $opacity
|
||||
for_window [app_id=".*"] opacity $opacity
|
||||
|
||||
# Window Borders
|
||||
default_border none
|
||||
default_floating_border none
|
||||
|
||||
# Gaps
|
||||
smart_gaps on
|
||||
gaps inner 10
|
||||
gaps outer 10
|
||||
|
||||
for_window [app_id="galendae"] floating enable, sticky enable, move position cursor, move down 35
|
||||
|
||||
# Idle configuration
|
||||
exec swayidle -w \
|
||||
timeout 90 'swaylock -f' \
|
||||
# timeout 120 'swaymsg "output * dpms off"'
|
||||
# timeout 600 'swaymsg "output * dpms off"' \
|
||||
# resume 'swaymsg "output * dpms on"' \
|
||||
# before-sleep 'swaylock -f'
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
#
|
||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
input type:keyboard {
|
||||
# Capslock key should work as escape key
|
||||
# See /usr/share/X11/xkb/rules/xorg.lst for options
|
||||
xkb_layout "us(altgr-intl)"
|
||||
xkb_options caps:escape
|
||||
|
||||
repeat_delay 250
|
||||
repeat_rate 45
|
||||
}
|
||||
|
||||
# Hide mouse cursor after inactivity
|
||||
seat * hide_cursor 4000
|
||||
|
||||
set $laptop eDP-1
|
||||
bindswitch --reload --locked lid:on output $laptop disable
|
||||
bindswitch --reload --locked lid:off output $laptop enable
|
||||
|
||||
# Monitors
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
# output eDP-1 pos 0 0 res 1920x1200
|
||||
# output DP-6 pos 1920 0 res 3440x1440
|
||||
output HDMI-A-1 pos 0 0 res 2560x1440
|
||||
|
||||
# Wallpaper
|
||||
output DP-6 bg /home/opal/dotfiles/.config/wallpapers/3.jpg fill #050402
|
||||
output DP-5 bg /home/opal/dotfiles/.config/wallpapers/3.jpg fill #050402
|
||||
output eDP-1 bg /home/opal/dotfiles/.config/wallpapers/3.jpg fill #050402
|
||||
output HDMI-A-1 bg /home/opal/dotfiles/.config/wallpapers/3.jpg fill #050402
|
||||
|
||||
# Assign workspaces to numbers
|
||||
set $ws1 number 1
|
||||
set $ws2 number 2
|
||||
set $ws3 number 3
|
||||
set $ws4 number 4
|
||||
set $ws5 number 5
|
||||
set $ws6 number 6
|
||||
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace $ws1
|
||||
bindsym $mod+2 workspace $ws2
|
||||
bindsym $mod+3 workspace $ws3
|
||||
bindsym $mod+4 workspace $ws4
|
||||
bindsym $mod+5 workspace $ws5
|
||||
bindsym $mod+6 workspace $ws6
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace $ws6
|
||||
|
||||
# Status Bar:
|
||||
bar {
|
||||
swaybar_command waybar
|
||||
}
|
||||
@@ -1,218 +0,0 @@
|
||||
include /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/etc/sway/config.d/*
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
# Terminal
|
||||
set $term alacritty
|
||||
|
||||
# Application Launcher
|
||||
set $menu dmenu_path | dmenu | xargs swaymsg exec --
|
||||
|
||||
set $opacity 0.92
|
||||
for_window [class=".*"] opacity $opacity
|
||||
for_window [app_id=".*"] opacity $opacity
|
||||
|
||||
# Window Borders
|
||||
default_border none
|
||||
|
||||
# Gaps
|
||||
gaps top 2
|
||||
gaps inner 3
|
||||
# gaps outer 3
|
||||
|
||||
# Hide mouse cursor after inactivity
|
||||
seat * hide_cursor 4000
|
||||
|
||||
# Notifications
|
||||
exec_always dunst
|
||||
|
||||
# Wlsunset (Night Light)
|
||||
exec_always wlsunset -l 47.6, -122.3 -t 3500 -T 6500
|
||||
|
||||
# Wallpaper
|
||||
output * bg /home/opal/Dotfiles/guix-wallpaper.jpg stretch
|
||||
|
||||
# Monitors
|
||||
# You can get the names of your outputs by running: swaymsg -t get_outputs
|
||||
output eDP-1 resolution 1920x1080 position 0,0
|
||||
|
||||
### Idle configuration
|
||||
# This will lock your screen after 300 seconds of inactivity, then turn off
|
||||
# your displays after another 300 seconds, and turn your screens back on when
|
||||
# resumed. It will also lock your screen before your computer goes to sleep.
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000' \
|
||||
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f -c 000000'
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
# Example configuration:
|
||||
#
|
||||
# input "2:14:SynPS/2_Synaptics_TouchPad" {
|
||||
# dwt enabled
|
||||
# tap enabled
|
||||
# natural_scroll enabled
|
||||
# middle_emulation enabled
|
||||
# }
|
||||
#
|
||||
# You can get the names of your inputs by running: swaymsg -t get_inputs
|
||||
# Read `man 5 sway-input` for more information about this section.
|
||||
input type:keyboard {
|
||||
# Capslock key should work as escape key
|
||||
# See /usr/share/X11/xkb/rules/xorg.lst for options
|
||||
xkb_options caps:escape
|
||||
|
||||
repeat_delay 250
|
||||
repeat_rate 45
|
||||
}
|
||||
|
||||
# Start a terminal
|
||||
bindsym $mod+Return exec $term
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Lock SwayWM
|
||||
bindsym Control+Shift+l exec swaylock
|
||||
|
||||
# Start your launcher
|
||||
bindsym $mod+d exec $menu
|
||||
|
||||
# Change normal to inverse to use left mouse button for resizing and right
|
||||
# mouse button for dragging.
|
||||
floating_modifier $mod normal
|
||||
|
||||
# Reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
||||
# Exit sway (logs you out of your Wayland session)
|
||||
bindsym $mod+Shift+x exec swaymsg -r exit
|
||||
|
||||
# Moving around:
|
||||
# Move your focus around
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
# Or use $mod+[up|down|left|right]
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# Move the focused window with the same, but add Shift
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
# Ditto, with arrow keys
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
set $ws1 ۱
|
||||
set $ws2 ۲
|
||||
set $ws3 ۳
|
||||
set $ws4 ۴
|
||||
set $ws5 ۵
|
||||
|
||||
# Switch to workspace
|
||||
bindsym $mod+1 workspace $ws1
|
||||
bindsym $mod+2 workspace $ws2
|
||||
bindsym $mod+3 workspace $ws3
|
||||
bindsym $mod+4 workspace $ws4
|
||||
bindsym $mod+5 workspace $ws5
|
||||
|
||||
# Move focused container to workspace
|
||||
bindsym $mod+Shift+1 move container to workspace $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace $ws5
|
||||
|
||||
# Layout stuff:
|
||||
#
|
||||
# You can "split" the current object of your focus with
|
||||
# $mod+b or $mod+v, for horizontal and vertical splits
|
||||
# respectively.
|
||||
bindsym $mod+b splith
|
||||
bindsym $mod+v splitv
|
||||
|
||||
# Switch the current container between different layout styles
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# Make the current focus fullscreen
|
||||
bindsym $mod+f fullscreen
|
||||
|
||||
# Toggle the current focus between tiling and floating mode
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
|
||||
# Swap focus between the tiling area and the floating area
|
||||
bindsym $mod+space focus mode_toggle
|
||||
|
||||
# Move focus to the parent container
|
||||
bindsym $mod+a focus parent
|
||||
#
|
||||
# Scratchpad:
|
||||
#
|
||||
# Sway has a "scratchpad", which is a bag of holding for windows.
|
||||
# You can send windows there and get them back later.
|
||||
|
||||
# Move the currently focused window to the scratchpad
|
||||
bindsym $mod+Shift+minus move scratchpad
|
||||
|
||||
# Show the next scratchpad window or hide the focused scratchpad window.
|
||||
# If there are multiple scratchpad windows, this command cycles through them.
|
||||
bindsym $mod+minus scratchpad show
|
||||
#
|
||||
# Resizing containers:
|
||||
#
|
||||
mode "resize" {
|
||||
# left will shrink the containers width
|
||||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 10px
|
||||
bindsym $down resize grow height 10px
|
||||
bindsym $up resize shrink height 10px
|
||||
bindsym $right resize grow width 10px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 10px
|
||||
bindsym Down resize grow height 10px
|
||||
bindsym Up resize shrink height 10px
|
||||
bindsym Right resize grow width 10px
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
#
|
||||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
position top
|
||||
gaps 5
|
||||
|
||||
# When the status_command prints a new line to stdout, swaybar updates.
|
||||
# The default just shows the current date and time.
|
||||
status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
|
||||
|
||||
colors {
|
||||
statusline #ffffff
|
||||
background #323232
|
||||
inactive_workspace #32323200 #32323200 #5c5c5c
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
# Image
|
||||
image=/home/opal/dotfiles/.config/wallpapers/3.jpg
|
||||
scaling=fill
|
||||
|
||||
# Indicator
|
||||
ignore-empty-password
|
||||
indicator-caps-lock
|
||||
|
||||
# Behavior
|
||||
show-failed-attempts
|
||||
@@ -1,16 +0,0 @@
|
||||
[custom]
|
||||
font=Iosevka 13
|
||||
dismiss-button=Dismiss
|
||||
background=0f0f0f
|
||||
border=262626
|
||||
border-bottom=262626
|
||||
button-background=262626
|
||||
text=f0f0f0
|
||||
border-bottom-size=2
|
||||
message-padding=5
|
||||
details-border-size=2
|
||||
button-border-size=0
|
||||
button-gap=5
|
||||
button-dismiss-gap=5
|
||||
button-margin-right=5
|
||||
button-padding=5
|
||||
|
Before Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 2.0 MiB |
|
Before Width: | Height: | Size: 768 KiB |
@@ -1,101 +0,0 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 35,
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"modules-center": ["clock", "backlight"],
|
||||
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "tray"],
|
||||
"sway/workspaces": {
|
||||
// "persistent_workspaces": {
|
||||
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
|
||||
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
|
||||
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
|
||||
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
|
||||
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
|
||||
// "<span font=\"FontAwesome 5 Free\"></span>": ["HDMI-A-1"],
|
||||
// },
|
||||
"disable-scroll": true,
|
||||
"all-outputs": true,
|
||||
"format": "<span size='large'>{icon}</span>",
|
||||
// "format-icons": {
|
||||
// "1": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "2": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "3": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "4": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "5": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "6": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "7": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "urgent": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "focused": " <span font=\"FontAwesome 5 Free\"></span>",
|
||||
// "default": "<span font=\"FontAwesome 5 Free\"></span>",
|
||||
// },
|
||||
},
|
||||
|
||||
"sway/mode": {
|
||||
"format": "<span style='italic'>{}</span>"
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 18,
|
||||
"spacing": 8
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"format": "{: %I:%M %A %B %d}",
|
||||
"tooltip": false,
|
||||
"on-click": "galendae -c $HOME/.config/galendae-cal/galendae.conf"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"interval": 30,
|
||||
"states": {
|
||||
// "good": 95,
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"full-at": "99",
|
||||
"format": " {capacity}%",
|
||||
"format-good": " {capacity}%", // An empty format will hide the module
|
||||
"format-full": "<span size='large' rise='-1600'></span> Full",
|
||||
"format-charging": "<span size='large' rise='-1600'></span> {capacity}% "
|
||||
},
|
||||
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format-wifi": "<span size='large' rise='-1000'></span> {essid}",
|
||||
"format-ethernet": "<span size='large' rise='-1000'></span> {ifname}",
|
||||
"format-disconnected": "",
|
||||
"tooltip-format-wifi": "{essid}:{signalStrength}\nSpeed:{bandwidthDownBits} \n{ipaddr}"
|
||||
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 1,
|
||||
"on-scroll-up": "amixer set Master 3%+",
|
||||
"on-click": "pavucontrol",
|
||||
"on-scroll-down": "amixer set Master 3%-",
|
||||
"format": "",
|
||||
"format": "<span size='large' rise='-1600'>{icon}</span> {volume}%",
|
||||
"format-source": "<span size='large' rise='-1600'>{icon}</span> {volume}%",
|
||||
"format-muted": "<span font=\"FontAwesome 5 Free\"></span> Muted",
|
||||
"format-icons": {
|
||||
"headset": "",
|
||||
"headphone": "",
|
||||
"default": ["", ""]
|
||||
},
|
||||
},
|
||||
"backlight": {
|
||||
"device": "intel_backlight",
|
||||
"format": "",
|
||||
"format-icons": ["", ""],
|
||||
// "on-scroll-up": "brightnessctl set 1%+",
|
||||
// "on-scroll-down": "brightnessctl set 1%-",
|
||||
"on-click": "wlsunset -l 47.6 -L -122.3 -t 3000 -T 6500"
|
||||
},
|
||||
"idle_inhibitor": {
|
||||
"format": "<span rise='-4000' size='large'>{icon}</span>",
|
||||
"format-icons": {
|
||||
"activated": " Idle Inhibit On",
|
||||
"deactivated": " Idle Inhibit Off",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,122 +0,0 @@
|
||||
\* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: Iosevka, FontAwesome;
|
||||
font-size: 15px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
opacity: 0.7;
|
||||
background: #000000;
|
||||
color: #bebebe;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
color: #bebebe;
|
||||
background: transparent;
|
||||
padding: 0px 5px 0px 5px;
|
||||
margin: 5px 10px 0 10px;
|
||||
}
|
||||
#workspaces button.focused {
|
||||
color: white;
|
||||
margin: 5px 10px 0 10px;
|
||||
}
|
||||
|
||||
#workspaces button.active {
|
||||
color: white;
|
||||
margin: 5px 10px 0 10px;
|
||||
}
|
||||
|
||||
#workspaces button.urgent{
|
||||
margin: 5px 10px 0 10px;
|
||||
padding: 0px 8px 0px 8px;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
border-radius: 7px;
|
||||
}
|
||||
#mode {
|
||||
font-family: "Iosevka";
|
||||
margin: 0px 15px 0px 15px;
|
||||
padding: 0px 12px 0px 12px;
|
||||
color: black;
|
||||
background: white;
|
||||
}
|
||||
|
||||
#battery{
|
||||
margin:7px 4px 0 4px;
|
||||
border-radius: 5px;
|
||||
padding: 0px 8px 0px 8px;
|
||||
}
|
||||
|
||||
#network {
|
||||
margin:7px 4px 0 4px;
|
||||
border-radius: 6px;
|
||||
padding: 0px 8px 0px 8px;
|
||||
}
|
||||
|
||||
@keyframes critical {
|
||||
to {
|
||||
background: rgba(187,56,0, 1);
|
||||
border-radius: 7px;
|
||||
margin:7px 4px 0 4px;
|
||||
padding: 3px 8px 2px 8px;
|
||||
}
|
||||
}
|
||||
@keyframes urgent {
|
||||
to {
|
||||
background: rgba(212,140,0, 1);
|
||||
color: black;
|
||||
border-radius: 7px;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
padding: 0px 6px 0px 6px;
|
||||
color: white;
|
||||
animation-name: critical;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#clock {
|
||||
margin:7px 0 0 13px;
|
||||
font-family: Manjari;
|
||||
font-size: 16.5px;
|
||||
border-radius: 6px;
|
||||
padding: 3px 6px 2px 0px;
|
||||
}
|
||||
|
||||
#clock:hover {
|
||||
background: rgba(40,40,40, .95);
|
||||
}
|
||||
|
||||
|
||||
#backlight {
|
||||
margin:7px 4px 0 4px;
|
||||
border-radius: 5px;
|
||||
padding: 3px 8px 2px 8px;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
margin:7px 4px 0 4px;
|
||||
border-radius: 5px;
|
||||
padding: 0px 8px 0px 8px;
|
||||
}
|
||||
|
||||
#tray {
|
||||
margin: 7px 15px 0 4px;
|
||||
background: rgba(40,40,40, .65);
|
||||
border-radius: 6px;
|
||||
padding: 0px 5px 0px 5px;
|
||||
}
|
||||
|
||||
#idle_inhibitor {
|
||||
margin: 7px 4px 0 4px;
|
||||
border-radius: 6px;
|
||||
padding: 0px 5px 0px 5px;
|
||||
}
|
||||
@@ -1,47 +0,0 @@
|
||||
style=/home/opal/dotfiles/.config/wofi/style.css
|
||||
show=drun
|
||||
width=1000
|
||||
height=300
|
||||
always_parse_args=true
|
||||
show_all=true
|
||||
print_command=true
|
||||
layer=overlay
|
||||
insensitive=true
|
||||
prompt=Search...
|
||||
term=alacritty
|
||||
|
||||
window {
|
||||
margin: 5px;
|
||||
border: 2px solid red;
|
||||
background-color: red;
|
||||
}
|
||||
|
||||
#input {
|
||||
margin: 5px;
|
||||
border: 2px solid blue;
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
margin: 5px;
|
||||
border: 2px solid yellow;
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 5px;
|
||||
border: 2px solid green;
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
margin: 5px;
|
||||
border: 2px solid orange;
|
||||
background-color: orange;
|
||||
}
|
||||
|
||||
#text {
|
||||
margin: 5px;
|
||||
border: 2px solid cyan;
|
||||
background-color: cyan;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
*{
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
window {
|
||||
background-color: #7C818C;
|
||||
}
|
||||
|
||||
#input {
|
||||
margin: 5px;
|
||||
border-radius: 0px;
|
||||
border: none;
|
||||
border-bottom: 3px solid black;
|
||||
background-color: #383C4A;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#inner-box {
|
||||
background-color: #383C4A;
|
||||
|
||||
}
|
||||
|
||||
#outer-box {
|
||||
margin: 5px;
|
||||
padding:20px;
|
||||
background-color: #383C4A;
|
||||
}
|
||||
|
||||
#scroll {
|
||||
}
|
||||
|
||||
#text {
|
||||
padding: 5px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#entry:nth-child(even){
|
||||
background-color: #404552;
|
||||
}
|
||||
|
||||
#entry:selected {
|
||||
background-color: #5291e2;
|
||||
}
|
||||
|
||||
#text:selected {
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
clear Lock
|
||||
keycode 0x42 = Escape
|
||||