1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

Compare commits

..

6 Commits

217 changed files with 1720 additions and 1546 deletions

5
.chezmoi.toml.tmpl Normal file
View File

@ -0,0 +1,5 @@
{{- $chassisType := "desktop" }}
{{- $chassisType = (output "hostnamectl" "--json=short" | mustFromJson).Chassis }}
[data]
chassisType = {{ $chassisType| quote }}

21
.chezmoiexternal.toml Normal file
View File

@ -0,0 +1,21 @@
[".local/share/doom"]
type = "git-repo"
url = "https://github.com/doomemacs/doomemacs.git"
refreshPeriod = "24h"
[".local/share/doom".clone]
args = ["--depth=1"]
[".local/share/polybar-scripts"]
type = "git-repo"
url = "https://github.com/polybar/polybar-scripts.git"
refreshPeriod = "24h"
[".local/share/omf"]
type = "git-repo"
url = "https://github.com/oh-my-fish/oh-my-fish.git"
refreshPeriod = "8760h"
[".local/share/nvim/site/autoload/plug.vim"]
type = "file"
url = "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
refreshPeriod = "168h"

5
.chezmoiignore Normal file
View File

@ -0,0 +1,5 @@
node_modules
*.org
commitlint.config.js
package.json
yarn.lock

2
.gitignore vendored
View File

@ -1,2 +0,0 @@
gtk/.config/gtk-3.0/bookmarks
zsh/.config/zsh/.zcompcache/

View File

@ -7,13 +7,11 @@
- [[#description][Description]] - [[#description][Description]]
- [[#maintainers][Maintainers]] - [[#maintainers][Maintainers]]
- [[#prerequisites][Prerequisites]] - [[#prerequisites][Prerequisites]]
- [[#applications-installed-by-script][Applications installed by script]] - [[#applications-installed][Applications installed]]
- [[#applications][Applications]] - [[#applications][Applications]]
- [[#fonts][Fonts]] - [[#fonts][Fonts]]
- [[#libraries][Libraries]]
- [[#st--dmenu--dwm][st / dmenu / dwm]]
- [[#lsp-backends][LSP Backends]] - [[#lsp-backends][LSP Backends]]
- [[#configured-applications-also-installed-by-script][Configured Applications (also installed by script)]] - [[#configured-applications-also-installed][Configured Applications (also installed)]]
- [[#configured-locales][Configured Locales]] - [[#configured-locales][Configured Locales]]
- [[#golang][Golang]] - [[#golang][Golang]]
- [[#shell][Shell]] - [[#shell][Shell]]
@ -49,8 +47,9 @@ A repository of my personal configuration files.
- [[https://www.archlinux.org/][Arch Linux]] - [[https://www.archlinux.org/][Arch Linux]]
- [[https://fishshell.com/][fish shell]] - [[https://fishshell.com/][fish shell]]
- [[https://github.com/Jguer/yay][yay]] - [[https://github.com/Jguer/yay][yay]]
- [[https://www.chezmoi.io/][chezmoi]]
* Applications installed by script * Applications installed
** Applications ** Applications
- [[https://github.com/ggreer/the_silver_searcher][ag]] - [[https://github.com/ggreer/the_silver_searcher][ag]]
- [[https://github.com/sharkdp/bat][bat]] - [[https://github.com/sharkdp/bat][bat]]
@ -97,9 +96,6 @@ A repository of my personal configuration files.
- [[https://www.google.com/get/noto/][Noto Fonts]] - [[https://www.google.com/get/noto/][Noto Fonts]]
- [[https://www.google.com/get/noto/help/emoji/][Noto Color Emoji]] - [[https://www.google.com/get/noto/help/emoji/][Noto Color Emoji]]
- Nerd patched [[https://sourcefoundry.org/hack/][Hack]] - Nerd patched [[https://sourcefoundry.org/hack/][Hack]]
** Libraries
*** st / dmenu / dwm
- [[#+title: https://aur.archlinux.org/packages/libxft-bgra/][libxft-bgra]]
** LSP Backends ** LSP Backends
- [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]] - [[https://github.com/mads-hartmann/bash-language-server][bash-language-server]]
- [[https://github.com/MaskRay/ccls][ccls]] - [[https://github.com/MaskRay/ccls][ccls]]
@ -110,10 +106,9 @@ A repository of my personal configuration files.
- [[https://github.com/vscode-langservers/vscode-html-languageserver][vscode-html-languageserver]] - [[https://github.com/vscode-langservers/vscode-html-languageserver][vscode-html-languageserver]]
- [[https://github.com/bmewburn/vscode-intelephense][vscode-intelephense]] - [[https://github.com/bmewburn/vscode-intelephense][vscode-intelephense]]
* Configured Applications (also installed by script) * Configured Applications (also installed)
- [[https://github.com/alacritty/][alacritty]] - [[https://github.com/alacritty/][alacritty]]
- [[https://github.com/baskerville/bspwm][bspwm]] - [[https://github.com/baskerville/bspwm][bspwm]]
- [[https://github.com/xgi/castero][castero]]
- [[https://github.com/hlissner/doom-emacs][Doom Emacs]] - [[https://github.com/hlissner/doom-emacs][Doom Emacs]]
- [[https://dunst-project.org/][dunst]] - [[https://dunst-project.org/][dunst]]
- [[https://firejail.wordpress.com/][firejail]] - [[https://firejail.wordpress.com/][firejail]]
@ -230,7 +225,7 @@ A repository of my personal configuration files.
* Configuration * Configuration
** Installation ** Installation
#+BEGIN_SRC shell #+BEGIN_SRC shell
./install chezmoi apply
#+END_SRC #+END_SRC
** Find & delete orphaned symlinks ** Find & delete orphaned symlinks
#+BEGIN_SRC shell #+BEGIN_SRC shell

View File

@ -1,54 +0,0 @@
window:
dynamic_padding: true
opacity: 0.8
font:
normal:
family: Hack Nerd Font Mono
style: Regular
bold:
family: Hack nerd Font Mono
style: Bold
italic:
family: Hack nerd Font Mono
style: Italic
bold_italic:
family: Hack nerd Font Mono
style: Bold Italic
size: 8.5
colors:
primary:
background: "0x282828"
foreground: "0xebdbb2"
normal:
black: "0x282828"
red: "0xcc241d"
green: "0x98971a"
yellow: "0xd79921"
blue: "0x458588"
magenta: "0xb16286"
cyan: "0x689d6a"
white: "0xa89984"
bright:
black: "0x928374"
red: "0xfb4934"
green: "0xb8bb26"
yellow: "0xfabd2f"
blue: "0x83a598"
magenta: "0xd3869b"
cyan: "0x8ec07c"
white: "0xebdbb2"
selection:
save_to_clipboard: true

View File

@ -1,4 +0,0 @@
#!/usr/bin/env fish
khal list
read -s -n 1

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
xrandr --output DP-3 --primary --mode 3840x2160 --rotate normal --output DP-2 --mode 2560x1440 --pos 0x0 --rotate left

View File

@ -1,7 +0,0 @@
#!/usr/bin/env sh
if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]; then
xwallpaper --output DP-2 --zoom ~/.cache/wall2.png --output DP-3 --zoom ~/.cache/wall1.png &
elif [ -e ~/.cache/wall1.png ]; then
xwallpaper --output eDP1 --zoom ~/.cache/wall1.png &
fi

View File

@ -1,288 +0,0 @@
# castero configuration file
# https://github.com/xgi/castero
[client]
# Whether to ask for confirmation before deleting a feed.
# default: False
delete_feed_confirmation = False
# The minimum number of feeds before the client asks you for confirmation
# after pressing the reload key.
# default: 10
reload_feeds_threshold = 10
# The maximum number of episodes to retain per feed. Set to -1 for no limit.
# default: -1
max_episodes = 25
# Whether to keep episodes in the client even if they are no longer present on
# the feed (i.e. the RSS feed only shows the x most recent episodes).
# default: False
retain_absent_episodes = False
# Hide vertical borders between menus.
# default: False
disable_vertical_borders = False
# Whether to remove HTML tags from feed/episode descriptions.
# default: True
clean_html_descriptions = True
# The display refresh delay, in ms. Increase to reduce idle CPU usage.
# default: 30
refresh_delay = 70
# The external player to use for media playback.
# If the given player is not valid or a dependency is not met, the client will
# instead try to use the first valid interface.
# Available players (in order of precedence):
# mpv, vlc
# default: (blank)
player =
# The command to run when you press key_execute (default e). All instances of
# the following tokens are replaced with the corresponding episode attributes:
# {file} - the episode enclosure, usually a remote mp3 file
# {title} - the episode name
# {description} - the episode description
# {link} - the link to the episode, which is often a blog post
# {pubdate} - the publish date/time of the episode
# {copyright} - the copyright of the episode
# Most of these attributes have spaces, so you will probably want to enclose
# the token with quotations.
# For example, `firefox "{file}"` would open the file in Firefox.
# The client executes the text you enter as a shell command. Use with caution!
# default: (blank)
execute_command =
# An HTTP or SOCKS proxy to use for HTTP network requests.
# example: http://user:pass@10.10.1.10:3128
# example: socks5://user:pass@host:port
# default: (blank)
proxy_http =
# An HTTP or SOCKS proxy to use for HTTPS network requests.
# example: http://user:pass@10.10.1.10:3128
# example: socks5://user:pass@host:port
# default: (blank)
proxy_https =
[feeds]
# Whether to reload/refresh your feeds when the client starts. Depending on how
# many feeds you have, this operation may take a long time.
# default: False
reload_on_start = False
[downloads]
# The (absolute) location to save episodes downloaded for offline playback. Set
# to blank or whitespaces to disable -- the client will default to either
# $XDG_DATA_DIR, if set, otherwise ~/.local/share/castero/downloaded
# default: (blank)
custom_download_dir =
# The timeout for network requests, in seconds. The same value is used for
# connection and read timeouts.
# default: 3
request_timeout = 3
[colors]
# Available colors for all fields are:
# black, blue, cyan, green, magenta, red, white, yellow, transparent (background),
# integer from -1 to 255 if terminal supports 256 colors
# NOTE: Background transparency only works on compatible terminals with compositing
# The foreground (text) color of the main interface.
# default: yellow
color_foreground = yellow
# The background color of the main interface.
# default: black
color_background = black
# The foreground (text) color of selected items.
# default: black
color_foreground_alt = black
# The background color of selected items.
# default: white
color_background_alt = white
# The foreground (text) color of marked items. Paired with color_background.
# default: green
color_foreground_dim = green
# The foreground (text) color of status lines. Paired with color_background.
# default: white
color_foreground_status = white
# The foreground (text) color of menu headings. Paired with color_background.
# default: yellow
color_foreground_heading = yellow
# The foreground (text) color of dividers. Paired with color_background.
# default: white
color_foreground_dividers = white
[playback]
# The distance to move forward when pressing seek keys, in seconds.
# default: 30
seek_distance_forward = 30
# The distance to move backward when pressing seek keys, in seconds.
# default: 10
seek_distance_backward = 10
# The default playback speed. See also the rate_increase/rate_decrease keys.
# default: 1.0
default_playback_speed = 1.0
# The default volume. Can be 0-100, inclusive.
# default: 100
default_volume = 100
# The amount to adjust the volume when pressing the volume up/down keys.
# default: 5
volume_adjust_distance = 5
[keys]
# Keybindings for controlling the client. Entries may not be blank, but may
# overlap -- however, only one operation will be performed for each key press.
# Please see this page for a list of available key names:
# https://docs.python.org/3/library/curses.html#constants
# Show the help menu.
# default: h
key_help = ?
# Exit the client
# default: q
key_exit = q
# Add a feed.
# default: a
key_add_feed = a
# Remove the selected feed.
# default: d
key_remove = d
# Reload/refresh all feeds.
# default: r
key_reload = r
# Reload/refresh the selected feed.
# default: R
key_reload_selected = R
# Save episode for offline playback.
# default: s
key_save = s
# Delete downloaded episodes.
# default: x
key_delete = x
# Navigate up.
# default: UP
key_up = k
# Navigate right.
# default: RIGHT
key_right = l
# Navigate down.
# default: DOWN
key_down = j
# Navigate left.
# default: LEFT
key_left = h
# Scroll menu up.
# default: PPAGE
key_scroll_up = PPAGE
# Scroll menu down.
# default: NPAGE
key_scroll_down = NPAGE
# Play selected feed/episode.
# default: ENTER
key_play_selected = ENTER
# Add selected feed/episode to queue.
# default: SPACE
key_add_selected = SPACE
# Clear the queue.
# default: c
key_clear = c
# Go to the next episode in the queue.
# default: n
key_next = n
# Execute a command on the selected episode. See also execute_command.
key_execute = e
# Invert the order of the menu.
# default: i
key_invert = i
# Filter the contents of the menu. Press again to clear the filter.
# default: /
key_filter = /
# Mark the episode as played/unplayed.
# default: i
key_mark_played = m
# Pause/play the current episode.
# default: p
key_pause_play = p
# Alternate binding for key_pause_play -- make identical to disable.
# default: k
key_pause_play_alt = k
# Seek forward.
# default: f
key_seek_forward = f
# Alternate binding for key_seek_forward -- make identical to disable.
# default: l
key_seek_forward_alt = >
# Seek backward.
# default: b
key_seek_backward = b
# Alternate binding for key_seek_backward -- make identical to disable.
# default: j
key_seek_backward_alt = <
# Increase playback speed.
# default: ]
key_rate_increase = ]
# Decrease playback speed.
# default: [
key_rate_decrease = [
# Increase volume.
# default: =
key_volume_increase = =
# Decrease volume.
# default: -
key_volume_decrease = -
# Show episode URL.
# default: u
key_show_url = u

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
find ~ -type l -exec test ! -e {} \; -delete

View File

@ -1,4 +0,0 @@
#!/usr/bin/env fish
. ~/.cache/wal/colors.fish
yubikey-oath-dmenu --clipboard --clipboard-cmd 'xclip -selection clipboard' --notify --menu-cmd "dmenu -nb \"$color0\" -nf \"$color15\" -sb \"$color1\" -sf \"$color15\" -fn \"FuraCode Nerd Font\""

View File

@ -1,4 +0,0 @@
#!/usr/bin/env fish
. ~/.cache/wal/colors.fish
PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR passmenu -p Password: -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15" -fn "FuraCode Nerd Font"

View File

@ -1 +0,0 @@
dunstrc.desktop

View File

@ -1,148 +0,0 @@
[global]
monitor = 0
follow = keyboard
geometry = "0x0-30+20"
indicate_hidden = yes
shrink = no
transparency = 0
notification_height = 0
separator_height = 2
padding = 0
horizontal_padding = 8
frame_width = 3
frame_color = "#aaaaaa"
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background;
# * foreground: use the same color as the foreground;
# * frame: use the same color as the frame;
# * anything else will be interpreted as a X color.
separator_color = frame
# Sort messages by urgency.
sort = yes
idle_threshold = 120
font = JoyPixels 12, Hack Nerd Font Mono 12
line_height = 0
markup = full
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# %n progress value if set without any extra characters
# %% Literal %
# Markup is allowed
format = "<b>%s</b>\n%b"
alignment = center
show_age_threshold = 60
word_wrap = yes
ellipsize = middle
ignore_newline = no
stack_duplicates = true
hide_duplicate_count = false
show_indicators = yes
icon_position = left
max_icon_size = 32
icon_path = /usr/share/icons/Papirus-Dark/24x24/panel/:/usr/share/icons/Papirus-Dark/24x24/devices/:/usr/share/icons/Papirus-Dark/24x24/apps/:/usr/share/icons/Papirus-Dark/24x24/actions/
sticky_history = yes
history_length = 20
dmenu = dmenu -p dunst:
browser = /usr/local/bin/brave
# Always run rule-defined scripts, even if the notification is suppressed
always_run_script = true
title = Dunst
class = Dunst
startup_notification = false
corner_radius = 5
force_xinerama = false
[experimental]
per_monitor_dpi = false
[shortcuts]
close = ctrl+space
close_all = ctrl+shift+space
history = ctrl+grave
context = ctrl+shift+period
# Every section that isn't one of the above is interpreted as a rules to
# override settings for certain messages.
# Messages can be matched by "appname", "summary", "body", "icon", "category",
# "msg_urgency" and you can override the "timeout", "urgency", "foreground",
# "background", "new_icon" and "format".
# Shell-like globbing will get expanded.
#
# SCRIPTING
# You can specify a script that gets run when the rule matches by
# setting the "script" option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification
# to be displayed, set the format
# to "".
# NOTE: It might be helpful to run dunst -print in a terminal in order
# to find fitting options for rules.
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
# # This notification will not be displayed
# summary = "foobar"
# format = ""
#[history-ignore]
# # This notification will not be saved in history
# summary = "foobar"
# history_ignore = yes
#[signed_on]
# appname = Pidgin
# summary = "*signed on*"
# urgency = low
#
#[signed_off]
# appname = Pidgin
# summary = *signed off*
# urgency = low
#
#[says]
# appname = Pidgin
# summary = *says*
# urgency = critical
#
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#
# vim: ft=cfg
[urgency_low]
background = "#2b2b2b"
foreground = "#ffffff"
[urgency_normal]
background = "#2b2b2b"
foreground = "#ffffff"
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
frame_color = "#ff0000"

View File

@ -1,16 +0,0 @@
(org-babel-load-file
(expand-file-name
"config.org"
user-emacs-directory))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; 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.
'(package-selected-packages '(evil-collection evil use-package)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; 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.
)

170
install
View File

@ -1,170 +0,0 @@
#!/usr/bin/env fish
# Prerequisite & inistalled apps
set prerequisiteApps bat bmon broot brave caffeine-ng exa fslint fzf graphviz isync imagemagick lightdm-gtk-greeter mailcap neofetch npm pandoc-bin pamixer playerctl pulseaudio pulsemixer python pywal ripgrep stow sxiv tldr trayer udisks2 unclutter xbanish xwallpaper yarn xprop zathura the_silver_searcher fd
set prerequisiteFonts ttf-linux-libertine noto-fonts noto-fonts-emoji ttf-liberation nerd-fonts-hack
set prerequisiteLibraries libxft-bgra
set configuredApps alacritty bspwm castero emacs firejail git gnupg gtk lf dunst mpd mpv mpv-mpris ncmpcpp neomutt neovim picom redshift sxhkd tmux tuir weechat
set locales aspell-en hunspell-en_GB hunspell-en_US hunspell-nl
set golang go golangci-lint-bin
set shell shfmt shellcheck
set screenlock xsecurelock xss-lock
set dmenu clipmenu
function mkdir_if_not_exist
if [ ! -d "$argv" ]
echo "Creating directory $argv"
mkdir -p "$argv"
end
end
function install_omf_package_if_not_exist
if test (omf list | grep -c "$argv") -eq 0
echo "Installing omf package $argv"
omf install "$argv"
end
end
function install_yarn_package_if_not_exist
if ! yarn global list lighthouse >/dev/null 2>&1
echo "Installing yarn package $argv"
yarn global add "$argv"
end
end
function install_app_if_not_exist
if test (pacman -Q | grep -c "$argv") -eq 0
echo "Installing missing package $argv"
yay -S --noconfirm "$argv"
end
end
for app in $prerequisiteApps
install_app_if_not_exist "$app"
end
for font in $prerequisiteFonts
install_app_if_not_exist "$font"
end
for library in $prerequisiteLibraries
install_app_if_not_exist "$library"
end
for app in $configuredApps
install_app_if_not_exist "$app"
end
for locale in $locales
install_app_if_not_exist "$locale"
end
for go in $golang
install_app_if_not_exist "$go"
end
for sh in $shell
install_app_if_not_exist "$sh"
end
for lock in $screenlock
install_app_if_not_exist "$lock"
end
for script in $dmenu
install_app_if_not_exist "$script"
end
# Create directories that need to exist
mkdir_if_not_exist ~/.cache/mpd
mkdir_if_not_exist ~/.config/alacritty
mkdir_if_not_exist ~/.config/nvim
mkdir_if_not_exist ~/.config/fish
mkdir_if_not_exist ~/.config/git
mkdir_if_not_exist ~/.config/msmtp
mkdir_if_not_exist ~/.config/omf
mkdir_if_not_exist ~/.config/polybar/bin
mkdir_if_not_exist ~/.config/mpd
mkdir_if_not_exist ~/.config/systemd/user
mkdir_if_not_exist ~/.config/wal
mkdir_if_not_exist ~/.config/weechat
mkdir_if_not_exist ~/.config/X11
mkdir_if_not_exist ~/.gnupg
mkdir_if_not_exist ~/.config/mpv/scripts
mkdir_if_not_exist ~/.config/coc/extensions
mkdir_if_not_exist ~/.config/dmenu-frecency
mkdir_if_not_exist ~/.config/doom
mkdir_if_not_exist ~/.config/emacs
mkdir_if_not_exist ~/.config/sxhkd
mkdir_if_not_exist ~/.local/share/applications
# Link mpv plugins if they don't exist
if [ ! -h ~/.config/mpv/scripts/mpris.so ]
echo "Linking mpris.so"
ln -s /usr/lib/mpv/mpris.so ~/.config/mpv/scripts/mpris.so
end
for d in (find -- */ -maxdepth 0 -type d | grep -v node_modules | cut -f1 -d '/')
echo "Linking $d..."
stow -t "$HOME" "$d"
end
# Refresh xgd
if test (grep -c 'x-scheme-handler/org-protocol=org-protocol.desktop' ~/.config/mimeapps.list) -eq 0
echo "Refreshing xgd to handle org-protocol"
update-desktop-database ~/.local/share/applications/
xdg-mime default org-protocol.desktop x-scheme-handler/org-protocol
end
# Install oh-my-fish if it isn't installed
if [ ! -d ~/.local/share/omf ]
curl -L https://get.oh-my.fish | fish
end
# Install oh-my-fish plugins
install_omf_package_if_not_exist colored-man-pages
install_omf_package_if_not_exist extract
install_omf_package_if_not_exist fzf
install_omf_package_if_not_exist gi
install_omf_package_if_not_exist git-flow
install_omf_package_if_not_exist wttr
# Install vim plugins & requirements
if test (pip list --user | grep -c 'pynvim') -ne 1
pip install --user pynvim
end
# Install plug package manager if it doesn't exist
if [ ! -d ~/.config/nvim/plugged ]
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
end
# Install Neovim plugins
nvim +PlugInstall +qall
# Install Neovim coc extensions
yarn --cwd ~/.config/coc/extensions install
# Install yarn packages
install_yarn_package_if_not_exist lighthouse
# Setup broot if not done already
if [ ! -d ~/.local/share/broot ]
broot --install
end
# Polybar scripts if not installed already
if [ ! -d ~/.local/share/polybar-scripts ]
git clone https://github.com/polybar/polybar-scripts ~/.local/share/polybar-scripts
end
# Update fish completions (auto generated from man pages)
fish_update_completions
# Notify user to manually symlink files
if [ -n "$argv[1]" ]
printf "\n\nDon't forget to symlink these files:\n\n"
find ~ \( -type l -o -type f \) -name "*.$argv[1]" -exec ls -al {} \;
end

View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
betterlockscreen -u $1

View File

@ -1,5 +0,0 @@
[Unit]
Description=Newsboat RSS Feed Update Daemon
[Service]
ExecStart=%h/.local/bin/newsup

View File

@ -1,10 +0,0 @@
[Unit]
Description=Newsboat RSS Feed Update Timer
[Timer]
OnBootSec=2m
OnUnitActiveSec=5m
Unit=newsup.service
[Install]
WantedBy=timers.target

View File

@ -1,12 +0,0 @@
#!/bin/sh
export DISPLAY=":0.0"
ping -q -c 1 example.org >/dev/null || exit
/usr/bin/notify-send "📰 Updating RSS feeds..."
pgrep -f newsboat$ && /usr/bin/xdotool key --window "$(/usr/bin/xdotool search --name newsboat)" R && exit
echo "📰📻🔃" >/tmp/newsupdate
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
/usr/bin/newsboat -x reload
rm -f /tmp/newsupdate
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
/usr/bin/notify-send "📰 RSS feed update complete."

View File

@ -1,4 +0,0 @@
#!/usr/bin/env sh
pkill -RTMIN+4 "${STATUSBAR:-dwmblocks}"
notify-send.py -a Newsboat -i rssowl Rss "$1" &

View File

@ -1,3 +0,0 @@
#!/usr/bin/env fish
wttr && read -n 1 -p ""

View File

@ -1,15 +0,0 @@
#!/usr/bin/env fish
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u (id -u) -x polybar >/dev/null
sleep 1
end
# Launch bar1 and bar2
polybar monitor1 &
polybar monitor2 &
echo "Bars launched..."

View File

@ -1,15 +0,0 @@
#!/usr/bin/env fish
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -u (id -u) -x polybar >/dev/null
sleep 1
end
# Launch bar1 and bar2
polybar laptop-top &
polybar laptop-bottom &
echo "Bars launched..."

3
private_dot_config/X11/xinitrc Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exec awesome

View File

@ -2,6 +2,7 @@
! Xft settings ! Xft settings
!------------------------------------------------------------------------------- !-------------------------------------------------------------------------------
{{ if ne .chassisType "desktop" }}Xft.dpi: 160{{- end }}
Xft.antialias: false Xft.antialias: false
Xft.rgba: rgb Xft.rgba: rgb
Xft.hinting: true Xft.hinting: true

View File

@ -23,7 +23,7 @@ font:
style: Bold Italic style: Bold Italic
size: 6.5 size: {{ if eq .chassisType "desktop" }}6.5{{ else }}8.5{{- end }}
colors: colors:
primary: primary:

View File

@ -0,0 +1,59 @@
#!/bin/sh
run() {
if ! pgrep -f "$1"; then
"$@" &
fi
}
###---Load xresources---###
xrdb -load ~/.config/X11/xresources
###---Keyboard---###
setxkbmap -option caps:escape
###---Get monitor count---###
SCREENCOUNT=$(xrandr | grep -c "\*")
###---Monitors---###
if [ "$SCREENCOUNT" -eq 2 ]; then
if [ -f "$HOME/.local/bin/screen_desktop" ]; then
screen_desktop
fi
else
if [ -f "$HOME/.local/bin/screen" ]; then
screen
fi
fi
###---Wallpaper & opacity---###
~/.local/bin/wallpaper
wal -n -R
picom -b
run unclutter
run xbanish
run nm-applet
run pasystray
run redshift-gtk
run syncthing-gtk
run caffeine
run clipmenud
run firefox
run emacs
run gpodder
run spotify
if [ "$SCREENCOUNT" -eq 2 ]; then
run slack
fi
###---System lock---###
pkill -f xss-lock
xset s 300 5
env XSECURELOCK_FONT="Hack Nerd Font" xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
###---Misc---###
# Needed for Jetbrains products to work
wmname LG3D &

View File

@ -0,0 +1,552 @@
-- If LuaRocks is installed, make sure that packages installed through it are
-- found (e.g. lgi). If LuaRocks is not installed, do nothing.
pcall(require, "luarocks.loader")
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
-- Theme handling library
local beautiful = require("beautiful")
-- Notification library
local naughty = require("naughty")
local menubar = require("menubar")
local hotkeys_popup = require("awful.hotkeys_popup")
-- Enable hotkeys help widget for VIM and other apps
-- when client with a matching name is opened:
require("awful.hotkeys_popup.keys")
-- {{{ Error handling
-- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!",
text = awesome.startup_errors })
end
-- Handle runtime errors after startup
do
local in_error = false
awesome.connect_signal("debug::error", function (err)
-- Make sure we don't go into an endless error loop
if in_error then return end
in_error = true
naughty.notify({ preset = naughty.config.presets.critical,
title = "Oops, an error happened!",
text = tostring(err) })
in_error = false
end)
end
-- }}}
-- {{{ Variable definitions
-- Themes define colours, icons, font and wallpapers.
-- beautiful.init(gears.filesystem.get_configuration_dir() .. "/themes/default/theme.lua")
local theme_path = string.format("%s/.config/awesome/themes/%s/theme.lua", os.getenv("HOME"), "default")
beautiful.init(theme_path)
-- Use correct status icon size
awesome.set_preferred_icon_size(32)
-- Enable gaps
beautiful.useless_gap = 3
beautiful.gap_single_client = true
-- This is used later as the default terminal and editor to run.
terminal = "alacritty"
editor = os.getenv("EDITOR") or "nvim"
editor_cmd = terminal .. " -e " .. editor
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- I suggest you to remap Mod4 to another key using xmodmap or other tools.
-- However, you can use another modifier like Mod1, but it may interact with others.
modkey = "Mod4"
-- Table of layouts to cover with awful.layout.inc, order matters.
awful.layout.layouts = {
awful.layout.suit.tile,
awful.layout.suit.tile.left,
awful.layout.suit.tile.bottom,
awful.layout.suit.tile.top,
awful.layout.suit.spiral,
awful.layout.suit.floating,
}
-- }}}
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon,
menu = mymainmenu })
-- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it
-- }}}
-- Keyboard map indicator and switcher
mykeyboardlayout = awful.widget.keyboardlayout()
-- {{{ Wibar
-- Create a textclock widget
mytextclock = wibox.widget.textclock()
-- Create a wibox for each screen and add it
local taglist_buttons = gears.table.join(
awful.button({ }, 1, function(t) t:view_only() end),
awful.button({ modkey }, 1, function(t)
if client.focus then
client.focus:move_to_tag(t)
end
end),
awful.button({ }, 3, awful.tag.viewtoggle),
awful.button({ modkey }, 3, function(t)
if client.focus then
client.focus:toggle_tag(t)
end
end),
awful.button({ }, 4, function(t) awful.tag.viewnext(t.screen) end),
awful.button({ }, 5, function(t) awful.tag.viewprev(t.screen) end)
)
local tasklist_buttons = gears.table.join(
awful.button({ }, 1, function (c)
if c == client.focus then
c.minimized = true
else
c:emit_signal(
"request::activate",
"tasklist",
{raise = true}
)
end
end),
awful.button({ }, 3, function()
awful.menu.client_list({ theme = { width = 250 } })
end),
awful.button({ }, 4, function ()
awful.client.focus.byidx(1)
end),
awful.button({ }, 5, function ()
awful.client.focus.byidx(-1)
end))
local function set_wallpaper(s)
-- Wallpaper
if beautiful.wallpaper then
local wallpaper = beautiful.wallpaper
-- If wallpaper is a function, call it with the screen
if type(wallpaper) == "function" then
wallpaper = wallpaper(s)
end
gears.wallpaper.maximized(wallpaper, s, true)
end
end
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
screen.connect_signal("property::geometry", set_wallpaper)
awful.screen.connect_for_each_screen(function(s)
-- Wallpaper
set_wallpaper(s)
-- Each screen has its own tag table.
awful.tag({ "1", "2", "3", "4", "5", "6", "7", "8", "9" }, s, awful.layout.layouts[1])
-- Create a promptbox for each screen
s.mypromptbox = awful.widget.prompt()
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(gears.table.join(
awful.button({ }, 1, function () awful.layout.inc( 1) end),
awful.button({ }, 3, function () awful.layout.inc(-1) end),
awful.button({ }, 4, function () awful.layout.inc( 1) end),
awful.button({ }, 5, function () awful.layout.inc(-1) end)))
-- Create a taglist widget
s.mytaglist = awful.widget.taglist {
screen = s,
filter = awful.widget.taglist.filter.all,
buttons = taglist_buttons
}
-- Create a tasklist widget
s.mytasklist = awful.widget.tasklist {
screen = s,
filter = awful.widget.tasklist.filter.currenttags,
buttons = tasklist_buttons
}
-- Create the wibox
s.mywibox = awful.wibar({ position = "top", screen = s })
-- Add widgets to the wibox
s.mywibox:setup {
layout = wibox.layout.align.horizontal,
{ -- Left widgets
layout = wibox.layout.fixed.horizontal,
mylauncher,
s.mytaglist,
s.mypromptbox,
},
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
mykeyboardlayout,
wibox.widget.systray(),
mytextclock,
s.mylayoutbox,
},
}
end)
-- }}}
-- {{{ Mouse bindings
root.buttons(gears.table.join(
awful.button({ }, 3, function () mymainmenu:toggle() end),
awful.button({ }, 4, awful.tag.viewnext),
awful.button({ }, 5, awful.tag.viewprev)
))
-- }}}
-- {{{ Key bindings
globalkeys = gears.table.join(
awful.key({ modkey, }, "s", hotkeys_popup.show_help,
{description="show help", group="awesome"}),
awful.key({ modkey, }, "Left", awful.tag.viewprev,
{description = "view previous", group = "tag"}),
awful.key({ modkey, }, "Right", awful.tag.viewnext,
{description = "view next", group = "tag"}),
awful.key({ modkey, }, "Escape", awful.tag.history.restore,
{description = "go back", group = "tag"}),
awful.key({ modkey, }, "j",
function ()
awful.client.focus.byidx( 1)
end,
{description = "focus next by index", group = "client"}
),
awful.key({ modkey, }, "k",
function ()
awful.client.focus.byidx(-1)
end,
{description = "focus previous by index", group = "client"}
),
-- Layout manipulation
awful.key({ modkey, "Shift" }, "j", function () awful.client.swap.byidx( 1) end,
{description = "swap with next client by index", group = "client"}),
awful.key({ modkey, "Shift" }, "k", function () awful.client.swap.byidx( -1) end,
{description = "swap with previous client by index", group = "client"}),
awful.key({ modkey, "Control" }, "j", function () awful.screen.focus_relative( 1) end,
{description = "focus the next screen", group = "screen"}),
awful.key({ modkey, "Control" }, "k", function () awful.screen.focus_relative(-1) end,
{description = "focus the previous screen", group = "screen"}),
awful.key({ modkey, }, "u", awful.client.urgent.jumpto,
{description = "jump to urgent client", group = "client"}),
awful.key({ modkey, }, "Tab",
function ()
awful.client.focus.history.previous()
if client.focus then
client.focus:raise()
end
end,
{description = "go back", group = "client"}),
-- Standard program
awful.key({ modkey, }, "BackSpace", function () awful.spawn(terminal) end,
{description = "open a terminal", group = "launcher"}),
awful.key({ modkey, "Control" }, "r", awesome.restart,
{description = "reload awesome", group = "awesome"}),
awful.key({ modkey, "Shift" }, "q", awesome.quit,
{description = "quit awesome", group = "awesome"}),
awful.key({ modkey, }, "l", function () awful.tag.incmwfact( 0.05) end,
{description = "increase master width factor", group = "layout"}),
awful.key({ modkey, }, "h", function () awful.tag.incmwfact(-0.05) end,
{description = "decrease master width factor", group = "layout"}),
awful.key({ modkey, "Shift" }, "h", function () awful.tag.incnmaster( 1, nil, true) end,
{description = "increase the number of master clients", group = "layout"}),
awful.key({ modkey, "Shift" }, "l", function () awful.tag.incnmaster(-1, nil, true) end,
{description = "decrease the number of master clients", group = "layout"}),
awful.key({ modkey, "Control" }, "h", function () awful.tag.incncol( 1, nil, true) end,
{description = "increase the number of columns", group = "layout"}),
awful.key({ modkey, "Control" }, "l", function () awful.tag.incncol(-1, nil, true) end,
{description = "decrease the number of columns", group = "layout"}),
awful.key({ modkey, }, "space", function () awful.layout.inc( 1) end,
{description = "select next", group = "layout"}),
awful.key({ modkey, "Shift" }, "space", function () awful.layout.inc(-1) end,
{description = "select previous", group = "layout"}),
awful.key({ modkey, "Control" }, "n",
function ()
local c = awful.client.restore()
-- Focus restored client
if c then
c:emit_signal(
"request::activate", "key.unminimize", {raise = true}
)
end
end,
{description = "restore minimized", group = "client"}),
-- Prompt
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
{description = "run prompt", group = "launcher"}),
awful.key({ modkey }, "x",
function ()
awful.prompt.run {
prompt = "Run Lua code: ",
textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = awful.util.eval,
history_path = awful.util.get_cache_dir() .. "/history_eval"
}
end,
{description = "lua execute prompt", group = "awesome"}),
-- Menubar
awful.key({ modkey }, "Delete", function() menubar.show() end,
{description = "show the menubar", group = "launcher"})
)
clientkeys = gears.table.join(
awful.key({ modkey, }, "f",
function (c)
c.fullscreen = not c.fullscreen
c:raise()
end,
{description = "toggle fullscreen", group = "client"}),
awful.key({ modkey, }, "w", function (c) c:kill() end,
{description = "close", group = "client"}),
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ,
{description = "toggle floating", group = "client"}),
awful.key({ modkey }, "End", function (c) c:swap(awful.client.getmaster()) end,
{description = "move to master", group = "client"}),
awful.key({ modkey, }, "o", function (c) c:move_to_screen() end,
{description = "move to screen", group = "client"}),
awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end,
{description = "toggle keep on top", group = "client"}),
awful.key({ modkey, }, "n",
function (c)
-- The client currently has the input focus, so it cannot be
-- minimized, since minimized clients can't have the focus.
c.minimized = true
end ,
{description = "minimize", group = "client"}),
awful.key({ modkey, }, "m",
function (c)
c.maximized = not c.maximized
c:raise()
end ,
{description = "(un)maximize", group = "client"}),
awful.key({ modkey, "Control" }, "m",
function (c)
c.maximized_vertical = not c.maximized_vertical
c:raise()
end ,
{description = "(un)maximize vertically", group = "client"}),
awful.key({ modkey, "Shift" }, "m",
function (c)
c.maximized_horizontal = not c.maximized_horizontal
c:raise()
end ,
{description = "(un)maximize horizontally", group = "client"})
)
-- Bind all key numbers to tags.
-- Be careful: we use keycodes to make it work on any keyboard layout.
-- This should map on the top row of your keyboard, usually 1 to 9.
for i = 1, 9 do
globalkeys = gears.table.join(globalkeys,
-- View tag only.
awful.key({ modkey }, "#" .. i + 9,
function ()
local screen = awful.screen.focused()
local tag = screen.tags[i]
if tag then
tag:view_only()
end
end,
{description = "view tag #"..i, group = "tag"}),
-- Toggle tag display.
awful.key({ modkey, "Control" }, "#" .. i + 9,
function ()
local screen = awful.screen.focused()
local tag = screen.tags[i]
if tag then
awful.tag.viewtoggle(tag)
end
end,
{description = "toggle tag #" .. i, group = "tag"}),
-- Move client to tag.
awful.key({ modkey, "Shift" }, "#" .. i + 9,
function ()
if client.focus then
local tag = client.focus.screen.tags[i]
if tag then
client.focus:move_to_tag(tag)
end
end
end,
{description = "move focused client to tag #"..i, group = "tag"}),
-- Toggle tag on focused client.
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function ()
if client.focus then
local tag = client.focus.screen.tags[i]
if tag then
client.focus:toggle_tag(tag)
end
end
end,
{description = "toggle focused client on tag #" .. i, group = "tag"})
)
end
clientbuttons = gears.table.join(
awful.button({ }, 1, function (c)
c:emit_signal("request::activate", "mouse_click", {raise = true})
end),
awful.button({ modkey }, 1, function (c)
c:emit_signal("request::activate", "mouse_click", {raise = true})
awful.mouse.client.move(c)
end),
awful.button({ modkey }, 3, function (c)
c:emit_signal("request::activate", "mouse_click", {raise = true})
awful.mouse.client.resize(c)
end)
)
-- Set keys
root.keys(globalkeys)
-- }}}
-- {{{ Rules
-- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = {
-- All clients will match this rule.
{ rule = { },
properties = { border_width = beautiful.border_width,
border_color = beautiful.border_normal,
focus = awful.client.focus.filter,
raise = true,
keys = clientkeys,
buttons = clientbuttons,
screen = awful.screen.preferred,
placement = awful.placement.no_overlap+awful.placement.no_offscreen
}
},
-- Floating clients.
{ rule_any = {
instance = {
"DTA", -- Firefox addon DownThemAll.
"copyq", -- Includes session name in class.
"pinentry",
},
class = {
"Arandr",
"Blueman-manager",
"Gpick",
"Kruler",
"MessageWin", -- kalarm.
"Sxiv",
"Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
"Wpa_gui",
"veromix",
"xtightvncviewer"},
-- Note that the name property shown in xprop might be set slightly after creation of the client
-- and the name shown there might not match defined rules here.
name = {
"Event Tester", -- xev.
},
role = {
"AlarmWindow", -- Thunderbird's calendar.
"ConfigManager", -- Thunderbird's about:config.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
}, properties = { floating = true }},
-- Add titlebars to normal clients and dialogs
{ rule_any = {type = { "normal", "dialog" }
}, properties = { titlebars_enabled = true }
},
-- Set Firefox to always map on the tag named "2" on screen 1.
-- { rule = { class = "Firefox" },
-- properties = { screen = 1, tag = "2" } },
}
-- }}}
-- {{{ Signals
-- Signal function to execute when a new client appears.
client.connect_signal("manage", function (c)
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- if not awesome.startup then awful.client.setslave(c) end
if awesome.startup
and not c.size_hints.user_position
and not c.size_hints.program_position then
-- Prevent clients from being unreachable after screen count changes.
awful.placement.no_offscreen(c)
end
end)
-- Add a titlebar if titlebars_enabled is set to true in the rules.
client.connect_signal("request::titlebars", function(c)
-- buttons for the titlebar
local buttons = gears.table.join(
awful.button({ }, 1, function()
c:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.move(c)
end),
awful.button({ }, 3, function()
c:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.resize(c)
end)
)
awful.titlebar(c) : setup {
{ -- Left
awful.titlebar.widget.iconwidget(c),
buttons = buttons,
layout = wibox.layout.fixed.horizontal
},
{ -- Middle
{ -- Title
align = "center",
widget = awful.titlebar.widget.titlewidget(c)
},
buttons = buttons,
layout = wibox.layout.flex.horizontal
},
{ -- Right
awful.titlebar.widget.floatingbutton (c),
awful.titlebar.widget.maximizedbutton(c),
awful.titlebar.widget.stickybutton (c),
awful.titlebar.widget.ontopbutton (c),
awful.titlebar.widget.closebutton (c),
layout = wibox.layout.fixed.horizontal()
},
layout = wibox.layout.align.horizontal
}
end)
-- Enable sloppy focus, so that focus follows mouse.
client.connect_signal("mouse::enter", function(c)
c:emit_signal("request::activate", "mouse_enter", {raise = false})
end)
client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)
client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_normal end)
-- }}}
-- Autorun
awful.spawn.with_shell("~/.config/awesome/autorun.sh")

View File

@ -0,0 +1,3 @@
Background images:
Mikael Eriksson <mikael_eriksson@miffe.org>
Licensed under CC-BY-SA-3.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 262 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

View File

@ -0,0 +1,136 @@
---------------------------
-- Default awesome theme --
---------------------------
local theme_assets = require("beautiful.theme_assets")
local xresources = require("beautiful.xresources")
local dpi = xresources.apply_dpi
local gfs = require("gears.filesystem")
local themes_path = gfs.get_themes_dir()
local theme = {}
theme.font = "Hack Nerd Font 8"
-- theme.bg_normal = "#222222"
theme.bg_normal = "#1d1f21"
-- theme.bg_focus = "#535d6c"
theme.bg_focus = "#333333"
theme.bg_urgent = "#ff0000"
theme.bg_minimize = "#444444"
theme.bg_systray = theme.bg_normal
theme.fg_normal = "#aaaaaa"
theme.fg_focus = "#ffffff"
theme.fg_urgent = "#ffffff"
theme.fg_minimize = "#ffffff"
theme.useless_gap = dpi(0)
-- theme.border_width = dpi(1)
theme.border_width = dpi(2)
theme.border_normal = "#000000"
-- theme.border_focus = "#535d6c"
theme.border_focus = "#327bd1"
theme.border_marked = "#91231c"
-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- taglist_[bg|fg]_[focus|urgent|occupied|empty|volatile]
-- tasklist_[bg|fg]_[focus|urgent]
-- titlebar_[bg|fg]_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- mouse_finder_[color|timeout|animate_timeout|radius|factor]
-- prompt_[fg|bg|fg_cursor|bg_cursor|font]
-- hotkeys_[bg|fg|border_width|border_color|shape|opacity|modifiers_fg|label_bg|label_fg|group_margin|font|description_font]
-- Example:
--theme.taglist_bg_focus = "#ff0000"
-- Generate taglist squares:
local taglist_square_size = dpi(4)
theme.taglist_squares_sel = theme_assets.taglist_squares_sel(
taglist_square_size, theme.fg_normal
)
theme.taglist_squares_unsel = theme_assets.taglist_squares_unsel(
taglist_square_size, theme.fg_normal
)
-- Variables set for theming notifications:
-- notification_font
-- notification_[bg|fg]
-- notification_[width|height|margin]
-- notification_[border_color|border_width|shape|opacity]
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_submenu_icon = themes_path.."default/submenu.png"
theme.menu_height = dpi(15)
theme.menu_width = dpi(100)
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"
-- Define the image to load
theme.titlebar_close_button_normal = themes_path.."default/titlebar/close_normal.png"
theme.titlebar_close_button_focus = themes_path.."default/titlebar/close_focus.png"
theme.titlebar_minimize_button_normal = themes_path.."default/titlebar/minimize_normal.png"
theme.titlebar_minimize_button_focus = themes_path.."default/titlebar/minimize_focus.png"
theme.titlebar_ontop_button_normal_inactive = themes_path.."default/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive = themes_path.."default/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = themes_path.."default/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active = themes_path.."default/titlebar/ontop_focus_active.png"
theme.titlebar_sticky_button_normal_inactive = themes_path.."default/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive = themes_path.."default/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = themes_path.."default/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active = themes_path.."default/titlebar/sticky_focus_active.png"
theme.titlebar_floating_button_normal_inactive = themes_path.."default/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive = themes_path.."default/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = themes_path.."default/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active = themes_path.."default/titlebar/floating_focus_active.png"
theme.titlebar_maximized_button_normal_inactive = themes_path.."default/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive = themes_path.."default/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = themes_path.."default/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active = themes_path.."default/titlebar/maximized_focus_active.png"
-- theme.wallpaper = themes_path.."default/background.png"
theme.wallpaper = "~/.cache/wall1.png"
-- You can use your own layout icons like this:
theme.layout_fairh = themes_path.."default/layouts/fairhw.png"
theme.layout_fairv = themes_path.."default/layouts/fairvw.png"
theme.layout_floating = themes_path.."default/layouts/floatingw.png"
theme.layout_magnifier = themes_path.."default/layouts/magnifierw.png"
theme.layout_max = themes_path.."default/layouts/maxw.png"
theme.layout_fullscreen = themes_path.."default/layouts/fullscreenw.png"
theme.layout_tilebottom = themes_path.."default/layouts/tilebottomw.png"
theme.layout_tileleft = themes_path.."default/layouts/tileleftw.png"
theme.layout_tile = themes_path.."default/layouts/tilew.png"
theme.layout_tiletop = themes_path.."default/layouts/tiletopw.png"
theme.layout_spiral = themes_path.."default/layouts/spiralw.png"
theme.layout_dwindle = themes_path.."default/layouts/dwindlew.png"
theme.layout_cornernw = themes_path.."default/layouts/cornernww.png"
theme.layout_cornerne = themes_path.."default/layouts/cornernew.png"
theme.layout_cornersw = themes_path.."default/layouts/cornersww.png"
theme.layout_cornerse = themes_path.."default/layouts/cornersew.png"
-- Generate Awesome icon:
theme.awesome_icon = theme_assets.awesome_icon(
theme.menu_height, theme.bg_focus, theme.fg_focus
)
-- Define the icon theme for application icons. If not set then the icons
-- from /usr/share/icons and /usr/share/icons/hicolor will be used.
theme.icon_theme = nil
return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 758 B

View File

@ -0,0 +1,136 @@
--- Separating Multiple Monitor functions as a separeted module (taken from awesome wiki)
local gtable = require("gears.table")
local spawn = require("awful.spawn")
local naughty = require("naughty")
-- A path to a fancy icon
local icon_path = ""
-- Get active outputs
local function outputs()
local outputs = {}
local xrandr = io.popen("xrandr -q --current")
if xrandr then
for line in xrandr:lines() do
local output = line:match("^([%w-]+) connected ")
if output then
outputs[#outputs + 1] = output
end
end
xrandr:close()
end
return outputs
end
local function arrange(out)
-- We need to enumerate all permutations of horizontal outputs.
local choices = {}
local previous = { {} }
for i = 1, #out do
-- Find all permutation of length `i`: we take the permutation
-- of length `i-1` and for each of them, we create new
-- permutations by adding each output at the end of it if it is
-- not already present.
local new = {}
for _, p in pairs(previous) do
for _, o in pairs(out) do
if not gtable.hasitem(p, o) then
new[#new + 1] = gtable.join(p, {o})
end
end
end
choices = gtable.join(choices, new)
previous = new
end
return choices
end
-- Build available choices
local function menu()
local menu = {}
local out = outputs()
local choices = arrange(out)
for _, choice in pairs(choices) do
local cmd = "xrandr"
-- Enabled outputs
for i, o in pairs(choice) do
cmd = cmd .. " --output " .. o .. " --auto"
if i > 1 then
cmd = cmd .. " --right-of " .. choice[i-1]
end
end
-- Disabled outputs
for _, o in pairs(out) do
if not gtable.hasitem(choice, o) then
cmd = cmd .. " --output " .. o .. " --off"
end
end
local label = ""
if #choice == 1 then
label = 'Only <span weight="bold">' .. choice[1] .. '</span>'
else
for i, o in pairs(choice) do
if i > 1 then label = label .. " + " end
label = label .. '<span weight="bold">' .. o .. '</span>'
end
end
menu[#menu + 1] = { label, cmd }
end
return menu
end
-- Display xrandr notifications from choices
local state = { cid = nil }
local function naughty_destroy_callback(reason)
if reason == naughty.notificationClosedReason.expired or
reason == naughty.notificationClosedReason.dismissedByUser then
local action = state.index and state.menu[state.index - 1][2]
if action then
spawn(action, false)
state.index = nil
end
end
end
local function xrandr()
-- Build the list of choices
if not state.index then
state.menu = menu()
state.index = 1
end
-- Select one and display the appropriate notification
local label, action
local next = state.menu[state.index]
state.index = state.index + 1
if not next then
label = "Keep the current configuration"
state.index = nil
else
label, action = next[1], next[2]
end
state.cid = naughty.notify({ text = label,
icon = icon_path,
timeout = 4,
screen = mouse.screen,
replaces_id = state.cid,
destroy = naughty_destroy_callback}).id
end
return {
outputs = outputs,
arrange = arrange,
menu = menu,
xrandr = xrandr
}

View File

@ -34,31 +34,37 @@ sxhkd &
###---Keyboard---### ###---Keyboard---###
setxkbmap -option caps:escape setxkbmap -option caps:escape
###---Get monitor count---###
set SCREENCOUNT (xrandr | grep -c "\*")
###---Monitors---### ###---Monitors---###
if [ "$SCREENCOUNT" -eq 2 ] {{- if eq .chassisType "desktop" }}
bspc monitor DP-3 -d 2 3 4 5 6 7 8 9 0 bspc monitor DP-3 -d 2 3 4 5 6 7 8 9 0
bspc monitor DP-2 -d 1 bspc monitor DP-2 -d 1
if [ -f "$HOME/.local/bin/screen_desktop" ] xrandr --output DP-3 --primary --mode 3840x2160 --rotate normal --output DP-2 --mode 2560x1440 --pos 0x0 --rotate left
screen_desktop {{ else }}
end bspc monitor -d 1 2 3 4 5 6 7 8 9 0
if [ -f "$HOME/.local/bin/polybar-desktop" ] {{- end }}
polybar-desktop
end ###---Polybar---###
else # Terminate already running bar instances
bspc monitor -d 1 2 3 4 5 6 7 8 9 0 killall -q polybar
if [ -f "$HOME/.local/bin/screen" ]
screen # Wait until the processes have been shut down
end while pgrep -u (id -u) -x polybar >/dev/null
if [ -f "$HOME/.local/bin/polybar-laptop" ] sleep 1
polybar-laptop
end
end end
{{- if eq .chassisType "desktop" }}
polybar-monitor1 &
polybar-monitor2 &
{{ else }}
polybar framework-top &
polybar framework-bottom &
{{- end }}
###---Wallpaper & opacity---### ###---Wallpaper & opacity---###
~/.local/bin/wallpaper {{- if eq .chassisType "desktop" }}
xwallpaper --output DP-2 --zoom ~/.cache/wall2.png --output DP-3 --zoom ~/.cache/wall1.png &
{{ else }}
xwallpaper --output eDP-1 --zoom ~/.cache/wall1.png &
{{- end }}
wal -n -R wal -n -R
picom -b picom -b
@ -116,10 +122,7 @@ start_if_not_running emacs
start_if_not_running element-desktop start_if_not_running element-desktop
start_if_not_running element-desktop-nightly start_if_not_running element-desktop-nightly
start_if_not_running gpodder start_if_not_running gpodder
{{- if eq .chassisType "desktop" }}start_if_not_running slack{{ end }}
if [ "$SCREENCOUNT" -eq 2 ]
start_if_not_running slack
end
pkill -f cleanfullscreen pkill -f cleanfullscreen
~/.local/bin/cleanfullscreen & ~/.local/bin/cleanfullscreen &

View File

@ -0,0 +1,106 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
coc-css@>=1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/coc-css/-/coc-css-1.3.0.tgz#9fb85490b203dd1d3960d4cadc29b8b97178ef3f"
integrity sha512-adpUCwj1sFK+6RFXVDUYZe3oC+I1dre4XoWVZY7H05Fn7r7sa5QbpQ/F+kIce2sveQbsVoLTR7mfr18wH7Ru+w==
coc-go@>=1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/coc-go/-/coc-go-1.3.0.tgz#51af28d0e8ff4f97efe1f8491c8c2ad3f6d344da"
integrity sha512-Oh3ea/gb0lU5qZN1qaQMAQhxscrgcYfB3ZuRWxi+tMLCjoi8gJg/g05C5zD6hfbgmhC1PsL7jPeWSe5F4MifLg==
dependencies:
tslib "^2.3.1"
vscode-languageserver-textdocument "^1.0.4"
vscode-uri "^3.0.3"
which "^2.0.2"
coc-html@>=1.6.1:
version "1.7.0"
resolved "https://registry.yarnpkg.com/coc-html/-/coc-html-1.7.0.tgz#de4a312ba8d7f20322a6bfac3ec3352de682e270"
integrity sha512-ywRthVmeX9gI1lAORorS8MjNiqfSi9mMNRRwTWe6b+GyzriabMhyCej+RNhHV1gcPNRLqlhy+j3ncHv+m5seKg==
dependencies:
typescript "^4.3"
coc-jest@>=1.1.4:
version "1.1.5"
resolved "https://registry.yarnpkg.com/coc-jest/-/coc-jest-1.1.5.tgz#e320e7cdd65e3cfca102a054b5bceacdc537a7f4"
integrity sha512-H6j4hqmsF2b4hSfGQqaXeCahs3LnyYQc6vbtrSkuMQRdosh0gcZQx186kbxph8/5Mecw22Y9BGcsEaF2/RLEbw==
coc-json@>=1.4.1:
version "1.6.1"
resolved "https://registry.yarnpkg.com/coc-json/-/coc-json-1.6.1.tgz#0e8c791a068cea6efdbc20404ae356faefe17573"
integrity sha512-qRDwaa4PZUb7q0N/oGoUrhKeo+5A9haYggOkUjx3SMPMWh2Pxsck5eftZzyUgLZDh/fabrYP7kBYE9+n7u4gnw==
coc-pairs@>=1.3.2:
version "1.3.2"
resolved "https://registry.yarnpkg.com/coc-pairs/-/coc-pairs-1.3.2.tgz#10db5fa45ccbe4e64c195443190d724e4c3e3d81"
integrity sha512-dinOWxcKvSghIEyRHy0vfjIUturfX1HiRHZ+vyInHXP3lXFq1SQF3B9RzwHj1eXjfmqKMDVsgwjAftAx8j8Rbw==
coc-python@>=1.2.13:
version "1.2.13"
resolved "https://registry.yarnpkg.com/coc-python/-/coc-python-1.2.13.tgz#74c5b9d3413a13310027f93578915bac33692c62"
integrity sha512-thsXkbwwJMpiGa/1GiPvFnbWtC5K8QcZvcUtoc4lU8Hf38LbywK5qRp6M7tOAabJOq5dYcIYYbPZWzGwhoZEiw==
coc-rust-analyzer@>=0.62.0:
version "0.68.4"
resolved "https://registry.yarnpkg.com/coc-rust-analyzer/-/coc-rust-analyzer-0.68.4.tgz#9b059e47543a10f24862e7ef235bd922c0660111"
integrity sha512-90PFsmwheDgytlzH65RGjnTFCVzMhfmvjOCj0VkgnuAEuiBbccMPQv/cuzS5Mbj6e74NWG5FI4QHRukEgsZdPA==
coc-tsserver@>=1.10.1:
version "1.11.11"
resolved "https://registry.yarnpkg.com/coc-tsserver/-/coc-tsserver-1.11.11.tgz#66e7bca46c0bec63601e10005da92f89c6329d73"
integrity sha512-gg8muOoV54D4IawMSGIVgLGevyMD6K0U8TYc4xFMjZt9bvuv5fkeLXxxH+yAfmtFXVmFWSrCAff1gPibnIPOvw==
dependencies:
typescript "^4.8.3"
coc-yaml@>=1.7.5:
version "1.8.0"
resolved "https://registry.yarnpkg.com/coc-yaml/-/coc-yaml-1.8.0.tgz#07967894819053738901ddb0f957a9d18dc96459"
integrity sha512-ttTi8SSoFPcKOWgY7H7E91zOYcycfsZdvA7jmZJOr+iWYGqR2LdvMvBpWpuV7oWSOF5a88zM/vb8P8aNefE04Q==
dependencies:
prettier "2.0.5"
isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
prettier@2.0.5:
version "2.0.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
tslib@^2.3.1:
version "2.4.0"
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==
typescript@^4.3:
version "4.8.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
typescript@^4.8.3:
version "4.8.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.3.tgz#d59344522c4bc464a65a730ac695007fdb66dd88"
integrity sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==
vscode-languageserver-textdocument@^1.0.4:
version "1.0.7"
resolved "https://registry.yarnpkg.com/vscode-languageserver-textdocument/-/vscode-languageserver-textdocument-1.0.7.tgz#16df468d5c2606103c90554ae05f9f3d335b771b"
integrity sha512-bFJH7UQxlXT8kKeyiyu41r22jCZXG8kuuVVA33OEJn1diWOZK5n8zBSPZFHVBOu8kXZ6h0LIRhf5UnCo61J4Hg==
vscode-uri@^3.0.3:
version "3.0.6"
resolved "https://registry.yarnpkg.com/vscode-uri/-/vscode-uri-3.0.6.tgz#5e6e2e1a4170543af30151b561a41f71db1d6f91"
integrity sha512-fmL7V1eiDBFRRnu+gfRWTzyPpNIHJTc4mWnFkwBUmO9U3KPgJAmTx7oxi2bl/Rh6HLdU7+4C9wlj0k2E4AdKFQ==
which@^2.0.2:
version "2.0.2"
resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1"
integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==
dependencies:
isexe "^2.0.0"

View File

@ -0,0 +1,207 @@
(defun set-font (font-size bigfont-size)
(setq doom-font (font-spec :family "JetBrainsMono Nerd Font" :size font-size))
(setq doom-big-font (font-spec :family "JetBrainsMono Nerd Font" :size bigfont-size))
(setq doom-variable-pitch-font (font-spec :family "Noto Sans" :size font-size))
(setq doom-serif-font (font-spec :family "Noto Serif" :size font-size))
(setq doom-unicode-font (font-spec :family "JoyPixels"))
)
(when window-system
(if (> (x-display-pixel-width) 2560)
(set-font 12 24)
(set-font 16 28)))
(setq doom-theme 'doom-molokai)
(defun my-fetch-password (&rest params)
(require 'auth-source)
(let ((match (car (apply #'auth-source-search params))))
(if match
(let ((secret (plist-get match :secret)))
(if (functionp secret)
(funcall secret)
secret))
(error "Password not found for %S" params))))
(setq display-line-numbers-type `relative)
(use-package! projectile
:defer t
:config
(setq projectile-project-search-path '("~/devel/personal/" "~/devel/andthensome/" "~/Documents/" "~/dotfiles" "~/private-dotfiles", "~/devel/slip-box/", "~/devel/andthensome/clients/"))) ; Default paths
(use-package! circe
:defer t
:config
(setq circe-network-options
`(
("znc-freenode"
:host "irc.higherlearning.eu"
:port "5000"
:tls t ;; Enable tls
:user "l0rd/freenode"
:server-buffer-name "⇄ Freenode (ZNC)"
:pass (lambda (&rest _) (+pass-get-secret "controlpanel/irc.higherlearning.eu")) ;; Get password from pass
:channels ("#emacs"))
("znc-snoonet"
:host "irc.higherlearning.eu"
:port "5000"
:tls t
:user "l0rd/snoonet"
:server-buffer-name "⇄ Snoonet (ZNC)"
:pass (lambda (&rest _) (+pass-get-secret "controlpanel/irc.higherlearning.eu"))
:channels ("#islam"))
))
)
(add-hook 'circe-channel-mode-hook 'enable-lui-autopaste)
(setq deft-directory "~/Documents/slip-box")
(after! org
(map! :map org-mode-map
:n "M-j" #'org-metadown
:n "M-k" #'org-metaup)
)
(add-hook 'auto-save-hook 'org-save-all-org-buffers)
(setq org-directory "~/Documents/org"
org-agenda-files (directory-files-recursively "~/Documents/org/" "\.org$")
org-log-done 'note
org-default-notes-file (expand-file-name "inbox.org" org-directory)
org-startup-with-inline-images t)
(use-package! org-protocol-capture-html :defer t)
(after! org
(add-to-list 'org-capture-templates '("w" "Web site" entry
(file+olp "~/Documents/org/web.org" "Web")
"* %c\n%U %?%:initial"))
)
(setq org-roam-directory "~/Documents/slip-box")
(setq org-roam-graph-viewer "~/.local/bin/viewDotfile")
(setq org-journal-dir "~/Documents/slip-box")
(setq org-journal-date-prefix "#+title: ")
(setq org-journal-file-format "%Y-%m-%d.org")
(setq org-journal-date-format "%A, %d %B %Y")
(setq org-publish-project-alist
'(("wiki"
:base-directory "~/Documents/slip-box/"
:publishing-directory "~/devel/personal/Ryankes.eu/wiki/content/"
:publishing-function org-pandoc-export-to-markdown_mmd
:select-tags ("export-blog")
)))
(use-package! mu4e
:defer t
:config
(setq sendmail-program "/usr/bin/msmtp"
send-mail-function
'smtpmail-send-it
message-sendmail-f-is-evil
t
message-sendmail-extra-arguments
'("--read-envelope-from")
message-send-mail-function
'message-send-mail-with-sendmail)
(setq mu4e-maildirs-extension-custom-list '("/ryankes/INBOX" "/ryankes/Sent" "/ryankes/Drafts"
"/ryankes/Archive" "/ryankes/Archive.quicknet"
"/gmail/INBOX" "/gmail/Sent" "/gmail/Drafts"
"/gmail/Archive" "/andthensome/INBOX" "/andthensome/Sent"
"/andthensome/Drafts" "/andthensome/Archive")))
(setq mu4e-maildir "~/.local/share/mail"
mu4e-maildir-shortcuts
'(("/ryankes/INBOX" . ?r)
("/gmail/INBOX" . ?g)
("/andthensome/INBOX" . ?a))
mu4e-mu-home
"~/.cache/mu"
mu4e-update-interval
300
mu4e-get-mail-command
"mailsync"
mu4e-enable-mode-line
t
mu4e-use-fancy-chars
t
mu4e-context-policy
'pick-first
mu4e-attachment-dir
"~/Downloads/")
(after! mu4e
;; load package to be able to capture emails for GTD
(require 'org-mu4e)
(setq mu4e-contexts
`(,(make-mu4e-context :name "Ryankes"
:match-func (lambda (msg)
(when msg
(string-match-p "^/ryankes"
(mu4e-message-field msg :maildir)))):vars'((user-mail-address . "ryan@ryankes.eu")
(user-full-name . "Ryan")
(mu4e-sent-folder . "/ryankes/Sent")
(mu4e-drafts-folder . "/ryankes/Drafts")
(mu4e-trash-folder . "/ryankes/Trash")
(mu4e-refile-folder . "/ryankes/Archive")))
,(make-mu4e-context :name "Gmail"
:match-func (lambda (msg)
(when msg
(string-match-p "^/gmail"
(mu4e-message-field msg :maildir)))):vars'((user-mail-address . "alrayyes@gmail.com")
(user-full-name . "Ryan")
(mu4e-sent-folder . "/gmail/Sent")
(mu4e-drafts-folder . "/gmail/Drafts")
(mu4e-trash-folder . "/gmail/Trash")
(mu4e-refile-folder . "/gmail/Archive")))
,(make-mu4e-context :name "Andthensome"
:match-func (lambda (msg)
(when msg
(string-match-p "^/andthensome"
(mu4e-message-field msg :maildir)))):vars'((user-mail-address . "ryan@andthensome.nl")
(user-full-name . "Ryan Kes")
(mu4e-sent-folder . "/andthensome/Sent")
(mu4e-drafts-folder . "/andthensome/Drafts")
(mu4e-trash-folder . "/andthensome/Trash")
(mu4e-refile-folder . "/andthensome/Archive"))))))
(add-hook 'mu4e-view-mode-hook 'visual-line-mode)
(use-package! elfeed
:defer t
:config
(setq elfeed-use-curl t)
(elfeed-set-timeout 36000)
(setq elfeed-protocol-ttrss-maxsize 200) ; bigger than 200 is invalid
(elfeed-protocol-enable)
(defadvice elfeed (after configure-elfeed-feeds activate)
"Make elfeed-org autotags rules works with elfeed-protocol."
(defvar elfeed-protocol-tags)
(setq elfeed-protocol-tags elfeed-feeds)
(setq elfeed-feeds (list
(list "ttrss+https://alrayyes@rss.higherlearning.eu"
:password (password-store-get "emacs/rss")
:autotags elfeed-protocol-tags)))))
(use-package! elfeed-org
:defer t
:config
(setq rmh-elfeed-org-files '("~/Documents/org/elfeed.org"))
)
(use-package! elfeed-goodies
:defer t
:config
(elfeed-goodies/setup))
(with-eval-after-load "ispell"
(setq ispell-program-name "hunspell")
;; ispell-set-spellchecker-params has to be called
;; before ispell-hunspell-add-multi-dic will work
(ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "en_GB,nl_NL,en_US")
(setq ispell-dictionary "en_GB,nl_NL,en_US"))
(add-to-list 'auto-mode-alist '("\\.mdx\\'" . markdown-mode))

Some files were not shown because too many files have changed in this diff Show More