diff --git a/.vtsm/arch.json b/.vtsm/arch.json index 190b87d..250f37a 100755 --- a/.vtsm/arch.json +++ b/.vtsm/arch.json @@ -1,21 +1,8 @@ { - "alacritty": "$HOME/.config/alacritty/", "bangs": "$HOME/.config/bangs/", "bin": "$HOME/.local/bin/", - "bspwm": "$HOME/.config/bspwm/", - "dunst": "$HOME/.config/dunst/", "emacs": "$HOME/.config/doom", "lf": "$HOME/.config/lf", - "himalaya": "$HOME/.config/himalaya", "newsboat": "$HOME/.config/newsboat", "nvim": "$HOME/.config/nvim/", - "picom": "$HOME/.config/picom", - "polybar": "$HOME/.config/polybar", - "rofi": "$HOME/.config/rofi", - "slop": "$HOME/.config/slop", - "sxiv": "$HOME/.config/sxiv", - "sxhkd": "$HOME/.config/sxhkd", - "sway": "$HOME/.config/sway", - "waybar": "$HOME/.config/waybar", - "zsh": "$HOME/.config/zsh" } diff --git a/.vtsm/nixos-zilch.json b/.vtsm/nixos-zilch.json index f3a7ad2..20d15e1 100755 --- a/.vtsm/nixos-zilch.json +++ b/.vtsm/nixos-zilch.json @@ -1,12 +1,7 @@ { "bin": "$HOME/.local/bin", "emacs": "$HOME/.config/doom", - "mpd": "$HOME/.config/mpd", "nvim": "$HOME/.config/nvim", - "nyxt": "$HOME/.config/nyxt", "newsboat": "$HOME/.config/newsboat", - "rofi": "$HOME/.config/rofi", - "starship": "$HOME/.config", - "slop": "$HOME/.config/slop", - "youtube-dl": "$HOME/.config/youtube-dl" + "wezterm": "$HOME/.config/wezterm" } diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml deleted file mode 100755 index 7de3669..0000000 --- a/alacritty/alacritty.yml +++ /dev/null @@ -1,32 +0,0 @@ -window: - dynamic_title: true - dynamic_padding: false - decorations: none - startup_mode: Maximized - opacity: 1 - -scrolling: - history: 10000 - multiplier: 3 - -font: - normal: - family: monospace - family: Source Code Pro - family: Fira Code - family: Iosevka - normal: - family: monospace - style: Regular - size: 15.0 - use_thin_strokes: true - -selection: - semantic_escape_chars: ",│`|:\"' ()[]{}<>" - save_to_clipboard: false - -# Live config reload (changes require restart) -live_config_reload: true - -# Send ESC (\x1b) before characters when alt is pressed. -alt_send_esc: true diff --git a/bspwm/bspwmrc b/bspwm/bspwmrc deleted file mode 100755 index 9f3eb44..0000000 --- a/bspwm/bspwmrc +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -# Removing all rules at startup to prevent duplicating rules. -bspc rule -r "*" - -# Set up the desktops (workspaces) for the monitor -bspc monitor -d I II III IV V - -bspc config border_width 2 -bspc config window_gap 9 - -bspc config split_ratio 0.50 -bspc config borderless_monocle true -bspc config gapless_monocle true -bspc config focused_border_color "#88C0D0" -bspc config focus_follows_pointer true - -# Set the default cursor to pointer -xsetroot -cursor_name left_ptr - -# Rules -bspc rule -a code-oss desktop=^2 -bspc rule -a firefox desktop=^1 - diff --git a/docs/bspwm-empty.png b/docs/bspwm-empty.png deleted file mode 100755 index 6a52e31..0000000 Binary files a/docs/bspwm-empty.png and /dev/null differ diff --git a/docs/dropdown-term.png b/docs/dropdown-term.png deleted file mode 100755 index b76b3da..0000000 Binary files a/docs/dropdown-term.png and /dev/null differ diff --git a/docs/editors-ahoy.png b/docs/editors-ahoy.png deleted file mode 100755 index ddc878b..0000000 Binary files a/docs/editors-ahoy.png and /dev/null differ diff --git a/docs/rofi-dunst-and-lf.png b/docs/rofi-dunst-and-lf.png deleted file mode 100755 index 26152db..0000000 Binary files a/docs/rofi-dunst-and-lf.png and /dev/null differ diff --git a/docs/terminals.png b/docs/terminals.png deleted file mode 100755 index e7b0c82..0000000 Binary files a/docs/terminals.png and /dev/null differ diff --git a/docs/vim-and-zathura.png b/docs/vim-and-zathura.png deleted file mode 100755 index 1c4cf85..0000000 Binary files a/docs/vim-and-zathura.png and /dev/null differ diff --git a/docs/vscode-and-rofi.png b/docs/vscode-and-rofi.png deleted file mode 100755 index 4883c2c..0000000 Binary files a/docs/vscode-and-rofi.png and /dev/null differ diff --git a/dunst/dunstrc b/dunst/dunstrc deleted file mode 100755 index 6bc2e45..0000000 --- a/dunst/dunstrc +++ /dev/null @@ -1,435 +0,0 @@ -[global] - ### Display ### - - # Which monitor should the notifications be displayed on. - monitor = 0 - - # Display notification on focused monitor. Possible modes are: - # mouse: follow mouse pointer - # keyboard: follow window with keyboard focus - # none: don't follow anything - # - # "keyboard" needs a window manager that exports the - # _NET_ACTIVE_WINDOW property. - # This should be the case for almost all modern window managers. - # - # If this option is set to mouse or keyboard, the monitor option - # will be ignored. - follow = mouse - - # The geometry of the window: - # [{width}]x{height}[+/-{x}+/-{y}] - # The geometry of the message window. - # The height is measured in number of notifications everything else - # in pixels. If the width is omitted but the height is given - # ("-geometry x2"), the message window expands over the whole screen - # (dmenu-like). If width is 0, the window expands to the longest - # message displayed. A positive x is measured from the left, a - # negative from the right side of the screen. Y is measured from - # the top and down respectively. - # The width can be negative. In this case the actual width is the - # screen width minus the width defined in within the geometry option. - geometry = "350x50-10+50" - - # Show how many messages are currently hidden (because of geometry). - indicate_hidden = yes - - # Shrink window if it's smaller than the width. Will be ignored if - # width is 0. - shrink = no - - # The transparency of the window. Range: [0; 100]. - # This option will only work if a compositing window manager is - # present (e.g. xcompmgr, compiz, etc.). - transparency = 10 - - # The height of the entire notification. If the height is smaller - # than the font height and padding combined, it will be raised - # to the font height and padding. - notification_height = 0 - - # Draw a line of "separator_height" pixel height between two - # notifications. - # Set to 0 to disable. - separator_height = 2 - - # Padding between text and separator. - padding = 8 - - # Horizontal padding. - horizontal_padding = 8 - - # Defines width in pixels of frame around the notification window. - # Set to 0 to disable. - frame_width = 2 - - # Defines color of the frame around the notification window. - frame_color = "#D8DEE9" - - # 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 - - # Don't remove messages, if the user is idle (no mouse or keyboard input) - # for longer than idle_threshold seconds. - # Set to 0 to disable. - # A client can set the 'transient' hint to bypass this. See the rules - # section for how to disable this if necessary - idle_threshold = 120 - - - - ### Text ### - font = Iosevka 12 - - # The spacing between lines. If the height is smaller than the - # font height, it will get raised to the font height. - line_height = 0 - - # Possible values are: - # full: Allow a small subset of html markup in notifications: - # bold - # italic - # strikethrough - # underline - # - # For a complete reference see - # . - # - # strip: This setting is provided for compatibility with some broken - # clients that send markup even though it's not enabled on the - # server. Dunst will try to strip the markup but the parsing is - # simplistic so using this option outside of matching rules for - # specific applications *IS GREATLY DISCOURAGED*. - # - # no: Disable markup parsing, incoming notifications will be treated as - # plain text. Dunst will not advertise that it has the body-markup - # capability if this is set as a global setting. - # - # It's important to note that markup inside the format option will be parsed - # regardless of what this is set to. - 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 = "%s\n%b" - - # Alignment of message text. - # Possible values are "left", "center" and "right". - alignment = left - - # Show age of message if message is older than show_age_threshold - # seconds. - # Set to -1 to disable. - show_age_threshold = 60 - - # Split notifications into multiple lines if they don't fit into - # geometry. - word_wrap = yes - - # When word_wrap is set to no, specify where to make an ellipsis in long lines. - # Possible values are "start", "middle" and "end". - ellipsize = middle - - # Ignore newlines '\n' in notifications. - ignore_newline = no - - # Stack together notifications with the same content - stack_duplicates = true - - # Hide the count of stacked notifications with the same content - hide_duplicate_count = false - - # Display indicators for URLs (U) and actions (A). - show_indicators = yes - - - - ### Icons ### - # Align icons left/right/off - icon_position = left - - # Scale larger icons down to this size, set to 0 to disable - max_icon_size = 32 - - # Paths to default icons. - icon_path = /usr/share/icons/Adwaita/16x16/status/:/usr/share/icons/Adwaita/16x16/devices/ - - - - ### History ### - - # Should a notification popped up from history be sticky or timeout - # as if it would normally do. - sticky_history = yes - - # Maximum amount of notifications kept in history - history_length = 20 - - ### Misc/Advanced ### - - # dmenu path. - dmenu = /usr/bin/dmenu -p dunst: - - # Browser for opening urls in context menu. - browser = /usr/bin/firefox -new-tab - - # Always run rule-defined scripts, even if the notification is suppressed - always_run_script = true - - # Define the title of the windows spawned by dunst - title = Dunst - - # Define the class of the windows spawned by dunst - class = Dunst - - # Print a notification on startup. - # This is mainly for error detection, since dbus (re-)starts dunst - # automatically after a crash. - startup_notification = false - - # Manage dunst's desire for talking - # Can be one of the following values: - # crit: Critical features. Dunst aborts - # warn: Only non-fatal warnings - # mesg: Important Messages - # info: all unimportant stuff - # debug: all less than unimportant stuff - verbosity = mesg - - # Define the corner radius of the notification window - # in pixel size. If the radius is 0, you have no rounded - # corners. - # The radius will be automatically lowered if it exceeds half of the - # notification height to avoid clipping text and/or icons. - corner_radius = 0 - - - - ### Legacy - - # Use the Xinerama extension instead of RandR for multi-monitor support. - # This setting is provided for compatibility with older nVidia drivers that - # do not support RandR and using it on systems that support RandR is highly - # discouraged. - # - # By enabling this setting dunst will not be able to detect when a monitor - # is connected or disconnected which might break follow mode if the screen - # layout changes. - force_xinerama = false - - ### mouse - - # Defines action of mouse event - # Possible values are: - # * none: Don't do anything. - # * do_action: If the notification has exactly one action, or one is marked as default, - # invoke it. If there are multiple and no default, open the context menu. - # * close_current: Close current notification. - # * close_all: Close all notifications. - mouse_left_click = close_current - mouse_middle_click = do_action - mouse_right_click = close_all - - - -# Experimental features that may or may not work correctly. Do not expect them -# to have a consistent behaviour across releases. -[experimental] - # Calculate the dpi to use on a per-monitor basis. - # If this setting is enabled the Xft.dpi value will be ignored and instead - # dunst will attempt to calculate an appropriate dpi value for each monitor - # using the resolution and physical size. This might be useful in setups - # where there are multiple screens with very different dpi values. - per_monitor_dpi = false - - - -[shortcuts] - # Shortcuts are specified as [modifier+][modifier+]...key - # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", - # "mod3" and "mod4" (windows-key). - # Xev might be helpful to find names for keys. - - # Close notification. - close = ctrl+space - - # Close all notifications. - close_all = ctrl+shift+space - - # Redisplay last message(s). - # On the US keyboard layout "grave" is normally above TAB and left - # of "1". Make sure this key actually exists on your keyboard layout, - # e.g. check output of 'xmodmap -pke' - history = ctrl+grave - - # Context menu. - context = ctrl+shift+period - - - -[urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the "#" and following would be interpreted as a comment. - background = "#2E3440" - foreground = "#ECEFF4" - timeout = 10 - # Icon for notifications with low urgency, uncomment to enable - #icon = /path/to/icon - - - -[urgency_normal] - background = "#2E3440" - foreground = "#D8DEE9" - timeout = 10 - # Icon for notifications with normal urgency, uncomment to enable - #icon = /path/to/icon - - - -[urgency_critical] - background = "#2E3440" - foreground = "#A3BE8C" - frame_color = "#A3BE8C" - timeout = 0 - # Icon for notifications with critical urgency, uncomment to enable - #icon = /path/to/icon - - - -# 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 (discouraged, see desktop_entry) -# body -# category -# desktop_entry -# icon -# match_transient -# msg_urgency -# stack_tag -# summary -# -# and you can override the -# background -# foreground -# format -# frame_color -# fullscreen -# new_icon -# set_stack_tag -# set_transient -# timeout -# urgency -# -# Shell-like globbing will get expanded. -# -# Instead of the appname filter, it's recommended to use the desktop_entry filter. -# GLib based applications export their desktop-entry name. In comparison to the appname, -# the desktop-entry won't get localized. -# -# 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. - -# Disable the transient hint so that idle_threshold cannot be bypassed from the -# client -#[transient_disable] -# match_transient = yes -# set_transient = no -# -# Make the handling of transient notifications more strict by making them not -# be placed in history. -#[transient_history_ignore] -# match_transient = yes -# history_ignore = yes - -# fullscreen values -# show: show the notifications, regardless if there is a fullscreen window opened -# delay: displays the new notification, if there is no fullscreen window active -# If the notification is already drawn, it won't get undrawn. -# pushback: same as delay, but when switching into fullscreen, the notification will get -# withdrawn from screen again and will get delayed like a new notification -#[fullscreen_delay_everything] -# fullscreen = delay -#[fullscreen_show_critical] -# msg_urgency = critical -# fullscreen = show - -#[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 - -#[skip-display] -# # This notification will not be displayed, but will be included in the history -# summary = "foobar" -# skip_display = 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 -# -#[stack-volumes] -# appname = "some_volume_notifiers" -# set_stack_tag = "volume" -# - -[screenshot] - appname = "maim" - desktop_entry = "maim" -# vim: ft=cfg diff --git a/mpd/mpd.conf b/mpd/mpd.conf deleted file mode 100644 index a4e00b6..0000000 --- a/mpd/mpd.conf +++ /dev/null @@ -1,23 +0,0 @@ -# Recommended location for database -db_file "~/.config/mpd/database" - -# Logs to systemd journal -log_file "syslog" - -# The music directory is by default the XDG directory, uncomment to amend and choose a different directory -music_directory "~/library/music" - -# Uncomment to refresh the database whenever files in the music_directory are changed -auto_update "yes" - -audio_output { - type "pulse" - name "pulse audio" -} - -# Uncomment to enable the functionalities -playlist_directory "~/.config/mpd/playlists" -#pid_file "~/.config/mpd/pid" -#state_file "~/.config/mpd/state" -#sticker_file "~/.config/mpd/sticker.sql" - diff --git a/pacman/hooks/100-systemd-boot.hook b/pacman/hooks/100-systemd-boot.hook deleted file mode 100755 index d302bc4..0000000 --- a/pacman/hooks/100-systemd-boot.hook +++ /dev/null @@ -1,9 +0,0 @@ -[Trigger] -Type = Package -Operation = Upgrade -Target = systemd - -[Action] -Description = Upgrading systemd-boot -When = PostTransaction -Exec = /usr/bin/bootctl update diff --git a/pacman/pacman.conf b/pacman/pacman.conf deleted file mode 100755 index 54be9a9..0000000 --- a/pacman/pacman.conf +++ /dev/null @@ -1,101 +0,0 @@ -# -# /etc/pacman.conf -# -# See the pacman.conf(5) manpage for option and repository directives - -# -# GENERAL OPTIONS -# -[options] -# The following paths are commented out with their default values listed. -# If you wish to use different paths, uncomment and update the paths. -#RootDir = / -#DBPath = /var/lib/pacman/ -#CacheDir = /var/cache/pacman/pkg/ -#LogFile = /var/log/pacman.log -#GPGDir = /etc/pacman.d/gnupg/ -#HookDir = /etc/pacman.d/hooks/ -HoldPkg = pacman glibc -#XferCommand = /usr/bin/curl -L -C - -f -o %o %u -#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u -#CleanMethod = KeepInstalled -#UseDelta = 0.7 -Architecture = auto - -# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup -#IgnorePkg = -#IgnoreGroup = - -#NoUpgrade = -#NoExtract = - -# Misc options -#UseSyslog -Color -#TotalDownload -CheckSpace -VerbosePkgLists -ILoveCandy - -# By default, pacman accepts packages signed by keys that its local keyring -# trusts (see pacman-key and its man page), as well as unsigned packages. -SigLevel = Required DatabaseOptional -LocalFileSigLevel = Optional -#RemoteFileSigLevel = Required - -# NOTE: You must run `pacman-key --init` before first using pacman; the local -# keyring can then be populated with the keys of all official Arch Linux -# packagers with `pacman-key --populate archlinux`. - -# -# REPOSITORIES -# - can be defined here or included from another file -# - pacman will search repositories in the order defined here -# - local/custom mirrors can be added here or in separate files -# - repositories listed first will take precedence when packages -# have identical names, regardless of version number -# - URLs will have $repo replaced by the name of the current repo -# - URLs will have $arch replaced by the name of the architecture -# -# Repository entries are of the format: -# [repo-name] -# Server = ServerName -# Include = IncludePath -# -# The header [repo-name] is crucial - it must be present and -# uncommented to enable the repo. -# - -# The testing repositories are disabled by default. To enable, uncomment the -# repo name header and Include lines. You can add preferred servers immediately -# after the header, and they will be used before the default mirrors. - -#[testing] -#Include = /etc/pacman.d/mirrorlist - -[core] -Include = /etc/pacman.d/mirrorlist - -[extra] -Include = /etc/pacman.d/mirrorlist - -#[community-testing] -#Include = /etc/pacman.d/mirrorlist - -[community] -Include = /etc/pacman.d/mirrorlist - -# If you want to run 32 bit applications on your x86_64 system, -# enable the multilib repositories as required here. - -#[multilib-testing] -#Include = /etc/pacman.d/mirrorlist - -#[multilib] -#Include = /etc/pacman.d/mirrorlist - -# An example of a custom package repository. See the pacman manpage for -# tips on creating your own repositories. -#[custom] -#SigLevel = Optional TrustAll -#Server = file:///home/custompkgs diff --git a/picom/picom.conf b/picom/picom.conf deleted file mode 100755 index 62c889d..0000000 --- a/picom/picom.conf +++ /dev/null @@ -1,226 +0,0 @@ -# Thank you code_nomad: http://9m.no/ꪯ鵞 -# and Arch Wiki contributors: https://wiki.archlinux.org/index.php/Compton - -################################# -# -# Backend -# -################################# - -# Backend to use: "xrender" or "glx". -# GLX backend is typically much faster but depends on a sane driver. -backend = "glx"; - -################################# -# -# GLX backend -# -################################# - -glx-no-stencil = true; - -# GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. -# My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, -# but a 20% increase when only 1/4 is. -# My tests on nouveau show terrible slowdown. -glx-copy-from-front = false; - -# GLX backend: Use MESA_copy_sub_buffer to do partial screen update. -# My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. -# May break VSync and is not available on some drivers. -# Overrides --glx-copy-from-front. -# glx-use-copysubbuffermesa = true; - -# GLX backend: Avoid rebinding pixmap on window damage. -# Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). -# Recommended if it works. -# glx-no-rebind-pixmap = true; - -# GLX backend: GLX buffer swap method we assume. -# Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). -# undefined is the slowest and the safest, and the default value. -# copy is fastest, but may fail on some drivers, -# 2-6 are gradually slower but safer (6 is still faster than 0). -# Usually, double buffer means 2, triple buffer means 3. -# buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers. -# Useless with --glx-use-copysubbuffermesa. -# Partially breaks --resize-damage. -# Defaults to undefined. -#glx-swap-method = "undefined"; - -################################# -# -# Shadows -# -################################# - -# Enabled client-side shadows on windows. -shadow = false; -# The blur radius for shadows. (default 12) -shadow-radius = 5; -# The left offset for shadows. (default -15) -shadow-offset-x = -5; -# The top offset for shadows. (default -15) -shadow-offset-y = -5; -# The translucency for shadows. (default .75) -shadow-opacity = 0.5; - -# Set if you want different colour shadows -# shadow-red = 0.0; -# shadow-green = 0.0; -# shadow-blue = 0.0; - -# The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches -# (most applications are fine, only apps that do weird things with xshapes or argb are affected). -# This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher. -shadow-exclude = [ - "! name~=''", - "name = 'Notification'", - "name = 'Plank'", - "name = 'Docky'", - "name = 'Kupfer'", - "name = 'xfce4-notifyd'", - "name *= 'VLC'", - "name *= 'compton'", - "name *= 'picom'", - "name *= 'Chromium'", - "name *= 'Chrome'", - "class_g = 'Firefox' && argb", - "class_g = 'Conky'", - "class_g = 'Kupfer'", - "class_g = 'Synapse'", - "class_g ?= 'Notify-osd'", - "class_g ?= 'Cairo-dock'", - "class_g ?= 'Xfce4-notifyd'", - "class_g ?= 'Xfce4-power-manager'", - "_GTK_FRAME_EXTENTS@:c", - "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" -]; -# Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) -shadow-ignore-shaped = false; - -################################# -# -# Opacity -# -################################# - -inactive-opacity = 0.85; -active-opacity = 1; -frame-opacity = 1; -inactive-opacity-override = true; - -# Dim inactive windows. (0.0 - 1.0) -inactive-dim = 0.6; -# Do not let dimness adjust based on window opacity. -# inactive-dim-fixed = true; -# Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. -blur-background = false; -# Blur background of opaque windows with transparent frames as well. -blur-background-frame = false; -# Do not let blur radius adjust based on window opacity. -blur-background-fixed = false; -blur-background-exclude = [ - "window_type = 'dock'", -]; - -################################# -# -# Fading -# -################################# - -# Fade windows during opacity changes. -fading = false; -# The time between steps in a fade in milliseconds. (default 10). -fade-delta = 4; -# Opacity change between steps while fading in. (default 0.028). -fade-in-step = 0.03; -# Opacity change between steps while fading out. (default 0.03). -fade-out-step = 0.03; -# Fade windows in/out when opening/closing -# no-fading-openclose = true; - -# Specify a list of conditions of windows that should not be faded. -fade-exclude = [ ]; - -################################# -# -# Other -# -################################# - -# Try to detect WM windows and mark them as active. -mark-wmwin-focused = true; -# Mark all non-WM but override-redirect windows active (e.g. menus). -mark-ovredir-focused = true; -# Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. -# Usually more reliable but depends on a EWMH-compliant WM. -use-ewmh-active-win = true; -# Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. -detect-rounded-corners = true; - -# Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows. -# This prevents opacity being ignored for some apps. -# For example without this enabled my xfce4-notifyd is 100% opacity no matter what. -detect-client-opacity = true; - -# Specify refresh rate of the screen. -# If not specified or 0, picom will try detecting this with X RandR extension. -refresh-rate = 0; - -# Vertical synchronization: match the refresh rate of the monitor -vsync = true; - -# Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. -# Reported to have no effect, though. -dbe = false; - -# Limit picom to repaint at most once every 1 / refresh_rate second to boost performance. -# This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, -# unless you wish to specify a lower refresh rate than the actual value. -#sw-opti = true; - -# Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. -# Known to cause flickering when redirecting/unredirecting windows. -unredir-if-possible = false; - -# Specify a list of conditions of windows that should always be considered focused. -focus-exclude = [ ]; - -# Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. -detect-transient = true; -# Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time. -# WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too. -detect-client-leader = true; - -################################# -# -# Window type settings -# -################################# - -wintypes: -{ - tooltip = - { - # fade: Fade the particular type of windows. - fade = true; - # shadow: Give those windows shadow - shadow = false; - # opacity: Default opacity for the type of windows. - opacity = 0.85; - # focus: Whether to always consider windows of this type focused. - focus = true; - }; -}; - -###################### -# -# XSync -# See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d -# -###################### - -# Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users. -xrender-sync-fence = true; diff --git a/polybar/config b/polybar/config deleted file mode 100755 index f97dc35..0000000 --- a/polybar/config +++ /dev/null @@ -1,188 +0,0 @@ -; Main color format is in ARGB. -; However, formats in RGB is fine. -; This is where all of the colors should be placed for those who are lazy to scroll down (like me). -[colors] - background = ${xrdb:background:#3B4252} - background-light = ${xrdb:color8:#4D4D4D} - foreground = ${xrdb:foreground:#D6D6D6} - foreground-light = ${xrdb:color15:#eee} - accent = ${xrdb:color6:#88C0D0} - - -; The common style between bars. -[bar-common-style] - width = 100% - height = 32 - wm-restack = bspwm - fixed-center = false - - line-size = 3 - line-color = #f00 - - padding = 1 - - module-margin = 1 - module-padding = 1 - - font-0 = "Iosevka;2" - font-1 = "Fira Code;2" - - ; Our fallback fonts are mostly used as icon fonts. - ; For future references, the version of Font Awesome used here is at v5.13.0. - ; I also installed the font myself that I downloaded from the official website (https://fontawesome.com/). - font-2 = "Font Awesome 5 Free,Font Awesome 5 Free Solid:style=Solid;2" - - ; This creates the illusion as if the modules are in the center. - __border-size = 5 - border-top-size = ${self.__border-size} - border-top-color = ${colors.background} - border-bottom-size = ${self.__border-size} - border-bottom-color = ${colors.background} - - tray-position = right - tray-padding = 1 - cursor-click = pointer - - -; Common style between modules. -[module-common-style] - label-padding = 1 - - -; The main bar. -[bar/fds-bar] - background = ${colors.background} - foreground = ${colors.foreground} - - inherit = bar-common-style - enable-ipc = true - - modules-left = bspwm - modules-center = date - modules-right = pulseaudio eth memory home-fs root-fs - - -[module/home-fs] - type = internal/fs - mount-0 = /home - format-margin = 0 - format-padding = 0 - label-margin = 0 - label-padding = 0 - - format-mounted-prefix = "" - format-mounted-prefix-margin-right = 1 - format-unmounted-prefix = "" - format-unmounted-prefix-margin-right = 1 - label-mounted = %free% - label-unmounted = N/A - - -[module/root-fs] - type = internal/fs - mount-0 = / - format-mounted-prefix = "" - format-mounted-prefix-margin-right = 1 - format-unmounted-prefix = "" - format-unmounted-prefix-margin-right = 1 - label-mounted = %free% - label-unmounted = N/A - - -[module/bspwm] - type = internal/bspwm - wrapping-scroll = false - pin-workspaces = true - label-focused = %index% - label-focused-background = ${colors.accent} - label-focused-foreground = ${colors.background} - label-focused-padding = 1 - - label-occupied = %index% - label-occupied-padding = 1 - - label-urgent = %index%! - label-urgent-background = ${colors.foreground} - label-urgent-padding = 1 - - label-empty = %index% - label-empty-foreground = ${colors.foreground-light} - label-empty-padding = 1 - - -[module/memory] - inherit = module-common-style - type = internal/memory - interval = 2 - format-prefix = "" - label = %gb_used% - - -[module/wlan] - inherit = module-common-style - type = internal/network - interface = wlp0s18f2u4 - interval = 3.0 - - format-connected = - format-connected-underline = #9f78e1 - format-prefix = "NET" - label-connected = %essid% - - format-disconnected = - label-disconnected = disconnected - - -[module/eth] - type = internal/network - interface = enp4s0 - interval = 3 - - format-connected-prefix = "" - label-connected = "OK" - label-connected-padding = 1 - - format-disconnected-prefix = "" - label-disconnected-padding = 1 - label-disconnected = "N/A" - - -[module/date] - inherit = module-common-style - type = internal/date - interval = 5 - - ; We've formatted the time string to alter between the time and the date instead. - ; Although, I feel it's a hacky workaround, it still is functional as a date module. - date = "%A, %F" - date-alt = "%B %d, %Y" - time = %T - time-alt = %F - - format-prefix = "" - label = %date% %time% - - -[module/pulseaudio] - inherit = module-common-style - type = internal/pulseaudio - - format-volume-prefix = "" - format-volume = - label-volume = %percentage%% - label-volume-padding = 1 - - format-muted-prefix = "" - label-muted = muted - label-muted-padding = 1 - - -[settings] - screenchange-reload = true - - -[global/wm] - margin = 1 - padding = 1 - -; vim:ft=dosini diff --git a/polybar/launch.sh b/polybar/launch.sh deleted file mode 100755 index 5dd23ce..0000000 --- a/polybar/launch.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env sh - -# Terminate already running bar instances -killall -q polybar - -# Wait until the processes have been shut down -while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done - -# Launch bar1 and bar2 -echo "---" | tee -a /tmp/polybar1.log -polybar "fds-bar" >>/tmp/polybar1.log 2>&1 & diff --git a/sway/config b/sway/config deleted file mode 100644 index 3146b6a..0000000 --- a/sway/config +++ /dev/null @@ -1,235 +0,0 @@ -# Read `man 5 sway` for a complete reference. -# -# Dependencies: -# * mako -# * udiskie -# * alacritty -# * swaybar - -### Variables -# -# Logo key. Use Mod1 for Alt. -set $mod Mod4 - -# Home row direction keys, like vim -set $left h -set $down j -set $up k -set $right l - -set $theme bark-on-a-tree -include ~/sway/themes/$theme/index - -# The notification daemon. -exec mako - -# The automount daemon. -exec udiskie - -# Your preferred terminal emulator -set $term alacritty -# Your preferred application launcher -# Note: pass the final command to swaymsg so that the resulting window can be opened -# on the original workspace that the command was run on. -set $menu dmenu_path | dmenu | xargs swaymsg exec -- - -### Output configuration -# -# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) -output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill - -# 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. -default_border pixel - -### Key bindings -# -# Basics: -# - # Start a terminal - bindsym $mod+Return exec $term - - # Kill focused window - bindsym $mod+q kill - - # Start your launcher - bindsym $mod+d exec $menu - bindsym $mod+shift+d exec wofi --show drun - - # Volume - bindsym XF86AudioRaiseVolume exec pactl set-sink-volume @DEFAULT_SINK@ +5% - bindsym XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -5% - - # Drag floating windows by holding down $mod and left mouse button. - # Resize them with right mouse button + $mod. - # Despite the name, also works for non-floating windows. - # 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 - - # Notifications - bindsym $mod+space exec makoctl dismiss - bindsym $mod+shift+space exec makoctl restore - - # Exit sway (logs you out of your Wayland session) - bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg 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 -# -# Workspaces: -# - # Switch to workspace - bindsym $mod+1 workspace number 1 - bindsym $mod+2 workspace number 2 - bindsym $mod+3 workspace number 3 - bindsym $mod+4 workspace number 4 - bindsym $mod+5 workspace number 5 - bindsym $mod+6 workspace number 6 - bindsym $mod+7 workspace number 7 - bindsym $mod+8 workspace number 8 - bindsym $mod+9 workspace number 9 - bindsym $mod+0 workspace number 10 - # Move focused container to workspace - bindsym $mod+Shift+1 move container to workspace number 1 - bindsym $mod+Shift+2 move container to workspace number 2 - bindsym $mod+Shift+3 move container to workspace number 3 - bindsym $mod+Shift+4 move container to workspace number 4 - bindsym $mod+Shift+5 move container to workspace number 5 - bindsym $mod+Shift+6 move container to workspace number 6 - bindsym $mod+Shift+7 move container to workspace number 7 - bindsym $mod+Shift+8 move container to workspace number 8 - bindsym $mod+Shift+9 move container to workspace number 9 - bindsym $mod+Shift+0 move container to workspace number 10 - - # Note: workspaces can have any name you want, not just numbers. - # We just use 1-10 as the default. - # Move focused container to neighboring workspaces - bindsym $mod+greater move container to workspace next - bindsym $mod+less move container to workspace prev - bindsym $mod+Tab workspace next - bindsym $mod+Shift+Tab workspace prev - bindsym $mod+grave workspace back_and_forth -# -# 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+c split toggle - - # Switch the current container between different layout styles - bindsym $mod+s layout toggle stacking split tabbed - - bindsym $mod+f fullscreen - bindsym $mod+Shift+f floating toggle - bindsym $mod+Shift+g focus mode_toggle - -# -# 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" - -mode "capture" { - bindsym z exec org-capture roam-today - bindsym shift+z exec org-capture roam - bindsym c exec org-capture capture - - bindsym Return mode "default" - bindsym Escape mode "default" -} -bindsym $mod+z mode "capture" - -# Bar. -bar { - swaybar_command waybar - position top -} - -# Window rules. -for_window [app_id="qjackctl"] floating enable -for_window [class="Emacs" title="doom-capture"] floating enable, focus -assign [class="Brave"] 1 -assign [class="Thunderbird"] 1 -assign [class="firefox"] 1 - -# Extra fixes to stuff -exec systemctl --user set-environment QT_QPA_PLATFORM=wayland -exec systemctl --user set-environment _JAVA_AWT_WM_NONREPARENTING=1 -include /etc/sway/config.d/* diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc deleted file mode 100755 index 1b5f185..0000000 --- a/sxhkd/sxhkdrc +++ /dev/null @@ -1,130 +0,0 @@ -# Basic binds (inspired from the previous i3 config). -super + Return - $TERMINAL - -# A dropdown terminal. -# Requires tmux and tdrop for this to work. -super + shift + Return - tdrop -ma -w -4 -y "$PANEL_HEIGHT" $TERMINAL - -# A handy-dandy calculator as a quick dropdown terminal. -super + shift + c - tdrop -ma -w -4 -y "$PANEL_HEIGHT" $TERMINAL -e julia - -# Quick toggling for screenkey. -# Useful for setting up a demo. -super + t - toggle-process screenkey - -# Application launcher. -super + d - rofi -show drun -sidebar-mode -theme themes/fds-mini-sidebar - -# User action shortcuts. -super + F10 - user-prompt "Proceed to shutdown?" "sudo -A shutdown 0" - -super + F11 - user-prompt "Proceed to reboot?" "sudo -A reboot" - -super + F12 - user-prompt "Exit from X session?" "pkill bspwm" - -# Screenshot and screencast launcher. -super + {_, shift + } Print - rofi-screenshot-menu {_, --stop && notify-send "All recording has stopped" || notify-send "There's no active recording process"} - -# A bunch of miscellaneous scripts. -super + x ; {a, s, d} - set -o pipefail && \ - {ocr | xclip -in -selection clipboard && notify-send "Image content has been copied on the clipboard.", \ - parse-barcodes | xclip -selection clipboard && notify-send "Bar code content has been copied.", \ - colorpicker | xclip -selection clipboard && notify-send "Color copied to clipboard."} - -# Miscellaneous shortcuts. -super + shift + c - $HOME/.config/emacs/bin/org-capture - -super + shift + e - choose-emoji-menu - -super + shift + m - choose-manual-menu - -super + shift + n - $TERMINAL -e newsboat - -shift + super + r - pkill -USR1 sxhkd && notify-send "SXHKD config has successfully reloaded." - -shift + super + b - ls $HOME/library/books/*.pdf | xargs -n1 basename | rofi -dmenu | sed "s/^/library\/books\//" | xargs zathura - - -# The usual application suite shortcuts. -# I'm separating them according to the keyboard row (in the QWERTY layout anyway). -super + a ; {z, x, c, v, b, n, m} - { $TERMINAL -e nvim, code, inkscape, gimp, blender, kdenlive, lmms } - -super + a ; {f, a, d} - { firefox, $TERMINAL -e lf, krita } - -super + a ; {t, r} - { thunderbird, thunar } - - - -# bspwm exclusive shortcuts. -# Feel free to replace these if you're working with another WM/DE. -# Over time, I may replace one of the usual shortcut -# with something more generally applied (with `xdotool` for example). - -# Close/Kill the focused window. -# Difference between closing a window and killing a window is how the process is killed. -# Closing a window only terminates the process for that window while killing a window terminates all of the related process of that window. -# For example, try opening two Firefox instance and test how it differs. -super + {_, shift +} + q - bspc node --{close,kill} - -# Move desktop/node view to the specified desktop. -super + {_,shift + }{1-9,0} - bspc {desktop --focus,node --to-desktop} '^{1-9,10}' - -# Desktop and node movements. -super + {_, shift + } Tab - bspc desktop {next, prev} --focus - -# less is <, greater is > -super + {less, greater} - bspc node --to-desktop {prev,next} - -# Window state 'mode' -super + z ; {z,x,c,v} - bspc node --state {floating,fullscreen,tiled,pseudo_tiled} - -# Window resize 'mode' -super + r : {h,j,k,l} - bspc node --resize {left -10 0,bottom 0 10,top 0 -10,right 10 0} - -# Window rotation while keeping the layout -# Stole this from https://www.reddit.com/r/bspwm/comments/jwq6di/give_me_some_good_ideas_for_features_i_could_try/gctmst8?utm_source=share&utm_medium=web2x&context=3 -super + {r,R} - bspc node @/ --circute {forward,backward} - -# grave is ` -super + grave - bspc desktop --focus last.occupied - -super + {Up,Down,Left,Right} - bspc node {north,south,west,east} --focus - -super + shift {Up,Down,Left,Right} - bspc node {north,south,west,east} --swap focused --follow - -# The Vim keybindings. -super + {k,j,h,l} - bspc node {north,south,west,east} --focus - -super + shift {k,j,h,l} - bspc node {north,south,west,east} --swap focused --follow - diff --git a/sxiv/exec/image-info b/sxiv/exec/image-info deleted file mode 100755 index 31f7a88..0000000 --- a/sxiv/exec/image-info +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -# Example for ~/.config/sxiv/exec/image-info -# Called by sxiv(1) whenever an image gets loaded, -# with the name of the image file as its first argument. -# The output is displayed in sxiv's status bar. - -s=" | " # field separator - -filename=$(basename "$1") -filesize=$(du -Hh "$1" | cut -f 1) - -# The '[0]' stands for the first frame of a multi-frame file, e.g. gif. -geometry=$(identify -format '%wx%h' "$1[0]") - -echo "${filename}${s}${filesize}${s}${geometry}" - diff --git a/sxiv/exec/key-handler b/sxiv/exec/key-handler deleted file mode 100755 index c615dfe..0000000 --- a/sxiv/exec/key-handler +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -# The keyboard shortcuts (prepended with ). - -while read file -do - case "$1" in - - # Prompt and delete the file. - "d") - [ "$(printf 'No\nYes' | rofi -dmenu -p 'Delete all of the selected image(s)?')" = "Yes" ] && rm "$file" && notify-send "$file deleted" ;; - - # Rotate 90 degrees. - "r") - convert -rotate 90 "$file" "$file" ;; - - # Rotate -90 degrees. - "R") - convert -rotate -90 "$file" "$file" ;; - - # Copy the path of the image (relative to the present working directory). - "y") - echo -n "$file" | xclip -selection clipboard && notify-send "'$file' name copied to clipboard" ;; - - # Copy the absolute path of the image. - "Y") - readlink --canonicalize "$file" | xclip -selection clipboard && notify-send "Absolute path of '$file' copied to clipboard" ;; - - "i") - feh --bg-fill "$file" ;; - - # Activate Pywal to the selected image. - "w") - rofi -dmenu -p "Add some arguments for executing pywal? ('wal -i \$file') " | xargs wal -i "$file" ;; - - # Activate `select-theme` script which is basically pywal with additional things. - "C-w") - select-theme "$file" ;; - esac -done diff --git a/waybar/config b/waybar/config deleted file mode 100644 index f01f37a..0000000 --- a/waybar/config +++ /dev/null @@ -1,51 +0,0 @@ -{ - "position": "top", - "modules-left": [ "sway/workspaces" ], - "modules-right": ["mpd", "pulseaudio", "cpu", "memory", "battery", "clock", "tray"], - "mpd": { - "format": "{stateIcon} {title}", - "format-disconnected": " Disconnected", - "format-stopped": " Stopped", - "tooltip-format": "MPD (connected)", - "tooltip-format-disconnected": "MPD (disconnected)", - "state-icons": { - "paused": "", - "playing": "" - } - }, - "pulseaudio": { - "format": "{icon} {volume}% {format_source}", - "format-bluetooth": "{icon} {volume}% {format_source}", - "format-bluetooth-muted": " {icon} {format_source}", - "format-muted": " {format_source}", - "format-source": " {volume}%", - "format-source-muted": "", - "format-icons": { - "headphone": "", - "hands-free": "", - "headset": "", - "phone": "", - "portable": "", - "car": "", - "default": ["", "", ""] - }, - "on-click": "nix-shell -p pavucontrol --run pavucontrol" - }, - "cpu": { - "format": " {usage}%" - }, - "memory": { - "format": " {}%" - }, - "battery": { - "format": "{icon} {capacity}%", - "format-icons": ["", "", "", "", ""] - }, - "tray": { - "spacing": 10 - }, - "clock": { - "format": " {:%A, %F %T}", - "tooltip-format": "{:%Y %B}\n{calendar}" - } -} diff --git a/youtube-dl/config b/youtube-dl/config deleted file mode 100644 index a9076f0..0000000 --- a/youtube-dl/config +++ /dev/null @@ -1,3 +0,0 @@ ---output '%(title)s.%(ext)s' - ---no-overwrite diff --git a/zsh/.profile b/zsh/.profile deleted file mode 100755 index f10ef82..0000000 --- a/zsh/.profile +++ /dev/null @@ -1,34 +0,0 @@ -# This is where environmental variables are set. -# If you're looking for the aliases, keybindings, and prompts, they are in the equivalent `.rc` (i.e., `.zshrc`, `.bashrc`) file. - -# For more information, see the following Unix Exchange thread (https://unix.stackexchange.com/q/71253). -# Or the Arch Linux Wiki on zsh (https://wiki.archlinux.org/index.php/Zsh#Startup/Shutdown_files). -# Also check the manual pages for `zshall` (i.e., `man zshall`). - -# My XDG Base Directory spec configuration. -# Check it out at https://wiki.archlinux.org/index.php/XDG_Base_Directory for more information. -export XDG_CACHE_HOME=$HOME/.cache -export XDG_CONFIG_HOME=$HOME/.config -export XDG_DATA_HOME=$HOME/.local/share - -# My custom variables (only applicable at user level) -export PICTURES_DIRECTORY=$HOME/Pictures -export DOCUMENTS_DIRECTORY=$HOME/Documents -export BIN_DIRECTORY=$HOME/bin -export VIDEO_DIRECTORY=$HOME/recordings - -# If you come from bash you might have to change your $PATH. -export DENO_INSTALL="$HOME/.deno" -export PATH="$BIN_DIRECTORY:/usr/local/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.gem/ruby/2.7.0/bin:$DENO_INSTALL/bin:$PATH" -# export MANPATH="$MANPATH:$HOME/.local/share/man" - -# Common environmental variables. -# Or at least that'll be used by my setup. -export EDITOR="nvim" -export TERMINAL="alacritty" -export BROWSER="firefox" -export READ="zathura" -export FILE="lf" - -# This is a program that `sudo -a` needs for prompting the user and password. -export SUDO_ASKPASS="$HOME/.local/bin/askpass" diff --git a/zsh/.zprofile b/zsh/.zprofile deleted file mode 100755 index b9f2d60..0000000 --- a/zsh/.zprofile +++ /dev/null @@ -1,4 +0,0 @@ -if [[ -f $ZDOTDIR/.profile ]]; then - source $ZDOTDIR/.profile -fi - diff --git a/zsh/.zshrc b/zsh/.zshrc deleted file mode 100755 index 9669718..0000000 --- a/zsh/.zshrc +++ /dev/null @@ -1,103 +0,0 @@ -# This is the part that configures the interactive shell. - -# Add pywal to the bootup of the interactive shell -cat ~/.cache/wal/sequences - -# The prompt. -# Adding basic version control support to the zsh prompt. -# https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Git-in-Zsh -autoload -Uz vcs_info -precmd_vcs_info() { vcs_info } -precmd_functions+=( precmd_vcs_info ) -setopt prompt_subst -zstyle ':vcs_info:*' formats '[%s] (%b)' -autoload -U colors && colors -PROMPT="%F%{${fg[white]}%}%(0?.√.%?) %B%{$fg[magenta]%}%1~%{$reset_color%} \$vcs_info_msg_0_ $%f%b " -RPROMPT="[%D %*]" - -# Configuring the command history. -HISTSIZE=1000 -SAVEHIST=1000 -HISTFILE=~/.cache/zsh/history - -# Shell keybindings in Vim mode. -# bindkey -v - -# Keybindings. -# create a zkbd compatible hash; -# to add other keys to this hash, see: man 5 terminfo -typeset -g -A key - -key[Home]="${terminfo[khome]}" -key[End]="${terminfo[kend]}" -key[Insert]="${terminfo[kich1]}" -key[Backspace]="${terminfo[kbs]}" -key[Delete]="${terminfo[kdch1]}" -key[Up]="${terminfo[kcuu1]}" -key[Down]="${terminfo[kcud1]}" -key[Left]="${terminfo[kcub1]}" -key[Right]="${terminfo[kcuf1]}" -key[PageUp]="${terminfo[kpp]}" -key[PageDown]="${terminfo[knp]}" -key[ShiftTab]="${terminfo[kcbt]}" - -# setup key accordingly -[[ -n "${key[Home]}" ]] && bindkey -- "${key[Home]}" beginning-of-line -[[ -n "${key[End]}" ]] && bindkey -- "${key[End]}" end-of-line -[[ -n "${key[Insert]}" ]] && bindkey -- "${key[Insert]}" overwrite-mode -[[ -n "${key[Backspace]}" ]] && bindkey -- "${key[Backspace]}" backward-delete-char -[[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char -[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-history -[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-history -[[ -n "${key[Left]}" ]] && bindkey -- "${key[Left]}" backward-char -[[ -n "${key[Right]}" ]] && bindkey -- "${key[Right]}" forward-char -[[ -n "${key[PageUp]}" ]] && bindkey -- "${key[PageUp]}" beginning-of-buffer-or-history -[[ -n "${key[PageDown]}" ]] && bindkey -- "${key[PageDown]}" end-of-buffer-or-history -[[ -n "${key[ShiftTab]}" ]] && bindkey -- "${key[ShiftTab]}" reverse-menu-complete - -# Finally, make sure the terminal is in application mode, when zle is -# active. Only then are the values from $terminfo valid. -if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then - autoload -Uz add-zle-hook-widget - function zle_application_mode_start { - echoti smkx - } - function zle_application_mode_stop { - echoti rmkx - } - add-zle-hook-widget -Uz zle-line-init zle_application_mode_start - add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop -fi - -# History searching. -autoload -Uz up-line-or-beginning-search down-line-or-beginning-search -zle -N up-line-or-beginning-search -zle -N down-line-or-beginning-search - -[[ -n "${key[Up]}" ]] && bindkey -- "${key[Up]}" up-line-or-beginning-search -[[ -n "${key[Down]}" ]] && bindkey -- "${key[Down]}" down-line-or-beginning-search - -# Enable prompts -autoload -Uz promptinit -promptinit - -# Loading completion feature. -autoload -Uz compinit -zstyle ':completion:*' menu select -zstyle ':completion::complete:*' gain-prvileges 1 -compinit - -setopt COMPLETE_ALIASES - -# This block is managed by conda. -__conda_setup="$('/home/foo-dogsquared/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" -if [ $? -eq 0 ]; then - eval "$__conda_setup" -else - if [ -f "/home/foo-dogsquared/anaconda3/etc/profile.d/conda.sh" ]; then - . "/home/foo-dogsquared/anaconda3/etc/profile.d/conda.sh" - else - export PATH="/home/foo-dogsquared/anaconda3/bin:$PATH" - fi -fi -unset __conda_setup