diff --git a/new-config/.bash_profile b/new-config/.bash_profile deleted file mode 100644 index da13e7f19..000000000 --- a/new-config/.bash_profile +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom bash_profile config -## - -### STARTING XSESSION -if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ] -then - sh $HOME/.winitrc - logout -fi - -### ENVIRONMENT VARIABLES -export EDITOR="lvim" # $EDITOR use lunarvim in terminal -export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}" -export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}" -export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}" - -### BASHRC -source "$HOME"/.bashrc # Load the bashrc diff --git a/new-config/.bashrc b/new-config/.bashrc deleted file mode 100644 index 45597d467..000000000 --- a/new-config/.bashrc +++ /dev/null @@ -1,238 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom bash config -## - -### EXPORT ### -export TERM="xterm-256color" # getting proper colors -export HISTCONTROL=ignoredups:erasedups # no duplicate entries -export EDITOR="$HOME/.local/bin/lvim" -export VISUAL="wezterm start --class editor -- $HOME/.local/bin/lvim" - -### "bat" as manpager -export MANPAGER="sh -c 'col -bx | bat -l man -p'" - -# use bash-completion, if available -[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ - . /usr/share/bash-completion/bash_completion - -# if not running interactively, don't do anything -[[ $- != *i* ]] && return - -# use neovim for vim if present. -[ -x "$(command -v $HOME/.local/bin/lvim)" ] && alias vim="lvim" - -### SET VI MODE ### -# Comment this line out to enable default emacs-like bindings -set -o vi -bind -m vi-command 'Control-l: clear-screen' -bind -m vi-insert 'Control-l: clear-screen' - -### PATH ### -if [ -d "$HOME/.bin" ] ; - then PATH="$HOME/.bin:$PATH" -fi -if [ -d "$HOME/.local/bin" ] ; - then PATH="$HOME/.local/bin:$PATH" -fi -if [ -d "$HOME/Applications" ] ; - then PATH="$HOME/Applications:$PATH" -fi - -### CHANGE TITLE OF TERMINALS ### -case ${TERM} in - xterm*|rxvt*|Eterm*|aterm|kterm|gnome*|alacritty|st|konsole*) - PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\007"' - ;; - screen*) - PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/\~}\033\\"' - ;; -esac - -### SHOPT ### -shopt -s autocd # change to named directory -shopt -s cdspell # autocorrects cd misspellings -shopt -s cmdhist # save multi-line commands in history as single line -shopt -s dotglob -shopt -s histappend # do not overwrite history -shopt -s expand_aliases # expand aliases -shopt -s checkwinsize # checks term size when bash regains control - -# ignore upper and lowercase when TAB completion -bind "set completion-ignore-case on" - -# sudo not required for some system commands -for command in cryptsetup mount umount poweroff reboot ; do -alias $command="sudo $command" -done; unset command - -### ARCHIVE EXTRACTION ### -# usage: ex -ex () -{ - if [ -f "$1" ] ; then - case $1 in - *.tar.bz2) tar xjf "$1" ;; - *.tar.gz) tar xzf "$1" ;; - *.bz2) bunzip2 "$1" ;; - *.rar) unrar x "$1" ;; - *.gz) gunzip "$1" ;; - *.tar) tar xf "$1" ;; - *.tbz2) tar xjf "$1" ;; - *.tgz) tar xzf "$1" ;; - *.zip) unzip "$1" ;; - *.Z) uncompress "$1";; - *.7z) 7zz x "$1" ;; - *.deb) ar x "$1" ;; - *.tar.xz) tar xf "$1" ;; - *.tar.zst) unzstd "$1" ;; - *) echo "'$1' cannot be extracted via ex()" ;; - esac - else - echo "'$1' is not a valid file" - fi -} - -### ALIASES ### -# navigation -up () { - local d="" - local limit="$1" - - # Default to limit of 1 - if [ -z "$limit" ] || [ "$limit" -le 0 ]; then - limit=1 - fi - - for ((i=1;i<=limit;i++)); do - d="../$d" - done - - # perform cd. Show error if cd fails - if ! cd "$d"; then - echo "Couldn't go up $limit dirs."; - fi -} - -# cd -alias \ - ..="cd .." \ - .2="cd ../.." \ - .3="cd ../../.." \ - .4="cd ../../../.." \ - .5="cd ../../../../.." - -# bat as cat -[ -x "$(command -v bat)" ] && alias cat="bat" - -# pfetch as neofetch -[ -x "$(command -v pfetch)" ] && alias neofetch="pfetch" - -# Changing "ls" to "exa" -alias \ - ls="exa -al --icons --color=always --group-directories-first" \ - la="exa -a --icons --color=always --group-directories-first" \ - ll="exa -l --icons --color=always --group-directories-first" \ - lt="exa -aT --icons --color=always --group-directories-first" \ - l.='exa -a | grep -E "^\."' - -# pacman -alias \ - pac-up="paru -Syu" \ - pac-get="paru -S" \ - pac-rmv="paru -Rcns" \ - pac-rmv-sec="paru -R" \ - pac-qry="paru -Ss" \ - pac-cln="paru -Scc && paru -Rns $(pacman -Qtdq)" - -# colorize grep output (good for log files) -alias \ - grep="grep --color=auto" \ - egrep="egrep --color=auto" \ - fgrep="fgrep --color=auto" - -# git -alias \ - git-adu="git add -u" \ - git-adl="git add ." \ - git-brn="git branch" \ - git-chk="git checkout" \ - git-cln="git clone" \ - git-cmt="git commit -m" \ - git-fth="git fetch" \ - git-pll="git pull origin" \ - git-psh="git push origin" \ - git-sts="git status" \ - git-tag="git tag" \ - git-ntg="git tag -a" - -# adding flags -alias \ - df="df -h" \ - free="free -m" - -# multimedia scripts -alias \ - fli="flix-cli" \ - ani="ani-cli" \ - aniq="ani-cli -q" - -# audio -alias \ - mx="pulsemixer" \ - amx="alsamixer" \ - mk="cmus" \ - ms="cmus" \ - music="cmus" - -# power management -alias \ - po="systemctl poweroff" \ - sp="systemctl suspend" \ - rb="systemctl reboot" - -# file management -alias \ - fm="vifm" \ - file="vifm" \ - flm="vifm" \ - rm="rm -vI" \ - mv="mv -iv" \ - cp="cp -iv" \ - mkd="mkdir -pv" - -# ps -alias \ - psa="ps auxf" \ - psgrep="ps aux | grep -v grep | grep -i -e VSZ -e" \ - psmem="ps auxf | sort -nr -k 4" \ - pscpu="ps auxf | sort -nr -k 3" - -# youtube -alias \ - yta-aac="yt-dlp --extract-audio --audio-format aac" \ - yta-best="yt-dlp --extract-audio --audio-format best" \ - yta-flac="yt-dlp --extract-audio --audio-format flac" \ - yta-m4a="yt-dlp --extract-audio --audio-format m4a" \ - yta-mp3="yt-dlp --extract-audio --audio-format mp3" \ - yta-opus="yt-dlp --extract-audio --audio-format opus" \ - yta-vorbis="yt-dlp --extract-audio --audio-format vorbis" \ - yta-wav="yt-dlp --extract-audio --audio-format wav" \ - ytv-best="yt-dlp -f bestvideo+bestaudio" \ - yt="ytfzf -ftsl" \ - ytm="ytfzf -mtsl" - -# network and bluetooth -alias \ - netstats="nmcli dev" \ - wfi="nmtui-connect" \ - wfi-scan="nmcli dev wifi rescan && nmcli dev wifi list" \ - wfi-edit="nmtui-edit" \ - wfi-on="nmcli radio wifi on" \ - wfi-off="nmcli radio wifi off" \ - blt="bluetoothctl" - -### SETTING THE STARSHIP PROMPT ### -eval "$(starship init bash)" diff --git a/new-config/.config/btop/btop.conf b/new-config/.config/btop/btop.conf deleted file mode 100644 index cf427fc49..000000000 --- a/new-config/.config/btop/btop.conf +++ /dev/null @@ -1,212 +0,0 @@ -#? Config file for btop v. 1.2.13 - -#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. -#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" -color_theme = "/usr/share/btop/themes/gruvbox_dark_v2.theme" - -#* If the theme set background should be shown, set to False if you want terminal background transparency. -theme_background = False - -#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false. -truecolor = True - -#* Set to true to force tty mode regardless if a real tty has been detected or not. -#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols. -force_tty = False - -#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets. -#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box. -#* Use whitespace " " as separator between different presets. -#* Example: "cpu:0:default,mem:0:tty,proc:1:default cpu:0:braille,proc:0:tty" -presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:default cpu:0:block,net:0:tty" - -#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists. -#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift. -vim_keys = True - -#* Rounded corners on boxes, is ignored if TTY mode is ON. -rounded_corners = True - -#* Default symbols to use for graph creation, "braille", "block" or "tty". -#* "braille" offers the highest resolution but might not be included in all fonts. -#* "block" has half the resolution of braille but uses more common characters. -#* "tty" uses only 3 different symbols but will work with most fonts and should work in a real TTY. -#* Note that "tty" only has half the horizontal resolution of the other two, so will show a shorter historical view. -graph_symbol = "braille" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_cpu = "default" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_mem = "default" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_net = "default" - -# Graph symbol to use for graphs in cpu box, "default", "braille", "block" or "tty". -graph_symbol_proc = "default" - -#* Manually set which boxes to show. Available values are "cpu mem net proc", separate values with whitespace. -shown_boxes = "cpu mem net proc" - -#* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. -update_ms = 200 - -#* Processes sorting, "pid" "program" "arguments" "threads" "user" "memory" "cpu lazy" "cpu direct", -#* "cpu lazy" sorts top process over time (easier to follow), "cpu direct" updates top process directly. -proc_sorting = "cpu lazy" - -#* Reverse sorting order, True or False. -proc_reversed = False - -#* Show processes as a tree. -proc_tree = False - -#* Use the cpu graph colors in the process list. -proc_colors = True - -#* Use a darkening gradient in the process list. -proc_gradient = True - -#* If process cpu usage should be of the core it's running on or usage of the total available cpu power. -proc_per_core = False - -#* Show process memory as bytes instead of percent. -proc_mem_bytes = True - -#* Show cpu graph for each process. -proc_cpu_graphs = True - -#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate) -proc_info_smaps = False - -#* Show proc box on left side of screen instead of right. -proc_left = False - -#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop). -proc_filter_kernel = False - -#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available. -#* Select from a list of detected attributes from the options menu. -cpu_graph_upper = "total" - -#* Sets the CPU stat shown in lower half of the CPU graph, "total" is always available. -#* Select from a list of detected attributes from the options menu. -cpu_graph_lower = "total" - -#* Toggles if the lower CPU graph should be inverted. -cpu_invert_lower = True - -#* Set to True to completely disable the lower CPU graph. -cpu_single_graph = False - -#* Show cpu box at bottom of screen instead of top. -cpu_bottom = False - -#* Shows the system uptime in the CPU box. -show_uptime = True - -#* Show cpu temperature. -check_temp = True - -#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors. -cpu_sensor = "Auto" - -#* Show temperatures for cpu cores also if check_temp is True and sensors has been found. -show_coretemp = True - -#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core. -#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine. -#* Format "x:y" x=core with wrong temp, y=core with correct temp, use space as separator between multiple entries. -#* Example: "4:0 5:1 6:3" -cpu_core_map = "" - -#* Which temperature scale to use, available values: "celsius", "fahrenheit", "kelvin" and "rankine". -temp_scale = "celsius" - -#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024. -base_10_sizes = False - -#* Show CPU frequency. -show_cpu_freq = True - -#* Draw a clock at top of screen, formatting according to strftime, empty string to disable. -#* Special formatting: /host = hostname | /user = username | /uptime = system uptime -clock_format = "%X" - -#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort. -background_update = True - -#* Custom cpu model name, empty string to disable. -custom_cpu_name = "" - -#* Optional filter for shown disks, should be full path of a mountpoint, separate multiple values with whitespace " ". -#* Begin line with "exclude=" to change to exclude filter, otherwise defaults to "most include" filter. Example: disks_filter="exclude=/boot /home/user". -disks_filter = "" - -#* Show graphs instead of meters for memory values. -mem_graphs = True - -#* Show mem box below net box instead of above. -mem_below_net = False - -#* Count ZFS ARC in cached and available memory. -zfs_arc_cached = True - -#* If swap memory should be shown in memory box. -show_swap = True - -#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk. -swap_disk = True - -#* If mem box should be split to also show disks info. -show_disks = True - -#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar. -only_physical = True - -#* Read disks list from /etc/fstab. This also disables only_physical. -use_fstab = True - -#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool) -zfs_hide_datasets = False - -#* Set to true to show available disk space for privileged users. -disk_free_priv = False - -#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view. -show_io_stat = True - -#* Toggles io mode for disks, showing big graphs for disk read/write speeds. -io_mode = False - -#* Set to True to show combined read/write io graphs in io mode. -io_graph_combined = False - -#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ". -#* Example: "/mnt/media:100 /:20 /boot:1". -io_graph_speeds = "" - -#* Set fixed values for network graphs in Mebibits. Is only used if net_auto is also set to False. -net_download = 100 - -net_upload = 100 - -#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest. -net_auto = True - -#* Sync the auto scaling for download and upload to whichever currently has the highest scale. -net_sync = True - -#* Starts with the Network Interface specified here. -net_iface = "" - -#* Show battery stats in top right if battery is present. -show_battery = True - -#* Which battery to use if multiple are present. "Auto" for auto detection. -selected_battery = "Auto" - -#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". -#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info. -log_level = "WARNING" diff --git a/new-config/.config/dunst/critical.png b/new-config/.config/dunst/critical.png deleted file mode 100644 index b36d5b22a..000000000 Binary files a/new-config/.config/dunst/critical.png and /dev/null differ diff --git a/new-config/.config/dunst/dunstrc b/new-config/.config/dunst/dunstrc deleted file mode 100644 index 3cbe6d6f8..000000000 --- a/new-config/.config/dunst/dunstrc +++ /dev/null @@ -1,359 +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 - - # 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 = 30 - - # 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 = 3 - - # Defines color of the frame around the notification window. - frame_color = "#fb4934" - - # 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 = auto - - # 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 = mononoki Nerd Font 10 - - # 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 = center - - # 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/gnome/16x16/status/:/usr/share/icons/gnome/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 - - # 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 - - # 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 = 7 - - ### 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 = do_action - mouse_middle_click = close_all - mouse_right_click = close_current - -# 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 - -[urgency_low] - # IMPORTANT: colors have to be defined in quotation marks. - # Otherwise the "#" and following would be interpreted as a comment. - background = "#282828" - foreground = "#ebdbd2" - timeout = 5 - # Icon for notifications with low urgency, uncomment to enable - icon = /home/drk/.config/dunst/normal.png - -[urgency_normal] - background = "#282828" - foreground = "#ebdbd2" - timeout = 5 - # Icon for notifications with normal urgency, uncomment to enable - icon = /home/drk/.config/dunst/normal.png - -[urgency_critical] - background = "#900000" - foreground = "#ebdbd2" - frame_color = "#ff0000" - timeout = 5 - # Icon for notifications with critical urgency, uncomment to enable - icon = /home/drk/.config/dunst/critical.png - -# 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" -# -# vim: ft=cfg - diff --git a/new-config/.config/dunst/normal.png b/new-config/.config/dunst/normal.png deleted file mode 100644 index 505e12c93..000000000 Binary files a/new-config/.config/dunst/normal.png and /dev/null differ diff --git a/new-config/.config/fish/config.fish b/new-config/.config/fish/config.fish deleted file mode 100644 index 979162e9a..000000000 --- a/new-config/.config/fish/config.fish +++ /dev/null @@ -1,241 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom fish config -## - -### ADDING TO THE PATH -# First line removes the path; second line sets it. Without the first line, -# your path gets massive and fish becomes very slow. -set -e fish_user_paths -set -U fish_user_paths $HOME/.bin $HOME/.local/bin $HOME/.config/emacs/bin $HOME/Applications /var/lib/flatpak/exports/bin/ $fish_user_paths - -### EXPORT ### -set fish_greeting # Supresses fish's intro message -set TERM "xterm-256color" # Sets the terminal type -set EDITOR "$HOME/.local/bin/lvim" -set VISUAL "wezterm start --class editor -- $HOME/.local/bin/lvim" - -### SET BAT AS MANPAGER -set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" - -### SET EITHER DEFAULT EMACS MODE OR VI MODE ### -function fish_user_key_bindings - # fish_default_key_bindings - fish_vi_key_bindings -end -### END OF VI MODE ### - -### AUTOCOMPLETE AND HIGHLIGHT COLORS ### -set fish_color_normal brcyan -set fish_color_autosuggestion '#504945' -set fish_color_command brcyan -set fish_color_error '#fb4934' -set fish_color_param brcyan - - -### FUNCTIONS ### -# Functions needed for !! and !$ -function __history_previous_command - switch (commandline -t) - case "!" - commandline -t $history[1]; commandline -f repaint - case "*" - commandline -i ! - end -end - -function __history_previous_command_arguments - switch (commandline -t) - case "!" - commandline -t "" - commandline -f history-token-search-backward - case "*" - commandline -i '$' - end -end - -# The bindings for !! and !$ -if [ "$fish_key_bindings" = "fish_vi_key_bindings" ]; - bind -Minsert ! __history_previous_command - bind -Minsert '$' __history_previous_command_arguments -else - bind ! __history_previous_command - bind '$' __history_previous_command_arguments -end - -# Function for creating a backup file -# ex: backup file.txt -# result: copies file as file.txt.bak -function backup --argument filename - cp $filename $filename.bak -end - -# Function for copying files and directories, even recursively. -# ex: copy DIRNAME LOCATIONS -# result: copies the directory and all of its contents. -function copy - set count (count $argv | tr -d \n) - if test "$count" = 2; and test -d "$argv[1]" - set from (echo $argv[1] | trim-right /) - set to (echo $argv[2]) - command cp -r $from $to - else - command cp $argv - end -end - -# Function for printing a column (splits input on whitespace) -# ex: echo 1 2 3 | coln 3 -# output: 3 -function coln - while read -l input - echo $input | awk '{print $'$argv[1]'}' - end -end - -# Function for printing a row -# ex: seq 3 | rown 3 -# output: 3 -function rown --argument index - sed -n "$index p" -end - -# Function for ignoring the first 'n' lines -# ex: seq 10 | skip 5 -# results: prints everything but the first 5 lines -function skip --argument n - tail +(math 1 + $n) -end - -# Function for taking the first 'n' lines -# ex: seq 10 | take 5 -# results: prints only the first 5 lines -function take --argument number - head -$number -end -### END OF FUNCTIONS ### - -### ALIASES ### -# navigation -alias ..='cd ..' -alias ...='cd ../..' -alias .3='cd ../../..' -alias .4='cd ../../../..' -alias .5='cd ../../../../..' - -# neovim as vim -alias vim="$HOME/.local/bin/lvim" - -# newsboat -alias newsboat='newsboat -u ~/.config/newsboat/urls' - -# bat as cat -alias cat='bat' - -# pfetch as neofetch -alias neofetch='pfetch' - -# Changing "ls" to "exa" -alias ls='exa -al --color=always --group-directories-first' # my preferred listing -alias la='exa -a --color=always --group-directories-first' # all files and dirs -alias ll='exa -l --color=always --group-directories-first' # long format -alias lt='exa -aT --color=always --group-directories-first' # tree listing -alias l.='exa -a | egrep "^\."' - -# package management -alias pac-up='paru -Syu' -alias pac-get='paru -S' -alias pac-rmv='paru -Rcns' -alias pac-rmv-sec='paru -R' -alias pac-qry='paru -Ss' -alias pac-cln='paru -Scc && paru -Rns (pacman -Qtdq)' - -# Colorize grep output (good for log files) -alias grep='grep --color=auto' -alias egrep='egrep --color=auto' -alias fgrep='fgrep --color=auto' - -# file management -alias fm="vifm" -alias file="vifm" -alias flm="vifm" -alias cp='cp -iv' -alias mv='mv -iv' -alias rm='rm -vI' -alias mkd='mkdir -pv' -alias mkdir='mkdir -pv' - -# audio -alias mx='pulsemixer' -alias amx='alsamixer' -alias mk='cmus' -alias ms='cmus' -alias music='cmus' - -# multimedia scripts -alias fli='flix-cli' -alias ani='ani-cli' -alias aniq='ani-cli -q' - -# adding flags -alias df='df -h' # human-readable sizes -alias free='free -m' # show sizes in MB - -# ps -alias psa="ps auxf" -alias psgrep="ps aux | grep -v grep | grep -i -e VSZ -e" -alias psmem='ps auxf | sort -nr -k 4' -alias pscpu='ps auxf | sort -nr -k 3' - -# git -alias addup='git add -u' -alias addall='git add .' -alias branch='git branch' -alias checkout='git checkout' -alias clone='git clone' -alias commit='git commit -m' -alias fetch='git fetch' -alias pull='git pull origin' -alias push='git push origin' -alias tag='git tag' -alias newtag='git tag -a' - -# power management -alias po='systemctl poweroff' -alias sp='systemctl suspend' -alias rb='systemctl reboot' - -# youtube- -alias yta-aac="yt-dlp --extract-audio --audio-format aac " -alias yta-best="yt-dlp --extract-audio --audio-format best " -alias yta-flac="yt-dlp --extract-audio --audio-format flac " -alias yta-m4a="yt-dlp --extract-audio --audio-format m4a " -alias yta-mp3="yt-dlp --extract-audio --audio-format mp3 " -alias yta-opus="yt-dlp --extract-audio --audio-format opus " -alias yta-vorbis="yt-dlp --extract-audio --audio-format vorbis " -alias yta-wav="yt-dlp --extract-audio --audio-format wav " -alias ytv-best="yt-dlp -f bestvideo+bestaudio " -alias yt='ytfzf -ftsl' -alias youtube='ytfzf -ftsl' -alias ytm='ytfzf -mtsl' -alias youtube-music='ytfzf -mtsl' - -# the terminal rickroll -alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' - -# Mocp must be launched with bash instead of Fish! -alias mocp="bash -c mocp" - -# network and bluetooth -alias netstats='nmcli dev' -alias wfi='nmtui-connect' -alias wfi-scan='nmcli dev wifi rescan && nmcli dev wifi list' -alias wfi-edit='nmtui-edit' -alias wfi-on='nmcli radio wifi on' -alias wfi-off='nmcli radio wifi off' -alias blt='bluetoothctl' - -### SETTING THE STARSHIP PROMPT ### -starship init fish | source diff --git a/new-config/.config/gtk-2.0/gtkfilechooser.ini b/new-config/.config/gtk-2.0/gtkfilechooser.ini deleted file mode 100644 index 65fa2a6e5..000000000 --- a/new-config/.config/gtk-2.0/gtkfilechooser.ini +++ /dev/null @@ -1,11 +0,0 @@ -[Filechooser Settings] -LocationMode=path-bar -ShowHidden=false -ShowSizeColumn=true -GeometryX=0 -GeometryY=0 -GeometryWidth=772 -GeometryHeight=560 -SortColumn=name -SortOrder=ascending -StartupMode=recent diff --git a/new-config/.config/gtk-3.0/settings.ini b/new-config/.config/gtk-3.0/settings.ini deleted file mode 100644 index 7b4e43bc1..000000000 --- a/new-config/.config/gtk-3.0/settings.ini +++ /dev/null @@ -1,17 +0,0 @@ -[Settings] -gtk-theme-name=gruvbox-dark-gtk -gtk-icon-theme-name=gruvbox-dark-icons-gtk -gtk-font-name=Cantarell 10 -gtk-cursor-theme-name=Simp1e-Gruvbox-Dark -gtk-cursor-theme-size=24 -gtk-toolbar-style=GTK_TOOLBAR_BOTH -gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR -gtk-button-images=1 -gtk-menu-images=1 -gtk-enable-event-sounds=1 -gtk-enable-input-feedback-sounds=0 -gtk-xft-antialias=1 -gtk-xft-hinting=1 -gtk-xft-hintstyle=hintslight -gtk-xft-rgba=rgb -gtk-application-prefer-dark-theme=1 diff --git a/new-config/.config/lvim/config.lua b/new-config/.config/lvim/config.lua deleted file mode 100644 index 99e347642..000000000 --- a/new-config/.config/lvim/config.lua +++ /dev/null @@ -1,75 +0,0 @@ --- nvim options -vim.opt.shiftwidth = 2 -vim.opt.tabstop = 2 -vim.opt.relativenumber = true -vim.cmd('autocmd FileType markdown setlocal nospell') -vim.opt.wrap = true -- wrap lines -vim.opt.spell = false -vim.o.shell = '/usr/bin/bash' - --- general -lvim.use_icons = false -lvim.log.level = "info" -lvim.format_on_save = { - enabled = true, - pattern = "*.lua", - timeout = 1000, -} - --- change theme settings -lvim.colorscheme = "gruvbox" -lvim.transparent_window = true -lvim.builtin.alpha.active = true -lvim.builtin.alpha.mode = "dashboard" -lvim.builtin.terminal.active = true -lvim.builtin.nvimtree.setup.view.side = "left" -lvim.builtin.nvimtree.setup.renderer.icons.show.git = false - --- automatically install missing parsers when entering buffer -lvim.builtin.treesitter.auto_install = true - --- additional Plugins -lvim.plugins = { - { "lunarvim/colorschemes" }, - { "ellisonleao/gruvbox.nvim" }, - { "puremourning/vimspector" }, - { "OmniSharp/omnisharp-vim" }, - { "SirVer/ultisnips" }, - { "CRAG666/code_runner.nvim" }, -} - --- vimspector options -vim.g.vimspector_enable_mappings = 'HUMAN' -vim.g.vimspector_enable_mappings_for_mode = { - [''] = { 'n', 'v' }, -} - --- code runner options -require('code_runner').setup({ - filetype = { - java = { - "cd $dir &&", - "javac $fileName &&", - "java $fileNameWithoutExt" - }, - python = "python3 -u", - typescript = "deno run", - rust = { - "cd $dir &&", - "rustc $fileName &&", - "$dir/$fileNameWithoutExt" - }, - cs = function(...) - local root_dir = require("lspconfig").util.root_pattern "*.csproj" (vim.loop.cwd()) - return "cd " .. root_dir .. " && dotnet run$end" - end, - }, -}) - -vim.keymap.set('n', 'r', ':RunCode', { noremap = true, silent = false }) -vim.keymap.set('n', 'rf', ':RunFile', { noremap = true, silent = false }) -vim.keymap.set('n', 'rft', ':RunFile tab', { noremap = true, silent = false }) -vim.keymap.set('n', 'rp', ':RunProject', { noremap = true, silent = false }) -vim.keymap.set('n', 'rc', ':RunClose', { noremap = true, silent = false }) -vim.keymap.set('n', 'crf', ':CRFiletype', { noremap = true, silent = false }) -vim.keymap.set('n', 'crp', ':CRProjects', { noremap = true, silent = false }) diff --git a/new-config/.config/mpv/input.conf b/new-config/.config/mpv/input.conf deleted file mode 100644 index 593273e45..000000000 --- a/new-config/.config/mpv/input.conf +++ /dev/null @@ -1,12 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom mpv config -## - -l seek 5 -h seek -5 -j seek -60 -k seek 60 -S cycle sub diff --git a/new-config/.config/newsboat/config b/new-config/.config/newsboat/config deleted file mode 100644 index 9246557ae..000000000 --- a/new-config/.config/newsboat/config +++ /dev/null @@ -1,51 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom newsboat config -## -show-read-feeds yes -auto-reload yes -reload-threads 10 - -bind-key j down -bind-key k up -bind-key j next articlelist -bind-key k prev articlelist -bind-key J next-feed articlelist -bind-key K prev-feed articlelist -bind-key G end -bind-key g home -bind-key d pagedown -bind-key u pageup -bind-key l open -bind-key h quit -bind-key a toggle-article-read -bind-key n next-unread -bind-key N prev-unread -bind-key D pb-download -bind-key U show-urls -bind-key x pb-delete - -color listnormal cyan default -color listfocus black yellow standout bold -color listnormal_unread blue default -color listfocus_unread yellow default bold -color info red black bold -color article white default bold - -highlight all "---.*---" yellow -highlight feedlist ".*(0/0))" black -highlight article "(^Feed:.*|^Title:.*|^Author:.*)" cyan default bold -highlight article "(^Link:.*|^Date:.*)" default default -highlight article "https?://[^ ]+" green default -highlight article "^(Title):.*$" blue default -highlight article "\\[[0-9][0-9]*\\]" magenta default bold -highlight article "\\[image\\ [0-9]+\\]" green default bold -highlight article "\\[embedded flash: [0-9][0-9]*\\]" green default bold -highlight article ":.*\\(link\\)$" cyan default -highlight article ":.*\\(image\\)$" blue default -highlight article ":.*\\(embedded flash\\)$" magenta default - -browser w3m -macro v set browser "mpv %u" ; open-in-browser ; set browser "elinks %u" diff --git a/new-config/.config/newsboat/urls b/new-config/.config/newsboat/urls deleted file mode 100644 index c66f25428..000000000 --- a/new-config/.config/newsboat/urls +++ /dev/null @@ -1,99 +0,0 @@ -http://static.fsf.org/fsforg/rss/news.xml "~FSF News" -http://static.fsf.org/fsforg/rss/blogs.xml "~FSF Blogs" -https://fsfe.org/news/news.en.rss "~FSFE News" -https://dot.kde.org/rss.xml "~KDE Dot News" -https://planet.kde.org/global/atom.xml "~Planet KDE" -https://pointieststick.com/feed/ "~This Week on KDE" -https://www.kdeblog.com/rss "~KDE Blog" -https://thisweek.gnome.org/index.xml "~This Week on GNOME" -https://www.omgubuntu.co.uk/feed "~OMG Ubuntu!" -https://www.omglinux.com/feed "~OMG!Linux" -https://blog.thunderbird.net/feed/ "~The Thunderbird Blog" -https://thelinuxexp.com/feed.xml "~The Linux Experiment" -https://techhut.tv/feed/ "~TechHut Media" -https://itsfoss.com/rss/ "~Its FOSS!" -https://thelinuxcast.org/feed/feed.xml "~The Linux Cast" -https://9to5linux.com/feed/atom "~9to5Linux" -https://blog.elementary.io/feed.xml "~elementary OS Blog" -https://blog.zorin.com/index.xml "~Zorin OS Blog" -http://blog.linuxmint.com/?feed=rss2 "~Linux Mint Blog" -https://www.gamingonlinux.com/article_rss.php "~Gaming on linux" -https://hackaday.com/blog/feed/ "~Hackaday" -https://opensource.com/feed "~Opensource" -https://linux.softpedia.com/backend.xml "~Softpedia Linux" -https://www.phoronix.com/rss.php "~Phoronix" -https://www.computerworld.com/index.rss "~Computerworld" -https://www.networkworld.com/category/linux/index.rss "~Networkworld Linux" -https://betanews.com/feed "~Betanews Linux" -http://lxer.com/module/newswire/headlines.rss "~Lxer" -https://theevilskeleton.gitlab.io/feed.xml "~TheEvilSkeleton" -https://tutanota.com/blog/feed.xml "~Tutanota Blogs" -https://vanillaos.org/feed.xml "~Vanilla OS" -https://techcrunch.com/feed/ "~TechCrunch" -http://www.techradar.com/rss "~TechRadar" -https://www.zdnet.com/news/rss.xml "~ZDNET - News" -https://c3po.website/rss/ "~Blog de C3PO" -http://yro.slashdot.org/yro.rss "~Slashdot: Your Rights Online" -https://freedom-to-tinker.com/feed/rss/ "~Freedom to Tinker" -https://act.eff.org/action.atom "~EFF - Action Center" -https://www.eff.org/rss/updates.xml "~EFF - Updates" -https://victorhckinthefreeworld.com/feed/ "~Victorhck in the free world" -https://invidious.sethforprivacy.com/feed/channel/UCHnyfMqiRRG1u-2MsSQLbXA "~YT - Veritasium" -https://invidious.sethforprivacy.com/feed/channel/UCtMVHI3AJD4Qk4hcbZnI9ZQ "~YT - SomeOrdinaryGamers" -https://invidious.sethforprivacy.com/feed/channel/UCl2mFZoRqjw_ELax4Yisf6w "~YT - Louis Rossmann" -https://invidious.sethforprivacy.com/feed/channel/UChI0q9a-ZcbZh7dAu_-J-hg "~YT - Upper Echelon" -https://invidious.sethforprivacy.com/feed/channel/UCj8orMezFWVcoN-4S545Wtw "~YT - Max Derrat" -https://invidious.sethforprivacy.com/feed/channel/UCkmMACUKpQeIxN9D9ARli1Q "~YT - Shadiversity" -https://invidious.sethforprivacy.com/feed/channel/UCNYW2vfGrUE6R5mIJYzkRyQ "~YT - DrossRotzank" -https://invidious.sethforprivacy.com/feed/channel/UC36xmz34q02JYaZYKrMwXng "~YT - Nate Gentile" -https://invidious.sethforprivacy.com/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ "~YT - Chris Titus Tech" -https://invidious.sethforprivacy.com/feed/channel/UCVls1GmFKf6WlTraIb_IaJg "~YT - DistroTube" -https://invidious.sethforprivacy.com/feed/channel/UCxQKHvKbmSzGMvUrVtJYnUA "~YT - Learn Linux TV" -https://invidious.sethforprivacy.com/feed/channel/UC5UAwBUum7CPN5buc-_N1Fw "~YT - The Linux Experiment" -https://invidious.sethforprivacy.com/feed/channel/UCylGUf9BvQooEFjgdNudoQg "~YT - The Linux Cast" -https://invidious.sethforprivacy.com/feed/channel/UCoryWpk4QVYKFCJul9KBdyw "~YT - Switched to Linux" -https://invidious.sethforprivacy.com/feed/channel/UCgkyQiY_Q5AlrygIXGWO2Zw "~YT - Tux Traveler" -https://invidious.sethforprivacy.com/feed/channel/UCxkw-TfCK1t1VKxfHwPzD6w "~YT - Our Walk in Christ" -https://invidious.sethforprivacy.com/feed/channel/UCld68syR8Wi-GY_n4CaoJGA "~YT - Brodie Robertson" -https://invidious.sethforprivacy.com/feed/channel/UCjSEJkpGbcZhvo0lr-44X_w "~YT - TechHut" -https://invidious.sethforprivacy.com/feed/channel/UC2eYFnH61tmytImy1mTYvhA "~YT - Luke Smith" -https://invidious.sethforprivacy.com/feed/channel/UC7YOGHUfC1Tb6E4pudI9STA "~YT - Mental Outlaw" -https://invidious.sethforprivacy.com/feed/channel/UC3jSNmKWYA04R47fDcc1ImA "~YT - InfinitelyGalactic" -https://invidious.sethforprivacy.com/feed/channel/UCONH73CdRXUjlh3-DdLGCPw "~YT - Nicco Loves Linux" -https://invidious.sethforprivacy.com/feed/channel/UC1s1OsWNYDFgbROPV-q5arg "~YT - Michael Horn" -https://invidious.sethforprivacy.com/feed/channel/UCOSSzBN8e3JHOxvltQbf_mQ "~YT - Jack Keifer" -https://invidious.sethforprivacy.com/feed/channel/UC05XpvbHZUQOfA6xk4dlmcw "~YT - DJ Ware" -https://invidious.sethforprivacy.com/feed/channel/UCAiiOTio8Yu69c3XnR7nQBQ "~YT - System Crafters" -https://invidious.sethforprivacy.com/feed/channel/UCAYKj_peyESIMDp5LtHlH2A "~YT - unfa" -https://invidious.sethforprivacy.com/feed/channel/UCmw-QGOHbHA5cDAvwwqUTKQ "~YT - Zaney" -https://invidious.sethforprivacy.com/feed/channel/UCNvl_86ygZXRuXjxbONI5jA "~YT - 10leej" -https://invidious.sethforprivacy.com/feed/channel/UC3yaWWA9FF9OBog5U9ml68A "~YT - SavvyNik" -https://invidious.sethforprivacy.com/feed/channel/UCS97tchJDq17Qms3cux8wcA "~YT - chris@machine" -https://invidious.sethforprivacy.com/feed/channel/UCl8XUDjAOLc7GNKcDp9Nepg "~YT - Locos por Linux" -https://invidious.sethforprivacy.com/feed/channel/UClVi5MQZ6T0InZYT7oFs6wg "~YT - Mumbling Hugo" -https://invidious.sethforprivacy.com/feed/channel/UCmyGZ0689ODyReHw3rsKLtQ "~YT - Michael Tunnell" -https://invidious.sethforprivacy.com/feed/channel/UCv1Kcz-CuGM6mxzL3B1_Eiw "~YT - Gardiner Bryant" -https://invidious.sethforprivacy.com/feed/channel/UCcf2Mr1qNoX51XXDUd3Rquw "~YT - ByteSeb" -https://invidious.sethforprivacy.com/feed/channel/UCCIHOP7e271SIumQgyl6XBQ "~YT - OldTechBloke" -https://invidious.sethforprivacy.com/feed/channel/UCIFzjAer2W9gTWVECZgtDzg "~YT - GaryH Tech" -https://invidious.sethforprivacy.com/feed/channel/UCMiyV_Ib77XLpzHPQH_q0qQ "~YT - Veronica Explains" -https://invidious.sethforprivacy.com/feed/channel/UCsnGwSIHyoYN0kiINAGUKxg "~YT - Wolfgang's Channel" -https://invidious.sethforprivacy.com/feed/channel/UCnIfca4LPFVn8-FjpPVc1ow "~YT - Fedora Project" -https://invidious.sethforprivacy.com/feed/channel/UCH5DsMZAgdx5Fkk9wwMNwCA "~YT - The New Oil" -https://invidious.sethforprivacy.com/feed/channel/UCs6KfncB4OV6Vug4o_bzijg "~YT - Techlore" -https://invidious.sethforprivacy.com/feed/channel/UCYVU6rModlGxvJbszCclGGw "~YT - Rob Braxman Tech" -https://invidious.sethforprivacy.com/feed/channel/UCSuHzQ3GrHSzoBbwrIq3LLA "~YT - Naomi Brockwell: NBTV" -https://invidious.sethforprivacy.com/feed/channel/UCvFGf8HZGZWFzpcDCqb3Lhw "~YT - All Things Secured" -https://invidious.sethforprivacy.com/feed/channel/UCvjgXvBlbQiydffZU7m1_aw "~YT - The Coding Train" -https://invidious.sethforprivacy.com/feed/channel/UC9-y-6csu5WGm29I7JiwpnA "~YT - Computerphile" -https://invidious.sethforprivacy.com/feed/channel/UCbiGcwDWZjz05njNPrJU7jA "~YT - ExplainingComputers" -https://invidious.sethforprivacy.com/feed/channel/UCy0tKL1T7wFoYcxCe0xjN6Q "~YT - Technology Connections" -https://invidious.sethforprivacy.com/feed/channel/UC8uT9cgJorJPWu7ITLGo9Ww "~YT - The 8-Bit Guy" -https://invidious.sethforprivacy.com/feed/channel/UCoL8olX-259lS1N6QPyP4IQ "~YT - Action Retro" -https://invidious.sethforprivacy.com/feed/channel/UCW-HHEyt67RhZ6q21n4p2zQ "~YT - Mac84" -https://invidious.sethforprivacy.com/feed/channel/UChT0QzAGfz_pUIbQnePV6KQ "~YT - Pendleton 115" -https://invidious.sethforprivacy.com/feed/channel/UC-ErgHYY0_Yjhjz2MN1E1lg "~YT - RETRO Hardware" -https://invidious.sethforprivacy.com/feed/channel/UCjgS6Uyg8ok4Jd_lH_MUKgg "~YT - Claus Kellerman" -https://invidious.sethforprivacy.com/feed/channel/UC0W_BIuwk8D0Bv4THbVZZOQ "~YT - Surveillance Report" -https://invidious.sethforprivacy.com/feed/channel/UCBq5p-xOla8xhnrbhu8AIAg "~YT - Tech Over Tea" - diff --git a/new-config/.config/qt5ct/qt5ct.conf b/new-config/.config/qt5ct/qt5ct.conf deleted file mode 100644 index 08368ab5c..000000000 --- a/new-config/.config/qt5ct/qt5ct.conf +++ /dev/null @@ -1,31 +0,0 @@ -[Appearance] -color_scheme_path=/usr/share/qt5ct/colors/airy.conf -custom_palette=false -standard_dialogs=gtk2 -style=gtk2 - -[Fonts] -fixed="Mononoki Nerd Font,10,-1,5,50,0,0,0,0,0,Regular" -general="Cantarell,10,-1,5,50,0,0,0,0,0,Regular" - -[Interface] -activate_item_on_single_click=1 -buttonbox_layout=0 -cursor_flash_time=1000 -dialog_buttons_have_icons=1 -double_click_interval=400 -gui_effects=@Invalid() -keyboard_scheme=2 -menus_have_icons=true -show_shortcuts_in_context_menus=true -stylesheets=@Invalid() -toolbutton_style=4 -underline_shortcut=1 -wheel_scroll_lines=3 - -[SettingsWindow] -geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\x2\xde\0\0\x2\x84\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc) - -[Troubleshooting] -force_raster_widgets=1 -ignored_applications=@Invalid() diff --git a/new-config/.config/qt6ct/qt6ct.conf b/new-config/.config/qt6ct/qt6ct.conf deleted file mode 100644 index 6f85a8818..000000000 --- a/new-config/.config/qt6ct/qt6ct.conf +++ /dev/null @@ -1,32 +0,0 @@ -[Appearance] -color_scheme_path=/usr/share/qt6ct/colors/airy.conf -custom_palette=false -icon_theme=gruvbox-dark-icons-gtk -standard_dialogs=gtk2 -style=qt6gtk2 - -[Fonts] -fixed="Mononoki Nerd Font,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" -general="Cantarell,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" - -[Interface] -activate_item_on_single_click=1 -buttonbox_layout=0 -cursor_flash_time=1000 -dialog_buttons_have_icons=1 -double_click_interval=400 -gui_effects=@Invalid() -keyboard_scheme=2 -menus_have_icons=true -show_shortcuts_in_context_menus=true -stylesheets=@Invalid() -toolbutton_style=4 -underline_shortcut=1 -wheel_scroll_lines=3 - -[SettingsWindow] -geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc) - -[Troubleshooting] -force_raster_widgets=1 -ignored_applications=@Invalid() diff --git a/new-config/.config/rofi/config.rasi b/new-config/.config/rofi/config.rasi deleted file mode 100644 index a4a28cbc8..000000000 --- a/new-config/.config/rofi/config.rasi +++ /dev/null @@ -1,104 +0,0 @@ -configuration{ - modi: "run,drun,window"; - lines: 10; - font: "mononoki Nerd Font 14"; - show-icons: true; - icon-theme: "gruvbox-dark-icons-gtk"; - terminal: "alacritty"; - drun-display-format: "{icon} {name}"; - location: 0; - disable-history: false; - hide-scrollbar: true; - display-drun: " 󰀻 Apps "; - display-run: "  Run "; - display-window: " 󰖯 Window "; - display-Network: " 󰤨 Network "; - sidebar-mode: true; - dpi: 100; -} - -@theme "gruvbox-dark" - -element-text, element-icon , mode-switcher { - background-color: inherit; - text-color: inherit; -} - -window { - height: 380; - width: 1000; - border: 3px; - border-color: @border-col; - background-color: @bg-col; -} - -mainbox { - background-color: @bg-col; -} - -inputbar { - children: [prompt,entry]; - background-color: @bg-col; - border-radius: 5px; - padding: 2px; -} - -prompt { - background-color: @red; - padding: 3px; - text-color: @bg-col; - border-radius: 3px; - margin: 20px 0px 0px 20px; -} - -textbox-prompt-colon { - expand: false; - str: ":"; -} - -entry { - padding: 6px; - margin: 20px 0px 0px 10px; - text-color: @fg-col; - background-color: @bg-col; -} - -listview { - border: 0px 0px 0px; - padding: 2px 2px 2px; - margin: 10px 20px 0px 20px; - columns: 1; - background-color: @bg-col; -} - -element { - padding: 5px; - background-color: @bg-col; - text-color: @grey; -} - -element-icon { - size: 28px; -} - -element selected { - background-color: @selected-col; - text-color: @fg-col2; -} - -mode-switcher { - spacing: 0; - } - -button { - padding: 10px; - background-color: @bg-col; - text-color: @inactive; - vertical-align: 0.5; - horizontal-align: 0.5; -} - -button selected { - background-color: @selected-col; - text-color: @red; -} diff --git a/new-config/.config/rofi/scripts/rofi_emoji b/new-config/.config/rofi/scripts/rofi_emoji deleted file mode 100755 index e90268c05..000000000 --- a/new-config/.config/rofi/scripts/rofi_emoji +++ /dev/null @@ -1,1859 +0,0 @@ -#!/bin/bash -wtype 0 -if [ $? -eq 0 ] -then - sed '1,/^### DATA ###$/d' $0 | rofi -dmenu -i -p " 󰙃 Select Emoji " | cut -d ' ' -f 1 | tr -d '\n' | wtype - -else - sed '1,/^### DATA ###$/d' $0 | rofi -dmenu -i -p " 󰙃 Select Emoji " | cut -d ' ' -f 1 | tr -d '\n' | wl-copy -fi -exit -### DATA ### -😀 grinning face face smile happy joy :D grin -😃 grinning face with big eyes face happy joy haha :D :) smile funny -😄 grinning face with smiling eyes face happy joy funny haha laugh like :D :) smile -😁 beaming face with smiling eyes face happy smile joy kawaii -😆 grinning squinting face happy joy lol satisfied haha face glad XD laugh -😅 grinning face with sweat face hot happy laugh sweat smile relief -🤣 rolling on the floor laughing face rolling floor laughing lol haha rofl -😂 face with tears of joy face cry tears weep happy happytears haha -🙂 slightly smiling face face smile -🙃 upside down face face flipped silly smile -😉 winking face face happy mischievous secret ;) smile eye -😊 smiling face with smiling eyes face smile happy flushed crush embarrassed shy joy -😇 smiling face with halo face angel heaven halo -🥰 smiling face with hearts face love like affection valentines infatuation crush hearts adore -😍 smiling face with heart eyes face love like affection valentines infatuation crush heart -🤩 star struck face smile starry eyes grinning -😘 face blowing a kiss face love like affection valentines infatuation kiss -😗 kissing face love like face 3 valentines infatuation kiss -☺️ smiling face face blush massage happiness -😚 kissing face with closed eyes face love like affection valentines infatuation kiss -😙 kissing face with smiling eyes face affection valentines infatuation kiss -😋 face savoring food happy joy tongue smile face silly yummy nom delicious savouring -😛 face with tongue face prank childish playful mischievous smile tongue -😜 winking face with tongue face prank childish playful mischievous smile wink tongue -🤪 zany face face goofy crazy -😝 squinting face with tongue face prank playful mischievous smile tongue -🤑 money mouth face face rich dollar money -🤗 hugging face face smile hug -🤭 face with hand over mouth face whoops shock surprise -🤫 shushing face face quiet shhh -🤔 thinking face face hmmm think consider -🤐 zipper mouth face face sealed zipper secret -🤨 face with raised eyebrow face distrust scepticism disapproval disbelief surprise -😐 neutral face indifference meh :| neutral -😑 expressionless face face indifferent - - meh deadpan -😶 face without mouth face hellokitty -😏 smirking face face smile mean prank smug sarcasm -😒 unamused face indifference bored straight face serious sarcasm unimpressed skeptical dubious side eye -🙄 face with rolling eyes face eyeroll frustrated -😬 grimacing face face grimace teeth -🤥 lying face face lie pinocchio -😌 relieved face face relaxed phew massage happiness -😔 pensive face face sad depressed upset -😪 sleepy face face tired rest nap -🤤 drooling face face -😴 sleeping face face tired sleepy night zzz -😷 face with medical mask face sick ill disease -🤒 face with thermometer sick temperature thermometer cold fever -🤕 face with head bandage injured clumsy bandage hurt -🤢 nauseated face face vomit gross green sick throw up ill -🤮 face vomiting face sick -🤧 sneezing face face gesundheit sneeze sick allergy -🥵 hot face face feverish heat red sweating -🥶 cold face face blue freezing frozen frostbite icicles -🥴 woozy face face dizzy intoxicated tipsy wavy -😵 dizzy face spent unconscious xox dizzy -🤯 exploding head face shocked mind blown -🤠 cowboy hat face face cowgirl hat -🥳 partying face face celebration woohoo -😎 smiling face with sunglasses face cool smile summer beach sunglass -🤓 nerd face face nerdy geek dork -🧐 face with monocle face stuffy wealthy -😕 confused face face indifference huh weird hmmm :/ -😟 worried face face concern nervous :( -🙁 slightly frowning face face frowning disappointed sad upset -☹️ frowning face face sad upset frown -😮 face with open mouth face surprise impressed wow whoa :O -😯 hushed face face woo shh -😲 astonished face face xox surprised poisoned -😳 flushed face face blush shy flattered -🥺 pleading face face begging mercy -😦 frowning face with open mouth face aw what -😧 anguished face face stunned nervous -😨 fearful face face scared terrified nervous oops huh -😰 anxious face with sweat face nervous sweat -😥 sad but relieved face face phew sweat nervous -😢 crying face face tears sad depressed upset :'( -😭 loudly crying face face cry tears sad upset depressed -😱 face screaming in fear face munch scared omg -😖 confounded face face confused sick unwell oops :S -😣 persevering face face sick no upset oops -😞 disappointed face face sad upset depressed :( -😓 downcast face with sweat face hot sad tired exercise -😩 weary face face tired sleepy sad frustrated upset -😫 tired face sick whine upset frustrated -🥱 yawning face tired sleepy -😤 face with steam from nose face gas phew proud pride -😡 pouting face angry mad hate despise -😠 angry face mad face annoyed frustrated -🤬 face with symbols on mouth face swearing cursing cussing profanity expletive -😈 smiling face with horns devil horns -👿 angry face with horns devil angry horns -💀 skull dead skeleton creepy death -☠️ skull and crossbones poison danger deadly scary death pirate evil -💩 pile of poo hankey shitface fail turd shit -🤡 clown face face -👹 ogre monster red mask halloween scary creepy devil demon japanese ogre -👺 goblin red evil mask monster scary creepy japanese goblin -👻 ghost halloween spooky scary -👽 alien UFO paul weird outer space -👾 alien monster game arcade play -🤖 robot computer machine bot -😺 grinning cat animal cats happy smile -😸 grinning cat with smiling eyes animal cats smile -😹 cat with tears of joy animal cats haha happy tears -😻 smiling cat with heart eyes animal love like affection cats valentines heart -😼 cat with wry smile animal cats smirk -😽 kissing cat animal cats kiss -🙀 weary cat animal cats munch scared scream -😿 crying cat animal tears weep sad cats upset cry -😾 pouting cat animal cats -🙈 see no evil monkey monkey animal nature haha -🙉 hear no evil monkey animal monkey nature -🙊 speak no evil monkey monkey animal nature omg -💋 kiss mark face lips love like affection valentines -💌 love letter email like affection envelope valentines -💘 heart with arrow love like heart affection valentines -💝 heart with ribbon love valentines -💖 sparkling heart love like affection valentines -💗 growing heart like love affection valentines pink -💓 beating heart love like affection valentines pink heart -💞 revolving hearts love like affection valentines -💕 two hearts love like affection valentines heart -💟 heart decoration purple-square love like -❣️ heart exclamation decoration love -💔 broken heart sad sorry break heart heartbreak -❤️ red heart love like valentines -🧡 orange heart love like affection valentines -💛 yellow heart love like affection valentines -💚 green heart love like affection valentines -💙 blue heart love like affection valentines -💜 purple heart love like affection valentines -🤎 brown heart coffee -🖤 black heart evil -🤍 white heart pure -💯 hundred points score perfect numbers century exam quiz test pass hundred -💢 anger symbol angry mad -💥 collision bomb explode explosion collision blown -💫 dizzy star sparkle shoot magic -💦 sweat droplets water drip oops -💨 dashing away wind air fast shoo fart smoke puff -🕳️ hole embarrassing -💣 bomb boom explode explosion terrorism -💬 speech balloon bubble words message talk chatting -👁️‍🗨️ eye in speech bubble info -🗨️ left speech bubble words message talk chatting -🗯️ right anger bubble caption speech thinking mad -💭 thought balloon bubble cloud speech thinking dream -💤 zzz sleepy tired dream -👋 waving hand hands gesture goodbye solong farewell hello hi palm -🤚 raised back of hand fingers raised backhand -🖐️ hand with fingers splayed hand fingers palm -✋ raised hand fingers stop highfive palm ban -🖖 vulcan salute hand fingers spock star trek -👌 ok hand fingers limbs perfect ok okay -🤏 pinching hand tiny small size -✌️ victory hand fingers ohyeah hand peace victory two -🤞 crossed fingers good lucky -🤟 love you gesture hand fingers gesture -🤘 sign of the horns hand fingers evil eye sign of horns rock on -🤙 call me hand hands gesture shaka -👈 backhand index pointing left direction fingers hand left -👉 backhand index pointing right fingers hand direction right -👆 backhand index pointing up fingers hand direction up -🖕 middle finger hand fingers rude middle flipping -👇 backhand index pointing down fingers hand direction down -☝️ index pointing up hand fingers direction up -👍 thumbs up thumbsup yes awesome good agree accept cool hand like +1 -👎 thumbs down thumbsdown no dislike hand -1 -✊ raised fist fingers hand grasp -👊 oncoming fist angry violence fist hit attack hand -🤛 left facing fist hand fistbump -🤜 right facing fist hand fistbump -👏 clapping hands hands praise applause congrats yay -🙌 raising hands gesture hooray yea celebration hands -👐 open hands fingers butterfly hands open -🤲 palms up together hands gesture cupped prayer -🤝 handshake agreement shake -🙏 folded hands please hope wish namaste highfive pray -✍️ writing hand lower left ballpoint pen stationery write compose -💅 nail polish beauty manicure finger fashion nail -🤳 selfie camera phone -💪 flexed biceps arm flex hand summer strong biceps -🦾 mechanical arm accessibility -🦿 mechanical leg accessibility -🦵 leg kick limb -🦶 foot kick stomp -👂 ear face hear sound listen -🦻 ear with hearing aid accessibility -👃 nose smell sniff -🧠 brain smart intelligent -🦷 tooth teeth dentist -🦴 bone skeleton -👀 eyes look watch stalk peek see -👁️ eye face look see watch stare -👅 tongue mouth playful -👄 mouth mouth kiss -👶 baby child boy girl toddler -🧒 child gender-neutral young -👦 boy man male guy teenager -👧 girl female woman teenager -🧑 person gender-neutral person -👱 person blond hair hairstyle -👨 man mustache father dad guy classy sir moustache -🧔 man beard person bewhiskered -👨‍🦰 man red hair hairstyle -👨‍🦱 man curly hair hairstyle -👨‍🦳 man white hair old elder -👨‍🦲 man bald hairless -👩 woman female girls lady -👩‍🦰 woman red hair hairstyle -🧑‍🦰 person red hair hairstyle -👩‍🦱 woman curly hair hairstyle -🧑‍🦱 person curly hair hairstyle -👩‍🦳 woman white hair old elder -🧑‍🦳 person white hair elder old -👩‍🦲 woman bald hairless -🧑‍🦲 person bald hairless -👱‍♀️ woman blond hair woman female girl blonde person -👱‍♂️ man blond hair man male boy blonde guy person -🧓 older person human elder senior gender-neutral -👴 old man human male men old elder senior -👵 old woman human female women lady old elder senior -🙍 person frowning worried -🙍‍♂️ man frowning male boy man sad depressed discouraged unhappy -🙍‍♀️ woman frowning female girl woman sad depressed discouraged unhappy -🙎 person pouting upset -🙎‍♂️ man pouting male boy man -🙎‍♀️ woman pouting female girl woman -🙅 person gesturing no decline -🙅‍♂️ man gesturing no male boy man nope -🙅‍♀️ woman gesturing no female girl woman nope -🙆 person gesturing ok agree -🙆‍♂️ man gesturing ok men boy male blue human man -🙆‍♀️ woman gesturing ok women girl female pink human woman -💁 person tipping hand information -💁‍♂️ man tipping hand male boy man human information -💁‍♀️ woman tipping hand female girl woman human information -🙋 person raising hand question -🙋‍♂️ man raising hand male boy man -🙋‍♀️ woman raising hand female girl woman -🧏 deaf person accessibility -🧏‍♂️ deaf man accessibility -🧏‍♀️ deaf woman accessibility -🙇 person bowing respectiful -🙇‍♂️ man bowing man male boy -🙇‍♀️ woman bowing woman female girl -🤦 person facepalming disappointed -🤦‍♂️ man facepalming man male boy disbelief -🤦‍♀️ woman facepalming woman female girl disbelief -🤷 person shrugging regardless -🤷‍♂️ man shrugging man male boy confused indifferent doubt -🤷‍♀️ woman shrugging woman female girl confused indifferent doubt -🧑‍⚕️ health worker hospital -👨‍⚕️ man health worker doctor nurse therapist healthcare man human -👩‍⚕️ woman health worker doctor nurse therapist healthcare woman human -🧑‍🎓 student learn -👨‍🎓 man student graduate man human -👩‍🎓 woman student graduate woman human -🧑‍🏫 teacher professor -👨‍🏫 man teacher instructor professor man human -👩‍🏫 woman teacher instructor professor woman human -🧑‍⚖️ judge law -👨‍⚖️ man judge justice court man human -👩‍⚖️ woman judge justice court woman human -🧑‍🌾 farmer crops -👨‍🌾 man farmer rancher gardener man human -👩‍🌾 woman farmer rancher gardener woman human -🧑‍🍳 cook food kitchen culinary -👨‍🍳 man cook chef man human -👩‍🍳 woman cook chef woman human -🧑‍🔧 mechanic worker technician -👨‍🔧 man mechanic plumber man human wrench -👩‍🔧 woman mechanic plumber woman human wrench -🧑‍🏭 factory worker labor -👨‍🏭 man factory worker assembly industrial man human -👩‍🏭 woman factory worker assembly industrial woman human -🧑‍💼 office worker business -👨‍💼 man office worker business manager man human -👩‍💼 woman office worker business manager woman human -🧑‍🔬 scientist chemistry -👨‍🔬 man scientist biologist chemist engineer physicist man human -👩‍🔬 woman scientist biologist chemist engineer physicist woman human -🧑‍💻 technologist computer -👨‍💻 man technologist coder developer engineer programmer software man human laptop computer -👩‍💻 woman technologist coder developer engineer programmer software woman human laptop computer -🧑‍🎤 singer song artist performer -👨‍🎤 man singer rockstar entertainer man human -👩‍🎤 woman singer rockstar entertainer woman human -🧑‍🎨 artist painting draw creativity -👨‍🎨 man artist painter man human -👩‍🎨 woman artist painter woman human -🧑‍✈️ pilot fly plane airplane -👨‍✈️ man pilot aviator plane man human -👩‍✈️ woman pilot aviator plane woman human -🧑‍🚀 astronaut outerspace -👨‍🚀 man astronaut space rocket man human -👩‍🚀 woman astronaut space rocket woman human -🧑‍🚒 firefighter fire -👨‍🚒 man firefighter fireman man human -👩‍🚒 woman firefighter fireman woman human -👮 police officer cop -👮‍♂️ man police officer man police law legal enforcement arrest 911 -👮‍♀️ woman police officer woman police law legal enforcement arrest 911 female -🕵️ detective human spy detective -🕵️‍♂️ man detective crime -🕵️‍♀️ woman detective human spy detective female woman -💂 guard protect -💂‍♂️ man guard uk gb british male guy royal -💂‍♀️ woman guard uk gb british female royal woman -👷 construction worker labor build -👷‍♂️ man construction worker male human wip guy build construction worker labor -👷‍♀️ woman construction worker female human wip build construction worker labor woman -🤴 prince boy man male crown royal king -👸 princess girl woman female blond crown royal queen -👳 person wearing turban headdress -👳‍♂️ man wearing turban male indian hinduism arabs -👳‍♀️ woman wearing turban female indian hinduism arabs woman -👲 man with skullcap male boy chinese -🧕 woman with headscarf female hijab mantilla tichel -🤵 man in tuxedo couple marriage wedding groom -👰 bride with veil couple marriage wedding woman bride -🤰 pregnant woman baby -🤱 breast feeding nursing baby -👼 baby angel heaven wings halo -🎅 santa claus festival man male xmas father christmas -🤶 mrs claus woman female xmas mother christmas -🦸 superhero marvel -🦸‍♂️ man superhero man male good hero superpowers -🦸‍♀️ woman superhero woman female good heroine superpowers -🦹 supervillain marvel -🦹‍♂️ man supervillain man male evil bad criminal hero superpowers -🦹‍♀️ woman supervillain woman female evil bad criminal heroine superpowers -🧙 mage magic -🧙‍♂️ man mage man male mage sorcerer -🧙‍♀️ woman mage woman female mage witch -🧚 fairy wings magical -🧚‍♂️ man fairy man male -🧚‍♀️ woman fairy woman female -🧛 vampire blood twilight -🧛‍♂️ man vampire man male dracula -🧛‍♀️ woman vampire woman female -🧜 merperson sea -🧜‍♂️ merman man male triton -🧜‍♀️ mermaid woman female merwoman ariel -🧝 elf magical -🧝‍♂️ man elf man male -🧝‍♀️ woman elf woman female -🧞 genie magical wishes -🧞‍♂️ man genie man male -🧞‍♀️ woman genie woman female -🧟 zombie dead -🧟‍♂️ man zombie man male dracula undead walking dead -🧟‍♀️ woman zombie woman female undead walking dead -💆 person getting massage relax -💆‍♂️ man getting massage male boy man head -💆‍♀️ woman getting massage female girl woman head -💇 person getting haircut hairstyle -💇‍♂️ man getting haircut male boy man -💇‍♀️ woman getting haircut female girl woman -🚶 person walking move -🚶‍♂️ man walking human feet steps -🚶‍♀️ woman walking human feet steps woman female -🧍 person standing still -🧍‍♂️ man standing still -🧍‍♀️ woman standing still -🧎 person kneeling pray respectful -🧎‍♂️ man kneeling pray respectful -🧎‍♀️ woman kneeling respectful pray -🧑‍🦯 person with probing cane blind -👨‍🦯 man with probing cane blind -👩‍🦯 woman with probing cane blind -🧑‍🦼 person in motorized wheelchair disability accessibility -👨‍🦼 man in motorized wheelchair disability accessibility -👩‍🦼 woman in motorized wheelchair disability accessibility -🧑‍🦽 person in manual wheelchair disability accessibility -👨‍🦽 man in manual wheelchair disability accessibility -👩‍🦽 woman in manual wheelchair disability accessibility -🏃 person running move -🏃‍♂️ man running man walking exercise race running -🏃‍♀️ woman running woman walking exercise race running female -💃 woman dancing female girl woman fun -🕺 man dancing male boy fun dancer -🕴️ man in suit levitating suit business levitate hover jump -👯 people with bunny ears perform costume -👯‍♂️ men with bunny ears male bunny men boys -👯‍♀️ women with bunny ears female bunny women girls -🧖 person in steamy room relax spa -🧖‍♂️ man in steamy room male man spa steamroom sauna -🧖‍♀️ woman in steamy room female woman spa steamroom sauna -🧗 person climbing sport -🧗‍♂️ man climbing sports hobby man male rock -🧗‍♀️ woman climbing sports hobby woman female rock -🤺 person fencing sports fencing sword -🏇 horse racing animal betting competition gambling luck -⛷️ skier sports winter snow -🏂 snowboarder sports winter -🏌️ person golfing sports business -🏌️‍♂️ man golfing sport -🏌️‍♀️ woman golfing sports business woman female -🏄 person surfing sport sea -🏄‍♂️ man surfing sports ocean sea summer beach -🏄‍♀️ woman surfing sports ocean sea summer beach woman female -🚣 person rowing boat sport move -🚣‍♂️ man rowing boat sports hobby water ship -🚣‍♀️ woman rowing boat sports hobby water ship woman female -🏊 person swimming sport pool -🏊‍♂️ man swimming sports exercise human athlete water summer -🏊‍♀️ woman swimming sports exercise human athlete water summer woman female -⛹️ person bouncing ball sports human -⛹️‍♂️ man bouncing ball sport -⛹️‍♀️ woman bouncing ball sports human woman female -🏋️ person lifting weights sports training exercise -🏋️‍♂️ man lifting weights sport -🏋️‍♀️ woman lifting weights sports training exercise woman female -🚴 person biking sport move -🚴‍♂️ man biking sports bike exercise hipster -🚴‍♀️ woman biking sports bike exercise hipster woman female -🚵 person mountain biking sport move -🚵‍♂️ man mountain biking transportation sports human race bike -🚵‍♀️ woman mountain biking transportation sports human race bike woman female -🤸 person cartwheeling sport gymnastic -🤸‍♂️ man cartwheeling gymnastics -🤸‍♀️ woman cartwheeling gymnastics -🤼 people wrestling sport -🤼‍♂️ men wrestling sports wrestlers -🤼‍♀️ women wrestling sports wrestlers -🤽 person playing water polo sport -🤽‍♂️ man playing water polo sports pool -🤽‍♀️ woman playing water polo sports pool -🤾 person playing handball sport -🤾‍♂️ man playing handball sports -🤾‍♀️ woman playing handball sports -🤹 person juggling performance balance -🤹‍♂️ man juggling juggle balance skill multitask -🤹‍♀️ woman juggling juggle balance skill multitask -🧘 person in lotus position meditate -🧘‍♂️ man in lotus position man male meditation yoga serenity zen mindfulness -🧘‍♀️ woman in lotus position woman female meditation yoga serenity zen mindfulness -🛀 person taking bath clean shower bathroom -🛌 person in bed bed rest -🧑‍🤝‍🧑 people holding hands friendship -👭 women holding hands pair friendship couple love like female people human -👫 woman and man holding hands pair people human love date dating like affection valentines marriage -👬 men holding hands pair couple love like bromance friendship people human -💏 kiss pair valentines love like dating marriage -👩‍❤️‍💋‍👨 kiss woman man love -👨‍❤️‍💋‍👨 kiss man man pair valentines love like dating marriage -👩‍❤️‍💋‍👩 kiss woman woman pair valentines love like dating marriage -💑 couple with heart pair love like affection human dating valentines marriage -👩‍❤️‍👨 couple with heart woman man love -👨‍❤️‍👨 couple with heart man man pair love like affection human dating valentines marriage -👩‍❤️‍👩 couple with heart woman woman pair love like affection human dating valentines marriage -👪 family home parents child mom dad father mother people human -👨‍👩‍👦 family man woman boy love -👨‍👩‍👧 family man woman girl home parents people human child -👨‍👩‍👧‍👦 family man woman girl boy home parents people human children -👨‍👩‍👦‍👦 family man woman boy boy home parents people human children -👨‍👩‍👧‍👧 family man woman girl girl home parents people human children -👨‍👨‍👦 family man man boy home parents people human children -👨‍👨‍👧 family man man girl home parents people human children -👨‍👨‍👧‍👦 family man man girl boy home parents people human children -👨‍👨‍👦‍👦 family man man boy boy home parents people human children -👨‍👨‍👧‍👧 family man man girl girl home parents people human children -👩‍👩‍👦 family woman woman boy home parents people human children -👩‍👩‍👧 family woman woman girl home parents people human children -👩‍👩‍👧‍👦 family woman woman girl boy home parents people human children -👩‍👩‍👦‍👦 family woman woman boy boy home parents people human children -👩‍👩‍👧‍👧 family woman woman girl girl home parents people human children -👨‍👦 family man boy home parent people human child -👨‍👦‍👦 family man boy boy home parent people human children -👨‍👧 family man girl home parent people human child -👨‍👧‍👦 family man girl boy home parent people human children -👨‍👧‍👧 family man girl girl home parent people human children -👩‍👦 family woman boy home parent people human child -👩‍👦‍👦 family woman boy boy home parent people human children -👩‍👧 family woman girl home parent people human child -👩‍👧‍👦 family woman girl boy home parent people human children -👩‍👧‍👧 family woman girl girl home parent people human children -🗣️ speaking head user person human sing say talk -👤 bust in silhouette user person human -👥 busts in silhouette user person human group team -👣 footprints feet tracking walking beach -🐵 monkey face animal nature circus -🐒 monkey animal nature banana circus -🦍 gorilla animal nature circus -🦧 orangutan animal -🐶 dog face animal friend nature woof puppy pet faithful -🐕 dog animal nature friend doge pet faithful -🦮 guide dog animal blind -🐕‍🦺 service dog blind animal -🐩 poodle dog animal 101 nature pet -🐺 wolf animal nature wild -🦊 fox animal nature face -🦝 raccoon animal nature -🐱 cat face animal meow nature pet kitten -🐈 cat animal meow pet cats -🦁 lion animal nature -🐯 tiger face animal cat danger wild nature roar -🐅 tiger animal nature roar -🐆 leopard animal nature -🐴 horse face animal brown nature -🐎 horse animal gamble luck -🦄 unicorn animal nature mystical -🦓 zebra animal nature stripes safari -🦌 deer animal nature horns venison -🐮 cow face beef ox animal nature moo milk -🐂 ox animal cow beef -🐃 water buffalo animal nature ox cow -🐄 cow beef ox animal nature moo milk -🐷 pig face animal oink nature -🐖 pig animal nature -🐗 boar animal nature -🐽 pig nose animal oink -🐏 ram animal sheep nature -🐑 ewe animal nature wool shipit -🐐 goat animal nature -🐪 camel animal hot desert hump -🐫 two hump camel animal nature hot desert hump -🦙 llama animal nature alpaca -🦒 giraffe animal nature spots safari -🐘 elephant animal nature nose th circus -🦏 rhinoceros animal nature horn -🦛 hippopotamus animal nature -🐭 mouse face animal nature cheese wedge rodent -🐁 mouse animal nature rodent -🐀 rat animal mouse rodent -🐹 hamster animal nature -🐰 rabbit face animal nature pet spring magic bunny -🐇 rabbit animal nature pet magic spring -🐿️ chipmunk animal nature rodent squirrel -🦔 hedgehog animal nature spiny -🦇 bat animal nature blind vampire -🐻 bear animal nature wild -🐨 koala animal nature -🐼 panda animal nature panda -🦥 sloth animal -🦦 otter animal -🦨 skunk animal -🦘 kangaroo animal nature australia joey hop marsupial -🦡 badger animal nature honey -🐾 paw prints animal tracking footprints dog cat pet feet -🦃 turkey animal bird -🐔 chicken animal cluck nature bird -🐓 rooster animal nature chicken -🐣 hatching chick animal chicken egg born baby bird -🐤 baby chick animal chicken bird -🐥 front facing baby chick animal chicken baby bird -🐦 bird animal nature fly tweet spring -🐧 penguin animal nature -🕊️ dove animal bird -🦅 eagle animal nature bird -🦆 duck animal nature bird mallard -🦢 swan animal nature bird -🦉 owl animal nature bird hoot -🦩 flamingo animal -🦚 peacock animal nature peahen bird -🦜 parrot animal nature bird pirate talk -🐸 frog animal nature croak toad -🐊 crocodile animal nature reptile lizard alligator -🐢 turtle animal slow nature tortoise -🦎 lizard animal nature reptile -🐍 snake animal evil nature hiss python -🐲 dragon face animal myth nature chinese green -🐉 dragon animal myth nature chinese green -🦕 sauropod animal nature dinosaur brachiosaurus brontosaurus diplodocus extinct -🦖 t rex animal nature dinosaur tyrannosaurus extinct -🐳 spouting whale animal nature sea ocean -🐋 whale animal nature sea ocean -🐬 dolphin animal nature fish sea ocean flipper fins beach -🐟 fish animal food nature -🐠 tropical fish animal swim ocean beach nemo -🐡 blowfish animal nature food sea ocean -🦈 shark animal nature fish sea ocean jaws fins beach -🐙 octopus animal creature ocean sea nature beach -🐚 spiral shell nature sea beach -🐌 snail slow animal shell -🦋 butterfly animal insect nature caterpillar -🐛 bug animal insect nature worm -🐜 ant animal insect nature bug -🐝 honeybee animal insect nature bug spring honey -🐞 lady beetle animal insect nature ladybug -🦗 cricket animal cricket chirp -🕷️ spider animal arachnid -🕸️ spider web animal insect arachnid silk -🦂 scorpion animal arachnid -🦟 mosquito animal nature insect malaria -🦠 microbe amoeba bacteria germs virus -💐 bouquet flowers nature spring -🌸 cherry blossom nature plant spring flower -💮 white flower japanese spring -🏵️ rosette flower decoration military -🌹 rose flowers valentines love spring -🥀 wilted flower plant nature flower -🌺 hibiscus plant vegetable flowers beach -🌻 sunflower nature plant fall -🌼 blossom nature flowers yellow -🌷 tulip flowers plant nature summer spring -🌱 seedling plant nature grass lawn spring -🌲 evergreen tree plant nature -🌳 deciduous tree plant nature -🌴 palm tree plant vegetable nature summer beach mojito tropical -🌵 cactus vegetable plant nature -🌾 sheaf of rice nature plant -🌿 herb vegetable plant medicine weed grass lawn -☘️ shamrock vegetable plant nature irish clover -🍀 four leaf clover vegetable plant nature lucky irish -🍁 maple leaf nature plant vegetable ca fall -🍂 fallen leaf nature plant vegetable leaves -🍃 leaf fluttering in wind nature plant tree vegetable grass lawn spring -🍇 grapes fruit food wine -🍈 melon fruit nature food -🍉 watermelon fruit food picnic summer -🍊 tangerine food fruit nature orange -🍋 lemon fruit nature -🍌 banana fruit food monkey -🍍 pineapple fruit nature food -🥭 mango fruit food tropical -🍎 red apple fruit mac school -🍏 green apple fruit nature -🍐 pear fruit nature food -🍑 peach fruit nature food -🍒 cherries food fruit -🍓 strawberry fruit food nature -🥝 kiwi fruit fruit food -🍅 tomato fruit vegetable nature food -🥥 coconut fruit nature food palm -🥑 avocado fruit food -🍆 eggplant vegetable nature food aubergine -🥔 potato food tuber vegatable starch -🥕 carrot vegetable food orange -🌽 ear of corn food vegetable plant -🌶️ hot pepper food spicy chilli chili -🥒 cucumber fruit food pickle -🥬 leafy green food vegetable plant bok choy cabbage kale lettuce -🥦 broccoli fruit food vegetable -🧄 garlic food spice cook -🧅 onion cook food spice -🍄 mushroom plant vegetable -🥜 peanuts food nut -🌰 chestnut food squirrel -🍞 bread food wheat breakfast toast -🥐 croissant food bread french -🥖 baguette bread food bread french -🥨 pretzel food bread twisted -🥯 bagel food bread bakery schmear -🥞 pancakes food breakfast flapjacks hotcakes -🧇 waffle food breakfast -🧀 cheese wedge food chadder -🍖 meat on bone good food drumstick -🍗 poultry leg food meat drumstick bird chicken turkey -🥩 cut of meat food cow meat cut chop lambchop porkchop -🥓 bacon food breakfast pork pig meat -🍔 hamburger meat fast food beef cheeseburger mcdonalds burger king -🍟 french fries chips snack fast food -🍕 pizza food party -🌭 hot dog food frankfurter -🥪 sandwich food lunch bread -🌮 taco food mexican -🌯 burrito food mexican -🥙 stuffed flatbread food flatbread stuffed gyro -🧆 falafel food -🥚 egg food chicken breakfast -🍳 cooking food breakfast kitchen egg -🥘 shallow pan of food food cooking casserole paella -🍲 pot of food food meat soup -🥣 bowl with spoon food breakfast cereal oatmeal porridge -🥗 green salad food healthy lettuce -🍿 popcorn food movie theater films snack -🧈 butter food cook -🧂 salt condiment shaker -🥫 canned food food soup -🍱 bento box food japanese box -🍘 rice cracker food japanese -🍙 rice ball food japanese -🍚 cooked rice food china asian -🍛 curry rice food spicy hot indian -🍜 steaming bowl food japanese noodle chopsticks -🍝 spaghetti food italian noodle -🍠 roasted sweet potato food nature -🍢 oden food japanese -🍣 sushi food fish japanese rice -🍤 fried shrimp food animal appetizer summer -🍥 fish cake with swirl food japan sea beach narutomaki pink swirl kamaboko surimi ramen -🥮 moon cake food autumn -🍡 dango food dessert sweet japanese barbecue meat -🥟 dumpling food empanada pierogi potsticker -🥠 fortune cookie food prophecy -🥡 takeout box food leftovers -🦀 crab animal crustacean -🦞 lobster animal nature bisque claws seafood -🦐 shrimp animal ocean nature seafood -🦑 squid animal nature ocean sea -🦪 oyster food -🍦 soft ice cream food hot dessert summer -🍧 shaved ice hot dessert summer -🍨 ice cream food hot dessert -🍩 doughnut food dessert snack sweet donut -🍪 cookie food snack oreo chocolate sweet dessert -🎂 birthday cake food dessert cake -🍰 shortcake food dessert -🧁 cupcake food dessert bakery sweet -🥧 pie food dessert pastry -🍫 chocolate bar food snack dessert sweet -🍬 candy snack dessert sweet lolly -🍭 lollipop food snack candy sweet -🍮 custard dessert food -🍯 honey pot bees sweet kitchen -🍼 baby bottle food container milk -🥛 glass of milk beverage drink cow -☕ hot beverage beverage caffeine latte espresso coffee -🍵 teacup without handle drink bowl breakfast green british -🍶 sake wine drink drunk beverage japanese alcohol booze -🍾 bottle with popping cork drink wine bottle celebration -🍷 wine glass drink beverage drunk alcohol booze -🍸 cocktail glass drink drunk alcohol beverage booze mojito -🍹 tropical drink beverage cocktail summer beach alcohol booze mojito -🍺 beer mug relax beverage drink drunk party pub summer alcohol booze -🍻 clinking beer mugs relax beverage drink drunk party pub summer alcohol booze -🥂 clinking glasses beverage drink party alcohol celebrate cheers wine champagne toast -🥃 tumbler glass drink beverage drunk alcohol liquor booze bourbon scotch whisky glass shot -🥤 cup with straw drink soda -🧃 beverage box drink -🧉 mate drink tea beverage -🧊 ice water cold -🥢 chopsticks food -🍽️ fork and knife with plate food eat meal lunch dinner restaurant -🍴 fork and knife cutlery kitchen -🥄 spoon cutlery kitchen tableware -🔪 kitchen knife knife blade cutlery kitchen weapon -🏺 amphora vase jar -🌍 globe showing europe africa globe world international -🌎 globe showing americas globe world USA international -🌏 globe showing asia australia globe world east international -🌐 globe with meridians earth international world internet interweb i18n -🗺️ world map location direction -🗾 map of japan nation country japanese asia -🧭 compass magnetic navigation orienteering -🏔️ snow capped mountain photo nature environment winter cold -⛰️ mountain photo nature environment -🌋 volcano photo nature disaster -🗻 mount fuji photo mountain nature japanese -🏕️ camping photo outdoors tent -🏖️ beach with umbrella weather summer sunny sand mojito -🏜️ desert photo warm saharah -🏝️ desert island photo tropical mojito -🏞️ national park photo environment nature -🏟️ stadium photo place sports concert venue -🏛️ classical building art culture history -🏗️ building construction wip working progress -🧱 brick bricks -🏘️ houses buildings photo -🏚️ derelict house abandon evict broken building -🏠 house building home -🏡 house with garden home plant nature -🏢 office building building bureau work -🏣 japanese post office building envelope communication -🏤 post office building email -🏥 hospital building health surgery doctor -🏦 bank building money sales cash business enterprise -🏨 hotel building accomodation checkin -🏩 love hotel like affection dating -🏪 convenience store building shopping groceries -🏫 school building student education learn teach -🏬 department store building shopping mall -🏭 factory building industry pollution smoke -🏯 japanese castle photo building -🏰 castle building royalty history -💒 wedding love like affection couple marriage bride groom -🗼 tokyo tower photo japanese -🗽 statue of liberty american newyork -⛪ church building religion christ -🕌 mosque islam worship minaret -🛕 hindu temple religion -🕍 synagogue judaism worship temple jewish -⛩️ shinto shrine temple japan kyoto -🕋 kaaba mecca mosque islam -⛲ fountain photo summer water fresh -⛺ tent photo camping outdoors -🌁 foggy photo mountain -🌃 night with stars evening city downtown -🏙️ cityscape photo night life urban -🌄 sunrise over mountains view vacation photo -🌅 sunrise morning view vacation photo -🌆 cityscape at dusk photo evening sky buildings -🌇 sunset photo good morning dawn -🌉 bridge at night photo sanfrancisco -♨️ hot springs bath warm relax -🎠 carousel horse photo carnival -🎡 ferris wheel photo carnival londoneye -🎢 roller coaster carnival playground photo fun -💈 barber pole hair salon style -🎪 circus tent festival carnival party -🚂 locomotive transportation vehicle train -🚃 railway car transportation vehicle -🚄 high speed train transportation vehicle -🚅 bullet train transportation vehicle speed fast public travel -🚆 train transportation vehicle -🚇 metro transportation blue-square mrt underground tube -🚈 light rail transportation vehicle -🚉 station transportation vehicle public -🚊 tram transportation vehicle -🚝 monorail transportation vehicle -🚞 mountain railway transportation vehicle -🚋 tram car transportation vehicle carriage public travel -🚌 bus car vehicle transportation -🚍 oncoming bus vehicle transportation -🚎 trolleybus bart transportation vehicle -🚐 minibus vehicle car transportation -🚑 ambulance health 911 hospital -🚒 fire engine transportation cars vehicle -🚓 police car vehicle cars transportation law legal enforcement -🚔 oncoming police car vehicle law legal enforcement 911 -🚕 taxi uber vehicle cars transportation -🚖 oncoming taxi vehicle cars uber -🚗 automobile red transportation vehicle -🚘 oncoming automobile car vehicle transportation -🚙 sport utility vehicle transportation vehicle -🚚 delivery truck cars transportation -🚛 articulated lorry vehicle cars transportation express -🚜 tractor vehicle car farming agriculture -🏎️ racing car sports race fast formula f1 -🏍️ motorcycle race sports fast -🛵 motor scooter vehicle vespa sasha -🦽 manual wheelchair accessibility -🦼 motorized wheelchair accessibility -🛺 auto rickshaw move transportation -🚲 bicycle sports bicycle exercise hipster -🛴 kick scooter vehicle kick razor -🛹 skateboard board -🚏 bus stop transportation wait -🛣️ motorway road cupertino interstate highway -🛤️ railway track train transportation -🛢️ oil drum barrell -⛽ fuel pump gas station petroleum -🚨 police car light police ambulance 911 emergency alert error pinged law legal -🚥 horizontal traffic light transportation signal -🚦 vertical traffic light transportation driving -🛑 stop sign stop -🚧 construction wip progress caution warning -⚓ anchor ship ferry sea boat -⛵ sailboat ship summer transportation water sailing -🛶 canoe boat paddle water ship -🚤 speedboat ship transportation vehicle summer -🛳️ passenger ship yacht cruise ferry -⛴️ ferry boat ship yacht -🛥️ motor boat ship -🚢 ship transportation titanic deploy -✈️ airplane vehicle transportation flight fly -🛩️ small airplane flight transportation fly vehicle -🛫 airplane departure airport flight landing -🛬 airplane arrival airport flight boarding -🪂 parachute fly glide -💺 seat sit airplane transport bus flight fly -🚁 helicopter transportation vehicle fly -🚟 suspension railway vehicle transportation -🚠 mountain cableway transportation vehicle ski -🚡 aerial tramway transportation vehicle ski -🛰️ satellite communication gps orbit spaceflight NASA ISS -🚀 rocket launch ship staffmode NASA outer space outer space fly -🛸 flying saucer transportation vehicle ufo -🛎️ bellhop bell service -🧳 luggage packing travel -⌛ hourglass done time clock oldschool limit exam quiz test -⏳ hourglass not done oldschool time countdown -⌚ watch time accessories -⏰ alarm clock time wake -⏱️ stopwatch time deadline -⏲️ timer clock alarm -🕰️ mantelpiece clock time -🕛 twelve o clock time noon midnight midday late early schedule -🕧 twelve thirty time late early schedule -🕐 one o clock time late early schedule -🕜 one thirty time late early schedule -🕑 two o clock time late early schedule -🕝 two thirty time late early schedule -🕒 three o clock time late early schedule -🕞 three thirty time late early schedule -🕓 four o clock time late early schedule -🕟 four thirty time late early schedule -🕔 five o clock time late early schedule -🕠 five thirty time late early schedule -🕕 six o clock time late early schedule dawn dusk -🕡 six thirty time late early schedule -🕖 seven o clock time late early schedule -🕢 seven thirty time late early schedule -🕗 eight o clock time late early schedule -🕣 eight thirty time late early schedule -🕘 nine o clock time late early schedule -🕤 nine thirty time late early schedule -🕙 ten o clock time late early schedule -🕥 ten thirty time late early schedule -🕚 eleven o clock time late early schedule -🕦 eleven thirty time late early schedule -🌑 new moon nature twilight planet space night evening sleep -🌒 waxing crescent moon nature twilight planet space night evening sleep -🌓 first quarter moon nature twilight planet space night evening sleep -🌔 waxing gibbous moon nature night sky gray twilight planet space evening sleep -🌕 full moon nature yellow twilight planet space night evening sleep -🌖 waning gibbous moon nature twilight planet space night evening sleep waxing gibbous moon -🌗 last quarter moon nature twilight planet space night evening sleep -🌘 waning crescent moon nature twilight planet space night evening sleep -🌙 crescent moon night sleep sky evening magic -🌚 new moon face nature twilight planet space night evening sleep -🌛 first quarter moon face nature twilight planet space night evening sleep -🌜 last quarter moon face nature twilight planet space night evening sleep -🌡️ thermometer weather temperature hot cold -☀️ sun weather nature brightness summer beach spring -🌝 full moon face nature twilight planet space night evening sleep -🌞 sun with face nature morning sky -🪐 ringed planet outerspace -⭐ star night yellow -🌟 glowing star night sparkle awesome good magic -🌠 shooting star night photo -🌌 milky way photo space stars -☁️ cloud weather sky -⛅ sun behind cloud weather nature cloudy morning fall spring -⛈️ cloud with lightning and rain weather lightning -🌤️ sun behind small cloud weather -🌥️ sun behind large cloud weather -🌦️ sun behind rain cloud weather -🌧️ cloud with rain weather -🌨️ cloud with snow weather -🌩️ cloud with lightning weather thunder -🌪️ tornado weather cyclone twister -🌫️ fog weather -🌬️ wind face gust air -🌀 cyclone weather swirl blue cloud vortex spiral whirlpool spin tornado hurricane typhoon -🌈 rainbow nature happy unicorn face photo sky spring -🌂 closed umbrella weather rain drizzle -☂️ umbrella weather spring -☔ umbrella with rain drops rainy weather spring -⛱️ umbrella on ground weather summer -⚡ high voltage thunder weather lightning bolt fast -❄️ snowflake winter season cold weather christmas xmas -☃️ snowman winter season cold weather christmas xmas frozen -⛄ snowman without snow winter season cold weather christmas xmas frozen without snow -☄️ comet space -🔥 fire hot cook flame -💧 droplet water drip faucet spring -🌊 water wave sea water wave nature tsunami disaster -🎃 jack o lantern halloween light pumpkin creepy fall -🎄 christmas tree festival vacation december xmas celebration -🎆 fireworks photo festival carnival congratulations -🎇 sparkler stars night shine -🧨 firecracker dynamite boom explode explosion explosive -✨ sparkles stars shine shiny cool awesome good magic -🎈 balloon party celebration birthday circus -🎉 party popper party congratulations birthday magic circus celebration tada -🎊 confetti ball festival party birthday circus -🎋 tanabata tree plant nature branch summer -🎍 pine decoration plant nature vegetable panda pine decoration -🎎 japanese dolls japanese toy kimono -🎏 carp streamer fish japanese koinobori carp banner -🎐 wind chime nature ding spring bell -🎑 moon viewing ceremony photo japan asia tsukimi -🧧 red envelope gift -🎀 ribbon decoration pink girl bowtie -🎁 wrapped gift present birthday christmas xmas -🎗️ reminder ribbon sports cause support awareness -🎟️ admission tickets sports concert entrance -🎫 ticket event concert pass -🎖️ military medal award winning army -🏆 trophy win award contest place ftw ceremony -🏅 sports medal award winning -🥇 1st place medal award winning first -🥈 2nd place medal award second -🥉 3rd place medal award third -⚽ soccer ball sports football -⚾ baseball sports balls -🥎 softball sports balls -🏀 basketball sports balls NBA -🏐 volleyball sports balls -🏈 american football sports balls NFL -🏉 rugby football sports team -🎾 tennis sports balls green -🥏 flying disc sports frisbee ultimate -🎳 bowling sports fun play -🏏 cricket game sports -🏑 field hockey sports -🏒 ice hockey sports -🥍 lacrosse sports ball stick -🏓 ping pong sports pingpong -🏸 badminton sports -🥊 boxing glove sports fighting -🥋 martial arts uniform judo karate taekwondo -🥅 goal net sports -⛳ flag in hole sports business flag hole summer -⛸️ ice skate sports -🎣 fishing pole food hobby summer -🤿 diving mask sport ocean -🎽 running shirt play pageant -🎿 skis sports winter cold snow -🛷 sled sleigh luge toboggan -🥌 curling stone sports -🎯 direct hit game play bar target bullseye -🪀 yo yo toy -🪁 kite wind fly -🎱 pool 8 ball pool hobby game luck magic -🔮 crystal ball disco party magic circus fortune teller -🧿 nazar amulet bead charm -🎮 video game play console PS4 controller -🕹️ joystick game play -🎰 slot machine bet gamble vegas fruit machine luck casino -🎲 game die dice random tabletop play luck -🧩 puzzle piece interlocking puzzle piece -🧸 teddy bear plush stuffed -♠️ spade suit poker cards suits magic -♥️ heart suit poker cards magic suits -♦️ diamond suit poker cards magic suits -♣️ club suit poker cards magic suits -♟️ chess pawn expendable -🃏 joker poker cards game play magic -🀄 mahjong red dragon game play chinese kanji -🎴 flower playing cards game sunset red -🎭 performing arts acting theater drama -🖼️ framed picture photography -🎨 artist palette design paint draw colors -🧵 thread needle sewing spool string -🧶 yarn ball crochet knit -👓 glasses fashion accessories eyesight nerdy dork geek -🕶️ sunglasses face cool accessories -🥽 goggles eyes protection safety -🥼 lab coat doctor experiment scientist chemist -🦺 safety vest protection -👔 necktie shirt suitup formal fashion cloth business -👕 t shirt fashion cloth casual shirt tee -👖 jeans fashion shopping -🧣 scarf neck winter clothes -🧤 gloves hands winter clothes -🧥 coat jacket -🧦 socks stockings clothes -👗 dress clothes fashion shopping -👘 kimono dress fashion women female japanese -🥻 sari dress -🩱 one piece swimsuit fashion -🩲 briefs clothing -🩳 shorts clothing -👙 bikini swimming female woman girl fashion beach summer -👚 woman s clothes fashion shopping bags female -👛 purse fashion accessories money sales shopping -👜 handbag fashion accessory accessories shopping -👝 clutch bag bag accessories shopping -🛍️ shopping bags mall buy purchase -🎒 backpack student education bag backpack -👞 man s shoe fashion male -👟 running shoe shoes sports sneakers -🥾 hiking boot backpacking camping hiking -🥿 flat shoe ballet slip-on slipper -👠 high heeled shoe fashion shoes female pumps stiletto -👡 woman s sandal shoes fashion flip flops -🩰 ballet shoes dance -👢 woman s boot shoes fashion -👑 crown king kod leader royalty lord -👒 woman s hat fashion accessories female lady spring -🎩 top hat magic gentleman classy circus -🎓 graduation cap school college degree university graduation cap hat legal learn education -🧢 billed cap cap baseball -⛑️ rescue worker s helmet construction build -📿 prayer beads dhikr religious -💄 lipstick female girl fashion woman -💍 ring wedding propose marriage valentines diamond fashion jewelry gem engagement -💎 gem stone blue ruby diamond jewelry -🔇 muted speaker sound volume silence quiet -🔈 speaker low volume sound volume silence broadcast -🔉 speaker medium volume volume speaker broadcast -🔊 speaker high volume volume noise noisy speaker broadcast -📢 loudspeaker volume sound -📣 megaphone sound speaker volume -📯 postal horn instrument music -🔔 bell sound notification christmas xmas chime -🔕 bell with slash sound volume mute quiet silent -🎼 musical score treble clef compose -🎵 musical note score tone sound -🎶 musical notes music score -🎙️ studio microphone sing recording artist talkshow -🎚️ level slider scale -🎛️ control knobs dial -🎤 microphone sound music PA sing talkshow -🎧 headphone music score gadgets -📻 radio communication music podcast program -🎷 saxophone music instrument jazz blues -🎸 guitar music instrument -🎹 musical keyboard piano instrument compose -🎺 trumpet music brass -🎻 violin music instrument orchestra symphony -🪕 banjo music instructment -🥁 drum music instrument drumsticks snare -📱 mobile phone technology apple gadgets dial -📲 mobile phone with arrow iphone incoming -☎️ telephone technology communication dial telephone -📞 telephone receiver technology communication dial -📟 pager bbcall oldschool 90s -📠 fax machine communication technology -🔋 battery power energy sustain -🔌 electric plug charger power -💻 laptop technology laptop screen display monitor -🖥️ desktop computer technology computing screen -🖨️ printer paper ink -⌨️ keyboard technology computer type input text -🖱️ computer mouse click -🖲️ trackball technology trackpad -💽 computer disk technology record data disk 90s -💾 floppy disk oldschool technology save 90s 80s -💿 optical disk technology dvd disk disc 90s -📀 dvd cd disk disc -🧮 abacus calculation -🎥 movie camera film record -🎞️ film frames movie -📽️ film projector video tape record movie -🎬 clapper board movie film record -📺 television technology program oldschool show television -📷 camera gadgets photography -📸 camera with flash photography gadgets -📹 video camera film record -📼 videocassette record video oldschool 90s 80s -🔍 magnifying glass tilted left search zoom find detective -🔎 magnifying glass tilted right search zoom find detective -🕯️ candle fire wax -💡 light bulb light electricity idea -🔦 flashlight dark camping sight night -🏮 red paper lantern light paper halloween spooky -🪔 diya lamp lighting -📔 notebook with decorative cover classroom notes record paper study -📕 closed book read library knowledge textbook learn -📖 open book book read library knowledge literature learn study -📗 green book read library knowledge study -📘 blue book read library knowledge learn study -📙 orange book read library knowledge textbook study -📚 books literature library study -📓 notebook stationery record notes paper study -📒 ledger notes paper -📃 page with curl documents office paper -📜 scroll documents ancient history paper -📄 page facing up documents office paper information -📰 newspaper press headline -🗞️ rolled up newspaper press headline -📑 bookmark tabs favorite save order tidy -🔖 bookmark favorite label save -🏷️ label sale tag -💰 money bag dollar payment coins sale -💴 yen banknote money sales japanese dollar currency -💵 dollar banknote money sales bill currency -💶 euro banknote money sales dollar currency -💷 pound banknote british sterling money sales bills uk england currency -💸 money with wings dollar bills payment sale -💳 credit card money sales dollar bill payment shopping -🧾 receipt accounting expenses -💹 chart increasing with yen green-square graph presentation stats -💱 currency exchange money sales dollar travel -💲 heavy dollar sign money sales payment currency buck -✉️ envelope letter postal inbox communication -📧 e mail communication inbox -📨 incoming envelope email inbox -📩 envelope with arrow email communication -📤 outbox tray inbox email -📥 inbox tray email documents -📦 package mail gift cardboard box moving -📫 closed mailbox with raised flag email inbox communication -📪 closed mailbox with lowered flag email communication inbox -📬 open mailbox with raised flag email inbox communication -📭 open mailbox with lowered flag email inbox -📮 postbox email letter envelope -🗳️ ballot box with ballot election vote -✏️ pencil stationery write paper writing school study -✒️ black nib pen stationery writing write -🖋️ fountain pen stationery writing write -🖊️ pen stationery writing write -🖌️ paintbrush drawing creativity art -🖍️ crayon drawing creativity -📝 memo write documents stationery pencil paper writing legal exam quiz test study compose -💼 briefcase business documents work law legal job career -📁 file folder documents business office -📂 open file folder documents load -🗂️ card index dividers organizing business stationery -📅 calendar calendar schedule -📆 tear off calendar schedule date planning -🗒️ spiral notepad memo stationery -🗓️ spiral calendar date schedule planning -📇 card index business stationery -📈 chart increasing graph presentation stats recovery business economics money sales good success -📉 chart decreasing graph presentation stats recession business economics money sales bad failure -📊 bar chart graph presentation stats -📋 clipboard stationery documents -📌 pushpin stationery mark here -📍 round pushpin stationery location map here -📎 paperclip documents stationery -🖇️ linked paperclips documents stationery -📏 straight ruler stationery calculate length math school drawing architect sketch -📐 triangular ruler stationery math architect sketch -✂️ scissors stationery cut -🗃️ card file box business stationery -🗄️ file cabinet filing organizing -🗑️ wastebasket bin trash rubbish garbage toss -🔒 locked security password padlock -🔓 unlocked privacy security -🔏 locked with pen security secret -🔐 locked with key security privacy -🔑 key lock door password -🗝️ old key lock door password -🔨 hammer tools build create -🪓 axe tool chop cut -⛏️ pick tools dig -⚒️ hammer and pick tools build create -🛠️ hammer and wrench tools build create -🗡️ dagger weapon -⚔️ crossed swords weapon -🔫 pistol violence weapon pistol revolver -🏹 bow and arrow sports -🛡️ shield protection security -🔧 wrench tools diy ikea fix maintainer -🔩 nut and bolt handy tools fix -⚙️ gear cog -🗜️ clamp tool -⚖️ balance scale law fairness weight -🦯 probing cane accessibility -🔗 link rings url -⛓️ chains lock arrest -🧰 toolbox tools diy fix maintainer mechanic -🧲 magnet attraction magnetic -⚗️ alembic distilling science experiment chemistry -🧪 test tube chemistry experiment lab science -🧫 petri dish bacteria biology culture lab -🧬 dna biologist genetics life -🔬 microscope laboratory experiment zoomin science study -🔭 telescope stars space zoom science astronomy -📡 satellite antenna communication future radio space -💉 syringe health hospital drugs blood medicine needle doctor nurse -🩸 drop of blood period hurt harm wound -💊 pill health medicine doctor pharmacy drug -🩹 adhesive bandage heal -🩺 stethoscope health -🚪 door house entry exit -🛏️ bed sleep rest -🛋️ couch and lamp read chill -🪑 chair sit furniture -🚽 toilet restroom wc washroom bathroom potty -🚿 shower clean water bathroom -🛁 bathtub clean shower bathroom -🪒 razor cut -🧴 lotion bottle moisturizer sunscreen -🧷 safety pin diaper -🧹 broom cleaning sweeping witch -🧺 basket laundry -🧻 roll of paper roll -🧼 soap bar bathing cleaning lather -🧽 sponge absorbing cleaning porous -🧯 fire extinguisher quench -🛒 shopping cart trolley -🚬 cigarette kills tobacco cigarette joint smoke -⚰️ coffin vampire dead die death rip graveyard cemetery casket funeral box -⚱️ funeral urn dead die death rip ashes -🗿 moai rock easter island moai -🏧 atm sign money sales cash blue-square payment bank -🚮 litter in bin sign blue-square sign human info -🚰 potable water blue-square liquid restroom cleaning faucet -♿ wheelchair symbol blue-square disabled accessibility -🚹 men s room toilet restroom wc blue-square gender male -🚺 women s room purple-square woman female toilet loo restroom gender -🚻 restroom blue-square toilet refresh wc gender -🚼 baby symbol orange-square child -🚾 water closet toilet restroom blue-square -🛂 passport control custom blue-square -🛃 customs passport border blue-square -🛄 baggage claim blue-square airport transport -🛅 left luggage blue-square travel -⚠️ warning exclamation wip alert error problem issue -🚸 children crossing school warning danger sign driving yellow-diamond -⛔ no entry limit security privacy bad denied stop circle -🚫 prohibited forbid stop limit denied disallow circle -🚳 no bicycles cyclist prohibited circle -🚭 no smoking cigarette blue-square smell smoke -🚯 no littering trash bin garbage circle -🚱 non potable water drink faucet tap circle -🚷 no pedestrians rules crossing walking circle -📵 no mobile phones iphone mute circle -🔞 no one under eighteen 18 drink pub night minor circle -☢️ radioactive nuclear danger -☣️ biohazard danger -⬆️ up arrow blue-square continue top direction -↗️ up right arrow blue-square point direction diagonal northeast -➡️ right arrow blue-square next -↘️ down right arrow blue-square direction diagonal southeast -⬇️ down arrow blue-square direction bottom -↙️ down left arrow blue-square direction diagonal southwest -⬅️ left arrow blue-square previous back -↖️ up left arrow blue-square point direction diagonal northwest -↕️ up down arrow blue-square direction way vertical -↔️ left right arrow shape direction horizontal sideways -↩️ right arrow curving left back return blue-square undo enter -↪️ left arrow curving right blue-square return rotate direction -⤴️ right arrow curving up blue-square direction top -⤵️ right arrow curving down blue-square direction bottom -🔃 clockwise vertical arrows sync cycle round repeat -🔄 counterclockwise arrows button blue-square sync cycle -🔙 back arrow arrow words return -🔚 end arrow words arrow -🔛 on arrow arrow words -🔜 soon arrow arrow words -🔝 top arrow words blue-square -🛐 place of worship religion church temple prayer -⚛️ atom symbol science physics chemistry -🕉️ om hinduism buddhism sikhism jainism -✡️ star of david judaism -☸️ wheel of dharma hinduism buddhism sikhism jainism -☯️ yin yang balance -✝️ latin cross christianity -☦️ orthodox cross suppedaneum religion -☪️ star and crescent islam -☮️ peace symbol hippie -🕎 menorah hanukkah candles jewish -🔯 dotted six pointed star purple-square religion jewish hexagram -♈ aries sign purple-square zodiac astrology -♉ taurus purple-square sign zodiac astrology -♊ gemini sign zodiac purple-square astrology -♋ cancer sign zodiac purple-square astrology -♌ leo sign purple-square zodiac astrology -♍ virgo sign zodiac purple-square astrology -♎ libra sign purple-square zodiac astrology -♏ scorpio sign zodiac purple-square astrology scorpio -♐ sagittarius sign zodiac purple-square astrology -♑ capricorn sign zodiac purple-square astrology -♒ aquarius sign purple-square zodiac astrology -♓ pisces purple-square sign zodiac astrology -⛎ ophiuchus sign purple-square constellation astrology -🔀 shuffle tracks button blue-square shuffle music random -🔁 repeat button loop record -🔂 repeat single button blue-square loop -▶️ play button blue-square right direction play -⏩ fast forward button blue-square play speed continue -⏭️ next track button forward next blue-square -⏯️ play or pause button blue-square play pause -◀️ reverse button blue-square left direction -⏪ fast reverse button play blue-square -⏮️ last track button backward -🔼 upwards button blue-square triangle direction point forward top -⏫ fast up button blue-square direction top -🔽 downwards button blue-square direction bottom -⏬ fast down button blue-square direction bottom -⏸️ pause button pause blue-square -⏹️ stop button blue-square -⏺️ record button blue-square -⏏️ eject button blue-square -🎦 cinema blue-square record film movie curtain stage theater -🔅 dim button sun afternoon warm summer -🔆 bright button sun light -📶 antenna bars blue-square reception phone internet connection wifi bluetooth bars -📳 vibration mode orange-square phone -📴 mobile phone off mute orange-square silence quiet -♀️ female sign woman women lady girl -♂️ male sign man boy men -⚕️ medical symbol health hospital -♾️ infinity forever -♻️ recycling symbol arrow environment garbage trash -⚜️ fleur de lis decorative scout -🔱 trident emblem weapon spear -📛 name badge fire forbid -🔰 japanese symbol for beginner badge shield -⭕ hollow red circle circle round -✅ check mark button green-square ok agree vote election answer tick -☑️ check box with check ok agree confirm black-square vote election yes tick -✔️ check mark ok nike answer yes tick -✖️ multiplication sign math calculation -❌ cross mark no delete remove cancel red -❎ cross mark button x green-square no deny -➕ plus sign math calculation addition more increase -➖ minus sign math calculation subtract less -➗ division sign divide math calculation -➰ curly loop scribble draw shape squiggle -➿ double curly loop tape cassette -〽️ part alternation mark graph presentation stats business economics bad -✳️ eight spoked asterisk star sparkle green-square -✴️ eight pointed star orange-square shape polygon -❇️ sparkle stars green-square awesome good fireworks -‼️ double exclamation mark exclamation surprise -⁉️ exclamation question mark wat punctuation surprise -❓ question mark doubt confused -❔ white question mark doubts gray huh confused -❕ white exclamation mark surprise punctuation gray wow warning -❗ exclamation mark heavy exclamation mark danger surprise punctuation wow warning -〰️ wavy dash draw line moustache mustache squiggle scribble -©️ copyright ip license circle law legal -®️ registered alphabet circle -™️ trade mark trademark brand law legal -#️⃣ keycap symbol blue-square twitter -*️⃣ keycap star keycap -0️⃣ keycap 0 0 numbers blue-square null -1️⃣ keycap 1 blue-square numbers 1 -2️⃣ keycap 2 numbers 2 prime blue-square -3️⃣ keycap 3 3 numbers prime blue-square -4️⃣ keycap 4 4 numbers blue-square -5️⃣ keycap 5 5 numbers blue-square prime -6️⃣ keycap 6 6 numbers blue-square -7️⃣ keycap 7 7 numbers blue-square prime -8️⃣ keycap 8 8 blue-square numbers -9️⃣ keycap 9 blue-square numbers 9 -🔟 keycap 10 numbers 10 blue-square -🔠 input latin uppercase alphabet words blue-square -🔡 input latin lowercase blue-square alphabet -🔢 input numbers numbers blue-square -🔣 input symbols blue-square music note ampersand percent glyphs characters -🔤 input latin letters blue-square alphabet -🅰️ a button red-square alphabet letter -🆎 ab button red-square alphabet -🅱️ b button red-square alphabet letter -🆑 cl button alphabet words red-square -🆒 cool button words blue-square -🆓 free button blue-square words -ℹ️ information blue-square alphabet letter -🆔 id button purple-square words -Ⓜ️ circled m alphabet blue-circle letter -🆕 new button blue-square words start -🆖 ng button blue-square words shape icon -🅾️ o button alphabet red-square letter -🆗 ok button good agree yes blue-square -🅿️ p button cars blue-square alphabet letter -🆘 sos button help red-square words emergency 911 -🆙 up button blue-square above high -🆚 vs button words orange-square -🈁 japanese here button blue-square here katakana japanese destination -🈂️ japanese service charge button japanese blue-square katakana -🈷️ japanese monthly amount button chinese month moon japanese orange-square kanji -🈶 japanese not free of charge button orange-square chinese have kanji -🈯 japanese reserved button chinese point green-square kanji -🉐 japanese bargain button chinese kanji obtain get circle -🈹 japanese discount button cut divide chinese kanji pink-square -🈚 japanese free of charge button nothing chinese kanji japanese orange-square -🈲 japanese prohibited button kanji japanese chinese forbidden limit restricted red-square -🉑 japanese acceptable button ok good chinese kanji agree yes orange-circle -🈸 japanese application button chinese japanese kanji orange-square -🈴 japanese passing grade button japanese chinese join kanji red-square -🈳 japanese vacancy button kanji japanese chinese empty sky blue-square -㊗️ japanese congratulations button chinese kanji japanese red-circle -㊙️ japanese secret button privacy chinese sshh kanji red-circle -🈺 japanese open for business button japanese opening hours orange-square -🈵 japanese no vacancy button full chinese japanese red-square kanji -🔴 red circle shape error danger -🟠 orange circle round -🟡 yellow circle round -🟢 green circle round -🔵 blue circle shape icon button -🟣 purple circle round -🟤 brown circle round -⚫ black circle shape button round -⚪ white circle shape round -🟥 red square -🟧 orange square -🟨 yellow square -🟩 green square -🟦 blue square -🟪 purple square -🟫 brown square -⬛ black large square shape icon button -⬜ white large square shape icon stone button -◼️ black medium square shape button icon -◻️ white medium square shape stone icon -◾ black medium small square icon shape button -◽ white medium small square shape stone icon button -▪️ black small square shape icon -▫️ white small square shape icon -🔶 large orange diamond shape jewel gem -🔷 large blue diamond shape jewel gem -🔸 small orange diamond shape jewel gem -🔹 small blue diamond shape jewel gem -🔺 red triangle pointed up shape direction up top -🔻 red triangle pointed down shape direction bottom -💠 diamond with a dot jewel blue gem crystal fancy -🔘 radio button input old music circle -🔳 white square button shape input -🔲 black square button shape input frame -🏁 chequered flag contest finishline race gokart -🚩 triangular flag mark milestone place -🎌 crossed flags japanese nation country border -🏴 black flag pirate -🏳️ white flag losing loser lost surrender give up fail -🏳️‍🌈 rainbow flag flag rainbow pride gay lgbt glbt queer homosexual lesbian bisexual transgender -🏴‍☠️ pirate flag skull crossbones flag banner -🇦🇨 flag ascension island -🇦🇩 flag andorra ad flag nation country banner andorra -🇦🇪 flag united arab emirates united arab emirates flag nation country banner united arab emirates -🇦🇫 flag afghanistan af flag nation country banner afghanistan -🇦🇬 flag antigua barbuda antigua barbuda flag nation country banner antigua barbuda -🇦🇮 flag anguilla ai flag nation country banner anguilla -🇦🇱 flag albania al flag nation country banner albania -🇦🇲 flag armenia am flag nation country banner armenia -🇦🇴 flag angola ao flag nation country banner angola -🇦🇶 flag antarctica aq flag nation country banner antarctica -🇦🇷 flag argentina ar flag nation country banner argentina -🇦🇸 flag american samoa american ws flag nation country banner american samoa -🇦🇹 flag austria at flag nation country banner austria -🇦🇺 flag australia au flag nation country banner australia -🇦🇼 flag aruba aw flag nation country banner aruba -🇦🇽 flag aland islands Åland islands flag nation country banner aland islands -🇦🇿 flag azerbaijan az flag nation country banner azerbaijan -🇧🇦 flag bosnia herzegovina bosnia herzegovina flag nation country banner bosnia herzegovina -🇧🇧 flag barbados bb flag nation country banner barbados -🇧🇩 flag bangladesh bd flag nation country banner bangladesh -🇧🇪 flag belgium be flag nation country banner belgium -🇧🇫 flag burkina faso burkina faso flag nation country banner burkina faso -🇧🇬 flag bulgaria bg flag nation country banner bulgaria -🇧🇭 flag bahrain bh flag nation country banner bahrain -🇧🇮 flag burundi bi flag nation country banner burundi -🇧🇯 flag benin bj flag nation country banner benin -🇧🇱 flag st barthelemy saint barthélemy flag nation country banner st barthelemy -🇧🇲 flag bermuda bm flag nation country banner bermuda -🇧🇳 flag brunei bn darussalam flag nation country banner brunei -🇧🇴 flag bolivia bo flag nation country banner bolivia -🇧🇶 flag caribbean netherlands bonaire flag nation country banner caribbean netherlands -🇧🇷 flag brazil br flag nation country banner brazil -🇧🇸 flag bahamas bs flag nation country banner bahamas -🇧🇹 flag bhutan bt flag nation country banner bhutan -🇧🇻 flag bouvet island norway -🇧🇼 flag botswana bw flag nation country banner botswana -🇧🇾 flag belarus by flag nation country banner belarus -🇧🇿 flag belize bz flag nation country banner belize -🇨🇦 flag canada ca flag nation country banner canada -🇨🇨 flag cocos islands cocos keeling islands flag nation country banner cocos islands -🇨🇩 flag congo kinshasa congo democratic republic flag nation country banner congo kinshasa -🇨🇫 flag central african republic central african republic flag nation country banner central african republic -🇨🇬 flag congo brazzaville congo flag nation country banner congo brazzaville -🇨🇭 flag switzerland ch flag nation country banner switzerland -🇨🇮 flag cote d ivoire ivory coast flag nation country banner cote d ivoire -🇨🇰 flag cook islands cook islands flag nation country banner cook islands -🇨🇱 flag chile flag nation country banner chile -🇨🇲 flag cameroon cm flag nation country banner cameroon -🇨🇳 flag china china chinese prc flag country nation banner china -🇨🇴 flag colombia co flag nation country banner colombia -🇨🇵 flag clipperton island -🇨🇷 flag costa rica costa rica flag nation country banner costa rica -🇨🇺 flag cuba cu flag nation country banner cuba -🇨🇻 flag cape verde cabo verde flag nation country banner cape verde -🇨🇼 flag curacao curaçao flag nation country banner curacao -🇨🇽 flag christmas island christmas island flag nation country banner christmas island -🇨🇾 flag cyprus cy flag nation country banner cyprus -🇨🇿 flag czechia cz flag nation country banner czechia -🇩🇪 flag germany german nation flag country banner germany -🇩🇬 flag diego garcia -🇩🇯 flag djibouti dj flag nation country banner djibouti -🇩🇰 flag denmark dk flag nation country banner denmark -🇩🇲 flag dominica dm flag nation country banner dominica -🇩🇴 flag dominican republic dominican republic flag nation country banner dominican republic -🇩🇿 flag algeria dz flag nation country banner algeria -🇪🇦 flag ceuta melilla -🇪🇨 flag ecuador ec flag nation country banner ecuador -🇪🇪 flag estonia ee flag nation country banner estonia -🇪🇬 flag egypt eg flag nation country banner egypt -🇪🇭 flag western sahara western sahara flag nation country banner western sahara -🇪🇷 flag eritrea er flag nation country banner eritrea -🇪🇸 flag spain spain flag nation country banner spain -🇪🇹 flag ethiopia et flag nation country banner ethiopia -🇪🇺 flag european union european union flag banner -🇫🇮 flag finland fi flag nation country banner finland -🇫🇯 flag fiji fj flag nation country banner fiji -🇫🇰 flag falkland islands falkland islands malvinas flag nation country banner falkland islands -🇫🇲 flag micronesia micronesia federated states flag nation country banner micronesia -🇫🇴 flag faroe islands faroe islands flag nation country banner faroe islands -🇫🇷 flag france banner flag nation france french country france -🇬🇦 flag gabon ga flag nation country banner gabon -🇬🇧 flag united kingdom united kingdom great britain northern ireland flag nation country banner british UK english england union jack united kingdom -🇬🇩 flag grenada gd flag nation country banner grenada -🇬🇪 flag georgia ge flag nation country banner georgia -🇬🇫 flag french guiana french guiana flag nation country banner french guiana -🇬🇬 flag guernsey gg flag nation country banner guernsey -🇬🇭 flag ghana gh flag nation country banner ghana -🇬🇮 flag gibraltar gi flag nation country banner gibraltar -🇬🇱 flag greenland gl flag nation country banner greenland -🇬🇲 flag gambia gm flag nation country banner gambia -🇬🇳 flag guinea gn flag nation country banner guinea -🇬🇵 flag guadeloupe gp flag nation country banner guadeloupe -🇬🇶 flag equatorial guinea equatorial gn flag nation country banner equatorial guinea -🇬🇷 flag greece gr flag nation country banner greece -🇬🇸 flag south georgia south sandwich islands south georgia sandwich islands flag nation country banner south georgia south sandwich islands -🇬🇹 flag guatemala gt flag nation country banner guatemala -🇬🇺 flag guam gu flag nation country banner guam -🇬🇼 flag guinea bissau gw bissau flag nation country banner guinea bissau -🇬🇾 flag guyana gy flag nation country banner guyana -🇭🇰 flag hong kong sar china hong kong flag nation country banner hong kong sar china -🇭🇲 flag heard mcdonald islands -🇭🇳 flag honduras hn flag nation country banner honduras -🇭🇷 flag croatia hr flag nation country banner croatia -🇭🇹 flag haiti ht flag nation country banner haiti -🇭🇺 flag hungary hu flag nation country banner hungary -🇮🇨 flag canary islands canary islands flag nation country banner canary islands -🇮🇩 flag indonesia flag nation country banner indonesia -🇮🇪 flag ireland ie flag nation country banner ireland -🇮🇱 flag israel il flag nation country banner israel -🇮🇲 flag isle of man isle man flag nation country banner isle of man -🇮🇳 flag india in flag nation country banner india -🇮🇴 flag british indian ocean territory british indian ocean territory flag nation country banner british indian ocean territory -🇮🇶 flag iraq iq flag nation country banner iraq -🇮🇷 flag iran iran islamic republic flag nation country banner iran -🇮🇸 flag iceland is flag nation country banner iceland -🇮🇹 flag italy italy flag nation country banner italy -🇯🇪 flag jersey je flag nation country banner jersey -🇯🇲 flag jamaica jm flag nation country banner jamaica -🇯🇴 flag jordan jo flag nation country banner jordan -🇯🇵 flag japan japanese nation flag country banner japan -🇰🇪 flag kenya ke flag nation country banner kenya -🇰🇬 flag kyrgyzstan kg flag nation country banner kyrgyzstan -🇰🇭 flag cambodia kh flag nation country banner cambodia -🇰🇮 flag kiribati ki flag nation country banner kiribati -🇰🇲 flag comoros km flag nation country banner comoros -🇰🇳 flag st kitts nevis saint kitts nevis flag nation country banner st kitts nevis -🇰🇵 flag north korea north korea nation flag country banner north korea -🇰🇷 flag south korea south korea nation flag country banner south korea -🇰🇼 flag kuwait kw flag nation country banner kuwait -🇰🇾 flag cayman islands cayman islands flag nation country banner cayman islands -🇰🇿 flag kazakhstan kz flag nation country banner kazakhstan -🇱🇦 flag laos lao democratic republic flag nation country banner laos -🇱🇧 flag lebanon lb flag nation country banner lebanon -🇱🇨 flag st lucia saint lucia flag nation country banner st lucia -🇱🇮 flag liechtenstein li flag nation country banner liechtenstein -🇱🇰 flag sri lanka sri lanka flag nation country banner sri lanka -🇱🇷 flag liberia lr flag nation country banner liberia -🇱🇸 flag lesotho ls flag nation country banner lesotho -🇱🇹 flag lithuania lt flag nation country banner lithuania -🇱🇺 flag luxembourg lu flag nation country banner luxembourg -🇱🇻 flag latvia lv flag nation country banner latvia -🇱🇾 flag libya ly flag nation country banner libya -🇲🇦 flag morocco ma flag nation country banner morocco -🇲🇨 flag monaco mc flag nation country banner monaco -🇲🇩 flag moldova moldova republic flag nation country banner moldova -🇲🇪 flag montenegro me flag nation country banner montenegro -🇲🇫 flag st martin -🇲🇬 flag madagascar mg flag nation country banner madagascar -🇲🇭 flag marshall islands marshall islands flag nation country banner marshall islands -🇲🇰 flag north macedonia macedonia flag nation country banner north macedonia -🇲🇱 flag mali ml flag nation country banner mali -🇲🇲 flag myanmar mm flag nation country banner myanmar -🇲🇳 flag mongolia mn flag nation country banner mongolia -🇲🇴 flag macao sar china macao flag nation country banner macao sar china -🇲🇵 flag northern mariana islands northern mariana islands flag nation country banner northern mariana islands -🇲🇶 flag martinique mq flag nation country banner martinique -🇲🇷 flag mauritania mr flag nation country banner mauritania -🇲🇸 flag montserrat ms flag nation country banner montserrat -🇲🇹 flag malta mt flag nation country banner malta -🇲🇺 flag mauritius mu flag nation country banner mauritius -🇲🇻 flag maldives mv flag nation country banner maldives -🇲🇼 flag malawi mw flag nation country banner malawi -🇲🇽 flag mexico mx flag nation country banner mexico -🇲🇾 flag malaysia my flag nation country banner malaysia -🇲🇿 flag mozambique mz flag nation country banner mozambique -🇳🇦 flag namibia na flag nation country banner namibia -🇳🇨 flag new caledonia new caledonia flag nation country banner new caledonia -🇳🇪 flag niger ne flag nation country banner niger -🇳🇫 flag norfolk island norfolk island flag nation country banner norfolk island -🇳🇬 flag nigeria flag nation country banner nigeria -🇳🇮 flag nicaragua ni flag nation country banner nicaragua -🇳🇱 flag netherlands nl flag nation country banner netherlands -🇳🇴 flag norway no flag nation country banner norway -🇳🇵 flag nepal np flag nation country banner nepal -🇳🇷 flag nauru nr flag nation country banner nauru -🇳🇺 flag niue nu flag nation country banner niue -🇳🇿 flag new zealand new zealand flag nation country banner new zealand -🇴🇲 flag oman om symbol flag nation country banner oman -🇵🇦 flag panama pa flag nation country banner panama -🇵🇪 flag peru pe flag nation country banner peru -🇵🇫 flag french polynesia french polynesia flag nation country banner french polynesia -🇵🇬 flag papua new guinea papua new guinea flag nation country banner papua new guinea -🇵🇭 flag philippines ph flag nation country banner philippines -🇵🇰 flag pakistan pk flag nation country banner pakistan -🇵🇱 flag poland pl flag nation country banner poland -🇵🇲 flag st pierre miquelon saint pierre miquelon flag nation country banner st pierre miquelon -🇵🇳 flag pitcairn islands pitcairn flag nation country banner pitcairn islands -🇵🇷 flag puerto rico puerto rico flag nation country banner puerto rico -🇵🇸 flag palestinian territories palestine palestinian territories flag nation country banner palestinian territories -🇵🇹 flag portugal pt flag nation country banner portugal -🇵🇼 flag palau pw flag nation country banner palau -🇵🇾 flag paraguay py flag nation country banner paraguay -🇶🇦 flag qatar qa flag nation country banner qatar -🇷🇪 flag reunion réunion flag nation country banner reunion -🇷🇴 flag romania ro flag nation country banner romania -🇷🇸 flag serbia rs flag nation country banner serbia -🇷🇺 flag russia russian federation flag nation country banner russia -🇷🇼 flag rwanda rw flag nation country banner rwanda -🇸🇦 flag saudi arabia flag nation country banner saudi arabia -🇸🇧 flag solomon islands solomon islands flag nation country banner solomon islands -🇸🇨 flag seychelles sc flag nation country banner seychelles -🇸🇩 flag sudan sd flag nation country banner sudan -🇸🇪 flag sweden se flag nation country banner sweden -🇸🇬 flag singapore sg flag nation country banner singapore -🇸🇭 flag st helena saint helena ascension tristan cunha flag nation country banner st helena -🇸🇮 flag slovenia si flag nation country banner slovenia -🇸🇯 flag svalbard jan mayen -🇸🇰 flag slovakia sk flag nation country banner slovakia -🇸🇱 flag sierra leone sierra leone flag nation country banner sierra leone -🇸🇲 flag san marino san marino flag nation country banner san marino -🇸🇳 flag senegal sn flag nation country banner senegal -🇸🇴 flag somalia so flag nation country banner somalia -🇸🇷 flag suriname sr flag nation country banner suriname -🇸🇸 flag south sudan south sd flag nation country banner south sudan -🇸🇹 flag sao tome principe sao tome principe flag nation country banner sao tome principe -🇸🇻 flag el salvador el salvador flag nation country banner el salvador -🇸🇽 flag sint maarten sint maarten dutch flag nation country banner sint maarten -🇸🇾 flag syria syrian arab republic flag nation country banner syria -🇸🇿 flag eswatini sz flag nation country banner eswatini -🇹🇦 flag tristan da cunha -🇹🇨 flag turks caicos islands turks caicos islands flag nation country banner turks caicos islands -🇹🇩 flag chad td flag nation country banner chad -🇹🇫 flag french southern territories french southern territories flag nation country banner french southern territories -🇹🇬 flag togo tg flag nation country banner togo -🇹🇭 flag thailand th flag nation country banner thailand -🇹🇯 flag tajikistan tj flag nation country banner tajikistan -🇹🇰 flag tokelau tk flag nation country banner tokelau -🇹🇱 flag timor leste timor leste flag nation country banner timor leste -🇹🇲 flag turkmenistan flag nation country banner turkmenistan -🇹🇳 flag tunisia tn flag nation country banner tunisia -🇹🇴 flag tonga to flag nation country banner tonga -🇹🇷 flag turkey turkey flag nation country banner turkey -🇹🇹 flag trinidad tobago trinidad tobago flag nation country banner trinidad tobago -🇹🇻 flag tuvalu flag nation country banner tuvalu -🇹🇼 flag taiwan tw flag nation country banner taiwan -🇹🇿 flag tanzania tanzania united republic flag nation country banner tanzania -🇺🇦 flag ukraine ua flag nation country banner ukraine -🇺🇬 flag uganda ug flag nation country banner uganda -🇺🇲 flag u s outlying islands -🇺🇳 flag united nations un flag banner -🇺🇸 flag united states united states america flag nation country banner united states -🇺🇾 flag uruguay uy flag nation country banner uruguay -🇺🇿 flag uzbekistan uz flag nation country banner uzbekistan -🇻🇦 flag vatican city vatican city flag nation country banner vatican city -🇻🇨 flag st vincent grenadines saint vincent grenadines flag nation country banner st vincent grenadines -🇻🇪 flag venezuela ve bolivarian republic flag nation country banner venezuela -🇻🇬 flag british virgin islands british virgin islands bvi flag nation country banner british virgin islands -🇻🇮 flag u s virgin islands virgin islands us flag nation country banner u s virgin islands -🇻🇳 flag vietnam viet nam flag nation country banner vietnam -🇻🇺 flag vanuatu vu flag nation country banner vanuatu -🇼🇫 flag wallis futuna wallis futuna flag nation country banner wallis futuna -🇼🇸 flag samoa ws flag nation country banner samoa -🇽🇰 flag kosovo xk flag nation country banner kosovo -🇾🇪 flag yemen ye flag nation country banner yemen -🇾🇹 flag mayotte yt flag nation country banner mayotte -🇿🇦 flag south africa south africa flag nation country banner south africa -🇿🇲 flag zambia zm flag nation country banner zambia -🇿🇼 flag zimbabwe zw flag nation country banner zimbabwe -🏴󠁧󠁢󠁥󠁮󠁧󠁿 flag england flag english -🏴󠁧󠁢󠁳󠁣󠁴󠁿 flag scotland flag scottish -🏴󠁧󠁢󠁷󠁬󠁳󠁿 flag wales flag welsh -🥲 smiling face with tear sad cry pretend -🥸 disguised face pretent brows glasses moustache -🤌 pinched fingers size tiny small -🫀 anatomical heart health heartbeat -🫁 lungs breathe -🥷 ninja ninjutsu skills japanese -🤵‍♂️ man in tuxedo formal fashion -🤵‍♀️ woman in tuxedo formal fashion -👰‍♂️ man with veil wedding marriage -👰‍♀️ woman with veil wedding marriage -👩‍🍼 woman feeding baby birth food -👨‍🍼 man feeding baby birth food -🧑‍🍼 person feeding baby birth food -🧑‍🎄 mx claus christmas -🫂 people hugging care -🐈‍⬛ black cat superstition luck -🦬 bison ox -🦣 mammoth elephant tusks -🦫 beaver animal rodent -🐻‍❄️ polar bear animal arctic -🦤 dodo animal bird -🪶 feather bird fly -🦭 seal animal creature sea -🪲 beetle insect -🪳 cockroach insect pests -🪰 fly insect -🪱 worm animal -🪴 potted plant greenery house -🫐 blueberries fruit -🫒 olive fruit -🫑 bell pepper fruit plant -🫓 flatbread flour food -🫔 tamale food masa -🫕 fondue cheese pot food -🫖 teapot drink hot -🧋 bubble tea taiwan boba milk tea straw -🪨 rock stone -🪵 wood nature timber trunk -🛖 hut house structure -🛻 pickup truck car transportation -🛼 roller skate footwear sports -🪄 magic wand supernature power -🪅 pinata mexico candy celebration -🪆 nesting dolls matryoshka toy -🪡 sewing needle stitches -🪢 knot rope scout -🩴 thong sandal footwear summer -🪖 military helmet army protection -🪗 accordion music -🪘 long drum music -🪙 coin money currency -🪃 boomerang weapon -🪚 carpentry saw cut chop -🪛 screwdriver tools -🪝 hook tools -🪜 ladder tools -🛗 elevator lift -🪞 mirror reflection -🪟 window scenery -🪠 plunger toilet -🪤 mouse trap cheese -🪣 bucket water container -🪥 toothbrush hygiene dental -🪦 headstone death rip grave -🪧 placard announcement -⚧️ transgender symbol lgbtq -🏳️‍⚧️ transgender flag lgbtq -😶‍🌫️ face in clouds shower steam dream -😮‍💨 face exhaling relieve relief tired sigh -😵‍💫 face with spiral eyes sick ill confused nauseous nausea -❤️‍🔥 heart on fire passionate enthusiastic -❤️‍🩹 mending heart broken heart bandage wounded -🧔‍♂️ man beard facial hair -🧔‍♀️ woman beard facial hair -🫠 melting face hot heat -🫢 face with open eyes and hand over mouth silence secret shock surprise -🫣 face with peeking eye scared frightening embarrassing -🫡 saluting face respect salute -🫥 dotted line face invisible lonely isolation depression -🫤 face with diagonal mouth skeptic confuse frustrated indifferent -🥹 face holding back tears touched gratitude -🫱 rightwards hand palm offer -🫲 leftwards hand palm offer -🫳 palm down hand palm drop -🫴 palm up hand lift offer demand -🫰 hand with index finger and thumb crossed heart love money expensive -🫵 index pointing at the viewer you recruit -🫶 heart hands love appreciation support -🫦 biting lip flirt sexy pain worry -🫅 person with crown royalty power -🫃 pregnant man baby belly -🫄 pregnant person baby belly -🧌 troll mystical monster -🪸 coral ocean sea reef -🪷 lotus flower calm meditation -🪹 empty nest bird -🪺 nest with eggs bird -🫘 beans food -🫗 pouring liquid cup water -🫙 jar container sauce -🛝 playground slide fun park -🛞 wheel car transport -🛟 ring buoy life saver life preserver -🪬 hamsa religion protection -🪩 mirror ball disco dance party -🪫 low battery drained dead -🩼 crutch accessibility assist -🩻 x-ray skeleton medicine -🫧 bubbles soap fun carbonation sparkling -🪪 identification card document -🟰 heavy equals sign math diff --git a/new-config/.config/rofi/scripts/rofi_power b/new-config/.config/rofi/scripts/rofi_power deleted file mode 100755 index 3f5658903..000000000 --- a/new-config/.config/rofi/scripts/rofi_power +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple power menu rofi script -# - Dependencies: rofi, power-profiles-daemon, swaylock -# - -## MENU PROMPT ## -menu="rofi -dmenu -i -p" - -## CURRENT WALLPAPER FOR LOCKSCREEN ## -currwall=$(tail --l 1 "$HOME/.wbg" | awk '{print $3}') - -## OPTIONS ## -option1=" Logout" -option2=" Reboot" -option3=" Power off" -option4="󰒲 Suspend" -option5=" Lock" -option6=" Change power profile" -option7=" Cancel" -options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6\n$option7" - -## POWER PROFILE OPTIONS ## -pwr1="󰓅 Performance" -pwr2="󰾅 Balanced" -pwr3="󰾆 Power Saver" -pwr4=" Cancel" -pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4" - -## MAIN ACTION COMMAND ## -action=$(echo -e "$options" | $menu "  Power Options ") -case "$action" in - $option1) - pkill Hyprland;; - $option2) - systemctl reboot || loginctl reboot;; - $option3) - systemctl poweroff || loginctl poweroff;; - $option4) - swaylock -i "$currwall" & - sleep 0.1 - systemctl suspend;; - $option5) - swaylock -i "$currwall";; - $option6) - currentpwr=$(powerprofilesctl get) - if [ "$currentpwr" = "performance" ]; then - currentpwr="$pwr1" - elif [ "$currentpwr" = "balanced" ]; then - currentpwr="$pwr2" - elif [ "$currentpwr" = "power-saver" ]; then - currentpwr="$pwr3" - fi - pwraction=$(echo -e "$pwrs" | $menu "  Power Profile Menu - Currently set to: ${currentpwr} ") - case "$pwraction" in - $pwr1*) - powerprofilesctl set performance && notify-send "Power profile switched to performance";; - $pwr2*) - powerprofilesctl set balanced && notify-send "Power profile switched to balanced";; - $pwr3*) - powerprofilesctl set power-saver && notify-send "Power profile switched to power saver";; - $pwr4*) - exit 0 - esac;; - $option7) - exit 0 -esac diff --git a/new-config/.config/rofi/scripts/rofi_scrot b/new-config/.config/rofi/scripts/rofi_scrot deleted file mode 100755 index f57c257be..000000000 --- a/new-config/.config/rofi/scripts/rofi_scrot +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple screenshot menu rofi script -# - Dependencies: rofi, grim, slurp, wf-recorder -# - -# screenshot directory -scrdir="$HOME/Pictures/Screenshots" -mkdir -p "$scrdir" -cd "$scrdir" || exit 1 -filename=$(date "+%d-%m-%Y_%H:%M:%S") - -# options array -option1=" Capture the screen" -option2=" Capture region" -option3="󰕧 Record the screen" -option4="󰕩 Record region" -option5="󰕧 Record the screen and audio" -option6="Exit" -options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6" - -# countdown function -countdown() { - notify-send "Screenshot" "Executing in 3 seconds" -t 1000 - sleep 1 - notify-send "Screenshot" "Executing in 2 seconds" -t 1000 - sleep 1 - notify-send "Screenshot" "Executing in 1 seconds" -t 1000 - sleep 2 -} - -# show the help output with --help or -h arguments -if [[ $1 == '--help' ]] || [[ $1 = '-h' ]] - then - echo ### rofi-screenshot - echo USAGE: rofi-screenshot [OPTION] - echo \(no option\) - echo " show the screenshot menu" - echo -s, --stop - echo " stop recording" - echo -h, --help - echo " this screen" - exit 1 -fi - -# stop recording with -s or --stop arguments -if [[ $1 = '--stop' ]] || [[ $1 = '-s' ]] - then - killall -s SIGINT wf-recorder - exit 1 -fi - -# run the selected command -choice=$(echo -e "$options" | rofi -dmenu -p " 󰄀 Screenshot " ) -case $choice in - $option1) - countdown - grim "$filename.jpg" - notify-send "Screenshot" "Screenshot saved to $scrdir" - ;; - $option2) - notify-send "Screenshot" "Select a region to capture" - grim -g "$(slurp)" "$filename.jpg" - notify-send "Screenshot" "Region saved to $scrdir" - ;; - $option3) - countdown - wf-recorder --codec=h264_vaapi -d /dev/dri/renderD128 -f "$filename.mp4" - notify-send "Screenshot" "Recording saved to $scrdir" - ;; - $option4) - notify-send "Screenshot" "Select a region to record" - wf-recorder --codec=h264_vaapi -d /dev/dri/renderD128 -g "$(slurp)" -f "$filename.mp4" - notify-send "Screenshot" "Recording saved to $scrdir" - ;; - $option5) - devices=$(pactl list sources | grep "Name" | awk '{print $2}') - chosendevice=$(echo -e "$devices" | rofi -dmenu -p " Select audio input ") - if [ "$chosendevice" ]; then - device="$chosendevice" - countdown - wf-recorder --audio="$device" --codec=h264_vaapi -d /dev/dri/renderD128 -f "$filename.mp4" - else - notify-send "Please select an audio input device" - exit 1 - fi - notify-send "Screenshot" "Recording saved to $scrdir" - ;; - $option6) - exit 0 - ;; -esac diff --git a/new-config/.config/rofi/scripts/rofi_wall b/new-config/.config/rofi/scripts/rofi_wall deleted file mode 100755 index 4bd202afa..000000000 --- a/new-config/.config/rofi/scripts/rofi_wall +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple wallpaper changer script -# - Dependencies: rofi, fd, swaybg - -## MENU PROMPT ## -menu="rofi -dmenu -i -p" - -## WALLPAPER DIRECTORY ## -walldir="$HOME/Pictures/Wallpapers" # wallpapers folder, change it to yours - -## SELECT PICTURE ## -cd "$walldir" || exit 1 -wallpaper=$(fd -p "$walldir" | $menu " 󰋩 Wallpaper Selector ") -if [ "$wallpaper" ]; then - chosenwall=$wallpaper -else - exit 0 -fi - -swww img "$chosenwall" -echo -e "#!/bin/sh\nswww img $walldir/$chosenwall" > "$HOME/.wbg" -exit 0 diff --git a/new-config/.config/rofi/scripts/rofi_wifi b/new-config/.config/rofi/scripts/rofi_wifi deleted file mode 100755 index 6c5390af9..000000000 --- a/new-config/.config/rofi/scripts/rofi_wifi +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple wifi rofi script -# - Dependencies: rofi, NetworkManager, io.elementary.capnet-assist - -## MENU PROMPT ## -menu="rofi -dmenu -i -p" - -## MAIN OPTIONS ## -option1=" Turn on WiFi" -option2=" Turn off WiFi" -option3="󱛅 Disconnect WiFi" -option4="󱛃 Connect WiFi" -option5="󱛆 Setup captive portal" -option6=" Exit" -options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6" - -## GRAB WIFI INTERFACE ## -wlan=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f1 | head -1) - -## TURN OFF WIFI FUNCTION ## -turnoff() { - nmcli radio wifi off - notify-send "WiFi has been turned off" -} - -## TURN ON WIFI FUNCTION ## -turnon() { - nmcli radio wifi on - notify-send "WiFi has been turned on" -} - -## DISCONNECT WIFI FUNCTION ## -disconnect() { - nmcli device disconnect "$wlan" - sleep 1 - constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1) - if [ "$constate" = "disconnected" ]; then - notify-send "WiFi has been disconnected" - fi -} - -## CONNECT FUNCTION ## -connect() { - notify-send "Scannig networks, please wait" - sleep 1 - bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $menu " Select a Wifi Network  " | cut -d' ' -f1) -} - -## SELECT PASSWORD FUNCTION ## -password() { - pass=$(echo " " | $menu " Enter Password  " -password) -} - -## MAIN CONNECTION COMMAND ## -action() { - nmcli device wifi connect "$bssid" password "$pass" || nmcli device wifi connect "$bssid" -} - -## CHECKING IF WIFI IS WORKING -check() { - notify-send "Checking if connection was successful" - sleep 1 - currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1) - if ping -q -c 2 -W 2 google.com >/dev/null; then - notify-send "You are now connected to $currentwfi and internet is working properly" - else - notify-send "Your internet is not working :(" - fi -} - -## MAIN ACTION COMMANDS ## -cases=$(echo -e "$options" | $menu "  Wifi Settings " ) -case "$cases" in - $option1*) - turnon;; - $option2*) - turnoff;; - $option3*) - disconnect;; - $option4*) - connect; - password; - action; - check;; - $option5*) - io.elementary.capnet-assist;; - $option6*) - exit 0 -esac diff --git a/new-config/.config/rofi/themes/gruvbox-dark.rasi b/new-config/.config/rofi/themes/gruvbox-dark.rasi deleted file mode 100644 index 15ffb4d0b..000000000 --- a/new-config/.config/rofi/themes/gruvbox-dark.rasi +++ /dev/null @@ -1,16 +0,0 @@ -* { - bg-col: #1d2021; - bg-col-light: #282828; - border-col: #504945; - selected-col: #3c3836; - blue: #458588; - fg-col: #ebdbb2; - fg-col2: #ebdbb2; - grey: #928374; - width: 600; - selected: #ebdbb2; - red: #fb4934; - green: #98971a; - empty: #3c3836; - inactive: #928374; -} diff --git a/new-config/.config/starship.toml b/new-config/.config/starship.toml deleted file mode 100644 index da6c4f2a8..000000000 --- a/new-config/.config/starship.toml +++ /dev/null @@ -1,33 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom starship prompt config -## - -add_newline = false - -[line_break] -disabled = true - -[character] -error_symbol = "[](bold red) " -success_symbol = "[](bold green)" - -[directory] -truncation_length = 5 -home_symbol = " " -format = "[$path](bold italic yellow) " - -[hostname] -ssh_only = false -disabled = false -style = "italic #87A752" - -[package] -disabled = true - -[username] -show_always = true -style_user = "bold red" -format = "[$user]($style)[ in ](white)" diff --git a/new-config/.config/vifm/vifm-help.txt b/new-config/.config/vifm/vifm-help.txt deleted file mode 100644 index df216c383..000000000 --- a/new-config/.config/vifm/vifm-help.txt +++ /dev/null @@ -1,6568 +0,0 @@ -VIFM(1) General Commands Manual VIFM(1) - -NAME - vifm - vi file manager - -SYNOPSIS - vifm [OPTION]... - vifm [OPTION]... path - vifm [OPTION]... path path - -DESCRIPTION - Vifm is an ncurses based file manager with vi like keybindings. If you - use vi, vifm gives you complete keyboard control over your files - without having to learn a new set of commands. - -OPTIONS - vifm starts in the current directory unless it is given a different - directory on the command line or 'vifminfo' option includes "savedirs" - (in which case last visited directories are used as defaults). - - - Read list of files from standard input stream and compose custom - view out of them (see "Custom views" section). Current working - directory is used as a base for relative paths. - - Starts Vifm in the specified path. - - - Starts Vifm in the specified paths. - - Specifying two directories triggers split view even when vifm was in - single-view mode on finishing previous run. To suppress this behaviour - :only command can be put in the vifmrc file. - - When only one path argument is found on command-line, the left/top pane - is automatically set as the current view. - - Paths to files are also allowed in case you want vifm to start with - some archive opened. - - --select - Open parent directory of the given path and select specified - file in it. - - -f Makes vifm instead of opening files write selection to - $VIFM/vimfiles and quit. - - --choose-files |- - Sets output file to write selection into on exit instead of - opening files. "-" means standard output. Use empty value to - disable it. - - --choose-dir |- - Sets output file to write last visited directory into on exit. - "-" means standard output. Use empty value to disable it. - - --delimiter - Sets separator for list of file paths written out by vifm. - Empty value means null character. Default is new line - character. - - --on-choose - Sets command to be executed on selected files instead of opening - them. The command may use any of macros described in "Command - macros" section below. The command is executed once for whole - selection. - - --logging[=] - Log some operational details $VIFM/log. If the optional startup - log path is specified and permissions allow to open it for - writing, then logging of early initialization (before value of - $VIFM is determined) is put there. - - --server-list - List available server names and exit. - - --server-name - Name of target or this instance (sequential numbers are appended - on name conflict). - - --remote - Sends the rest of the command line to another instance of vifm, - --server-name is treated just like any other argument and should - precede --remote on the command line. When there is no server, - quits silently. There is no limit on how many arguments can be - processed. One can combine --remote with -c or - + to execute commands in already running instance of - vifm. See also "Client-Server" section below. - - --remote-expr - passes expression to vifm server and prints result. See also - "Client-Server" section below. - - -c or + - Run command-line mode on startup. Commands in such - arguments are executed in the order they appear in command line. - Commands with spaces or special symbols must be enclosed in - double or single quotes or all special symbols should be escaped - (the exact syntax strongly depends on shell). "+" argument is - equivalent to "$" and thus picks last item of of the view. - - --help, -h - Show a brief command summary and exit vifm. - - --version, -v - Show version information and quit. - - --no-configs - Skip reading vifmrc and vifminfo. - - - See "Startup" section below for the explanations on $VIFM. - -General keys - Ctrl-C or Escape - cancel most operations (see "Cancellation" section below), clear - all selected files. - - Ctrl-L clear and redraw the screen. - -Basic Movement - The basic vi key bindings are used to move through the files and pop-up - windows. - - k, gk, or Ctrl-P - move cursor up one line. - - j, gj or Ctrl-N - move cursor down one line. - - h when 'lsview' is off move up one directory (moves to parent - directory node in tree view), otherwise move left one file. - - l when 'lsview' is off move into a directory or launch a file, - otherwise move right one file. See "Selection" section below. - - gg move to the first line of the file list. - - G move to the last line in the file list. - - gh go up one directory regardless of view representation (regular, - ls-like). Also can be used to leave custom views including tree - view. - - gl or Enter - enter directory or launch a file. See "Selection" section - below. - - H move to the first file in the window. - - M move to the file in the middle of the window. - - L move to the last file in the window. - - Ctrl-F or Page Down - move forward one page. - - Ctrl-B or Page Up - move back one page. - - Ctrl-D jump back one half page. - - Ctrl-U jump forward one half page. - - n% move to the file that is n percent from the top of the list (for - example 25%). - - 0 or ^ move cursor to the first column. See 'lsview' option - description. - - $ move cursor to the last column. See 'lsview' option - description. - - Space switch file lists. - - gt switch to the next tab (wrapping around). - - {n}gt switch to the tab number {n} (wrapping around). - - gT switch to the previous tab (wrapping around). - - {n}gT switch to {n}-th previous tab. - -Movement with Count - Most movement commands also accept a count, 12j would move down 12 - files. - - [count]% - move to percent of the file list. - - [count]j - move down [count] files. - - [count]k - move up [count] files. - - [count]G or [count]gg - move to list position [count]. - - [count]h - go up [count] directories. - -Scrolling panes - zt redraw pane with file in top of list. - - zz redraw pane with file in center of list. - - zb redraw pane with file in bottom of list. - - Ctrl-E scroll pane one line down. - - Ctrl-Y scroll pane one line up. - -Pane manipulation - Second character can be entered with or without Control key. - - Ctrl-W H - move the pane to the far left. - - Ctrl-W J - move the pane to the very bottom. - - Ctrl-W K - move the pane to the very top. - - Ctrl-W L - move the pane to the far right. - - - Ctrl-W h - switch to the left pane. - - Ctrl-W j - switch to the pane below. - - Ctrl-W k - switch to the pane above. - - Ctrl-W l - switch to the right pane. - - - Ctrl-W b - switch to bottom-right window. - - Ctrl-W t - switch to top-left window. - - - Ctrl-W p - switch to previous window. - - Ctrl-W w - switch to other pane. - - - Ctrl-W o - leave only one pane. - - Ctrl-W s - split window horizontally. - - Ctrl-W v - split window vertically. - - - Ctrl-W x - exchange panes. - - Ctrl-W z - quit preview pane or view modes. - - - Ctrl-W - - decrease size of the view by count. - - Ctrl-W + - increase size of the view by count. - - Ctrl-W < - decrease size of the view by count. - - Ctrl-W > - increase size of the view by count. - - - Ctrl-W | - set current view size to count. - - Ctrl-W _ - set current view size to count. - - Ctrl-W = - make size of two views equal. - - For Ctrl-W +, Ctrl-W -, Ctrl-W <, Ctrl-W >, Ctrl-W | and Ctrl-W _ - commands count can be given before and/or after Ctrl-W. The resulting - count is a multiplication of those two. So "2 Ctrl-W 2 -" decreases - window size by 4 lines or columns. - - Ctrl-W | and Ctrl-W _ maximise current view by default. - -Marks - Marks are set the same way as they are in vi. - - You can use these characters for marks [a-z][A-Z][0-9]. - - m[a-z][A-Z][0-9] - set a mark for the file at the current cursor position. - - '[a-z][A-Z][0-9] - navigate to the file set for the mark. - - - There are also several special marks that can't be set manually: - - - ' (single quote) - previously visited directory of the view, thus - hitting '' allows switching between two last locations - - - < - the first file of the last visually selected block - - - > - the last file of the last visually selected block - -Searching - /regular expression pattern - search for files matching regular expression in forward - direction and advance cursor to next match. - - / perform forward search with top item of search pattern history. - - ?regular expression pattern - search for files matching regular expression in backward - direction and advance cursor to previous match. - - ? perform backward search with top item of search pattern history. - - Trailing slash for directories is taken into account, so /\/ searches - for directories and symbolic links to directories. At the moment // - works too, but this can change in the future, so consider escaping the - slash if not typing pattern by hand. - - Matches are automatically selected if 'hlsearch' is set. Enabling - 'incsearch' makes search interactive. 'ignorecase' and 'smartcase' - options affect case sensitivity of search queries as well as local - filter and other things detailed in the description of 'caseoptions'. - - - [count]n - go to the next file matching last search pattern. Takes last - search direction into account. - - [count]N - go to the previous file matching last search pattern. Takes - last search direction into account. - - If 'hlsearch' option is set, hitting n/N to perform search and go to - the first matching item resets current selection in normal mode. It is - not the case if search was already performed on files in the directory, - thus selection is not reset after clearing selection with escape key - and hitting n/N key again. - - Note: vifm uses extended regular expressions for / and ?. - - - [count]f[character] - search forward for file with [character] as first character in - name. Search wraps around the end of the list. - - [count]F[character] - search backward for file with [character] as first character in - name. Search wraps around the end of the list. - - [count]; - find the next match of f or F. - - [count], - find the previous match of f or F. - - Note: f, F, ; and , wrap around list beginning and end when they are - used alone and they don't wrap when they are used as selectors. - -File Filters - There are three basic file filters: - - - dot files filter (does not affect "." and ".." special directories, - whose appearance is controlled by the 'dotdirs' option), see - 'dotfiles' option; - - - permanent filter; - - - local filter (see description of the "=" normal mode command). - - Permanent filter essentially allows defining a group of files names - which are not desirable to be seen by default, like temporary or backup - files, which might be created alongside normal ones. Just like you - don't usually need to see hidden dot files (files starting with a dot). - Local filter on the other hand is for temporary immediate filtering of - file list at hand, to get rid of uninterested files in the view or to - make it possible to use % range in a :command. - - For the purposes of more deterministic editing permanent filter is - split into two parts: - - - one edited explicitly via :filter command; - - - another one which is edited implicitly via zf shortcut. - - Files are tested against both parts and a match counts if at least one - of the parts matched. - - - Each file list has its own copy of each filter. - - Filtered files are not checked in / search or :commands. - - Files and directories are filtered separately. This is done by - appending a slash to a directory name before testing whether it matches - the filter. Examples: - - - " filter directories which names end with '.files' - :filter /^.*\.files\/$/ - - " filter files which names end with '.d' - :filter {*.d} - - " filter files and directories which names end with '.o' - :filter /^.*\.o\/?$/ - - Note: vifm uses extended regular expressions. - - The basic vim folding key bindings are used for managing filters. - - - za toggle visibility of dot files. - - zo show dot files. - - zm hide dot files. - - zf add selected files to permanent filter. - - zO reset permanent filter. - - zR save and reset all filters. - - zr clear local filter. - - zM restore all filters (undoes last zR). - - zd exclude selection or current file from a custom view. Does - nothing for regular view. For tree view excluding directory - excludes that sub-tree. For compare views zd hides group of - adjacent identical files, count can be specified as 1 to exclude - just single file or selected items instead. Files excluded this - way are not counted as filtered out and can't be returned unless - view is reloaded. - - =regular expression pattern - filter out files that don't match regular expression. Whether - view is updated as regular expression is changed depends on the - value of the 'incsearch' option. This kind of filter is - automatically reset when directory is changed. - -Tree-related Keys - While some of the keys make sense outside of tree-view, they are most - useful in trees. - - [z go to first sibling of current entry. - - ]z go to last sibling of current entry. - - zj go to next directory sibling of current entry or do nothing. - - zk go to previous directory sibling of current entry or do nothing. - - zx toggle fold under the cursor or parent entry of the current file - if cursor is not on a directory. - -Other Normal Mode Keys - [count]: - enter command line mode. [count] generates range. - - q: open external editor to prompt for command-line command. See - "Command line editing" section for details. - - q/ open external editor to prompt for search pattern to be searched - in forward direction. See "Command line editing" section for - details. - - q? open external editor to prompt for search pattern to be searched - in backward direction. See "Command line editing" section for - details. - - q= open external editor to prompt for filter pattern. See "Command - line editing" section for details. Unlike other q{x} commands - this one doesn't work in Visual mode. - - [count]!! and [count]! - enter command line mode with entered ! command. [count] - modifies range. - - Ctrl-O go backwards through directory history of current view. - Nonexistent directories are automatically skipped. - - Ctrl-I if 'cpoptions' contains "t" flag, and switch active - pane just like does, otherwise it goes forward through - directory history of current view. Nonexistent directories are - automatically skipped. - - Ctrl-G show a dialog with detailed information about current file. See - "Menus and dialogs" section for controls. - - Shift-Tab - enter view mode (works only after activating view pane with - :view command). - - ga calculate directory size. Uses cached directory sizes when - possible for better performance. As a special case calculating - size of ".." entry results in calculation of size of current - directory. - - gA like ga, but force update. Ignores old values of directory - sizes. - - If file under cursor is selected, each selected item is processed, - otherwise only current file is updated. - - gf find link destination (like l with 'followlinks' off, but also - finds directories). On Windows additionally follows .lnk-files. - - gF Same as gf, but resolves final path of the chain of symbolic - links. - - gr only for MS-Windows - same as l key, but tries to run program with administrative - privileges. - - av go to visual mode into selection amending state preserving - current selection. - - gv go to visual mode restoring last selection. - - [reg]gs - when no register is specified, restore last t selection (similar - to what gv does for visual mode selection). If register is - present, then all files listed in that register and which are - visible in current view are selected. - - gu - make names of selected files lowercase. - - [count]guu and [count]gugu - make names of [count] files starting from the current one - lowercase. Without [count] only current file is affected. - - gU - make names of selected files uppercase. - - [count]gUU and [count]gUgU - make names of [count] files starting from the current one - uppercase. Without [count] only current file is affected. - - e explore file in the current pane. - - i handle file (even if it's an executable and 'runexec' option is - set). - - cw change word is used to rename a file or files. If multiple - files are selected, behaves as :rename command run without - arguments. - - cW change WORD is used to change only name of file (without - extension). - - cl change link target. - - co only for *nix - change file owner. - - cg only for *nix - change file group. - - [count]cp - change file attributes (permission on *nix and properties on - Windows). If [count] is specified, it's treated as numerical - argument for non-recursive `chmod` command (of the form - [0-7]{3,4}). See "Menus and dialogs" section for controls. - - [count]C - clone file [count] times. - - [count]dd or d[count]selector - move selected file or files to trash directory (if 'trash' - option is set, otherwise delete). See "Trash directory" section - below. - - [count]DD or D[count]selector - like dd and d, but omitting trash directory (even when - 'trash' option is set). - - Y, [count]yy or y[count]selector - yank selected files. - - p copy yanked files to the current directory or move the files to - the current directory if they were deleted with dd or :d[elete] - or if the files were yanked from trash directory. See "Trash - directory" section below. - - P move the last yanked files. The advantage of using P instead of - d followed by p is that P moves files only once. This isn't - important in case you're moving files in the same file system - where your home directory is, but using P to move files on some - other file system (or file systems, in case you want to move - files from fs1 to fs2 and your home is on fs3) can save your - time. - - al put symbolic links with absolute paths. - - rl put symbolic links with relative paths. - - t select or unselect (tag) the current file. - - u undo last change. - - Ctrl-R redo last change. - - dp in compare view of "ofboth grouppaths" kind, makes corresponding - entry of the other pane equal to the current one. The semantics - is as follows: - - nothing done for identical entries - - if file is missing in current view, its pair gets removed - - if file is missing or differs in other view, it's replaced - - file pairs are defined by matching relative paths - File removal obeys 'trash' option. When the option is enabled, - the operation can be undone/redone (although results won't be - visible automatically). - Unlike in Vim, this operation is performed on a single line - rather than a set of adjacent changes. - - do same as dp, but applies changes in the opposite direction. - - v or V enter visual mode, clears current selection. - - [count]Ctrl-A - increment first number in file name by [count] (1 by default). - - [count]Ctrl-X - decrement first number in file name by [count] (1 by default). - - ZQ same as :quit!. - - ZZ same as :quit. - - . repeat last command-line command (not normal mode command) of - this run (does nothing right after startup or :restart command). - The command doesn't depend on command-line history and can be - used with completely disabled history. - - ( go to previous group. Groups are defined by primary sorting - key. For name and iname members of each group have same first - letter, for all other sorting keys vifm uses size, uid, ... - - ) go to next group. See ( key description above. - - { speeds up navigation to closest previous entry of the opposite - type by moving to the first file backwards when cursor is on a - directory and to the first directory backwards when cursor is on - a file. This is essentially a special case of ( that is locked - on "dirs". - - } same as {, but in forward direction. - - [c go to previous mismatched entry in directory comparison view or - do nothing. - - ]c go to next mismatched entry in directory comparison view or do - nothing. - - [d go to previous directory entry or do nothing. - - ]d go to next directory entry or do nothing. - - [r same as :siblprev. - - ]r same as :siblnext. - - [R same as :siblprev!. - - ]R same as :siblnext!. - - [s go to previous selected entry or do nothing. - - ]s go to next selected entry or do nothing. - -Using Count - You can use count with commands like yy. - - [count]yy - yank count files starting from current cursor position downward. - - Or you can use count with motions passed to y, d or D. - - d[count]j - delete (count + 1) files starting from current cursor position - upward. - -Registers - vifm supports multiple registers for temporary storing list of yanked - or deleted files. - - Registers should be specified by hitting double quote key followed by a - register name. Count is specified after register name. By default - commands use unnamed register, which has double quote as its name. - - Though all commands accept registers, most of commands ignores them - (for example H or Ctrl-U). Other commands can fill register or append - new files to it. - - Presently vifm supports ", _, a-z and A-Z characters as register names. - - As mentioned above " is unnamed register and has special meaning of the - default register. Every time when you use named registers (a-z and A- - Z) unnamed register is updated to contain same list of files as the - last used register. - - _ is black hole register. It can be used for writing, but its list is - always empty. - - Registers with names from a to z and from A to Z are named ones. - Lowercase registers are cleared before adding new files, while - uppercase aren't and should be used to append new files to the existing - file list of appropriate lowercase register (A for a, B for b, ...). - - Registers can be changed on :empty command if they contain files under - trash directory (see "Trash directory" section below). - - Registers do not contain one file more than once. - - Example: - - "a2yy - - puts names of two files to register a (and to the unnamed register), - - "Ad - - removes one file and append its name to register a (and to the unnamed - register), - - p or "ap or "Ap - - inserts previously yanked and deleted files into current directory. - -Selectors - y, d, D, !, gu and gU commands accept selectors. You can combine them - with any of selectors below to quickly remove or yank several files. - - Most of selectors are like vi motions: j, k, gg, G, H, L, M, %, f, F, - ;, comma, ', ^, 0 and $. But there are some additional ones. - - a all files in current view. - - s selected files. - - S all files except selected. - - Examples: - - - dj - delete file under cursor and one below; - - - d2j - delete file under cursor and two below; - - - y6gg - yank all files from cursor position to 6th file in the list. - - When you pass a count to whole command and its selector they are - multiplied. So: - - - 2d2j - delete file under cursor and four below; - - - 2dj - delete file under cursor and two below; - - - 2y6gg - yank all files from cursor position to 12th file in the - list. - -Visual Mode - Visual mode has two generic operating submodes: - - - plain selection as it is in Vim; - - - selection editing submode. - - Both modes select files in range from cursor position at which visual - mode was entered to current cursor position (let's call it "selection - region"). Each of two borders can be adjusted by swapping them via "o" - or "O" keys and updating cursor position with regular cursor motion - keys. Obviously, once initial cursor position is altered this way, - real start position becomes unavailable. - - Plain Vim-like visual mode starts with cleared selection, which is not - restored on rejecting selection ("Escape", "Ctrl-C", "v", "V"). - Contrary to it, selection editing doesn't clear previously selected - files and restores them after reject. Accepting selection by - performing an operation on selected items (e.g. yanking them via "y") - moves cursor to the top of current selection region (not to the top - most selected file of the view). - - In turn, selection editing supports three types of editing (look at - statusbar to know which one is currently active): - - - append - amend selection by selecting elements in selection region; - - - remove - amend selection by deselecting elements in selection - region; - - - invert - amend selection by inverting selection of elements in - selection region. - - No matter how you activate selection editing it starts in "append". - One can switch type of operation (in the order given above) via "Ctrl- - G" key. - - Almost all normal mode keys work in visual mode, but instead of - accepting selectors they operate on selected items. - - Enter save selection and go back to normal mode not moving cursor. - - av leave visual mode if in amending mode (restores previous - selection), otherwise switch to amending selection mode. - - gv restore previous visual selection. - - v, V, Ctrl-C or Escape - leave visual mode if not in amending mode, otherwise switch to - normal visual selection. - - Ctrl-G switch type of amending by round robin scheme: append -> remove - -> invert. - - : enter command line mode. Selection is cleared on leaving the - mode. - - o switch active selection bound. - - O switch active selection bound. - - gu, u make names of selected files lowercase. - - gU, U make names of selected files uppercase. - - cw same as running :rename command without arguments. - -View Mode - This mode tries to imitate the less program. List of builtin shortcuts - can be found below. Shortcuts can be customized using :qmap, :qnoremap - and :qunmap command-line commands. - - Shift-Tab, Tab, q, Q, ZZ - return to normal mode. - - [count]e, [count]Ctrl-E, [count]j, [count]Ctrl-N, [count]Enter - scroll forward one line (or [count] lines). - - [count]y, [count]Ctrl-Y, [count]k, [count]Ctrl-K, [count]Ctrl-P - scroll backward one line (or [count] lines). - - [count]f, [count]Ctrl-F, [count]Ctrl-V, [count]Space - scroll forward one window (or [count] lines). - - [count]b, [count]Ctrl-B, [count]Alt-V - scroll backward one window (or [count] lines). - - [count]z - scroll forward one window (and set window to [count]). - - [count]w - scroll backward one window (and set window to [count]). - - [count]Alt-Space - scroll forward one window, but don't stop at end-of-file. - - [count]d, [count]Ctrl-D - scroll forward one half-window (and set half-window to [count]). - - [count]u, [count]Ctrl-U - scroll backward one half-window (and set half-window to - [count]). - - r, Ctrl-R, Ctrl-L - repaint screen. - - R reload view preserving scroll position. - - F toggle automatic forwarding. Roughly equivalent to periodic - file reload and scrolling to the bottom. The behaviour is - similar to `tail -F` or F key in less. - - a switch to the next viewer. Does nothing for preview constructed - via %q macro. - - A switch to the previous viewer. Does nothing for preview - constructed via %q macro. - - i toggle raw mode (ignoring of defined viewers). Does nothing for - preview constructed via %q macro. - - [count]/pattern - search forward for ([count]-th) matching line. - - [count]?pattern - search backward for ([count]-th) matching line. - - [count]n - repeat previous search (for [count]-th occurrence). - - [count]N - repeat previous search in reverse direction (for [count]-th - occurrence). - - [count]g, [count]<, [count]Alt-< - scroll to the first line of the file (or line [count]). - - [count]G, [count]>, [count]Alt-> - scroll to the last line of the file (or line [count]). - - [count]p, [count]% - scroll to the beginning of the file (or N percent into file). - - v invoke an editor to edit the current file being viewed. The - command for editing is taken from the 'vicmd' or 'vixcmd' option - value and extended with middle line number prepended by a plus - sign and name of the current file. - - All "Ctrl-W x" keys work the same was as in Normal mode. Active mode - is automatically changed on navigating among windows. When less-like - mode activated on file preview is left using one by "Ctrl-W x" keys, - its state is stored until another file is displayed using preview (it's - possible to leave the mode, hide preview pane, do something else, then - get back to the file and show preview pane again with previously stored - state in it). - -Command line Mode - These keys are available in all submodes of the command line mode: - command, search, prompt and filtering. - - Down, Up, Left, Right, Home, End and Delete are extended keys and they - are not available if vifm is compiled with --disable-extended-keys - option. - - Esc, Ctrl-C - leave command line mode, cancels input. Cancelled input is - saved into appropriate history and can be recalled later. - - Ctrl-M, Enter - execute command and leave command line mode. - - Ctrl-I, Tab - complete command or its argument. - - Shift-Tab - complete in reverse order. - - Ctrl-_ stop completion and return original input. - - Ctrl-B, Left - move cursor to the left. - - Ctrl-F, Right - move cursor to the right. - - Ctrl-A, Home - go to line beginning. - - Ctrl-E, End - go to line end. - - Alt-B go to the beginning of previous word. - - Alt-F go to the end of next word. - - Ctrl-U remove characters from cursor position till the beginning of - line. - - Ctrl-K remove characters from cursor position till the end of line. - - Ctrl-H, Backspace - remove character before the cursor. - - Ctrl-D, Delete - remove character under the cursor. - - Ctrl-W remove characters from cursor position till the beginning of - previous word. - - Alt-D remove characters from cursor position till the beginning of - next word. - - Ctrl-T swap the order of current and previous character and move cursor - forward or, if cursor past the end of line, swap the order of - two last characters in the line. - - Alt-. insert last part of previous command to current cursor position. - Each next call will insert last part of older command. - - Ctrl-G edit command-line content in external editor. See "Command line - editing" section for details. - - Ctrl-N recall more recent command-line from history. - - Ctrl-P recall older command-line from history. - - Up recall more recent command-line from history, that begins as the - current command-line. - - Down recall older command-line from history, that begins as the - current command-line. - - Ctrl-] trigger abbreviation expansion. - -Pasting special values - The shortcuts listed below insert specified values into current cursor - position. Last key of every shortcut references value that it inserts: - - c - [c]urrent file - - d - [d]irectory path - - e - [e]xtension of a file name - - r - [r]oot part of a file name - - t - [t]ail part of directory path - - - a - [a]utomatic filter - - m - [m]anual filter - - = - local filter, which is bound to "=" in normal mode - - Values related to filelist in current pane are available through Ctrl-X - prefix, while values from the other pane have doubled Ctrl-X key as - their prefix (doubled Ctrl-X is presumably easier to type than - uppercase letters; it's still easy to remap the keys to correspond to - names of similar macros). - - Ctrl-X c - name of the current file of the active pane. - - Ctrl-X d - path to the current directory of the active pane. - - Ctrl-X e - extension of the current file of the active pane. - - Ctrl-X r - name root of current file of the active pane. - - Ctrl-X t - the last component of path to the current directory of the - active pane. - - Ctrl-X Ctrl-X c - name of the current file of the inactive pane. - - Ctrl-X Ctrl-X d - path to the current directory of the inactive pane. - - Ctrl-X Ctrl-X e - extension of the current file of the inactive pane. - - Ctrl-X Ctrl-X r - name root of current file of the inactive pane. - - Ctrl-X Ctrl-X t - the last component of path to the current directory of the - inactive pane. - - - Ctrl-X a - value of implicit permanent filter (old name "automatic") of the - active pane. - - Ctrl-X m - value of explicit permanent filter (old name "manual") of the - active pane. - - Ctrl-X = - value of local filter of the active pane. - - - Ctrl-X / - last pattern from search history. - -Command line editing - vifm provides a facility to edit several kinds of data, that is usually - edited in command-line mode, in external editor (using command - specified by 'vicmd' or 'vixcmd' option). This has at least two - advantages over built-in command-line mode: - - one can use full power of Vim to edit text; - - finding and reusing history entries becomes possible. - - The facility is supported by four input submodes of the command-line: - - command; - - forward search; - - backward search; - - file rename (see description of cw and cW normal mode keys). - - Editing command-line using external editor is activated by the Ctrl-G - shortcut. It's also possible to do almost the same from Normal and - Visual modes using q:, q/ and q? commands. - - Temporary file created for the purpose of editing the line has the - following structure: - - 1. First line, which is either empty or contains text already entered - in command-line. - - 2. 2nd and all other lines with history items starting with the most - recent one. Altering this lines in any way won't change history - items stored by vifm. - - After editing application is finished the first line of the file is - taken as the result of operation, when the application returns zero - exit code. If the application returns an error (see :cquit command in - Vim), all the edits made to the file are ignored, but the initial value - of the first line is saved in appropriate history. - -More Mode - This is the mode that appears when status bar content is so big that it - doesn't fit on the screen. One can identify the mode by "-- More --" - message at the bottom. - - The following keys are handled in this mode: - - - Enter, Ctrl-J, j or Down - scroll one line down. - - Backspace, k or Up - scroll one line up. - - - d scroll one page (half of a screen) down. - - u scroll one page (half of a screen) up. - - - Space, f or PageDown - scroll down a screen. - - b or PageUp - scroll up a screen. - - - G scroll to the bottom. - - g scroll to the top. - - - q, Escape or Ctrl-C - quit the mode. - - : switch to command-line mode. - -Commands - Commands are executed with :command_name - - Commented out lines should start with the double quote symbol ("), - which may be preceded by whitespace characters intermixed with colons. - Inline comments can be added at the end of the line after double quote - symbol, only last line of a multi-line command can contain such - comment. Not all commands support inline comments as their syntax - conflicts with names of registers and fields where double quotes are - allowed. - - Most of the commands have two forms: complete and the short one. - Example: - - :noh[lsearch] - - This means the complete command is nohlsearch, and the short one is - noh. - - Most of command-line commands completely reset selection in the current - view. However, there are several exceptions: - - - `:invert s` most likely leaves some files selected; - - - :normal command (when it doesn't leave command-line mode); - - - :if and :else commands don't affect selection on successful - execution. - - '|' can be used to separate commands, so you can give multiple commands - in one line. If you want to use '|' in an argument, precede it with - '\'. - - These commands see '|' as part of their arguments even when it's - escaped: - - :[range]! - :autocmd - :cabbrev - :cmap - :cnoreabbrev - :cnoremap - :command - :dmap - :dnoremap - :filetype - :fileviewer - :filextype - :map - :mmap - :mnoremap - :nmap - :nnoremap - :noremap - :normal - :qmap - :qnoremap - :vmap - :vnoremap - :wincmd - :windo - :winrun - - To be able to use another command after one of these, wrap it with the - :execute command. An example: - - if filetype('.') == 'reg' | execute '!!echo regular file' | endif - - :[count] - - :number - move to the file number. - :12 would move to the 12th file in the list. - :0 move to the top of the list. - :$ move to the bottom of the list. - - :[count]command - The only builtin :[count]command are :[count]d[elete] and - :[count]y[ank]. - - :d3 would delete three files starting at the current file position - moving down. - - :3d would delete one file at the third line in the list. - - :command [args] - - :[range]!program - execute command via shell. Accepts macros. - - :[range]!command & - - same as above, but the command is run in the background using vifm's - means. - - Programs that write to stderr create error dialogs showing errors of - the command. - - Note the space before ampersand symbol, if you omit it, command will be - run in the background using job control of your shell. - - Accepts macros. - - :!! - - :[range]!!command - same as :!, but pauses before returning. - - :!! repeat the last command. - - :alink - - :[range]alink[!?] - create absolute symbolic links to files in directory of inactive - view. With "?" prompts for destination file names in an editor. - "!" forces overwrite. - - :[range]alink[!] path - create absolute symbolic links to files in directory specified - by the path (absolute or relative to directory of inactive - view). - - :[range]alink[!] name1 name2... - create absolute symbolic links of files in directory of other - view giving each next link a corresponding name from the - argument list. - - :apropos - - :apropos keyword... - create a menu of items returned by the apropos command. - Selecting an item in the menu opens corresponding man page. By - default the command relies on the external "apropos" utility, - which can be customized by altering value of the 'aproposprg' - option. See "Menus and dialogs" section for controls. - - :autocmd - - :au[tocmd] {event} {pat} {cmd} - register autocommand for the {event}, which can be: - - DirEnter - triggered after directory is changed - Event name is case insensitive. - - {pat} is a comma-separated list of modified globs patterns, - which can contain tilde or environment variables. All paths use - slash ('/') as directory separator. The pattern can start with - a '!', which negates it. Patterns that do not contain slashes - are matched against the last item of the path only (e.g. "dir" - in "/path/dir"). Literal comma can be entered by doubling it. - Two modifications to globs matching are as follows: - - * - never matches a slash (i.e., can signify single - directory level) - - ** - matches any character (i.e., can match path of - arbitrary depth) - - {cmd} is a :command or several of them separated with '|'. - - Examples of patterns: - - conf.d - matches conf.d directory anywhere - - *.d - matches directories ending with ".d" anywhere - - **.git - matches something.git, but not .git anywhere - - **/.git/** - matches /path/.git/objects, but not /path/.git - - **/.git/**/ - matches /path/.git/ only (because of trailing - slash) - - /etc/* - matches /etc/conf.d/, /etc/X11, but not - /etc/X11/fs - - /etc/**/*.d - matches /etc/conf.d, /etc/X11/conf.d, etc. - - /etc/**/* - matches /etc/ itself and any file below it - - /etc/**/** - matches /etc/ itself and any file below it - - :au[tocmd] [{event}] [{pat}] - list those autocommands that match given event-pattern - combination. - {event} and {pat} can be omitted to list all autocommands. To - list any autocommands for specific pattern one can use * - placeholder in place of {event}. - - :au[tocmd]! [{event}] [{pat}] - remove autocommands that match given event-pattern combination. - Syntax is the same as for listing above. - - :apropos - repeat last :apropos command. - - :bmark - - :bmark tag1 [tag2 [tag3...]] - bookmark current directory with specified tags. - - :bmark! path tag1 [tag2 [tag3...]] - same as :bmark, but allows bookmarking specific path instead of - current directory. This is for use in vifmrc and for - bookmarking files. - - Path can contain macros that expand to single path (%c, %C, %d, - %D) or those that can expand to multiple paths, but contain only - one (%f, %F, %rx). The latter is done for convenience on using - the command interactively. Complex macros that include spaces - (e.g. "%c:gs/ /_") should be escaped. - - :bmarks - - :bmarks - display all bookmarks in a menu. - - :bmarks [tag1 [tag2...]] - display menu of bookmarks that include all of the specified - tags. See "Menus and dialogs" section for controls. - - :bmgo - - :bmgo [tag1 [tag2...]] - when there are more than one match acts exactly like :bmarks, - otherwise navigates to single match immediately (and fails if - there is no match). - - :cabbrev - - :ca[bbrev] - display menu of command-line mode abbreviations. See "Menus and - dialogs" section for controls. - - :ca[bbrev] lhs-prefix - display command-line mode abbreviations which left-hand side - starts with specified prefix. - - :ca[bbrev] lhs rhs - register new or overwrites existing abbreviation for command- - line mode. rhs can contain spaces and any special sequences - accepted in rhs of mappings (see "Mappings" section below). - Abbreviations are expanded non-recursively. - - :cnoreabbrev - - :cnorea[bbrev] - display menu of command-line mode abbreviations. See "Menus and - dialogs" section for controls. - - :cnorea[bbrev] lhs-prefix - display command-line mode abbreviations which left-hand side - starts with specified prefix. - - :cnorea[bbrev] lhs rhs - same as :cabbrev, but mappings in rhs are ignored during - expansion. - - :cd - - :cd or :cd ~ or :cd $HOME - change to home directory. - - :cd - go to the last visited directory. - - :cd ~/dir - change directory to ~/dir. - - :cd /curr/dir /other/dir - change directory of the current pane to /curr/dir and directory - of the other pane to /other/dir. Relative paths are assumed to - be relative to directory of current view. Command won't fail if - one of directories is invalid. All forms of the command accept - macros. - - :cd! /dir - same as :cd /dir /dir. - - :cds - - :cds[!] pattern string - navigate to path obtained by substituting first match in current - path. Arguments can include slashes, but starting first - argument with a separator will activate below form of the - command. Specifying "!" changes directory of both panes. - - Available flags: - - - i - ignore case (the 'ignorecase' and 'smartcase' options are not - used) - - - I - don't ignore case (the 'ignorecase' and 'smartcase' options are - not used) - - :cds[!]/pattern/string/[flags] - same as above, but with :substitute-like syntax. Other - punctuation characters can be used as separators. - - :change - - :c[hange] - show a dialog to alter properties of files. - - :chmod - - :[range]chmod - display file attributes (permission on *nix and properties on - Windows) change dialog. - - :[range]chmod[!] arg... - only for *nix - change permissions for files. See `man 1 chmod` for arg format. - "!" means set permissions recursively. - - :chown - - :[range]chown - only for *nix - same as co key in normal mode. - - :[range]chown [user][:][group] - only for *nix - change owner and/or group of files. Operates on directories - recursively. - - :clone - - :[range]clone[!?] - clones files in current directory. With "?" vifm will open vi - to edit file names. "!" forces overwrite. Macros are expanded. - - :[range]clone[!] path - clones files to directory specified with the path (absolute or - relative to current directory). "!" forces overwrite. Macros - are expanded. - - :[range]clone[!] name1 name2... - clones files in current directory giving each next clone a - corresponding name from the argument list. "!" forces - overwrite. Macros are expanded. - - :colorscheme - - :colo[rscheme]? - print current color scheme name on the status bar. - - :colo[rscheme] - display a menu with a list of available color schemes. You can - choose primary color scheme here. It is used for view if no - directory specific colorscheme fits current path. It's also - used to set border color (except view titles) and colors in - menus and dialogs. See "Menus and dialogs" section for - controls. - - :colo[rscheme] color_scheme_name - change primary color scheme to color_scheme_name. In case of - errors (e.g. some colors are not supported by terminal) either - nothing is changed or color scheme is reset to builtin colors to - ensure that TUI is left in a usable state. - - :colo[rscheme] color_scheme_name directory - associate directory with the color scheme. The directory - argument can be either absolute or relative path when - :colorscheme command is executed from command line, but - mandatory should be an absolute path when the command is - executed in scripts loaded at startup (until vifm is completely - loaded). - - :colo[rscheme] color_scheme_name color_scheme_name... - loads the first color scheme in the order given that exists and - is supported by the terminal. If none matches, current one - remains unchanged. For example: - - " use a separate color scheme for panes which are inside FUSE mounts - execute 'colorscheme in-fuse' &fusehome - - :comclear - - :comc[lear] - remove all user defined commands. - - :command - - :com[mand] - display a menu of user commands. See "Menus and dialogs" - section for controls. - - :com[mand] prefix - display user defined commands that start with the prefix. - - :com[mand] name action[ &] - set or redefine a user command. - Use :com[mand]! to overwrite a previously set command of the - same name. Builtin commands can't be redefined. - User commands must start with an upper or lower case letter. - Command name can't contain special symbols except for a single - trailing '?' or '!'. Numbers are allowed provided that they - don't cause parsing ambiguity (no command name prefix that - precedes a digit can match an existing command unless it has a - digit in the same place), for example: - " good - :command mp3 command - " good - :command mp4 command - :command mp3! command - :command mp4? command - " bad - :command mp command - :command mp44 command - " good - :command mp4c command - - User commands are run in a shell by default (see below for - syntax of other options). To run a command in the background - you must mark it as a background command by adding " &" after - the command's action (e.g., `:com rm rm %f &`). - User commands of all kinds have macros expanded in them. See - "Command macros" section for more information. - - :com[mand] name /pattern - set search pattern. - - :com[mand] name =pattern - set local filter value. - - :com[mand] name filter{:filter args} - set file name filter (see :filter command description). For - example: - - " display only audio files - :command onlyaudio filter/.+.\(mp3|wav|mp3|flac|ogg|m4a|wma|ape\)$/i - " display everything except audio files - :command noaudio filter!/.+.\(mp3|wav|mp3|flac|ogg|m4a|wma|ape\)$/i - - :com[mand] name :commands - set kind of an alias for internal commands (like in a shell). - Passes range given to alias to an aliased command, so running - :%cp after - :command cp :copy %a - equals - :%copy - - :compare - - :compare [byname | bysize | bycontents | listall | listunique | - listdups | ofboth | ofone | groupids | grouppaths | skipempty]... - compare files in one or two views according to the arguments. - The default is "bycontents listall ofboth grouppaths". See - "Compare views" section below for details. Diff structure is - incompatible with alternative representations, so values of - 'lsview' and 'millerview' options are ignored. - - :copen - - :cope[n] - opens menu with contents of the last displayed menu with - navigation to files by default, if any. - - :copy - - :[range]co[py][!?][ &] - copy files to directory of other view. With "?" prompts for - destination file names in an editor. "!" forces overwrite. - - :[range]co[py][!] path[ &] - copy files to directory specified with the path (absolute or - relative to directory of other view). "!" forces overwrite. - - :[range]co[py][!] name1 name2...[ &] - copy files to directory of other view giving each next file a - corresponding name from the argument list. "!" forces - overwrite. - - :cquit - - :cq[uit][!] - same as :quit, but also aborts directory choosing via - --choose-dir (empties output file) and returns non-zero exit - code. - - :cunabbrev - - :cuna[bbrev] lhs - unregister command-line mode abbreviation by its lhs. - - :cuna[bbrev] rhs - unregister command-line mode abbreviation by its rhs, so that - abbreviation could be removed even after expansion. - - :delbmarks - - :delbmarks - remove bookmarks from current directory. - - :delbmarks tag1 [tag2 [tag3...]] - remove set of bookmarks that include all of the specified tags. - - :delbmarks! - remove all bookmarks. - - :delbmarks! path1 [path2 [path3...]] - remove bookmarks of listed paths. - - :delcommand - - :delc[ommand] user_command - remove user defined command named user_command. - - :delete - - :[range]d[elete][!][ &] - delete selected file or files. "!" means complete removal - (omitting trash). - - :[range]d[elete][!] [reg] [count][ &] - delete selected or [count] files to the reg register. "!" means - complete removal (omitting trash). - - :delmarks - - :delm[arks]! - delete all marks. - - :delm[arks] marks ... - delete specified marks, each argument is treated as a set of - marks. - - :delsession - - :delsession - delete specified session if it was stored previously. Deleting - current session doesn't detach it. - - :display - - :di[splay] - display menu with registers content. - - :di[splay] list ... - display the contents of the numbered and named registers that - are mentioned in list (for example "az to display "", "a and "z - content). - - :dirs - - :dirs display directory stack in a menu. See "Menus and dialogs" - section for controls. - - :echo - - :ec[ho] [...] - evaluate each argument as an expression and output them - separated with a space. See help on :let command for a - definition of . - - :edit - - :[range]e[dit] [file...] - open selected or passed file(s) in editor. Macros and - environment variables are expanded. - - :else - - :el[se] - execute commands until next matching :endif if all other - conditions didn't match. See also help on :if and :endif - commands. - - :elseif - - :elsei[f] {expr1} - execute commands until next matching :elseif, :else or :endif if - conditions of previous :if and :elseif branches were evaluated - to zero. See also help on :if and :endif commands. - - :empty - - :empty permanently remove files from all existing non-empty trash - directories (see "Trash directory" section below). Trash - directories which are specified via %r and/or %u also get - deleted completely. Also remove all operations from undolist - that have no sense after :empty and remove all records about - files located inside directories from all registers. Removal is - performed as background task with undetermined amount of work - and can be checked via :jobs menu. - - :endif - - :en[dif] - end conditional block. See also help on :if and :else commands. - - :execute - - :exe[cute] [...] - evaluate each argument as an expression and join results - separated by a space to get a single string which is then - executed as a command-line command. See help on :let command - for a definition of . - - :exit - - :exi[t][!] - same as :quit. - - :file - - :f[ile][ &] - display menu of programs set for the file type of the current - file. " &" forces running associated program in background. - See "Menus and dialogs" section for controls. - - :f[ile] arg[ &] - run associated command that begins with the arg skipping opening - menu. " &" forces running associated program in background. - - :filetype - - :filet[ype] pattern-list [{descr}]def_prog[ &],[{descr}]prog2[ &],... - associate given program list to each of the patterns. - Associated program (command) is used by handlers of l and Enter - keys (and also in the :file menu). If you need to insert comma - into command just double it (",,"). Space followed by an - ampersand as two last characters of a command means running of - the command in the background. Optional description can be - given to each command to ease understanding of what command will - do in the :file menu. Vifm will try the rest of the programs - for an association when the default isn't found. When program - entry doesn't contain any of vifm macros, name of current file - is appended as if program entry ended with %c macro on *nix and - %"c on Windows. On Windows path to executables containing - spaces can (and should be for correct work with such paths) be - double quoted. See "Patterns" section below for pattern - definition and "Selection" section for how selection is handled. - See also "Automatic FUSE mounts" section below. Example for zip - archives and several actions: - - filetype *.zip,*.jar,*.war,*.ear - \ {Mount with fuse-zip} - \ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR, - \ {View contents} - \ zip -sf %c | less, - \ {Extract here} - \ tar -xf %c, - - Note that on OS X when `open` is used to call an app, vifm is - unable to check whether that app is actually available. So if - automatic skipping of programs that aren't there is desirable, - `open` should be replaced with an actual command. - - :filet[ype] filename - list (in menu mode) currently registered patterns that match - specified file name. Same as ":filextype filename". - - :filextype - - :filex[type] pattern-list [{ description }] def_program,program2,... - same as :filetype, but this command is ignored if not running in - X. In X :filextype is equal to :filetype. See "Patterns" - section below for pattern definition and "Selection" section for - how selection is handled. See also "Automatic FUSE mounts" - section below. - - For example, consider the following settings (the order might - seem strange, but it's for the demonstration purpose): - - filetype *.html,*.htm - \ {View in lynx} - \ lynx - filextype *.html,*.htm - \ {Open with dwb} - \ dwb %f %i &, - filetype *.html,*.htm - \ {View in links} - \ links - filextype *.html,*.htm - \ {Open with firefox} - \ firefox %f &, - \ {Open with uzbl} - \ uzbl-browser %f %i &, - - If you're using vifm inside a terminal emulator that is running - in graphical environment (when X is used on *nix; always on - Windows), vifm attempts to run application in this order: - - 1. lynx - 2. dwb - 3. links - 4. firefox - 5. uzbl - - If there is no graphical environment (checked by presence of - non-empty $DISPLAY or $WAYLAND_DISPLAY environment variable on - *nix; never happens on Windows), the list will look like: - - 1. lynx - 2. links - - Just as if all :filextype commands were not there. - - The purpose of such differentiation is to allow comfortable use - of vifm with same settings in desktop environment/through remote - connection (SSH)/in native console. - - Note that on OS X $DISPLAY isn't defined unless you define it, - so :filextype should be used only if you set $DISPLAY in some - way. - - :filext[ype] filename - list (in menu mode) currently registered patterns that match - specified file name. Same as ":filetype filename". - - :fileviewer - - :filev[iewer] pattern-list command1,command2,... - register specified list of commands as viewers for each of the - patterns. Viewer is a command which output is captured and - displayed in one of the panes of vifm after pressing "e" or - running :view command. When the command doesn't contain any of - vifm macros, name of current file is appended as if command - ended with %c macro. Comma escaping and missing commands - processing rules as for :filetype apply to this command. See - "Patterns" section below for pattern definition. Supports Lua - handlers. - - Example for zip archives: - - fileviewer *.zip,*.jar,*.war,*.ear zip -sf %c, echo "No zip to preview:" - - :filev[iewer] filename - list (in menu mode) currently registered patterns that match - specified filename. - - :filter - - :filter[!] {pattern} - filter files matching the pattern out of directory listings. - '!' controls state of filter inversion after updating filter - value (see also 'cpoptions' description). Filter is matched - case sensitively on *nix and case insensitively on Windows. See - "File Filters" and "Patterns" sections. - - Example: - - " filter all files ending in .o from the filelist. - :filter /.o$/ - - - :filter[!] {empty-pattern} - same as above, but use last search pattern as pattern value. - - Example: - - :filter //I - - - :filter - reset filter (set it to an empty string) and show all files. - - :filter! - same as :invert. - - :filter? - show information on local, name and auto filters. - - :find - - :[range]fin[d] pattern - display results of find command in the menu. Searches among - selected files if any. Accepts macros. By default the command - relies on the external "find" utility, which can be customized - by altering value of the 'findprg' option. - - :[range]fin[d] -opt... - same as :find above, but user defines all find arguments. - Searches among selected files if any. - - :[range]fin[d] path -opt... - same as :find above, but user defines all find arguments. - Ignores selection and range. - - :[range]fin[d] - repeat last :find command. - - :finish - - :fini[sh] - stop sourcing a script. Can only be used in a vifm script file. - This is a quick way to skip the rest of the file. - - :goto - - :go[to] - change directory if necessary and put specified path under the - cursor. The path should be existing non-root path. Macros and - environment variables are expanded. - - :grep - - :[range]gr[ep][!] pattern - will show results of grep command in the menu. Add "!" to - request inversion of search (look for lines that do not match - pattern). Searches among selected files if any and no range - given. Ignores binary files by default. By default the command - relies on the external "grep" utility, which can be customized - by altering value of the 'grepprg' option. - - :[range]gr[ep][!] -opt... - same as :grep above, but user defines all grep arguments, which - are not escaped. Searches among selected files if any. - - :[range]gr[ep][!] - repeat last :grep command. "!" of this command inverts "!" in - repeated command. - - :help - - :h[elp] - show the help file. - - :h[elp] argument - is the same as using ':h argument' in vim. Use vifm- - to get help on vifm (tab completion works). This form of the - command doesn't work when 'vimhelp' option is off. - - :hideui - - :hideui - hide interface to show previous commands' output. - - :highlight - - :hi[ghlight] - display information about all highlight groups active at the - moment. - - :hi[ghlight] clear - reset all highlighting to builtin defaults and removed all - filename-specific rules. - - :hi[ghlight] clear ( {pat1,pat2,...} | /regexp/ ) - remove specified rule. - - :hi[ghlight] ( group-name | {pat1,pat2,...} | /regexp/ ) - display information on given highlight group or file name - pattern of color scheme used in the active view. - - :hi[ghlight] ( group-name | {pat1,pat2,...} | /regexp/[iI] ) - cterm=style | ctermfg=color | ctermbg=color | gui=style | guifg=color | - guibg=color - set style (cterm, gui), foreground (ctermfg, guifg) and/or - background (ctermbg, guibg) parameters of highlight group or - file name pattern for color scheme used in the active view. - - All style values as well as color names are case insensitive. - - Available style values (some of them can be combined): - - bold - - underline - - reverse or inverse - - standout - - italic (on unsupported systems becomes reverse) - - combine - add attributes of current group to attributes of the - parent in group hierarchy (see below) instead of replacing them - - none - - Available group-name values: - - Win - color of all windows (views, dialogs, menus) and default color - for their content (e.g. regular files in views) - - AuxWin - color of auxiliary areas of windows - - OtherWin - color of inactive pane - - Border - color of vertical parts of the border - - TabLine - tab line color (for 'tabscope' set to "global") - - TabLineSel - color of the tip of selected tab (regardless of - 'tabscope') - - TopLine - top line color of the other pane - - TopLineSel - top line color of the current pane - - CmdLine - the command line/status bar color - - ErrorMsg - color of error messages in the status bar - - StatusLine - color of the line above the status bar - - JobLine - color of job line that appears above the status line - - WildMenu - color of the wild menu items - - SuggestBox - color of key suggestion box - - CurrLine - line at cursor position in active view - - OtherLine - line at cursor position in inactive view - - OddLine - color of every second entry line in a pane - - LineNr - line number column of views - - Selected - color of selected files - - Directory - color of directories - - Link - color of symbolic links in the views - - BrokenLink - color of broken symbolic links - - HardLink - color of regular files with more than one hard link - - Socket - color of sockets - - Device - color of block and character devices - - Executable - color of executable files - - Fifo - color of fifo pipes - - CmpMismatch - color of mismatched files in side-by-side comparison - by path - - User1..User9 - 9 colors which can be used via %* 'statusline' macro - - Available colors: - - -1 or default or none - default or transparent - - black and lightblack - - red and lightred - - green and lightgreen - - yellow and lightyellow - - blue and lightblue - - magenta and lightmagenta - - cyan and lightcyan - - white and lightwhite - - 0-255 - corresponding colors from 256-color palette (for ctermfg and - ctermbg) - - #rrggbb - direct ("gui", "true", 24-bit) color in hex-notation, each - of the three compontents are in the range 0x00 to 0xff (for guifg and - guibg) - - Light versions of colors are regular colors with bold attribute set - automatically in terminals that have less than 16 colors. So order of - arguments of :highlight command is important and it's better to put - "cterm" in front of others to prevent it from overwriting attributes - set by "ctermfg" or "ctermbg" arguments. - - For convenience of color scheme authors xterm-like names for 256 color - palette is also supported. The mapping is taken from - http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim - Duplicated entries were altered by adding an underscore followed by - numerical suffix. - - 0 Black 86 Aquamarine1 172 Orange3 - 1 Red 87 DarkSlateGray2 173 LightSalmon3_2 - 2 Green 88 DarkRed_2 174 LightPink3 - 3 Yellow 89 DeepPink4_2 175 Pink3 - 4 Blue 90 DarkMagenta 176 Plum3 - 5 Magenta 91 DarkMagenta_2 177 Violet - 6 Cyan 92 DarkViolet 178 Gold3_2 - 7 White 93 Purple 179 LightGoldenrod3 - 8 LightBlack 94 Orange4_2 180 Tan - 9 LightRed 95 LightPink4 181 MistyRose3 - 10 LightGreen 96 Plum4 182 Thistle3 - 11 LightYellow 97 MediumPurple3 183 Plum2 - 12 LightBlue 98 MediumPurple3_2 184 Yellow3_2 - 13 LightMagenta 99 SlateBlue1 185 Khaki3 - 14 LightCyan 100 Yellow4 186 LightGoldenrod2 - 15 LightWhite 101 Wheat4 187 LightYellow3 - 16 Grey0 102 Grey53 188 Grey84 - 17 NavyBlue 103 LightSlateGrey 189 LightSteelBlue1 - 18 DarkBlue 104 MediumPurple 190 Yellow2 - 19 Blue3 105 LightSlateBlue 191 DarkOliveGreen1 - 20 Blue3_2 106 Yellow4_2 192 - DarkOliveGreen1_2 - 21 Blue1 107 DarkOliveGreen3 193 DarkSeaGreen1_2 - 22 DarkGreen 108 DarkSeaGreen 194 Honeydew2 - 23 DeepSkyBlue4 109 LightSkyBlue3 195 LightCyan1 - 24 DeepSkyBlue4_2 110 LightSkyBlue3_2 196 Red1 - 25 DeepSkyBlue4_3 111 SkyBlue2 197 DeepPink2 - 26 DodgerBlue3 112 Chartreuse2_2 198 DeepPink1 - 27 DodgerBlue2 113 DarkOliveGreen3_2 199 DeepPink1_2 - 28 Green4 114 PaleGreen3_2 200 Magenta2_2 - 29 SpringGreen4 115 DarkSeaGreen3 201 Magenta1 - 30 Turquoise4 116 DarkSlateGray3 202 OrangeRed1 - 31 DeepSkyBlue3 117 SkyBlue1 203 IndianRed1 - 32 DeepSkyBlue3_2 118 Chartreuse1 204 IndianRed1_2 - 33 DodgerBlue1 119 LightGreen_2 205 HotPink - 34 Green3 120 LightGreen_3 206 HotPink_2 - 35 SpringGreen3 121 PaleGreen1 207 MediumOrchid1_2 - 36 DarkCyan 122 Aquamarine1_2 208 DarkOrange - 37 LightSeaGreen 123 DarkSlateGray1 209 Salmon1 - 38 DeepSkyBlue2 124 Red3 210 LightCoral - 39 DeepSkyBlue1 125 DeepPink4_3 211 PaleVioletRed1 - 40 Green3_2 126 MediumVioletRed 212 Orchid2 - 41 SpringGreen3_2 127 Magenta3 213 Orchid1 - 42 SpringGreen2 128 DarkViolet_2 214 Orange1 - 43 Cyan3 129 Purple_2 215 SandyBrown - 44 DarkTurquoise 130 DarkOrange3 216 LightSalmon1 - 45 Turquoise2 131 IndianRed 217 LightPink1 - 46 Green1 132 HotPink3 218 Pink1 - 47 SpringGreen2_2 133 MediumOrchid3 219 Plum1 - 48 SpringGreen1 134 MediumOrchid 220 Gold1 - 49 MediumSpringGreen 135 MediumPurple2 221 - LightGoldenrod2_2 - 50 Cyan2 136 DarkGoldenrod 222 - LightGoldenrod2_3 - 51 Cyan1 137 LightSalmon3 223 NavajoWhite1 - 52 DarkRed 138 RosyBrown 224 MistyRose1 - 53 DeepPink4 139 Grey63 225 Thistle1 - 54 Purple4 140 MediumPurple2_2 226 Yellow1 - 55 Purple4_2 141 MediumPurple1 227 LightGoldenrod1 - 56 Purple3 142 Gold3 228 Khaki1 - 57 BlueViolet 143 DarkKhaki 229 Wheat1 - 58 Orange4 144 NavajoWhite3 230 Cornsilk1 - 59 Grey37 145 Grey69 231 Grey100 - 60 MediumPurple4 146 LightSteelBlue3 232 Grey3 - 61 SlateBlue3 147 LightSteelBlue 233 Grey7 - 62 SlateBlue3_2 148 Yellow3 234 Grey11 - 63 RoyalBlue1 149 DarkOliveGreen3_3 235 Grey15 - 64 Chartreuse4 150 DarkSeaGreen3_2 236 Grey19 - 65 DarkSeaGreen4 151 DarkSeaGreen2 237 Grey23 - 66 PaleTurquoise4 152 LightCyan3 238 Grey27 - 67 SteelBlue 153 LightSkyBlue1 239 Grey30 - 68 SteelBlue3 154 GreenYellow 240 Grey35 - 69 CornflowerBlue 155 DarkOliveGreen2 241 Grey39 - 70 Chartreuse3 156 PaleGreen1_2 242 Grey42 - 71 DarkSeaGreen4_2 157 DarkSeaGreen2_2 243 Grey46 - 72 CadetBlue 158 DarkSeaGreen1 244 Grey50 - 73 CadetBlue_2 159 PaleTurquoise1 245 Grey54 - 74 SkyBlue3 160 Red3_2 246 Grey58 - 75 SteelBlue1 161 DeepPink3 247 Grey62 - 76 Chartreuse3_2 162 DeepPink3_2 248 Grey66 - 77 PaleGreen3 163 Magenta3_2 249 Grey70 - 78 SeaGreen3 164 Magenta3_3 250 Grey74 - 79 Aquamarine3 165 Magenta2 251 Grey78 - 80 MediumTurquoise 166 DarkOrange3_2 252 Grey82 - 81 SteelBlue1_2 167 IndianRed_2 253 Grey85 - 82 Chartreuse2 168 HotPink3_2 254 Grey89 - 83 SeaGreen2 169 HotPink2 255 Grey93 - 84 SeaGreen1 170 Orchid - 85 SeaGreen1_2 171 MediumOrchid1 - - There are two colors (foreground and background) and only one bold - attribute. Thus single bold attribute affects both colors when - "reverse" attribute is used in vifm run inside terminal emulator. At - the same time linux native console can handle boldness of foreground - and background colors independently, but for consistency with terminal - emulators this is available only implicitly by using light versions of - colors. This behaviour might be changed in the future. - - Although vifm supports 256 colors in a sense they are supported by UI - drawing library, whether you will be able to use all of them highly - depends on your terminal. To set up terminal properly, make sure that - $TERM in the environment you run vifm is set to name of 256-color - terminal (on *nixes it can also be set via X resources), e.g. - xterm-256color. One can find list of available terminal names by - listing /usr/lib/terminfo/. Number of colors supported by terminal - with current settings can be checked via "tput colors" command. - - In order to use 24-bit colors one needs a terminal that supports them, - corresponding terminfo record (probably ends in "-direct" like in - "xterm-direct") and $TERM pointing to it. When vifm detects direct - color support "cterm*" values are ignored for groups which have at - least one of "gui*" values set, otherwise they are used after - translating via a builtin palette. - - Here is the hierarchy of highlight groups, which you need to know for - using transparency: - JobLine - SuggestBox - StatusLine - WildMenu - User1..User9 - Border - CmdLine - ErrorMsg - Win - OtherWin - AuxWin - OddLine - File name specific highlights - Directory - Link - BrokenLink - HardLink - Socket - Device - Fifo - Executable - Selected - CurrLine - LineNr (in active pane) - OtherLine - LineNr (in inactive pane) - TopLine - TopLineSel - TabLineSel (for pane tabs) - User1..User9 - TabLine - TabLineSel - User1..User9 - - "none" means default terminal color for highlight groups at the first - level of the hierarchy and transparency for all others. - - Here file name specific highlights mean those configured via globs ({}) - or regular expressions (//). At most one of them is applied per file - entry, namely the first that matches file name, hence order of - :highlight commands might be important in certain cases. - - :history - - :his[tory] - display a menu with list of visited directories. See "Menus and - dialogs" section for controls. - - :his[tory] x - x can be: - d[ir] or . show directory history. - c[md] or : show command line history. - s[earch] or / show search history and search forward on l - key. - f[search] or / show search history and search forward on l - key. - b[search] or ? show search history and search backward on l - key. - i[nput] or @ show prompt history (e.g. on one file - renaming). - fi[lter] or = show filter history (see description of the "=" - normal mode command). - See "Menus and dialogs" section for controls. - - :histnext - - :histnext - same as . The main use case for this command is to work - around the common pain point of and being the same - ASCII character: one could alter the terminal emulator settings - to emit, for example, the `F1` keycode when Ctrl-I is pressed, - then `:noremap :histnext` in vifm, add "t" flag to the - 'cpoptions', and thus have both and working as - expected. - - :histprev - - :histprev - same as . - - :if - - :if {expr1} - start conditional block. Commands are executed until next - matching :elseif, :else or :endif command if {expr1} evaluates - to non-zero, otherwise they are ignored. See also help on :else - and :endif commands. - - Example: - - if $TERM == 'screen.linux' - highlight CurrLine ctermfg=lightwhite ctermbg=lightblack - elseif $TERM == 'tmux' - highlight CurrLine cterm=reverse ctermfg=black ctermbg=white - else - highlight CurrLine cterm=bold,reverse ctermfg=black ctermbg=white - endif - - :invert - - :invert [f] - invert file name filter. - - :invert? [f] - show current filter state. - - :invert s - invert selection. - - :invert o - invert sorting order of the primary sorting key. - - :invert? o - show sorting order of the primary sorting key. - - :jobs - - :jobs display menu of current backgrounded processes. See "Menus and - dialogs" section for controls. - - :let - - :let $ENV_VAR = - set an environment variable. Warning: setting environment - variable to an empty string on Windows removes it. - - :let $ENV_VAR .= - append value to environment variable. - - :let &[l:|g:]opt = - sets option value. - - :let &[l:|g:]opt .= - append value to string option. - - :let &[l:|g:]opt += - increasing option value, adding sub-values. - - :let &[l:|g:]opt -= - decreasing option value, removing sub-values. - - Where could be a single-quoted string, double-quoted string, an - environment variable, function call or a concatanation of any of them - in any order using the '.' operator. Any whitespace is ignored. - - :locate - - :locate filename - use "locate" command to create a menu of filenames. Selecting a - file from the menu will reload the current file list in vifm to - show the selected file. By default the command relies on the - external "locate" utility (it's assumed that its database is - already built), which can be customized by altering value of the - 'locateprg' option. See "Menus and dialogs" section for - controls. - - :locate - repeat last :locate command. - - :ls - - :ls lists windows of active terminal multiplexer (only when terminal - multiplexer is used). This is achieved by issuing proper - command for active terminal multiplexer, thus the list is not - handled by vifm. - - :lstrash - - :lstrash - display a menu with list of files in trash. Each element of the - list is original path of a deleted file, thus the list can - contain duplicates. See "Menus and dialogs" section for - controls. - - :mark - - :[range]ma[rk][?] x [/full/path] [filename] - Set mark x (a-zA-Z0-9) at /full/path and filename. By default - current directory is being used. If no filename was given and - /full/path is current directory then last file in [range] is - used. Using of macros is allowed. Question mark will stop - command from overwriting existing marks. - - :marks - - :marks create a pop-up menu of marks. See "Menus and dialogs" section - for controls. - - :marks list ... - display the contents of the marks that are mentioned in list. - - :media - - :media only for *nix - display media management menu. See "Menus and dialogs" section - for controls. See also 'mediaprg' option. - - :messages - - :mes[sages] - shows previously given messages (up to 50). - - :mkdir - - :[line]mkdir[!] dir ... - create directories at specified paths. The [line] can be used - to pick node in a tree-view. "!" means make parent directories - as needed. Macros are expanded. - - :move - - :[range]m[ove][!?][ &] - move files to directory of other view. With "?" prompts for - destination file names in an editor. "!" forces overwrite. - - :[range]m[ove][!] path[ &] - move files to directory specified with the path (absolute or - relative to directory of other view). "!" forces overwrite. - - :[range]m[ove][!] name1 name2...[ &] - move files to directory of other view giving each next file a - corresponding name from the argument list. "!" forces - overwrite. - - :nohlsearch - - :noh[lsearch] - clear selection in current pane. - - :normal - - :norm[al][!] commands - execute normal mode commands. If "!" is used, user defined - mappings are ignored. Unfinished last command is aborted as if - or was typed. A ":" should be completed as well. - Commands can't start with a space, so put a count of 1 (one) - before it. - - :only - - :on[ly] - switch to a one window view. - - :plugin - - :plugin load - loads all plugins. To be used in configuration file to manually - load plugins at an earlier point. The plugins can be loaded - only once, additional calls will do nothing. - - :plugin blacklist {plugin} - adds {plugin} to the list of plugins to be ignored. - - :plugin whitelist {plugin} - adds {plugin} to the list of plugins to be loaded while ignoring - all other plugins. This list should normally be empty. - - :plugins - - :plugins - open plugins menu. See "Menus and dialogs" section for - controls. - - :popd - - :popd remove pane directories from stack. - - :pushd - - :pushd[!] /curr/dir [/other/dir] - add pane directories to stack and process arguments like :cd - command. - - :pushd exchange the top two items of the directory stack. - - :put - - :[line]pu[t][!] [reg] [ &] - put files from specified register (" by default) into current - directory. The [line] can be used to pick node in a tree-view. - "!" moves files "!" moves files from their original location - instead of copying them. During this operation no confirmation - dialogs will be shown, all checks are performed beforehand. - - :pwd - - :pw[d] show the present working directory. - - :qall - - :qa[ll][!] - exit vifm (add ! to skip saving changes and checking for active - backgrounded commands). - - :quit - - :q[uit][!] - if there is more than one tab, close the current one, otherwise - exit vifm (add ! to skip saving state and checking for active - backgrounded commands). - - :redraw - - :redr[aw] - redraw the screen immediately. - - :registers - - :reg[isters] - display menu with registers content. - - :reg[isters] list ... - display the contents of the numbered and named registers that - are mentioned in list (for example "az to display "", "a and "z - content). - - :regular - - :regular - - switch to regular view leaving custom view. - :rename - - :[range]rename[!] - rename files by editing their names in an editor. "!" renames - files recursively in subdirectories. See "External Renaming" - section. - - :[range]rename name1 name2... - rename each of selected files to a corresponding name. - - :restart - - :restart - free a lot of things (histories, commands, etc.), reread - vifminfo, vifmrc and session files and run startup commands - passed in the argument list, thus losing all unsaved changes - (e.g. recent history or keys mapped after starting this - instance). Session that wasn't yet stored gets reset. - - While many things get reset, some basic UI state and current - locations are preserved, including tabs. - - :restart full - variation of :restart that makes no attempt to preserve - anything. - - :restore - - :[range]restore - restore file from trash directory, doesn't work outside one of - trash directories. See "Trash directory" section below. - - :rlink - - :[range]rlink[!?] - create relative symbolic links to files in directory of other - view. With "?" prompts for destination file names in an editor. - "!" forces overwrite. - - :[range]rlink[!] path - create relative symbolic links of files in directory specified - with the path (absolute or relative to directory of other view). - "!" forces overwrite. - - :[range]rlink[!] name1 name2... - create relative symbolic links of files in directory of other - view giving each next link a corresponding name from the - argument list. "!" forces overwrite. - - :screen - - :screen - toggle whether to use the terminal multiplexer or not. - A terminal multiplexer uses pseudo terminals to allow multiple - windows to be used in the console or in a single xterm. - Starting vifm from terminal multiplexer with appropriate support - turned on will cause vifm to open a new terminal multiplexer - window for each new file edited or program launched from vifm. - This requires screen version 3.9.9 or newer for the screen -X - argument or tmux (1.8 version or newer is recommended). - - :screen! - enable integration with terminal multiplexers. - - :screen? - display whether integration with terminal multiplexers is - enabled. - - Note: the command is called screen for historical reasons (when tmux - wasn't yet supported) and might be changed in future releases, or get - an alias. - - :select - - :[range]select - select files in the given range (current file if no range is - given). - - :select {pattern} - select files that match specified pattern. Possible {pattern} - forms are described in "Patterns" section below. Trailing slash - for directories is taken into account, so `:select! */ | invert - s` selects only files. - - :select //[iI] - same as item above, but reuses last search pattern. - - :select !{external command} - select files from the list supplied by external command. Files - are matched by full paths, relative paths are converted to - absolute ones beforehand. - - :[range]select! [{pattern}] - same as above, but resets previously selected items before - proceeding. - - :session - - :session? - print name of the current session. - - :session - detach current session without saving it. Resets v:session. - - :session name - create or load and switch to a session with the specified name. - Name can't contain slashes. Session active at the moment is - saved before the switch. Session is also automatically saved - when quiting the application in usual ways. Sets v:session. - - :set - - :se[t] display all options that differ from their default value. - - :se[t] all - display all options. - - :se[t] opt1=val1 opt2='val2' opt3="val3" ... - sets given options. For local options both values are set. - You can use following syntax: - - for all options - option, option? and option& - - for boolean options - nooption, invoption and option! - - for integer options - option=x, option+=x and option-=x - - for string options - option=x and option+=x - - for string list options - option=x, option+=x, option-=x and - option^=x - - for enumeration options - option=x, option+=x and option-=x - - for set options - option=x, option+=x, option-=x and - option^=x - - for charset options - option=x, option+=x, option-=x and - option^=x - - the meaning: - - option - turn option on (for boolean) or print its value (for - all others) - - nooption - turn option off - - invoption - invert option state - - option! - invert option state - - option? - print option value - - option& - reset option to its default value - - option=x or option:x - set option to x - - option+=x - add/append x to option - - option-=x - remove (or subtract) x from option - - option^=x - toggle x presence among values of the option - - Option name can be prepended and appended by any number of - whitespace characters. - - :setglobal - - :setg[lobal] - display all global options that differ from their default value. - - :setg[lobal] all - display all global options. - - :setg[lobal] opt1=val1 opt2='val2' opt3="val3" ... - same as :set, but changes/prints only global options or global - values of local options. Changes to the latter might be not - visible until directory is changed. - - :setlocal - - :setl[ocal] - display all local options that differ from their default value. - - :setl[ocal] all - display all local options. - - :setl[ocal] opt1=val1 opt2='val2' opt3="val3" ... - same as :set, but changes/prints only local values of local - options. - - :shell - - :sh[ell][!] - start a shell in current directory. "!" suppresses spawning - dedicated window of terminal multiplexer for a shell. To make - vifm adaptive to environment it uses $SHELL if it's defined, - otherwise 'shell' value is used. - - - :siblnext - - :[count]siblnext[!] - - change directory to [count]th next sibling directory after - current path using value of global sort option of current pane. - "!" enables wrapping. - - For example, say, you're at /boot and root listing starts like - this: - - bin/ - boot/ - dev/ - ... - - Issuing :siblnext will navigate to /dev. - - - :siblprev - - :[count]siblprev[!] - same as :siblnext, but in the opposite direction. - - :sort - - :sor[t] - display dialog with different sorting methods, where one can - select the primary sorting key. When 'viewcolumns' options is - empty and 'lsview' is off, changing primary sorting key will - also affect view look (in particular the second column of the - view will be changed). See "Menus and dialogs" section for - controls. - - :source - - :so[urce] file - read command-line commands from the file. - - :split - - :sp[lit] - switch to a two window horizontal view. - - :sp[lit]! - toggle horizontal window splitting. - - :sp[lit] path - splits the window horizontally to show both file directories. - Also changes other pane to path (absolute or relative to current - directory of active pane). - - :stop - - :st[op] - suspend vifm (same as pressing Ctrl-Z). Does nothing if this - instance isn't running in a shell. The command exists to allow - mapping to the action of Ctrl-Z. - - :substitute - - :[range]s[ubstitute]/pattern/string/[flags] - for each file in range replace a match of pattern with string. - - String can contain \0...\9 to link to capture groups (\0 - all match, - \1 - first group, etc.). - - Pattern is stored in search history. - - Available flags: - - - i - ignore case (the 'ignorecase' and 'smartcase' options are not - used) - - - I - don't ignore case (the 'ignorecase' and 'smartcase' options are - not used) - - - g - substitute all matches in each file name (each g toggles this) - - :[range]s[ubstitute]/pattern - substitute pattern with an empty string. - - :[range]s[ubstitute]//string/[flags] - use last pattern from search history. - - :[range]s[ubstitute] - repeat previous substitution command. - - :sync - - :sync [relative path] - change the other pane to the current pane directory or to some - path relative to the current directory. Using macros is - allowed. - - :sync! change the other pane to the current pane directory and - synchronize cursor position. If current pane displays custom - list of files, position before entering it is used (current one - might not make any sense). - - - :sync! [location | cursorpos | localopts | filters | filelist | tree | - all]... - change enumerated properties of the other pane to match - corresponding properties of the current pane. Arguments have - the following meanings: - - - location - current directory of the pane; - - - cursorpos - cursor position (doesn't make sense without - "location"); - - - localopts - all local options; - - - filters - all filters; - - - filelist - list of files for custom view (implies - "location"); - - - tree - tree structure for tree view (implies "location"); - - - all - all of the above. - - :tabclose - - :tabc[lose] - close current tab, unless it's the only one open at current - scope. - - :tabmove - - :tabm[ove] [N] - without the argument or with `$` as the argument, current tab - becomes the last tab. With the argument, current tab is moved - after the tab with the specified number. Argument of `0` moves - current tab to the first position. - - :tabname - - :tabname [name] - set, update or reset (when no argument is provided) name of the - current tab. - - :tabnew - - :tabnew [path] - create new tab. Accepts optional path for the new tab. Macros - and environment variables are expanded. - - :tabnext - - :tabn[ext] - switch to the next tab (wrapping around). - - :tabn[ext] {n} - go to the tab number {n}. Tab numeration starts with 1. - - :tabonly - - :tabo[nly] - close all tabs but the current one. Closes pane tabs only at - the active side. - - :tabprevious - - :tabp[revious] - switch to the previous tab (wrapping around). - - :tabp[revious] {n} - go to the {n}-th previous tab. Note that :tabnext handles its - argument differently. - - :touch - - :[line]touch file... - create files at specified paths. Aborts on errors. Doesn't - update time of existing files. The [line] can be used to pick - node in a tree-view. Macros are expanded. - - :tr - - :[range]tr/pattern/string/ - for each file in range transliterate the characters which appear - in pattern to the corresponding character in string. When - string is shorter than pattern, it's padded with its last - character. - - :trashes - - :trashes - lists all valid trash directories in a menu. Only non-empty and - writable trash directories are shown. This is exactly the list - of directories that are cleared when :empty command is executed. - - :trashes? - same as :trashes, but also displays size of each trash - directory. - - :tree - - :tree turn pane into tree view with current directory as its root. - The tree view is implemented on top of a custom view, but is - automatically kept in sync with file system state and considers - all the filters. Thus the structure corresponds to what one - would see on visiting the directories manually. As a special - case for trees built out of custom view file-system tracking - isn't performed. - - To leave tree view go up from its root or use gh at any level of - the tree. Any command that changes directory will also do, in - particular, `:cd ..`. - - Tree structure is incompatible with alternative representations, - so values of 'lsview' and 'millerview' options are ignored. - - The "depth" argument specifies nesting level on which loading of - subdirectories won't happen (they will be folded). Values start - at 1. - - :tree! toggle current view in and out of tree mode. - - :undolist - - :undol[ist] - display list of latest changes. Use "!" to see actual commands. - See "Menus and dialogs" section for controls. - - :unlet - - :unl[et][!] $ENV_VAR1 $ENV_VAR2 ... - remove environment variables. Add ! to omit displaying of - warnings about nonexistent variables. - - :unselect - - :[range]unselect - unselect files in the given range (current file if no range is - given). - - :unselect {pattern} - unselect files that match specified pattern. Possible {pattern} - forms are described in "Patterns" section below. Trailing slash - for directories is taken into account, so `:unselect */` - unselects directories. - - :unselect !{external command} - unselect files from the list supplied by external command. - Files are matched by full paths, relative paths are converted to - absolute ones beforehand. - - :unselect //[iI] - same as item above, but reuses last search pattern. - - :version - - :ve[rsion] - show menu with version information. - - :vifm - - :vifm same as :version. - - :view - - :vie[w] - toggle on and off the quick file view (preview of file's - contents). See also 'quickview' option. - - :vie[w]! - turn on quick file view if it's off. - - :volumes - - :volumes - only for MS-Windows - display menu with volume list. Hitting l (or Enter) key opens - appropriate volume in the current pane. See "Menus and dialogs" - section for controls. - - :vsplit - - :vs[plit] - switch to a two window vertical view. - - :vs[plit]! - toggle window vertical splitting. - - :vs[plit] path - split the window vertically to show both file directories. And - changes other pane to path (absolute or relative to current - directory of active pane). - - :wincmd - - :[count]winc[md] {arg} - same as running Ctrl-W [count] {arg}. - - :windo - - :windo [command...] - execute command for each pane (same as :winrun % command). - - :winrun - - :winrun type [command...] - execute command for pane(s), which is determined by type - argument: - - ^ - top-left pane - - $ - bottom-right pane - - % - all panes - - . - current pane - - , - other pane - - :write - - :w[rite] - write current state to vifminfo and session files (if a session - is active). - - :wq - - :wq[!] same as :quit, but ! disables only the check of backgrounded - commands, while state of the application is always written. - :wqall - - :wqa[ll][!] - same as :qall, but ! disables only the check of backgrounded - commands, while state of the application is always written. - - :xall - - :xa[ll][!] - same as :qall. - - :xit - - :x[it][!] - same as :quit. - - :yank - - :[range]y[ank] [reg] [count] - will yank files to the reg register. - - :map lhs rhs - - :map lhs rhs - map lhs key sequence to rhs in normal and visual modes. - - :map! lhs rhs - map lhs key sequence to rhs in command line mode. - - - :cmap :dmap :mmap :nmap :qmap - :vmap - - :cm[ap] lhs rhs - map lhs to rhs in command line mode. - - :dm[ap] lhs rhs - map lhs to rhs in dialog modes. - - :mm[ap] lhs rhs - map lhs to rhs in menu mode. - - :nm[ap] lhs rhs - map lhs to rhs in normal mode. - - :qm[ap] lhs rhs - map lhs to rhs in view mode. - - :vm[ap] lhs rhs - map lhs to rhs in visual mode. - - - :*map - - :cm[ap] - list all maps in command line mode. - - :dm[ap] - list all maps in dialog modes. - - :mm[ap] - list all maps in menu mode. - - :nm[ap] - list all maps in normal mode. - - :qm[ap] - list all maps in view mode. - - :vm[ap] - list all maps in visual mode. - - :*map beginning - - :cm[ap] beginning - list all maps in command line mode that start with the - beginning. - - :dm[ap] beginning - list all maps in dialog modes that start with the beginning. - - :mm[ap] beginning - list all maps in menu mode that start with the beginning. - - :nm[ap] beginning - list all maps in normal mode that start with the beginning. - - :qm[ap] beginning - list all maps in view mode that start with the beginning. - - :vm[ap] beginning - list all maps in visual mode that start with the beginning. - - :noremap - - :no[remap] lhs rhs - map the key sequence lhs to rhs for normal and visual modes, but - don't expand user mappings in rhs. - - :no[remap]! lhs rhs - map the key sequence lhs to rhs for command line mode, but don't - expand user mappings in rhs. - - :cnoremap :dnoremap :mnoremap :nnoremap :qnoremap - :vnoremap - - :cno[remap] lhs rhs - map the key sequence lhs to rhs for command line mode, but don't - expand user mappings in rhs. - - :dn[oremap] lhs rhs - map the key sequence lhs to rhs for dialog modes, but don't - expand user mappings in rhs. - - :mn[oremap] lhs rhs - map the key sequence lhs to rhs for menu mode, but don't expand - user mappings in rhs. - - :nn[oremap] lhs rhs - map the key sequence lhs to rhs for normal mode, but don't - expand user mappings in rhs. - - :qn[oremap] lhs rhs - map the key sequence lhs to rhs for view mode, but don't expand - user mappings in rhs. - - :vn[oremap] lhs rhs - map the key sequence lhs to rhs for visual mode, but don't - expand user mappings in rhs. - - :unmap - - :unm[ap] lhs - remove user mapping of lhs from normal and visual modes. - - :unm[ap]! lhs - remove user mapping of lhs from command line mode. - - :cunmap :dunmap :munmap :nunmap :qunmap - :vunmap - - :cu[nmap] lhs - remove user mapping of lhs from command line mode. - - :du[nmap] lhs - remove user mapping of lhs from dialog modes. - - :mu[nmap] lhs - remove user mapping of lhs from menu mode. - - :nun[map] lhs - remove user mapping of lhs from normal mode. - - :qun[map] lhs - remove user mapping of lhs from view mode. - - :vu[nmap] lhs - remove user mapping of lhs from visual mode. - -Ranges - The ranges implemented include: - 2,3 - from second to third file in the list (including it) - % - the entire directory. - . - the current position in the filelist. - $ - the end of the filelist. - 't - the mark position t. - - Examples: - - :%delete - - would delete all files in the directory. - - :2,4delete - - would delete the files in the list positions 2 through 4. - - :.,$delete - - would delete the files from the current position to the end of the - filelist. - - :3delete4 - - would delete the files in the list positions 3, 4, 5, 6. - - If a backward range is given :4,2delete - an query message is given and - user can chose what to do next. - - The builtin commands that accept a range are :d[elete] and :y[ank]. - -Command macros - The command macros may be used in user commands. - - %a User arguments. When user arguments contain macros, they are - expanded before preforming substitution of %a. - - %c %"c The current file under the cursor. - - %C %"C The current file under the cursor in the other directory. - - %f %"f All of the selected files, but see "Selection" section below. - - %F %"F All of the selected files in the other directory list, but see - "Selection" section below. - - %b %"b Same as %f %F. - - %d %"d Full path to current directory. - - %D %"D Full path to other file list directory. - - %rx %"rx - Full paths to files in the register {x}. In case of invalid - symbol in place of {x}, it's processed with the rest of the line - and default register is used. - - %m Show command output in a menu. - - %M Same as %m, but l (or Enter) key is handled like for :locate and - :find commands. - - %u Process command output as list of paths and compose custom view - out of it. - - %U Same as %u, but implies less list updates inside vifm, which is - absence of sorting at the moment. - - %Iu Same as %u, but gives up terminal before running external - command. - - %IU Same as %U, but gives up terminal before running external - command. - - %S Show command output in the status bar. - - %q Redirect command output to quick view, which is activated if - disabled. - - %s Execute command in horizontally split window of active terminal - multiplexer (ignored if not running inside one). - - %v Same as %s, but splits vertically. - - %n Forbid use of terminal multiplexer to run the command. - - %i Completely ignore command output. For background jobs this - suppresses error dialogs, while still storing errors internally - for viewing via :jobs menu. - - %Pl Pipe list of files to standard input of a command. - - %Pz Same as %Pz, but separates paths by null ('\0') character. - - %pc Marks the end of the main command and the beginning of the clear - command for graphical preview, which is invoked on closing - preview of a file. - - %pd Marks a preview command as one that directly communicates with - the terminal. Beware that this is for things like sixel which - are self-contained sequences that depend only on current cursor - position, using this with anything else is likely to mangle - terminal state. - - The following dimensions and coordinates are in characters: - - %px x coordinate of top-left corner of preview area. - - %py y coordinate of top-left corner of preview area. - - %pw width of preview area. - - %ph height of preview area. - - - Use %% if you need to put a percent sign in your command. - - Note that %i, %Iu, %IU, %m, %M, %n, %q, %s, %S, %u, %U and %v macros - are mutually exclusive. Only the last one of them on the command will - take effect. - - Note that %Pl and %Pz are mutually exclusive. Only the last one of - them on the command will take effect. - - You can use file name modifiers after %c, %C, %f, %F, %b, %d and %D - macros. Supported modifiers are: - - - :p - full path - - - :u - UNC name of path (e.g. "\\server" in - "\\server\share"), Windows only. Expands to current computer name - for not UNC paths. - - - :~ - relative to the home directory - - - :. - relative to current directory - - - :h - head of the file name - - - :t - tail of the file name - - - :r - root of the file name (without last extension) - - - :e - extension of the file name (last one) - - - :s?pat?sub? - substitute the first occurrence of pat with sub. - You can use any character for '?', but it must not occur in pat or - sub. - - - :gs?pat?sub? - like :s, but substitutes all occurrences of pat with - sub. - - See ':h filename-modifiers' in Vim's documentation for the detailed - description. - - Using %x means expand corresponding macro escaping all characters that - have special meaning. And %"x means using of double quotes and escape - only backslash and double quote characters, which is more useful on - Windows systems. - - Position and quantity (if there is any) of %m, %M, %S or %s macros in - the command is unimportant. All their occurrences are removed from the - resulting command. - - %c and %f macros are expanded to file names only, when %C and %F are - expanded to full paths. %f and %F follow this in %b too. - - :com move mv %f %D - set the :move command to move all of the files selected in the - current directory to the other directory. - - The %a macro is replaced with any arguments given to an alias command. - All arguments are considered optional. - :com lsl !!ls -l %a - set the lsl command to execute ls -l with - or without an argument. - - :lsl - will list the directory contents of the current directory. - - :lsl filename - will list only the given filename. - - The macros can also be used in directly executing commands. ":!mv %f - %D" would move the current directory selected files to the other - directory. - - Appending & to the end of a command causes it to be executed in the - background. Typically you want to run two kinds of external commands - in the background: - - - GUI applications that doesn't fork thus block vifm (:!sxiv %f &); - - - console tools that do not work with terminal (:!mv %f %D &). - - You don't want to run terminal commands, which require terminal input - or output something in background because they will mess up vifm's TUI. - Anyway, if you did run such a command, you can use Ctrl-L key to update - vifm's TUI. - - Rewriting the example command with macros given above with - backgrounding: - - %m, %M, %s, %S, %u and %U macros cannot be combined with background - mark (" &") as it doesn't make much sense. - -Command backgrounding - Copy and move operation can take a lot of time to proceed. That's why - vifm supports backgrounding of this two operations. To run :copy, - :move or :delete command in the background just add " &" at the end of - a command. - - For each background operation a new thread is created. Job - cancellation can be requested in the :jobs menu via dd shortcut. - - You can see if command is still running in the :jobs menu. - Backgrounded commands have progress instead of process id at the line - beginning. - - Background operations cannot be undone. - -Cancellation - Note that cancellation works somewhat different on Windows platform due - to different mechanism of break signal propagation. One also might - need to use Ctrl-Break shortcut instead of Ctrl-C. - - There are two types of operations that can be cancelled: - - - file system operations; - - - mounting with FUSE (but not unmounting as it can cause loss of - data); - - - calls of external applications. - - Note that vifm never terminates applications, it sends SIGINT signal - and lets the application quit normally. - - When one of set of operations is cancelled (e.g. copying of 5th file of - 10 files), further operations are cancelled too. In this case undo - history will contain only actually performed operations. - - Cancelled operations are indicated by "(cancelled)" suffix appended to - information message on statusbar. - - File system operations - - Currently the following commands can be cancelled: :alink, :chmod, - :chown, :clone, :copy, :delete, :mkdir, :move, :restore, :rlink, - :touch. File putting (on p/P key) can be cancelled as well. It's not - hard to see that these are mainly long-running operations. - - Cancelling commands when they are repeated for undo/redo operations is - allowed for convenience, but is not recommended as further undo/redo - operations might get blocked by side-effects of partially cancelled - group of operations. - - These commands can't be cancelled: :empty, :rename, :substitute, :tr. - - Mounting with FUSE - - It's not considered to be an error, so only notification on the status - bar is shown. - - External application calls - - Each of this operations can be cancelled: :apropos, :find, :grep, - :locate. - -Selection - If there is a selection, it's stashed before proceeding further unless - file under the cursor is part of that selection. This means that when - macros are expanded for :filetype or :filextype programs, `%f` and `%F` - become equivalent to `%c` and `%C` respectively if current file is not - selected. So you run selection by running one of selected files, - otherwise you're running a single file even if there are other selected - entries. - - When running a selection it must not include broken symbolic links, has - to be consistent and set of file handlers must be compatible. - Consistency means that selection contains either only directories - (including links to them) or only files, but not their mix. - - Compatibility is a more sophisticated check, but it's defined in a - natural way so that you get what you'd expect. The following - properties of selection are taken into account while checking it for - compatibility and deciding how to handle it: - - - 1. If there any files for which handler isn't defined, then all files - are opened using 'vicmd' or 'vixcmd'. - - - 2. If all handlers match the following criteria: - - backgrounded - - include `%c` and/or `%C` - - include neither `%f` nor `%F` - then each file is executed independently of the rest. - - - 3. If all handlers are equal, the common handler is executed. This - handler might ignore selection and process only file under the - cursor. - - - 4. Otherwise, an error is reported, because handlers differ and they - don't support parallel execution. - -Patterns - :highlight, :filetype, :filextype, :fileviewer commands and 'classify' - option support globs, regular expressions and mime types to match file - names or their paths. - - There are six possible ways to write a single pattern: - - 1. [!]{comma-separated-name-globs} - - 2. [!]{{comma-separated-path-globs}} - - 3. [!]/name-regular-expression/[iI] - - 4. [!]//path-regular-expression//[iI] - - 5. [!] - - 6. undecorated-pattern - - First five forms can include leading exclamation mark that negates - pattern matching. - - The last form is implicitly refers to one of others. :highlight does - not accept undecorated form, while :filetype, :filextype, :fileviewer, - :select, :unselect and 'classify' treat it as list of name globs. - - Path patterns receive absolute path of the file that includes its name - component as well. - - To combine several patterns (AND them), make sure you're using one of - the first five forms and write patterns one after another, like this: - {*.vifm} - Mind that if you make a mistake the whole string will be treated as the - sixth form. - - :filetype, :filextype and :fileviewer commands accept comma-separated - list of patterns instead of a single pattern, thus effectively handling - OR operation on them: - {*.vifm},{*.pdf} - Forms that accept comma-separated lists of patterns also process them - as lists of alternatives. - - Patterns with regular expressions - - Regular expression patterns are case insensitive by default, see - description of commands, which might override default behaviour. - - Flags of regular expressions mean the following: - - "i" makes filter case insensitive; - - "I" makes filter case sensitive. They can be repeated multiple - times, but the later one takes precedence (e.g. "iiiI" is equivalent - to "I" and "IiIi" is the same as "i"). - - There are no implicit `^` or `$`, so make sure to specify them - explicitly if the pattern should match the whole name or path. - - Patterns with globs - - "Globs" section below provides short overview of globs and some - important points that one needs to know about them. - - Patterns with mime-types - - Mime type matching is essentially globs matching applied to mime type - of a file instead of its name/path. Note: mime types aren't detected - on Windows. - - Examples - - Associate `evince` to PDF-files only inside `/home/user/downloads/` - directory (excluding its subdirectories): - - :filextype //^/home/user/downloads/[^/]*.pdf$// evince %f - - -Globs - Globs are always case insensitive as it makes sense in general case. - - `*`, `?`, `[` and `]` are treated as special symbols in the pattern. - E.g. - - :filetype * less %c - - matches all files. One can use character classes for escaping, so - - :filetype [*] less %c - - matches only one file name, the one which contains only asterisk - symbol. - - `*` means any number of any characters (possibly an empty substring), - with one exception: asterisk at the pattern beginning doesn't match dot - in the first position. E.g. - - :fileviewer *.zip,*.jar zip -sf %c - - associates using of `zip` program to preview all files with `zip` or - `jar` extensions as listing of their content, but `.file.zip` won't be - matched. - - `?` means any character at this position. E.g. - - :fileviewer ?.out file %c - - calls `file` tool for all files which have exactly one character before - their extension (e.g. a.out, b.out). - - Square brackets designate character class, which means that whole - character class matches against any of characters listed in it. For - example - - :fileviewer *.[ch] highlight -O xterm256 -s dante --syntax c %c - - makes vifm call `highlight` program to colorize source and header files - in C language for a 256-color terminal. Equal command would be - - :fileviewer *.c,*.h highlight -O xterm256 -s dante --syntax c %c - - - Inside square brackets `^` or `!` can be used for symbol class - negotiation and the `-` symbol to set a range. `^` and `!` should - appear right after the opening square bracket. For example - - :filetype *.[!d]/ inspect_dir - - associates `inspect_dir` as additional handler for all directories that - have one character extension unless it's "d" letter. And - - :filetype [0-9].jpg sxiv - - associates `sxiv` picture viewer only for JPEG-files that contain - single digit in their name. - - If you need to include literal comma, which is normally separates - multiple globs, double it. - -:set options - Local options - These are kind of options that are local to a specific view. So - you can set ascending sorting order for left pane and descending - order for right pane. - - In addition to being local to views, each such option also has - two values: - - - local to current directory (value associated with current - location); - - - global to current directory (value associated with the - pane). - - The idea is that current directory can be made a temporary - exception to regular configuration of the view, until directory - change. Use :setlocal for that. :setglobal changes view value - not affecting settings until directory change. :set applies - changes immediately to all values. - - - 'aproposprg' - type: string - default: "apropos %a" - Specifies format for an external command to be invoked by the - :apropos command. The format supports expanding of macros, - specific for a particular *prg option, and %% sequence for - inserting percent sign literally. This option should include - the %a macro to specify placement of arguments passed to the - :apropos command. If the macro is not used, it will be - implicitly added after a space to the value of this option. - - 'autochpos' - type: boolean - default: true - When disabled vifm will set cursor to the first line in the view - after :cd and :pushd commands instead of saved cursor position. - Disabling this will also make vifm clear information about - cursor position in the view history on :cd and :pushd commands - (and on startup if 'autochpos' is disabled in the vifmrc). l - key in the ":history ." and ":trashes" menus are treated like - :cd command. This option also affects marks so that navigating - to a mark doesn't restore cursor position. - - When this option is enabled, more fine grained control over - cursor position is available via 'histcursor' option. - - 'columns' 'co' - type: integer - default: terminal width on startup - Terminal width in characters. - - 'caseoptions' - type: charset - default: "" - This option gives additional control over case sensitivity by - allowing overriding default behaviour to either always be case - sensitive or always be case insensitive. Possible values form - pairs of lower and upper case letters that configure specific - aspect of behaviour: - p - always ignore case of paths during completion. - P - always match case of paths during completion. - g - always ignore case of characters for f/F/;/,. - G - always match case of characters for f/F/;/,. - - At most one item of each pair takes affect, if both or more are - present, only the last one matters. When none of pair's - elements are present, the behaviour is default (depends on - operating system for path completion and on values of - 'ignorecase' and 'smartcase' options for file navigation). - - 'cdpath' 'cd' - type: string list - default: value of $CDPATH with commas instead of colons - Specifies locations to check on changing directory with relative - path that doesn't start with "./" or "../". When non-empty, - current directory is examined after directories listed in the - option. - - This option doesn't affect completion of :cd command. - - Example: - - set cdpath=~ - - This way ":cd bin" will switch to "~/bin" even if directory - named "bin" exists in current directory, while ":cd ./bin" - command will ignore value of 'cdpath'. - - 'chaselinks' - type: boolean - default: false - When enabled path of view is always resolved to real path (with - all symbolic links expanded). - - 'classify' - type: string list - default: ":dir:/" - Specifies file name prefixes and suffixes depending on file type - or name. The format is either of: - - [{prefix}]:{filetype}:[{suffix}] - - [{prefix}]::{pattern}::[{suffix}] - Possible {pattern} forms are described in "Patterns" section - above. - - Priority rules: - - file name patterns have priority over type patterns - - file name patterns are matched in left-to-right order of - their appearance in this option - - Either {prefix} or {suffix} or both can be omitted (which is the - default for all unspecified file types), this means empty - {prefix} and/or {suffix}. {prefix} and {suffix} should consist - of at most eight characters. Elements are separated by commas. - Neither prefixes nor suffixes are part of file names, so they - don't affect commands which operate on file names in any way. - Comma (',') character can be inserted by doubling it. List of - file type names can be found in the description of filetype() - function. - - 'confirm' 'cf' - type: set - default: delete,permdelete - Defines which operations require confirmation: - - delete - moving files to trash (on d or :delete); - - permdelete - permanent deletion of files (on D or :delete! - command or on undo/redo operation). - - 'cpoptions' 'cpo' - type: charset - default: "fst" - Contains a sequence of single-character flags. Each flag - enables behaviour of older versions of vifm. Flags: - - f - when included, running :filter command results in not - inverted (matching files are filtered out) and :filter! in - inverted (matching files are left) filter, when omitted, meaning - of the exclamation mark changes to the opposite; - - s - when included, yy, dd and DD normal mode commands act on - selection, otherwise they operate on current file only; - - t - when included, (thus ) behave as and - switches active pane, otherwise and go forward in - the view history. It's possible to make both and to - work as expected by setting up the terminal to emit a custom - sequence when is pressed; see :histnext for details. - - 'cvoptions' - type: set - default: - Specifies whether entering/leaving custom views triggers events - that normally happen on entering/leaving directories: - - autocmds - trigger autocommands on entering/leaving custom - views; - - localopts - reset local options on entering/leaving custom - views; - - localfilter - reset local filter on entering/leaving custom - views. - - 'deleteprg' - type: string - default: "" - Specifies program to run on files that are permanently removed. - When empty, files are removed as usual, otherwise this command - is invoked on each file by appending its name. If the command - doesn't remove files, they will remain on the file system. - - 'dirsize' - type: enumeration - default: size - Controls how size of directories is displayed in file views. - The following values are possible: - - size - size of directory (i.e., size used to store list of - files) - - nitems - number of entries in the directory (excluding . and - ..) - - Size obtained via ga/gA overwrites this setting so seeing count - of files and occasionally size of directories is possible. - - 'dotdirs' - type: set - default: nonrootparent,treeleafsparent - Controls displaying of dot directories. The following values - are possible: - - rootparent - show "../" in root directory of file system - - nonrootparent - show "../" in non-root directories of file - system - - treeleafsparent - show "../" in empty directories of tree - view - - Note that empty directories always contain "../" entry - regardless of value of this option. "../" disappears at the - moment at least one file is created. - - 'dotfiles' - type: boolean - default: false - Whether dot files are shown in the view. Can be controlled with - z* bindings. - - 'fastrun' - type: boolean - default: false - With this option turned on you can run partially entered - commands with unambiguous beginning using :! (e.g. :!Te instead - of :!Terminal or :!Te). - - 'fillchars' 'fcs' - type: string list - default: "" - Sets characters used to fill borders. - - item default used for - vborder:c ' ' left, middle and right vertical - borders - - If value is omitted, its default value is used. Example: - - set fillchars=vborder:. - - 'findprg' - type: string - default: "find %s %a -print , -type d \( ! -readable -o ! - -executable \) -prune" - Specifies format for an external command to be invoked by the - :find command. The format supports expansion of macros specific - for this particular option and %% sequence for inserting percent - sign literally. The macros are: - - macro value/meaning - %s literal arguments of :find or - list of paths to search in - - %A empty or - literal arguments of :find - %a empty or - literal arguments of :find or - predicate followed by escaped arguments of :find - %p empty or - literal arguments of :find or - escaped arguments (parameters) of :find - - %u redirect output to custom view instead of showing a - menu - %U redirect output to unsorted custom view instead of - showing a menu - - Predicate in %a is "-name" on *nix and "-iname" on Windows. - - If both %u and %U are specified, %U is chosen. - - Some macros can be added implicitly: - - if %s isn't present, it's appended - - if neither of %a, %A and %p is present, %a is appended - - if neither of %s, %a, %A and %p is present, %s and %a are - appended in this order - - The macros slightly change their meaning depending on format of - :find's arguments: - - if the first argument points to an existing directory, %s is - assigned all arguments while %a, %A and %p are left empty - - otherwise: - - %s is assigned a dot (".") meaning current directory or - list of selected file names, if any - - %a, %A and %p are assigned literal arguments when first - argument starts with a dash ("-"), otherwise %a gets an escaped - version of the arguments with a predicate and %p contains - escaped version of the arguments - - Starting with Windows Server 2003 a `where` command is - available. One can configure vifm to use it in the following - way: - - set findprg="where /R %s %A" - - As the syntax of this command is rather limited, one can't use - :find command with selection of more than one item because the - command ignores all directory paths except for the last one. - - When using find port on Windows, another option is to setup - 'findprg' like this: - - set findprg="find %s %a" - - - 'followlinks' - type: boolean - default: true - Follow links on l or Enter. That is navigate to destination - file instead of treating the link as if it were target file. - Doesn't affects links to directories, which are always entered - (use gf key for directories). - - 'fusehome' - type: string - default: "($XDG_DATA_HOME/.local/share | $VIFM)/fuse/" - Directory to be used as a root dir for FUSE mounts. Value of - the option can contain environment variables (in form - "$envname"), which will be expanded (prepend it with a slash to - prevent expansion). The value should expand to an absolute - path. - - If you change this option, vifm won't remount anything. It - affects future mounts only. See "Automatic FUSE mounts" section - below for more information. - - 'gdefault' 'gd' - type: boolean - default: false - When on, 'g' flag is on for :substitute by default. - - 'grepprg' - type: string - default: "grep -n -H -I -r %i %a %s" - Specifies format for an external command to be invoked by the - :grep command. The format supports expanding of macros, - specific for a particular *prg option, and %% sequence for - inserting percent sign literally. This option should include - the %i macro to specify placement of "-v" string when inversion - of results is requested, %a or %A macro to specify placement of - arguments passed to the :grep command and the %s macro to - specify placement of list of files to search in. If some of the - macros are not used, they will be implicitly added after a space - to the value of the 'grepprg' option in the following order: %i, - %a, %s. Note that when neither %a nor %A are specified, it's %a - which is added implicitly. - - Optional %u or %U macro could be used (if both specified %U is - chosen) to force redirection to custom or unsorted custom view - respectively. - - See 'findprg' option for description of difference between %a - and %A. - - Example of setup to use ack (http://beyondgrep.com/) instead of - grep: - - set grepprg='ack -H -r %i %a %s' - - or The Silver Searcher - (https://github.com/ggreer/the_silver_searcher): - - set grepprg='ag --line-numbers %i %a %s' - - - - 'histcursor' - type: set - default: startup,dirmark,direnter - Defines situations when cursor should be moved according to - directory history: - - startup - on loading file lists during startup - - dirmark - after navigating to a mark that doesn't specify - file - - direnter - on opening directory from a file list - - This option has no effect when 'autochpos' is disabled. - - Note that the list is not exhaustive and there are other - situations when cursor is positioned automatically. - - 'history' 'hi' - type: integer - default: 15 - Maximum number of stored items in all histories. - - 'hlsearch' 'hls' - type: boolean - default: true - Automatically select files that are search matches. - - 'iec' type: boolean - default: false - Use KiB, MiB, ... suffixes instead of K, M, ... when printing - size in human-friendly format. - - 'ignorecase' 'ic' - type: boolean - default: false - Ignore case in search patterns (:substitute, / and ? commands), - local filter (but not the rest of filters) and other things - detailed in the description of 'caseoptions'. - - 'incsearch' 'is' - type: boolean - default: false - When this option is set, search and view update for local filter - is be performed starting from initial cursor position each time - search pattern is changed. - - 'iooptions' - type: set - default: - Controls details of file operations. The following values are - available: - - fastfilecloning - perform fast file cloning (copy-on-write), - when available - (available on Linux and btrfs file system). - - 'laststatus' 'ls' - type: boolean - default: true - Controls if status bar is visible. - - 'lines' - type: integer - default: terminal height on startup - Terminal height in lines. - - 'locateprg' - type: string - default: "locate %a" - Specifies format for an external command to be invoked by the - :locate command. The format supports expanding of macros, - specific for a particular *prg option, and %% sequence for - inserting percent sign literally. This option should include - the %a macro to specify placement of arguments passed to the - :locate command. If the macro is not used, it will be - implicitly added after a space to the value of this option. - - Optional %u or %U macro could be used (if both specified %U is - chosen) to force redirection to custom or unsorted custom view - respectively. - - 'mediaprg' - type: string - default: path to bundled script that supports udevil, udisks and - udisks2 - (using udisks2 requires python with dbus module - installed) - OS X: path points to a python script that uses diskutil - {only for *nix} - Specifies command to be used to manage media devices. Used by - :media command. - - The command can be passed the following parameters: - - list -- list media - - mount {device} -- mount a device - - unmount {path} -- unmount given mount point - - The output of `list` subcommand is parsed in search of lines - that start with one of the following prefixes: - - device= - specifies device path (e.g., "/dev/sde") - - label= - specifies optional device label (e.g., "Memory - card") - - info= - specifies arbitrary text to display next to - device (by - default "[label]" is used, if label is - provided) - - mount-point= - specifies a mount point (can be absent or - appear more than once) - - All other lines are ignored. Each `device=` starts a new - section describing a device which should include two other - possible prefixes. - - `list` subcommand is assumed to always succeed, while exit code - of `mount` and `unmount` is taken into account to determine - whether operation was performed successfully. - - 'lsoptions' - type: string list - default: "" - scope: local - - Configures ls-like view. - - item used for - transposed filling view grid by columns rather than by - lines - - - 'lsview' - type: boolean - default: false - scope: local - When this option is set, directory view will be displayed in - multiple columns with file names similar to output of `ls -x` - command. See "ls-like view" section below for format - description. This option has no effect if 'millerview' is on. - - 'milleroptions' - type: string list - default: "lsize:1,csize:1,rsize:1,rpreview:dirs" - scope: local - - Configures miller view. - - item default used for - lsize:num 0 left column - csize:num 1 center column (can't be disabled) - rsize:num 0 right column - rpreview:str dirs right column - - *size specifies ratios of columns. Each ratio is in the range - from 0 to 100 and values are adjusted to fit the limits. Zero - disables a column, but central (main) column can't be disabled. - - rpreview specifies what file-system objects should be previewed - in the right column and can take two values: dirs (only - directories) or all. Both options don't include parent - directory (".."). - - Example of two-column mode which is useful in combination with - :view command: - - set milleroptions=lsize:1,csize:2 - - - 'millerview' - type: boolean - default: false - scope: local - When this option is set, directory view will be displayed in - multiple cascading columns. Ignores 'lsview'. - - 'mintimeoutlen' - type: integer - default: 150 - The fracture of 'timeoutlen' in milliseconds that is waited - between subsequent input polls, which affects various - asynchronous operations (detecting changes made by external - applications, monitoring background jobs, redrawing UI). There - are no strict guarantees, however the higher this value is, the - less is CPU load in idle mode. - - 'number' 'nu' - type: boolean - default: false - scope: local - Print line number in front of each file name when 'lsview' - option is turned off. Use 'numberwidth' to control width of - line number. Also see 'relativenumber'. - - 'numberwidth' 'nuw' - type: integer - default: 4 - scope: local - Minimal number of characters for line number field. - - 'previewoptions' - type: string list - default: "graphicsdelay:50000" - - Tweaks how previewing is done (in quick view, miller view's - column and view mode). - - item default meaning - graphicsdelay:num 0 delay before drawing graphics - (microseconds) - hardgraphicsclear unset redraw screen to get rid of - graphics - toptreestats unset show file counts before the tree - - graphicsdelay is needed if terminal requires some timeout before - it can draw graphics (otherwise it gets lost). - - hardgraphicsclear seems to be necessary to get rid of sixel - graphics in some terminals, where it otherwise lingers. This - can cause flicker on the screen due to erasure followed by - redrawing. - - 'previewprg' - type: string - default: "" - scope: local - - External command to be used instead of preview programs - configured via :fileviewer command. - - Example: - - " always show git log in preview of files inside some repository - au DirEnter '~/git-repo/**/*' setl previewprg='git log --color -- %c 2>&1' - - 'quickview' - type: boolean - default: false - Whether quick view (:view) is currently active or not. - - 'relativenumber' 'rnu' - type: boolean - default: false - scope: local - Print relative line number in front of each file name when - 'lsview' option is turned off. Use 'numberwidth' to control - width of line number. Various combinations of 'number' and - 'relativenumber' lead to such results: - - nonumber number - - norelativenumber | first | 1 first - | second | 2 second - | third | 3 third - - relativenumber | 1 first | 1 first - | 0 second |2 second - | 1 third | 1 third - - - 'rulerformat' 'ruf' - type: string - default: "%l/%S " - Determines the content of the ruler. Its minimal width is 13 - characters and it's right aligned. Following macros are - supported: - %= - separation point between left and right aligned halves of - the line - %l - file number - %L - total number of files in view (including filtered out - ones) - %x - number of files excluded by filters - %0- - old name for %x macro - %P - percentage through file list (All, Top, xx% or Bot), - always 3 in length - %S - number of displayed files - %= - separation point between left and right align items - %% - literal percent sign - %[ - designates beginning of an optional block - %] - designates end of an optional block - - Percent sign can be followed by optional minimum field width. - Add '-' before minimum field width if you want field to be right - aligned. - - Optional blocks are ignored unless at least one macro inside of - them is expanded to a non-empty value. - - Example: - - set rulerformat='%2l-%S%[ +%x%]' - - 'runexec' - type: boolean - default: false - Run executable file on Enter, l or Right Arrow key. Behaviour - of the last two depends on the value of the 'lsview' option. - - 'scrollbind' 'scb' - type: boolean - default: false - When this option is set, vifm will try to keep difference of - scrolling positions of two windows constant. - - 'scrolloff' 'so' - type: integer - default: 0 - Minimal number of screen lines to keep above and below the - cursor. If you want cursor line to always be in the middle of - the view (except at the beginning or end of the file list), set - this option to some large value (e.g. 999). - - 'sessionoptions' 'ssop' - sessionoptions ssop - type: set - default: tui,state,tabs,savedirs,dhistory - An equivalent of 'vifminfo' for sessions, uses the same values. - When both options include the same value, data from session file - has higher priority (data from vifminfo isn't necessarily - completely discarded, instead it's merged with the state of a - session the same way state of multiple instances is merged on - exit). - - 'shell' 'sh' - type: string - default: $SHELL or "/bin/sh" or "cmd" (on MS-Windows) - Full path to the shell to use to run external commands. On *nix - a shell argument can be supplied. - - 'shellcmdflag' 'shcf' - type: string - default: "-c" or "/C" (for cmd.exe on MS-Windows) - Command-line option used to pass a command to 'shell'. It's - used in contexts where command comes from the user. - - Note that using this option to force interactive mode of the - shell is most likely a BAD IDEA. In general interactive host - and interactive child shell can't share the same terminal - session. You can't even run such a shell in background. - Consider writing a wrapper for your shell that preloads aliases - and commands without making the shell interactive and ending up - using it in a way it was not meant to be used. - - Note that this option is ignored when 'shell' is set to - PowerShell due to the internal use of `-encodedCommand`. - - 'shortmess' 'shm' - type: charset - default: "p" - Contains a sequence of single-character flags. Each flag - enables shortening of some message displayed by vifm in the TUI. - Flags: - - L - display only last directory in tab line instead of full - path. - - M - shorten titles in windows of terminal multiplexers - created by vifm down to file name instead of using full path. - - T - truncate status-bar messages in the middle if they are - too long to fit on the command line. "..." will appear in the - middle. - - p - use tilde shortening in view titles. - - - 'showtabline' 'stal' - type: enumeration - default: multiple - Specifies when tab line should be displayed. Possible values: - - never - never display tab line - - multiple - show tab line only when there are at least two - tabs - - always - display tab line always - - Alternatively 0, 1 and 2 Vim-like values are also accepted and - correspond to "never", "multiple" and "always" respectively. - - 'sizefmt' - type: string list - default: "units:iec" - Configures the way size is formatted in human-friendly way. - - item value meaning - units: iec Use 1024 byte units (K or KiB, - etc.). - See 'iec' option. - si Use 1000 byte units (KB, etc.). - precision: i > 0 How many fraction digits to - consider. - {not set} Precision of 1 for integer part - < 10, - 0 otherwise (provides old - behaviour). - space {present} Insert space before unit - symbols. - This is the default. - nospace {present} Do not insert space before unit - symbols. - - Numbers are rounded from zero. Trailing zeros are dropped. - - Example: - - set sizefmt=units:iec,precision:2,nospace - - - 'slowfs' - type: string list - default: "" - only for *nix - A list of mounter fs name beginnings (first column in /etc/mtab - or /proc/mounts) or paths prefixes for fs/directories that work - too slow for you. This option can be used to stop vifm from - making some requests to particular kinds of file systems that - can slow down file browsing. Currently this means don't check - if directory has changed, skip check if target of symbolic links - exists, assume that link target located on slow fs to be a - directory (allows entering directories and navigating to files - via gf). If you set the option to "*", it means all the systems - are considered slow (useful for cygwin, where all the checks - might render vifm very slow if there are network mounts). - - Example for autofs root /mnt/autofs: - - set slowfs+=/mnt/autofs - - 'smartcase' 'scs' - type: boolean - default: false - Overrides the ignorecase option if a pattern contains at least - one upper case character. Only used when 'ignorecase' option is - enabled. - - 'sort' type: string list - default: +name on *nix and +iname on Windows - scope: local - Sets list of sorting keys (first item is primary key, second is - secondary key, etc.): - [+-]ext - extension of files and directories - [+-]fileext - extension of files only - [+-]name - name (including extension) - [+-]iname - name (including extension, ignores case) - [+-]type - file type - (dir/reg/exe/link/char/block/sock/fifo) - [+-]dir - directory grouping (directory < file) - [+-]gid - group id (*nix only) - [+-]gname - group name (*nix only) - [+-]mode - file type derived from its mode (*nix only) - [+-]perms - permissions string (*nix only) - [+-]uid - owner id (*nix only) - [+-]uname - owner name (*nix only) - [+-]nlinks - number of hard links (*nix only) - [+-]inode - inode number (*nix only) - [+-]size - size - [+-]nitems - number of items in a directory (zero for files) - [+-]groups - groups extracted via regexps from 'sortgroups' - [+-]target - symbolic link target (empty for other file - types) - [+-]atime - time accessed (e.g., read, executed) - [+-]ctime - time changed (changes in metadata, like mode) - [+-]mtime - time modified (when file contents is changed) - - Note: look for st_atime, st_ctime and st_mtime in "man 2 stat" - for more information on time keys. - - '+' means ascending sort for this key, and '-' means descending - sort. - - "dir" key is somewhat similar in this regard but it's added - implicitly: when "dir" is not specified, sorting behaves as if - it was the first key in the list. That's why if one wants - sorting algorithm to mix directories and files, "dir" should be - appended to sorting option, for example like this: - - set sort+=dir - - or - - set sort=-size,dir - - Value of the option is checked to include dir key and default - sorting key (name on *nix, iname on Windows). Here is what - happens if one of them is missing: - - - type key is added at the beginning; - - - default key is added at the end; - - all other keys are left untouched (at most they are moved). - - This option also changes view columns according to primary - sorting key set, unless 'viewcolumns' option is not empty. - - 'sortnumbers' - type: boolean - default: false - scope: local - Natural sort of (version) numbers within text. - - 'sortgroups' - type: string - default: "" - scope: local - Sets comma-separated list of regular expressions for group type - of sorting. Double the comma to insert it literally. - - The regular expressions are used to extract substrings of file - names to serve as keys for sorting. It is essentially a way to - ignore uninteresting parts of file names during sorting by name. - - Each expression should contain at least one group or its value - will be considered to be always empty. Also, only the first - match of regular expression is processed. - - The first group divides list of files into sub-groups, each of - which is then sorted by substrings extracted using second - regular expression and so on recursively. - - Example: - set sortgroups=-(todo|done).* - this would group files with "-done" in their names and files - with "-todo" separately. On ascending sorting, group containing - "-done" would appear before the other one. - - 'sortorder' - type: enumeration - default: ascending - Sets sort order for primary key: ascending, descending. - - 'statusline' 'stl' - type: string - default: "" - Determines the content of the status line (the line right above - command-line). Empty string means use same format like in - previous versions. Following macros are supported: - - - %N - line break (increases height of the status line - accordingly), ignores %[ %] blocks - - - %t - file name (considering value of the 'classify' option) - - - %T - symbolic link target (empty for other filetypes) - - - %f - file name relative to current directory (considers - 'classify') - - - %A - file attributes (permissions on *nix or properties on - Windows) - - - %u - user name or uid (if it cannot be resolved) - - - %g - group name or gid (if it cannot be resolved) - - - %s - file size in human readable format - - - %E - size of selected files in human readable format, same as - %s when no files are selected, except that it will never show - size of ../ in visual mode, since it cannot be selected - - - %d - file modification date (uses 'timefmt' option) - - - %D - path of the other pane for single-pane layout - - - %a - amount of free space available on current FS - - - %c - size of current FS - - - %z - short tips/tricks/hints that chosen randomly after one - minute period - - - %{} - evaluate arbitrary vifm expression '', e.g. - '&sort' - - - %* - resets or applies one of User1..User9 highlight groups; - reset happens when width field is 0 or not specified, one of - groups gets picked when width field is in the range from 1 to - 9 - - - all 'rulerformat' macros - - Percent sign can be followed by optional minimum field width. - Add '-' before minimum field width if you want field to be right - aligned. - - On Windows file properties include the following flags (upper - case means flag is on): - A - archive - H - hidden - I - content isn't indexed - R - readonly - S - system - C - compressed - D - directory - E - encrypted - P - reparse point (e.g. symbolic link) - Z - sparse file - - Example without colors: - - set statusline=" %t%= %A %10u:%-7g %15s %20d %{&sort} " - - Example with colors: - - highlight User1 ctermbg=yellow - highlight User2 ctermbg=blue ctermfg=white cterm=bold - set statusline="%1* %-26t %2* %= %1* %A %2* %7u:%-7g %1* %-5s %2* %d " - - - 'suggestoptions' - type: string list - default: - Controls when, for what and how suggestions are displayed. The - following values are available: - - normal - in normal mode; - - visual - in visual mode; - - view - in view mode; - - otherpane - use other pane to display suggestions, when - available; - - delay[:num] - display suggestions after a small delay (to - do not annoy if you just want to type a fast shortcut consisting - of multiple keys), num specifies the delay in ms (500 by - default), 'timeoutlen' at most; - - keys - include shortcuts (commands and selectors); - - foldsubkeys - fold multiple keys with common prefix; - - marks - include marks; - - registers[:num] - include registers, at most num files (5 by - default). - - 'syncregs' - type: string - default: - Specifies identifier of group of instances that share registers - between each other. When several instances of vifm have this - option set to identical value, they automatically synchronize - contents of their registers on operations which use them. - - 'syscalls' - type: boolean - default: false - When disabled, vifm will rely on external applications to - perform file-system operations, otherwise system calls are used - instead (much faster and supports progress tracking). The - option should eventually be removed. Mostly *nix-like systems - are affected. - - 'tablabel' - type: string - default: "" - When non-empty, determines format of the main part of a single - tab's label. - - When empty, tab label is set to either tab name for named tabs - or to view title (usually current path) for unnamed tabs. - - The following macros can appear in the format (see below for - what a flag is): - - - %C - flag of a current tab - - - %N - number of the tab - - - %T - flag of a tree mode - - - %c - description of a custom view - - - %n - name of the tab - - - %p - path of the view (handles filename modifiers) - - - %t - title of the view (affected by 'shortmess' flags) - - - %% - literal percent sign - - - %[ - designates beginning of an optional block - - - %] - designates end of an optional block - - - %*, %0* - resets highlighting - - - %1-%9 - applies one of User1..User9 highlight groups - - In global tabs the view in bullets above refers to currently - active view of that tab. - - Flag macros are a special kind of macros that always expand to - an empty value and are ment to be used inside optional blocks to - control their visibility. - - Optional blocks are ignored unless at least one macro inside of - them is expanded to a non-empty value or is a set flag macro. - - " %[(%n)%] -- optional name of the tab - " %[ -- optional description of the view - " %[%T{tree}%] -- mark of tree mode - " %[{%c}%] -- description of custom view - " @ -- just an extra separator before the path - ' %] - " %p:t -- tail part of view's location - set tablabel=%[(%n)%]%[%[%T{tree}%]%[{%c}%]@%]%p:t - - 'tabprefix' - type: string - default: "[%N:" - Determines prefix of a tab's label. Formatting is done as for - 'tablabel' option. - - 'tabscope' - type: enumeration - default: global - Picks style of tabs, which defines what a single tab contains. - Possible values: - - global - tab describes complete UI of two views and how they - are arranged - - pane - tab is located "inside" a pane and manages it and - quick view - - 'tabstop' 'ts' - type: integer - default: value from curses library - Number of spaces that a Tab in the file counts for. - - 'tabsuffix' - type: string - default: "]" - Determines suffix of a tab's label. Formatting is done as for - 'tablabel' option. - - 'timefmt' - type: string - default: "%m/%d %H:%M" - Format of time in file list. See "man 1 date" or "man 3 - strftime" for details. - - 'timeoutlen' 'tm' - type: integer - default: 1000 - The time in milliseconds that is waited for a mapped key in case - of already typed key sequence is ambiguous. - - 'title' - type: boolean - default: true when title can be restored, false otherwise - When enabled, title of the terminal or terminal multiplexer's - window is updated according to current location. Because not - all terminals support setting title, this works only if `$TERM` - value matches one of the following conditions: - - equals "xterm" or starts with "xterm-" - - equals "rxvt" or starts with "rxvt-" - - equals "screen" or starts with "screen-" - - equals "aterm" - - equals "Eterm" - - 'trash' - type: boolean - default: true - Use trash directory. See "Trash directory" section below. - - 'trashdir' - type: string - default: on *nix: - "%r/.vifm-Trash-%u,$VIFM/Trash,%r/.vifm-Trash" - or if $VIFM/Trash doesn't exist - "%r/.vifm-Trash-%u,$XDG_DATA_HOME/vifm/Trash,%r/.vifm-Trash" - on Windows: - "%r/.vifm-Trash,$XDG_DATA_HOME/vifm/Trash" - List of trash directory path specifications, separated with - commas. Each list item either defines an absolute path to trash - directory or a path relative to a mount point root when list - element starts with "%r/". Value of the option can contain - environment variables (of form "$envname"), which will be - expanded (prepend $ with a slash to prevent expansion). - Environment variables are expanded when the option is set. - - On *nix, if element ends with "%u", the mark is replaced with - real user ID and permissions are set so that only that only - owner is able to use it. - Note that even this setup is not completely secure when combined - with "%r/" and it's overall safer to keep files in home - directory, but that implies cost of copying files between - partitions. - - When new file gets cut (deleted) vifm traverses each element of - the option in the order of their appearance and uses first trash - directory that it was able to create or that is already - writable. - - Default value tries to use trash directory per mount point and - falls back to ~/.vifm/Trash on failure. - - Will attempt to create the directory if it does not exist. See - "Trash directory" section below. - - 'tuioptions' 'to' - type: charset - default: "psv" - Each flag configures some aspect of TUI appearance. The flags - are: - p - when included: - * file list inside a pane gets additional single character - padding on left and right sides; - * quick view and view mode get single character padding. - s - when included, left and right borders (side borders, hence - "s" character) are visible. - u - use Unicode characters in the TUI (Unicode ellipsis instead - of "..."). - v - vary width of middle border to equalize view sizes. - - Each pane title contains the path of the listed directory. If - too large, the path is truncated on the left for the active pane - and on the right for the other pane. This can be modified with: - - l - truncation is always on the left. - r - truncation is always on the right. - - 'undolevels' 'ul' - type: integer - default: 100 - Maximum number of changes that can be undone. Note that here - single file operation is used as a unit, not operation, i.e. - deletion of 101 files will exceed default limit. - - 'vicmd' - type: string - default: "vim" - Command used to edit files in various contexts. Ampersand sign - at the end (regardless whether it's preceded by space or not) - means backgrounding of command. - - Background flag is ignored in certain context where vifm waits - for the editor to finish. Such contexts include any command - that spawns editor to change list of file names or a command, - with :rename being one example. `-f` is also appended to - prevent forking in such cases, so the command needs to handle - the flag. - - Additionally `+{num}` and `+'call cursor()'` arguments are used - to position cursor when location is known. - - 'viewcolumns' - type: string - default: "" - scope: local - Format string containing list of columns in the view. When this - option is empty, view columns to show are chosen automatically - using sorting keys (see 'sort') as a base. Value of this option - is ignored if 'lsview' is set. See "Column view" section below - for format description. - - An example of setting the options for both panes (note :windo - command): - - windo set viewcolumns=-{name}..,6{size},11{perms} - - 'vixcmd' - type: string - default: value of 'vicmd' - Same as 'vicmd', but takes precedence over it when running - inside a graphical environment. - - 'vifminfo' - type: set - default: bookmarks,bmarks - Controls what will be saved in the $VIFM/vifminfo file. - - bmarks - named bookmarks (see :bmark command) - bookmarks - marks, except special ones like '< and '> - tui - state of the user interface (sorting, number of - windows, quick - view state, active view) - dhistory - directory history - state - file name and dot filters and terminal - multiplexers integration - state - cs - primary color scheme - savedirs - save last visited directory - chistory - command line history - shistory - search history (/ and ? commands) - phistory - prompt history - fhistory - history of local filter (see description of the - "=" normal mode - command) - dirstack - directory stack overwrites previous stack, unless - stack of - current instance is empty - registers - registers content - tabs - global or pane tabs - options - all options that can be set with the :set command - (obsolete) - filetypes - associated programs and viewers (obsolete) - commands - user defined commands (see :command description) - (obsolete) - - 'vimhelp' - type: boolean - default: false - Use vim help format. - - 'wildmenu' 'wmnu' - type: boolean - default: false - Controls whether possible matches of completion will be shown - above the command line. - - 'wildstyle' - type: enumeration - default: bar - Picks presentation style of wild menu. Possible values: - - bar - one-line with left-to-right cursor - - popup - multi-line with top-to-bottom cursor - - 'wordchars' - type: string list - default: "1-8,14-31,33-255" (that is all non-whitespace - characters) - Specifies which characters in command-line mode should be - considered as part of a word. Value of the option is comma- - separated list of ranges. If both endpoints of a range match, - single endpoint is enough (e.g. "a" = "a-a"). Both endpoints - are inclusive. There are two accepted forms: character - representing itself or number encoding character according to - ASCII table. In case of ambiguous characters (dash, comma, - digit) use numeric form. Accepted characters are in the range - from 0 to 255. Any Unicode character with code greater than 255 - is considered to be part of a word. - - The option affects Alt-D, Alt-B and Alt-F, but not Ctrl-W. This - is intentionally to allow two use cases: - - - Moving by WORDS and deletion by words. - - Moving by words and deletion by WORDS. - - To get the latter use the following mapping: - - cnoremap - - Also used for abbreviations. - - 'wrap' type: boolean - default: true - Controls whether to wrap text in quick view. - - 'wrapscan' 'ws' - type: boolean - default: true - Searches wrap around end of the list. - -Mappings - Map arguments - - LHS of mappings can be preceded by arguments which take the form of - special sequences: - - - Postpone UI updates until RHS is completely processed. - - In case of builtin mapping causing conflict for a user-defined - mapping (e.g., `t` builtin to a partially typed `ta` user- - defined mapping), ignore the builtin mapping and wait for input - indefinitely as opposed to default behaviour of triggering the - builtin mapping after a delay defined by 'timeoutlen'. Example: - - nnoremap tw :set wrap! - nnoremap tn :set number! - nnoremap tr :set relativenumber! - - Special sequences - - Since it's not easy to enter special characters there are several - special sequences that can be used in place of them. They are: - - Enter key. - - Escape key. - - - Space key. - - Less-than character (<). - - provides a way to disable a mapping (by mapping it to ). - - Backspace key (see key conflict description below). - - - Tabulation and Shift+Tabulation keys. - - - Home/End. - - - Arrow keys. - - - PageUp/PageDown. - - - Delete key. and mean different codes, but - is more common. - - - Insert key. - - ,,...,,,,,, - Control + some key (see key conflict description below). - - only for *nix - Control + Space. - - ,,..., - ,,..., Alt + some key. - - ,,..., - ,,..., only for *nix - Alt + Ctrl + some key. - - - - Functional keys. - - - - only for MS-Windows - functional keys with Control key pressed. - - - - only for MS-Windows - functional keys with Alt key pressed. - - - - only for MS-Windows - functional keys with Shift key pressed. - - Note that due to the way terminals process their input, several - keyboard keys might be mapped to single key code, for example: - - - and ; - - - and ; - - - and ; - - - etc. - - Most of the time they are defined consistently and don't cause - surprises, but and are treated differently in different - environments (although they match each other all the time), that's why - they correspond to different keys in vifm. As a consequence, if you - map or be sure to repeat the mapping with the other one so - that it works in all environments. Alternatively, provide your mapping - in one form and add one of the following: - - " if mappings with in the LHS work - map - " if mappings with in the LHS work - map - - Whitespace - - vifm removes whitespace characters at the beginning and end of - commands. That's why you may want to use at the end of rhs in - mappings. For example: - - cmap man - - will put "man " in line when you hit the key in the command line - mode. - -Expression syntax - Supported expressions is a subset of what VimL provides. - - Expression syntax summary, from least to most significant: - - expr1 expr2 - expr2 || expr2 .. logical OR - - expr2 expr3 - expr3 && expr3 .. logical AND - - expr3 expr4 - expr4 == expr4 equal - expr4 != expr4 not equal - expr4 > expr4 greater than - expr4 >= expr4 greater than or equal - expr4 < expr4 smaller than - expr4 <= expr4 smaller than or equal - - expr4 expr5 - expr5 + expr5 .. number addition - expr5 - expr5 .. number subtraction - - expr5 expr6 - expr6 . expr6 .. string concatenation - - expr6 expr7 - - expr6 unary minus - + expr6 unary plus - ! expr6 logical NOT - - expr7 number number constant - "string" string constant, \ is special - 'string' string constant, ' is doubled - &option option value - $VAR environment variable - v:var builtin variable - function(expr1, ...) function call - (expr1) nested expression - - ".." indicates that the operations in this level can be concatenated. - - expr1 - ----- - expr2 || expr2 - - Arguments are converted to numbers before evaluation. - - Result is non-zero if at least one of arguments is non-zero. - - It's right associative and with short-circuiting, so sub-expressions - are evaluated from left to right until result of whole expression is - determined (i.e., until first non-zero) or end of the expression. - - expr2 - ----- - expr3 && expr3 - - Arguments are converted to numbers before evaluation. - - Result is non-zero only if both arguments are non-zero. - - It's right associative and with short-circuiting, so sub-expressions - are evaluated from left to right until result of whole expression is - determined (i.e., until first zero) or end of the expression. - - expr3 - ----- - expr4 {cmp} expr4 - - Compare two expr4 expressions, resulting in a 0 if it evaluates to - false or 1 if it evaluates to true. - - equal == - not equal != - greater than > - greater than or equal >= - smaller than < - smaller than or equal <= - - Examples: - - 'a' == 'a' == 1 - 'a' > 'b' == 1 - 'a' == 'b' == 0 - '2' > 'b' == 0 - 2 > 'b' == 1 - 2 > '1b' == 1 - 2 > '9b' == 0 - -1 == -'1' == 1 - 0 == '--1' == 1 - - expr4 - ----- - expr5 + expr5 .. number addition expr5 - expr5 .. number - subtraction - - Examples: - - 1 + 3 - 3 == 1 - 1 + '2' == 3 - - expr5 - ----- - expr6 . expr6 .. string concatenation - - Examples: - - 'a' . 'b' == 'ab' - 'aaa' . '' . 'c' == 'aaac' - - expr6 - ----- - - - expr6 unary minus - + expr6 unary plus - ! expr6 logical NOT - - For '-' the sign of the number is changed. - For '+' the number is unchanged. - For '!' non-zero becomes zero, zero becomes one. - - A String will be converted to a Number first. - - These operations can be repeated and mixed. Examples: - - --9 == 9 - ---9 == -9 - -+9 == 9 - !-9 == 0 - !'' == 1 - !'x' == 0 - !!9 == 1 - - expr7 - ----- - - number number constant - ----- - - Decimal number. Examples: - - 0 == 0 - 0000 == 0 - 01 == 1 - 123 == 123 - 10000 == 10000 - - string - ------ - "string" string constant - - Note that double quotes are used. - - A string constant accepts these special characters: - \b backspace - \e escape - \n newline - \r return - \t tab - \\ backslash - \" double quote - - Examples: - - "\"Hello,\tWorld!\"" - "Hi,\nthere!" - - literal-string - -------------- - 'string' string constant - - Note that single quotes are used. - - This string is taken as it is. No backslashes are removed or have a - special meaning. The only exception is that two quotes stand for one - quote. - - Examples: - - 'All\slashes\are\saved.' - 'This string contains doubled single quotes ''here''' - - option - ------ - &option option value (local one is preferred, if exists) - &g:option global option value &l:option local - option value - - Examples: - - echo 'Terminal size: '.&columns.'x'.&lines - if &columns > 100 - - Any valid option name can be used here (note that "all" in ":set all" - is a pseudo option). See ":set options" section above. - - environment variable - -------------------- - $VAR environment variable - - The String value of any environment variable. When it is not defined, - the result is an empty string. - - Examples: - - 'This is my $PATH env: ' . $PATH - 'vifmrc at ' . $MYVIFMRC . ' is used.' - - builtin variable - -------------------- - v:var builtin variable - - Information exposed by vifm for use in scripting. - - v:count - count passed to : command, 0 by default. Can be used in mappings to - passthe count to a different command. - v:count1 - same as v:count, but 1 by default. - v:jobcount - number of active jobs (as can be seen in the :jobs menu). - v:session - name of the current session or empty string. - v:servername - See below. - - function call - ------------- - function(expr1, ...) function call - - See "Functions" section below. - - Examples: - - "'" . filetype('.') . "'" - filetype('.') == 'reg' - - expression nesting - ------------------ - (expr1) nested expression - - Groups any other expression of arbitrary complexity enforcing order in - which operators are applied. - - -Functions - USAGE RESULT DESCRIPTION - - chooseopt({opt}) String Queries choose parameters passed on - startup. - executable({expr}) Integer Checks whether {expr} command - available. - expand({expr}) String Expands special keywords in {expr}. - extcached({cache}, {path}, {extcmd}) - String Caches output of {extcmd} per {cache} - and - {path} combination. - filetype({fnum} [, {resolve}]) - String Returns file type from position. - fnameescape({expr}) String Escapes {expr} for use in a :command. - getpanetype() String Returns type of current pane. - has({property}) Integer Checks whether instance has - {property}. - layoutis({type}) Integer Checks whether layout is of type - {type}. - paneisat({loc}) Integer Checks whether current pane is at - {loc}. - system({command}) String Executes shell command and returns - its output. - tabpagenr([{arg}]) Integer Returns number of current or last - tab. - term({command}) String Like system(), but for interactive - commands. - - chooseopt({opt}) - - Retrieves values of options related to file choosing. {opt} can be one - of: - files returns argument of --choose-files or empty string - dir returns argument of --choose-dir or empty string - cmd returns argument of --on-choose or empty string - delimiter returns argument of --delimiter or the default one (\n) - - executable({expr}) - - If {expr} is absolute or relative path, checks whether path destination - exists and refers to an executable, otherwise checks whether command - named {expr} is present in directories listed in $PATH. Checks for - various executable extensions on Windows. Returns boolean value - describing result of the check. - - Example: - - " use custom default viewer script if it's available and installed - " in predefined system directory, otherwise try to find it elsewhere - if executable('/usr/local/bin/defviewer') - fileview * /usr/local/bin/defviewer %c - else - if executable('defviewer') - fileview * defviewer %c - endif - endif - - expand({expr}) - - Expands environment variables and macros in {expr} just like it's done - for command-line commands. Returns a string. See "Command macros" - section above. - - Examples: - - " percent sign - :echo expand('%%') - " the last part of directory name of the other pane - :echo expand('%D:t') - " $PATH environment variable (same as `:echo $PATH`) - :echo expand('$PATH') - - extcached({cache}, {path}, {extcmd}) - - Caches value of {extcmd} external command automatically updating it as - necessary based on monitoring change date of a {path}. The cache is - invalidated when file or its meta-data is updated. A single path can - have multiple caches associated with it. - - {path} value is normalized, but symbolic links in it aren't resolved. - - Example: - - " display number and size of blocks actually used by a file or directory - set statusline+=" Uses: %{ extcached('uses', - expand('%c'), - expand('stat --format=%%bx%%B %c')) }" - - filetype({fnum} [, {resolve}]) - - The result is a string, which represents file type and is one of the - list: - exe executables - reg regular files - link symbolic links - broken broken symbolic links (appears only when resolving) - dir directories - char character devices - block block devices - fifo pipes - sock *nix domain sockets - ? unknown file type (should not normally happen) or - non-file (pseudo-entries in compare view) - - The result can also be an empty string in case of invalid argument. - - Parameter {fnum} can have following values: - - '.' to get type of file under the cursor in the active pane - - numerical value base 1 to get type of file on specified line - number - - Optional parameter {resolve} is treated as a boolean and specifies - whether symbolic links should be resolved. - - fnameescape({expr}) - - Escapes parameter to make it suitable for use as an argument of a - :command. List of escaped characters includes %, which is doubled. - - Usage example: - - " navigate to most recently modified file in current directory - execute 'goto' fnameescape(system('ls -t | head -1')) - - getpanetype() - - Retrieves string describing type of current pane. Possible return - values: - regular regular file listing of some directory - custom custom file list (%u) - very-custom very custom file list (%U) - tree tree view - - has({property}) - - Allows examining internal parameters from scripts to e.g. figure out - environment in which application is running. Returns 1 if property is - true/present, otherwise 0 is returned. Currently the following - properties are supported (anything else will yield 0): - unix runs in *nix-like environment (including Cygwin) - win runs on Windows - - Usage example: - - " skip user/group on Windows - if !has('win') - let $RIGHTS = '%10u:%-7g ' - endif - - execute 'set' 'statusline=" %t%= %A '.$RIGHTS.'%15E %20d "' - - layoutis({type}) - - Checks whether current interface layout is {type} or not, where {type} - can be: - only single-pane mode - split double-pane mode (either vertical or horizontal split) - vsplit vertical split (left and right panes) - hsplit horizontal split (top and bottom panes) - - Usage example: - - " automatically split vertically before enabling preview - :nnoremap w :if layoutis('only') | vsplit | endif | view! - - paneisat({loc}) - - Checks whether position of active pane in current layout matches one of - the following locations: - top pane reaches top border - bottom pane reaches bottom border - left pane reaches left border - right pane reaches right border - - system({command}) - - Runs the command in shell and returns its output (joined standard - output and standard error streams). All trailing newline characters - are stripped to allow easy appending to command output. Ctrl-C should - interrupt the command. - - Use this function to consume output of external commands that don't - require user interaction and term() for interactive commands that make - use of terminal and are capable of handling stream redirection. - - Usage example: - - " command to enter .git/ directory of git-repository (when ran inside one) - command! cdgit :execute 'cd' fnameescape(system('git rev-parse --git-dir')) - - tabpagenr([{arg}]) - - When called without arguments returns number of current tab page base - one. - - When called with "$" as an argument returns number of the last tab page - base one, which is the same as number of tabs. - - term({command}) - - Same as system() function, but user interface is shutdown during the - execution of the command, which makes sure that external interactive - applications won't affect the way terminal is used by vifm. - - Usage example: - - " command to change directory by picking it via fzf - command! fzfcd :execute 'cd' - fnameescape(term('find -type d | fzf 2> /dev/tty')) - -Menus and dialogs - When navigating to some path from a menu there is a difference in end - location depending on whether path has trailing slash or not. Files - normally don't have trailing slashes so "file/" won't work and one can - only navigate to a file anyway. On the other hand with directories - there are two options: navigate to a directory or inside of it. To - allow both use cases, the first one is used on paths like "dir" and the - second one for "dir/". - - Commands - - :range navigate to a menu line. - - :exi[t][!] :q[uit][!] :x[it][!] - leave menu mode. - - :noh[lsearch] - reset search match highlighting. - - :w[rite] {dest} - write all menu lines into file specified by {dest}. - - General - - j, Ctrl-N - move down. - k, Ctrl-P - move up. - Enter, l - select and exit the menu. - Ctrl-L - redraw the menu. - - Escape, Ctrl-C, ZZ, ZQ, q - quit. - - In all menus - - The following set of keys has the same meaning as in normal mode. - - Ctrl-B, Ctrl-F - Ctrl-D, Ctrl-U - Ctrl-E, Ctrl-Y - /, ? - n, N - [count]G, [count]gg - H, M, L - zb, zt, zz - - zh - scroll menu items [count] characters to the right. - zl - scroll menu items [count] characters to the left. - zH - scroll menu items half of screen width characters to the right. - zL - scroll menu items half of screen width characters to the left. - - : - enter command line mode for menus (currently only :exi[t], :q[uit], - :x[it] and :{range} are supported). - - b - interpret content of the menu as list of paths and use it to create - custom view in place of previously active pane. See "Custom views" - section below. - B - same as above, but creates unsorted view. - - v - load menu content into quickfix list of the editor (Vim compatible - by assumption) or if list doesn't have separators after file names - (colons) open each line as a file name. - - - Below is description of additional commands and reaction on selection - in some menus and dialogs. - - Apropos menu - - Selecting menu item runs man on a given topic. Menu won't be closed - automatically to allow view several pages one by one. - - Command-line mode abbreviations menu - - Type dd on an abbreviation to remove it. - - c leaves menu preserving file selection and inserts right-hand side of - selected command into command-line. - - Color scheme menu - - Selecting name of a color scheme applies it the same way as if - ":colorscheme " was executed on the command-line. - - Commands menu - - Selecting command executes it with empty arguments (%a). - - dd on a command to remove. - - Marks menu - - Selecting mark navigates to it. - - dd on a mark to remove it. - - Bookmarks menu - - Selecting a bookmark navigates to it. - - Type dd on a bookmark to remove it. - - gf and e also work to make it more convenient to bookmark files. - - Trash (:lstrash) menu - - r on a file name to restore it from trash. - - dd deletes file under the cursor. - - Trashes (:trashes) menu - - dd empties selected trash in background. - - Directory history and Trashes menus - - Selecting directory name will change directory of the current view as - if :cd command was used. - - Directory stack menu - - Selecting directory name will rotate stack to put selected directory - pair at the top of the stack. - - File (:file) menu - - Commands from vifmrc or typed in command-line are displayed above empty - line. All commands below empty line are from .desktop files. - - c leaves menu preserving file selection and inserts command after :! in - command-line mode. - - Grep, find, locate, bookmarks and user menu with navigation (%M macro) - - gf - navigate previously active view to currently selected item. - Leaves menu mode except for grep menu. Pressing Enter key has the same - effect. - - e - open selected path in the editor, stays in menu mode. - - c - leave menu preserving file selection and insert file name after :! - in command-line mode. - - User menu without navigation (%m macro) - - c leaves menu preserving file selection and inserts whole line after :! - in command-line mode. - - Grep menu - - Selecting file (via Enter or l key) opens it in editor set by 'vicmd' - at given line number. Menu won't be closed automatically to allow - viewing more than one result. - - See above for "gf" and "e" keys description. - - Command-line history menu - - Selecting an item executes it as command-line command, search query or - local filter. - - c leaves menu preserving file selection and inserts line into command- - line of appropriate kind. - - Volumes menu - - Selecting a drive navigates previously active pane to the root of that - drive. - - Fileinfo dialog - - Enter, q - close dialog - - Sort dialog - - h, Space - switch ascending/descending. - q - close dialog - - One shortcut per sorting key (see the dialog). - - Attributes (permissions or properties) dialog - - h, Space - check/uncheck. - q - close dialog - r - (*nix only) (un)set all read bits - w - (*nix only) (un)set all write bits - x - (*nix only) (un)set all execute bits - s - (*nix only) (un)set all special (SetUID, SetGID, Sticky) bits - e - (*nix only) (un)set recursion (for directories only) - - Item states: - - - * - checked flag. - - - X - means that it has different value for files in selection. - - - d (*nix only) - (only for execute flags) means u-x+X, g-x+X or o-x+X - argument for the chmod program. If you're not on OS X and want to - remove execute permission bit from all files, but preserve it for - directories, set all execute flags to 'd' and check 'Set Recursively' - flag. - - Jobs menu - - dd requests cancellation of job under cursor. The job won't be removed - from the list, but marked as being cancelled (if cancellation was - successfully requested). A message will pop up if the job has already - stopped. Note that on Windows cancelling external programs like this - might not work, because their parent shell doesn't have any windows. - - e key displays errors of selected job if any were collected. They are - displayed in a new menu, but you can get back to jobs menu by pressing - h. - - - Undolist menu - - r - reset undo position to group under the cursor. - - - Media menu - - Selecting a device either mounts (if it wasn't mounted yet) or - navigates to its first mount point. - - Selecting a mount point navigates to it. - - Selecting "not mounted" line causes mounting. - - Selecting any other line does nothing. - - r - reload the list. - - m - mount/unmount device (cursor should be positioned on lines under - device information). - - [ - put cursor on the previous device. - - ] - put cursor on the next device. - - - Plugins menu - - e - display log messages of selected plugin if any were collected. - They are displayed in a new menu, but you can get back to plugins menu - by pressing h. - - gf - navigate previously active view to the location of selected - plugin. Leaves menu mode. - - -Custom views - Definition - - Normally file views contain list of files from a single directory, but - sometimes it's useful to populate them with list of files that do not - belong to the same directory, which is what custom views are for. - - Presentation - - Custom views are still related to directory they were in before custom - list was loaded. Path to that directory (original directory) can be - seen in the title of a custom view. - - Files in same directory have to be named differently, this doesn't hold - for custom views thus seeing just file names might be rather confusing. - In order to give an idea where files come from and when possible, - relative paths to original directory of the view is displayed, - otherwise full path is used instead. - - Custom views normally don't contain any inexistent files. - - Navigation - - Custom views have some differences related to navigation in regular - views. - - gf - acts similar to gf on symbolic links and navigates to the file at - its real - location. - - h - go to closes parent node in tree view, otherwise return to the - original directory. - - gh - return to the original directory. - - Opening ".." entry also causes return to the original directory. - - History - - Custom list exists only while it's visible, once left one can't return - to it, so there is no appearances of it in any history. - - Filters - - Only local filter affects content of the view. This is intentional, - presumably if one loads list, precisely that list should be displayed - (except for inexistent paths, which are ignored). - - Search - - Although directory names are visible in listing, they are not - searchable. Only file names are taken into account (might be changed - in future, searching whole lines seems quite reasonable). - - Sorting - - Contrary to search sorting by name works on whole visible part of file - path. - - Highlight - - Whole file name is highlighted as one entity, even if there are - directory elements. - - Updates - - Reloads can occur, though they are not automatic due to files being - scattered among different places. On a reload, inexistent files are - removed and meta-data of all other files is updated. - - Once custom view forgets about the file, it won't add it back even if - it's created again. So not seeing file previously affected by an - operation, which was undone is normal. - - Operations - - All operations that add files are forbidden for custom views. For - example, moving/copying/putting files into a custom view doesn't work, - because it doesn't make much sense. - - On the other hand, operations that use files of a custom view as a - source (e.g. yanking, copying, moving file from custom view, deletion) - and operations that modify names are all allowed. - -Compare views - Kinds - - :compare can produce four different results depending on arguments: - - single compare view (ofone and either listall or listdups); - - single custom view (ofone and listunique); - - two compare views (ofboth and either listall or listdups); - - two custom views (ofboth and listunique). - - The first two display files of one file system tree. Here duplicates - are files that have at least one copy in the same tree. The other two - kinds of operation compare two trees, in which duplicates are files - that are found in both trees. - - Lists of unique files are presented in custom views because there is no - file grouping to preserve as all file ids are guaranteed to be - distinct. - - Creation - - Arguments passed to :compare form four categories each with its own - prefix and is responsible for particular property of operation. - - Which files to compare: - - ofboth - compares files of two panes against each other; - - ofone - compares files of the same directory. - - How files are compared: - - byname - by their name only; - - bysize - only by their size; - - bycontents - by data they contain (combination of size and hash of - small chunk of contents is used as first approximation, so don't worry - too much about large files). - - Which files to display: - - listall - all files; - - listunique - unique files only; - - listdups - only duplicated files. - - How results are grouped (has no effect if "ofone" specified): - - groupids - files considered identical are always adjacent in - output; - - grouppaths - file system ordering is preferred (this also enables - displaying identically named files as mismatches). - - Which files to omit: - - skipempty - ignore empty files. - - Each argument can appear multiple times, the rightmost one of the group - is considered. Arguments alter default behaviour instead of - substituting it. - - Examples - - The defaults corresponds to probably the most common use case of - comparing files in two trees with grouping by paths, so the following - are equivalent: - - :compare - :compare bycontents grouppaths - :compare bycontents listall ofboth grouppaths - - Another use case is to find duplicates in the current sub-tree: - - :compare listdups ofone - - The following command lists files that are unique to each pane: - - :compare listunique - - Look - - The view can't switch to ls-like view as it's unable to display diff- - like data. - - Comparison views have second column displaying id of the file, files - with same id are considered to be equal. The view columns - configuration is predefined. - - Behaviour - - When two views are being compared against each other the following - changes to the regular behaviour apply: - - views are scrolled synchronously (as if 'scrollbind' was set); - - views' cursors are synchronized; - - local filtering is disabled (its results wouldn't be meaningful); - - zd excludes groups of adjacent identical files, 1zd gives usual - behaviour; - - sorting is permanently disabled (ordering is fixed); - - removed files hide their counter pairs; - - exiting one of the views terminates the other immediately; - - renaming files isn't blocked, but isn't taken into account and might - require regeneration of comparison; - - entries which indicate absence of equivalent file have empty names - and can be matched as such; - - when unique files of both views are listed custom views can be - empty, this absence of unique files is stated clearly. - - One compare view has similar properties (those that are applicable for - single pane). - - Files are gathered in this way: - - recursively starting at current location of the view; - - dot files are excluded if view hides them at the moment of - comparison, file name filters are obeyed as well so you end up - comparing what you see; - - directories are not taken into account; - - symbolic links to directories are ignored. - -Startup - On startup vifm determines several variables that are used during - execution. They are determined in the order they appear below. - - On *nix systems $HOME is normally present and used as is. On Windows - systems vifm tries to find correct home directory in the following - order: - - $HOME variable; - - $USERPROFILE variable (on Windows only); - - a combination of $HOMEDRIVE and $HOMEPATH variables (on Windows - only). - - vifm tries to find correct configuration directory by checking the - following places: - - $VIFM variable; - - parent directory of the executable file (on Windows only); - - $HOME/.vifm directory; - - $APPDATA/Vifm directory (on Windows only); - - $XDG_CONFIG_HOME/vifm directory; - - $HOME/.config/vifm directory. - - vifm tries to find correct configuration file by checking the following - places: - - $MYVIFMRC variable; - - vifmrc in parent directory of the executable file (on Windows only); - - $VIFM/vifmrc file. - -Configure - See "Startup" section above for the explanations on $VIFM and - $MYVIFMRC. - - The vifmrc file contains commands that will be executed on vifm - startup. There are two such files: global and local. Global one is at - {prefix}/etc/vifm/vifmrc, see $MYVIFMRC variable description for the - search algorithm used to find local vifmrc. Global vifmrc is loaded - before the local one, so that the later one can redefine anything - configured globally. - - Use vifmrc to set settings, mappings, filetypes etc. To use multi line - commands precede each next line with a slash (whitespace before slash - is ignored, but all spaces at the end of the lines are saved). For - example: - - set - \smartcase - - equals "setsmartcase". When - - set - \ smartcase - - equals "set smartcase". - - The $VIFM/vifminfo file contains generic state of the application. You - can control what is stored in vifminfo by setting 'vifminfo' option. - Vifm always writes this file on exit unless 'vifminfo' option is empty. - Marks, bookmarks, commands, histories, filetypes, fileviewers and - registers in the file are merged with vifm configuration (which has - bigger priority). - - Generally, runtime configuration has bigger priority during merging, - but there are some exceptions: - - - directory stack stored in the file is not overwritten unless - something is changed in vifm instance that performs merge; - - - each mark or bookmark is marked with a timestamp, so that newer - value is not overwritten by older one, thus no matter from where it - comes, the newer one wins; - - - all histories are marked with timestamps on storing, this means - that last instance to quit puts its elements on top of the list; - - - tabs are merged only if both current instance and stored state - contain exactly one tab of any kind. - - The $VIFM/scripts directory can contain shell scripts. vifm modifies - its PATH environment variable to let user run those scripts without - specifying full path. All subdirectories of the $VIFM/scripts will be - added to PATH too. Script in a subdirectory overlaps script with the - same name in all its parent directories. - - The $VIFM/colors/ and {prefix}/etc/vifm/colors/ directories contain - color schemes. Available color schemes are searched in that order, so - on name conflict the one in $VIFM/colors/ wins. - - Each color scheme should have ".vifm" extension. This wasn't the case - before and for this reason the following rules apply during lookup: - - - if there is no file with .vifm extension, all regular files are - listed; - - - otherwise only files with .vifm extension are listed (with the - extension being truncated). - -Sessions - Sessions provide a way to have multiple persistent runtime - configurations. Think of them as second-level vifminfo files in - addition to the first-level one used by all sessions. In other words, - they aren't a replacement for vifminfo file that exists without - sessions, but an addition to it. One can empty 'vifminfo' option and - rely solely on sessions, but in practice one might want to share some - state among instances in different sessions or have an "out-of- - sessions" state for tasks that don't deserve a session of their own. - - This leads to a two-level structure where data in session files has - higher priority than data in vifminfo files (where this makes sense) - following the same rules that merging of vifminfo file obeys. In - addition to that, history items from session files are never ordered - before history items from vifminfo file. - - Format - - Sessions have the format of vifminfo files, they do not consist of - sequence of command-line commands and are not meant to be sourced via - :source command. - - Storage and naming - - `$VIFM/sessions/` directory serves as a storage for sessions. - Consequently names should be valid filenames. The structure of the - storage is flat meaning that there are no subdirectories, that's why - names of sessions can't contain slashes. - - Usage model - - Contrary to Vim, vifm automates basic management of sessions. You can - start, switch, stop or delete a session using builtin means. - - Current session is saved at the same time vifminfo is saved (on normal - exits or explicitly on :write command) and right before switching to - another session. To avoid saving in those cases use :session command - to detach (without saving) from a session before proceeding. - - Related topics - - Commands: :session, :delsession - Options: 'sessionoptions' - Variables: v:session - -Automatic FUSE mounts - vifm has a builtin support of automated FUSE file system mounts. It is - implemented using file associations mechanism. To enable automated - mounts, one needs to use a specially formatted program line in filetype - or filextype commands. These use special macros, which differ from - macros in commands unrelated to FUSE. Currently three formats are - supported: - - 1) FUSE_MOUNT This format should be used in case when all information - needed for mounting all files of a particular type is the same. E.g. - mounting of tar files don't require any file specific options. - - Format line: - FUSE_MOUNT|mounter %SOURCE_FILE %DESTINATION_DIR [%FOREGROUND] - - Example filetype command: - - :filetype FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR - - 2) FUSE_MOUNT2 This format allows one to use specially formatted files - to perform mounting and is useful for mounting remotes, for example - remote file systems over ftp or ssh. - - Format line: - FUSE_MOUNT2|mounter %PARAM %DESTINATION_DIR [%FOREGROUND] - - Example filetype command: - - :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR - - Example file content: - - root@127.0.0.1:/ - - 3) FUSE_MOUNT3 - - This format is equivalent to FUSE_MOUNT, but omits unmounting. It is - useful for cases, when unmounting isn't needed, like when using AVFS. - - Example :filetype command: - - :filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz,*.deb - \ {Mount with avfs} - \ FUSE_MOUNT3|mount-avfs %DESTINATION_DIR %SOURCE_FILE - - Example `mount-avfs` helper script: - - #!/bin/sh - - dest=$1 - file=$2 - - rmdir "$dest" - ln -s "$HOME/.avfs$file#/" "$dest" - - All % macros are expanded by vifm at runtime and have the following - meaning: - - %SOURCE_FILE is replaced by full path to selected file; - - %DESTINATION_DIR is replaced by full path to mount directory, which - is created by vifm basing on the value of 'fusehome' option; - - %PARAM value is filled from the first line of file (whole line), - though in the future it can be changed to whole file content; - - %FOREGROUND means that you want to run mount command as a regular - command (required to be able to provide input for communication with - mounter in interactive way). - - %FOREGROUND is an optional macro. Other macros are not mandatory, but - mount commands likely won't work without them. - - %CLEAR is obsolete name of %FOREGROUND, which is still supported, but - might be removed in future. Its use is discouraged. - - Unlike macros elsewhere, these are recognized only if they appear at - the end of a command or are followed by a space. There is no way to - escape % either. These are historical limitations, which might be - addressed in the future. - - The mounted FUSE file systems will be automatically unmounted in two - cases: - - - when vifm quits (with ZZ, :q, etc. or when killed by signal); - - - when you explicitly leave mount point going up to its parent - directory (with h, Enter on "../" or ":cd ..") and other pane is - not in the same directory or its child directories. - -View look - vifm supports displaying of file list view in two different ways: - - - in a table mode, when multiple columns can be set using - 'viewcolumns' option (see "Column view" section below for details); - - - in a multicolumn list manner which looks almost like `ls -x` - command output (see "ls-like view" section below for details). - - The look is local for each view and can be chosen by changing value of - the 'lsview' boolean option. - - Depending on view look some of keys change their meaning to allow more - natural cursor moving. This concerns mainly h, j, k, l and other - similar navigation keys. - - Also some of options can be ignored if they don't affect view - displaying in selected look. For example value of 'viewcolumns' when - 'lsview' is set. - -ls-like view - When this view look is enabled by setting 'lsview' option on, vifm will - display files in multiple columns. Number of columns depends on the - length of the longest file name present in current directory of the - view. Whole file list is automatically reflowed on directory change, - terminal or view resize. - - View looks close to output of `ls -x` command, so files are listed left - to right in rows. - - In this mode file manipulation commands (e.g. d) don't work line-wise - like they do in Vim, since such operations would be uncommon for file - manipulation tasks. Thus, for example, dd will remove only current - file. - - By default the view is filled by lines, 'lsoptions' can be used to get - filling by columns. - - Note that tree-view and compare view inhibit ls-like view. - -Column view - View columns are described by a comma-separated list of column - descriptions, each of which has the following format - [ '-' | '*' ] [ fw ( [ '.' tw ] | '%' ) ] '{' type | literal '}' - '.'{0,3} - where fw stands for full width, tw stands for text width, bar is - logical or, square brackets denote optional parts and curly braces - define range of repetitions for a symbol that precedes them. - - So it basically consists of four parts: - 1. Optional alignment specifier - 2. Optional width specifier - 3. Mandatory column name - 4. Optional cropping specifier - - Alignment specifier - - It's an optional minus or asterisk sign as the first symbol of the - string. - - Specifies type of text alignment within a column. Three types are - supported: - - - left align - - set viewcolumns=-{name} - - - right align (default) - - set viewcolumns={name} - - - dynamic align - - It's like left alignment, but when the text is bigger than the - column, the alignment is made at the right (so the part of the field - is always visible). - - set viewcolumns=*{name} - - Width specifier - - It's a number followed by a percent sign, two numbers (second one - should be less than or equal to the first one) separated with a dot or - a single number. - - Specifies column width and its units. There are three size types: - - - absolute size - column width is specified in characters - - set viewcolumns=-100{name},20.15{ext} - - results in two columns with lengths of 100 and 20 and a reserved - space of five characters on the left of second column. - - - relative (percent) size - column width is specified in percents of - view width - - set viewcolumns=-80%{name},15%{ext},5%{mtime} - - results in three columns with lengths of 80/100, 15/100 and 5/100 of - view width. - - - auto size (default) - column width is automatically determined - - set viewcolumns=-{name},{ext},{mtime} - - results in three columns with length of one third of view width. - There is no size adjustment to content, since it will slow down - rendering. - - Columns of different sizing types can be freely mixed in one view. - Though sometimes some of columns can be seen partly or be completely - invisible if there is not enough space to display them. - - Column contents - - This is usually a sorting key surrounded with curly braces, e.g. - - {name},{ext},{mtime} - - {name} and {iname} types are the same and present both for consistency - with 'sort' option. - - Following types don't have corresponding sorting keys: - - - {root} - display name without extension (as a complement for - {ext}) - - - {fileroot} - display name without extension for anything except for - directories and symbolic links to directories (as a complement for - {fileext}) - - Empty curly braces ({}) are replaced with the default secondary column - for primary sort key. So after the next command view will be displayed - almost as if 'viewcolumns' is empty, but adding ellipsis for long file - names: - - set viewcolumns=-{name}..,6{}. - - The last kind of column value is a string literal. The literal is used - as a column value for every row. The syntax is "{#literal}", for - example: - - 3{#},{#|},{# | } - - This can be used to draw column separators. Mind that for convenience - literals have different defaults: truncation and automatically - determined absolute size, which is what you usually want for them. - Example: - - set viewcolumns=*{name}..,{#|},6{}. - - Cropping specifier - - It's from one to three dots after closing curly brace in column format. - - Specifies type of text truncation if it doesn't fit in the column. - Currently three types are supported: - - - truncation - text is truncated - - set viewcolumns=-{name}. - - results in truncation of names that are too long too fit in the - view. - - - adding of ellipsis - ellipsis on the left or right are added when - needed - - set viewcolumns=-{name}.. - - results in that ellipsis are added at the end of too long file - names. - - - none (default) - text can pass column boundaries - - set viewcolumns=-{name}...,{ext} - - results in that long file names can partially be written on the ext - column. - -Color schemes - The color schemes in vifm can be applied in two different ways: - - - as the primary color scheme; - - - as local to a pane color scheme. - - Both types are set using :colorscheme command, but of different forms: - - - :colorscheme color_scheme_name - for the primary color scheme; - - - :colorscheme color_scheme_name directory - for local color schemes. - - Look of different parts of the TUI (Text User Interface) is determined - in this way: - - - Border, TabLine, TabLineSel, TopLineSel, TopLine, CmdLine, - ErrorMsg, StatusLine, JobLine, SuggestBox and WildMenu are always - determined by the primary color scheme; - - - CurrLine, Selected, Directory, Link, BrokenLink, Socket, Device, - Executable, Fifo, CmpMismatch, Win, AuxWin and OtherWin are - determined by primary color scheme and a set of local color - schemes, which can be empty. - - There might be a set of local color schemes because they are structured - hierarchically according to file system structure. For example, having - the following piece of file system: - - ~ - `-- bin - | - `-- my - - Two color schemes: - - # ~/.vifm/colors/for_bin - highlight Win cterm=none ctermfg=white ctermbg=red - highlight CurrLine cterm=none ctermfg=red ctermbg=black - - # ~/.vifm/colors/for_bin_my - highlight CurrLine cterm=none ctermfg=green ctermbg=black - - And these three commands in the vifmrc file: - - colorscheme Default - colorscheme for_bin ~/bin - colorscheme for_bin_my ~/bin/my - - File list will look in the following way for each level: - - - ~/ - Default color scheme - black background - cursor with blue background - - - ~/bin/ - mix of Default and for_bin color schemes - red background - cursor with black background and red foreground - - - ~/bin/my/ - mix of Default, for_bin and for_bin_my color schemes - red background - cursor with black background and green foreground - -Trash directory - vifm has support of trash directory, which is used as temporary storage - for deleted files or files that were cut. Using trash is controlled by - the 'trash' option, and exact path to the trash can be set with - 'trashdir' option. Trash directory in vifm differs from the system- - wide one by default, because of possible incompatibilities of storing - deleted files among different file managers. But one can set - 'trashdir' to "~/.local/share/Trash" to use a "standard" trash - directory. - - There are two scenarios of using trash in vifm: - - 1. As a place for storing files that were cut by "d" and may be - inserted to some other place in file system. - - 2. As a storage of files, that are deleted but not purged yet. - - The first scenario uses deletion ("d") operations to put files to trash - and put ("p") operations to restore files from trash directory. Note - that such operations move files to and from trash directory, which can - be long term operations in case of different partitions or remote - drives mounted locally. - - The second scenario uses deletion ("d") operations for moving files to - trash directory and :empty command-line command to purge all previously - deleted files. - - Deletion and put operations depend on registers, which can point to - files in trash directory. Normally, there are no nonexistent files in - registers, but vifm doesn't keep track of modifications under trash - directory, so one shouldn't expect value of registers to be absolutely - correct if trash directory was modified not by operation that are meant - for it. But this won't lead to any issues with operations, since they - ignore nonexistent files. - -Client-Server - vifm supports remote execution of command-line mode commands, remote - changing of directories and expression evaluation. This is possible - using --remote and --remote-expr command-line arguments. - - To execute a command remotely combine --remote argument with -c - or +. For example: - - vifm --remote -c 'cd /' - vifm --remote '+cd /' - - To change directory not using command-line mode commands one can - specify paths right after --remote argument, like this: - - vifm --remote / - vifm --remote ~ - vifm --remote /usr/bin /tmp - - Evaluating expression remotely might be useful to query information - about an instance, for example its location: - - vifm --remote-expr 'expand("%d")' - - If there are several running instances, the target can be specified - with --server-name option (otherwise, the first one lexicographically - is used): - - vifm --server-name work --remote ~/work/project - - List of names of running instances can be obtained via --server-list - option. Name of the current one is available via v:servername. - - - v:servername - server name of the running vifm instance. Empty if client- - server feature is disabled. - -External Renaming - When an editor is run to edit list of file names, contents of the - temporary file has the following format: - - 1. Order of lines correspond to the order of files in a view. - - 2. Lines that start with a "#" are comments and are ignored. - - 3. Single backslash at the beginning of a line is ignored, so that a - file starting with a backslash will appear like "\#name". - - If an operation was rejected due to issues with file names, next time - you'll see the following in this order: - - 1. Last error (in comments). - - 2. Original file names (in comments). - - 3. Failed list of new names. - - Mind that Vim plugin will extract list of original names and show them - in a vertical split. - - You can cancel renaming by removing all non-comments from the buffer. - This also erases information about previous edits. - -Plugin - Plugin for using vifm in vim as a file selector. - - Commands: - - :EditVifm select a file or files to open in the current buffer. - :Vifm alias for :EditVifm. - :SplitVifm split buffer and select a file or files to open. - :VsplitVifm vertically split buffer and select a file or files to - open. - :DiffVifm select a file or files to compare to the current file - with - :vert diffsplit. - :TabVifm select a file or files to open in tabs. - - Each command accepts up to two arguments: left pane directory and right - pane directory. After arguments are checked, vifm process is spawned - in a special "file-picker" mode. To pick files just open them either - by pressing l, i or Enter keys, or by running :edit command. If no - files are selected, file under the cursor is opened, otherwise whole - selection is passed to the plugin and opened in vim. - - The plugin have only two settings. It's a string variable named - g:vifm_term to let user specify command to run GUI terminal. By - default it's equal to 'xterm -e'. And another string variable named - g:vifm_exec, which equals "vifm" by default and specifies path to - vifm's executable. To pass arguments to vifm use g:vifm_exec_args, - which is empty by default. - - To use the plugin copy the vifm.vim file to either the system wide - vim/plugin directory or into ~/.vim/plugin. - - If you would prefer not to use the plugin and it is in the system wide - plugin directory add - - let loaded_vifm=1 - - to your ~/.vimrc file. - -Reserved - The following command names are reserved and shouldn't be used for user - commands. - - g[lobal] - v[global] - -ENVIRONMENT - VIFM Points to main configuration directory (usually ~/.vifm/). - - MYVIFMRC - Points to main configuration file (usually ~/.vifm/vifmrc). - - These environment variables are valid inside vifm and also can be used - to configure it by setting some of them before running vifm. - - When $MYVIFMRC isn't set, it's made as $VIFM/vifmrc (exception for - Windows: vifmrc in the same directory as vifm.exe has higher priority - than $VIFM/vifmrc). - - See "Startup" section above for more details. - - VIFM_FUSE_FILE - On execution of external commands this variable is set to the - full path of file used to initiate FUSE mount of the closest - mount point from current pane's directory up. It's not set when - outside FUSE mount point. When vifm is used inside terminal - multiplexer, it tries to set this variable as well (it doesn't - work this way on its own). - -SEE ALSO - vifm-convert-dircolors(1), vifm-pause(1) - - Website: https://vifm.info/ - Wiki: https://wiki.vifm.info/ - - Esperanto translation of the documentation by Sebastian Cyprych: - http://cyprych.neostrada.pl/tekstoj/komputiloj/vifm-help.eo.html - -AUTHOR - Vifm was written by ksteen - And currently is developed by xaizek - -vifm 0.12 September 29, 2021 VIFM(1) diff --git a/new-config/.config/vifm/vifmrc b/new-config/.config/vifm/vifmrc deleted file mode 100644 index ca5c53ffa..000000000 --- a/new-config/.config/vifm/vifmrc +++ /dev/null @@ -1,487 +0,0 @@ -" ____ __ -" / __ \_________ _/ /_____ -" / / / / ___/ __ `/ //_/ _ \ -" / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -" /_____/_/ \__,_/_/|_|\___/ My custom vifm config - -" vim: filetype=vifm : -" My config file for the vifm terminal file manager. -" ------------------------------------------------------------------------------ - -" This is the actual command used to start vi. The default is vim. -" If you would like to use emacs or emacsclient, you can use them. -" Since emacs is a GUI app and not a terminal app like vim, append the command -" with an ampersand (&). - -set vicmd=~/.local/bin/lvim - -" This makes vifm perform file operations on its own instead of relying on -" standard utilities like `cp`. While using `cp` and alike is a more universal -" solution, it's also much slower when processing large amounts of files and -" doesn't support progress measuring. - -set syscalls - -" Trash Directory -" The default is to move files that are deleted with dd or :d to -" the trash directory. If you change this you will not be able to move -" files by deleting them and then using p to put the file in the new location. -" I recommend not changing this until you are familiar with vifm. -" This probably shouldn't be an option. - -set trash - -" This is how many directories to store in the directory history. - -set history=100 - -" Automatically resolve symbolic links on l or Enter. - -set nofollowlinks - -" With this option turned on you can run partially entered commands with -" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te). - -" set fastrun - -" Natural sort of (version) numbers within text. - -set sortnumbers - -" Maximum number of changes that can be undone. - -set undolevels=100 - -" If you installed the vim.txt help file set vimhelp. -" If would rather use a plain text help file set novimhelp. - -set novimhelp - -" If you would like to run an executable file when you -" press return on the file name set this. - -set norunexec - -" Selected color scheme -" The following line will cause issues if using vifm.vim with regular vim. -" Either use neovim or comment out the following line. -colorscheme gruvbox-dark - -" Format for displaying time in file list. For example: -" TIME_STAMP_FORMAT=%m/%d-%H:%M -" See man date or man strftime for details. - -set timefmt=%m/%d\ %H:%M - -" Show list of matches on tab completion in command-line mode - -set wildmenu - -" Display completions in a form of popup with descriptions of the matches - -set wildstyle=popup - -" Display suggestions in normal, visual and view modes for keys, marks and -" registers (at most 5 files). In other view, when available. - -set suggestoptions=normal,visual,view,otherpane,keys,marks,registers - -" Ignore case in search patterns unless it contains at least one uppercase -" letter - -set ignorecase -set smartcase - -" Don't highlight search results automatically - -set nohlsearch - -" Use increment searching (search while typing) -set incsearch - -" Try to leave some space from cursor to upper/lower border in lists - -set scrolloff=4 - -" Don't do too many requests to slow file systems - -if !has('win') - set slowfs=curlftpfs -endif - -" Set custom status line look - -set statusline=" Hint: %z%= %A %10u:%-7g %15s %20d " - -" Set line numbers to show - -" ------------------------------------------------------------------------------ - -" :mark mark /full/directory/path [filename] - -mark h ~/ - -" ------------------------------------------------------------------------------ - -" :com[mand][!] command_name action -" The following macros can be used in a command -" %a is replaced with the user arguments. -" %c the current file under the cursor. -" %C the current file under the cursor in the other directory. -" %f the current selected file, or files. -" %F the current selected file, or files in the other directory. -" %b same as %f %F. -" %d the current directory name. -" %D the other window directory name. -" %m run the command in a menu window - -command! df df -h %m 2> /dev/null -command! diff vim -d %f %F -command! zip zip -r %f.zip %f -command! run !! ./%f -command! make !!make %a -command! mkcd :mkdir %a | cd %a -command! vgrep vim "+grep %a" -command! reload :write | restart - -" ------------------------------------------------------------------------------ - -" The file type is for the default programs to be used with -" a file extension. -" :filetype pattern1,pattern2 defaultprogram,program2 -" :fileviewer pattern1,pattern2 consoleviewer -" The other programs for the file type can be accessed with the :file command -" The command macros %f, %F, %d, %F may be used in the commands. -" The %a macro is ignored. To use a % you must put %%. - -" For automated FUSE mounts, you must register an extension with :file[x]type -" in one of following formats: -" -" :filetype extensions FUSE_MOUNT|some_mount_command using %SOURCE_FILE and %DESTINATION_DIR variables -" %SOURCE_FILE and %DESTINATION_DIR are filled in by vifm at runtime. -" A sample line might look like this: -" :filetype *.zip,*.jar,*.war,*.ear FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR -" -" :filetype extensions FUSE_MOUNT2|some_mount_command using %PARAM and %DESTINATION_DIR variables -" %PARAM and %DESTINATION_DIR are filled in by vifm at runtime. -" A sample line might look like this: -" :filetype *.ssh FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR -" %PARAM value is filled from the first line of file (whole line). -" Example first line for SshMount filetype: root@127.0.0.1:/ -" -" You can also add %CLEAR if you want to clear screen before running FUSE -" program. - -" Pdf -filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c -fileviewer *.pdf - \ pdftotext -nopgbrk %c - - -" PostScript -filextype *.ps,*.eps,*.ps.gz - \ {View in zathura} - \ zathura %f, - \ {View in gv} - \ gv %c %i &, - -" Djvu -filextype *.djvu - \ {View in zathura} - \ zathura %f, - \ {View in apvlv} - \ apvlv %f, - -" Audio -filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus - \ {Play using mpv} - \ mpv %f, -fileviewer *.mp3 mp3info -fileviewer *.flac soxi - -" Video -filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, - \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, - \*.as[fx] - \ {View using mplayer} - \ mpv %f, -fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, - \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, - \*.as[fx] - \ ffprobe -pretty %c 2>&1 - -" Web -filextype *.html,*.htm - \ {Open with emacs} - \ emacsclient -c %c &, - \ {Open with vim} - \ vim %c &, - \ {Open with dwb} - \ dwb %f %i &, - \ {Open with firefox} - \ firefox %f &, - \ {Open with uzbl} - \ uzbl-browser %f %i &, -filetype *.html,*.htm links, lynx - -" Object -filetype *.o nm %f | less - -" Man page -filetype *.[1-8] man ./%c -fileviewer *.[1-8] man ./%c | col -b - -" Images -filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm - \ {View in imv} - \ imv %f &, -fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm,*.gif - \ wezterm imgcat --width %pw --height %ph %c:p %pd - -" OpenRaster -filextype *.ora - \ {Edit in MyPaint} - \ mypaint %f, - -" Mindmap -filextype *.vym - \ {Open with VYM} - \ vym %f &, - -" MD5 -filetype *.md5 - \ {Check MD5 hash sum} - \ md5sum -c %f %S, - -" SHA1 -filetype *.sha1 - \ {Check SHA1 hash sum} - \ sha1sum -c %f %S, - -" SHA256 -filetype *.sha256 - \ {Check SHA256 hash sum} - \ sha256sum -c %f %S, - -" SHA512 -filetype *.sha512 - \ {Check SHA512 hash sum} - \ sha512sum -c %f %S, - -" GPG signature -filetype *.asc - \ {Check signature} - \ !!gpg --verify %c, - -" Torrent -filetype *.torrent ktorrent %f & -fileviewer *.torrent dumptorrent -v %c - -" FuseZipMount -filetype *.zip,*.jar,*.war,*.ear,*.oxt,*.apkg - \ {Mount with fuse-zip} - \ FUSE_MOUNT|fuse-zip %SOURCE_FILE %DESTINATION_DIR, - \ {View contents} - \ zip -sf %c | less, - \ {Extract here} - \ tar -xf %c, -fileviewer *.zip,*.jar,*.war,*.ear,*.oxt zip -sf %c - -" ArchiveMount -filetype *.tar,*.tar.bz2,*.tbz2,*.tgz,*.tar.gz,*.tar.xz,*.txz - \ {Mount with archivemount} - \ FUSE_MOUNT|archivemount %SOURCE_FILE %DESTINATION_DIR, -fileviewer *.tgz,*.tar.gz tar -tzf %c -fileviewer *.tar.bz2,*.tbz2 tar -tjf %c -fileviewer *.tar.txz,*.txz xz --list %c -fileviewer *.tar tar -tf %c - -" Rar2FsMount and rar archives -filetype *.rar - \ {Mount with rar2fs} - \ FUSE_MOUNT|rar2fs %SOURCE_FILE %DESTINATION_DIR, -fileviewer *.rar unrar v %c - -" IsoMount -filetype *.iso - \ {Mount with fuseiso} - \ FUSE_MOUNT|fuseiso %SOURCE_FILE %DESTINATION_DIR, - -" SshMount -filetype *.ssh - \ {Mount with sshfs} - \ FUSE_MOUNT2|sshfs %PARAM %DESTINATION_DIR %FOREGROUND, - -" FtpMount -filetype *.ftp - \ {Mount with curlftpfs} - \ FUSE_MOUNT2|curlftpfs -o ftp_port=-,,disable_eprt %PARAM %DESTINATION_DIR %FOREGROUND, - -" Fuse7z and 7z archives -filetype *.7z - \ {Mount with fuse-7z} - \ FUSE_MOUNT|fuse-7z %SOURCE_FILE %DESTINATION_DIR, -fileviewer *.7z 7z l %c - -" Office files -filextype *.odt,*.doc,*.docx,*.xls,*.xlsx,*.odp,*.pptx libreoffice %f & -fileviewer *.doc catdoc %c -fileviewer *.docx docx2txt.pl %f - - -" TuDu files -filetype *.tudu tudu -f %c - -" Qt projects -filextype *.pro qtcreator %f & - -" Directories -filextype */ - \ {View in thunar} - \ Thunar %f &, - -" Syntax highlighting in preview -" -" Explicitly set highlight type for some extensions -" -" 256-color terminal -" fileviewer *.[ch],*.[ch]pp highlight -O xterm256 -s dante --syntax c %c -" fileviewer Makefile,Makefile.* highlight -O xterm256 -s dante --syntax make %c -" -" 16-color terminal -" fileviewer *.c,*.h highlight -O ansi -s dante %c -" -" Or leave it for automatic detection -" -" fileviewer *[^/] pygmentize -O style=monokai -f console256 -g - -" Displaying pictures in terminal -" -" fileviewer *.jpg,*.png shellpic %c - -" Open all other files with default system programs (you can also remove all -" :file[x]type commands above to ensure they don't interfere with system-wide -" settings). By default all unknown files are opened with 'vi[x]cmd' -" uncommenting one of lines below will result in ignoring 'vi[x]cmd' option -" for unknown file types. -" For *nix: -" filetype * xdg-open -" For OS X: -" filetype * open -" For Windows: -" filetype * start, explorer - -" GETTING ICONS TO DISPLAY IN VIFM -" You need the next 14 lines! - -" file types -set classify=' :dir:/, :exe:, :reg:, :link:' -" various file names -set classify+=' ::../::, ::*.sh::, ::*.[hc]pp::, ::*.[hc]::, ::/^copying|license$/::, ::.git/,,*.git/::, ::*.epub,,*.fb2,,*.djvu::, ::*.pdf::, ::*.htm,,*.html,,**.[sx]html,,*.xml::' -" archives -set classify+=' ::*.7z,,*.ace,,*.arj,,*.bz2,,*.cpio,,*.deb,,*.dz,,*.gz,,*.jar,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.rz,,*.tar,,*.taz,,*.tb2,,*.tbz,,*.tbz2,,*.tgz,,*.tlz,,*.trz,,*.txz,,*.tz,,*.tz2,,*.xz,,*.z,,*.zip,,*.zoo::' -" images -set classify+=' ::*.bmp,,*.gif,,*.jpeg,,*.jpg,,*.ico,,*.png,,*.ppm,,*.svg,,*.svgz,,*.tga,,*.tif,,*.tiff,,*.xbm,,*.xcf,,*.xpm,,*.xspf,,*.xwd::' -" audio -set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::' -" media -set classify+=' ::*.avi,,*.ts,,*.axv,,*.divx,,*.m2v,,*.m4p,,*.m4v,,.mka,,*.mkv,,*.mov,,*.mp4,,*.flv,,*.mp4v,,*.mpeg,,*.mpg,,*.nuv,,*.ogv,,*.pbm,,*.pgm,,*.qt,,*.vob,,*.wmv,,*.xvid::' -" office files -set classify+=' ::*.doc,,*.docx::, ::*.xls,,*.xls[mx]::, ::*.pptx,,*.ppt::' - -" ------------------------------------------------------------------------------ - -" What should be saved automatically between vifm runs -" Like in previous versions of vifm -" set vifminfo=options,filetypes,commands,bookmarks,dhistory,state,cs -" Like in vi -set vifminfo=dhistory,savedirs,chistory,state,tui,shistory, - \phistory,fhistory,dirstack,registers,bookmarks,bmarks - -" ------------------------------------------------------------------------------ - -" Examples of configuring both panels - -" Customize view columns a bit (enable ellipsis for truncated file names) -" -" set viewcolumns=-{name}..,6{}. - -" Filter-out build and temporary files -" -" filter! /^.*\.(lo|o|d|class|py[co])$|.*~$/ - -" ------------------------------------------------------------------------------ - -" Sample mappings - -"Open all images in current directory in sxiv thumbnail mode -nnoremap sx :!sxiv -t %d & - -"Open selected images in gimp -nnoremap gp :!gimp %f & - -" Start shell in current directory -nnoremap s :shell - -" Display sorting dialog -nnoremap S :sort - -" Toggle visibility of preview window -nnoremap w :view -vnoremap w :viewgv - -" Open file in the background using its default program -nnoremap gb :file &l - -" Yank current directory path into the clipboard -nnoremap yd :!echo %d | xclip %i - -" Yank current file path into the clipboard -nnoremap yf :!echo %c:p | xclip %i - -" Mappings for faster renaming -nnoremap I cw -nnoremap cc cw -nnoremap A cw - -" Open console in current directory -nnoremap ,t :!xterm & - -" Open editor to edit vifmrc and apply settings after returning to vifm -nnoremap ,c :write | edit $MYVIFMRC | restart -" Open gvim to edit vifmrc -nnoremap ,C :!gvim --remote-tab-silent $MYVIFMRC & - -" Toggle wrap setting on ,w key -nnoremap ,w :set wrap! - -" Example of standard two-panel file managers mappings -nnoremap :!less %f -nnoremap :edit -nnoremap :copy -nnoremap :move -nnoremap :mkdir -nnoremap :delete - -" ------------------------------------------------------------------------------ - -" Various customization examples - -" Use ag (the silver searcher) instead of grep -" -" set grepprg='ag --line-numbers %i %a %s' - -" Add additional place to look for executables -" -" let $PATH = $HOME.'/bin/fuse:'.$PATH - -" Block particular shortcut -" -" nnoremap - -" Export IPC name of current instance as environment variable and use it to -" communicate with the instance later. -" -" It can be used in some shell script that gets run from inside vifm, for -" example, like this: -" vifm --server-name "$VIFM_SERVER_NAME" --remote +"cd '$PWD'" -" -" let $VIFM_SERVER_NAME = v:servername diff --git a/new-config/.config/wezterm/wezterm.lua b/new-config/.config/wezterm/wezterm.lua deleted file mode 100644 index 38be7d68c..000000000 --- a/new-config/.config/wezterm/wezterm.lua +++ /dev/null @@ -1,33 +0,0 @@ -local wezterm = require 'wezterm' -local gpus = wezterm.gui.enumerate_gpus() - -return { - enable_wayland = true, - font = wezterm.font { - family = 'mononoki Nerd Font', - weight = 'Medium' - }, - color_scheme = 'Gruvbox dark, hard (base16)', - default_prog = { '/usr/bin/fish' }, - default_cursor_style = "BlinkingUnderline", - font_size = 12, - check_for_updates = false, - use_dead_keys = false, - warn_about_missing_glyphs = false, - enable_kitty_graphics = true, - animation_fps = 1, - cursor_blink_rate = 175, - hide_tab_bar_if_only_one_tab = true, - adjust_window_size_when_changing_font_size = false, - window_padding = { - left = 10, - right = 10, - top = 10, - bottom = 10, - }, - use_fancy_tab_bar = false, - exit_behavior = "Close", - window_close_confirmation = 'NeverPrompt', - tab_bar_at_bottom = false, - window_background_opacity = 0.9, -} diff --git a/new-config/.config/zathura/zathurarc b/new-config/.config/zathura/zathurarc deleted file mode 100644 index 126e180bb..000000000 --- a/new-config/.config/zathura/zathurarc +++ /dev/null @@ -1,54 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom zathura config -## - -set font "mononoki Nerd Font 9" -set default-bg "#262626" #00 -set default-fg "#ebdbb2" #01 - -set statusbar-fg "#ebdbb2" #04 -set statusbar-bg "#262626" #01 - -set inputbar-bg "#262626" #00 currently not used -set inputbar-fg "#ebdbb2" #02 - -set notification-error-bg "#262626" #08 -set notification-error-fg "#cc241d" #00 - -set notification-warning-bg "#262626" #08 -set notification-warning-fg "#d79921" #00 - -set highlight-color "#262626" #0A -set highlight-active-color "#ebdbb2" #0D - -set completion-highlight-fg "#4e4e4e" #02 -set completion-highlight-bg "#87afaf" #0C - -set completion-bg "#4e4e4e" #02 -set completion-fg "#ebdbb2" #0C - -set notification-bg "#262626" #0B -set notification-fg "#458588" #00 - -set recolor-lightcolor "#262626" #00 -set recolor-darkcolor "#ebdbb2" #06 -set recolor "false" - -# setting recolor-keep true will keep any color your pdf has. -# if it is false, it'll just be black and white -set recolor-keephue "false" - -set selection-clipboard "clipboard" - -# keybindings -map [fullscreen] a adjust_window best-fit -map [fullscreen] s adjust_window width -map [fullscreen] f follow -map [fullscreen] toggle_index -map [fullscreen] j scroll down -map [fullscreen] k scroll up -map [fullscreen] h navigate previous -map [fullscreen] l navigate next diff --git a/new-config/.icons/default/index.theme b/new-config/.icons/default/index.theme deleted file mode 100644 index 27401a6a0..000000000 --- a/new-config/.icons/default/index.theme +++ /dev/null @@ -1,5 +0,0 @@ -# This file is written by nwg-look. Do not edit. -[Icon Theme] -Name=Default -Comment=Default Cursor Theme -Inherits=Simp1e-Gruvbox-Dark diff --git a/user/.bash_logout b/user/.bash_logout deleted file mode 100644 index 60c6b07a2..000000000 --- a/user/.bash_logout +++ /dev/null @@ -1,3 +0,0 @@ -# ~/.bash_logout -clear - diff --git a/user/.bash_profile b/user/.bash_profile index 974b007d8..7902f7a48 100644 --- a/user/.bash_profile +++ b/user/.bash_profile @@ -9,16 +9,22 @@ ### STARTING XSESSION if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ] then - startx -- vt1 -keeptty &>/dev/null + sh $HOME/.winitrc logout fi ### ENVIRONMENT VARIABLES export EDITOR="lvim" # $EDITOR use lunarvim in terminal -export VISUAL="neovide --neovim-bin ./.local/bin/lvim" # $VISUAL use neovide for lunarvim in GUI -export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}" -export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}" -export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}" + +# clean home +export XDG_DATA_HOME="$HOME/.local/share" +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_CONFIG_HOME="$HOME/.config" +export W3M_DIR="$XDG_DATA_HOME/w3m" +export GTK2_RC_FILES="$HOME/.config/gtk-2.0/gtkrc-2.0" +export WGETRC="$HOME/.config/wget/wgetrc" +export INPUTRC="$HOME/.config/inputrc" +export GNUPGHOME="$HOME/.local/share/gnupg" ### BASHRC -source "$HOME"/.bashrc # Load the bashrc +source "$HOME"/.bashrc # Load the bashrc diff --git a/user/.bashrc b/user/.bashrc index deb8e6da9..ed7e16819 100644 --- a/user/.bashrc +++ b/user/.bashrc @@ -8,6 +8,11 @@ ### EXPORT ### export TERM="xterm-256color" # getting proper colors export HISTCONTROL=ignoredups:erasedups # no duplicate entries +export EDITOR="$HOME/.local/bin/lvim" +export VISUAL="wezterm start --class editor -- $HOME/.local/bin/lvim" + +### "bat" as manpager +export MANPAGER="sh -c 'col -bx | bat -l man -p'" # use bash-completion, if available [[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \ @@ -17,10 +22,7 @@ export HISTCONTROL=ignoredups:erasedups # no duplicate entries [[ $- != *i* ]] && return # use neovim for vim if present. -[ -x "$(command -v lvim)" ] && alias vim="lvim" vimdiff="lvim -d" - -# use $XINITRC variable if file exists. -[ -f "$XINITRC" ] && alias startx="startx $XINITRC" +[ -x "$(command -v $HOME/.local/bin/lvim)" ] && alias vim="lvim" ### SET VI MODE ### # Comment this line out to enable default emacs-like bindings @@ -38,9 +40,6 @@ fi if [ -d "$HOME/Applications" ] ; then PATH="$HOME/Applications:$PATH" fi -if [ -d "$HOME/.config/emacs/bin" ] ; - then PATH="$HOME/.config/emacs/bin:$PATH" -fi ### CHANGE TITLE OF TERMINALS ### case ${TERM} in @@ -128,6 +127,9 @@ alias \ # bat as cat [ -x "$(command -v bat)" ] && alias cat="bat" +# pfetch as neofetch +[ -x "$(command -v pfetch)" ] && alias neofetch="pfetch" + # Changing "ls" to "exa" alias \ ls="exa -al --icons --color=always --group-directories-first" \ @@ -136,14 +138,14 @@ alias \ lt="exa -aT --icons --color=always --group-directories-first" \ l.='exa -a | grep -E "^\."' -# function to detect os and assign aliases to package managers +# pacman alias \ - pac-up="paru -Syyu" \ + pac-up="paru -Syu" \ pac-get="paru -S" \ pac-rmv="paru -Rcns" \ pac-rmv-sec="paru -R" \ pac-qry="paru -Ss" \ - pac-cln="paru -Scc" + pac-cln="paru -Scc && sudo pacman -Rns $(pacman -Qtdq)" # colorize grep output (good for log files) alias \ @@ -153,27 +155,24 @@ alias \ # git alias \ - addup="git add -u" \ - addall="git add ." \ - branch="git branch" \ - checkout="git checkout" \ - clone="git clone" \ - commit="git commit -m" \ - fetch="git fetch" \ - pull="git pull origin" \ - push="git push origin" \ - stat="git status" \ - tag="git tag" \ - newtag="git tag -a" + git-adu="git add -u" \ + git-adl="git add ." \ + git-brn="git branch" \ + git-chk="git checkout" \ + git-cln="git clone" \ + git-cmt="git commit -m" \ + git-fth="git fetch" \ + git-pll="git pull origin" \ + git-psh="git push origin" \ + git-sts="git status" \ + git-tag="git tag" \ + git-ntg="git tag -a" # adding flags alias \ df="df -h" \ free="free -m" -# newsboat -[ -x "$(command -v newsboat)" ] && alias newsboat="newsboat -u ~/.config/newsboat/urls" - # multimedia scripts alias \ fli="flix-cli" \ @@ -196,10 +195,9 @@ alias \ # file management alias \ - fm="$HOME/.config/vifm/scripts/vifmrun" \ - file="$HOME/.config/vifm/scripts/vifmrun" \ - flm="$HOME/.config/vifm/scripts/vifmrun" \ - vifm="$HOME/.config/vifm/scripts/vifmrun" \ + fm="vifm" \ + file="vifm" \ + flm="vifm" \ rm="rm -vI" \ mv="mv -iv" \ cp="cp -iv" \ diff --git a/user/.config/alacritty/alacritty.yml b/user/.config/alacritty/alacritty.yml deleted file mode 100644 index e010baa24..000000000 --- a/user/.config/alacritty/alacritty.yml +++ /dev/null @@ -1,447 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom alacritty config -## - -## Set colorschemes - -####################################### -## Alacritty colorschemes ## -####################################### -schemes: - ### Doom One ### - doom-one: &doom-one - primary: - background: '#282c34' - foreground: '#bbc2cf' - cursor: - text: CellBackground - cursor: '#528bff' - selection: - text: CellForeground - background: '#3e4451' - normal: - black: '#1c1f24' - red: '#ff6c6b' - green: '#98be65' - yellow: '#da8548' - blue: '#51afef' - magenta: '#c678dd' - cyan: '#5699af' - white: '#202328' - bright: - black: '#5b6268' - red: '#da8548' - green: '#4db5bd' - yellow: '#ecbe7b' - blue: '#3071db' # This is 2257a0 in Doom Emacs but I lightened it. - magenta: '#a9a1e1' - cyan: '#46d9ff' - white: '#dfdfdf' - - ### Tokyo Night ### - tokyo-night: &tokyo-night - # Default colors - primary: - background: '#1a1b26' - foreground: '#a9b1d6' - - # Normal colors - normal: - black: '#32344a' - red: '#f7768e' - green: '#9ece6a' - yellow: '#e0af68' - blue: '#34548a' - magenta: '#ad8ee6' - cyan: '#449dab' - white: '#9699a8' - - # Bright colors - bright: - black: '#444b6a' - red: '#ff7a93' - green: '#b9f27c' - yellow: '#ff9e64' - blue: '#7da6ff' - magenta: '#bb9af7' - cyan: '#0db9d7' - white: '#acb0d0' - - - ### Dracula ### - dracula: &dracula - primary: - background: '#282a36' - foreground: '#f8f8f2' - cursor: - text: CellBackground - cursor: CellForeground - vi_mode_cursor: - text: CellBackground - cursor: CellForeground - search: - matches: - foreground: '#44475a' - background: '#50fa7b' - focused_match: - foreground: '#44475a' - background: '#ffb86c' - bar: - background: '#282a36' - foreground: '#f8f8f2' - line_indicator: - foreground: None - background: None - selection: - text: CellForeground - background: '#44475a' - normal: - black: '#000000' - red: '#ff5555' - green: '#50fa7b' - yellow: '#f1fa8c' - blue: '#bd93f9' - magenta: '#ff79c6' - cyan: '#8be9fd' - white: '#bfbfbf' - bright: - black: '#4d4d4d' - red: '#ff6e67' - green: '#5af78e' - yellow: '#f4f99d' - blue: '#caa9fa' - magenta: '#ff92d0' - cyan: '#9aedfe' - white: '#e6e6e6' - dim: - black: '#14151b' - red: '#ff2222' - green: '#1ef956' - yellow: '#ebf85b' - blue: '#4d5b86' - magenta: '#ff46b0' - cyan: '#59dffc' - white: '#e6e6d1' - - ### Gruvbox dark ### - gruvbox-dark: &gruvbox-dark - # Default colors - primary: - # hard contrast: background = '0x1d2021' - background: '#1d2021' - # soft contrast: background = '0x32302f' - foreground: '#ebdbb2' - - # Normal colors - normal: - black: '#282828' - red: '#cc241d' - green: '#98971a' - yellow: '#d79921' - blue: '#458588' - magenta: '#b16286' - cyan: '#689d6a' - white: '#a89984' - - # Bright colors - bright: - black: '#928374' - red: '#fb4934' - green: '#b8bb26' - yellow: '#fabd2f' - blue: '#83a598' - magenta: '#d3869b' - cyan: '#8ec07c' - white: '#ebdbb2' - -### Monokai ### - monokai-pro: &monokai-pro - # Default colors - primary: - background: '#2D2A2E' - foreground: '#FCFCFA' - - # Normal colors - normal: - black: '#403E41' - red: '#FF6188' - green: '#A9DC76' - yellow: '#FFD866' - blue: '#FC9867' - magenta: '#AB9DF2' - cyan: '#78DCE8' - white: '#FCFCFA' - - # Bright colors - bright: - black: '#727072' - red: '#FF6188' - green: '#A9DC76' - yellow: '#FFD866' - blue: '#FC9867' - magenta: '#AB9DF2' - cyan: '#78DCE8' - white: '#FCFCFA' - - ### Nord ### - nord: &nord - # Default colors - primary: - background: '#2E3440' - foreground: '#D8DEE9' - - # Normal colors - normal: - black: '#3B4252' - red: '#BF616A' - green: '#A3BE8C' - yellow: '#EBCB8B' - blue: '#81A1C1' - magenta: '#B48EAD' - cyan: '#88C0D0' - white: '#E5E9F0' - - # Bright colors - bright: - black: '#4C566A' - red: '#BF616A' - green: '#A3BE8C' - yellow: '#EBCB8B' - blue: '#81A1C1' - magenta: '#B48EAD' - cyan: '#8FBCBB' - white: '#ECEFF4' - - ### Oceanic Next ### - oceanic-next: &oceanic-next - # Default colors - primary: - background: '#1b2b34' - foreground: '#d8dee9' - - # Colors the cursor will use if `custom_cursor_colors` is true - cursor: - text: '#1b2b34' - cursor: '#ffffff' - - # Normal colors - normal: - black: '#343d46' - red: '#EC5f67' - green: '#99C794' - yellow: '#FAC863' - blue: '#6699cc' - magenta: '#c594c5' - cyan: '#5fb3b3' - white: '#d8dee9' - - # Bright colors - bright: - black: '#343d46' - red: '#EC5f67' - green: '#99C794' - yellow: '#FAC863' - blue: '#6699cc' - magenta: '#c594c5' - cyan: '#5fb3b3' - white: '#d8dee9' - - ### Palenight ### - palenight: &palenight - # Default colors - primary: - background: '#292d3e' - foreground: '#d0d0d0' - - # Normal colors - normal: - black: '#292d3e' - red: '#f07178' - green: '#c3e88d' - yellow: '#ffcb6b' - blue: '#82aaff' - magenta: '#c792ea' - cyan: '#89ddff' - white: '#d0d0d0' - - # Bright colors - bright: - black: '#434758' - red: '#ff8b92' - green: '#ddffa7' - yellow: '#ffe585' - blue: '#9cc4ff' - magenta: '#e1acff' - cyan: '#a3f7ff' - white: '#ffffff' - - ### Solarized Dark ### - solarized-dark: &solarized-dark - # Default colors - primary: - background: '#002b36' # base03 - foreground: '#839496' # base0 - - # Cursor colors - cursor: - text: '#002b36' # base03 - cursor: '#839496' # base0 - - # Normal colors - normal: - black: '#073642' # base02 - red: '#dc322f' # red - green: '#859900' # green - yellow: '#b58900' # yellow - blue: '#268bd2' # blue - magenta: '#d33682' # magenta - cyan: '#2aa198' # cyan - white: '#eee8d5' # base2 - - # Bright colors - bright: - black: '#002b36' # base03 - red: '#cb4b16' # orange - green: '#586e75' # base01 - yellow: '#657b83' # base00 - blue: '#839496' # base0 - magenta: '#6c71c4' # violet - cyan: '#93a1a1' # base1 - white: '#fdf6e3' # base3 - - ### Solarized Light ### - solarized-light: &solarized-light - # Default colors - primary: - background: '#fdf6e3' # base3 - foreground: '#657b83' # base00 - - # Cursor colors - cursor: - text: '#fdf6e3' # base3 - cursor: '#657b83' # base00 - - # Normal colors - normal: - black: '#073642' # base02 - red: '#dc322f' # red - green: '#859900' # green - yellow: '#b58900' # yellow - blue: '#268bd2' # blue - magenta: '#d33682' # magenta - cyan: '#2aa198' # cyan - white: '#eee8d5' # base2 - - # Bright colors - bright: - black: '#002b36' # base03 - red: '#cb4b16' # orange - green: '#586e75' # base01 - yellow: '#657b83' # base00 - blue: '#839496' # base0 - magenta: '#6c71c4' # violet - cyan: '#93a1a1' # base1 - white: '#fdf6e3' # base3 - - ### Tomorrow Night ### - tomorrow-night: &tomorrow-night - # Default colors - primary: - background: '#1d1f21' - foreground: '#c5c8c6' - - # Colors the cursor will use if `custom_cursor_colors` is true - cursor: - text: '#1d1f21' - cursor: '#ffffff' - - # Normal colors - normal: - black: '#1d1f21' - red: '#cc6666' - green: '#b5bd68' - yellow: '#e6c547' - blue: '#81a2be' - magenta: '#b294bb' - cyan: '#70c0ba' - white: '#373b41' - - # Bright colors - bright: - black: '#666666' - red: '#ff3334' - green: '#9ec400' - yellow: '#f0c674' - blue: '#81a2be' - magenta: '#b77ee0' - cyan: '#54ced6' - white: '#282a2e' - -colors: *gruvbox-dark - -## Set environment variables -env: - TERM: xterm-256color - -## Window settigns -window: - opacity: 0.95 - padding: - x: 6 - y: 6 - dynamic_padding: false - title: Alacritty - class: - instance: Alacritty - general: Alacritty - dimensions: - columns: 160 - lines: 44 - -## Scrolling settings -scrolling: - history: 5000 - -## Font settings -font: - normal: - family: mononoki Nerd Font - style: Regular - bold: - family: mononoki Nerd Font - style: Bold - italic: - family: mononoki Nerd Font - style: Italic - bold_italic: - family: mononoki Nerd Font - style: Bold Italic - size: 8 - offset: - x: 0 - y: 1 -draw_bold_text_with_bright_colors: true - -cursor: - style: Underline - -shell: - program: /bin/fish - -key_bindings: - # (Windows, Linux, and BSD only) - - { key: V, mods: Control|Shift, action: Paste } - - { key: C, mods: Control|Shift, action: Copy } - - { key: Insert, mods: Shift, action: PasteSelection } - - { key: Key0, mods: Control, action: ResetFontSize } - - { key: Equals, mods: Control, action: IncreaseFontSize } - - { key: Plus, mods: Control, action: IncreaseFontSize } - - { key: Minus, mods: Control, action: DecreaseFontSize } - - { key: F11, mods: None, action: ToggleFullscreen } - - { key: L, mods: Control, action: ClearLogNotice } - - { key: L, mods: Control, chars: "\x0c" } - - { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt } - - { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt } diff --git a/user/.config/awesome/apps.lua b/user/.config/awesome/apps.lua deleted file mode 100644 index 5ef65103c..000000000 --- a/user/.config/awesome/apps.lua +++ /dev/null @@ -1,28 +0,0 @@ --- Apps config, see keymaps/keyboard.lua to see how this is handled in keybindings -local apps = { - terminal = "wezterm", -- Selected terminal emulator - -- Rofi settings - drunner = "rofi -show drun -show-icons", -- Desktop runner - runner = "rofi -show run", -- Normal runner - runner_power = "$HOME/.config/rofi/scripts/rofi_power", -- Power manager - runner_wifi = "$HOME/.config/rofi/scripts/rofi_wifi", -- Wifi manager - runner_scrot = "$HOME/.config/rofi/scripts/rofi_scrot", -- Screenshots manager - runner_emoji = "$HOME/.config/rofi/scripts/rofi_emoji", -- Emojis manager - runner_wall = "$HOME/.config/rofi/scripts/rofi_wall", -- Wallpapers manager - -- Other scripts - ytfzf = "wezterm start --class ytfzf -- ytfzf -flstT chafa", -- Youtube - ytfzf_music = "wezterm start --class ytfzf_music -- ytfzf -mlstT chafa", -- Youtube Music - ani_cli = "wezterm start --class ani-cli -- ani-cli", -- Anime - flix_cli = "wezterm start --class flix-cli -- flix-cli", -- Movies - tut = "wezterm start --class tut -- tut", -- Mastodon - newsboat = "wezterm start --class newsboat -- newsboat -u ~/.config/newsboat/urls", -- Newsboat - -- Selected apps - editor = "neovide --neovim-bin ./.local/bin/lvim", -- TAG 1 - file = "wezterm start --class vifm -- ./.config/vifm/scripts/vifmrun", -- TAG 2 - browser = "firefox", -- TAG 3 - chat = "revolt-desktop", -- TAG 4 - music = "wezterm start --class cmus -- cmus", -- TAG 5 - office = "libreoffice", -- TAG 8 - game = "retroarch" -- TAG 9 -} -return apps diff --git a/user/.config/awesome/autostart.lua b/user/.config/awesome/autostart.lua deleted file mode 100644 index 5249b0724..000000000 --- a/user/.config/awesome/autostart.lua +++ /dev/null @@ -1,21 +0,0 @@ -local awful = require("awful") --- Session manager -awful.util.spawn_with_shell( - "lxpolkit &" -) --- Wallpapers manager -awful.util.spawn_with_shell( - "$HOME/.fehbg &" -) --- Automatically hide the cursor -awful.util.spawn_with_shell( - "unclutter --hide-on-touch &" -) --- Compositor -awful.util.spawn_with_shell( - "picom --experimental-backends --config ~/.config/picom/picom.conf &" -) --- Power manager -awful.util.spawn_with_shell( - "xfce4-power-manager &" -) diff --git a/user/.config/awesome/helpers.lua b/user/.config/awesome/helpers.lua deleted file mode 100644 index 528c4be4f..000000000 --- a/user/.config/awesome/helpers.lua +++ /dev/null @@ -1,35 +0,0 @@ -local naughty = require("naughty") -local ruled = require("ruled") -local beautiful = require("beautiful") - --- {{{ Error handling -naughty.connect_signal( - "request::display_error", - function(message, startup) - naughty.notification { - urgency = "critical", - title = "Oops, an error happened".. ( startup and " during startup!" or "!" ), - message = message - } - end -) --- }}} - --- {{{ Signals --- No borders when rearranging only 1 non-floating or maximized client -screen.connect_signal( - "arrange", - function (s) - local max = s.selected_tag.layout.name == "max" - local only_one = #s.tiled_clients == 1 -- use tiled_clients so that other floating windows don't affect the count - -- but iterate over clients instead of tiled_clients as tiled_clients doesn't include maximized windows - for _, c in pairs(s.clients) do - if (max or only_one) and not c.floating or c.maximized then - c.border_width = 0 - else - c.border_width = beautiful.border_width - end - end - end -) --- }}} diff --git a/user/.config/awesome/keymaps/keyboard.lua b/user/.config/awesome/keymaps/keyboard.lua deleted file mode 100644 index 836b0267f..000000000 --- a/user/.config/awesome/keymaps/keyboard.lua +++ /dev/null @@ -1,723 +0,0 @@ -local awful = require("awful") -local hotkeys_popup = require("awful.hotkeys_popup"); require("awful.hotkeys_popup.keys") -local apps = require("apps") -require("awful.autofocus") - --- Modkeys. -altkey = "Mod1" -modkey = "Mod4" -conkey = "Control" -shikey = "Shift" - ---[[ Main keybinds ]]-- -awful.keyboard.append_global_keybindings( - { - -- Show the help menu - awful.key( - { modkey }, - "s", - hotkeys_popup.show_help, - { description = - "Show Help Menu", - group = - "Main keybinds" - } - ), - -- Reload awesome - awful.key( - { modkey, conkey }, - "r", - awesome.restart, - { description = - "Reload Awesome", - group = - "Main keybinds" - } - ), - -- Open a terminal - awful.key( - { modkey }, - "Return", - function () - awful.spawn(apps.terminal) - end, - { description = - "Open a terminal", - group = - "Main keybinds" - } - ), - } -) ---[[ ]]-- - ---[[ Tags related keybindings ]]-- -awful.keyboard.append_global_keybindings( - { - -- Switch to previous tag - awful.key( - { modkey }, - "Left", - awful.tag.viewprev, - { description = - "Quickly switch to previous tag", - group = - "Tag keybinds" - } - ), - -- Switch to next tag - awful.key( - { modkey }, - "Right", - awful.tag.viewnext, - { description = - "Quickly switch to next tag", - group = - "Tag keybinds" - } - ), - -- Switch back to the previous tag - awful.key( - { modkey }, - "Escape", - awful.tag.history.restore, - { description = - "Go back to previus tag (from history)", - group = - "Tag keybinds" - } - ), - -- Switch tags by numbers 1-9 - awful.key { - modifiers = { modkey }, - keygroup = "numrow", - description = "Switch tags with number keys from {1 to 9}", - group = "Tag keybinds", - on_press = function (index) - local screen = awful.screen.focused() - local tag = screen.tags[index] - if tag then - tag:view_only() - end - end, - }, - -- Toggle tags by numbers 1-9 - awful.key { - modifiers = { modkey, conkey }, - keygroup = "numrow", - description = "Quickly view contents in another tag with number keys from {1 to 9}", - group = "Tag keybinds", - on_press = function (index) - local screen = awful.screen.focused() - local tag = screen.tags[index] - if tag then - awful.tag.viewtoggle(tag) - end - end, - }, - -- Move focused window to tag by numbers 1-9 - awful.key { - modifiers = { modkey, shikey }, - keygroup = "numrow", - description = "Move focused window to another tag with number keys from {1 to 9}", - group = "Tag keybinds", - on_press = function (index) - if client.focus then - local tag = client.focus.screen.tags[index] - if tag then - client.focus:move_to_tag(tag) - end - end - end, - }, - -- Toggle focused window on tag by numbers 1-9 - awful.key { - modifiers = { modkey, conkey, shikey }, - keygroup = "numrow", - description = "View focused window on more than one tag with number keys from {1 to 9}", - group = "Tag keybinds", - on_press = function (index) - if client.focus then - local tag = client.focus.screen.tags[index] - if tag then - client.focus:toggle_tag(tag) - end - end - end, - }, - } -) ---[[ ]]-- - ---[[ Focus related keybindings ]]-- -awful.keyboard.append_global_keybindings( - { - -- Focus next window by index - awful.key( - { modkey }, - "j", - function () - awful.client.focus.byidx( 1) - end, - { description = - "Focus the next window by index", - group = - "Focus keybinds" - } - ), - -- Focus previous window by index - awful.key( - { modkey }, - "k", - function () - awful.client.focus.byidx(-1) - end, - { description = - "Focus the previous window by index", - group = - "Focus keybinds" - } - ), - -- Focus last focused window - awful.key( - { modkey }, - "Tab", - function () - awful.client.focus.history.previous() - if client.focus then - client.focus:raise() - end - end, - { description = - "Focus back the previous focused window", - group = - "Focus keybinds" - } - ), - -- Focus next screen - awful.key( - { modkey, conkey }, - "j", - function () - awful.screen.focus_relative(1) - end, - { description = - "Focus the next screen", - group = - "Focus keybinds" - } - ), - -- Focus previous screen - awful.key( - { modkey, conkey }, - "k", - function () - awful.screen.focus_relative(-1) - end, - { description = - "Focus the previous screen", - group = - "Focus keybinds" - } - ), - } -) ---[[ ]]-- - ---[[ Layout keybinds ]]-- -awful.keyboard.append_global_keybindings( - { - -- Swap with next window by index - awful.key( - { modkey, shikey }, - "j", - function () - awful.client.swap.byidx(1) - end, - { description = - "Swap with next window in current layout by index", - group = - "Layout keybinds" - } - ), - -- Swap with previous window by index - awful.key( - { modkey, shikey }, - "k", - function () - awful.client.swap.byidx(-1) - end, - { description = - "Swap with previous window in current layout by index", - group = - "Layout keybinds" - } - ), - -- Increase master width - awful.key( - { modkey }, - "l", - function () - awful.tag.incmwfact(0.05) - end, - { description = - "Increase master window width size", - group = - "Layout keybinds" - } - ), - -- Decrease master width - awful.key( - { modkey }, - "h", - function () - awful.tag.incmwfact(-0.05) - end, - { description = - "Decrease master window width size", - group = - "Layout keybinds" - } - ), - -- Increase the number of master window - awful.key( - { modkey, shikey }, - "h", - function () - awful.tag.incnmaster(1, nil, true) - end, - { description = - "Increase the number of master windows", - group = - "Layout keybinds" - } - ), - -- Decrease the number of master windows - awful.key( - { modkey, shikey }, - "l", - function () - awful.tag.incnmaster(-1, nil, true) - end, - { description = - "Decrease the number of master windows", - group = - "Layout keybinds" - } - ), - -- Increase the number of columns - awful.key( - { modkey, conkey }, - "h", - function () - awful.tag.incncol(1, nil, true) - end, - { description = - "Increase the number of columns in layout", - group = - "Layout keybinds" - } - ), - -- Decrease the number of columns - awful.key( - { modkey, conkey }, - "l", - function () - awful.tag.incncol(-1, nil, true) - end, - { description = - "Decrease the number of columns in layout", - group = - "Layout keybinds" - } - ), - -- Switch to next layout - awful.key( - { modkey }, - "space", - function () - awful.layout.inc(1) - end, - { description = - "Switch to the next layout", - group = - "Layout keybinds" - } - ), - -- Switch to previous layout - awful.key( - { modkey, shikey }, - "space", - function () - awful.layout.inc(-1) - end, - { description = - "Switch to previous layout", - group = - "Layout keybinds" - } - ), - -- Select layouts directly - awful.key { - modifiers = { modkey }, - keygroup = "numpad", - description = "Select layouts directly using the numpad", - group = "layout", - on_press = function (index) - local t = awful.screen.focused().selected_tag - if t then - t.layout = t.layouts[index] or t.layout - end - end, - }, - -- Show/Hide Wibox - awful.key( - { modkey }, - "b", - function () - for s in screen do - s.mywibox.visible = not s.mywibox.visible - if s.mybottomwibox then - s.mybottomwibox.visible = not s.mybottomwibox.visible - end - end - end, - { description = - "Toggle the bar", - group = - "Layout keybinds" - } - ), - } -) ---[[ ]]-- - ---[[ Window keybinds ]]-- -client.connect_signal( - "request::default_keybindings", - function() - awful.keyboard.append_client_keybindings( - { - -- Set focused window to fullscreen - awful.key( - { modkey }, - "f", - function (c) - c.fullscreen = not c.fullscreen - c:raise() - end, - { description = - "Toggle fullscreen", - group = - "Window keybinds" - } - ), - -- Close focused window - awful.key( - { modkey }, - "q", - function (c) - c:kill() - end, - { description = - "Close focused window", - group = - "Window keybinds" } - ), - -- Toggle floating mode on focused window - awful.key( - { modkey, conkey }, - "space", - awful.client.floating.toggle, - { description = - "Toggle floating mode on focused window", - group = - "Window keybinds" - } - ), - -- Move focused window to master - awful.key( - { modkey, conkey }, - "Return", - function (c) - c:swap( - awful.client.getmaster() - ) - end, - { description = - "Move focused window to master", - group = - "Window keybinds" - } - ), - -- Move focused window to the other screen - awful.key( - { modkey }, - "o", - function (c) - c:move_to_screen() - end, - { description = - "Move focused window to the next screen", - group = - "Window keybinds" - } - ), - -- Toggle focused window to be on top - awful.key( - { modkey }, - "t", - function (c) - c.ontop = not c.ontop - end, - { description = - "Toggle keep on top for focused window", - group = - "Window keybinds" - } - ), - -- Jump to urgent window - awful.key( - { modkey }, - "u", - awful.client.urgent.jumpto, - { description = - "Quickly jump to urgent window", - group = - "Window keybinds" - } - ), - } - ) - end -) ---[[ ]]-- - ---[[ Quick keybinds ]] -awful.keyboard.append_global_keybindings( - { - -- Volume - awful.key( - { }, - "XF86AudioRaiseVolume", - function() - awful.spawn("pamixer -i 5") - end, - { description = - "Increase volume by +5%", - group = - "Quick keybinds" - } - ), - awful.key( - { }, - "XF86AudioLowerVolume", - function() - awful.spawn("pamixer -d 5") - end, - { description = - "Decrease volume by +5%", - group = - "Quick keybinds" - } - ), - awful.key( - { }, - "XF86AudioMute", - function() - awful.spawn("pamixer -t") - end, - { description = - "Mute volume", - group = - "Quick keybinds" - } - ), - awful.key( - { }, - "XF86AudioMicMute", - function() - awful.spawn("pamixer --default-source -t") - end, - { description = - "Mute microphone", - group = - "Quick keybinds" - } - ), - -- Brightness - awful.key( - { }, - "XF86MonBrightnessUp", - function () - awful.spawn("xbacklight -inc 10") - end, - { description = - "Increase brightness by +10%", - group = - "Quick keybinds" - } - ), - awful.key( - { }, - "XF86MonBrightnessDown", - function () - awful.spawn("xbacklight -dec 10") - end, - { description = - "Decrease brightness by +10%", - group = - "Quick keybinds" - } - ), - -- Display configuration - awful.key( - { }, - "XF86Display", - function () - awful.spawn("arandr") - end, - { description = - "Configure the display using arandr", - group = "Quick keybinds" - } - ), - -- Apps (Super + a followed by KEY) - awful.key( - { modkey }, - "a", - function() - local grabber - grabber = - awful.keygrabber.run( - function(_, key, event) - if event == "release" then - return - end - if key == "1" then - awful.util.spawn(apps.editor) -- TAG 1 - elseif key == "2" then - awful.util.spawn(apps.file) -- TAG 2 - elseif key == "3" then - awful.util.spawn(apps.browser) -- TAG 3 - elseif key == "4" then - awful.util.spawn(apps.chat) -- TAG 4 - elseif key == "5" then - awful.util.spawn(apps.music) -- TAG 5 - elseif key == "8" then - awful.util.spawn(apps.office) -- TAG 8 - elseif key == "9" then - awful.util.spawn(apps.game) -- TAG 9 - end - awful.keygrabber.stop(grabber) - end - ) - end, - { description = - "Launch apps with {Super + a} keychord and then numbers from {1 to 9}", - group = - "Quick keybinds" - } - ), - -- Keyboard layouts (Super + x followed by KEY) - awful.key( - { modkey }, - "x", - function() - local grabber - grabber = - awful.keygrabber.run( - function(_, key, event) - if event == "release" then - return - end - if key == "e" then - awful.util.spawn("setxkbmap es") - elseif key == "u" then - awful.util.spawn("setxkbmap us") - end - awful.keygrabber.stop(grabber) - end - ) - end, - { description = - "Change keyboard layout with {Super + x} keychord and then {e} for spanish and {u} for english", - group = - "Quick keybinds" - } - ), - -- Runners (Super + p followed by KEY) - awful.key( - { modkey }, - "p", - function() - local grabber - grabber = - awful.keygrabber.run( - function(_, key, event) - if event == "release" then - return - end - if key == "d" then - awful.util.spawn(apps.drunner) - elseif key == "r" then - awful.util.spawn(apps.runner) - elseif key == "q" then - awful.spawn.with_shell(apps.runner_power) - elseif key == "i" then - awful.spawn.with_shell(apps.runner_wifi) - elseif key == "s" then - awful.spawn.with_shell(apps.runner_scrot) - elseif key == "z" then - awful.spawn.with_shell(apps.runner_emoji) - elseif key == "w" then - awful.spawn.with_shell(apps.runner_wall) - end - awful.keygrabber.stop(grabber) - end - ) - end, - { description = - "Launch quick action menus with {Super + p} keychord and then {d, r, e, q, i, b, s, z, w}", - group = - "Quick keybinds" } - ), - -- Multimedia scripts (Super + t followed by KEY) - awful.key( - { modkey }, - "t", - function() - local grabber - grabber = - awful.keygrabber.run( - function(_, key, event) - if event == "release" then - return - end - if key == "y" then - awful.util.spawn(apps.ytfzf) - elseif key == "y" then - awful.util.spawn(apps.ytfzf_music) - elseif key == "a" then - awful.util.spawn(apps.ani_cli) - elseif key == "f" then - awful.util.spawn(apps.flix_cli) - elseif key == "t" then - awful.util.spawn(apps.tut) - elseif key == "n" then - awful.util.spawn(apps.newsboat) - end - awful.keygrabber.stop(grabber) - end - ) - end, - { description = - "Launch multimedia terminal scripts with {Super + t} and then {m, y, a, f}", - group = - "Quick keybinds" - } - ), - } -) ---[[ ]] - diff --git a/user/.config/awesome/keymaps/mouse.lua b/user/.config/awesome/keymaps/mouse.lua deleted file mode 100644 index 12631c7ea..000000000 --- a/user/.config/awesome/keymaps/mouse.lua +++ /dev/null @@ -1,52 +0,0 @@ -local awful = require("awful") --- Window related mouse bindings -client.connect_signal( - "request::default_mousebindings", - function() - awful.mouse.append_client_mousebindings( - { - awful.button( - { }, - 1, - function(c) - c:activate {context = "mouse_click"} - end - ), - awful.button( - { modkey }, - 1, - function(c) - c:activate {context = "mouse_click", action = "mouse_move"} - end - ), - awful.button( - { modkey }, - 3, - function(c) - c:activate {context = "mouse_click", action = "mouse_resize"} - end - ) - } - ) - end -) --- Mouse bindings on desktop -awful.mouse.append_global_mousebindings( - { - awful.button( - { }, - 4, - awful.tag.viewprev - ), - awful.button( - { }, - 5, - awful.tag.viewnext - ) - } -) - --- 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) diff --git a/user/.config/awesome/modules/custom-layouts/centerwork.lua b/user/.config/awesome/modules/custom-layouts/centerwork.lua deleted file mode 100644 index 42ea6f4b2..000000000 --- a/user/.config/awesome/modules/custom-layouts/centerwork.lua +++ /dev/null @@ -1,264 +0,0 @@ -local floor = math.floor -local max = math.max -local mouse = mouse -local mousegrabber = mousegrabber -local screen = screen - -local centerwork = { - name = "centerwork", - horizontal = { name = "centerworkh" } -} - -local function arrange(p, layout) - local t = p.tag or screen[p.screen].selected_tag - local wa = p.workarea - local cls = p.clients - - if #cls == 0 then return end - - local g = {} - - -- Main column, fixed width and height - local mwfact = t.master_width_factor - local mainhei = floor(wa.height * mwfact) - local mainwid = floor(wa.width * mwfact) - local slavewid = wa.width - mainwid - local slaveLwid = floor(slavewid / 2) - local slaveRwid = slavewid - slaveLwid - local slavehei = wa.height - mainhei - local slaveThei = floor(slavehei / 2) - local slaveBhei = slavehei - slaveThei - local nbrFirstSlaves = floor(#cls / 2) - local nbrSecondSlaves = floor((#cls - 1) / 2) - - local slaveFirstDim, slaveSecondDim = 0, 0 - - if layout.name == "centerwork" then -- vertical - if nbrFirstSlaves > 0 then slaveFirstDim = floor(wa.height / nbrFirstSlaves) end - if nbrSecondSlaves > 0 then slaveSecondDim = floor(wa.height / nbrSecondSlaves) end - - g.height = wa.height - g.width = mainwid - - g.x = wa.x + slaveLwid - g.y = wa.y - else -- horizontal - if nbrFirstSlaves > 0 then slaveFirstDim = floor(wa.width / nbrFirstSlaves) end - if nbrSecondSlaves > 0 then slaveSecondDim = floor(wa.width / nbrSecondSlaves) end - - g.height = mainhei - g.width = wa.width - - g.x = wa.x - g.y = wa.y + slaveThei - end - - g.width = max(g.width, 1) - g.height = max(g.height, 1) - - p.geometries[cls[1]] = g - - -- Auxiliary clients - if #cls <= 1 then return end - for i = 2, #cls do - g = {} - local idxChecker, dimToAssign - - local rowIndex = floor(i/2) - - if layout.name == "centerwork" then - if i % 2 == 0 then -- left slave - g.x = wa.x - g.y = wa.y + (rowIndex - 1) * slaveFirstDim - g.width = slaveLwid - - idxChecker, dimToAssign = nbrFirstSlaves, slaveFirstDim - else -- right slave - g.x = wa.x + slaveLwid + mainwid - g.y = wa.y + (rowIndex - 1) * slaveSecondDim - g.width = slaveRwid - - idxChecker, dimToAssign = nbrSecondSlaves, slaveSecondDim - end - - -- if last slave in row, use remaining space for it - if rowIndex == idxChecker then - g.height = wa.y + wa.height - g.y - else - g.height = dimToAssign - end - else - if i % 2 == 0 then -- top slave - g.x = wa.x + (rowIndex - 1) * slaveFirstDim - g.y = wa.y - g.height = slaveThei - - idxChecker, dimToAssign = nbrFirstSlaves, slaveFirstDim - else -- bottom slave - g.x = wa.x + (rowIndex - 1) * slaveSecondDim - g.y = wa.y + slaveThei + mainhei - g.height = slaveBhei - - idxChecker, dimToAssign = nbrSecondSlaves, slaveSecondDim - end - - -- if last slave in row, use remaining space for it - if rowIndex == idxChecker then - g.width = wa.x + wa.width - g.x - else - g.width = dimToAssign - end - end - - g.width = max(g.width, 1) - g.height = max(g.height, 1) - - p.geometries[cls[i]] = g - end -end - -local function mouse_resize_handler(c, _, _, _, orientation) - local wa = c.screen.workarea - local mwfact = c.screen.selected_tag.master_width_factor - local g = c:geometry() - local offset = 0 - local cursor = "cross" - - local corner_coords - - if orientation == 'vertical' then - if g.height + 15 >= wa.height then - offset = g.height * .5 - cursor = "sb_h_double_arrow" - elseif g.y + g.height + 15 <= wa.y + wa.height then - offset = g.height - end - corner_coords = { x = wa.x + wa.width * (1 - mwfact) / 2, y = g.y + offset } - else - if g.width + 15 >= wa.width then - offset = g.width * .5 - cursor = "sb_v_double_arrow" - elseif g.x + g.width + 15 <= wa.x + wa.width then - offset = g.width - end - corner_coords = { y = wa.y + wa.height * (1 - mwfact) / 2, x = g.x + offset } - end - - mouse.coords(corner_coords) - - local prev_coords = {} - - mousegrabber.run(function(m) - if not c.valid then return false end - for _, v in ipairs(m.buttons) do - if v then - prev_coords = { x = m.x, y = m.y } - local new_mwfact - if orientation == 'vertical' then - new_mwfact = 1 - (m.x - wa.x) / wa.width * 2 - else - new_mwfact = 1 - (m.y - wa.y) / wa.height * 2 - end - c.screen.selected_tag.master_width_factor = math.min(math.max(new_mwfact, 0.01), 0.99) - return true - end - end - return prev_coords.x == m.x and prev_coords.y == m.y - end, cursor) -end - -function centerwork.arrange(p) - return arrange(p, centerwork) -end - -function centerwork.horizontal.arrange(p) - return arrange(p, centerwork.horizontal) -end - -function centerwork.mouse_resize_handler(c, corner, x, y) - return mouse_resize_handler(c, corner, x, y, 'vertical') -end - -function centerwork.horizontal.mouse_resize_handler(c, corner, x, y) - return mouse_resize_handler(c, corner, x, y, 'horizontal') -end - - ---[[ -Make focus.byidx and swap.byidx behave more consistently with other layouts. ---]] - -local awful = require("awful") -local gears = require("gears") -local client = client - -local function compare_position(a, b) - if a.x == b.x then - return a.y < b.y - else - return a.x < b.x - end -end - -local function clients_by_position() - local this = client.focus - if this then - local sorted = {} - for _, c in ipairs(client.focus.first_tag:clients()) do - if not c.minimized then sorted[#sorted+1] = c end - end - table.sort(sorted, compare_position) - - local idx = 0 - for i, that in ipairs(sorted) do - if this.window == that.window then - idx = i - end - end - - if idx > 0 then - return { sorted = sorted, idx = idx } - end - end - return {} -end - -local function in_centerwork() - return client.focus and client.focus.first_tag.layout.name == "centerwork" -end - -centerwork.focus = {} - - ---[[ -Drop in replacements for awful.client.focus.byidx and awful.client.swap.byidx -that behaves consistently with other layouts. ---]] - -function centerwork.focus.byidx(i) - if in_centerwork() then - local cls = clients_by_position() - if cls.idx then - local target = cls.sorted[gears.math.cycle(#cls.sorted, cls.idx + i)] - awful.client.focus.byidx(0, target) - end - else - awful.client.focus.byidx(i) - end -end - -centerwork.swap = {} - -function centerwork.swap.byidx(i) - if in_centerwork() then - local cls = clients_by_position() - if cls.idx then - local target = cls.sorted[gears.math.cycle(#cls.sorted, cls.idx + i)] - client.focus:swap(target) - end - else - awful.client.swap.byidx(i) - end -end - -return centerwork diff --git a/user/.config/awesome/rc.lua b/user/.config/awesome/rc.lua deleted file mode 100644 index 5008444a6..000000000 --- a/user/.config/awesome/rc.lua +++ /dev/null @@ -1,12 +0,0 @@ --- Imports -local beautiful = require("beautiful") -beautiful.init(string.format("%s/.config/awesome/ui/theme.lua", os.getenv("HOME"))) -- Selected theme -require("helpers") -- Some aditional code for handling -require("apps") -- Selected apps & scripts -require("ui.layouts") -- Predifined tiling layouts -require("ui.bar") -- The bar on the top -require("ui.notif") -- The notification manager -require("keymaps.keyboard") -- Keyboard shortcuts -require("keymaps.mouse") -- Mouse shortcuts -require("ui.rules") -- Window manager rules -require("autostart") -- Startup applications diff --git a/user/.config/awesome/ui/bar.lua b/user/.config/awesome/ui/bar.lua deleted file mode 100644 index 1ffb3b471..000000000 --- a/user/.config/awesome/ui/bar.lua +++ /dev/null @@ -1,224 +0,0 @@ ---- {{{ Imports -local wibox = require("wibox") -local gears = require("gears") -local awful = require("awful") -local theme = require("ui.theme") --- Textclock widget -local mytextclock = wibox.widget.textclock() -screen.connect_signal("request::desktop_decoration", function(s) --- Tag names for each screen - awful.tag( - { - "", -- EDITOR - "", -- FILE MANAGER - "󰖟", -- WEB BROWSER - "󰻞", -- CHAT - "󰲹", -- MUSIC - "", -- VIDEO - "󰧰", -- IMAGE/EDIT TOOLS - "󰧮", -- OFFICE - "󰸶" -- GAMES - }, - s, - awful.layout.layouts[1] - ) - --- Layoutbox widget - s.mylayoutbox = { - widget = wibox.container.background, - bg = theme.bg_normal, - shape = gears.shape.circle, - awful.widget.layoutbox { - screen = s, - buttons = { - 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 - ), - } - } - } - --- Taglist widget - s.mytaglist = { - widget = wibox.container.background, - bg = theme.taglist_bg, - shape = gears.shape.rounded_rect, - awful.widget.taglist { - screen = s, - filter = awful.widget.taglist.filter.all, - buttons = { - 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.viewprev(t.screen) - end - ), - awful.button( - { }, - 5, - function(t) - awful.tag.viewnext(t.screen) - end - ), - } - } - } - --- Prepare custom widgets - -- Volume widget - s.volume = - awful.widget.watch( - ".config/awesome/ui/widgets/volume", - 1 -- Update time in seconds - ) - -- Battery widget - s.battery = - awful.widget.watch( - ".config/awesome/ui/widgets/battery", - 10 -- update time in seconds - ) - -- Wifi widget - s.wifi = - awful.widget.watch( - ".config/awesome/ui/widgets/wifi", - 10 -- Update time in seconds - ) - -- Brightness widget - s.brightness = - awful.widget.watch( - ".config/awesome/ui/widgets/brightness", - 1 -- Update time in seconds - ) - -- Keyboard layout widget - s.layout = - awful.widget.watch( - ".config/awesome/ui/widgets/layout", - 1 -- Update time in seconds - ) - --- Prepare custom widgets container - local custom_widget_container = { - -- Keyboard layout widget - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one), - wibox.container.background(s.layout, theme.bar_bg_one), - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one), - -- Volume widget - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two), - wibox.container.background(s.volume, theme.bar_bg_two), - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two), - -- Brightness widget - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre), - wibox.container.background(s.brightness, theme.bar_bg_tre), - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre), - -- Battery widget - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for), - wibox.container.background(s.battery, theme.bar_bg_for), - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for), - -- Wifi widget - wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_fiv), - wibox.container.background(s.wifi, theme.bar_bg_fiv), - layout = wibox.layout.fixed.horizontal, - } - --- Main right widget container with pill shape - local right_widgets = { - custom_widget_container, - widget = wibox.container.background, - shape = gears.shape.rounded_rect, - } - --- Wibar - s.mywibox = awful.wibar { - position = "top", - height = (30), - border_width = (10), - border_color = theme.bg_normal, - screen = s, - widget = { - layout = wibox.layout.stack, - { - layout = wibox.layout.align.horizontal, - { - -- [[ Left widgets ]] - layout = wibox.layout.fixed.horizontal, - -- Layoubox widget - s.mylayoutbox, - wibox.container.background(wibox.widget.textbox(" "), theme.bg_normal), - -- Taglist widget - s.mytaglist, - }, - nil, - { - -- [[ Right widgets ]] - layout = wibox.layout.fixed.horizontal, - right_widgets - }, - }, - { - -- [[ Center widgets ]] - -- Clock widget - wibox.container.background(mytextclock, theme.bar_clock, gears.shape.rounded_rect), - valign = "center", - halign = "center", - layout = wibox.container.place, - } - } - } - end -) diff --git a/user/.config/awesome/ui/icons/centerworkw.png b/user/.config/awesome/ui/icons/centerworkw.png deleted file mode 100644 index 1a97b25a9..000000000 Binary files a/user/.config/awesome/ui/icons/centerworkw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornerne.png b/user/.config/awesome/ui/icons/cornerne.png deleted file mode 100644 index c85bd56a3..000000000 Binary files a/user/.config/awesome/ui/icons/cornerne.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornernew.png b/user/.config/awesome/ui/icons/cornernew.png deleted file mode 100644 index c3fd98618..000000000 Binary files a/user/.config/awesome/ui/icons/cornernew.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornernw.png b/user/.config/awesome/ui/icons/cornernw.png deleted file mode 100644 index dfe78b3da..000000000 Binary files a/user/.config/awesome/ui/icons/cornernw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornernww.png b/user/.config/awesome/ui/icons/cornernww.png deleted file mode 100644 index f489010a3..000000000 Binary files a/user/.config/awesome/ui/icons/cornernww.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornerse.png b/user/.config/awesome/ui/icons/cornerse.png deleted file mode 100644 index 023ae79ad..000000000 Binary files a/user/.config/awesome/ui/icons/cornerse.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornersew.png b/user/.config/awesome/ui/icons/cornersew.png deleted file mode 100644 index f7cfa1c0d..000000000 Binary files a/user/.config/awesome/ui/icons/cornersew.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornersw.png b/user/.config/awesome/ui/icons/cornersw.png deleted file mode 100644 index c1453c9fd..000000000 Binary files a/user/.config/awesome/ui/icons/cornersw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/cornersww.png b/user/.config/awesome/ui/icons/cornersww.png deleted file mode 100644 index a65a0430c..000000000 Binary files a/user/.config/awesome/ui/icons/cornersww.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/dwindle.png b/user/.config/awesome/ui/icons/dwindle.png deleted file mode 100644 index 9902d22d9..000000000 Binary files a/user/.config/awesome/ui/icons/dwindle.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/dwindlew.png b/user/.config/awesome/ui/icons/dwindlew.png deleted file mode 100644 index 9199049bd..000000000 Binary files a/user/.config/awesome/ui/icons/dwindlew.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/fairh.png b/user/.config/awesome/ui/icons/fairh.png deleted file mode 100644 index d41deead1..000000000 Binary files a/user/.config/awesome/ui/icons/fairh.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/fairhw.png b/user/.config/awesome/ui/icons/fairhw.png deleted file mode 100644 index bb50e3ae1..000000000 Binary files a/user/.config/awesome/ui/icons/fairhw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/fairv.png b/user/.config/awesome/ui/icons/fairv.png deleted file mode 100644 index f5f02888a..000000000 Binary files a/user/.config/awesome/ui/icons/fairv.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/fairvw.png b/user/.config/awesome/ui/icons/fairvw.png deleted file mode 100644 index 4f4ed5221..000000000 Binary files a/user/.config/awesome/ui/icons/fairvw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/floating.png b/user/.config/awesome/ui/icons/floating.png deleted file mode 100644 index b8061a058..000000000 Binary files a/user/.config/awesome/ui/icons/floating.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/floatingw.png b/user/.config/awesome/ui/icons/floatingw.png deleted file mode 100644 index 481589427..000000000 Binary files a/user/.config/awesome/ui/icons/floatingw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/fullscreen.png b/user/.config/awesome/ui/icons/fullscreen.png deleted file mode 100644 index d02f6fc33..000000000 Binary files a/user/.config/awesome/ui/icons/fullscreen.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/fullscreenw.png b/user/.config/awesome/ui/icons/fullscreenw.png deleted file mode 100644 index 5c35bfa8a..000000000 Binary files a/user/.config/awesome/ui/icons/fullscreenw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/magnifier.png b/user/.config/awesome/ui/icons/magnifier.png deleted file mode 100644 index 2925414a5..000000000 Binary files a/user/.config/awesome/ui/icons/magnifier.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/magnifierw.png b/user/.config/awesome/ui/icons/magnifierw.png deleted file mode 100644 index 620955664..000000000 Binary files a/user/.config/awesome/ui/icons/magnifierw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/max.png b/user/.config/awesome/ui/icons/max.png deleted file mode 100644 index 8d208445c..000000000 Binary files a/user/.config/awesome/ui/icons/max.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/maxw.png b/user/.config/awesome/ui/icons/maxw.png deleted file mode 100644 index 85f5ce3af..000000000 Binary files a/user/.config/awesome/ui/icons/maxw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/spiral.png b/user/.config/awesome/ui/icons/spiral.png deleted file mode 100644 index d9434be1b..000000000 Binary files a/user/.config/awesome/ui/icons/spiral.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/spiralw.png b/user/.config/awesome/ui/icons/spiralw.png deleted file mode 100644 index b78dd8654..000000000 Binary files a/user/.config/awesome/ui/icons/spiralw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tile.png b/user/.config/awesome/ui/icons/tile.png deleted file mode 100644 index 3ede21e8c..000000000 Binary files a/user/.config/awesome/ui/icons/tile.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tilebottom.png b/user/.config/awesome/ui/icons/tilebottom.png deleted file mode 100644 index 6f8c2570a..000000000 Binary files a/user/.config/awesome/ui/icons/tilebottom.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tilebottomw.png b/user/.config/awesome/ui/icons/tilebottomw.png deleted file mode 100644 index a1de7b29f..000000000 Binary files a/user/.config/awesome/ui/icons/tilebottomw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tileleft.png b/user/.config/awesome/ui/icons/tileleft.png deleted file mode 100644 index 31d687047..000000000 Binary files a/user/.config/awesome/ui/icons/tileleft.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tileleftw.png b/user/.config/awesome/ui/icons/tileleftw.png deleted file mode 100644 index cf14c25e6..000000000 Binary files a/user/.config/awesome/ui/icons/tileleftw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tiletop.png b/user/.config/awesome/ui/icons/tiletop.png deleted file mode 100644 index f3a1e9d35..000000000 Binary files a/user/.config/awesome/ui/icons/tiletop.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tiletopw.png b/user/.config/awesome/ui/icons/tiletopw.png deleted file mode 100644 index d1d0872b8..000000000 Binary files a/user/.config/awesome/ui/icons/tiletopw.png and /dev/null differ diff --git a/user/.config/awesome/ui/icons/tilew.png b/user/.config/awesome/ui/icons/tilew.png deleted file mode 100644 index fde2ca4ee..000000000 Binary files a/user/.config/awesome/ui/icons/tilew.png and /dev/null differ diff --git a/user/.config/awesome/ui/layouts.lua b/user/.config/awesome/ui/layouts.lua deleted file mode 100644 index 47c3bcd38..000000000 --- a/user/.config/awesome/ui/layouts.lua +++ /dev/null @@ -1,29 +0,0 @@ -local awful = require("awful") --- Custom added layouts -local centerwork = require("modules.custom-layouts.centerwork") --- {{{ Selected layouts -tag.connect_signal( - "request::default_layouts", - function() - awful.layout.append_default_layouts( - { - awful.layout.suit.tile, - awful.layout.suit.tile.left, - awful.layout.suit.tile.bottom, - awful.layout.suit.tile.top, - centerwork, --- awful.layout.suit.fair, --- awful.layout.suit.fair.horizontal, --- awful.layout.suit.spiral, --- awful.layout.suit.spiral.dwindle, - awful.layout.suit.max, - awful.layout.suit.max.fullscreen, --- awful.layout.suit.magnifier, --- awful.layout.suit.corner.nw, - awful.layout.suit.floating, - } - ) - end -) --- }}} - diff --git a/user/.config/awesome/ui/notif.lua b/user/.config/awesome/ui/notif.lua deleted file mode 100644 index fdf41ed57..000000000 --- a/user/.config/awesome/ui/notif.lua +++ /dev/null @@ -1,112 +0,0 @@ -local awful = require("awful") -local beautiful = require("beautiful") -local dpi = beautiful.xresources.apply_dpi -local naughty = require("naughty") -local wibox = require("wibox") -local ruled = require("ruled") - -naughty.config.defaults.ontop = true -naughty.config.defaults.timeout = 5 -naughty.config.defaults.screen = awful.screen.focused() -naughty.config.defaults.border_width = 0 -naughty.config.defaults.position = "top_right" -naughty.config.defaults.title = "Notification" - -ruled.notification.connect_signal( - "request::rules", - function() - -- Critical - ruled.notification.append_rule { - rule = { - urgency = "critical" - }, - properties = { - bg = beautiful.notification_bg, - fg = beautiful.notification_critical, - timeout = 0 - } - } - -- Normal - ruled.notification.append_rule { - rule = { - urgency = "normal" - }, - properties = { - bg = beautiful.notification_bg, - fg = beautiful.notification_fg, - timeout = 5 - } - } - -- Low - ruled.notification.append_rule { - rule = { - urgency = "low" - }, - properties = { - bg = beautiful.notification_bg, - fg = beautiful.notification_fg, - timeout = 5 - } - } - end -) - -naughty.connect_signal( - "request::display", - function(n) - naughty.layout.box { - notification = n, - type = "notification", - bg = beautiful.bg_normal, - widget_template = { - { - { - { - { - { - { - naughty.widget.title, - forced_height = dpi(38), - layout = wibox.layout.align.horizontal - }, - left = dpi(15), - right = dpi(15), - widget = wibox.container.margin - }, - bg = beautiful.notification_bg_alt, - widget = wibox.container.background - }, - strategy = "min", - width = dpi(300), - widget = wibox.container.constraint - }, - strategy = "max", - width = dpi(400), - widget = wibox.container.constraint - }, - { - { - { - naughty.widget.message, - left = dpi(15), - right = dpi(15), - top = dpi(15), - bottom = dpi(15), - widget = wibox.container.margin - }, - strategy = "min", - height = dpi(60), - widget = wibox.container.constraint - }, - strategy = "max", - width = dpi(400), - widget = wibox.container.constraint - }, - layout = wibox.layout.align.vertical - }, - id = "background_role", - widget = naughty.container.background - } - } - end -) diff --git a/user/.config/awesome/ui/rules.lua b/user/.config/awesome/ui/rules.lua deleted file mode 100644 index 3173619ad..000000000 --- a/user/.config/awesome/ui/rules.lua +++ /dev/null @@ -1,185 +0,0 @@ -local awful = require("awful") -local ruled = require("ruled") - --- Rules to apply to new clients. -ruled.client.connect_signal( - "request::rules", - function() - -- All clients will match this rule. - ruled.client.append_rule { - id = "global", - rule = { }, - properties = { - focus = awful.client.focus.filter, - raise = true, - screen = awful.screen.preferred, - placement = awful.placement.no_overlap + awful.placement.no_offscreen, - callback = awful.client.setslave - } - } - - -- Floating clients. - ruled.client.append_rule { - id = "floating", - rule_any = { - hinstance = { "copyq", "pinentry" }, - class = { - "Galculator", - "Blueman-manager", - "Gpick", - "Kruler", - "Tor Browser", - "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 } - } - --- TAG 1 - ruled.client.append_rule { - rule_any = { - class = { - "Emacs", - "neovide", - "lvim", - "Godot", - "neovim", - "Virt-manager" - } - }, - properties = { tag = "" }, - } --- TAG 2 - ruled.client.append_rule { - rule_any = { - class = { - "vifm", - "pcmanfm", - "nemo" - } - }, - properties = { tag = "" }, - } --- TAG 3 - ruled.client.append_rule { - rule_any = { - class = { - "Brave-browser", - "librewolf", - "firefox", - "Luakit", - "Chromium", - "Bitwarden", - "qutebrowser", - "tut", - "newsboat" - } - }, - properties = { tag = "󰖟" } - } --- TAG 4 - ruled.client.append_rule { - rule_any = { - class = { - "gomuks", - "Signal", - "Revolt", - "Element" - } - }, - properties = { tag = "󰻞" } - } --- TAG 5 - ruled.client.append_rule { - rule_any = { - class = { - "cmus", - "ytfzf_music", - "Audacity", - "Ardour", - "Carla2", - "Carla2-Control" - } - }, - properties = { tag = "󰲹" } - } --- TAG 6 - ruled.client.append_rule { - rule_any = { - class = { - "kdenlive", - "Blender", - "Natron", - "SimpleScreenRecorder", - "Ghb", - "obs", - "mpv", - "ani-cli", - "flix-cli", - "ytfzf" - } - }, - properties = { tag = "" } - } --- TAG 7 - ruled.client.append_rule { - rule_any = { - class = { - "Qjackctl", - "lsp-plugins", - "qpwgraph", - "Gimp-2.10", - "krita", - "Inkscape", - "Xournalpp", - } - }, - properties = { tag = "󰧰" } - } --- TAG 8 - ruled.client.append_rule { - rule_any = { - class = { - "DesktopEditors", - "Soffice", - "libreoffice-startcenter", - "Joplin" - } - }, - properties = { tag = "󰧮" } - } --- TAG 9 - ruled.client.append_rule { - rule_any = { - class = { - "retroarch", - "airshipper", - "pyrogenesis", - "DarkPlaces", - "xonotic-sdl", - "supertuxkart", - "supertux2", - "wesnoth", - "Minetest", - "openttd", - "warzone2100", - "steam" - } - }, - properties = { tag = "󰸶" } - } ---}}} - end -) diff --git a/user/.config/awesome/ui/theme.lua b/user/.config/awesome/ui/theme.lua deleted file mode 100644 index 17bbcb290..000000000 --- a/user/.config/awesome/ui/theme.lua +++ /dev/null @@ -1,101 +0,0 @@ --- {{{ Imports -local gears = require("gears") -local dpi = require("beautiful.xresources").apply_dpi -local beautiful = require("beautiful") --- }}} - -local themes_path = string.format("%s/.config/awesome/ui/", os.getenv("HOME")) - --- {{{ Main -local theme = {} --- }}} - --- {{{ theme font -theme.font = "mononoki Nerd Font 13" ---- }}} - --- {{{ bar colors -theme.bar_bg_one = "#427b58" -theme.bar_bg_two = "#076678" -theme.bar_bg_tre = "#b57614" -theme.bar_bg_for = "#9d0006" -theme.bar_bg_fiv = "#8f3f71" -theme.bar_clock = "#3c3836" ---- }}} - --- {{{ Colors -theme.fg_normal = "#ebdbb2" -theme.fg_focus = "#dfc4a1" -theme.fg_urgent = "#fb4934" -theme.bg_normal = "#1d2021" -theme.bg_focus = "#3c3836" -theme.bg_urgent = "#a89984" --- }}} - --- {{{ Borders -beautiful.gap_single_client = false -theme.useless_gap = dpi(4) -theme.border_width = dpi(1.5) -theme.border_normal = "#504945" -theme.border_focus = "#cc241d" -theme.border_marked = "#cc241d" --- }}} - --- {{{ Taglist -theme.taglist_font = "mononoki Nerd Font Mono 28" -theme.taglist_bg = "#3c3836" -theme.taglist_fg_focus = "#fb4934" -theme.taglist_fg_occupied = "#8ec07c" -theme.taglist_fg_urgent = "#504945" -theme.taglist_fg_empty = "#a89984" -theme.taglist_spacing = 5 --- }}} - --- {{{ Notifications -theme.notification_font = "mononoki Nerd Font 12" -theme.notification_bg = "#1d2021" -theme.notification_bg_alt = "#282828" -theme.notification_fg = "#ebdbb2" -theme.notification_fg_alt = "#282828" -theme.notification_critical = "#fb4934" -theme.notification_shape = gears.shape.rounded_rect --- }}} - --- {{{ Hotkeys Popup -theme.hotkeys_bg = "#1d2021" -theme.hotkeys_fg = "#ebdbb2" -theme.hotkeys_modifiers_fg = "#458588" -theme.hotkeys_label_bg = "#d79921" -theme.hotkeys_label_fg = "#1d2021" -theme.hotkeys_group_margin = dpi(20) -theme.hotkeys_description_font = "mononoki Nerd Font 12" -theme.hotkeys_font = "mononoki Nerd Font 12" --- }}} - --- {{{ Mouse finder -theme.mouse_finder_color = "#fb4934" -theme.mouse_finder_radius = dpi(5) -theme.mouse_finder_timeout = 10 --- }}} - --- {{{ Layout Icons -theme.layout_tile = gears.color.recolor_image(themes_path .. "icons/tilew.png", theme.fg_urgent) -theme.layout_centerwork = gears.color.recolor_image(themes_path .. "icons/centerworkw.png", theme.fg_urgent) -theme.layout_tileleft = gears.color.recolor_image(themes_path .. "icons/tileleftw.png", theme.fg_urgent) -theme.layout_tilebottom = gears.color.recolor_image(themes_path .. "icons/tilebottomw.png", theme.fg_urgent) -theme.layout_tiletop = gears.color.recolor_image(themes_path .. "icons/tiletopw.png", theme.fg_urgent) -theme.layout_fairv = gears.color.recolor_image(themes_path .. "icons/fairvw.png", theme.fg_urgent) -theme.layout_fairh = gears.color.recolor_image(themes_path .. "icons/fairhw.png", theme.fg_urgent) -theme.layout_spiral = gears.color.recolor_image(themes_path .. "icons/spiralw.png", theme.fg_urgent) -theme.layout_dwindle = gears.color.recolor_image(themes_path .. "icons/dwindlew.png", theme.fg_urgent) -theme.layout_max = gears.color.recolor_image(themes_path .. "icons/maxw.png", theme.fg_urgent) -theme.layout_fullscreen = gears.color.recolor_image(themes_path .. "icons/fullscreenw.png", theme.fg_urgent) -theme.layout_magnifier = gears.color.recolor_image(themes_path .. "icons/magnifierw.png", theme.fg_urgent) -theme.layout_floating = gears.color.recolor_image(themes_path .. "icons/floatingw.png", theme.fg_urgent) -theme.layout_cornernw = gears.color.recolor_image(themes_path .. "icons/cornernw.png", theme.fg_urgent) -theme.layout_cornerne = gears.color.recolor_image(themes_path .. "icons/cornerne.png", theme.fg_urgent) -theme.layout_cornersw = gears.color.recolor_image(themes_path .. "icons/cornersw.png", theme.fg_urgent) -theme.layout_cornerse = gears.color.recolor_image(themes_path .. "icons/cornerse.png", theme.fg_urgent) --- }}} - -return theme diff --git a/user/.config/awesome/ui/widgets/battery b/user/.config/awesome/ui/widgets/battery deleted file mode 100755 index 98e9043b4..000000000 --- a/user/.config/awesome/ui/widgets/battery +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# Loop through all attached batteries and format the info -currntpwr=$(powerprofilesctl get) -if [ "${currntpwr}" = "performance" ]; then - pwr=" - 󰓅 Performance" -elif [ "${currntpwr}" = "balanced" ]; then - pwr=" - 󰾅 Balanced" -elif [ "${currntpwr}" = "power-saver" ]; then - pwr=" - 󰾆 PowerSaver" -fi -for battery in /sys/class/power_supply/BAT?*; do - # If non-first battery, print a space separator. - [ -n "${capacity+x}" ] && printf " " - # Sets up the status and capacity - case "$(cat "$battery/status" 2>&1)" in - "Full") status="󱊣" ;; - "Discharging") status="󱊢" ;; - "Charging") status="󱊥" ;; - "Not charging") status="󱊥" ;; - "Unknown") status="󰂎" ;; - *) exit 1 ;; - esac - capacity="$(cat "$battery/capacity" 2>&1)" - # Will make a warn variable if discharging and low - [ "$status" = "󰂎" ] && [ "$capacity" -le 100 ] && warn="" - # Prints the info - printf "%s%s%d%%%s" "$status" "$warn " "$capacity" "$pwr"; unset warn -done && printf "\\n" diff --git a/user/.config/awesome/ui/widgets/brightness b/user/.config/awesome/ui/widgets/brightness deleted file mode 100755 index 64ad5d95f..000000000 --- a/user/.config/awesome/ui/widgets/brightness +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -brt=$(xbacklight -get) -if [ "$brt" = "100.000000" ]; then - icon="󰃠" -elif [ "$brt" \> "50%.*" ]; then - icon="󰃟" -elif [ "$brt" \< "49%.*" ]; then - icon="󰃞" -fi -echo "$icon ${brt%.*}%" diff --git a/user/.config/awesome/ui/widgets/layout b/user/.config/awesome/ui/widgets/layout deleted file mode 100755 index 09af16d43..000000000 --- a/user/.config/awesome/ui/widgets/layout +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -layout=$(setxkbmap -query | grep -oP 'layout:\s*\K\w+'); -echo "󰥻 $layout" | tr '[:lower:]' '[:upper:]'; diff --git a/user/.config/awesome/ui/widgets/volume b/user/.config/awesome/ui/widgets/volume deleted file mode 100755 index f4ae852c7..000000000 --- a/user/.config/awesome/ui/widgets/volume +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -# Prints the current volume or 🔇 if muted. -[ "$(pamixer --get-mute)" = true ] && echo "󰕿x" && exit -vol="$(pamixer --get-volume)" -if [ "$vol" -gt "50" ]; then - icon="󰕾" -elif [ "$vol" -gt "10" ]; then - icon="󰖀" -elif [ "$vol" -gt "0" ]; then - icon="󰕿" -else - echo "󰕿x" && exit -fi -echo -e "$icon $vol%" diff --git a/user/.config/awesome/ui/widgets/wifi b/user/.config/awesome/ui/widgets/wifi deleted file mode 100755 index 2051dae01..000000000 --- a/user/.config/awesome/ui/widgets/wifi +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1) -currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1) - -if [ "$constate" = "disconnected" ]; then - echo "󰤮 " -elif [ "$constate" = "connected" ]; then - echo "󰤥 $currentwfi" -else - echo "󰤮 " -fi diff --git a/user/.config/btop/btop.conf b/user/.config/btop/btop.conf index a13cdc93d..cf427fc49 100644 --- a/user/.config/btop/btop.conf +++ b/user/.config/btop/btop.conf @@ -209,4 +209,4 @@ selected_battery = "Auto" #* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG". #* The level set includes all lower levels, i.e. "DEBUG" will show all logging info. -log_level = "WARNING" \ No newline at end of file +log_level = "WARNING" diff --git a/user/.config/dunst/dunstrc b/user/.config/dunst/dunstrc index c4daec285..3cbe6d6f8 100644 --- a/user/.config/dunst/dunstrc +++ b/user/.config/dunst/dunstrc @@ -163,7 +163,7 @@ dmenu = /usr/bin/dmenu -p dunst: # Browser for opening urls in context menu. - browser = /usr/bin/qutebrowser + browser = /usr/bin/firefox # Always run rule-defined scripts, even if the notification is suppressed always_run_script = true @@ -356,3 +356,4 @@ # set_stack_tag = "volume" # # vim: ft=cfg + diff --git a/user/.config/fish/config.fish b/user/.config/fish/config.fish index 8dc49e000..979162e9a 100644 --- a/user/.config/fish/config.fish +++ b/user/.config/fish/config.fish @@ -12,10 +12,10 @@ set -e fish_user_paths set -U fish_user_paths $HOME/.bin $HOME/.local/bin $HOME/.config/emacs/bin $HOME/Applications /var/lib/flatpak/exports/bin/ $fish_user_paths ### EXPORT ### -set fish_greeting # Supresses fish's intro message -set TERM "xterm-256color" # Sets the terminal type -set EDITOR "lvim" # $EDITOR use lvim in terminal -set VISUAL "neovide --neovim-bin ./.local/bin/lvim" # $VISUAL use neovide for lvim in GUI mode +set fish_greeting # Supresses fish's intro message +set TERM "xterm-256color" # Sets the terminal type +set EDITOR "$HOME/.local/bin/lvim" +set VISUAL "wezterm start --class editor -- $HOME/.local/bin/lvim" ### SET BAT AS MANPAGER set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" @@ -125,9 +125,8 @@ alias .3='cd ../../..' alias .4='cd ../../../..' alias .5='cd ../../../../..' -# vim and emacs -alias vim='lvim' -alias vimdiff='lvim -d' +# neovim as vim +alias vim="$HOME/.local/bin/lvim" # newsboat alias newsboat='newsboat -u ~/.config/newsboat/urls' @@ -135,6 +134,9 @@ alias newsboat='newsboat -u ~/.config/newsboat/urls' # bat as cat alias cat='bat' +# pfetch as neofetch +alias neofetch='pfetch' + # Changing "ls" to "exa" alias ls='exa -al --color=always --group-directories-first' # my preferred listing alias la='exa -a --color=always --group-directories-first' # all files and dirs @@ -142,16 +144,13 @@ alias ll='exa -l --color=always --group-directories-first' # long format alias lt='exa -aT --color=always --group-directories-first' # tree listing alias l.='exa -a | egrep "^\."' -# pacman and yay -alias pac-up='paru' # update the system -alias pac-get='paru -S' # install a program -alias pac-rmv='paru -Rcns' # remove a program -alias pac-rmv-sec='paru -R' # remove a program (secure way) -alias pac-qry='paru -Ss' # search for a program -alias pac-cln='paru -Scc && paru -Rns (pacman -Qtdq)' # clean cache & remove orphaned packages - -# neofetch is f***** slow -alias neofetch="pfetch" +# package management +alias pac-up='paru -Syu' +alias pac-get='paru -S' +alias pac-rmv='paru -Rcns' +alias pac-rmv-sec='paru -R' +alias pac-qry='paru -Ss' +alias pac-cln='paru -Scc && paru -Rns (pacman -Qtdq)' # Colorize grep output (good for log files) alias grep='grep --color=auto' @@ -159,15 +158,14 @@ alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' # file management +alias fm="vifm" +alias file="vifm" +alias flm="vifm" alias cp='cp -iv' alias mv='mv -iv' alias rm='rm -vI' alias mkd='mkdir -pv' alias mkdir='mkdir -pv' -alias fm='./.config/vifm/scripts/vifmrun' -alias vifm='./.config/vifm/scripts/vifmrun' -alias file='./.config/vifm/scripts/vifmrun' -alias flm='./.config/vifm/scripts/vifmrun' # audio alias mx='pulsemixer' diff --git a/new-config/.config/git/config b/user/.config/git/config similarity index 100% rename from new-config/.config/git/config rename to user/.config/git/config diff --git a/user/.config/gtk-2.0/gtkfilechooser.ini b/user/.config/gtk-2.0/gtkfilechooser.ini index 3de31bfd5..65fa2a6e5 100644 --- a/user/.config/gtk-2.0/gtkfilechooser.ini +++ b/user/.config/gtk-2.0/gtkfilechooser.ini @@ -4,8 +4,8 @@ ShowHidden=false ShowSizeColumn=true GeometryX=0 GeometryY=0 -GeometryWidth=780 -GeometryHeight=585 +GeometryWidth=772 +GeometryHeight=560 SortColumn=name SortOrder=ascending StartupMode=recent diff --git a/new-config/.config/gtk-2.0/gtkrc-2.0 b/user/.config/gtk-2.0/gtkrc-2.0 similarity index 100% rename from new-config/.config/gtk-2.0/gtkrc-2.0 rename to user/.config/gtk-2.0/gtkrc-2.0 diff --git a/user/.config/gtk-3.0/settings.ini b/user/.config/gtk-3.0/settings.ini index 756e8ceb2..7b4e43bc1 100644 --- a/user/.config/gtk-3.0/settings.ini +++ b/user/.config/gtk-3.0/settings.ini @@ -1,15 +1,17 @@ [Settings] gtk-theme-name=gruvbox-dark-gtk gtk-icon-theme-name=gruvbox-dark-icons-gtk -gtk-font-name=mononoki Nerd Font 10 +gtk-font-name=Cantarell 10 gtk-cursor-theme-name=Simp1e-Gruvbox-Dark -gtk-cursor-theme-size=0 +gtk-cursor-theme-size=24 gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR gtk-button-images=1 gtk-menu-images=1 gtk-enable-event-sounds=1 -gtk-enable-input-feedback-sounds=1 +gtk-enable-input-feedback-sounds=0 gtk-xft-antialias=1 gtk-xft-hinting=1 -gtk-xft-hintstyle=hintfull +gtk-xft-hintstyle=hintslight +gtk-xft-rgba=rgb +gtk-application-prefer-dark-theme=1 diff --git a/user/.config/hilbish/init.lua b/user/.config/hilbish/init.lua deleted file mode 100644 index 0a5cc79d5..000000000 --- a/user/.config/hilbish/init.lua +++ /dev/null @@ -1,118 +0,0 @@ --- Default Hilbish config -local hilbish = require 'hilbish' -local lunacolors = require 'lunacolors' -local bait = require 'bait' -local ansikit = require 'ansikit' - -local function doPrompt(fail) - hilbish.prompt( - lunacolors.format( - '{yellow}%u {white}in {red}%h {white}in {italic}{blue}%d ' .. (fail and '{red}' or '{green}') .. ' ' - ) - ) -end - -doPrompt() - -bait.catch('command.exit', function(code) - doPrompt(code ~= 0) -end) - - -bait.catch( - 'hilbish.vimMode', - function(mode) - if mode ~= 'insert' then - ansikit.cursorStyle(ansikit.blockCursor) - else - ansikit.cursorStyle(ansikit.lineCursor) - end -end -) - -local aliases = { - cat = "bat", - vim = "lvim", - ls = 'exa -al --icons --color=always --group-directories-first', - la = 'exa -a --icons --color=always --group-directories-first', - ll = 'exa -l --icons --color=always --group-directories-first', - lt = 'exa -aT --icons --color=always --group-directories-first', - pkupd = 'paru -Syyu', - pkget = 'paru -S', - pkrmv = 'paru -Rcns', - pksrc = 'paru -Ss', - pkcln = 'paru -Scc', - tree = 'ls --tree', - grep = 'grep --color=auto', - egrep = 'egrep --color=auto', - fgrep = 'fgrep --color=auto', - neofetch = 'pfetch', - addup = 'git add -u', - addall = 'git add .', - branch = 'git branch', - checkout = 'git checkout', - clone = 'git clone', - commit = 'git commit -m', - fetch = 'git fetch', - pull = 'git pull origin', - push = 'git push origin', - stat = 'git status', - tag = 'git tag', - newtag = 'git tag -a', - df = 'df -h', - free = 'free -m', - newsboat = 'newsboat -u ~/.config/newsboat/urls', - fli = 'flix-cli', - ani = 'ani-cli', - aniq = 'ani-cli -q', - mx = 'pulsemixer', - amx = 'alsamixer', - mk = 'cmus', - ms = 'cmus', - music = 'cmus', - po = 'systemctl poweroff', - sp = 'systemctl suspend', - rb = 'systemctl reboot', - fm ='$HOME/.config/vifm/scripts/vifmrun', - file ='$HOME/.config/vifm/scripts/vifmrun', - flm = '$HOME/.config/vifm/scripts/vifmrun', - vifm = '$HOME/.config/vifm/scripts/vifmrun', - rm = 'rm -vI', - mv = 'mv -iv', - cp = 'cp -iv', - mkd = 'mkdir -pv', - psa = 'ps auxf', - psgrep = 'ps aux | grep -v grep | grep -i -e VSZ -e', - psmem = 'ps auxf | sort -nr -k 4', - pscpu = 'ps auxf | sort -nr -k 3', - yta_aac = 'yt-dlp --extract-audio --audio-format aac', - yta_best = 'yt-dlp --extract-audio --audio-format best', - yta_flac = 'yt-dlp --extract-audio --audio-format flac', - yta_m4a = 'yt-dlp --extract-audio --audio-format m4a', - yta_mp3 = 'yt-dlp --extract-audio --audio-format mp3', - yta_opus = 'yt-dlp --extract-audio --audio-format opus', - yta_vorbis = 'yt-dlp --extract-audio --audio-format vorbis', - yta_wav = 'yt-dlp --extract-audio --audio-format wav', - ytv_best = 'yt-dlp -f bestvideo+bestaudio', - yt = 'ytfzf -ftsl', - ytm = 'ytfzf -mts', - netstats = 'nmcli dev', - wfi = 'nmtui-connect', - wfi_scan = 'nmcli dev wifi rescan && nmcli dev wifi list', - wfi_edit = 'nmtui-edit', - wfi_on = 'nmcli radio wifi on', - wfi_off = 'nmcli radio wifi off', - blt = 'bluetoothct', -} - -local function load_table (table) - for cmd, new_cmd in pairs(table) do - hilbish.alias(cmd, new_cmd) - end -end - -local function load_aliases () - load_table(aliases) -end - -load_aliases() diff --git a/new-config/.config/hypr/hyprland.conf b/user/.config/hypr/hyprland.conf similarity index 99% rename from new-config/.config/hypr/hyprland.conf rename to user/.config/hypr/hyprland.conf index fcfdb6ee5..1ba75fe34 100644 --- a/new-config/.config/hypr/hyprland.conf +++ b/user/.config/hypr/hyprland.conf @@ -50,10 +50,10 @@ input { # GENERAL general { - gaps_in = 4 - gaps_out = 6 - border_size = 3 - col.active_border = rgb(cc241d) rgb(d79921) 45deg + gaps_in = 2 + gaps_out = 4 + border_size = 2 + col.active_border = rgb(cc241d) #rgb(d79921) 45deg col.inactive_border = rgb(504945) layout = master } @@ -84,7 +84,7 @@ animations { # window movement animation = windowsMove,1, 3,default,popin animation = border, 1, 2, linear - animation = borderangle, 1, 25, linear, loop + #animation = borderangle, 1, 25, linear, loop animation = fade, 1, 7, default animation = workspaces, 1, 4, default, slide } diff --git a/user/.config/lvim/config.lua b/user/.config/lvim/config.lua index b8219466b..99e347642 100644 --- a/user/.config/lvim/config.lua +++ b/user/.config/lvim/config.lua @@ -1,186 +1,75 @@ ---[[ -lvim is the global options object - -Linters should be -filled in as strings with either -a global executable or a path to -an executable -]] --- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT +-- nvim options +vim.opt.shiftwidth = 2 +vim.opt.tabstop = 2 +vim.opt.relativenumber = true +vim.cmd('autocmd FileType markdown setlocal nospell') +vim.opt.wrap = true -- wrap lines +vim.opt.spell = false +vim.o.shell = '/usr/bin/bash' -- general -vim.opt.guifont = { "mononoki Nerd Font", ":h7" } -lvim.log.level = "warn" -lvim.format_on_save.enabled = false +lvim.use_icons = false +lvim.log.level = "info" +lvim.format_on_save = { + enabled = true, + pattern = "*.lua", + timeout = 1000, +} + +-- change theme settings lvim.colorscheme = "gruvbox" -lvim.transparent_window = false --- to disable icons and use a minimalist setup, uncomment the following --- lvim.use_icons = false - --- keymappings [view all the defaults by pressing Lk] -lvim.leader = "space" --- add your own keymapping -lvim.keys.normal_mode[""] = ":w" --- lvim.keys.normal_mode[""] = ":BufferLineCycleNext" --- lvim.keys.normal_mode[""] = ":BufferLineCyclePrev" --- unmap a default keymapping --- vim.keymap.del("n", "") --- override a default keymapping --- lvim.keys.normal_mode[""] = ":q" -- or vim.keymap.set("n", "", ":q" ) - --- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode. --- we use protected-mode (pcall) just in case the plugin wasn't loaded yet. --- local _, actions = pcall(require, "telescope.actions") --- lvim.builtin.telescope.defaults.mappings = { --- -- for input mode --- i = { --- [""] = actions.move_selection_next, --- [""] = actions.move_selection_previous, --- [""] = actions.cycle_history_next, --- [""] = actions.cycle_history_prev, --- }, --- -- for normal mode --- n = { --- [""] = actions.move_selection_next, --- [""] = actions.move_selection_previous, --- }, --- } - --- Change theme settings --- lvim.builtin.theme.options.dim_inactive = true --- lvim.builtin.theme.options.style = "storm" - --- Use which-key to add extra bindings with the leader-key prefix --- lvim.builtin.which_key.mappings["P"] = { "Telescope projects", "Projects" } --- lvim.builtin.which_key.mappings["t"] = { --- name = "+Trouble", --- r = { "Trouble lsp_references", "References" }, --- f = { "Trouble lsp_definitions", "Definitions" }, --- d = { "Trouble document_diagnostics", "Diagnostics" }, --- q = { "Trouble quickfix", "QuickFix" }, --- l = { "Trouble loclist", "LocationList" }, --- w = { "Trouble workspace_diagnostics", "Workspace Diagnostics" }, --- } - --- TODO: User Config for predefined plugins --- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile +lvim.transparent_window = true lvim.builtin.alpha.active = true lvim.builtin.alpha.mode = "dashboard" lvim.builtin.terminal.active = true lvim.builtin.nvimtree.setup.view.side = "left" lvim.builtin.nvimtree.setup.renderer.icons.show.git = false --- if you don't want all the parsers change this to a table of the ones you want -lvim.builtin.treesitter.ensure_installed = { - "bash", - "c", - "javascript", - "json", - "lua", - "python", - "typescript", - "tsx", - "css", - "rust", - "java", - "yaml", - "toml", -} +-- automatically install missing parsers when entering buffer +lvim.builtin.treesitter.auto_install = true -lvim.builtin.treesitter.ignore_install = { "haskell" } -lvim.builtin.treesitter.highlight.enable = true - --- generic LSP settings - --- -- make sure server will always be installed even if the server is in skipped_servers list --- lvim.lsp.installer.setup.ensure_installed = { --- "sumneko_lua", --- "jsonls", --- } --- -- change UI setting of `LspInstallInfo` --- -- see --- lvim.lsp.installer.setup.ui.check_outdated_servers_on_open = false --- lvim.lsp.installer.setup.ui.border = "rounded" --- lvim.lsp.installer.setup.ui.keymaps = { --- uninstall_server = "d", --- toggle_server_expand = "o", --- } - --- ---@usage disable automatic installation of servers --- lvim.lsp.installer.setup.automatic_installation = false - --- ---configure a server manually. !!Requires `:LvimCacheReset` to take effect!! --- ---see the full default list `:lua print(vim.inspect(lvim.lsp.automatic_configuration.skipped_servers))` --- vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pyright" }) --- local opts = {} -- check the lspconfig documentation for a list of all possible options --- require("lvim.lsp.manager").setup("pyright", opts) - --- ---remove a server from the skipped list, e.g. eslint, or emmet_ls. !!Requires `:LvimCacheReset` to take effect!! --- ---`:LvimInfo` lists which server(s) are skipped for the current filetype --- lvim.lsp.automatic_configuration.skipped_servers = vim.tbl_filter(function(server) --- return server ~= "emmet_ls" --- end, lvim.lsp.automatic_configuration.skipped_servers) - --- -- you can set a custom on_attach function that will be used for all the language servers --- -- See --- lvim.lsp.on_attach_callback = function(client, bufnr) --- local function buf_set_option(...) --- vim.api.nvim_buf_set_option(bufnr, ...) --- end --- --Enable completion triggered by --- buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") --- end - --- -- set a formatter, this will override the language server formatting capabilities (if it exists) --- local formatters = require "lvim.lsp.null-ls.formatters" --- formatters.setup { --- { command = "black", filetypes = { "python" } }, --- { command = "isort", filetypes = { "python" } }, --- { --- -- each formatter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration --- command = "prettier", --- ---@usage arguments to pass to the formatter --- -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}` --- extra_args = { "--print-with", "100" }, --- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports. --- filetypes = { "typescript", "typescriptreact" }, --- }, --- } - --- -- set additional linters --- local linters = require "lvim.lsp.null-ls.linters" --- linters.setup { --- { command = "flake8", filetypes = { "python" } }, --- { --- -- each linter accepts a list of options identical to https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTINS.md#Configuration --- command = "shellcheck", --- ---@usage arguments to pass to the formatter --- -- these cannot contain whitespaces, options such as `--line-width 80` become either `{'--line-width', '80'}` or `{'--line-width=80'}` --- extra_args = { "--severity", "warning" }, --- }, --- { --- command = "codespell", --- ---@usage specify which filetypes to enable. By default a providers will attach to all the filetypes it supports. --- filetypes = { "javascript", "python" }, --- }, --- } - --- Additional Plugins +-- additional Plugins lvim.plugins = { - {"lunarvim/colorschemes"}, - {"ellisonleao/gruvbox.nvim"}, + { "lunarvim/colorschemes" }, + { "ellisonleao/gruvbox.nvim" }, + { "puremourning/vimspector" }, + { "OmniSharp/omnisharp-vim" }, + { "SirVer/ultisnips" }, + { "CRAG666/code_runner.nvim" }, } --- Autocommands (https://neovim.io/doc/user/autocmd.html) --- vim.api.nvim_create_autocmd("BufEnter", { --- pattern = { "*.json", "*.jsonc" }, --- -- enable wrap mode for json files only --- command = "setlocal wrap", --- }) --- vim.api.nvim_create_autocmd("FileType", { --- pattern = "zsh", --- callback = function() --- -- let treesitter use bash highlight for zsh files as well --- require("nvim-treesitter.highlight").attach(0, "bash") --- end, --- }) +-- vimspector options +vim.g.vimspector_enable_mappings = 'HUMAN' +vim.g.vimspector_enable_mappings_for_mode = { + [''] = { 'n', 'v' }, +} + +-- code runner options +require('code_runner').setup({ + filetype = { + java = { + "cd $dir &&", + "javac $fileName &&", + "java $fileNameWithoutExt" + }, + python = "python3 -u", + typescript = "deno run", + rust = { + "cd $dir &&", + "rustc $fileName &&", + "$dir/$fileNameWithoutExt" + }, + cs = function(...) + local root_dir = require("lspconfig").util.root_pattern "*.csproj" (vim.loop.cwd()) + return "cd " .. root_dir .. " && dotnet run$end" + end, + }, +}) + +vim.keymap.set('n', 'r', ':RunCode', { noremap = true, silent = false }) +vim.keymap.set('n', 'rf', ':RunFile', { noremap = true, silent = false }) +vim.keymap.set('n', 'rft', ':RunFile tab', { noremap = true, silent = false }) +vim.keymap.set('n', 'rp', ':RunProject', { noremap = true, silent = false }) +vim.keymap.set('n', 'rc', ':RunClose', { noremap = true, silent = false }) +vim.keymap.set('n', 'crf', ':CRFiletype', { noremap = true, silent = false }) +vim.keymap.set('n', 'crp', ':CRProjects', { noremap = true, silent = false }) diff --git a/user/.config/lvim/plugin/packer_compiled.lua b/user/.config/lvim/plugin/packer_compiled.lua deleted file mode 100644 index a96e96f5d..000000000 --- a/user/.config/lvim/plugin/packer_compiled.lua +++ /dev/null @@ -1,445 +0,0 @@ --- Automatically generated packer.nvim plugin loader code - -if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then - vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') - return -end - -vim.api.nvim_command('packadd packer.nvim') - -local no_errors, error_msg = pcall(function() - -_G._packer = _G._packer or {} -_G._packer.inside_compile = true - -local time -local profile_info -local should_profile = false -if should_profile then - local hrtime = vim.loop.hrtime - profile_info = {} - time = function(chunk, start) - if start then - profile_info[chunk] = hrtime() - else - profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 - end - end -else - time = function(chunk, start) end -end - -local function save_profiles(threshold) - local sorted_times = {} - for chunk_name, time_taken in pairs(profile_info) do - sorted_times[#sorted_times + 1] = {chunk_name, time_taken} - end - table.sort(sorted_times, function(a, b) return a[2] > b[2] end) - local results = {} - for i, elem in ipairs(sorted_times) do - if not threshold or threshold and elem[2] > threshold then - results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' - end - end - if threshold then - table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') - end - - _G._packer.profile_output = results -end - -time([[Luarocks path setup]], true) -local package_path_str = "/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" -local install_cpath_pattern = "/home/drk/.cache/lvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" -if not string.find(package.path, package_path_str, 1, true) then - package.path = package.path .. ';' .. package_path_str -end - -if not string.find(package.cpath, install_cpath_pattern, 1, true) then - package.cpath = package.cpath .. ';' .. install_cpath_pattern -end - -time([[Luarocks path setup]], false) -time([[try_loadstring definition]], true) -local function try_loadstring(s, component, name) - local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) - if not success then - vim.schedule(function() - vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) - end) - end - return result -end - -time([[try_loadstring definition]], false) -time([[Defining packer_plugins]], true) -_G.packer_plugins = { - ["Comment.nvim"] = { - config = { "\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.comment\frequire\0" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/Comment.nvim", - url = "https://github.com/numToStr/Comment.nvim" - }, - LuaSnip = { - config = { "\27LJ\2\n\3\0\0\v\0\23\00166\0\0\0'\2\1\0B\0\2\0024\1\0\0006\2\2\0009\2\3\0029\2\4\0029\2\5\0029\2\6\2\15\0\2\0X\3\f\21\2\1\0\22\2\0\0029\3\a\0006\5\b\0B\5\1\2'\6\t\0'\a\n\0'\b\v\0'\t\f\0'\n\r\0B\3\a\2<\3\2\0019\2\a\0006\4\14\0B\4\1\2'\5\15\0B\2\3\0029\3\16\0\18\5\2\0B\3\2\2\15\0\3\0X\4\3\21\3\1\0\22\3\0\3<\2\3\0016\3\0\0'\5\17\0B\3\2\0029\3\18\3B\3\1\0016\3\0\0'\5\19\0B\3\2\0029\3\18\0035\5\20\0=\1\21\5B\3\2\0016\3\0\0'\5\22\0B\3\2\0029\3\18\3B\3\1\1K\0\1\0\"luasnip.loaders.from_snipmate\npaths\1\0\0 luasnip.loaders.from_vscode\14lazy_load\29luasnip.loaders.from_lua\17is_directory\rsnippets\19get_config_dir\22friendly-snippets\nstart\vpacker\tpack\tsite\20get_runtime_dir\15join_paths\22friendly_snippets\fsources\fluasnip\fbuiltin\tlvim\15lvim.utils\frequire\2\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/LuaSnip", - url = "https://github.com/L3MON4D3/LuaSnip" - }, - ["alpha-nvim"] = { - config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.alpha\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/alpha-nvim", - url = "https://github.com/goolord/alpha-nvim" - }, - ["bufferline.nvim"] = { - config = { "\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.bufferline\frequire\0" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/bufferline.nvim", - url = "https://github.com/akinsho/bufferline.nvim" - }, - ["cmp-buffer"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp-buffer", - url = "https://github.com/hrsh7th/cmp-buffer" - }, - ["cmp-nvim-lsp"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp-nvim-lsp", - url = "https://github.com/hrsh7th/cmp-nvim-lsp" - }, - ["cmp-path"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp-path", - url = "https://github.com/hrsh7th/cmp-path" - }, - cmp_luasnip = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/cmp_luasnip", - url = "https://github.com/saadparwaiz1/cmp_luasnip" - }, - colorschemes = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/colorschemes", - url = "https://github.com/lunarvim/colorschemes" - }, - ["friendly-snippets"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/friendly-snippets", - url = "https://github.com/rafamadriz/friendly-snippets" - }, - ["gitsigns.nvim"] = { - config = { "\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.gitsigns\frequire\0" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/gitsigns.nvim", - url = "https://github.com/lewis6991/gitsigns.nvim" - }, - ["gruvbox.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/gruvbox.nvim", - url = "https://github.com/ellisonleao/gruvbox.nvim" - }, - ["indent-blankline.nvim"] = { - config = { "\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.indentlines\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/indent-blankline.nvim", - url = "https://github.com/lukas-reineke/indent-blankline.nvim" - }, - ["lir.nvim"] = { - config = { "\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.lir\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/lir.nvim", - url = "https://github.com/christianchiarulli/lir.nvim" - }, - ["lualine.nvim"] = { - config = { "\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.lualine\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/lualine.nvim", - url = "https://github.com/nvim-lualine/lualine.nvim" - }, - ["lunar.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/lunar.nvim", - url = "https://github.com/lunarvim/lunar.nvim" - }, - ["mason-lspconfig.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/mason-lspconfig.nvim", - url = "https://github.com/williamboman/mason-lspconfig.nvim" - }, - ["mason.nvim"] = { - config = { "\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.mason\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/mason.nvim", - url = "https://github.com/williamboman/mason.nvim" - }, - ["neodev.nvim"] = { - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/neodev.nvim", - url = "https://github.com/folke/neodev.nvim" - }, - ["nlsp-settings.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nlsp-settings.nvim", - url = "https://github.com/tamago324/nlsp-settings.nvim" - }, - ["null-ls.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/null-ls.nvim", - url = "https://github.com/jose-elias-alvarez/null-ls.nvim" - }, - ["nvim-autopairs"] = { - config = { "\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.autopairs\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-autopairs", - url = "https://github.com/windwp/nvim-autopairs" - }, - ["nvim-cmp"] = { - config = { "\27LJ\2\n`\0\0\3\0\6\0\v6\0\0\0009\0\1\0009\0\2\0\15\0\0\0X\1\56\0\3\0'\2\4\0B\0\2\0029\0\5\0B\0\1\1K\0\1\0\nsetup\18lvim.core.cmp\frequire\bcmp\fbuiltin\tlvim\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-cmp", - url = "https://github.com/hrsh7th/nvim-cmp" - }, - ["nvim-dap"] = { - config = { "\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.dap\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-dap", - url = "https://github.com/mfussenegger/nvim-dap" - }, - ["nvim-dap-ui"] = { - config = { "\27LJ\2\n>\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\rsetup_ui\18lvim.core.dap\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-dap-ui", - url = "https://github.com/rcarriga/nvim-dap-ui" - }, - ["nvim-lspconfig"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-lspconfig", - url = "https://github.com/neovim/nvim-lspconfig" - }, - ["nvim-navic"] = { - config = { "\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.breadcrumbs\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-navic", - url = "https://github.com/SmiteshP/nvim-navic" - }, - ["nvim-tree.lua"] = { - config = { "\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.nvimtree\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-tree.lua", - url = "https://github.com/kyazdani42/nvim-tree.lua" - }, - ["nvim-treesitter"] = { - config = { "\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.treesitter\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-treesitter", - url = "https://github.com/nvim-treesitter/nvim-treesitter" - }, - ["nvim-ts-context-commentstring"] = { - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/nvim-ts-context-commentstring", - url = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring" - }, - ["nvim-web-devicons"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/nvim-web-devicons", - url = "https://github.com/kyazdani42/nvim-web-devicons" - }, - ["packer.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/packer.nvim", - url = "https://github.com/wbthomason/packer.nvim" - }, - ["plenary.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/plenary.nvim", - url = "https://github.com/nvim-lua/plenary.nvim" - }, - ["popup.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/popup.nvim", - url = "https://github.com/nvim-lua/popup.nvim" - }, - ["project.nvim"] = { - config = { "\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.project\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/project.nvim", - url = "https://github.com/ahmedkhalf/project.nvim" - }, - ["schemastore.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/schemastore.nvim", - url = "https://github.com/b0o/schemastore.nvim" - }, - ["structlog.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/structlog.nvim", - url = "https://github.com/Tastyep/structlog.nvim" - }, - ["telescope-fzf-native.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/telescope-fzf-native.nvim", - url = "https://github.com/nvim-telescope/telescope-fzf-native.nvim" - }, - ["telescope.nvim"] = { - config = { "\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.telescope\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/telescope.nvim", - url = "https://github.com/nvim-telescope/telescope.nvim" - }, - ["toggleterm.nvim"] = { - config = { "\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.terminal\frequire\0" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/toggleterm.nvim", - url = "https://github.com/akinsho/toggleterm.nvim" - }, - ["tokyonight.nvim"] = { - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/tokyonight.nvim", - url = "https://github.com/folke/tokyonight.nvim" - }, - ["vim-illuminate"] = { - config = { "\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.illuminate\frequire\0" }, - loaded = true, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/start/vim-illuminate", - url = "https://github.com/RRethy/vim-illuminate" - }, - ["which-key.nvim"] = { - config = { "\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.which-key\frequire\0" }, - loaded = false, - needs_bufread = false, - only_cond = false, - path = "/home/drk/.local/share/lunarvim/site/pack/packer/opt/which-key.nvim", - url = "https://github.com/folke/which-key.nvim" - } -} - -time([[Defining packer_plugins]], false) -local module_lazy_loads = { - ["^neodev"] = "neodev.nvim" -} -local lazy_load_called = {['packer.load'] = true} -local function lazy_load_module(module_name) - local to_load = {} - if lazy_load_called[module_name] then return nil end - lazy_load_called[module_name] = true - for module_pat, plugin_name in pairs(module_lazy_loads) do - if not _G.packer_plugins[plugin_name].loaded and string.match(module_name, module_pat) then - to_load[#to_load + 1] = plugin_name - end - end - - if #to_load > 0 then - require('packer.load')(to_load, {module = module_name}, _G.packer_plugins) - local loaded_mod = package.loaded[module_name] - if loaded_mod then - return function(modname) return loaded_mod end - end - end -end - -if not vim.g.packer_custom_loader_enabled then - table.insert(package.loaders, 1, lazy_load_module) - vim.g.packer_custom_loader_enabled = true -end - --- Config for: vim-illuminate -time([[Config for vim-illuminate]], true) -try_loadstring("\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.illuminate\frequire\0", "config", "vim-illuminate") -time([[Config for vim-illuminate]], false) --- Config for: nvim-tree.lua -time([[Config for nvim-tree.lua]], true) -try_loadstring("\27LJ\2\n@\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\23lvim.core.nvimtree\frequire\0", "config", "nvim-tree.lua") -time([[Config for nvim-tree.lua]], false) --- Config for: nvim-navic -time([[Config for nvim-navic]], true) -try_loadstring("\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.breadcrumbs\frequire\0", "config", "nvim-navic") -time([[Config for nvim-navic]], false) --- Config for: nvim-cmp -time([[Config for nvim-cmp]], true) -try_loadstring("\27LJ\2\n`\0\0\3\0\6\0\v6\0\0\0009\0\1\0009\0\2\0\15\0\0\0X\1\56\0\3\0'\2\4\0B\0\2\0029\0\5\0B\0\1\1K\0\1\0\nsetup\18lvim.core.cmp\frequire\bcmp\fbuiltin\tlvim\0", "config", "nvim-cmp") -time([[Config for nvim-cmp]], false) --- Config for: nvim-autopairs -time([[Config for nvim-autopairs]], true) -try_loadstring("\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.autopairs\frequire\0", "config", "nvim-autopairs") -time([[Config for nvim-autopairs]], false) --- Config for: nvim-treesitter -time([[Config for nvim-treesitter]], true) -try_loadstring("\27LJ\2\nB\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\25lvim.core.treesitter\frequire\0", "config", "nvim-treesitter") -time([[Config for nvim-treesitter]], false) --- Config for: alpha-nvim -time([[Config for alpha-nvim]], true) -try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.alpha\frequire\0", "config", "alpha-nvim") -time([[Config for alpha-nvim]], false) --- Config for: lir.nvim -time([[Config for lir.nvim]], true) -try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.lir\frequire\0", "config", "lir.nvim") -time([[Config for lir.nvim]], false) --- Config for: lualine.nvim -time([[Config for lualine.nvim]], true) -try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.lualine\frequire\0", "config", "lualine.nvim") -time([[Config for lualine.nvim]], false) --- Config for: telescope.nvim -time([[Config for telescope.nvim]], true) -try_loadstring("\27LJ\2\nA\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\24lvim.core.telescope\frequire\0", "config", "telescope.nvim") -time([[Config for telescope.nvim]], false) --- Config for: nvim-dap-ui -time([[Config for nvim-dap-ui]], true) -try_loadstring("\27LJ\2\n>\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\rsetup_ui\18lvim.core.dap\frequire\0", "config", "nvim-dap-ui") -time([[Config for nvim-dap-ui]], false) --- Config for: nvim-dap -time([[Config for nvim-dap]], true) -try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\18lvim.core.dap\frequire\0", "config", "nvim-dap") -time([[Config for nvim-dap]], false) --- Config for: project.nvim -time([[Config for project.nvim]], true) -try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\22lvim.core.project\frequire\0", "config", "project.nvim") -time([[Config for project.nvim]], false) --- Config for: indent-blankline.nvim -time([[Config for indent-blankline.nvim]], true) -try_loadstring("\27LJ\2\nC\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\26lvim.core.indentlines\frequire\0", "config", "indent-blankline.nvim") -time([[Config for indent-blankline.nvim]], false) --- Config for: LuaSnip -time([[Config for LuaSnip]], true) -try_loadstring("\27LJ\2\n\3\0\0\v\0\23\00166\0\0\0'\2\1\0B\0\2\0024\1\0\0006\2\2\0009\2\3\0029\2\4\0029\2\5\0029\2\6\2\15\0\2\0X\3\f\21\2\1\0\22\2\0\0029\3\a\0006\5\b\0B\5\1\2'\6\t\0'\a\n\0'\b\v\0'\t\f\0'\n\r\0B\3\a\2<\3\2\0019\2\a\0006\4\14\0B\4\1\2'\5\15\0B\2\3\0029\3\16\0\18\5\2\0B\3\2\2\15\0\3\0X\4\3\21\3\1\0\22\3\0\3<\2\3\0016\3\0\0'\5\17\0B\3\2\0029\3\18\3B\3\1\0016\3\0\0'\5\19\0B\3\2\0029\3\18\0035\5\20\0=\1\21\5B\3\2\0016\3\0\0'\5\22\0B\3\2\0029\3\18\3B\3\1\1K\0\1\0\"luasnip.loaders.from_snipmate\npaths\1\0\0 luasnip.loaders.from_vscode\14lazy_load\29luasnip.loaders.from_lua\17is_directory\rsnippets\19get_config_dir\22friendly-snippets\nstart\vpacker\tpack\tsite\20get_runtime_dir\15join_paths\22friendly_snippets\fsources\fluasnip\fbuiltin\tlvim\15lvim.utils\frequire\2\0", "config", "LuaSnip") -time([[Config for LuaSnip]], false) --- Config for: mason.nvim -time([[Config for mason.nvim]], true) -try_loadstring("\27LJ\2\n=\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\20lvim.core.mason\frequire\0", "config", "mason.nvim") -time([[Config for mason.nvim]], false) -vim.cmd [[augroup packer_load_aucmds]] -vim.cmd [[au!]] - -- Event lazy-loads -time([[Defining lazy-load event autocommands]], true) -vim.cmd [[au BufRead * ++once lua require("packer.load")({'gitsigns.nvim', 'Comment.nvim'}, { event = "BufRead *" }, _G.packer_plugins)]] -vim.cmd [[au BufReadPost * ++once lua require("packer.load")({'nvim-ts-context-commentstring'}, { event = "BufReadPost *" }, _G.packer_plugins)]] -vim.cmd [[au BufWinEnter * ++once lua require("packer.load")({'which-key.nvim', 'toggleterm.nvim', 'bufferline.nvim'}, { event = "BufWinEnter *" }, _G.packer_plugins)]] -time([[Defining lazy-load event autocommands]], false) -vim.cmd("augroup END") - -_G._packer.inside_compile = false -if _G._packer.needs_bufread == true then - vim.cmd("doautocmd BufRead") -end -_G._packer.needs_bufread = false - -if should_profile then save_profiles() end - -end) - -if not no_errors then - error_msg = error_msg:gsub('"', '\\"') - vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') -end diff --git a/user/.config/musikcube/hotkeys.json b/user/.config/musikcube/hotkeys.json deleted file mode 100644 index 914c527c6..000000000 --- a/user/.config/musikcube/hotkeys.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "browse_category_filter": "^F", - "browse_playlists_delete": "KEY_DC", - "browse_playlists_new": "M-n", - "browse_playlists_rename": "M-r", - "browse_playlists_save": "M-s", - "context_menu": "M-enter", - "hotkeys_backup": "M-b", - "hotkeys_reset_to_default": "M-r", - "key_down": "j", - "key_end": "KEY_END", - "key_home": "KEY_HOME", - "key_left": "h", - "key_page_down": "KEY_NPAGE", - "key_page_up": "KEY_PPAGE", - "key_right": "l", - "key_up": "k", - "lyrics_retry": "r", - "metadata_rescan": "^R", - "navigate_console": "`", - "navigate_hotkeys": "?", - "navigate_jump_to_playing": "x", - "navigate_library": "a", - "navigate_library_album_artists": "4", - "navigate_library_browse": "b", - "navigate_library_browse_albums": "2", - "navigate_library_browse_artists": "1", - "navigate_library_browse_directories": "d", - "navigate_library_browse_genres": "3", - "navigate_library_choose_category": "6", - "navigate_library_filter": "f", - "navigate_library_play_queue": "n", - "navigate_library_playlists": "5", - "navigate_library_tracks": "t", - "navigate_lyrics": "^L", - "navigate_settings": "s", - "play_queue_clear": "X", - "play_queue_delete": "KEY_DC", - "play_queue_hot_swap": "M-a", - "play_queue_move_down": "M-down", - "play_queue_move_up": "M-up", - "play_queue_playlist_delete": "M-x", - "play_queue_playlist_load": "M-l", - "play_queue_playlist_rename": "M-r", - "play_queue_playlist_save": "M-s", - "playback_next": "M-l", - "playback_previous": "M-j", - "playback_seek_back": "u", - "playback_seek_back_proportional": "y", - "playback_seek_forward": "o", - "playback_seek_forward_proportional": "p", - "playback_stop": "^X", - "playback_toggle_mute": "m", - "playback_toggle_pause": "^P", - "playback_toggle_repeat": ".", - "playback_toggle_shuffle": ",", - "playback_volume_down": "M-k", - "playback_volume_up": "M-i", - "search_input_toggle_match_type": "M-m", - "show_equalizer": "^E", - "toggle_visualizer": "v", - "track_list_change_sort_order": "M-s", - "track_list_next_group": "]", - "track_list_play_from_top": "M-P", - "track_list_previous_group": "[", - "track_list_rate_track": "r", - "view_refresh": "KEY_F(5)" -} \ No newline at end of file diff --git a/user/.config/neofetch/config.conf b/user/.config/neofetch/config.conf deleted file mode 100644 index 6048c9630..000000000 --- a/user/.config/neofetch/config.conf +++ /dev/null @@ -1,779 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom neofetch config -## - -print_info() { - prin " " - info "$(color 1) OS " distro - info "$(color 2) VER" kernel - info "$(color 3) UP " uptime - info "$(color 4) PKG" packages - info "$(color 5) DE " de - info "$(color 6) CPU" cpu - info "$(color 7) GPU" gpu - info "$(color 8) MEM" memory - prin "$(color 1) $(color 2) $(color 3) $(color 4) $(color 5) $(color 6) $(color 7) $(color 8)" -} -#### TITLE -# Hide/Show Fully qualified domain name. -# Default: 'off' -# Values: 'on', 'off' -# Flag: --title_fqdn -title_fqdn="off" - - -#### KERNEL -# Shorten the output of the kernel function. -# Default: 'on' -# Values: 'on', 'off' -# Flag: --kernel_shorthand -# Supports: Everything except *BSDs (except PacBSD and PC-BSD) -# Example: -# on: '4.8.9-1-ARCH' -# off: 'Linux 4.8.9-1-ARCH' -kernel_shorthand="on" - - -#### DISTRO -# Shorten the output of the distro function -# Default: 'off' -# Values: 'on', 'tiny', 'off' -# Flag: --distro_shorthand -# Supports: Everything except Windows and Haiku -distro_shorthand="off" - -# Show/Hide OS Architecture. -# Show 'x86_64', 'x86' and etc in 'Distro:' output. -# Default: 'on' -# Values: 'on', 'off' -# Flag: --os_arch -# Example: -# on: 'Arch Linux x86_64' -# off: 'Arch Linux' -os_arch="on" - - -#### UPTIME -# Shorten the output of the uptime function -# Default: 'on' -# Values: 'on', 'tiny', 'off' -# Flag: --uptime_shorthand -# Example: -# on: '2 days, 10 hours, 3 mins' -# tiny: '2d 10h 3m' -# off: '2 days, 10 hours, 3 minutes' -uptime_shorthand="on" - - -#### MEMORY -# Show memory pecentage in output. -# Default: 'off' -# Values: 'on', 'off' -# Flag: --memory_percent -# Example: -# on: '1801MiB / 7881MiB (22%)' -# off: '1801MiB / 7881MiB' -memory_percent="off" - -# Change memory output unit. -# Default: 'mib' -# Values: 'kib', 'mib', 'gib' -# Flag: --memory_unit -# Example: -# kib '1020928KiB / 7117824KiB' -# mib '1042MiB / 6951MiB' -# gib: ' 0.98GiB / 6.79GiB' -memory_unit="mib" - - -#### PACKAGES -# Show/Hide Package Manager names. -# Default: 'tiny' -# Values: 'on', 'tiny' 'off' -# Flag: --package_managers -# Example: -# on: '998 (pacman), 8 (flatpak), 4 (snap)' -# tiny: '908 (pacman, flatpak, snap)' -# off: '908' -package_managers="on" - - -#### SHELL -# Show the path to $SHELL -# Default: 'off' -# Values: 'on', 'off' -# Flag: --shell_path -# Example: -# on: '/bin/bash' -# off: 'bash' -shell_path="off" - -# Show $SHELL version -# Default: 'on' -# Values: 'on', 'off' -# Flag: --shell_version -# Example: -# on: 'bash 4.4.5' -# off: 'bash' -shell_version="on" - - -#### CPU -# CPU speed type -# Default: 'bios_limit' -# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'. -# Flag: --speed_type -# Supports: Linux with 'cpufreq' -# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value. -speed_type="bios_limit" - -# CPU speed shorthand -# Default: 'off' -# Values: 'on', 'off'. -# Flag: --speed_shorthand -# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz -# -# Example: -# on: 'i7-6500U (4) @ 3.1GHz' -# off: 'i7-6500U (4) @ 3.100GHz' -speed_shorthand="off" - -# Enable/Disable CPU brand in output. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --cpu_brand -# -# Example: -# on: 'Intel i7-6500U' -# off: 'i7-6500U (4)' -cpu_brand="on" - -# CPU Speed -# Hide/Show CPU speed. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --cpu_speed -# -# Example: -# on: 'Intel i7-6500U (4) @ 3.1GHz' -# off: 'Intel i7-6500U (4)' -cpu_speed="on" - -# CPU Cores -# Display CPU cores in output -# -# Default: 'logical' -# Values: 'logical', 'physical', 'off' -# Flag: --cpu_cores -# Support: 'physical' doesn't work on BSD. -# -# Example: -# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores) -# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores) -# off: 'Intel i7-6500U @ 3.1GHz' -cpu_cores="logical" - -# CPU Temperature -# Hide/Show CPU temperature. -# Note the temperature is added to the regular CPU function. -# -# Default: 'off' -# Values: 'C', 'F', 'off' -# Flag: --cpu_temp -# Supports: Linux, BSD -# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable -# coretemp kernel module. This only supports newer Intel processors. -# -# Example: -# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]' -# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]' -# off: 'Intel i7-6500U (4) @ 3.1GHz' -cpu_temp="off" - - -# GPU - - -# Enable/Disable GPU Brand -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --gpu_brand -# -# Example: -# on: 'AMD HD 7950' -# off: 'HD 7950' -gpu_brand="on" - -# Which GPU to display -# -# Default: 'all' -# Values: 'all', 'dedicated', 'integrated' -# Flag: --gpu_type -# Supports: Linux -# -# Example: -# all: -# GPU1: AMD HD 7950 -# GPU2: Intel Integrated Graphics -# -# dedicated: -# GPU1: AMD HD 7950 -# -# integrated: -# GPU1: Intel Integrated Graphics -gpu_type="all" - - -# Resolution - - -# Display refresh rate next to each monitor -# Default: 'off' -# Values: 'on', 'off' -# Flag: --refresh_rate -# Supports: Doesn't work on Windows. -# -# Example: -# on: '1920x1080 @ 60Hz' -# off: '1920x1080' -refresh_rate="off" - - -# Gtk Theme / Icons / Font - - -# Shorten output of GTK Theme / Icons / Font -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --gtk_shorthand -# -# Example: -# on: 'Numix, Adwaita' -# off: 'Numix [GTK2], Adwaita [GTK3]' -gtk_shorthand="off" - - -# Enable/Disable gtk2 Theme / Icons / Font -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --gtk2 -# -# Example: -# on: 'Numix [GTK2], Adwaita [GTK3]' -# off: 'Adwaita [GTK3]' -gtk2="on" - -# Enable/Disable gtk3 Theme / Icons / Font -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --gtk3 -# -# Example: -# on: 'Numix [GTK2], Adwaita [GTK3]' -# off: 'Numix [GTK2]' -gtk3="on" - - -# IP Address - - -# Website to ping for the public IP -# -# Default: 'http://ident.me' -# Values: 'url' -# Flag: --ip_host -public_ip_host="http://ident.me" - -# Public IP timeout. -# -# Default: '2' -# Values: 'int' -# Flag: --ip_timeout -public_ip_timeout=2 - - -# Desktop Environment - - -# Show Desktop Environment version -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --de_version -de_version="on" - - -# Disk - - -# Which disks to display. -# The values can be any /dev/sdXX, mount point or directory. -# NOTE: By default we only show the disk info for '/'. -# -# Default: '/' -# Values: '/', '/dev/sdXX', '/path/to/drive'. -# Flag: --disk_show -# -# Example: -# disk_show=('/' '/dev/sdb1'): -# 'Disk (/): 74G / 118G (66%)' -# 'Disk (/mnt/Videos): 823G / 893G (93%)' -# -# disk_show=('/'): -# 'Disk (/): 74G / 118G (66%)' -# -disk_show=('/') - -# Disk subtitle. -# What to append to the Disk subtitle. -# -# Default: 'mount' -# Values: 'mount', 'name', 'dir', 'none' -# Flag: --disk_subtitle -# -# Example: -# name: 'Disk (/dev/sda1): 74G / 118G (66%)' -# 'Disk (/dev/sdb2): 74G / 118G (66%)' -# -# mount: 'Disk (/): 74G / 118G (66%)' -# 'Disk (/mnt/Local Disk): 74G / 118G (66%)' -# 'Disk (/mnt/Videos): 74G / 118G (66%)' -# -# dir: 'Disk (/): 74G / 118G (66%)' -# 'Disk (Local Disk): 74G / 118G (66%)' -# 'Disk (Videos): 74G / 118G (66%)' -# -# none: 'Disk: 74G / 118G (66%)' -# 'Disk: 74G / 118G (66%)' -# 'Disk: 74G / 118G (66%)' -disk_subtitle="mount" - -# Disk percent. -# Show/Hide disk percent. -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --disk_percent -# -# Example: -# on: 'Disk (/): 74G / 118G (66%)' -# off: 'Disk (/): 74G / 118G' -disk_percent="on" - - -# Song - - -# Manually specify a music player. -# -# Default: 'auto' -# Values: 'auto', 'player-name' -# Flag: --music_player -# -# Available values for 'player-name': -# -# amarok -# audacious -# banshee -# bluemindo -# clementine -# cmus -# deadbeef -# deepin-music -# dragon -# elisa -# exaile -# gnome-music -# gmusicbrowser -# gogglesmm -# guayadeque -# io.elementary.music -# iTunes -# juk -# lollypop -# mocp -# mopidy -# mpd -# muine -# netease-cloud-music -# olivia -# playerctl -# pogo -# pragha -# qmmp -# quodlibet -# rhythmbox -# sayonara -# smplayer -# spotify -# strawberry -# tauonmb -# tomahawk -# vlc -# xmms2d -# xnoise -# yarock -music_player="mpd" - -# Format to display song information. -# -# Default: '%artist% - %album% - %title%' -# Values: '%artist%', '%album%', '%title%' -# Flag: --song_format -# -# Example: -# default: 'Song: Jet - Get Born - Sgt Major' -song_format="%artist% - %album% - %title%" - -# Print the Artist, Album and Title on separate lines -# -# Default: 'off' -# Values: 'on', 'off' -# Flag: --song_shorthand -# -# Example: -# on: 'Artist: The Fratellis' -# 'Album: Costello Music' -# 'Song: Chelsea Dagger' -# -# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger' -song_shorthand="off" - -# 'mpc' arguments (specify a host, password etc). -# -# Default: '' -# Example: mpc_args=(-h HOST -P PASSWORD) -mpc_args=() - - -# Text Colors - - -# Text Colors -# -# Default: 'distro' -# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' -# Flag: --colors -# -# Each number represents a different part of the text in -# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info' -# -# Example: -# colors=(distro) - Text is colored based on Distro colors. -# colors=(4 6 1 8 8 6) - Text is colored in the order above. -colors=(distro) - - -# Text Options - - -# Toggle bold text -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --bold -bold="on" - -# Enable/Disable Underline -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --underline -underline_enabled="on" - -# Underline character -# -# Default: '-' -# Values: 'string' -# Flag: --underline_char -underline_char="-" - - -# Info Separator -# Replace the default separator with the specified string. -# -# Default: ':' -# Flag: --separator -# -# Example: -# separator="->": 'Shell-> bash' -# separator=" =": 'WM = dwm' -separator=":" - - -# Color Blocks - - -# Color block range -# The range of colors to print. -# -# Default: '0', '15' -# Values: 'num' -# Flag: --block_range -# -# Example: -# -# Display colors 0-7 in the blocks. (8 colors) -# neofetch --block_range 0 7 -# -# Display colors 0-15 in the blocks. (16 colors) -# neofetch --block_range 0 15 -block_range=(0 15) - -# Toggle color blocks -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --color_blocks -color_blocks="on" - -# Color block width in spaces -# -# Default: '3' -# Values: 'num' -# Flag: --block_width -block_width=3 - -# Color block height in lines -# -# Default: '1' -# Values: 'num' -# Flag: --block_height -block_height=1 - -# Color Alignment -# -# Default: 'auto' -# Values: 'auto', 'num' -# Flag: --col_offset -# -# Number specifies how far from the left side of the terminal (in spaces) to -# begin printing the columns, in case you want to e.g. center them under your -# text. -# Example: -# col_offset="auto" - Default behavior of neofetch -# col_offset=7 - Leave 7 spaces then print the colors -col_offset="auto" - -# Progress Bars - - -# Bar characters -# -# Default: '-', '=' -# Values: 'string', 'string' -# Flag: --bar_char -# -# Example: -# neofetch --bar_char 'elapsed' 'total' -# neofetch --bar_char '-' '=' -bar_char_elapsed="-" -bar_char_total="=" - -# Toggle Bar border -# -# Default: 'on' -# Values: 'on', 'off' -# Flag: --bar_border -bar_border="on" - -# Progress bar length in spaces -# Number of chars long to make the progress bars. -# -# Default: '15' -# Values: 'num' -# Flag: --bar_length -bar_length=15 - -# Progress bar colors -# When set to distro, uses your distro's logo colors. -# -# Default: 'distro', 'distro' -# Values: 'distro', 'num' -# Flag: --bar_colors -# -# Example: -# neofetch --bar_colors 3 4 -# neofetch --bar_colors distro 5 -bar_color_elapsed="distro" -bar_color_total="distro" - - -# Info display -# Display a bar with the info. -# -# Default: 'off' -# Values: 'bar', 'infobar', 'barinfo', 'off' -# Flags: --cpu_display -# --memory_display -# --battery_display -# --disk_display -# -# Example: -# bar: '[---=======]' -# infobar: 'info [---=======]' -# barinfo: '[---=======] info' -# off: 'info' -cpu_display="off" -memory_display="off" -battery_display="off" -disk_display="off" - - -# Backend Settings - - -# Image backend. -# -# Default: 'ascii' -# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off', -# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty' -# Flag: --backend -image_backend="ascii" - -# Image Source -# -# Which image or ascii file to display. -# -# Default: 'auto' -# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/' -# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")' -# Flag: --source -# -# NOTE: 'auto' will pick the best image source for whatever image backend is used. -# In ascii mode, distro ascii art will be used and in an image mode, your -# wallpaper will be used. -image_source="auto" - - -#### ASCII OPTIONS -# Ascii distro -# Which distro's ascii art to display. -# Default: 'auto' -# Values: 'auto', 'distro_name' -# Flag: --ascii_distro -# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS", -# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs, -# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, -# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD, -# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS, -# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover, -# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin, -# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary, -# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD, -# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo, -# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra, -# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion, -# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite, -# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva, -# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib, -# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner, -# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba, -# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD, -# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint, -# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix, -# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan, -# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific, -# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz, -# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS, -# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails, -# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio, -# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin, -# and IRIX have ascii logos -# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants. -# Use '{distro name}_old' to use the old logos. -# NOTE: Ubuntu has flavor variants. -# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME, -# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors. -# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu, -# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android, -# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola, -# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS, -# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian, -# postmarketOS, and Void have a smaller logo variant. -# Use '{distro name}_small' to use the small variants. -ascii_distro="arch_small" - -# Ascii Colors -# Default: 'distro' -# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num' -# Flag: --ascii_colors -# Example: -# ascii_colors=(distro) - Ascii is colored based on Distro colors. -# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors. -ascii_colors=(distro) - -# Bold ascii logo -# Whether or not to bold the ascii logo. -# Default: 'on' -# Values: 'on', 'off' -# Flag: --ascii_bold -ascii_bold="on" - -#### IMAGE OPTIONS -# Image loop -# Setting this to on will make neofetch redraw the image constantly until -# Ctrl+C is pressed. This fixes display issues in some terminal emulators. -# Default: 'off' -# Values: 'on', 'off' -# Flag: --loop -image_loop="off" - -# Thumbnail directory -# Default: '~/.cache/thumbnails/neofetch' -# Values: 'dir' -thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" - -# Crop mode -# Default: 'normal' -# Values: 'normal', 'fit', 'fill' -# Flag: --crop_mode -# See this wiki page to learn about the fit and fill options. -# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F -crop_mode="normal" - -# Crop offset -# Note: Only affects 'normal' crop mode. -# Default: 'center' -# Values: 'northwest', 'north', 'northeast', 'west', 'center' -# 'east', 'southwest', 'south', 'southeast' -# Flag: --crop_offset -crop_offset="center" - -# Image size -# The image is half the terminal width by default. -# Default: 'auto' -# Values: 'auto', '00px', '00%', 'none' -# Flags: --image_size -# --size -image_size="auto" - -# Gap between image and text -# Default: '3' -# Values: 'num', '-num' -# Flag: --gap -gap=3 - -# Image offsets -# Only works with the w3m backend. -# Default: '0' -# Values: 'px' -# Flags: --xoffset -# --yoffset -yoffset=0 -xoffset=0 - -# Image background color -# Only works with the w3m backend. -# Default: '' -# Values: 'color', 'blue' -# Flag: --bg_color diff --git a/user/.config/newsboat/config b/user/.config/newsboat/config index 4886a962a..9246557ae 100644 --- a/user/.config/newsboat/config +++ b/user/.config/newsboat/config @@ -48,3 +48,4 @@ highlight article ":.*\\(image\\)$" blue default highlight article ":.*\\(embedded flash\\)$" magenta default browser w3m +macro v set browser "mpv %u" ; open-in-browser ; set browser "elinks %u" diff --git a/user/.config/newsboat/urls b/user/.config/newsboat/urls index 8efda449c..c66f25428 100644 --- a/user/.config/newsboat/urls +++ b/user/.config/newsboat/urls @@ -1,42 +1,99 @@ http://static.fsf.org/fsforg/rss/news.xml "~FSF News" http://static.fsf.org/fsforg/rss/blogs.xml "~FSF Blogs" +https://fsfe.org/news/news.en.rss "~FSFE News" https://dot.kde.org/rss.xml "~KDE Dot News" https://planet.kde.org/global/atom.xml "~Planet KDE" https://pointieststick.com/feed/ "~This Week on KDE" https://www.kdeblog.com/rss "~KDE Blog" https://thisweek.gnome.org/index.xml "~This Week on GNOME" https://www.omgubuntu.co.uk/feed "~OMG Ubuntu!" +https://www.omglinux.com/feed "~OMG!Linux" https://blog.thunderbird.net/feed/ "~The Thunderbird Blog" https://thelinuxexp.com/feed.xml "~The Linux Experiment" -https://techhut.tv/feed/ "~Techhut Media" +https://techhut.tv/feed/ "~TechHut Media" https://itsfoss.com/rss/ "~Its FOSS!" https://thelinuxcast.org/feed/feed.xml "~The Linux Cast" https://9to5linux.com/feed/atom "~9to5Linux" https://blog.elementary.io/feed.xml "~elementary OS Blog" https://blog.zorin.com/index.xml "~Zorin OS Blog" http://blog.linuxmint.com/?feed=rss2 "~Linux Mint Blog" -https://lukesmith.xyz/rss.xml "~Luke Smith" -https://notrelated.xyz/rss "~Not Related" -https://landchad.net/rss.xml "~Landchad" -https://based.cooking/rss.xml "~Based Cooking" -https://artixlinux.org/feed.php "~Artix Linux" -https://www.archlinux.org/feeds/news/ "~Arch Linux" -https://switchedtolinux.com/tutorials?format=feed&type=rss "~Switched to Linux - Tutorials" -https://switchedtolinux.com/tin-foil-hat-time?format=feed&type=rss "~Switched to Linux - Tin Foil Hat Time" -https://switchedtolinux.com/news?format=feed&type=rss "~Switched to Linux - Weekly News Roundup" -https://switchedtolinux.com/linux/distros?format=feed&type=rss "~Switched to Linux - Distros" -https://switchedtolinux.com/linux/software/?format=feed&type=rss "~Switched to Linux - Software" -https://switchedtolinux.com/linux/desktop-environments/?format=feed&type=rss "~Switched to Linux - Desktop Environments" https://www.gamingonlinux.com/article_rss.php "~Gaming on linux" https://hackaday.com/blog/feed/ "~Hackaday" https://opensource.com/feed "~Opensource" https://linux.softpedia.com/backend.xml "~Softpedia Linux" -https://www.zdnet.com/topic/linux/rss.xml "~Zdnet Linux" https://www.phoronix.com/rss.php "~Phoronix" https://www.computerworld.com/index.rss "~Computerworld" https://www.networkworld.com/category/linux/index.rss "~Networkworld Linux" https://betanews.com/feed "~Betanews Linux" http://lxer.com/module/newswire/headlines.rss "~Lxer" -https://distrowatch.com/news/dwd.xml "~Distrowatch" -https://odysee.com/$/rss/@blenderdumbass:f "~Blender Dumbass" https://theevilskeleton.gitlab.io/feed.xml "~TheEvilSkeleton" +https://tutanota.com/blog/feed.xml "~Tutanota Blogs" +https://vanillaos.org/feed.xml "~Vanilla OS" +https://techcrunch.com/feed/ "~TechCrunch" +http://www.techradar.com/rss "~TechRadar" +https://www.zdnet.com/news/rss.xml "~ZDNET - News" +https://c3po.website/rss/ "~Blog de C3PO" +http://yro.slashdot.org/yro.rss "~Slashdot: Your Rights Online" +https://freedom-to-tinker.com/feed/rss/ "~Freedom to Tinker" +https://act.eff.org/action.atom "~EFF - Action Center" +https://www.eff.org/rss/updates.xml "~EFF - Updates" +https://victorhckinthefreeworld.com/feed/ "~Victorhck in the free world" +https://invidious.sethforprivacy.com/feed/channel/UCHnyfMqiRRG1u-2MsSQLbXA "~YT - Veritasium" +https://invidious.sethforprivacy.com/feed/channel/UCtMVHI3AJD4Qk4hcbZnI9ZQ "~YT - SomeOrdinaryGamers" +https://invidious.sethforprivacy.com/feed/channel/UCl2mFZoRqjw_ELax4Yisf6w "~YT - Louis Rossmann" +https://invidious.sethforprivacy.com/feed/channel/UChI0q9a-ZcbZh7dAu_-J-hg "~YT - Upper Echelon" +https://invidious.sethforprivacy.com/feed/channel/UCj8orMezFWVcoN-4S545Wtw "~YT - Max Derrat" +https://invidious.sethforprivacy.com/feed/channel/UCkmMACUKpQeIxN9D9ARli1Q "~YT - Shadiversity" +https://invidious.sethforprivacy.com/feed/channel/UCNYW2vfGrUE6R5mIJYzkRyQ "~YT - DrossRotzank" +https://invidious.sethforprivacy.com/feed/channel/UC36xmz34q02JYaZYKrMwXng "~YT - Nate Gentile" +https://invidious.sethforprivacy.com/feed/channel/UCg6gPGh8HU2U01vaFCAsvmQ "~YT - Chris Titus Tech" +https://invidious.sethforprivacy.com/feed/channel/UCVls1GmFKf6WlTraIb_IaJg "~YT - DistroTube" +https://invidious.sethforprivacy.com/feed/channel/UCxQKHvKbmSzGMvUrVtJYnUA "~YT - Learn Linux TV" +https://invidious.sethforprivacy.com/feed/channel/UC5UAwBUum7CPN5buc-_N1Fw "~YT - The Linux Experiment" +https://invidious.sethforprivacy.com/feed/channel/UCylGUf9BvQooEFjgdNudoQg "~YT - The Linux Cast" +https://invidious.sethforprivacy.com/feed/channel/UCoryWpk4QVYKFCJul9KBdyw "~YT - Switched to Linux" +https://invidious.sethforprivacy.com/feed/channel/UCgkyQiY_Q5AlrygIXGWO2Zw "~YT - Tux Traveler" +https://invidious.sethforprivacy.com/feed/channel/UCxkw-TfCK1t1VKxfHwPzD6w "~YT - Our Walk in Christ" +https://invidious.sethforprivacy.com/feed/channel/UCld68syR8Wi-GY_n4CaoJGA "~YT - Brodie Robertson" +https://invidious.sethforprivacy.com/feed/channel/UCjSEJkpGbcZhvo0lr-44X_w "~YT - TechHut" +https://invidious.sethforprivacy.com/feed/channel/UC2eYFnH61tmytImy1mTYvhA "~YT - Luke Smith" +https://invidious.sethforprivacy.com/feed/channel/UC7YOGHUfC1Tb6E4pudI9STA "~YT - Mental Outlaw" +https://invidious.sethforprivacy.com/feed/channel/UC3jSNmKWYA04R47fDcc1ImA "~YT - InfinitelyGalactic" +https://invidious.sethforprivacy.com/feed/channel/UCONH73CdRXUjlh3-DdLGCPw "~YT - Nicco Loves Linux" +https://invidious.sethforprivacy.com/feed/channel/UC1s1OsWNYDFgbROPV-q5arg "~YT - Michael Horn" +https://invidious.sethforprivacy.com/feed/channel/UCOSSzBN8e3JHOxvltQbf_mQ "~YT - Jack Keifer" +https://invidious.sethforprivacy.com/feed/channel/UC05XpvbHZUQOfA6xk4dlmcw "~YT - DJ Ware" +https://invidious.sethforprivacy.com/feed/channel/UCAiiOTio8Yu69c3XnR7nQBQ "~YT - System Crafters" +https://invidious.sethforprivacy.com/feed/channel/UCAYKj_peyESIMDp5LtHlH2A "~YT - unfa" +https://invidious.sethforprivacy.com/feed/channel/UCmw-QGOHbHA5cDAvwwqUTKQ "~YT - Zaney" +https://invidious.sethforprivacy.com/feed/channel/UCNvl_86ygZXRuXjxbONI5jA "~YT - 10leej" +https://invidious.sethforprivacy.com/feed/channel/UC3yaWWA9FF9OBog5U9ml68A "~YT - SavvyNik" +https://invidious.sethforprivacy.com/feed/channel/UCS97tchJDq17Qms3cux8wcA "~YT - chris@machine" +https://invidious.sethforprivacy.com/feed/channel/UCl8XUDjAOLc7GNKcDp9Nepg "~YT - Locos por Linux" +https://invidious.sethforprivacy.com/feed/channel/UClVi5MQZ6T0InZYT7oFs6wg "~YT - Mumbling Hugo" +https://invidious.sethforprivacy.com/feed/channel/UCmyGZ0689ODyReHw3rsKLtQ "~YT - Michael Tunnell" +https://invidious.sethforprivacy.com/feed/channel/UCv1Kcz-CuGM6mxzL3B1_Eiw "~YT - Gardiner Bryant" +https://invidious.sethforprivacy.com/feed/channel/UCcf2Mr1qNoX51XXDUd3Rquw "~YT - ByteSeb" +https://invidious.sethforprivacy.com/feed/channel/UCCIHOP7e271SIumQgyl6XBQ "~YT - OldTechBloke" +https://invidious.sethforprivacy.com/feed/channel/UCIFzjAer2W9gTWVECZgtDzg "~YT - GaryH Tech" +https://invidious.sethforprivacy.com/feed/channel/UCMiyV_Ib77XLpzHPQH_q0qQ "~YT - Veronica Explains" +https://invidious.sethforprivacy.com/feed/channel/UCsnGwSIHyoYN0kiINAGUKxg "~YT - Wolfgang's Channel" +https://invidious.sethforprivacy.com/feed/channel/UCnIfca4LPFVn8-FjpPVc1ow "~YT - Fedora Project" +https://invidious.sethforprivacy.com/feed/channel/UCH5DsMZAgdx5Fkk9wwMNwCA "~YT - The New Oil" +https://invidious.sethforprivacy.com/feed/channel/UCs6KfncB4OV6Vug4o_bzijg "~YT - Techlore" +https://invidious.sethforprivacy.com/feed/channel/UCYVU6rModlGxvJbszCclGGw "~YT - Rob Braxman Tech" +https://invidious.sethforprivacy.com/feed/channel/UCSuHzQ3GrHSzoBbwrIq3LLA "~YT - Naomi Brockwell: NBTV" +https://invidious.sethforprivacy.com/feed/channel/UCvFGf8HZGZWFzpcDCqb3Lhw "~YT - All Things Secured" +https://invidious.sethforprivacy.com/feed/channel/UCvjgXvBlbQiydffZU7m1_aw "~YT - The Coding Train" +https://invidious.sethforprivacy.com/feed/channel/UC9-y-6csu5WGm29I7JiwpnA "~YT - Computerphile" +https://invidious.sethforprivacy.com/feed/channel/UCbiGcwDWZjz05njNPrJU7jA "~YT - ExplainingComputers" +https://invidious.sethforprivacy.com/feed/channel/UCy0tKL1T7wFoYcxCe0xjN6Q "~YT - Technology Connections" +https://invidious.sethforprivacy.com/feed/channel/UC8uT9cgJorJPWu7ITLGo9Ww "~YT - The 8-Bit Guy" +https://invidious.sethforprivacy.com/feed/channel/UCoL8olX-259lS1N6QPyP4IQ "~YT - Action Retro" +https://invidious.sethforprivacy.com/feed/channel/UCW-HHEyt67RhZ6q21n4p2zQ "~YT - Mac84" +https://invidious.sethforprivacy.com/feed/channel/UChT0QzAGfz_pUIbQnePV6KQ "~YT - Pendleton 115" +https://invidious.sethforprivacy.com/feed/channel/UC-ErgHYY0_Yjhjz2MN1E1lg "~YT - RETRO Hardware" +https://invidious.sethforprivacy.com/feed/channel/UCjgS6Uyg8ok4Jd_lH_MUKgg "~YT - Claus Kellerman" +https://invidious.sethforprivacy.com/feed/channel/UC0W_BIuwk8D0Bv4THbVZZOQ "~YT - Surveillance Report" +https://invidious.sethforprivacy.com/feed/channel/UCBq5p-xOla8xhnrbhu8AIAg "~YT - Tech Over Tea" + diff --git a/user/.config/picom/picom.conf b/user/.config/picom/picom.conf deleted file mode 100644 index 93031661e..000000000 --- a/user/.config/picom/picom.conf +++ /dev/null @@ -1,87 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom picom config - -## Animations -animations = true -# `auto`, `none`, `fly-in`, `zoom`, `slide-down`, `slide-up`, `slide-left`, `slide-right` `slide-in`, `slide-out` -animation-for-transient-window = "zoom" -animation-for-open-window = "zoom" -animation-for-unmap-window = "zoom" -animation-for-menu-window = "zoom" -animation-for-workspace-switch-out = "zoom" -animation-for-workspace-switch-in = "zoom" -animation-stiffness = 300; -animation-dampening = 16; -animation-window-mass = 1; -animation-clamping = true; -animation-delta = 16; -#animation-force-steps = true; - - -## Shadows -shadow = false; -#shadow-radius = 8; -#shadow-opacity = .90 -#shadow-offset-x = -10; -#shadow-offset-y = -10; -# shadow-red = 0 -# shadow-green = 0 -# shadow-blue = 0 -# shadow-color = "#000000" -#shadow-exclude = [ -# "name = 'Notification'", -# "class_g = 'Conky'", -# "class_g ?= 'Notify-osd'", -# "class_g = 'Cairo-clock'", -# "_GTK_FRAME_EXTENTS@:c" -#]; - -## Fading -fading = false; -#fade-in-step = 0.05; -#fade-out-step = 0.05; -#fade-delta = 8 -#fade-exclude = [] -#no-fading-openclose = false -#no-fading-destroyed-argb = false - -## Transparency and opacity -inactive-opacity = 1.00; -frame-opacity = 1.0; -inactive-opacity-override = false; -focus-exclude = [ "class_g = 'Cairo-clock'" ]; -# opaity-rule = [] - -## General Settings -backend = "xrender"; -vsync = true; -dbe = false; -detect-client-opacity = true; -refresh-rate = 60; -detect-transient = true; -glx-no-stencil = true; -use-damage = true; -unredir-if-possible = false; -#unredir-if-possible-exclude = [ -# "class_g = 'looking-glass-client' && !focused" -#]; -glx-use-copysubbuffer-mesa = true; - -wintypes: -{ - normal = { fade = true; full-shadow = true; }; - tooltip = { fade = true; }; - menu = { fade = true; }; - popup_menu = { fade = true; }; - dropdown_menu = { fade = true; }; - utility = { fade = true; }; - dialog = { fade = true; }; - notify = { fade = true; }; - unknown = { fade = true; }; - # notification = { shadow = true; }; - # dock = { shadow = false; }; -}; - diff --git a/user/.config/qt5ct/qt5ct.conf b/user/.config/qt5ct/qt5ct.conf index 25ebe2528..08368ab5c 100644 --- a/user/.config/qt5ct/qt5ct.conf +++ b/user/.config/qt5ct/qt5ct.conf @@ -1,13 +1,12 @@ [Appearance] color_scheme_path=/usr/share/qt5ct/colors/airy.conf custom_palette=false -icon_theme=Papirus-Dark standard_dialogs=gtk2 style=gtk2 [Fonts] -fixed=@Variant(\0\0\0@\0\0\0$\0m\0o\0n\0o\0n\0o\0k\0i\0 \0N\0\x65\0r\0\x64\0 \0\x46\0o\0n\0t@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0K\x10) -general=@Variant(\0\0\0@\0\0\0$\0m\0o\0n\0o\0n\0o\0k\0i\0 \0N\0\x65\0r\0\x64\0 \0\x46\0o\0n\0t@$\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0K\x10) +fixed="Mononoki Nerd Font,10,-1,5,50,0,0,0,0,0,Regular" +general="Cantarell,10,-1,5,50,0,0,0,0,0,Regular" [Interface] activate_item_on_single_click=1 @@ -25,7 +24,7 @@ underline_shortcut=1 wheel_scroll_lines=3 [SettingsWindow] -geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\x3\xc0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37\0\0\x3\xc1\0\0\0\x33\0\0\a~\0\0\x4\x36\0\0\0\0\0\0\0\0\a\x80\0\0\x3\xc1\0\0\0\x33\0\0\a~\0\0\x4\x36) +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\x2\xde\0\0\x2\x84\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc) [Troubleshooting] force_raster_widgets=1 diff --git a/user/.config/qt6ct/qt6ct.conf b/user/.config/qt6ct/qt6ct.conf index aa88b4acf..6f85a8818 100644 --- a/user/.config/qt6ct/qt6ct.conf +++ b/user/.config/qt6ct/qt6ct.conf @@ -1,12 +1,13 @@ [Appearance] color_scheme_path=/usr/share/qt6ct/colors/airy.conf custom_palette=false +icon_theme=gruvbox-dark-icons-gtk standard_dialogs=gtk2 style=qt6gtk2 [Fonts] -fixed="mononoki Nerd Font,10,-1,5,700,0,0,0,0,0,0,0,0,0,0,1,Bold" -general="mononoki Nerd Font,10,-1,5,700,0,0,0,0,0,0,0,0,0,0,1,Bold" +fixed="Mononoki Nerd Font,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" +general="Cantarell,12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" [Interface] activate_item_on_single_click=1 @@ -24,7 +25,7 @@ underline_shortcut=1 wheel_scroll_lines=3 [SettingsWindow] -geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\x32\0\0\a\x7f\0\0\x4\x37) +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc\0\0\0\0\0\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\am\0\0\x3\xfc) [Troubleshooting] force_raster_widgets=1 diff --git a/user/.config/qutebrowser/bookmarks/urls b/user/.config/qutebrowser/bookmarks/urls deleted file mode 100644 index aa55874c3..000000000 --- a/user/.config/qutebrowser/bookmarks/urls +++ /dev/null @@ -1,14 +0,0 @@ -https://mail.google.com/ gmail -https://mail.tutanota.com/ tutanota -https://next.tuxcloud.top/ nextcloud -https://cloud.linode.com/ linode -https://odysee.com/ odysee -https://youtube.com/ youtube -https://fosstodon.org/ mastodon -https://gitlab.com/ gitlab -https://app.element.io/ element -https://web.whatsapp.com/ whatsapp -https://outlook.office.com/ intec-correo -https://lms.intec.edu.do/ intec-aula-virtual -https://procesos.intec.edu.do/ intec-procesos -https://dev.azure.com/INTEC-IDS323L-01-2022-04-Equipo-2/ intec-azure diff --git a/user/.config/qutebrowser/config.py b/user/.config/qutebrowser/config.py deleted file mode 100644 index 90660e8bd..000000000 --- a/user/.config/qutebrowser/config.py +++ /dev/null @@ -1,251 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom qutebrowser config -## - -# Autogenerated config.py -# -# NOTE: config.py is intended for advanced users who are comfortable -# with manually migrating the config file on qutebrowser upgrades. If -# you prefer, you can also configure qutebrowser using the -# :set/:bind/:config-* commands without having to write a config.py -# file. -# -# Documentation: -# qute://help/configuring.html -# qute://help/settings.html - -# Uncomment this to still load settings configured via autoconfig.yml -# config.load_autoconfig() -# Or uncomment this line to load settings from config.py -config.load_autoconfig(False) - -# Aliases for commands. The keys of the given dictionary are the -# aliases, while the values are the commands they map to. -# Type: Dict -c.aliases = {'q': 'quit', 'w': 'session-save', 'wq': 'quit --save'} - -# Setting dark mode -#config.set("colors.webpage.darkmode.enabled", True) - - -# Which cookies to accept. With QtWebEngine, this setting also controls -# other features with tracking capabilities similar to those of cookies; -# including IndexedDB, DOM storage, filesystem API, service workers, and -# AppCache. Note that with QtWebKit, only `all` and `never` are -# supported as per-domain values. Setting `no-3rdparty` or `no- -# unknown-3rdparty` per-domain on QtWebKit will have the same effect as -# `all`. -# Type: String -# Valid values: -# - all: Accept all cookies. -# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. -# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty. -# - never: Don't accept cookies at all. -config.set('content.cookies.accept', 'all', 'chrome-devtools://*') - -# Which cookies to accept. With QtWebEngine, this setting also controls -# other features with tracking capabilities similar to those of cookies; -# including IndexedDB, DOM storage, filesystem API, service workers, and -# AppCache. Note that with QtWebKit, only `all` and `never` are -# supported as per-domain values. Setting `no-3rdparty` or `no- -# unknown-3rdparty` per-domain on QtWebKit will have the same effect as -# `all`. -# Type: String -# Valid values: -# - all: Accept all cookies. -# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. -# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty. -# - never: Don't accept cookies at all. -config.set('content.cookies.accept', 'all', 'devtools://*') - -# User agent to send. The following placeholders are defined: * -# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: -# The underlying WebKit version (set to a fixed value with -# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for -# QtWebEngine. * `{qt_version}`: The underlying Qt version. * -# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for -# QtWebEngine. * `{upstream_browser_version}`: The corresponding -# Safari/Chrome version. * `{qutebrowser_version}`: The currently -# running qutebrowser version. The default value is equal to the -# unchanged user agent of QtWebKit/QtWebEngine. Note that the value -# read from JavaScript is always the global value. With QtWebEngine -# between 5.12 and 5.14 (inclusive), changing the value exposed to -# JavaScript requires a restart. -# Type: FormatString -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/') - -# User agent to send. The following placeholders are defined: * -# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: -# The underlying WebKit version (set to a fixed value with -# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for -# QtWebEngine. * `{qt_version}`: The underlying Qt version. * -# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for -# QtWebEngine. * `{upstream_browser_version}`: The corresponding -# Safari/Chrome version. * `{qutebrowser_version}`: The currently -# running qutebrowser version. The default value is equal to the -# unchanged user agent of QtWebKit/QtWebEngine. Note that the value -# read from JavaScript is always the global value. With QtWebEngine -# between 5.12 and 5.14 (inclusive), changing the value exposed to -# JavaScript requires a restart. -# Type: FormatString -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://accounts.google.com/*') - -# User agent to send. The following placeholders are defined: * -# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: -# The underlying WebKit version (set to a fixed value with -# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for -# QtWebEngine. * `{qt_version}`: The underlying Qt version. * -# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for -# QtWebEngine. * `{upstream_browser_version}`: The corresponding -# Safari/Chrome version. * `{qutebrowser_version}`: The currently -# running qutebrowser version. The default value is equal to the -# unchanged user agent of QtWebKit/QtWebEngine. Note that the value -# read from JavaScript is always the global value. With QtWebEngine -# between 5.12 and 5.14 (inclusive), changing the value exposed to -# JavaScript requires a restart. -# Type: FormatString -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*') - -# User agent to send. The following placeholders are defined: * -# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: -# The underlying WebKit version (set to a fixed value with -# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for -# QtWebEngine. * `{qt_version}`: The underlying Qt version. * -# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for -# QtWebEngine. * `{upstream_browser_version}`: The corresponding -# Safari/Chrome version. * `{qutebrowser_version}`: The currently -# running qutebrowser version. The default value is equal to the -# unchanged user agent of QtWebKit/QtWebEngine. Note that the value -# read from JavaScript is always the global value. With QtWebEngine -# between 5.12 and 5.14 (inclusive), changing the value exposed to -# JavaScript requires a restart. -# Type: FormatString -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://docs.google.com/*') - -# User agent to send. The following placeholders are defined: * -# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: -# The underlying WebKit version (set to a fixed value with -# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for -# QtWebEngine. * `{qt_version}`: The underlying Qt version. * -# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for -# QtWebEngine. * `{upstream_browser_version}`: The corresponding -# Safari/Chrome version. * `{qutebrowser_version}`: The currently -# running qutebrowser version. The default value is equal to the -# unchanged user agent of QtWebKit/QtWebEngine. Note that the value -# read from JavaScript is always the global value. With QtWebEngine -# between 5.12 and 5.14 (inclusive), changing the value exposed to -# JavaScript requires a restart. -# Type: FormatString -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://drive.google.com/*') - -# Load images automatically in web pages. -# Type: Bool -config.set('content.images', True, 'chrome-devtools://*') - -# Load images automatically in web pages. -# Type: Bool -config.set('content.images', True, 'devtools://*') - -# Enable JavaScript. -# Type: Bool -config.set('content.javascript.enabled', True, 'chrome-devtools://*') - -# Enable JavaScript. -# Type: Bool -config.set('content.javascript.enabled', True, 'devtools://*') - -# Enable JavaScript. -# Type: Bool -config.set('content.javascript.enabled', True, 'chrome://*/*') - -# Enable JavaScript. -# Type: Bool -config.set('content.javascript.enabled', True, 'qute://*/*') - -# Type: BoolAsk -# Valid values: -# - true -# - false -# - ask -# config.set('content.notifications.enabled', True, 'https://www.youtube.com') - -# Directory to save downloads to. If unset, a sensible OS-specific -# default is used. -# Type: Directory -c.downloads.location.directory = '~/downloads' - -# When to show the tab bar. -# Type: String -# Valid values: -# - always: Always show the tab bar. -# - never: Always hide the tab bar. -# - multiple: Hide the tab bar if only one tab is open. -# - switching: Show the tab bar when switching tabs. -c.tabs.show = 'always' - -# Setting default page for when opening new tabs or new windows with -# commands like :open -t and :open -w . -c.url.default_page = 'https://start.duckduckgo.com' -c.url.start_pages = 'https://start.duckduckgo.com' - -# Search engines which can be used via the address bar. Maps a search -# engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}` -# placeholder. The placeholder will be replaced by the search term, use -# `{{` and `}}` for literal `{`/`}` braces. The following further -# placeholds are defined to configure how special characters in the -# search terms are replaced by safe characters (called 'quoting'): * -# `{}` and `{semiquoted}` quote everything except slashes; this is the -# most sensible choice for almost all search engines (for the search -# term `slash/and&` this placeholder expands to `slash/and%26amp`). -# * `{quoted}` quotes all characters (for `slash/and&` this -# placeholder expands to `slash%2Fand%26amp`). * `{unquoted}` quotes -# nothing (for `slash/and&` this placeholder expands to -# `slash/and&`). The search engine named `DEFAULT` is used when -# `url.auto_search` is turned on and something else than a URL was -# entered to be opened. Other search engines can be used by prepending -# the search engine name to the search term, e.g. `:open google -# qutebrowser`. -# Type: Dict -c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', 'aw': 'https://wiki.archlinux.org/?search={}', 'ub': 'https://www.urbandictionary.com/define.php?term={}', 'wiki': 'https://en.wikipedia.org/wiki/{}'} - -# Default font families to use. Whenever "default_family" is used in a -# font setting, it's replaced with the fonts listed here. If set to an -# empty value, a system-specific monospace default is used. -# Type: List of Font, or Font -c.fonts.default_family = '"mononoki Nerd Font"' - -# Default font size to use. Whenever "default_size" is used in a font -# setting, it's replaced with the size listed here. Valid values are -# either a float value with a "pt" suffix, or an integer value with a -# "px" suffix. -# Type: String -c.fonts.default_size = '10pt' - -# Font used in the completion widget. -# Type: Font -c.fonts.completion.entry = '10pt "mononoki Nerd Font"' - -# Font used for the debugging console. -# Type: Font -c.fonts.debug_console = '10pt "mononoki Nerd Font"' - -# Font used for prompts. -# Type: Font -c.fonts.prompts = 'default_size sans-serif' - -# Font used in the statusbar. -# Type: Font -c.fonts.statusbar = '10pt "mononoki Nerd Font"' - -config.source('gruvbox.py') - -# Bindings for normal mode -config.bind('M', 'hint links spawn mpv {hint-url}') -config.bind('Z', 'hint links spawn st -e youtube-dl {hint-url}') -config.bind('t', 'set-cmd-text -s :open -t') -config.bind('xb', 'config-cycle statusbar.show always never') -config.bind('xt', 'config-cycle tabs.show always never') -config.bind('xx', 'config-cycle statusbar.show always never;; config-cycle tabs.show always never') diff --git a/user/.config/qutebrowser/gruvbox.py b/user/.config/qutebrowser/gruvbox.py deleted file mode 100644 index e2704fcd5..000000000 --- a/user/.config/qutebrowser/gruvbox.py +++ /dev/null @@ -1,332 +0,0 @@ -# gruvbox dark hard qutebrowser theme by Florian Bruhin -# -# Originally based on: -# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) -# Base16 qutebrowser template by theova and Daniel Mulford -# Gruvbox dark, hard scheme by Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox) - -bg0_hard = "#1d2021" -bg0_soft = '#32302f' -bg0_normal = '#282828' - -bg0 = bg0_normal -bg1 = "#3c3836" -bg2 = "#504945" -bg3 = "#665c54" -bg4 = "#7c6f64" - -fg0 = "#fbf1c7" -fg1 = "#ebdbb2" -fg2 = "#d5c4a1" -fg3 = "#bdae93" -fg4 = "#a89984" - -bright_red = "#fb4934" -bright_green = "#b8bb26" -bright_yellow = "#fabd2f" -bright_blue = "#83a598" -bright_purple = "#d3869b" -bright_aqua = "#8ec07c" -bright_gray = "#928374" -bright_orange = "#fe8019" - -dark_red = "#cc241d" -dark_green = "#98971a" -dark_yellow = "#d79921" -dark_blue = "#458588" -dark_purple = "#b16286" -dark_aqua = "#689d6a" -dark_gray = "#a89984" -dark_orange = "#d65d0e" - -### Completion - -# Text color of the completion widget. May be a single color to use for -# all columns or a list of three colors, one for each column. -c.colors.completion.fg = [fg1, bright_aqua, bright_yellow] - -# Background color of the completion widget for odd rows. -c.colors.completion.odd.bg = bg0 - -# Background color of the completion widget for even rows. -c.colors.completion.even.bg = c.colors.completion.odd.bg - -# Foreground color of completion widget category headers. -c.colors.completion.category.fg = bright_blue - -# Background color of the completion widget category headers. -c.colors.completion.category.bg = bg1 - -# Top border color of the completion widget category headers. -c.colors.completion.category.border.top = c.colors.completion.category.bg - -# Bottom border color of the completion widget category headers. -c.colors.completion.category.border.bottom = c.colors.completion.category.bg - -# Foreground color of the selected completion item. -c.colors.completion.item.selected.fg = fg0 - -# Background color of the selected completion item. -c.colors.completion.item.selected.bg = bg4 - -# Top border color of the selected completion item. -c.colors.completion.item.selected.border.top = bg2 - -# Bottom border color of the selected completion item. -c.colors.completion.item.selected.border.bottom = c.colors.completion.item.selected.border.top - -# Foreground color of the matched text in the selected completion item. -c.colors.completion.item.selected.match.fg = bright_orange - -# Foreground color of the matched text in the completion. -c.colors.completion.match.fg = c.colors.completion.item.selected.match.fg - -# Color of the scrollbar handle in the completion view. -c.colors.completion.scrollbar.fg = c.colors.completion.item.selected.fg - -# Color of the scrollbar in the completion view. -c.colors.completion.scrollbar.bg = c.colors.completion.category.bg - -### Context menu - -# Background color of disabled items in the context menu. -c.colors.contextmenu.disabled.bg = bg3 - -# Foreground color of disabled items in the context menu. -c.colors.contextmenu.disabled.fg = fg3 - -# Background color of the context menu. If set to null, the Qt default is used. -c.colors.contextmenu.menu.bg = bg0 - -# Foreground color of the context menu. If set to null, the Qt default is used. -c.colors.contextmenu.menu.fg = fg2 - -# Background color of the context menu’s selected item. If set to null, the Qt default is used. -c.colors.contextmenu.selected.bg = bg2 - -#Foreground color of the context menu’s selected item. If set to null, the Qt default is used. -c.colors.contextmenu.selected.fg = c.colors.contextmenu.menu.fg - -### Downloads - -# Background color for the download bar. -c.colors.downloads.bar.bg = bg0 - -# Color gradient start for download text. -c.colors.downloads.start.fg = bg0 - -# Color gradient start for download backgrounds. -c.colors.downloads.start.bg = bright_blue - -# Color gradient end for download text. -c.colors.downloads.stop.fg = c.colors.downloads.start.fg - -# Color gradient stop for download backgrounds. -c.colors.downloads.stop.bg = bright_aqua - -# Foreground color for downloads with errors. -c.colors.downloads.error.fg = bright_red - -### Hints - -# Font color for hints. -c.colors.hints.fg = bg0 - -# Background color for hints. -c.colors.hints.bg = 'rgba(250, 191, 47, 200)' # bright_yellow - -# Font color for the matched part of hints. -c.colors.hints.match.fg = bg4 - -### Keyhint widget - -# Text color for the keyhint widget. -c.colors.keyhint.fg = fg4 - -# Highlight color for keys to complete the current keychain. -c.colors.keyhint.suffix.fg = fg0 - -# Background color of the keyhint widget. -c.colors.keyhint.bg = bg0 - -### Messages - -# Foreground color of an error message. -c.colors.messages.error.fg = bg0 - -# Background color of an error message. -c.colors.messages.error.bg = bright_red - -# Border color of an error message. -c.colors.messages.error.border = c.colors.messages.error.bg - -# Foreground color of a warning message. -c.colors.messages.warning.fg = bg0 - -# Background color of a warning message. -c.colors.messages.warning.bg = bright_purple - -# Border color of a warning message. -c.colors.messages.warning.border = c.colors.messages.warning.bg - -# Foreground color of an info message. -c.colors.messages.info.fg = fg2 - -# Background color of an info message. -c.colors.messages.info.bg = bg0 - -# Border color of an info message. -c.colors.messages.info.border = c.colors.messages.info.bg - -### Prompts - -# Foreground color for prompts. -c.colors.prompts.fg = fg2 - -# Border used around UI elements in prompts. -c.colors.prompts.border = f'1px solid {bg1}' - -# Background color for prompts. -c.colors.prompts.bg = bg3 - -# Background color for the selected item in filename prompts. -c.colors.prompts.selected.bg = bg2 - -### Statusbar - -# Foreground color of the statusbar. -c.colors.statusbar.normal.fg = fg2 - -# Background color of the statusbar. -c.colors.statusbar.normal.bg = bg0 - -# Foreground color of the statusbar in insert mode. -c.colors.statusbar.insert.fg = bg0 - -# Background color of the statusbar in insert mode. -c.colors.statusbar.insert.bg = dark_aqua - -# Foreground color of the statusbar in passthrough mode. -c.colors.statusbar.passthrough.fg = bg0 - -# Background color of the statusbar in passthrough mode. -c.colors.statusbar.passthrough.bg = dark_blue - -# Foreground color of the statusbar in private browsing mode. -c.colors.statusbar.private.fg = bright_purple - -# Background color of the statusbar in private browsing mode. -c.colors.statusbar.private.bg = bg0 - -# Foreground color of the statusbar in command mode. -c.colors.statusbar.command.fg = fg3 - -# Background color of the statusbar in command mode. -c.colors.statusbar.command.bg = bg1 - -# Foreground color of the statusbar in private browsing + command mode. -c.colors.statusbar.command.private.fg = c.colors.statusbar.private.fg - -# Background color of the statusbar in private browsing + command mode. -c.colors.statusbar.command.private.bg = c.colors.statusbar.command.bg - -# Foreground color of the statusbar in caret mode. -c.colors.statusbar.caret.fg = bg0 - -# Background color of the statusbar in caret mode. -c.colors.statusbar.caret.bg = dark_purple - -# Foreground color of the statusbar in caret mode with a selection. -c.colors.statusbar.caret.selection.fg = c.colors.statusbar.caret.fg - -# Background color of the statusbar in caret mode with a selection. -c.colors.statusbar.caret.selection.bg = bright_purple - -# Background color of the progress bar. -c.colors.statusbar.progress.bg = bright_blue - -# Default foreground color of the URL in the statusbar. -c.colors.statusbar.url.fg = fg4 - -# Foreground color of the URL in the statusbar on error. -c.colors.statusbar.url.error.fg = dark_red - -# Foreground color of the URL in the statusbar for hovered links. -c.colors.statusbar.url.hover.fg = bright_orange - -# Foreground color of the URL in the statusbar on successful load -# (http). -c.colors.statusbar.url.success.http.fg = bright_red - -# Foreground color of the URL in the statusbar on successful load -# (https). -c.colors.statusbar.url.success.https.fg = fg0 - -# Foreground color of the URL in the statusbar when there's a warning. -c.colors.statusbar.url.warn.fg = bright_purple - -### tabs - -# Background color of the tab bar. -c.colors.tabs.bar.bg = bg0 - -# Color gradient start for the tab indicator. -c.colors.tabs.indicator.start = bright_blue - -# Color gradient end for the tab indicator. -c.colors.tabs.indicator.stop = bright_aqua - -# Color for the tab indicator on errors. -c.colors.tabs.indicator.error = bright_red - -# Foreground color of unselected odd tabs. -c.colors.tabs.odd.fg = fg2 - -# Background color of unselected odd tabs. -c.colors.tabs.odd.bg = bg2 - -# Foreground color of unselected even tabs. -c.colors.tabs.even.fg = c.colors.tabs.odd.fg - -# Background color of unselected even tabs. -c.colors.tabs.even.bg = bg3 - -# Foreground color of selected odd tabs. -c.colors.tabs.selected.odd.fg = fg2 - -# Background color of selected odd tabs. -c.colors.tabs.selected.odd.bg = bg0 - -# Foreground color of selected even tabs. -c.colors.tabs.selected.even.fg = c.colors.tabs.selected.odd.fg - -# Background color of selected even tabs. -c.colors.tabs.selected.even.bg = bg0 - -# Background color of pinned unselected even tabs. -c.colors.tabs.pinned.even.bg = bright_green - -# Foreground color of pinned unselected even tabs. -c.colors.tabs.pinned.even.fg = bg2 - -# Background color of pinned unselected odd tabs. -c.colors.tabs.pinned.odd.bg = bright_green - -# Foreground color of pinned unselected odd tabs. -c.colors.tabs.pinned.odd.fg = c.colors.tabs.pinned.even.fg - -# Background color of pinned selected even tabs. -c.colors.tabs.pinned.selected.even.bg = bg0 - -# Foreground color of pinned selected even tabs. -c.colors.tabs.pinned.selected.even.fg = c.colors.tabs.selected.odd.fg - -# Background color of pinned selected odd tabs. -c.colors.tabs.pinned.selected.odd.bg = c.colors.tabs.pinned.selected.even.bg - -# Foreground color of pinned selected odd tabs. -c.colors.tabs.pinned.selected.odd.fg = c.colors.tabs.selected.odd.fg - -# Background color for webpages if unset (or empty to use the theme's -# color). -c.colors.webpage.bg = bg4 diff --git a/user/.config/rofi/config.rasi b/user/.config/rofi/config.rasi index e9635bfeb..a4a28cbc8 100644 --- a/user/.config/rofi/config.rasi +++ b/user/.config/rofi/config.rasi @@ -3,14 +3,15 @@ configuration{ lines: 10; font: "mononoki Nerd Font 14"; show-icons: true; + icon-theme: "gruvbox-dark-icons-gtk"; terminal: "alacritty"; drun-display-format: "{icon} {name}"; location: 0; disable-history: false; hide-scrollbar: true; - display-drun: "  Apps "; + display-drun: " 󰀻 Apps "; display-run: "  Run "; - display-window: " 﩯 Window "; + display-window: " 󰖯 Window "; display-Network: " 󰤨 Network "; sidebar-mode: true; dpi: 100; diff --git a/new-config/.config/rofi/scripts/rofi_blue b/user/.config/rofi/scripts/rofi_blue similarity index 100% rename from new-config/.config/rofi/scripts/rofi_blue rename to user/.config/rofi/scripts/rofi_blue diff --git a/user/.config/rofi/scripts/rofi_emoji b/user/.config/rofi/scripts/rofi_emoji index ed12a2899..e90268c05 100755 --- a/user/.config/rofi/scripts/rofi_emoji +++ b/user/.config/rofi/scripts/rofi_emoji @@ -1,1839 +1,1859 @@ #!/bin/bash -# This files comes from: -# https://github.com/porras/dmenu-emoji -# -# If this file includes emojis below "__DATA__" it is generated. -# This file was generated: 2022-04-21 12:38:03+00:00 - -set -e - -case "$1" in - "list") - data=$(sed '0,/^__DATA__$/d' "$0") - echo "$data" - ;; - "copy") - input=$(tee) - if [ ! -z "$input" ]; then - emoji=${input: -1} - echo -n "$emoji" | xclip -selection c - command -v notify-send > /dev/null && notify-send "$emoji copied!" - fi - ;; - "") - bash $0 list | rofi -dmenu -p 'Emoji: ' | bash $0 copy - ;; -esac - +wtype 0 +if [ $? -eq 0 ] +then + sed '1,/^### DATA ###$/d' $0 | rofi -dmenu -i -p " 󰙃 Select Emoji " | cut -d ' ' -f 1 | tr -d '\n' | wtype - +else + sed '1,/^### DATA ###$/d' $0 | rofi -dmenu -i -p " 󰙃 Select Emoji " | cut -d ' ' -f 1 | tr -d '\n' | wl-copy +fi exit - -__DATA__ -grinning face 😀 -grinning face with big eyes 😃 -grinning face with smiling eyes 😄 -beaming face with smiling eyes 😁 -grinning squinting face 😆 -grinning face with sweat 😅 -rolling on the floor laughing 🤣 -face with tears of joy 😂 -slightly smiling face 🙂 -upside-down face 🙃 -winking face 😉 -smiling face with smiling eyes 😊 -smiling face with halo 😇 -smiling face with hearts 🥰 -smiling face with heart-eyes 😍 -star-struck 🤩 -face blowing a kiss 😘 -kissing face 😗 -smiling face ☺ -kissing face with closed eyes 😚 -kissing face with smiling eyes 😙 -smiling face with tear 🥲 -face savoring food 😋 -face with tongue 😛 -winking face with tongue 😜 -zany face 🤪 -squinting face with tongue 😝 -money-mouth face 🤑 -hugging face 🤗 -face with hand over mouth 🤭 -shushing face 🤫 -thinking face 🤔 -zipper-mouth face 🤐 -face with raised eyebrow 🤨 -neutral face 😐 -expressionless face 😑 -face without mouth 😶 -smirking face 😏 -unamused face 😒 -face with rolling eyes 🙄 -grimacing face 😬 -face exhaling 😮‍ -lying face 🤥 -relieved face 😌 -pensive face 😔 -sleepy face 😪 -drooling face 🤤 -sleeping face 😴 -face with medical mask 😷 -face with thermometer 🤒 -face with head-bandage 🤕 -nauseated face 🤢 -face vomiting 🤮 -sneezing face 🤧 -hot face 🥵 -cold face 🥶 -woozy face 🥴 -knocked-out face 😵 -exploding head 🤯 -cowboy hat face 🤠 -partying face 🥳 -disguised face 🥸 -smiling face with sunglasses 😎 -nerd face 🤓 -face with monocle 🧐 -confused face 😕 -worried face 😟 -slightly frowning face 🙁 -face with open mouth 😮 -hushed face 😯 -astonished face 😲 -flushed face 😳 -pleading face 🥺 -frowning face with open mouth 😦 -anguished face 😧 -fearful face 😨 -anxious face with sweat 😰 -sad but relieved face 😥 -crying face 😢 -loudly crying face 😭 -face screaming in fear 😱 -confounded face 😖 -persevering face 😣 -disappointed face 😞 -downcast face with sweat 😓 -weary face 😩 -tired face 😫 -yawning face 🥱 -face with steam from nose 😤 -pouting face 😡 -angry face 😠 -face with symbols on mouth 🤬 -smiling face with horns 😈 -angry face with horns 👿 -skull 💀 -skull and crossbones ☠️ -pile of poo 💩 -clown face 🤡 -ogre 👹 -goblin 👺 -ghost 👻 -alien 👽 -alien monster 👾 -robot 🤖 -grinning cat 😺 -grinning cat with smiling eyes 😸 -cat with tears of joy 😹 -smiling cat with heart-eyes 😻 -cat with wry smile 😼 -kissing cat 😽 -weary cat 🙀 -crying cat 😿 -pouting cat 😾 -see-no-evil monkey 🙈 -hear-no-evil monkey 🙉 -speak-no-evil monkey 🙊 -kiss mark 💋 -love letter 💌 -heart with arrow 💘 -heart with ribbon 💝 -sparkling heart 💖 -growing heart 💗 -beating heart 💓 -revolving hearts 💞 -two hearts 💕 -heart decoration 💟 -heart exclamation ❣️ -broken heart 💔 -heart on fire ❤️‍🔥 -mending heart ❤️‍🩹 -red heart ❤️ -orange heart 🧡 -yellow heart 💛 -green heart 💚 -blue heart 💙 -purple heart 💜 -brown heart 🤎 -black heart 🖤 -white heart 🤍 -hundred points 💯 -anger symbol 💢 -collision 💥 -dizzy 💫 -sweat droplets 💦 -dashing away 💨 -hole 🕳️ -bomb 💣 -speech balloon 💬 -eye in speech bubble 👁️‍🗨️ -left speech bubble 🗨️ -right anger bubble 🗯️ -thought balloon 💭 -zzz 💤 -waving hand 👋 -raised back of hand 🤚 -hand with fingers splayed 🖐️ -raised hand ✋ -vulcan salute 🖖 -OK hand 👌 -pinched fingers 🤌 -pinching hand 🤏 -victory hand ✌️ -crossed fingers 🤞 -love-you gesture 🤟 -sign of the horns 🤘 -call me hand 🤙 -backhand index pointing left 👈 -backhand index pointing right 👉 -backhand index pointing up 👆 -middle finger 🖕 -backhand index pointing down 👇 -index pointing up ☝️ -thumbs up 👍 -thumbs down 👎 -raised fist ✊ -oncoming fist 👊 -left-facing fist 🤛 -right-facing fist 🤜 -clapping hands 👏 -raising hands 🙌 -open hands 👐 -palms up together 🤲 -handshake 🤝 -folded hands 🙏 -writing hand ✍️ -nail polish 💅 -selfie 🤳 -flexed biceps 💪 -mechanical arm 🦾 -mechanical leg 🦿 -leg 🦵 -foot 🦶 -ear 👂 -ear with hearing aid 🦻 -nose 👃 -brain 🧠 -anatomical heart 🫀 -lungs 🫁 -tooth 🦷 -bone 🦴 -eyes 👀 -eye 👁️ -tongue 👅 -mouth 👄 -baby 👶 -child 🧒 -boy 👦 -girl 👧 -person 🧑 -person: blond hair 👱 -man 👨 -person: beard 🧔 -man: beard 🧔‍♂️ -woman: beard 🧔‍♀️ -man: red hair 👨‍🦰 -man: curly hair 👨‍🦱 -man: white hair 👨‍🦳 -man: bald 👨‍🦲 -woman 👩 -woman: red hair 👩‍🦰 -person: red hair 🧑‍🦰 -woman: curly hair 👩‍🦱 -person: curly hair 🧑‍🦱 -woman: white hair 👩‍🦳 -person: white hair 🧑‍🦳 -woman: bald 👩‍🦲 -person: bald 🧑‍🦲 -woman: blond hair 👱‍♀️ -man: blond hair 👱‍♂️ -older person 🧓 -old man 👴 -old woman 👵 -person frowning 🙍 -man frowning 🙍‍♂️ -woman frowning 🙍‍♀️ -person pouting 🙎 -man pouting 🙎‍♂️ -woman pouting 🙎‍♀️ -person gesturing NO 🙅 -man gesturing NO 🙅‍♂️ -woman gesturing NO 🙅‍♀️ -person gesturing OK 🙆 -man gesturing OK 🙆‍♂️ -woman gesturing OK 🙆‍♀️ -person tipping hand 💁 -man tipping hand 💁‍♂️ -woman tipping hand 💁‍♀️ -person raising hand 🙋 -man raising hand 🙋‍♂️ -woman raising hand 🙋‍♀️ -deaf person 🧏 -deaf man 🧏‍♂️ -deaf woman 🧏‍♀️ -person bowing 🙇 -man bowing 🙇‍♂️ -woman bowing 🙇‍♀️ -person facepalming 🤦 -man facepalming 🤦‍♂️ -woman facepalming 🤦‍♀️ -person shrugging 🤷 -man shrugging 🤷‍♂️ -woman shrugging 🤷‍♀️ -health worker 🧑‍⚕️ -man health worker 👨‍⚕️ -woman health worker 👩‍⚕️ -student 🧑‍🎓 -man student 👨‍🎓 -woman student 👩‍🎓 -teacher 🧑‍🏫 -man teacher 👨‍🏫 -woman teacher 👩‍🏫 -judge 🧑‍⚖️ -man judge 👨‍⚖️ -woman judge 👩‍⚖️ -farmer 🧑‍🌾 -man farmer 👨‍🌾 -woman farmer 👩‍🌾 -cook 🧑‍🍳 -man cook 👨‍🍳 -woman cook 👩‍🍳 -mechanic 🧑‍🔧 -man mechanic 👨‍🔧 -woman mechanic 👩‍🔧 -factory worker 🧑‍🏭 -man factory worker 👨‍🏭 -woman factory worker 👩‍🏭 -office worker 🧑‍💼 -man office worker 👨‍💼 -woman office worker 👩‍💼 -scientist 🧑‍🔬 -man scientist 👨‍🔬 -woman scientist 👩‍🔬 -technologist 🧑‍💻 -man technologist 👨‍💻 -woman technologist 👩‍💻 -singer 🧑‍🎤 -man singer 👨‍🎤 -woman singer 👩‍🎤 -artist 🧑‍🎨 -man artist 👨‍🎨 -woman artist 👩‍🎨 -pilot 🧑‍✈️ -man pilot 👨‍✈️ -woman pilot 👩‍✈️ -astronaut 🧑‍🚀 -man astronaut 👨‍🚀 -woman astronaut 👩‍🚀 -firefighter 🧑‍🚒 -man firefighter 👨‍🚒 -woman firefighter 👩‍🚒 -police officer 👮 -man police officer 👮‍♂️ -woman police officer 👮‍♀️ -detective 🕵️ -man detective 🕵️‍♂️ -woman detective 🕵️‍♀️ -guard 💂 -man guard 💂‍♂️ -woman guard 💂‍♀️ -ninja 🥷 -construction worker 👷 -man construction worker 👷‍♂️ -woman construction worker 👷‍♀️ -prince 🤴 -princess 👸 -person wearing turban 👳 -man wearing turban 👳‍♂️ -woman wearing turban 👳‍♀️ -person with skullcap 👲 -woman with headscarf 🧕 -person in tuxedo 🤵 -man in tuxedo 🤵‍♂️ -woman in tuxedo 🤵‍♀️ -person with veil 👰 -man with veil 👰‍♂️ -woman with veil 👰‍♀️ -pregnant woman 🤰 -breast-feeding 🤱 -woman feeding baby 👩‍🍼 -man feeding baby 👨‍🍼 -person feeding baby 🧑‍🍼 -baby angel 👼 -Santa Claus 🎅 -Mrs. Claus 🤶 -mx claus 🧑‍🎄 -superhero 🦸 -man superhero 🦸‍♂️ -woman superhero 🦸‍♀️ -supervillain 🦹 -man supervillain 🦹‍♂️ -woman supervillain 🦹‍♀️ -mage 🧙 -man mage 🧙‍♂️ -woman mage 🧙‍♀️ -fairy 🧚 -man fairy 🧚‍♂️ -woman fairy 🧚‍♀️ -vampire 🧛 -man vampire 🧛‍♂️ -woman vampire 🧛‍♀️ -merperson 🧜 -merman 🧜‍♂️ -mermaid 🧜‍♀️ -elf 🧝 -man elf 🧝‍♂️ -woman elf 🧝‍♀️ -genie 🧞 -man genie 🧞‍♂️ -woman genie 🧞‍♀️ -zombie 🧟 -man zombie 🧟‍♂️ -woman zombie 🧟‍♀️ -person getting massage 💆 -man getting massage 💆‍♂️ -woman getting massage 💆‍♀️ -person getting haircut 💇 -man getting haircut 💇‍♂️ -woman getting haircut 💇‍♀️ -person walking 🚶 -man walking 🚶‍♂️ -woman walking 🚶‍♀️ -person standing 🧍 -man standing 🧍‍♂️ -woman standing 🧍‍♀️ -person kneeling 🧎 -man kneeling 🧎‍♂️ -woman kneeling 🧎‍♀️ -person with white cane 🧑‍🦯 -man with white cane 👨‍🦯 -woman with white cane 👩‍🦯 -person in motorized wheelchair 🧑‍🦼 -man in motorized wheelchair 👨‍🦼 -woman in motorized wheelchair 👩‍🦼 -person in manual wheelchair 🧑‍🦽 -man in manual wheelchair 👨‍🦽 -woman in manual wheelchair 👩‍🦽 -person running 🏃 -man running 🏃‍♂️ -woman running 🏃‍♀️ -woman dancing 💃 -man dancing 🕺 -person in suit levitating 🕴️ -people with bunny ears 👯 -men with bunny ears 👯‍♂️ -women with bunny ears 👯‍♀️ -person in steamy room 🧖 -man in steamy room 🧖‍♂️ -woman in steamy room 🧖‍♀️ -person climbing 🧗 -man climbing 🧗‍♂️ -woman climbing 🧗‍♀️ -person fencing 🤺 -horse racing 🏇 -skier ⛷️ -snowboarder 🏂 -person golfing 🏌️ -man golfing 🏌️‍♂️ -woman golfing 🏌️‍♀️ -person surfing 🏄 -man surfing 🏄‍♂️ -woman surfing 🏄‍♀️ -person rowing boat 🚣 -man rowing boat 🚣‍♂️ -woman rowing boat 🚣‍♀️ -person swimming 🏊 -man swimming 🏊‍♂️ -woman swimming 🏊‍♀️ -person bouncing ball ⛹️ -man bouncing ball ⛹️‍♂️ -woman bouncing ball ⛹️‍♀️ -person lifting weights 🏋️ -man lifting weights 🏋️‍♂️ -woman lifting weights 🏋️‍♀️ -person biking 🚴 -man biking 🚴‍♂️ -woman biking 🚴‍♀️ -person mountain biking 🚵 -man mountain biking 🚵‍♂️ -woman mountain biking 🚵‍♀️ -person cartwheeling 🤸 -man cartwheeling 🤸‍♂️ -woman cartwheeling 🤸‍♀️ -people wrestling 🤼 -men wrestling 🤼‍♂️ -women wrestling 🤼‍♀️ -person playing water polo 🤽 -man playing water polo 🤽‍♂️ -woman playing water polo 🤽‍♀️ -person playing handball 🤾 -man playing handball 🤾‍♂️ -woman playing handball 🤾‍♀️ -person juggling 🤹 -man juggling 🤹‍♂️ -woman juggling 🤹‍♀️ -person in lotus position 🧘 -man in lotus position 🧘‍♂️ -woman in lotus position 🧘‍♀️ -person taking bath 🛀 -person in bed 🛌 -people holding hands 🧑‍🤝‍🧑 -women holding hands 👭 -woman and man holding hands 👫 -men holding hands 👬 -kiss 💏 -kiss: woman n 👩‍❤️‍💋‍👨 -kiss: man n 👨‍❤️‍💋‍👨 -kiss: woman n 👩‍❤️‍💋‍👩 -couple with heart 💑 -couple with heart: woman man 👩‍❤️‍👨 -couple with heart: man man 👨‍❤️‍👨 -couple with heart: woman man 👩‍❤️‍👩 -family 👪 -family: man wo boy 👨‍👩‍👦 -family: man wom girl 👨‍👩‍👧 -family: man woman girl boy 👨‍👩‍👧‍👦 -family: man woman boy boy 👨‍👩‍👦‍👦 -family: man woman girl girl 👨‍👩‍👧‍👧 -family: man boy 👨‍👨‍👦 -family: man m girl 👨‍👨‍👧 -family: man man girl boy 👨‍👨‍👧‍👦 -family: man man boy boy 👨‍👨‍👦‍👦 -family: man man girl girl 👨‍👨‍👧‍👧 -family: woman wo boy 👩‍👩‍👦 -family: woman wom girl 👩‍👩‍👧 -family: woman woman girl boy 👩‍👩‍👧‍👦 -family: woman woman boy boy 👩‍👩‍👦‍👦 -family: woman woman girl girl 👩‍👩‍👧‍👧 -family: man boy 👨‍👦 -family: man boy 👨‍👦‍👦 -family: man girl 👨‍👧 -family: man g boy 👨‍👧‍👦 -family: man gi girl 👨‍👧‍👧 -family: woman boy 👩‍👦 -family: woman boy 👩‍👦‍👦 -family: woman girl 👩‍👧 -family: woman g boy 👩‍👧‍👦 -family: woman gi girl 👩‍👧‍👧 -speaking head 🗣️ -bust in silhouette 👤 -busts in silhouette 👥 -people hugging 🫂 -footprints 👣 -monkey face 🐵 -monkey 🐒 -gorilla 🦍 -orangutan 🦧 -dog face 🐶 -dog 🐕 -guide dog 🦮 -service dog 🐕‍🦺 -poodle 🐩 -wolf 🐺 -fox 🦊 -raccoon 🦝 -cat face 🐱 -cat 🐈 -black cat 🐈‍⬛ -lion 🦁 -tiger face 🐯 -tiger 🐅 -leopard 🐆 -horse face 🐴 -horse 🐎 -unicorn 🦄 -zebra 🦓 -deer 🦌 -bison 🦬 -cow face 🐮 -ox 🐂 -water buffalo 🐃 -cow 🐄 -pig face 🐷 -pig 🐖 -boar 🐗 -pig nose 🐽 -ram 🐏 -ewe 🐑 -goat 🐐 -camel 🐪 -two-hump camel 🐫 -llama 🦙 -giraffe 🦒 -elephant 🐘 -mammoth 🦣 -rhinoceros 🦏 -hippopotamus 🦛 -mouse face 🐭 -mouse 🐁 -rat 🐀 -hamster 🐹 -rabbit face 🐰 -rabbit 🐇 -chipmunk 🐿️ -beaver 🦫 -hedgehog 🦔 -bat 🦇 -bear 🐻 -polar bear 🐻‍❄️ -koala 🐨 -panda 🐼 -sloth 🦥 -otter 🦦 -skunk 🦨 -kangaroo 🦘 -badger 🦡 -paw prints 🐾 -turkey 🦃 -chicken 🐔 -rooster 🐓 -hatching chick 🐣 -baby chick 🐤 -front-facing baby chick 🐥 -bird 🐦 -penguin 🐧 -dove 🕊️ -eagle 🦅 -duck 🦆 -swan 🦢 -owl 🦉 -dodo 🦤 -feather 🪶 -flamingo 🦩 -peacock 🦚 -parrot 🦜 -frog 🐸 -crocodile 🐊 -turtle 🐢 -lizard 🦎 -snake 🐍 -dragon face 🐲 -dragon 🐉 -sauropod 🦕 -T-Rex 🦖 -spouting whale 🐳 -whale 🐋 -dolphin 🐬 -seal 🦭 -fish 🐟 -tropical fish 🐠 -blowfish 🐡 -shark 🦈 -octopus 🐙 -spiral shell 🐚 -snail 🐌 -butterfly 🦋 -bug 🐛 -ant 🐜 -honeybee 🐝 -beetle 🪲 -lady beetle 🐞 -cricket 🦗 -cockroach 🪳 -spider 🕷️ -spider web 🕸️ -scorpion 🦂 -mosquito 🦟 -fly 🪰 -worm 🪱 -microbe 🦠 -bouquet 💐 -cherry blossom 🌸 -white flower 💮 -rosette 🏵️ -rose 🌹 -wilted flower 🥀 -hibiscus 🌺 -sunflower 🌻 -blossom 🌼 -tulip 🌷 -seedling 🌱 -potted plant 🪴 -evergreen tree 🌲 -deciduous tree 🌳 -palm tree 🌴 -cactus 🌵 -sheaf of rice 🌾 -herb 🌿 -shamrock ☘️ -four leaf clover 🍀 -maple leaf 🍁 -fallen leaf 🍂 -leaf fluttering in wind 🍃 -grapes 🍇 -melon 🍈 -watermelon 🍉 -tangerine 🍊 -lemon 🍋 -banana 🍌 -pineapple 🍍 -mango 🥭 -red apple 🍎 -green apple 🍏 -pear 🍐 -peach 🍑 -cherries 🍒 -strawberry 🍓 -blueberries 🫐 -kiwi fruit 🥝 -tomato 🍅 -olive 🫒 -coconut 🥥 -avocado 🥑 -eggplant 🍆 -potato 🥔 -carrot 🥕 -ear of corn 🌽 -hot pepper 🌶️ -bell pepper 🫑 -cucumber 🥒 -leafy green 🥬 -broccoli 🥦 -garlic 🧄 -onion 🧅 -mushroom 🍄 -peanuts 🥜 -chestnut 🌰 -bread 🍞 -croissant 🥐 -baguette bread 🥖 -flatbread 🫓 -pretzel 🥨 -bagel 🥯 -pancakes 🥞 -waffle 🧇 -cheese wedge 🧀 -meat on bone 🍖 -poultry leg 🍗 -cut of meat 🥩 -bacon 🥓 -hamburger 🍔 -french fries 🍟 -pizza 🍕 -hot dog 🌭 -sandwich 🥪 -taco 🌮 -burrito 🌯 -tamale 🫔 -stuffed flatbread 🥙 -falafel 🧆 -egg 🥚 -cooking 🍳 -shallow pan of food 🥘 -pot of food 🍲 -fondue 🫕 -bowl with spoon 🥣 -green salad 🥗 -popcorn 🍿 -butter 🧈 -salt 🧂 -canned food 🥫 -bento box 🍱 -rice cracker 🍘 -rice ball 🍙 -cooked rice 🍚 -curry rice 🍛 -steaming bowl 🍜 -spaghetti 🍝 -roasted sweet potato 🍠 -oden 🍢 -sushi 🍣 -fried shrimp 🍤 -fish cake with swirl 🍥 -moon cake 🥮 -dango 🍡 -dumpling 🥟 -fortune cookie 🥠 -takeout box 🥡 -crab 🦀 -lobster 🦞 -shrimp 🦐 -squid 🦑 -oyster 🦪 -soft ice cream 🍦 -shaved ice 🍧 -ice cream 🍨 -doughnut 🍩 -cookie 🍪 -birthday cake 🎂 -shortcake 🍰 -cupcake 🧁 -pie 🥧 -chocolate bar 🍫 -candy 🍬 -lollipop 🍭 -custard 🍮 -honey pot 🍯 -baby bottle 🍼 -glass of milk 🥛 -hot beverage ☕ -teapot 🫖 -teacup without handle 🍵 -sake 🍶 -bottle with popping cork 🍾 -wine glass 🍷 -cocktail glass 🍸 -tropical drink 🍹 -beer mug 🍺 -clinking beer mugs 🍻 -clinking glasses 🥂 -tumbler glass 🥃 -cup with straw 🥤 -bubble tea 🧋 -beverage box 🧃 -mate 🧉 -ice 🧊 -chopsticks 🥢 -fork and knife with plate 🍽️ -fork and knife 🍴 -spoon 🥄 -kitchen knife 🔪 -amphora 🏺 -globe showing Europe-Africa 🌍 -globe showing Americas 🌎 -globe showing Asia-Australia 🌏 -globe with meridians 🌐 -world map 🗺️ -map of Japan 🗾 -compass 🧭 -snow-capped mountain 🏔️ -mountain ⛰️ -volcano 🌋 -mount fuji 🗻 -camping 🏕️ -beach with umbrella 🏖️ -desert 🏜️ -desert island 🏝️ -national park 🏞️ -stadium 🏟️ -classical building 🏛️ -building construction 🏗️ -brick 🧱 -rock 🪨 -wood 🪵 -hut 🛖 -houses 🏘️ -derelict house 🏚️ -house 🏠 -house with garden 🏡 -office building 🏢 -Japanese post office 🏣 -post office 🏤 -hospital 🏥 -bank 🏦 -hotel 🏨 -love hotel 🏩 -convenience store 🏪 -school 🏫 -department store 🏬 -factory 🏭 -Japanese castle 🏯 -castle 🏰 -wedding 💒 -Tokyo tower 🗼 -Statue of Liberty 🗽 -church ⛪ -mosque 🕌 -hindu temple 🛕 -synagogue 🕍 -shinto shrine ⛩️ -kaaba 🕋 -fountain ⛲ -tent ⛺ -foggy 🌁 -night with stars 🌃 -cityscape 🏙️ -sunrise over mountains 🌄 -sunrise 🌅 -cityscape at dusk 🌆 -sunset 🌇 -bridge at night 🌉 -hot springs ♨️ -carousel horse 🎠 -ferris wheel 🎡 -roller coaster 🎢 -barber pole 💈 -circus tent 🎪 -locomotive 🚂 -railway car 🚃 -high-speed train 🚄 -bullet train 🚅 -train 🚆 -metro 🚇 -light rail 🚈 -station 🚉 -tram 🚊 -monorail 🚝 -mountain railway 🚞 -tram car 🚋 -bus 🚌 -oncoming bus 🚍 -trolleybus 🚎 -minibus 🚐 -ambulance 🚑 -fire engine 🚒 -police car 🚓 -oncoming police car 🚔 -taxi 🚕 -oncoming taxi 🚖 -automobile 🚗 -oncoming automobile 🚘 -sport utility vehicle 🚙 -pickup truck 🛻 -delivery truck 🚚 -articulated lorry 🚛 -tractor 🚜 -racing car 🏎️ -motorcycle 🏍️ -motor scooter 🛵 -manual wheelchair 🦽 -motorized wheelchair 🦼 -auto rickshaw 🛺 -bicycle 🚲 -kick scooter 🛴 -skateboard 🛹 -roller skate 🛼 -bus stop 🚏 -motorway 🛣️ -railway track 🛤️ -oil drum 🛢️ -fuel pump ⛽ -police car light 🚨 -horizontal traffic light 🚥 -vertical traffic light 🚦 -stop sign 🛑 -construction 🚧 -anchor ⚓ -sailboat ⛵ -canoe 🛶 -speedboat 🚤 -passenger ship 🛳️ -ferry ⛴️ -motor boat 🛥️ -ship 🚢 -airplane ✈️ -small airplane 🛩️ -airplane departure 🛫 -airplane arrival 🛬 -parachute 🪂 -seat 💺 -helicopter 🚁 -suspension railway 🚟 -mountain cableway 🚠 -aerial tramway 🚡 -satellite 🛰️ -rocket 🚀 -flying saucer 🛸 -bellhop bell 🛎️ -luggage 🧳 -hourglass done ⌛ -hourglass not done ⏳ -watch ⌚ -alarm clock ⏰ -stopwatch ⏱️ -timer clock ⏲️ -mantelpiece clock 🕰️ -twelve o’clock 🕛 -twelve-thirty 🕧 -one o’clock 🕐 -one-thirty 🕜 -two o’clock 🕑 -two-thirty 🕝 -three o’clock 🕒 -three-thirty 🕞 -four o’clock 🕓 -four-thirty 🕟 -five o’clock 🕔 -five-thirty 🕠 -six o’clock 🕕 -six-thirty 🕡 -seven o’clock 🕖 -seven-thirty 🕢 -eight o’clock 🕗 -eight-thirty 🕣 -nine o’clock 🕘 -nine-thirty 🕤 -ten o’clock 🕙 -ten-thirty 🕥 -eleven o’clock 🕚 -eleven-thirty 🕦 -new moon 🌑 -waxing crescent moon 🌒 -first quarter moon 🌓 -waxing gibbous moon 🌔 -full moon 🌕 -waning gibbous moon 🌖 -last quarter moon 🌗 -waning crescent moon 🌘 -crescent moon 🌙 -new moon face 🌚 -first quarter moon face 🌛 -last quarter moon face 🌜 -thermometer 🌡️ -sun ☀️ -full moon face 🌝 -sun with face 🌞 -ringed planet 🪐 -star ⭐ -glowing star 🌟 -shooting star 🌠 -milky way 🌌 -cloud ☁️ -sun behind cloud ⛅ -cloud with lightning and rain ⛈️ -sun behind small cloud 🌤️ -sun behind large cloud 🌥️ -sun behind rain cloud 🌦️ -cloud with rain 🌧️ -cloud with snow 🌨️ -cloud with lightning 🌩️ -tornado 🌪️ -fog 🌫️ -wind face 🌬️ -cyclone 🌀 -rainbow 🌈 -closed umbrella 🌂 -umbrella ☂️ -umbrella with rain drops ☔ -umbrella on ground ⛱️ -high voltage ⚡ -snowflake ❄️ -snowman ☃️ -snowman without snow ⛄ -comet ☄️ -fire 🔥 -droplet 💧 -water wave 🌊 -jack-o-lantern 🎃 -Christmas tree 🎄 -fireworks 🎆 -sparkler 🎇 -firecracker 🧨 -sparkles ✨ -balloon 🎈 -party popper 🎉 -confetti ball 🎊 -tanabata tree 🎋 -pine decoration 🎍 -Japanese dolls 🎎 -carp streamer 🎏 -wind chime 🎐 -moon viewing ceremony 🎑 -red envelope 🧧 -ribbon 🎀 -wrapped gift 🎁 -reminder ribbon 🎗️ -admission tickets 🎟️ -ticket 🎫 -military medal 🎖️ -trophy 🏆 -sports medal 🏅 -1st place medal 🥇 -2nd place medal 🥈 -3rd place medal 🥉 -soccer ball ⚽ -baseball ⚾ -softball 🥎 -basketball 🏀 -volleyball 🏐 -american football 🏈 -rugby football 🏉 -tennis 🎾 -flying disc 🥏 -bowling 🎳 -cricket game 🏏 -field hockey 🏑 -ice hockey 🏒 -lacrosse 🥍 -ping pong 🏓 -badminton 🏸 -boxing glove 🥊 -martial arts uniform 🥋 -goal net 🥅 -flag in hole ⛳ -ice skate ⛸️ -fishing pole 🎣 -diving mask 🤿 -running shirt 🎽 -skis 🎿 -sled 🛷 -curling stone 🥌 -bullseye 🎯 -yo-yo 🪀 -kite 🪁 -pool 8 ball 🎱 -crystal ball 🔮 -magic wand 🪄 -nazar amulet 🧿 -video game 🎮 -joystick 🕹️ -slot machine 🎰 -game die 🎲 -puzzle piece 🧩 -teddy bear 🧸 -piñata 🪅 -nesting dolls 🪆 -spade suit ♠️ -heart suit ♥️ -diamond suit ♦️ -club suit ♣️ -chess pawn ♟️ -joker 🃏 -mahjong red dragon 🀄 -flower playing cards 🎴 -performing arts 🎭 -framed picture 🖼️ -artist palette 🎨 -thread 🧵 -sewing needle 🪡 -yarn 🧶 -knot 🪢 -glasses 👓 -sunglasses 🕶️ -goggles 🥽 -lab coat 🥼 -safety vest 🦺 -necktie 👔 -t-shirt 👕 -jeans 👖 -scarf 🧣 -gloves 🧤 -coat 🧥 -socks 🧦 -dress 👗 -kimono 👘 -sari 🥻 -one-piece swimsuit 🩱 -briefs 🩲 -shorts 🩳 -bikini 👙 -woman’s clothes 👚 -purse 👛 -handbag 👜 -clutch bag 👝 -shopping bags 🛍️ -backpack 🎒 -thong sandal 🩴 -man’s shoe 👞 -running shoe 👟 -hiking boot 🥾 -flat shoe 🥿 -high-heeled shoe 👠 -woman’s sandal 👡 -ballet shoes 🩰 -woman’s boot 👢 -crown 👑 -woman’s hat 👒 -top hat 🎩 -graduation cap 🎓 -billed cap 🧢 -military helmet 🪖 -rescue worker’s helmet ⛑️ -prayer beads 📿 -lipstick 💄 -ring 💍 -gem stone 💎 -muted speaker 🔇 -speaker low volume 🔈 -speaker medium volume 🔉 -speaker high volume 🔊 -loudspeaker 📢 -megaphone 📣 -postal horn 📯 -bell 🔔 -bell with slash 🔕 -musical score 🎼 -musical note 🎵 -musical notes 🎶 -studio microphone 🎙️ -level slider 🎚️ -control knobs 🎛️ -microphone 🎤 -headphone 🎧 -radio 📻 -saxophone 🎷 -accordion 🪗 -guitar 🎸 -musical keyboard 🎹 -trumpet 🎺 -violin 🎻 -banjo 🪕 -drum 🥁 -long drum 🪘 -mobile phone 📱 -mobile phone with arrow 📲 -telephone ☎️ -telephone receiver 📞 -pager 📟 -fax machine 📠 -battery 🔋 -electric plug 🔌 -laptop 💻 -desktop computer 🖥️ -printer 🖨️ -keyboard ⌨️ -computer mouse 🖱️ -trackball 🖲️ -computer disk 💽 -floppy disk 💾 -optical disk 💿 -dvd 📀 -abacus 🧮 -movie camera 🎥 -film frames 🎞️ -film projector 📽️ -clapper board 🎬 -television 📺 -camera 📷 -camera with flash 📸 -video camera 📹 -videocassette 📼 -magnifying glass tilted left 🔍 -magnifying glass tilted right 🔎 -candle 🕯️ -light bulb 💡 -flashlight 🔦 -red paper lantern 🏮 -diya lamp 🪔 -notebook with decorative cover 📔 -closed book 📕 -open book 📖 -green book 📗 -blue book 📘 -orange book 📙 -books 📚 -notebook 📓 -ledger 📒 -page with curl 📃 -scroll 📜 -page facing up 📄 -newspaper 📰 -rolled-up newspaper 🗞️ -bookmark tabs 📑 -bookmark 🔖 -label 🏷️ -money bag 💰 -coin 🪙 -yen banknote 💴 -dollar banknote 💵 -euro banknote 💶 -pound banknote 💷 -money with wings 💸 -credit card 💳 -receipt 🧾 -chart increasing with yen 💹 -envelope ✉️ -e-mail 📧 -incoming envelope 📨 -envelope with arrow 📩 -outbox tray 📤 -inbox tray 📥 -package 📦 -closed mailbox with raised flag 📫 -closed mailbox with lowered flag 📪 -open mailbox with raised flag 📬 -open mailbox with lowered flag 📭 -postbox 📮 -ballot box with ballot 🗳️ -pencil ✏️ -black nib ✒️ -fountain pen 🖋️ -pen 🖊️ -paintbrush 🖌️ -crayon 🖍️ -memo 📝 -briefcase 💼 -file folder 📁 -open file folder 📂 -card index dividers 🗂️ -calendar 📅 -tear-off calendar 📆 -spiral notepad 🗒️ -spiral calendar 🗓️ -card index 📇 -chart increasing 📈 -chart decreasing 📉 -bar chart 📊 -clipboard 📋 -pushpin 📌 -round pushpin 📍 -paperclip 📎 -linked paperclips 🖇️ -straight ruler 📏 -triangular ruler 📐 -scissors ✂️ -card file box 🗃️ -file cabinet 🗄️ -wastebasket 🗑️ -locked 🔒 -unlocked 🔓 -locked with pen 🔏 -locked with key 🔐 -key 🔑 -old key 🗝️ -hammer 🔨 -axe 🪓 -pick ⛏️ -hammer and pick ⚒️ -hammer and wrench 🛠️ -dagger 🗡️ -crossed swords ⚔️ -water pistol 🔫 -boomerang 🪃 -bow and arrow 🏹 -shield 🛡️ -carpentry saw 🪚 -wrench 🔧 -screwdriver 🪛 -nut and bolt 🔩 -gear ⚙️ -clamp 🗜️ -balance scale ⚖️ -white cane 🦯 -link 🔗 -chains ⛓️ -hook 🪝 -toolbox 🧰 -magnet 🧲 -ladder 🪜 -alembic ⚗️ -test tube 🧪 -petri dish 🧫 -dna 🧬 -microscope 🔬 -telescope 🔭 -satellite antenna 📡 -syringe 💉 -drop of blood 🩸 -pill 💊 -adhesive bandage 🩹 -stethoscope 🩺 -door 🚪 -elevator 🛗 -mirror 🪞 -window 🪟 -bed 🛏️ -couch and lamp 🛋️ -chair 🪑 -toilet 🚽 -plunger 🪠 -shower 🚿 -bathtub 🛁 -mouse trap 🪤 -razor 🪒 -lotion bottle 🧴 -safety pin 🧷 -broom 🧹 -basket 🧺 -roll of paper 🧻 -bucket 🪣 -soap 🧼 -toothbrush 🪥 -sponge 🧽 -fire extinguisher 🧯 -shopping cart 🛒 -cigarette 🚬 -coffin ⚰️ -headstone 🪦 -funeral urn ⚱️ -moai 🗿 -placard 🪧 -ATM sign 🏧 -litter in bin sign 🚮 -potable water 🚰 -wheelchair symbol ♿ -men’s room 🚹 -women’s room 🚺 -restroom 🚻 -baby symbol 🚼 -water closet 🚾 -passport control 🛂 -customs 🛃 -baggage claim 🛄 -left luggage 🛅 -warning ⚠️ -children crossing 🚸 -no entry ⛔ -prohibited 🚫 -no bicycles 🚳 -no smoking 🚭 -no littering 🚯 -non-potable water 🚱 -no pedestrians 🚷 -no mobile phones 📵 -no one under eighteen 🔞 -radioactive ☢️ -biohazard ☣️ -up arrow ⬆️ -up-right arrow ↗️ -right arrow ➡️ -down-right arrow ↘️ -down arrow ⬇️ -down-left arrow ↙️ -left arrow ⬅️ -up-left arrow ↖️ -up-down arrow ↕️ -left-right arrow ↔️ -right arrow curving left ↩️ -left arrow curving right ↪️ -right arrow curving up ⤴️ -right arrow curving down ⤵️ -clockwise vertical arrows 🔃 -counterclockwise arrows button 🔄 -BACK arrow 🔙 -END arrow 🔚 -ON! arrow 🔛 -SOON arrow 🔜 -TOP arrow 🔝 -place of worship 🛐 -atom symbol ⚛️ -om 🕉️ -star of David ✡️ -wheel of dharma ☸️ -yin yang ☯️ -latin cross ✝️ -orthodox cross ☦️ -star and crescent ☪️ -peace symbol ☮️ -menorah 🕎 -dotted six-pointed star 🔯 -Aries ♈ -Taurus ♉ -Gemini ♊ -Cancer ♋ -Leo ♌ -Virgo ♍ -Libra ♎ -Scorpio ♏ -Sagittarius ♐ -Capricorn ♑ -Aquarius ♒ -Pisces ♓ -Ophiuchus ⛎ -shuffle tracks button 🔀 -repeat button 🔁 -repeat single button 🔂 -play button ▶️ -fast-forward button ⏩ -next track button ⏭️ -play or pause button ⏯️ -reverse button ◀️ -fast reverse button ⏪ -last track button ⏮️ -upwards button 🔼 -fast up button ⏫ -downwards button 🔽 -fast down button ⏬ -pause button ⏸️ -stop button ⏹️ -record button ⏺️ -eject button ⏏️ -cinema 🎦 -dim button 🔅 -bright button 🔆 -antenna bars 📶 -vibration mode 📳 -mobile phone off 📴 -female sign ♀️ -male sign ♂️ -transgender symbol ⚧️ -multiply ✖️ -plus ➕ -minus ➖ -divide ➗ -infinity ♾️ -double exclamation mark ‼️ -exclamation question mark ⁉️ -red question mark ❓ -white question mark ❔ -white exclamation mark ❕ -red exclamation mark ❗ -wavy dash 〰️ -currency exchange 💱 -heavy dollar sign 💲 -medical symbol ⚕️ -recycling symbol ♻️ -fleur-de-lis ⚜️ -trident emblem 🔱 -name badge 📛 -Japanese symbol for beginner 🔰 -hollow red circle ⭕ -check mark button ✅ -check box with check ☑️ -check mark ✔️ -cross mark ❌ -cross mark button ❎ -curly loop ➰ -double curly loop ➿ -part alternation mark 〽️ -eight-spoked asterisk ✳️ -eight-pointed star ✴️ -sparkle ❇️ -copyright ©️ -registered ®️ -trade mark ™️ -keycap: # #️⃣ -keycap: * *️⃣ -keycap: 0 0️⃣ -keycap: 1 1️⃣ -keycap: 2 2️⃣ -keycap: 3 3️⃣ -keycap: 4 4️⃣ -keycap: 5 5️⃣ -keycap: 6 6️⃣ -keycap: 7 7️⃣ -keycap: 8 8️⃣ -keycap: 9 9️⃣ -keycap: 10 🔟 -input latin uppercase 🔠 -input latin lowercase 🔡 -input numbers 🔢 -input symbols 🔣 -input latin letters 🔤 -A button (blood type) 🅰️ -AB button (blood type) 🆎 -B button (blood type) 🅱️ -CL button 🆑 -COOL button 🆒 -FREE button 🆓 -information ℹ️ -ID button 🆔 -circled M Ⓜ️ -NEW button 🆕 -NG button 🆖 -O button (blood type) 🅾️ -OK button 🆗 -P button 🅿️ -SOS button 🆘 -UP! button 🆙 -VS button 🆚 -Japanese “here” button 🈁 -Japanese “service charge” button 🈂️ -Japanese “monthly amount” button 🈷️ -Japanese “not free of charge” butto 🈶 -Japanese “reserved” button 🈯 -Japanese “bargain” button 🉐 -Japanese “discount” button 🈹 -Japanese “free of charge” button 🈚 -Japanese “prohibited” button 🈲 -Japanese “acceptable” button 🉑 -Japanese “application” button 🈸 -Japanese “passing grade” button 🈴 -Japanese “vacancy” button 🈳 -Japanese “congratulations” button ㊗️ -Japanese “secret” button ㊙️ -Japanese “open for business” button 🈺 -Japanese “no vacancy” button 🈵 -red circle 🔴 -orange circle 🟠 -yellow circle 🟡 -green circle 🟢 -blue circle 🔵 -purple circle 🟣 -brown circle 🟤 -black circle ⚫ -white circle ⚪ -red square 🟥 -orange square 🟧 -yellow square 🟨 -green square 🟩 -blue square 🟦 -purple square 🟪 -brown square 🟫 -black large square ⬛ -white large square ⬜ -black medium square ◼️ -white medium square ◻️ -black medium-small square ◾ -white medium-small square ◽ -black small square ▪️ -white small square ▫️ -large orange diamond 🔶 -large blue diamond 🔷 -small orange diamond 🔸 -small blue diamond 🔹 -red triangle pointed up 🔺 -red triangle pointed down 🔻 -diamond with a dot 💠 -radio button 🔘 -white square button 🔳 -black square button 🔲 -chequered flag 🏁 -triangular flag 🚩 -crossed flags 🎌 -black flag 🏴 -white flag 🏳️ -rainbow flag 🏳️‍🌈 -transgender flag 🏳️‍⚧️ -pirate flag 🏴‍☠️ -flag: Ascension Island 🇦🇨 -flag: Andorra 🇦🇩 -flag: United Arab Emirates 🇦🇪 -flag: Afghanistan 🇦🇫 -flag: Antigua & Barbuda 🇦🇬 -flag: Anguilla 🇦🇮 -flag: Albania 🇦🇱 -flag: Armenia 🇦🇲 -flag: Angola 🇦🇴 -flag: Antarctica 🇦🇶 -flag: Argentina 🇦🇷 -flag: American Samoa 🇦🇸 -flag: Austria 🇦🇹 -flag: Australia 🇦🇺 -flag: Aruba 🇦🇼 -flag: Åland Islands 🇦🇽 -flag: Azerbaijan 🇦🇿 -flag: Bosnia & Herzegovina 🇧🇦 -flag: Barbados 🇧🇧 -flag: Bangladesh 🇧🇩 -flag: Belgium 🇧🇪 -flag: Burkina Faso 🇧🇫 -flag: Bulgaria 🇧🇬 -flag: Bahrain 🇧🇭 -flag: Burundi 🇧🇮 -flag: Benin 🇧🇯 -flag: St. Barthélemy 🇧🇱 -flag: Bermuda 🇧🇲 -flag: Brunei 🇧🇳 -flag: Bolivia 🇧🇴 -flag: Caribbean Netherlands 🇧🇶 -flag: Brazil 🇧🇷 -flag: Bahamas 🇧🇸 -flag: Bhutan 🇧🇹 -flag: Bouvet Island 🇧🇻 -flag: Botswana 🇧🇼 -flag: Belarus 🇧🇾 -flag: Belize 🇧🇿 -flag: Canada 🇨🇦 -flag: Cocos (Keeling) Islands 🇨🇨 -flag: Congo - Kinshasa 🇨🇩 -flag: Central African Republic 🇨🇫 -flag: Congo - Brazzaville 🇨🇬 -flag: Switzerland 🇨🇭 -flag: Côte d’Ivoire 🇨🇮 -flag: Cook Islands 🇨🇰 -flag: Chile 🇨🇱 -flag: Cameroon 🇨🇲 -flag: China 🇨🇳 -flag: Colombia 🇨🇴 -flag: Clipperton Island 🇨🇵 -flag: Costa Rica 🇨🇷 -flag: Cuba 🇨🇺 -flag: Cape Verde 🇨🇻 -flag: Curaçao 🇨🇼 -flag: Christmas Island 🇨🇽 -flag: Cyprus 🇨🇾 -flag: Czechia 🇨🇿 -flag: Germany 🇩🇪 -flag: Diego Garcia 🇩🇬 -flag: Djibouti 🇩🇯 -flag: Denmark 🇩🇰 -flag: Dominica 🇩🇲 -flag: Dominican Republic 🇩🇴 -flag: Algeria 🇩🇿 -flag: Ceuta & Melilla 🇪🇦 -flag: Ecuador 🇪🇨 -flag: Estonia 🇪🇪 -flag: Egypt 🇪🇬 -flag: Western Sahara 🇪🇭 -flag: Eritrea 🇪🇷 -flag: Spain 🇪🇸 -flag: Ethiopia 🇪🇹 -flag: European Union 🇪🇺 -flag: Finland 🇫🇮 -flag: Fiji 🇫🇯 -flag: Falkland Islands 🇫🇰 -flag: Micronesia 🇫🇲 -flag: Faroe Islands 🇫🇴 -flag: France 🇫🇷 -flag: Gabon 🇬🇦 -flag: United Kingdom 🇬🇧 -flag: Grenada 🇬🇩 -flag: Georgia 🇬🇪 -flag: French Guiana 🇬🇫 -flag: Guernsey 🇬🇬 -flag: Ghana 🇬🇭 -flag: Gibraltar 🇬🇮 -flag: Greenland 🇬🇱 -flag: Gambia 🇬🇲 -flag: Guinea 🇬🇳 -flag: Guadeloupe 🇬🇵 -flag: Equatorial Guinea 🇬🇶 -flag: Greece 🇬🇷 -flag: South Georgia & South Sandwiclands 🇬🇸 -flag: Guatemala 🇬🇹 -flag: Guam 🇬🇺 -flag: Guinea-Bissau 🇬🇼 -flag: Guyana 🇬🇾 -flag: Hong Kong SAR China 🇭🇰 -flag: Heard & McDonald Islands 🇭🇲 -flag: Honduras 🇭🇳 -flag: Croatia 🇭🇷 -flag: Haiti 🇭🇹 -flag: Hungary 🇭🇺 -flag: Canary Islands 🇮🇨 -flag: Indonesia 🇮🇩 -flag: Ireland 🇮🇪 -flag: Israel 🇮🇱 -flag: Isle of Man 🇮🇲 -flag: India 🇮🇳 -flag: British Indian Ocean Territor 🇮🇴 -flag: Iraq 🇮🇶 -flag: Iran 🇮🇷 -flag: Iceland 🇮🇸 -flag: Italy 🇮🇹 -flag: Jersey 🇯🇪 -flag: Jamaica 🇯🇲 -flag: Jordan 🇯🇴 -flag: Japan 🇯🇵 -flag: Kenya 🇰🇪 -flag: Kyrgyzstan 🇰🇬 -flag: Cambodia 🇰🇭 -flag: Kiribati 🇰🇮 -flag: Comoros 🇰🇲 -flag: St. Kitts & Nevis 🇰🇳 -flag: North Korea 🇰🇵 -flag: South Korea 🇰🇷 -flag: Kuwait 🇰🇼 -flag: Cayman Islands 🇰🇾 -flag: Kazakhstan 🇰🇿 -flag: Laos 🇱🇦 -flag: Lebanon 🇱🇧 -flag: St. Lucia 🇱🇨 -flag: Liechtenstein 🇱🇮 -flag: Sri Lanka 🇱🇰 -flag: Liberia 🇱🇷 -flag: Lesotho 🇱🇸 -flag: Lithuania 🇱🇹 -flag: Luxembourg 🇱🇺 -flag: Latvia 🇱🇻 -flag: Libya 🇱🇾 -flag: Morocco 🇲🇦 -flag: Monaco 🇲🇨 -flag: Moldova 🇲🇩 -flag: Montenegro 🇲🇪 -flag: St. Martin 🇲🇫 -flag: Madagascar 🇲🇬 -flag: Marshall Islands 🇲🇭 -flag: North Macedonia 🇲🇰 -flag: Mali 🇲🇱 -flag: Myanmar (Burma) 🇲🇲 -flag: Mongolia 🇲🇳 -flag: Macao SAR China 🇲🇴 -flag: Northern Mariana Islands 🇲🇵 -flag: Martinique 🇲🇶 -flag: Mauritania 🇲🇷 -flag: Montserrat 🇲🇸 -flag: Malta 🇲🇹 -flag: Mauritius 🇲🇺 -flag: Maldives 🇲🇻 -flag: Malawi 🇲🇼 -flag: Mexico 🇲🇽 -flag: Malaysia 🇲🇾 -flag: Mozambique 🇲🇿 -flag: Namibia 🇳🇦 -flag: New Caledonia 🇳🇨 -flag: Niger 🇳🇪 -flag: Norfolk Island 🇳🇫 -flag: Nigeria 🇳🇬 -flag: Nicaragua 🇳🇮 -flag: Netherlands 🇳🇱 -flag: Norway 🇳🇴 -flag: Nepal 🇳🇵 -flag: Nauru 🇳🇷 -flag: Niue 🇳🇺 -flag: New Zealand 🇳🇿 -flag: Oman 🇴🇲 -flag: Panama 🇵🇦 -flag: Peru 🇵🇪 -flag: French Polynesia 🇵🇫 -flag: Papua New Guinea 🇵🇬 -flag: Philippines 🇵🇭 -flag: Pakistan 🇵🇰 -flag: Poland 🇵🇱 -flag: St. Pierre & Miquelon 🇵🇲 -flag: Pitcairn Islands 🇵🇳 -flag: Puerto Rico 🇵🇷 -flag: Palestinian Territories 🇵🇸 -flag: Portugal 🇵🇹 -flag: Palau 🇵🇼 -flag: Paraguay 🇵🇾 -flag: Qatar 🇶🇦 -flag: Réunion 🇷🇪 -flag: Romania 🇷🇴 -flag: Serbia 🇷🇸 -flag: Russia 🇷🇺 -flag: Rwanda 🇷🇼 -flag: Saudi Arabia 🇸🇦 -flag: Solomon Islands 🇸🇧 -flag: Seychelles 🇸🇨 -flag: Sudan 🇸🇩 -flag: Sweden 🇸🇪 -flag: Singapore 🇸🇬 -flag: St. Helena 🇸🇭 -flag: Slovenia 🇸🇮 -flag: Svalbard & Jan Mayen 🇸🇯 -flag: Slovakia 🇸🇰 -flag: Sierra Leone 🇸🇱 -flag: San Marino 🇸🇲 -flag: Senegal 🇸🇳 -flag: Somalia 🇸🇴 -flag: Suriname 🇸🇷 -flag: South Sudan 🇸🇸 -flag: São Tomé & Príncipe 🇸🇹 -flag: El Salvador 🇸🇻 -flag: Sint Maarten 🇸🇽 -flag: Syria 🇸🇾 -flag: Eswatini 🇸🇿 -flag: Tristan da Cunha 🇹🇦 -flag: Turks & Caicos Islands 🇹🇨 -flag: Chad 🇹🇩 -flag: French Southern Territories 🇹🇫 -flag: Togo 🇹🇬 -flag: Thailand 🇹🇭 -flag: Tajikistan 🇹🇯 -flag: Tokelau 🇹🇰 -flag: Timor-Leste 🇹🇱 -flag: Turkmenistan 🇹🇲 -flag: Tunisia 🇹🇳 -flag: Tonga 🇹🇴 -flag: Turkey 🇹🇷 -flag: Trinidad & Tobago 🇹🇹 -flag: Tuvalu 🇹🇻 -flag: Taiwan 🇹🇼 -flag: Tanzania 🇹🇿 -flag: Ukraine 🇺🇦 -flag: Uganda 🇺🇬 -flag: U.S. Outlying Islands 🇺🇲 -flag: United Nations 🇺🇳 -flag: United States 🇺🇸 -flag: Uruguay 🇺🇾 -flag: Uzbekistan 🇺🇿 -flag: Vatican City 🇻🇦 -flag: St. Vincent & Grenadines 🇻🇨 -flag: Venezuela 🇻🇪 -flag: British Virgin Islands 🇻🇬 -flag: U.S. Virgin Islands 🇻🇮 -flag: Vietnam 🇻🇳 -flag: Vanuatu 🇻🇺 -flag: Wallis & Futuna 🇼🇫 -flag: Samoa 🇼🇸 -flag: Kosovo 🇽🇰 -flag: Yemen 🇾🇪 -flag: Mayotte 🇾🇹 -flag: South Africa 🇿🇦 -flag: Zambia 🇿🇲 -flag: Zimbabwe 🇿🇼 -flag: England 🏴󠁧󠁢󠁥󠁮󠁧󠁿 -flag: Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿 -flag: Wales 🏴󠁧󠁢󠁷󠁬󠁳󠁿 +### DATA ### +😀 grinning face face smile happy joy :D grin +😃 grinning face with big eyes face happy joy haha :D :) smile funny +😄 grinning face with smiling eyes face happy joy funny haha laugh like :D :) smile +😁 beaming face with smiling eyes face happy smile joy kawaii +😆 grinning squinting face happy joy lol satisfied haha face glad XD laugh +😅 grinning face with sweat face hot happy laugh sweat smile relief +🤣 rolling on the floor laughing face rolling floor laughing lol haha rofl +😂 face with tears of joy face cry tears weep happy happytears haha +🙂 slightly smiling face face smile +🙃 upside down face face flipped silly smile +😉 winking face face happy mischievous secret ;) smile eye +😊 smiling face with smiling eyes face smile happy flushed crush embarrassed shy joy +😇 smiling face with halo face angel heaven halo +🥰 smiling face with hearts face love like affection valentines infatuation crush hearts adore +😍 smiling face with heart eyes face love like affection valentines infatuation crush heart +🤩 star struck face smile starry eyes grinning +😘 face blowing a kiss face love like affection valentines infatuation kiss +😗 kissing face love like face 3 valentines infatuation kiss +☺️ smiling face face blush massage happiness +😚 kissing face with closed eyes face love like affection valentines infatuation kiss +😙 kissing face with smiling eyes face affection valentines infatuation kiss +😋 face savoring food happy joy tongue smile face silly yummy nom delicious savouring +😛 face with tongue face prank childish playful mischievous smile tongue +😜 winking face with tongue face prank childish playful mischievous smile wink tongue +🤪 zany face face goofy crazy +😝 squinting face with tongue face prank playful mischievous smile tongue +🤑 money mouth face face rich dollar money +🤗 hugging face face smile hug +🤭 face with hand over mouth face whoops shock surprise +🤫 shushing face face quiet shhh +🤔 thinking face face hmmm think consider +🤐 zipper mouth face face sealed zipper secret +🤨 face with raised eyebrow face distrust scepticism disapproval disbelief surprise +😐 neutral face indifference meh :| neutral +😑 expressionless face face indifferent - - meh deadpan +😶 face without mouth face hellokitty +😏 smirking face face smile mean prank smug sarcasm +😒 unamused face indifference bored straight face serious sarcasm unimpressed skeptical dubious side eye +🙄 face with rolling eyes face eyeroll frustrated +😬 grimacing face face grimace teeth +🤥 lying face face lie pinocchio +😌 relieved face face relaxed phew massage happiness +😔 pensive face face sad depressed upset +😪 sleepy face face tired rest nap +🤤 drooling face face +😴 sleeping face face tired sleepy night zzz +😷 face with medical mask face sick ill disease +🤒 face with thermometer sick temperature thermometer cold fever +🤕 face with head bandage injured clumsy bandage hurt +🤢 nauseated face face vomit gross green sick throw up ill +🤮 face vomiting face sick +🤧 sneezing face face gesundheit sneeze sick allergy +🥵 hot face face feverish heat red sweating +🥶 cold face face blue freezing frozen frostbite icicles +🥴 woozy face face dizzy intoxicated tipsy wavy +😵 dizzy face spent unconscious xox dizzy +🤯 exploding head face shocked mind blown +🤠 cowboy hat face face cowgirl hat +🥳 partying face face celebration woohoo +😎 smiling face with sunglasses face cool smile summer beach sunglass +🤓 nerd face face nerdy geek dork +🧐 face with monocle face stuffy wealthy +😕 confused face face indifference huh weird hmmm :/ +😟 worried face face concern nervous :( +🙁 slightly frowning face face frowning disappointed sad upset +☹️ frowning face face sad upset frown +😮 face with open mouth face surprise impressed wow whoa :O +😯 hushed face face woo shh +😲 astonished face face xox surprised poisoned +😳 flushed face face blush shy flattered +🥺 pleading face face begging mercy +😦 frowning face with open mouth face aw what +😧 anguished face face stunned nervous +😨 fearful face face scared terrified nervous oops huh +😰 anxious face with sweat face nervous sweat +😥 sad but relieved face face phew sweat nervous +😢 crying face face tears sad depressed upset :'( +😭 loudly crying face face cry tears sad upset depressed +😱 face screaming in fear face munch scared omg +😖 confounded face face confused sick unwell oops :S +😣 persevering face face sick no upset oops +😞 disappointed face face sad upset depressed :( +😓 downcast face with sweat face hot sad tired exercise +😩 weary face face tired sleepy sad frustrated upset +😫 tired face sick whine upset frustrated +🥱 yawning face tired sleepy +😤 face with steam from nose face gas phew proud pride +😡 pouting face angry mad hate despise +😠 angry face mad face annoyed frustrated +🤬 face with symbols on mouth face swearing cursing cussing profanity expletive +😈 smiling face with horns devil horns +👿 angry face with horns devil angry horns +💀 skull dead skeleton creepy death +☠️ skull and crossbones poison danger deadly scary death pirate evil +💩 pile of poo hankey shitface fail turd shit +🤡 clown face face +👹 ogre monster red mask halloween scary creepy devil demon japanese ogre +👺 goblin red evil mask monster scary creepy japanese goblin +👻 ghost halloween spooky scary +👽 alien UFO paul weird outer space +👾 alien monster game arcade play +🤖 robot computer machine bot +😺 grinning cat animal cats happy smile +😸 grinning cat with smiling eyes animal cats smile +😹 cat with tears of joy animal cats haha happy tears +😻 smiling cat with heart eyes animal love like affection cats valentines heart +😼 cat with wry smile animal cats smirk +😽 kissing cat animal cats kiss +🙀 weary cat animal cats munch scared scream +😿 crying cat animal tears weep sad cats upset cry +😾 pouting cat animal cats +🙈 see no evil monkey monkey animal nature haha +🙉 hear no evil monkey animal monkey nature +🙊 speak no evil monkey monkey animal nature omg +💋 kiss mark face lips love like affection valentines +💌 love letter email like affection envelope valentines +💘 heart with arrow love like heart affection valentines +💝 heart with ribbon love valentines +💖 sparkling heart love like affection valentines +💗 growing heart like love affection valentines pink +💓 beating heart love like affection valentines pink heart +💞 revolving hearts love like affection valentines +💕 two hearts love like affection valentines heart +💟 heart decoration purple-square love like +❣️ heart exclamation decoration love +💔 broken heart sad sorry break heart heartbreak +❤️ red heart love like valentines +🧡 orange heart love like affection valentines +💛 yellow heart love like affection valentines +💚 green heart love like affection valentines +💙 blue heart love like affection valentines +💜 purple heart love like affection valentines +🤎 brown heart coffee +🖤 black heart evil +🤍 white heart pure +💯 hundred points score perfect numbers century exam quiz test pass hundred +💢 anger symbol angry mad +💥 collision bomb explode explosion collision blown +💫 dizzy star sparkle shoot magic +💦 sweat droplets water drip oops +💨 dashing away wind air fast shoo fart smoke puff +🕳️ hole embarrassing +💣 bomb boom explode explosion terrorism +💬 speech balloon bubble words message talk chatting +👁️‍🗨️ eye in speech bubble info +🗨️ left speech bubble words message talk chatting +🗯️ right anger bubble caption speech thinking mad +💭 thought balloon bubble cloud speech thinking dream +💤 zzz sleepy tired dream +👋 waving hand hands gesture goodbye solong farewell hello hi palm +🤚 raised back of hand fingers raised backhand +🖐️ hand with fingers splayed hand fingers palm +✋ raised hand fingers stop highfive palm ban +🖖 vulcan salute hand fingers spock star trek +👌 ok hand fingers limbs perfect ok okay +🤏 pinching hand tiny small size +✌️ victory hand fingers ohyeah hand peace victory two +🤞 crossed fingers good lucky +🤟 love you gesture hand fingers gesture +🤘 sign of the horns hand fingers evil eye sign of horns rock on +🤙 call me hand hands gesture shaka +👈 backhand index pointing left direction fingers hand left +👉 backhand index pointing right fingers hand direction right +👆 backhand index pointing up fingers hand direction up +🖕 middle finger hand fingers rude middle flipping +👇 backhand index pointing down fingers hand direction down +☝️ index pointing up hand fingers direction up +👍 thumbs up thumbsup yes awesome good agree accept cool hand like +1 +👎 thumbs down thumbsdown no dislike hand -1 +✊ raised fist fingers hand grasp +👊 oncoming fist angry violence fist hit attack hand +🤛 left facing fist hand fistbump +🤜 right facing fist hand fistbump +👏 clapping hands hands praise applause congrats yay +🙌 raising hands gesture hooray yea celebration hands +👐 open hands fingers butterfly hands open +🤲 palms up together hands gesture cupped prayer +🤝 handshake agreement shake +🙏 folded hands please hope wish namaste highfive pray +✍️ writing hand lower left ballpoint pen stationery write compose +💅 nail polish beauty manicure finger fashion nail +🤳 selfie camera phone +💪 flexed biceps arm flex hand summer strong biceps +🦾 mechanical arm accessibility +🦿 mechanical leg accessibility +🦵 leg kick limb +🦶 foot kick stomp +👂 ear face hear sound listen +🦻 ear with hearing aid accessibility +👃 nose smell sniff +🧠 brain smart intelligent +🦷 tooth teeth dentist +🦴 bone skeleton +👀 eyes look watch stalk peek see +👁️ eye face look see watch stare +👅 tongue mouth playful +👄 mouth mouth kiss +👶 baby child boy girl toddler +🧒 child gender-neutral young +👦 boy man male guy teenager +👧 girl female woman teenager +🧑 person gender-neutral person +👱 person blond hair hairstyle +👨 man mustache father dad guy classy sir moustache +🧔 man beard person bewhiskered +👨‍🦰 man red hair hairstyle +👨‍🦱 man curly hair hairstyle +👨‍🦳 man white hair old elder +👨‍🦲 man bald hairless +👩 woman female girls lady +👩‍🦰 woman red hair hairstyle +🧑‍🦰 person red hair hairstyle +👩‍🦱 woman curly hair hairstyle +🧑‍🦱 person curly hair hairstyle +👩‍🦳 woman white hair old elder +🧑‍🦳 person white hair elder old +👩‍🦲 woman bald hairless +🧑‍🦲 person bald hairless +👱‍♀️ woman blond hair woman female girl blonde person +👱‍♂️ man blond hair man male boy blonde guy person +🧓 older person human elder senior gender-neutral +👴 old man human male men old elder senior +👵 old woman human female women lady old elder senior +🙍 person frowning worried +🙍‍♂️ man frowning male boy man sad depressed discouraged unhappy +🙍‍♀️ woman frowning female girl woman sad depressed discouraged unhappy +🙎 person pouting upset +🙎‍♂️ man pouting male boy man +🙎‍♀️ woman pouting female girl woman +🙅 person gesturing no decline +🙅‍♂️ man gesturing no male boy man nope +🙅‍♀️ woman gesturing no female girl woman nope +🙆 person gesturing ok agree +🙆‍♂️ man gesturing ok men boy male blue human man +🙆‍♀️ woman gesturing ok women girl female pink human woman +💁 person tipping hand information +💁‍♂️ man tipping hand male boy man human information +💁‍♀️ woman tipping hand female girl woman human information +🙋 person raising hand question +🙋‍♂️ man raising hand male boy man +🙋‍♀️ woman raising hand female girl woman +🧏 deaf person accessibility +🧏‍♂️ deaf man accessibility +🧏‍♀️ deaf woman accessibility +🙇 person bowing respectiful +🙇‍♂️ man bowing man male boy +🙇‍♀️ woman bowing woman female girl +🤦 person facepalming disappointed +🤦‍♂️ man facepalming man male boy disbelief +🤦‍♀️ woman facepalming woman female girl disbelief +🤷 person shrugging regardless +🤷‍♂️ man shrugging man male boy confused indifferent doubt +🤷‍♀️ woman shrugging woman female girl confused indifferent doubt +🧑‍⚕️ health worker hospital +👨‍⚕️ man health worker doctor nurse therapist healthcare man human +👩‍⚕️ woman health worker doctor nurse therapist healthcare woman human +🧑‍🎓 student learn +👨‍🎓 man student graduate man human +👩‍🎓 woman student graduate woman human +🧑‍🏫 teacher professor +👨‍🏫 man teacher instructor professor man human +👩‍🏫 woman teacher instructor professor woman human +🧑‍⚖️ judge law +👨‍⚖️ man judge justice court man human +👩‍⚖️ woman judge justice court woman human +🧑‍🌾 farmer crops +👨‍🌾 man farmer rancher gardener man human +👩‍🌾 woman farmer rancher gardener woman human +🧑‍🍳 cook food kitchen culinary +👨‍🍳 man cook chef man human +👩‍🍳 woman cook chef woman human +🧑‍🔧 mechanic worker technician +👨‍🔧 man mechanic plumber man human wrench +👩‍🔧 woman mechanic plumber woman human wrench +🧑‍🏭 factory worker labor +👨‍🏭 man factory worker assembly industrial man human +👩‍🏭 woman factory worker assembly industrial woman human +🧑‍💼 office worker business +👨‍💼 man office worker business manager man human +👩‍💼 woman office worker business manager woman human +🧑‍🔬 scientist chemistry +👨‍🔬 man scientist biologist chemist engineer physicist man human +👩‍🔬 woman scientist biologist chemist engineer physicist woman human +🧑‍💻 technologist computer +👨‍💻 man technologist coder developer engineer programmer software man human laptop computer +👩‍💻 woman technologist coder developer engineer programmer software woman human laptop computer +🧑‍🎤 singer song artist performer +👨‍🎤 man singer rockstar entertainer man human +👩‍🎤 woman singer rockstar entertainer woman human +🧑‍🎨 artist painting draw creativity +👨‍🎨 man artist painter man human +👩‍🎨 woman artist painter woman human +🧑‍✈️ pilot fly plane airplane +👨‍✈️ man pilot aviator plane man human +👩‍✈️ woman pilot aviator plane woman human +🧑‍🚀 astronaut outerspace +👨‍🚀 man astronaut space rocket man human +👩‍🚀 woman astronaut space rocket woman human +🧑‍🚒 firefighter fire +👨‍🚒 man firefighter fireman man human +👩‍🚒 woman firefighter fireman woman human +👮 police officer cop +👮‍♂️ man police officer man police law legal enforcement arrest 911 +👮‍♀️ woman police officer woman police law legal enforcement arrest 911 female +🕵️ detective human spy detective +🕵️‍♂️ man detective crime +🕵️‍♀️ woman detective human spy detective female woman +💂 guard protect +💂‍♂️ man guard uk gb british male guy royal +💂‍♀️ woman guard uk gb british female royal woman +👷 construction worker labor build +👷‍♂️ man construction worker male human wip guy build construction worker labor +👷‍♀️ woman construction worker female human wip build construction worker labor woman +🤴 prince boy man male crown royal king +👸 princess girl woman female blond crown royal queen +👳 person wearing turban headdress +👳‍♂️ man wearing turban male indian hinduism arabs +👳‍♀️ woman wearing turban female indian hinduism arabs woman +👲 man with skullcap male boy chinese +🧕 woman with headscarf female hijab mantilla tichel +🤵 man in tuxedo couple marriage wedding groom +👰 bride with veil couple marriage wedding woman bride +🤰 pregnant woman baby +🤱 breast feeding nursing baby +👼 baby angel heaven wings halo +🎅 santa claus festival man male xmas father christmas +🤶 mrs claus woman female xmas mother christmas +🦸 superhero marvel +🦸‍♂️ man superhero man male good hero superpowers +🦸‍♀️ woman superhero woman female good heroine superpowers +🦹 supervillain marvel +🦹‍♂️ man supervillain man male evil bad criminal hero superpowers +🦹‍♀️ woman supervillain woman female evil bad criminal heroine superpowers +🧙 mage magic +🧙‍♂️ man mage man male mage sorcerer +🧙‍♀️ woman mage woman female mage witch +🧚 fairy wings magical +🧚‍♂️ man fairy man male +🧚‍♀️ woman fairy woman female +🧛 vampire blood twilight +🧛‍♂️ man vampire man male dracula +🧛‍♀️ woman vampire woman female +🧜 merperson sea +🧜‍♂️ merman man male triton +🧜‍♀️ mermaid woman female merwoman ariel +🧝 elf magical +🧝‍♂️ man elf man male +🧝‍♀️ woman elf woman female +🧞 genie magical wishes +🧞‍♂️ man genie man male +🧞‍♀️ woman genie woman female +🧟 zombie dead +🧟‍♂️ man zombie man male dracula undead walking dead +🧟‍♀️ woman zombie woman female undead walking dead +💆 person getting massage relax +💆‍♂️ man getting massage male boy man head +💆‍♀️ woman getting massage female girl woman head +💇 person getting haircut hairstyle +💇‍♂️ man getting haircut male boy man +💇‍♀️ woman getting haircut female girl woman +🚶 person walking move +🚶‍♂️ man walking human feet steps +🚶‍♀️ woman walking human feet steps woman female +🧍 person standing still +🧍‍♂️ man standing still +🧍‍♀️ woman standing still +🧎 person kneeling pray respectful +🧎‍♂️ man kneeling pray respectful +🧎‍♀️ woman kneeling respectful pray +🧑‍🦯 person with probing cane blind +👨‍🦯 man with probing cane blind +👩‍🦯 woman with probing cane blind +🧑‍🦼 person in motorized wheelchair disability accessibility +👨‍🦼 man in motorized wheelchair disability accessibility +👩‍🦼 woman in motorized wheelchair disability accessibility +🧑‍🦽 person in manual wheelchair disability accessibility +👨‍🦽 man in manual wheelchair disability accessibility +👩‍🦽 woman in manual wheelchair disability accessibility +🏃 person running move +🏃‍♂️ man running man walking exercise race running +🏃‍♀️ woman running woman walking exercise race running female +💃 woman dancing female girl woman fun +🕺 man dancing male boy fun dancer +🕴️ man in suit levitating suit business levitate hover jump +👯 people with bunny ears perform costume +👯‍♂️ men with bunny ears male bunny men boys +👯‍♀️ women with bunny ears female bunny women girls +🧖 person in steamy room relax spa +🧖‍♂️ man in steamy room male man spa steamroom sauna +🧖‍♀️ woman in steamy room female woman spa steamroom sauna +🧗 person climbing sport +🧗‍♂️ man climbing sports hobby man male rock +🧗‍♀️ woman climbing sports hobby woman female rock +🤺 person fencing sports fencing sword +🏇 horse racing animal betting competition gambling luck +⛷️ skier sports winter snow +🏂 snowboarder sports winter +🏌️ person golfing sports business +🏌️‍♂️ man golfing sport +🏌️‍♀️ woman golfing sports business woman female +🏄 person surfing sport sea +🏄‍♂️ man surfing sports ocean sea summer beach +🏄‍♀️ woman surfing sports ocean sea summer beach woman female +🚣 person rowing boat sport move +🚣‍♂️ man rowing boat sports hobby water ship +🚣‍♀️ woman rowing boat sports hobby water ship woman female +🏊 person swimming sport pool +🏊‍♂️ man swimming sports exercise human athlete water summer +🏊‍♀️ woman swimming sports exercise human athlete water summer woman female +⛹️ person bouncing ball sports human +⛹️‍♂️ man bouncing ball sport +⛹️‍♀️ woman bouncing ball sports human woman female +🏋️ person lifting weights sports training exercise +🏋️‍♂️ man lifting weights sport +🏋️‍♀️ woman lifting weights sports training exercise woman female +🚴 person biking sport move +🚴‍♂️ man biking sports bike exercise hipster +🚴‍♀️ woman biking sports bike exercise hipster woman female +🚵 person mountain biking sport move +🚵‍♂️ man mountain biking transportation sports human race bike +🚵‍♀️ woman mountain biking transportation sports human race bike woman female +🤸 person cartwheeling sport gymnastic +🤸‍♂️ man cartwheeling gymnastics +🤸‍♀️ woman cartwheeling gymnastics +🤼 people wrestling sport +🤼‍♂️ men wrestling sports wrestlers +🤼‍♀️ women wrestling sports wrestlers +🤽 person playing water polo sport +🤽‍♂️ man playing water polo sports pool +🤽‍♀️ woman playing water polo sports pool +🤾 person playing handball sport +🤾‍♂️ man playing handball sports +🤾‍♀️ woman playing handball sports +🤹 person juggling performance balance +🤹‍♂️ man juggling juggle balance skill multitask +🤹‍♀️ woman juggling juggle balance skill multitask +🧘 person in lotus position meditate +🧘‍♂️ man in lotus position man male meditation yoga serenity zen mindfulness +🧘‍♀️ woman in lotus position woman female meditation yoga serenity zen mindfulness +🛀 person taking bath clean shower bathroom +🛌 person in bed bed rest +🧑‍🤝‍🧑 people holding hands friendship +👭 women holding hands pair friendship couple love like female people human +👫 woman and man holding hands pair people human love date dating like affection valentines marriage +👬 men holding hands pair couple love like bromance friendship people human +💏 kiss pair valentines love like dating marriage +👩‍❤️‍💋‍👨 kiss woman man love +👨‍❤️‍💋‍👨 kiss man man pair valentines love like dating marriage +👩‍❤️‍💋‍👩 kiss woman woman pair valentines love like dating marriage +💑 couple with heart pair love like affection human dating valentines marriage +👩‍❤️‍👨 couple with heart woman man love +👨‍❤️‍👨 couple with heart man man pair love like affection human dating valentines marriage +👩‍❤️‍👩 couple with heart woman woman pair love like affection human dating valentines marriage +👪 family home parents child mom dad father mother people human +👨‍👩‍👦 family man woman boy love +👨‍👩‍👧 family man woman girl home parents people human child +👨‍👩‍👧‍👦 family man woman girl boy home parents people human children +👨‍👩‍👦‍👦 family man woman boy boy home parents people human children +👨‍👩‍👧‍👧 family man woman girl girl home parents people human children +👨‍👨‍👦 family man man boy home parents people human children +👨‍👨‍👧 family man man girl home parents people human children +👨‍👨‍👧‍👦 family man man girl boy home parents people human children +👨‍👨‍👦‍👦 family man man boy boy home parents people human children +👨‍👨‍👧‍👧 family man man girl girl home parents people human children +👩‍👩‍👦 family woman woman boy home parents people human children +👩‍👩‍👧 family woman woman girl home parents people human children +👩‍👩‍👧‍👦 family woman woman girl boy home parents people human children +👩‍👩‍👦‍👦 family woman woman boy boy home parents people human children +👩‍👩‍👧‍👧 family woman woman girl girl home parents people human children +👨‍👦 family man boy home parent people human child +👨‍👦‍👦 family man boy boy home parent people human children +👨‍👧 family man girl home parent people human child +👨‍👧‍👦 family man girl boy home parent people human children +👨‍👧‍👧 family man girl girl home parent people human children +👩‍👦 family woman boy home parent people human child +👩‍👦‍👦 family woman boy boy home parent people human children +👩‍👧 family woman girl home parent people human child +👩‍👧‍👦 family woman girl boy home parent people human children +👩‍👧‍👧 family woman girl girl home parent people human children +🗣️ speaking head user person human sing say talk +👤 bust in silhouette user person human +👥 busts in silhouette user person human group team +👣 footprints feet tracking walking beach +🐵 monkey face animal nature circus +🐒 monkey animal nature banana circus +🦍 gorilla animal nature circus +🦧 orangutan animal +🐶 dog face animal friend nature woof puppy pet faithful +🐕 dog animal nature friend doge pet faithful +🦮 guide dog animal blind +🐕‍🦺 service dog blind animal +🐩 poodle dog animal 101 nature pet +🐺 wolf animal nature wild +🦊 fox animal nature face +🦝 raccoon animal nature +🐱 cat face animal meow nature pet kitten +🐈 cat animal meow pet cats +🦁 lion animal nature +🐯 tiger face animal cat danger wild nature roar +🐅 tiger animal nature roar +🐆 leopard animal nature +🐴 horse face animal brown nature +🐎 horse animal gamble luck +🦄 unicorn animal nature mystical +🦓 zebra animal nature stripes safari +🦌 deer animal nature horns venison +🐮 cow face beef ox animal nature moo milk +🐂 ox animal cow beef +🐃 water buffalo animal nature ox cow +🐄 cow beef ox animal nature moo milk +🐷 pig face animal oink nature +🐖 pig animal nature +🐗 boar animal nature +🐽 pig nose animal oink +🐏 ram animal sheep nature +🐑 ewe animal nature wool shipit +🐐 goat animal nature +🐪 camel animal hot desert hump +🐫 two hump camel animal nature hot desert hump +🦙 llama animal nature alpaca +🦒 giraffe animal nature spots safari +🐘 elephant animal nature nose th circus +🦏 rhinoceros animal nature horn +🦛 hippopotamus animal nature +🐭 mouse face animal nature cheese wedge rodent +🐁 mouse animal nature rodent +🐀 rat animal mouse rodent +🐹 hamster animal nature +🐰 rabbit face animal nature pet spring magic bunny +🐇 rabbit animal nature pet magic spring +🐿️ chipmunk animal nature rodent squirrel +🦔 hedgehog animal nature spiny +🦇 bat animal nature blind vampire +🐻 bear animal nature wild +🐨 koala animal nature +🐼 panda animal nature panda +🦥 sloth animal +🦦 otter animal +🦨 skunk animal +🦘 kangaroo animal nature australia joey hop marsupial +🦡 badger animal nature honey +🐾 paw prints animal tracking footprints dog cat pet feet +🦃 turkey animal bird +🐔 chicken animal cluck nature bird +🐓 rooster animal nature chicken +🐣 hatching chick animal chicken egg born baby bird +🐤 baby chick animal chicken bird +🐥 front facing baby chick animal chicken baby bird +🐦 bird animal nature fly tweet spring +🐧 penguin animal nature +🕊️ dove animal bird +🦅 eagle animal nature bird +🦆 duck animal nature bird mallard +🦢 swan animal nature bird +🦉 owl animal nature bird hoot +🦩 flamingo animal +🦚 peacock animal nature peahen bird +🦜 parrot animal nature bird pirate talk +🐸 frog animal nature croak toad +🐊 crocodile animal nature reptile lizard alligator +🐢 turtle animal slow nature tortoise +🦎 lizard animal nature reptile +🐍 snake animal evil nature hiss python +🐲 dragon face animal myth nature chinese green +🐉 dragon animal myth nature chinese green +🦕 sauropod animal nature dinosaur brachiosaurus brontosaurus diplodocus extinct +🦖 t rex animal nature dinosaur tyrannosaurus extinct +🐳 spouting whale animal nature sea ocean +🐋 whale animal nature sea ocean +🐬 dolphin animal nature fish sea ocean flipper fins beach +🐟 fish animal food nature +🐠 tropical fish animal swim ocean beach nemo +🐡 blowfish animal nature food sea ocean +🦈 shark animal nature fish sea ocean jaws fins beach +🐙 octopus animal creature ocean sea nature beach +🐚 spiral shell nature sea beach +🐌 snail slow animal shell +🦋 butterfly animal insect nature caterpillar +🐛 bug animal insect nature worm +🐜 ant animal insect nature bug +🐝 honeybee animal insect nature bug spring honey +🐞 lady beetle animal insect nature ladybug +🦗 cricket animal cricket chirp +🕷️ spider animal arachnid +🕸️ spider web animal insect arachnid silk +🦂 scorpion animal arachnid +🦟 mosquito animal nature insect malaria +🦠 microbe amoeba bacteria germs virus +💐 bouquet flowers nature spring +🌸 cherry blossom nature plant spring flower +💮 white flower japanese spring +🏵️ rosette flower decoration military +🌹 rose flowers valentines love spring +🥀 wilted flower plant nature flower +🌺 hibiscus plant vegetable flowers beach +🌻 sunflower nature plant fall +🌼 blossom nature flowers yellow +🌷 tulip flowers plant nature summer spring +🌱 seedling plant nature grass lawn spring +🌲 evergreen tree plant nature +🌳 deciduous tree plant nature +🌴 palm tree plant vegetable nature summer beach mojito tropical +🌵 cactus vegetable plant nature +🌾 sheaf of rice nature plant +🌿 herb vegetable plant medicine weed grass lawn +☘️ shamrock vegetable plant nature irish clover +🍀 four leaf clover vegetable plant nature lucky irish +🍁 maple leaf nature plant vegetable ca fall +🍂 fallen leaf nature plant vegetable leaves +🍃 leaf fluttering in wind nature plant tree vegetable grass lawn spring +🍇 grapes fruit food wine +🍈 melon fruit nature food +🍉 watermelon fruit food picnic summer +🍊 tangerine food fruit nature orange +🍋 lemon fruit nature +🍌 banana fruit food monkey +🍍 pineapple fruit nature food +🥭 mango fruit food tropical +🍎 red apple fruit mac school +🍏 green apple fruit nature +🍐 pear fruit nature food +🍑 peach fruit nature food +🍒 cherries food fruit +🍓 strawberry fruit food nature +🥝 kiwi fruit fruit food +🍅 tomato fruit vegetable nature food +🥥 coconut fruit nature food palm +🥑 avocado fruit food +🍆 eggplant vegetable nature food aubergine +🥔 potato food tuber vegatable starch +🥕 carrot vegetable food orange +🌽 ear of corn food vegetable plant +🌶️ hot pepper food spicy chilli chili +🥒 cucumber fruit food pickle +🥬 leafy green food vegetable plant bok choy cabbage kale lettuce +🥦 broccoli fruit food vegetable +🧄 garlic food spice cook +🧅 onion cook food spice +🍄 mushroom plant vegetable +🥜 peanuts food nut +🌰 chestnut food squirrel +🍞 bread food wheat breakfast toast +🥐 croissant food bread french +🥖 baguette bread food bread french +🥨 pretzel food bread twisted +🥯 bagel food bread bakery schmear +🥞 pancakes food breakfast flapjacks hotcakes +🧇 waffle food breakfast +🧀 cheese wedge food chadder +🍖 meat on bone good food drumstick +🍗 poultry leg food meat drumstick bird chicken turkey +🥩 cut of meat food cow meat cut chop lambchop porkchop +🥓 bacon food breakfast pork pig meat +🍔 hamburger meat fast food beef cheeseburger mcdonalds burger king +🍟 french fries chips snack fast food +🍕 pizza food party +🌭 hot dog food frankfurter +🥪 sandwich food lunch bread +🌮 taco food mexican +🌯 burrito food mexican +🥙 stuffed flatbread food flatbread stuffed gyro +🧆 falafel food +🥚 egg food chicken breakfast +🍳 cooking food breakfast kitchen egg +🥘 shallow pan of food food cooking casserole paella +🍲 pot of food food meat soup +🥣 bowl with spoon food breakfast cereal oatmeal porridge +🥗 green salad food healthy lettuce +🍿 popcorn food movie theater films snack +🧈 butter food cook +🧂 salt condiment shaker +🥫 canned food food soup +🍱 bento box food japanese box +🍘 rice cracker food japanese +🍙 rice ball food japanese +🍚 cooked rice food china asian +🍛 curry rice food spicy hot indian +🍜 steaming bowl food japanese noodle chopsticks +🍝 spaghetti food italian noodle +🍠 roasted sweet potato food nature +🍢 oden food japanese +🍣 sushi food fish japanese rice +🍤 fried shrimp food animal appetizer summer +🍥 fish cake with swirl food japan sea beach narutomaki pink swirl kamaboko surimi ramen +🥮 moon cake food autumn +🍡 dango food dessert sweet japanese barbecue meat +🥟 dumpling food empanada pierogi potsticker +🥠 fortune cookie food prophecy +🥡 takeout box food leftovers +🦀 crab animal crustacean +🦞 lobster animal nature bisque claws seafood +🦐 shrimp animal ocean nature seafood +🦑 squid animal nature ocean sea +🦪 oyster food +🍦 soft ice cream food hot dessert summer +🍧 shaved ice hot dessert summer +🍨 ice cream food hot dessert +🍩 doughnut food dessert snack sweet donut +🍪 cookie food snack oreo chocolate sweet dessert +🎂 birthday cake food dessert cake +🍰 shortcake food dessert +🧁 cupcake food dessert bakery sweet +🥧 pie food dessert pastry +🍫 chocolate bar food snack dessert sweet +🍬 candy snack dessert sweet lolly +🍭 lollipop food snack candy sweet +🍮 custard dessert food +🍯 honey pot bees sweet kitchen +🍼 baby bottle food container milk +🥛 glass of milk beverage drink cow +☕ hot beverage beverage caffeine latte espresso coffee +🍵 teacup without handle drink bowl breakfast green british +🍶 sake wine drink drunk beverage japanese alcohol booze +🍾 bottle with popping cork drink wine bottle celebration +🍷 wine glass drink beverage drunk alcohol booze +🍸 cocktail glass drink drunk alcohol beverage booze mojito +🍹 tropical drink beverage cocktail summer beach alcohol booze mojito +🍺 beer mug relax beverage drink drunk party pub summer alcohol booze +🍻 clinking beer mugs relax beverage drink drunk party pub summer alcohol booze +🥂 clinking glasses beverage drink party alcohol celebrate cheers wine champagne toast +🥃 tumbler glass drink beverage drunk alcohol liquor booze bourbon scotch whisky glass shot +🥤 cup with straw drink soda +🧃 beverage box drink +🧉 mate drink tea beverage +🧊 ice water cold +🥢 chopsticks food +🍽️ fork and knife with plate food eat meal lunch dinner restaurant +🍴 fork and knife cutlery kitchen +🥄 spoon cutlery kitchen tableware +🔪 kitchen knife knife blade cutlery kitchen weapon +🏺 amphora vase jar +🌍 globe showing europe africa globe world international +🌎 globe showing americas globe world USA international +🌏 globe showing asia australia globe world east international +🌐 globe with meridians earth international world internet interweb i18n +🗺️ world map location direction +🗾 map of japan nation country japanese asia +🧭 compass magnetic navigation orienteering +🏔️ snow capped mountain photo nature environment winter cold +⛰️ mountain photo nature environment +🌋 volcano photo nature disaster +🗻 mount fuji photo mountain nature japanese +🏕️ camping photo outdoors tent +🏖️ beach with umbrella weather summer sunny sand mojito +🏜️ desert photo warm saharah +🏝️ desert island photo tropical mojito +🏞️ national park photo environment nature +🏟️ stadium photo place sports concert venue +🏛️ classical building art culture history +🏗️ building construction wip working progress +🧱 brick bricks +🏘️ houses buildings photo +🏚️ derelict house abandon evict broken building +🏠 house building home +🏡 house with garden home plant nature +🏢 office building building bureau work +🏣 japanese post office building envelope communication +🏤 post office building email +🏥 hospital building health surgery doctor +🏦 bank building money sales cash business enterprise +🏨 hotel building accomodation checkin +🏩 love hotel like affection dating +🏪 convenience store building shopping groceries +🏫 school building student education learn teach +🏬 department store building shopping mall +🏭 factory building industry pollution smoke +🏯 japanese castle photo building +🏰 castle building royalty history +💒 wedding love like affection couple marriage bride groom +🗼 tokyo tower photo japanese +🗽 statue of liberty american newyork +⛪ church building religion christ +🕌 mosque islam worship minaret +🛕 hindu temple religion +🕍 synagogue judaism worship temple jewish +⛩️ shinto shrine temple japan kyoto +🕋 kaaba mecca mosque islam +⛲ fountain photo summer water fresh +⛺ tent photo camping outdoors +🌁 foggy photo mountain +🌃 night with stars evening city downtown +🏙️ cityscape photo night life urban +🌄 sunrise over mountains view vacation photo +🌅 sunrise morning view vacation photo +🌆 cityscape at dusk photo evening sky buildings +🌇 sunset photo good morning dawn +🌉 bridge at night photo sanfrancisco +♨️ hot springs bath warm relax +🎠 carousel horse photo carnival +🎡 ferris wheel photo carnival londoneye +🎢 roller coaster carnival playground photo fun +💈 barber pole hair salon style +🎪 circus tent festival carnival party +🚂 locomotive transportation vehicle train +🚃 railway car transportation vehicle +🚄 high speed train transportation vehicle +🚅 bullet train transportation vehicle speed fast public travel +🚆 train transportation vehicle +🚇 metro transportation blue-square mrt underground tube +🚈 light rail transportation vehicle +🚉 station transportation vehicle public +🚊 tram transportation vehicle +🚝 monorail transportation vehicle +🚞 mountain railway transportation vehicle +🚋 tram car transportation vehicle carriage public travel +🚌 bus car vehicle transportation +🚍 oncoming bus vehicle transportation +🚎 trolleybus bart transportation vehicle +🚐 minibus vehicle car transportation +🚑 ambulance health 911 hospital +🚒 fire engine transportation cars vehicle +🚓 police car vehicle cars transportation law legal enforcement +🚔 oncoming police car vehicle law legal enforcement 911 +🚕 taxi uber vehicle cars transportation +🚖 oncoming taxi vehicle cars uber +🚗 automobile red transportation vehicle +🚘 oncoming automobile car vehicle transportation +🚙 sport utility vehicle transportation vehicle +🚚 delivery truck cars transportation +🚛 articulated lorry vehicle cars transportation express +🚜 tractor vehicle car farming agriculture +🏎️ racing car sports race fast formula f1 +🏍️ motorcycle race sports fast +🛵 motor scooter vehicle vespa sasha +🦽 manual wheelchair accessibility +🦼 motorized wheelchair accessibility +🛺 auto rickshaw move transportation +🚲 bicycle sports bicycle exercise hipster +🛴 kick scooter vehicle kick razor +🛹 skateboard board +🚏 bus stop transportation wait +🛣️ motorway road cupertino interstate highway +🛤️ railway track train transportation +🛢️ oil drum barrell +⛽ fuel pump gas station petroleum +🚨 police car light police ambulance 911 emergency alert error pinged law legal +🚥 horizontal traffic light transportation signal +🚦 vertical traffic light transportation driving +🛑 stop sign stop +🚧 construction wip progress caution warning +⚓ anchor ship ferry sea boat +⛵ sailboat ship summer transportation water sailing +🛶 canoe boat paddle water ship +🚤 speedboat ship transportation vehicle summer +🛳️ passenger ship yacht cruise ferry +⛴️ ferry boat ship yacht +🛥️ motor boat ship +🚢 ship transportation titanic deploy +✈️ airplane vehicle transportation flight fly +🛩️ small airplane flight transportation fly vehicle +🛫 airplane departure airport flight landing +🛬 airplane arrival airport flight boarding +🪂 parachute fly glide +💺 seat sit airplane transport bus flight fly +🚁 helicopter transportation vehicle fly +🚟 suspension railway vehicle transportation +🚠 mountain cableway transportation vehicle ski +🚡 aerial tramway transportation vehicle ski +🛰️ satellite communication gps orbit spaceflight NASA ISS +🚀 rocket launch ship staffmode NASA outer space outer space fly +🛸 flying saucer transportation vehicle ufo +🛎️ bellhop bell service +🧳 luggage packing travel +⌛ hourglass done time clock oldschool limit exam quiz test +⏳ hourglass not done oldschool time countdown +⌚ watch time accessories +⏰ alarm clock time wake +⏱️ stopwatch time deadline +⏲️ timer clock alarm +🕰️ mantelpiece clock time +🕛 twelve o clock time noon midnight midday late early schedule +🕧 twelve thirty time late early schedule +🕐 one o clock time late early schedule +🕜 one thirty time late early schedule +🕑 two o clock time late early schedule +🕝 two thirty time late early schedule +🕒 three o clock time late early schedule +🕞 three thirty time late early schedule +🕓 four o clock time late early schedule +🕟 four thirty time late early schedule +🕔 five o clock time late early schedule +🕠 five thirty time late early schedule +🕕 six o clock time late early schedule dawn dusk +🕡 six thirty time late early schedule +🕖 seven o clock time late early schedule +🕢 seven thirty time late early schedule +🕗 eight o clock time late early schedule +🕣 eight thirty time late early schedule +🕘 nine o clock time late early schedule +🕤 nine thirty time late early schedule +🕙 ten o clock time late early schedule +🕥 ten thirty time late early schedule +🕚 eleven o clock time late early schedule +🕦 eleven thirty time late early schedule +🌑 new moon nature twilight planet space night evening sleep +🌒 waxing crescent moon nature twilight planet space night evening sleep +🌓 first quarter moon nature twilight planet space night evening sleep +🌔 waxing gibbous moon nature night sky gray twilight planet space evening sleep +🌕 full moon nature yellow twilight planet space night evening sleep +🌖 waning gibbous moon nature twilight planet space night evening sleep waxing gibbous moon +🌗 last quarter moon nature twilight planet space night evening sleep +🌘 waning crescent moon nature twilight planet space night evening sleep +🌙 crescent moon night sleep sky evening magic +🌚 new moon face nature twilight planet space night evening sleep +🌛 first quarter moon face nature twilight planet space night evening sleep +🌜 last quarter moon face nature twilight planet space night evening sleep +🌡️ thermometer weather temperature hot cold +☀️ sun weather nature brightness summer beach spring +🌝 full moon face nature twilight planet space night evening sleep +🌞 sun with face nature morning sky +🪐 ringed planet outerspace +⭐ star night yellow +🌟 glowing star night sparkle awesome good magic +🌠 shooting star night photo +🌌 milky way photo space stars +☁️ cloud weather sky +⛅ sun behind cloud weather nature cloudy morning fall spring +⛈️ cloud with lightning and rain weather lightning +🌤️ sun behind small cloud weather +🌥️ sun behind large cloud weather +🌦️ sun behind rain cloud weather +🌧️ cloud with rain weather +🌨️ cloud with snow weather +🌩️ cloud with lightning weather thunder +🌪️ tornado weather cyclone twister +🌫️ fog weather +🌬️ wind face gust air +🌀 cyclone weather swirl blue cloud vortex spiral whirlpool spin tornado hurricane typhoon +🌈 rainbow nature happy unicorn face photo sky spring +🌂 closed umbrella weather rain drizzle +☂️ umbrella weather spring +☔ umbrella with rain drops rainy weather spring +⛱️ umbrella on ground weather summer +⚡ high voltage thunder weather lightning bolt fast +❄️ snowflake winter season cold weather christmas xmas +☃️ snowman winter season cold weather christmas xmas frozen +⛄ snowman without snow winter season cold weather christmas xmas frozen without snow +☄️ comet space +🔥 fire hot cook flame +💧 droplet water drip faucet spring +🌊 water wave sea water wave nature tsunami disaster +🎃 jack o lantern halloween light pumpkin creepy fall +🎄 christmas tree festival vacation december xmas celebration +🎆 fireworks photo festival carnival congratulations +🎇 sparkler stars night shine +🧨 firecracker dynamite boom explode explosion explosive +✨ sparkles stars shine shiny cool awesome good magic +🎈 balloon party celebration birthday circus +🎉 party popper party congratulations birthday magic circus celebration tada +🎊 confetti ball festival party birthday circus +🎋 tanabata tree plant nature branch summer +🎍 pine decoration plant nature vegetable panda pine decoration +🎎 japanese dolls japanese toy kimono +🎏 carp streamer fish japanese koinobori carp banner +🎐 wind chime nature ding spring bell +🎑 moon viewing ceremony photo japan asia tsukimi +🧧 red envelope gift +🎀 ribbon decoration pink girl bowtie +🎁 wrapped gift present birthday christmas xmas +🎗️ reminder ribbon sports cause support awareness +🎟️ admission tickets sports concert entrance +🎫 ticket event concert pass +🎖️ military medal award winning army +🏆 trophy win award contest place ftw ceremony +🏅 sports medal award winning +🥇 1st place medal award winning first +🥈 2nd place medal award second +🥉 3rd place medal award third +⚽ soccer ball sports football +⚾ baseball sports balls +🥎 softball sports balls +🏀 basketball sports balls NBA +🏐 volleyball sports balls +🏈 american football sports balls NFL +🏉 rugby football sports team +🎾 tennis sports balls green +🥏 flying disc sports frisbee ultimate +🎳 bowling sports fun play +🏏 cricket game sports +🏑 field hockey sports +🏒 ice hockey sports +🥍 lacrosse sports ball stick +🏓 ping pong sports pingpong +🏸 badminton sports +🥊 boxing glove sports fighting +🥋 martial arts uniform judo karate taekwondo +🥅 goal net sports +⛳ flag in hole sports business flag hole summer +⛸️ ice skate sports +🎣 fishing pole food hobby summer +🤿 diving mask sport ocean +🎽 running shirt play pageant +🎿 skis sports winter cold snow +🛷 sled sleigh luge toboggan +🥌 curling stone sports +🎯 direct hit game play bar target bullseye +🪀 yo yo toy +🪁 kite wind fly +🎱 pool 8 ball pool hobby game luck magic +🔮 crystal ball disco party magic circus fortune teller +🧿 nazar amulet bead charm +🎮 video game play console PS4 controller +🕹️ joystick game play +🎰 slot machine bet gamble vegas fruit machine luck casino +🎲 game die dice random tabletop play luck +🧩 puzzle piece interlocking puzzle piece +🧸 teddy bear plush stuffed +♠️ spade suit poker cards suits magic +♥️ heart suit poker cards magic suits +♦️ diamond suit poker cards magic suits +♣️ club suit poker cards magic suits +♟️ chess pawn expendable +🃏 joker poker cards game play magic +🀄 mahjong red dragon game play chinese kanji +🎴 flower playing cards game sunset red +🎭 performing arts acting theater drama +🖼️ framed picture photography +🎨 artist palette design paint draw colors +🧵 thread needle sewing spool string +🧶 yarn ball crochet knit +👓 glasses fashion accessories eyesight nerdy dork geek +🕶️ sunglasses face cool accessories +🥽 goggles eyes protection safety +🥼 lab coat doctor experiment scientist chemist +🦺 safety vest protection +👔 necktie shirt suitup formal fashion cloth business +👕 t shirt fashion cloth casual shirt tee +👖 jeans fashion shopping +🧣 scarf neck winter clothes +🧤 gloves hands winter clothes +🧥 coat jacket +🧦 socks stockings clothes +👗 dress clothes fashion shopping +👘 kimono dress fashion women female japanese +🥻 sari dress +🩱 one piece swimsuit fashion +🩲 briefs clothing +🩳 shorts clothing +👙 bikini swimming female woman girl fashion beach summer +👚 woman s clothes fashion shopping bags female +👛 purse fashion accessories money sales shopping +👜 handbag fashion accessory accessories shopping +👝 clutch bag bag accessories shopping +🛍️ shopping bags mall buy purchase +🎒 backpack student education bag backpack +👞 man s shoe fashion male +👟 running shoe shoes sports sneakers +🥾 hiking boot backpacking camping hiking +🥿 flat shoe ballet slip-on slipper +👠 high heeled shoe fashion shoes female pumps stiletto +👡 woman s sandal shoes fashion flip flops +🩰 ballet shoes dance +👢 woman s boot shoes fashion +👑 crown king kod leader royalty lord +👒 woman s hat fashion accessories female lady spring +🎩 top hat magic gentleman classy circus +🎓 graduation cap school college degree university graduation cap hat legal learn education +🧢 billed cap cap baseball +⛑️ rescue worker s helmet construction build +📿 prayer beads dhikr religious +💄 lipstick female girl fashion woman +💍 ring wedding propose marriage valentines diamond fashion jewelry gem engagement +💎 gem stone blue ruby diamond jewelry +🔇 muted speaker sound volume silence quiet +🔈 speaker low volume sound volume silence broadcast +🔉 speaker medium volume volume speaker broadcast +🔊 speaker high volume volume noise noisy speaker broadcast +📢 loudspeaker volume sound +📣 megaphone sound speaker volume +📯 postal horn instrument music +🔔 bell sound notification christmas xmas chime +🔕 bell with slash sound volume mute quiet silent +🎼 musical score treble clef compose +🎵 musical note score tone sound +🎶 musical notes music score +🎙️ studio microphone sing recording artist talkshow +🎚️ level slider scale +🎛️ control knobs dial +🎤 microphone sound music PA sing talkshow +🎧 headphone music score gadgets +📻 radio communication music podcast program +🎷 saxophone music instrument jazz blues +🎸 guitar music instrument +🎹 musical keyboard piano instrument compose +🎺 trumpet music brass +🎻 violin music instrument orchestra symphony +🪕 banjo music instructment +🥁 drum music instrument drumsticks snare +📱 mobile phone technology apple gadgets dial +📲 mobile phone with arrow iphone incoming +☎️ telephone technology communication dial telephone +📞 telephone receiver technology communication dial +📟 pager bbcall oldschool 90s +📠 fax machine communication technology +🔋 battery power energy sustain +🔌 electric plug charger power +💻 laptop technology laptop screen display monitor +🖥️ desktop computer technology computing screen +🖨️ printer paper ink +⌨️ keyboard technology computer type input text +🖱️ computer mouse click +🖲️ trackball technology trackpad +💽 computer disk technology record data disk 90s +💾 floppy disk oldschool technology save 90s 80s +💿 optical disk technology dvd disk disc 90s +📀 dvd cd disk disc +🧮 abacus calculation +🎥 movie camera film record +🎞️ film frames movie +📽️ film projector video tape record movie +🎬 clapper board movie film record +📺 television technology program oldschool show television +📷 camera gadgets photography +📸 camera with flash photography gadgets +📹 video camera film record +📼 videocassette record video oldschool 90s 80s +🔍 magnifying glass tilted left search zoom find detective +🔎 magnifying glass tilted right search zoom find detective +🕯️ candle fire wax +💡 light bulb light electricity idea +🔦 flashlight dark camping sight night +🏮 red paper lantern light paper halloween spooky +🪔 diya lamp lighting +📔 notebook with decorative cover classroom notes record paper study +📕 closed book read library knowledge textbook learn +📖 open book book read library knowledge literature learn study +📗 green book read library knowledge study +📘 blue book read library knowledge learn study +📙 orange book read library knowledge textbook study +📚 books literature library study +📓 notebook stationery record notes paper study +📒 ledger notes paper +📃 page with curl documents office paper +📜 scroll documents ancient history paper +📄 page facing up documents office paper information +📰 newspaper press headline +🗞️ rolled up newspaper press headline +📑 bookmark tabs favorite save order tidy +🔖 bookmark favorite label save +🏷️ label sale tag +💰 money bag dollar payment coins sale +💴 yen banknote money sales japanese dollar currency +💵 dollar banknote money sales bill currency +💶 euro banknote money sales dollar currency +💷 pound banknote british sterling money sales bills uk england currency +💸 money with wings dollar bills payment sale +💳 credit card money sales dollar bill payment shopping +🧾 receipt accounting expenses +💹 chart increasing with yen green-square graph presentation stats +💱 currency exchange money sales dollar travel +💲 heavy dollar sign money sales payment currency buck +✉️ envelope letter postal inbox communication +📧 e mail communication inbox +📨 incoming envelope email inbox +📩 envelope with arrow email communication +📤 outbox tray inbox email +📥 inbox tray email documents +📦 package mail gift cardboard box moving +📫 closed mailbox with raised flag email inbox communication +📪 closed mailbox with lowered flag email communication inbox +📬 open mailbox with raised flag email inbox communication +📭 open mailbox with lowered flag email inbox +📮 postbox email letter envelope +🗳️ ballot box with ballot election vote +✏️ pencil stationery write paper writing school study +✒️ black nib pen stationery writing write +🖋️ fountain pen stationery writing write +🖊️ pen stationery writing write +🖌️ paintbrush drawing creativity art +🖍️ crayon drawing creativity +📝 memo write documents stationery pencil paper writing legal exam quiz test study compose +💼 briefcase business documents work law legal job career +📁 file folder documents business office +📂 open file folder documents load +🗂️ card index dividers organizing business stationery +📅 calendar calendar schedule +📆 tear off calendar schedule date planning +🗒️ spiral notepad memo stationery +🗓️ spiral calendar date schedule planning +📇 card index business stationery +📈 chart increasing graph presentation stats recovery business economics money sales good success +📉 chart decreasing graph presentation stats recession business economics money sales bad failure +📊 bar chart graph presentation stats +📋 clipboard stationery documents +📌 pushpin stationery mark here +📍 round pushpin stationery location map here +📎 paperclip documents stationery +🖇️ linked paperclips documents stationery +📏 straight ruler stationery calculate length math school drawing architect sketch +📐 triangular ruler stationery math architect sketch +✂️ scissors stationery cut +🗃️ card file box business stationery +🗄️ file cabinet filing organizing +🗑️ wastebasket bin trash rubbish garbage toss +🔒 locked security password padlock +🔓 unlocked privacy security +🔏 locked with pen security secret +🔐 locked with key security privacy +🔑 key lock door password +🗝️ old key lock door password +🔨 hammer tools build create +🪓 axe tool chop cut +⛏️ pick tools dig +⚒️ hammer and pick tools build create +🛠️ hammer and wrench tools build create +🗡️ dagger weapon +⚔️ crossed swords weapon +🔫 pistol violence weapon pistol revolver +🏹 bow and arrow sports +🛡️ shield protection security +🔧 wrench tools diy ikea fix maintainer +🔩 nut and bolt handy tools fix +⚙️ gear cog +🗜️ clamp tool +⚖️ balance scale law fairness weight +🦯 probing cane accessibility +🔗 link rings url +⛓️ chains lock arrest +🧰 toolbox tools diy fix maintainer mechanic +🧲 magnet attraction magnetic +⚗️ alembic distilling science experiment chemistry +🧪 test tube chemistry experiment lab science +🧫 petri dish bacteria biology culture lab +🧬 dna biologist genetics life +🔬 microscope laboratory experiment zoomin science study +🔭 telescope stars space zoom science astronomy +📡 satellite antenna communication future radio space +💉 syringe health hospital drugs blood medicine needle doctor nurse +🩸 drop of blood period hurt harm wound +💊 pill health medicine doctor pharmacy drug +🩹 adhesive bandage heal +🩺 stethoscope health +🚪 door house entry exit +🛏️ bed sleep rest +🛋️ couch and lamp read chill +🪑 chair sit furniture +🚽 toilet restroom wc washroom bathroom potty +🚿 shower clean water bathroom +🛁 bathtub clean shower bathroom +🪒 razor cut +🧴 lotion bottle moisturizer sunscreen +🧷 safety pin diaper +🧹 broom cleaning sweeping witch +🧺 basket laundry +🧻 roll of paper roll +🧼 soap bar bathing cleaning lather +🧽 sponge absorbing cleaning porous +🧯 fire extinguisher quench +🛒 shopping cart trolley +🚬 cigarette kills tobacco cigarette joint smoke +⚰️ coffin vampire dead die death rip graveyard cemetery casket funeral box +⚱️ funeral urn dead die death rip ashes +🗿 moai rock easter island moai +🏧 atm sign money sales cash blue-square payment bank +🚮 litter in bin sign blue-square sign human info +🚰 potable water blue-square liquid restroom cleaning faucet +♿ wheelchair symbol blue-square disabled accessibility +🚹 men s room toilet restroom wc blue-square gender male +🚺 women s room purple-square woman female toilet loo restroom gender +🚻 restroom blue-square toilet refresh wc gender +🚼 baby symbol orange-square child +🚾 water closet toilet restroom blue-square +🛂 passport control custom blue-square +🛃 customs passport border blue-square +🛄 baggage claim blue-square airport transport +🛅 left luggage blue-square travel +⚠️ warning exclamation wip alert error problem issue +🚸 children crossing school warning danger sign driving yellow-diamond +⛔ no entry limit security privacy bad denied stop circle +🚫 prohibited forbid stop limit denied disallow circle +🚳 no bicycles cyclist prohibited circle +🚭 no smoking cigarette blue-square smell smoke +🚯 no littering trash bin garbage circle +🚱 non potable water drink faucet tap circle +🚷 no pedestrians rules crossing walking circle +📵 no mobile phones iphone mute circle +🔞 no one under eighteen 18 drink pub night minor circle +☢️ radioactive nuclear danger +☣️ biohazard danger +⬆️ up arrow blue-square continue top direction +↗️ up right arrow blue-square point direction diagonal northeast +➡️ right arrow blue-square next +↘️ down right arrow blue-square direction diagonal southeast +⬇️ down arrow blue-square direction bottom +↙️ down left arrow blue-square direction diagonal southwest +⬅️ left arrow blue-square previous back +↖️ up left arrow blue-square point direction diagonal northwest +↕️ up down arrow blue-square direction way vertical +↔️ left right arrow shape direction horizontal sideways +↩️ right arrow curving left back return blue-square undo enter +↪️ left arrow curving right blue-square return rotate direction +⤴️ right arrow curving up blue-square direction top +⤵️ right arrow curving down blue-square direction bottom +🔃 clockwise vertical arrows sync cycle round repeat +🔄 counterclockwise arrows button blue-square sync cycle +🔙 back arrow arrow words return +🔚 end arrow words arrow +🔛 on arrow arrow words +🔜 soon arrow arrow words +🔝 top arrow words blue-square +🛐 place of worship religion church temple prayer +⚛️ atom symbol science physics chemistry +🕉️ om hinduism buddhism sikhism jainism +✡️ star of david judaism +☸️ wheel of dharma hinduism buddhism sikhism jainism +☯️ yin yang balance +✝️ latin cross christianity +☦️ orthodox cross suppedaneum religion +☪️ star and crescent islam +☮️ peace symbol hippie +🕎 menorah hanukkah candles jewish +🔯 dotted six pointed star purple-square religion jewish hexagram +♈ aries sign purple-square zodiac astrology +♉ taurus purple-square sign zodiac astrology +♊ gemini sign zodiac purple-square astrology +♋ cancer sign zodiac purple-square astrology +♌ leo sign purple-square zodiac astrology +♍ virgo sign zodiac purple-square astrology +♎ libra sign purple-square zodiac astrology +♏ scorpio sign zodiac purple-square astrology scorpio +♐ sagittarius sign zodiac purple-square astrology +♑ capricorn sign zodiac purple-square astrology +♒ aquarius sign purple-square zodiac astrology +♓ pisces purple-square sign zodiac astrology +⛎ ophiuchus sign purple-square constellation astrology +🔀 shuffle tracks button blue-square shuffle music random +🔁 repeat button loop record +🔂 repeat single button blue-square loop +▶️ play button blue-square right direction play +⏩ fast forward button blue-square play speed continue +⏭️ next track button forward next blue-square +⏯️ play or pause button blue-square play pause +◀️ reverse button blue-square left direction +⏪ fast reverse button play blue-square +⏮️ last track button backward +🔼 upwards button blue-square triangle direction point forward top +⏫ fast up button blue-square direction top +🔽 downwards button blue-square direction bottom +⏬ fast down button blue-square direction bottom +⏸️ pause button pause blue-square +⏹️ stop button blue-square +⏺️ record button blue-square +⏏️ eject button blue-square +🎦 cinema blue-square record film movie curtain stage theater +🔅 dim button sun afternoon warm summer +🔆 bright button sun light +📶 antenna bars blue-square reception phone internet connection wifi bluetooth bars +📳 vibration mode orange-square phone +📴 mobile phone off mute orange-square silence quiet +♀️ female sign woman women lady girl +♂️ male sign man boy men +⚕️ medical symbol health hospital +♾️ infinity forever +♻️ recycling symbol arrow environment garbage trash +⚜️ fleur de lis decorative scout +🔱 trident emblem weapon spear +📛 name badge fire forbid +🔰 japanese symbol for beginner badge shield +⭕ hollow red circle circle round +✅ check mark button green-square ok agree vote election answer tick +☑️ check box with check ok agree confirm black-square vote election yes tick +✔️ check mark ok nike answer yes tick +✖️ multiplication sign math calculation +❌ cross mark no delete remove cancel red +❎ cross mark button x green-square no deny +➕ plus sign math calculation addition more increase +➖ minus sign math calculation subtract less +➗ division sign divide math calculation +➰ curly loop scribble draw shape squiggle +➿ double curly loop tape cassette +〽️ part alternation mark graph presentation stats business economics bad +✳️ eight spoked asterisk star sparkle green-square +✴️ eight pointed star orange-square shape polygon +❇️ sparkle stars green-square awesome good fireworks +‼️ double exclamation mark exclamation surprise +⁉️ exclamation question mark wat punctuation surprise +❓ question mark doubt confused +❔ white question mark doubts gray huh confused +❕ white exclamation mark surprise punctuation gray wow warning +❗ exclamation mark heavy exclamation mark danger surprise punctuation wow warning +〰️ wavy dash draw line moustache mustache squiggle scribble +©️ copyright ip license circle law legal +®️ registered alphabet circle +™️ trade mark trademark brand law legal +#️⃣ keycap symbol blue-square twitter +*️⃣ keycap star keycap +0️⃣ keycap 0 0 numbers blue-square null +1️⃣ keycap 1 blue-square numbers 1 +2️⃣ keycap 2 numbers 2 prime blue-square +3️⃣ keycap 3 3 numbers prime blue-square +4️⃣ keycap 4 4 numbers blue-square +5️⃣ keycap 5 5 numbers blue-square prime +6️⃣ keycap 6 6 numbers blue-square +7️⃣ keycap 7 7 numbers blue-square prime +8️⃣ keycap 8 8 blue-square numbers +9️⃣ keycap 9 blue-square numbers 9 +🔟 keycap 10 numbers 10 blue-square +🔠 input latin uppercase alphabet words blue-square +🔡 input latin lowercase blue-square alphabet +🔢 input numbers numbers blue-square +🔣 input symbols blue-square music note ampersand percent glyphs characters +🔤 input latin letters blue-square alphabet +🅰️ a button red-square alphabet letter +🆎 ab button red-square alphabet +🅱️ b button red-square alphabet letter +🆑 cl button alphabet words red-square +🆒 cool button words blue-square +🆓 free button blue-square words +ℹ️ information blue-square alphabet letter +🆔 id button purple-square words +Ⓜ️ circled m alphabet blue-circle letter +🆕 new button blue-square words start +🆖 ng button blue-square words shape icon +🅾️ o button alphabet red-square letter +🆗 ok button good agree yes blue-square +🅿️ p button cars blue-square alphabet letter +🆘 sos button help red-square words emergency 911 +🆙 up button blue-square above high +🆚 vs button words orange-square +🈁 japanese here button blue-square here katakana japanese destination +🈂️ japanese service charge button japanese blue-square katakana +🈷️ japanese monthly amount button chinese month moon japanese orange-square kanji +🈶 japanese not free of charge button orange-square chinese have kanji +🈯 japanese reserved button chinese point green-square kanji +🉐 japanese bargain button chinese kanji obtain get circle +🈹 japanese discount button cut divide chinese kanji pink-square +🈚 japanese free of charge button nothing chinese kanji japanese orange-square +🈲 japanese prohibited button kanji japanese chinese forbidden limit restricted red-square +🉑 japanese acceptable button ok good chinese kanji agree yes orange-circle +🈸 japanese application button chinese japanese kanji orange-square +🈴 japanese passing grade button japanese chinese join kanji red-square +🈳 japanese vacancy button kanji japanese chinese empty sky blue-square +㊗️ japanese congratulations button chinese kanji japanese red-circle +㊙️ japanese secret button privacy chinese sshh kanji red-circle +🈺 japanese open for business button japanese opening hours orange-square +🈵 japanese no vacancy button full chinese japanese red-square kanji +🔴 red circle shape error danger +🟠 orange circle round +🟡 yellow circle round +🟢 green circle round +🔵 blue circle shape icon button +🟣 purple circle round +🟤 brown circle round +⚫ black circle shape button round +⚪ white circle shape round +🟥 red square +🟧 orange square +🟨 yellow square +🟩 green square +🟦 blue square +🟪 purple square +🟫 brown square +⬛ black large square shape icon button +⬜ white large square shape icon stone button +◼️ black medium square shape button icon +◻️ white medium square shape stone icon +◾ black medium small square icon shape button +◽ white medium small square shape stone icon button +▪️ black small square shape icon +▫️ white small square shape icon +🔶 large orange diamond shape jewel gem +🔷 large blue diamond shape jewel gem +🔸 small orange diamond shape jewel gem +🔹 small blue diamond shape jewel gem +🔺 red triangle pointed up shape direction up top +🔻 red triangle pointed down shape direction bottom +💠 diamond with a dot jewel blue gem crystal fancy +🔘 radio button input old music circle +🔳 white square button shape input +🔲 black square button shape input frame +🏁 chequered flag contest finishline race gokart +🚩 triangular flag mark milestone place +🎌 crossed flags japanese nation country border +🏴 black flag pirate +🏳️ white flag losing loser lost surrender give up fail +🏳️‍🌈 rainbow flag flag rainbow pride gay lgbt glbt queer homosexual lesbian bisexual transgender +🏴‍☠️ pirate flag skull crossbones flag banner +🇦🇨 flag ascension island +🇦🇩 flag andorra ad flag nation country banner andorra +🇦🇪 flag united arab emirates united arab emirates flag nation country banner united arab emirates +🇦🇫 flag afghanistan af flag nation country banner afghanistan +🇦🇬 flag antigua barbuda antigua barbuda flag nation country banner antigua barbuda +🇦🇮 flag anguilla ai flag nation country banner anguilla +🇦🇱 flag albania al flag nation country banner albania +🇦🇲 flag armenia am flag nation country banner armenia +🇦🇴 flag angola ao flag nation country banner angola +🇦🇶 flag antarctica aq flag nation country banner antarctica +🇦🇷 flag argentina ar flag nation country banner argentina +🇦🇸 flag american samoa american ws flag nation country banner american samoa +🇦🇹 flag austria at flag nation country banner austria +🇦🇺 flag australia au flag nation country banner australia +🇦🇼 flag aruba aw flag nation country banner aruba +🇦🇽 flag aland islands Åland islands flag nation country banner aland islands +🇦🇿 flag azerbaijan az flag nation country banner azerbaijan +🇧🇦 flag bosnia herzegovina bosnia herzegovina flag nation country banner bosnia herzegovina +🇧🇧 flag barbados bb flag nation country banner barbados +🇧🇩 flag bangladesh bd flag nation country banner bangladesh +🇧🇪 flag belgium be flag nation country banner belgium +🇧🇫 flag burkina faso burkina faso flag nation country banner burkina faso +🇧🇬 flag bulgaria bg flag nation country banner bulgaria +🇧🇭 flag bahrain bh flag nation country banner bahrain +🇧🇮 flag burundi bi flag nation country banner burundi +🇧🇯 flag benin bj flag nation country banner benin +🇧🇱 flag st barthelemy saint barthélemy flag nation country banner st barthelemy +🇧🇲 flag bermuda bm flag nation country banner bermuda +🇧🇳 flag brunei bn darussalam flag nation country banner brunei +🇧🇴 flag bolivia bo flag nation country banner bolivia +🇧🇶 flag caribbean netherlands bonaire flag nation country banner caribbean netherlands +🇧🇷 flag brazil br flag nation country banner brazil +🇧🇸 flag bahamas bs flag nation country banner bahamas +🇧🇹 flag bhutan bt flag nation country banner bhutan +🇧🇻 flag bouvet island norway +🇧🇼 flag botswana bw flag nation country banner botswana +🇧🇾 flag belarus by flag nation country banner belarus +🇧🇿 flag belize bz flag nation country banner belize +🇨🇦 flag canada ca flag nation country banner canada +🇨🇨 flag cocos islands cocos keeling islands flag nation country banner cocos islands +🇨🇩 flag congo kinshasa congo democratic republic flag nation country banner congo kinshasa +🇨🇫 flag central african republic central african republic flag nation country banner central african republic +🇨🇬 flag congo brazzaville congo flag nation country banner congo brazzaville +🇨🇭 flag switzerland ch flag nation country banner switzerland +🇨🇮 flag cote d ivoire ivory coast flag nation country banner cote d ivoire +🇨🇰 flag cook islands cook islands flag nation country banner cook islands +🇨🇱 flag chile flag nation country banner chile +🇨🇲 flag cameroon cm flag nation country banner cameroon +🇨🇳 flag china china chinese prc flag country nation banner china +🇨🇴 flag colombia co flag nation country banner colombia +🇨🇵 flag clipperton island +🇨🇷 flag costa rica costa rica flag nation country banner costa rica +🇨🇺 flag cuba cu flag nation country banner cuba +🇨🇻 flag cape verde cabo verde flag nation country banner cape verde +🇨🇼 flag curacao curaçao flag nation country banner curacao +🇨🇽 flag christmas island christmas island flag nation country banner christmas island +🇨🇾 flag cyprus cy flag nation country banner cyprus +🇨🇿 flag czechia cz flag nation country banner czechia +🇩🇪 flag germany german nation flag country banner germany +🇩🇬 flag diego garcia +🇩🇯 flag djibouti dj flag nation country banner djibouti +🇩🇰 flag denmark dk flag nation country banner denmark +🇩🇲 flag dominica dm flag nation country banner dominica +🇩🇴 flag dominican republic dominican republic flag nation country banner dominican republic +🇩🇿 flag algeria dz flag nation country banner algeria +🇪🇦 flag ceuta melilla +🇪🇨 flag ecuador ec flag nation country banner ecuador +🇪🇪 flag estonia ee flag nation country banner estonia +🇪🇬 flag egypt eg flag nation country banner egypt +🇪🇭 flag western sahara western sahara flag nation country banner western sahara +🇪🇷 flag eritrea er flag nation country banner eritrea +🇪🇸 flag spain spain flag nation country banner spain +🇪🇹 flag ethiopia et flag nation country banner ethiopia +🇪🇺 flag european union european union flag banner +🇫🇮 flag finland fi flag nation country banner finland +🇫🇯 flag fiji fj flag nation country banner fiji +🇫🇰 flag falkland islands falkland islands malvinas flag nation country banner falkland islands +🇫🇲 flag micronesia micronesia federated states flag nation country banner micronesia +🇫🇴 flag faroe islands faroe islands flag nation country banner faroe islands +🇫🇷 flag france banner flag nation france french country france +🇬🇦 flag gabon ga flag nation country banner gabon +🇬🇧 flag united kingdom united kingdom great britain northern ireland flag nation country banner british UK english england union jack united kingdom +🇬🇩 flag grenada gd flag nation country banner grenada +🇬🇪 flag georgia ge flag nation country banner georgia +🇬🇫 flag french guiana french guiana flag nation country banner french guiana +🇬🇬 flag guernsey gg flag nation country banner guernsey +🇬🇭 flag ghana gh flag nation country banner ghana +🇬🇮 flag gibraltar gi flag nation country banner gibraltar +🇬🇱 flag greenland gl flag nation country banner greenland +🇬🇲 flag gambia gm flag nation country banner gambia +🇬🇳 flag guinea gn flag nation country banner guinea +🇬🇵 flag guadeloupe gp flag nation country banner guadeloupe +🇬🇶 flag equatorial guinea equatorial gn flag nation country banner equatorial guinea +🇬🇷 flag greece gr flag nation country banner greece +🇬🇸 flag south georgia south sandwich islands south georgia sandwich islands flag nation country banner south georgia south sandwich islands +🇬🇹 flag guatemala gt flag nation country banner guatemala +🇬🇺 flag guam gu flag nation country banner guam +🇬🇼 flag guinea bissau gw bissau flag nation country banner guinea bissau +🇬🇾 flag guyana gy flag nation country banner guyana +🇭🇰 flag hong kong sar china hong kong flag nation country banner hong kong sar china +🇭🇲 flag heard mcdonald islands +🇭🇳 flag honduras hn flag nation country banner honduras +🇭🇷 flag croatia hr flag nation country banner croatia +🇭🇹 flag haiti ht flag nation country banner haiti +🇭🇺 flag hungary hu flag nation country banner hungary +🇮🇨 flag canary islands canary islands flag nation country banner canary islands +🇮🇩 flag indonesia flag nation country banner indonesia +🇮🇪 flag ireland ie flag nation country banner ireland +🇮🇱 flag israel il flag nation country banner israel +🇮🇲 flag isle of man isle man flag nation country banner isle of man +🇮🇳 flag india in flag nation country banner india +🇮🇴 flag british indian ocean territory british indian ocean territory flag nation country banner british indian ocean territory +🇮🇶 flag iraq iq flag nation country banner iraq +🇮🇷 flag iran iran islamic republic flag nation country banner iran +🇮🇸 flag iceland is flag nation country banner iceland +🇮🇹 flag italy italy flag nation country banner italy +🇯🇪 flag jersey je flag nation country banner jersey +🇯🇲 flag jamaica jm flag nation country banner jamaica +🇯🇴 flag jordan jo flag nation country banner jordan +🇯🇵 flag japan japanese nation flag country banner japan +🇰🇪 flag kenya ke flag nation country banner kenya +🇰🇬 flag kyrgyzstan kg flag nation country banner kyrgyzstan +🇰🇭 flag cambodia kh flag nation country banner cambodia +🇰🇮 flag kiribati ki flag nation country banner kiribati +🇰🇲 flag comoros km flag nation country banner comoros +🇰🇳 flag st kitts nevis saint kitts nevis flag nation country banner st kitts nevis +🇰🇵 flag north korea north korea nation flag country banner north korea +🇰🇷 flag south korea south korea nation flag country banner south korea +🇰🇼 flag kuwait kw flag nation country banner kuwait +🇰🇾 flag cayman islands cayman islands flag nation country banner cayman islands +🇰🇿 flag kazakhstan kz flag nation country banner kazakhstan +🇱🇦 flag laos lao democratic republic flag nation country banner laos +🇱🇧 flag lebanon lb flag nation country banner lebanon +🇱🇨 flag st lucia saint lucia flag nation country banner st lucia +🇱🇮 flag liechtenstein li flag nation country banner liechtenstein +🇱🇰 flag sri lanka sri lanka flag nation country banner sri lanka +🇱🇷 flag liberia lr flag nation country banner liberia +🇱🇸 flag lesotho ls flag nation country banner lesotho +🇱🇹 flag lithuania lt flag nation country banner lithuania +🇱🇺 flag luxembourg lu flag nation country banner luxembourg +🇱🇻 flag latvia lv flag nation country banner latvia +🇱🇾 flag libya ly flag nation country banner libya +🇲🇦 flag morocco ma flag nation country banner morocco +🇲🇨 flag monaco mc flag nation country banner monaco +🇲🇩 flag moldova moldova republic flag nation country banner moldova +🇲🇪 flag montenegro me flag nation country banner montenegro +🇲🇫 flag st martin +🇲🇬 flag madagascar mg flag nation country banner madagascar +🇲🇭 flag marshall islands marshall islands flag nation country banner marshall islands +🇲🇰 flag north macedonia macedonia flag nation country banner north macedonia +🇲🇱 flag mali ml flag nation country banner mali +🇲🇲 flag myanmar mm flag nation country banner myanmar +🇲🇳 flag mongolia mn flag nation country banner mongolia +🇲🇴 flag macao sar china macao flag nation country banner macao sar china +🇲🇵 flag northern mariana islands northern mariana islands flag nation country banner northern mariana islands +🇲🇶 flag martinique mq flag nation country banner martinique +🇲🇷 flag mauritania mr flag nation country banner mauritania +🇲🇸 flag montserrat ms flag nation country banner montserrat +🇲🇹 flag malta mt flag nation country banner malta +🇲🇺 flag mauritius mu flag nation country banner mauritius +🇲🇻 flag maldives mv flag nation country banner maldives +🇲🇼 flag malawi mw flag nation country banner malawi +🇲🇽 flag mexico mx flag nation country banner mexico +🇲🇾 flag malaysia my flag nation country banner malaysia +🇲🇿 flag mozambique mz flag nation country banner mozambique +🇳🇦 flag namibia na flag nation country banner namibia +🇳🇨 flag new caledonia new caledonia flag nation country banner new caledonia +🇳🇪 flag niger ne flag nation country banner niger +🇳🇫 flag norfolk island norfolk island flag nation country banner norfolk island +🇳🇬 flag nigeria flag nation country banner nigeria +🇳🇮 flag nicaragua ni flag nation country banner nicaragua +🇳🇱 flag netherlands nl flag nation country banner netherlands +🇳🇴 flag norway no flag nation country banner norway +🇳🇵 flag nepal np flag nation country banner nepal +🇳🇷 flag nauru nr flag nation country banner nauru +🇳🇺 flag niue nu flag nation country banner niue +🇳🇿 flag new zealand new zealand flag nation country banner new zealand +🇴🇲 flag oman om symbol flag nation country banner oman +🇵🇦 flag panama pa flag nation country banner panama +🇵🇪 flag peru pe flag nation country banner peru +🇵🇫 flag french polynesia french polynesia flag nation country banner french polynesia +🇵🇬 flag papua new guinea papua new guinea flag nation country banner papua new guinea +🇵🇭 flag philippines ph flag nation country banner philippines +🇵🇰 flag pakistan pk flag nation country banner pakistan +🇵🇱 flag poland pl flag nation country banner poland +🇵🇲 flag st pierre miquelon saint pierre miquelon flag nation country banner st pierre miquelon +🇵🇳 flag pitcairn islands pitcairn flag nation country banner pitcairn islands +🇵🇷 flag puerto rico puerto rico flag nation country banner puerto rico +🇵🇸 flag palestinian territories palestine palestinian territories flag nation country banner palestinian territories +🇵🇹 flag portugal pt flag nation country banner portugal +🇵🇼 flag palau pw flag nation country banner palau +🇵🇾 flag paraguay py flag nation country banner paraguay +🇶🇦 flag qatar qa flag nation country banner qatar +🇷🇪 flag reunion réunion flag nation country banner reunion +🇷🇴 flag romania ro flag nation country banner romania +🇷🇸 flag serbia rs flag nation country banner serbia +🇷🇺 flag russia russian federation flag nation country banner russia +🇷🇼 flag rwanda rw flag nation country banner rwanda +🇸🇦 flag saudi arabia flag nation country banner saudi arabia +🇸🇧 flag solomon islands solomon islands flag nation country banner solomon islands +🇸🇨 flag seychelles sc flag nation country banner seychelles +🇸🇩 flag sudan sd flag nation country banner sudan +🇸🇪 flag sweden se flag nation country banner sweden +🇸🇬 flag singapore sg flag nation country banner singapore +🇸🇭 flag st helena saint helena ascension tristan cunha flag nation country banner st helena +🇸🇮 flag slovenia si flag nation country banner slovenia +🇸🇯 flag svalbard jan mayen +🇸🇰 flag slovakia sk flag nation country banner slovakia +🇸🇱 flag sierra leone sierra leone flag nation country banner sierra leone +🇸🇲 flag san marino san marino flag nation country banner san marino +🇸🇳 flag senegal sn flag nation country banner senegal +🇸🇴 flag somalia so flag nation country banner somalia +🇸🇷 flag suriname sr flag nation country banner suriname +🇸🇸 flag south sudan south sd flag nation country banner south sudan +🇸🇹 flag sao tome principe sao tome principe flag nation country banner sao tome principe +🇸🇻 flag el salvador el salvador flag nation country banner el salvador +🇸🇽 flag sint maarten sint maarten dutch flag nation country banner sint maarten +🇸🇾 flag syria syrian arab republic flag nation country banner syria +🇸🇿 flag eswatini sz flag nation country banner eswatini +🇹🇦 flag tristan da cunha +🇹🇨 flag turks caicos islands turks caicos islands flag nation country banner turks caicos islands +🇹🇩 flag chad td flag nation country banner chad +🇹🇫 flag french southern territories french southern territories flag nation country banner french southern territories +🇹🇬 flag togo tg flag nation country banner togo +🇹🇭 flag thailand th flag nation country banner thailand +🇹🇯 flag tajikistan tj flag nation country banner tajikistan +🇹🇰 flag tokelau tk flag nation country banner tokelau +🇹🇱 flag timor leste timor leste flag nation country banner timor leste +🇹🇲 flag turkmenistan flag nation country banner turkmenistan +🇹🇳 flag tunisia tn flag nation country banner tunisia +🇹🇴 flag tonga to flag nation country banner tonga +🇹🇷 flag turkey turkey flag nation country banner turkey +🇹🇹 flag trinidad tobago trinidad tobago flag nation country banner trinidad tobago +🇹🇻 flag tuvalu flag nation country banner tuvalu +🇹🇼 flag taiwan tw flag nation country banner taiwan +🇹🇿 flag tanzania tanzania united republic flag nation country banner tanzania +🇺🇦 flag ukraine ua flag nation country banner ukraine +🇺🇬 flag uganda ug flag nation country banner uganda +🇺🇲 flag u s outlying islands +🇺🇳 flag united nations un flag banner +🇺🇸 flag united states united states america flag nation country banner united states +🇺🇾 flag uruguay uy flag nation country banner uruguay +🇺🇿 flag uzbekistan uz flag nation country banner uzbekistan +🇻🇦 flag vatican city vatican city flag nation country banner vatican city +🇻🇨 flag st vincent grenadines saint vincent grenadines flag nation country banner st vincent grenadines +🇻🇪 flag venezuela ve bolivarian republic flag nation country banner venezuela +🇻🇬 flag british virgin islands british virgin islands bvi flag nation country banner british virgin islands +🇻🇮 flag u s virgin islands virgin islands us flag nation country banner u s virgin islands +🇻🇳 flag vietnam viet nam flag nation country banner vietnam +🇻🇺 flag vanuatu vu flag nation country banner vanuatu +🇼🇫 flag wallis futuna wallis futuna flag nation country banner wallis futuna +🇼🇸 flag samoa ws flag nation country banner samoa +🇽🇰 flag kosovo xk flag nation country banner kosovo +🇾🇪 flag yemen ye flag nation country banner yemen +🇾🇹 flag mayotte yt flag nation country banner mayotte +🇿🇦 flag south africa south africa flag nation country banner south africa +🇿🇲 flag zambia zm flag nation country banner zambia +🇿🇼 flag zimbabwe zw flag nation country banner zimbabwe +🏴󠁧󠁢󠁥󠁮󠁧󠁿 flag england flag english +🏴󠁧󠁢󠁳󠁣󠁴󠁿 flag scotland flag scottish +🏴󠁧󠁢󠁷󠁬󠁳󠁿 flag wales flag welsh +🥲 smiling face with tear sad cry pretend +🥸 disguised face pretent brows glasses moustache +🤌 pinched fingers size tiny small +🫀 anatomical heart health heartbeat +🫁 lungs breathe +🥷 ninja ninjutsu skills japanese +🤵‍♂️ man in tuxedo formal fashion +🤵‍♀️ woman in tuxedo formal fashion +👰‍♂️ man with veil wedding marriage +👰‍♀️ woman with veil wedding marriage +👩‍🍼 woman feeding baby birth food +👨‍🍼 man feeding baby birth food +🧑‍🍼 person feeding baby birth food +🧑‍🎄 mx claus christmas +🫂 people hugging care +🐈‍⬛ black cat superstition luck +🦬 bison ox +🦣 mammoth elephant tusks +🦫 beaver animal rodent +🐻‍❄️ polar bear animal arctic +🦤 dodo animal bird +🪶 feather bird fly +🦭 seal animal creature sea +🪲 beetle insect +🪳 cockroach insect pests +🪰 fly insect +🪱 worm animal +🪴 potted plant greenery house +🫐 blueberries fruit +🫒 olive fruit +🫑 bell pepper fruit plant +🫓 flatbread flour food +🫔 tamale food masa +🫕 fondue cheese pot food +🫖 teapot drink hot +🧋 bubble tea taiwan boba milk tea straw +🪨 rock stone +🪵 wood nature timber trunk +🛖 hut house structure +🛻 pickup truck car transportation +🛼 roller skate footwear sports +🪄 magic wand supernature power +🪅 pinata mexico candy celebration +🪆 nesting dolls matryoshka toy +🪡 sewing needle stitches +🪢 knot rope scout +🩴 thong sandal footwear summer +🪖 military helmet army protection +🪗 accordion music +🪘 long drum music +🪙 coin money currency +🪃 boomerang weapon +🪚 carpentry saw cut chop +🪛 screwdriver tools +🪝 hook tools +🪜 ladder tools +🛗 elevator lift +🪞 mirror reflection +🪟 window scenery +🪠 plunger toilet +🪤 mouse trap cheese +🪣 bucket water container +🪥 toothbrush hygiene dental +🪦 headstone death rip grave +🪧 placard announcement +⚧️ transgender symbol lgbtq +🏳️‍⚧️ transgender flag lgbtq +😶‍🌫️ face in clouds shower steam dream +😮‍💨 face exhaling relieve relief tired sigh +😵‍💫 face with spiral eyes sick ill confused nauseous nausea +❤️‍🔥 heart on fire passionate enthusiastic +❤️‍🩹 mending heart broken heart bandage wounded +🧔‍♂️ man beard facial hair +🧔‍♀️ woman beard facial hair +🫠 melting face hot heat +🫢 face with open eyes and hand over mouth silence secret shock surprise +🫣 face with peeking eye scared frightening embarrassing +🫡 saluting face respect salute +🫥 dotted line face invisible lonely isolation depression +🫤 face with diagonal mouth skeptic confuse frustrated indifferent +🥹 face holding back tears touched gratitude +🫱 rightwards hand palm offer +🫲 leftwards hand palm offer +🫳 palm down hand palm drop +🫴 palm up hand lift offer demand +🫰 hand with index finger and thumb crossed heart love money expensive +🫵 index pointing at the viewer you recruit +🫶 heart hands love appreciation support +🫦 biting lip flirt sexy pain worry +🫅 person with crown royalty power +🫃 pregnant man baby belly +🫄 pregnant person baby belly +🧌 troll mystical monster +🪸 coral ocean sea reef +🪷 lotus flower calm meditation +🪹 empty nest bird +🪺 nest with eggs bird +🫘 beans food +🫗 pouring liquid cup water +🫙 jar container sauce +🛝 playground slide fun park +🛞 wheel car transport +🛟 ring buoy life saver life preserver +🪬 hamsa religion protection +🪩 mirror ball disco dance party +🪫 low battery drained dead +🩼 crutch accessibility assist +🩻 x-ray skeleton medicine +🫧 bubbles soap fun carbonation sparkling +🪪 identification card document +🟰 heavy equals sign math diff --git a/new-config/.config/rofi/scripts/rofi_mount b/user/.config/rofi/scripts/rofi_mount similarity index 100% rename from new-config/.config/rofi/scripts/rofi_mount rename to user/.config/rofi/scripts/rofi_mount diff --git a/user/.config/rofi/scripts/rofi_power b/user/.config/rofi/scripts/rofi_power index dccea2e66..3f5658903 100755 --- a/user/.config/rofi/scripts/rofi_power +++ b/user/.config/rofi/scripts/rofi_power @@ -2,52 +2,57 @@ # ***This script was made by Clay Gomera (Drake)*** # - Description: A simple power menu rofi script -# - Dependencies: rofi, power-profiles-daemon +# - Dependencies: rofi, power-profiles-daemon, swaylock +# + +## MENU PROMPT ## +menu="rofi -dmenu -i -p" + +## CURRENT WALLPAPER FOR LOCKSCREEN ## +currwall=$(tail --l 1 "$HOME/.wbg" | awk '{print $3}') ## OPTIONS ## -option1=" Logout" -option2=" Reboot" +option1=" Logout" +option2=" Reboot" option3=" Power off" -option4="鈴 Suspend" -option5=" Lock" -option6=" Change power profile" +option4="󰒲 Suspend" +option5=" Lock" +option6=" Change power profile" option7=" Cancel" - -## OPTIONS ARRAY ## options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6\n$option7" ## POWER PROFILE OPTIONS ## -pwr1=" Performance" -pwr2=" Balanced" -pwr3=" Power Saver" +pwr1="󰓅 Performance" +pwr2="󰾅 Balanced" +pwr3="󰾆 Power Saver" pwr4=" Cancel" - -## POWER PROFILES ARRAY ## pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4" ## MAIN ACTION COMMAND ## -action=$(echo -e "$options" | rofi -dmenu -i -p "  Power Options ") +action=$(echo -e "$options" | $menu "  Power Options ") case "$action" in - $option1*) - pkill X;; - $option2*) + $option1) + pkill Hyprland;; + $option2) systemctl reboot || loginctl reboot;; - $option3*) + $option3) systemctl poweroff || loginctl poweroff;; - $option4*) - betterlockscreen --suspend;; - $option5*) - betterlockscreen -l;; - $option6*) + $option4) + swaylock -i "$currwall" & + sleep 0.1 + systemctl suspend;; + $option5) + swaylock -i "$currwall";; + $option6) currentpwr=$(powerprofilesctl get) if [ "$currentpwr" = "performance" ]; then - currentpwr=" Performance" - elif [ "$currentpwr" = "power-saver" ]; then - currentpwr=" Power Saver" + currentpwr="$pwr1" elif [ "$currentpwr" = "balanced" ]; then - currentpwr=" Balanced" + currentpwr="$pwr2" + elif [ "$currentpwr" = "power-saver" ]; then + currentpwr="$pwr3" fi - pwraction=$(echo -e "$pwrs" | rofi -dmenu -i -p "  Power Profile Menu - Currently set to: ${currentpwr} ") + pwraction=$(echo -e "$pwrs" | $menu "  Power Profile Menu - Currently set to: ${currentpwr} ") case "$pwraction" in $pwr1*) powerprofilesctl set performance && notify-send "Power profile switched to performance";; @@ -58,7 +63,6 @@ case "$action" in $pwr4*) exit 0 esac;; - $option7*) + $option7) exit 0 esac - diff --git a/user/.config/rofi/scripts/rofi_scrot b/user/.config/rofi/scripts/rofi_scrot index 6641b74c1..f57c257be 100755 --- a/user/.config/rofi/scripts/rofi_scrot +++ b/user/.config/rofi/scripts/rofi_scrot @@ -1,63 +1,93 @@ #!/usr/bin/env bash # ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple screenshot dmenu script -# - Dependencies: scrot, dmenu, notify-send +# - Description: A simple screenshot menu rofi script +# - Dependencies: rofi, grim, slurp, wf-recorder +# -## CREATING SCREENSHOT FOLDER ## -mkdir -p "$HOME/Pictures/Screenshots" -cd "$HOME/Pictures/Screenshots" || exit 0 +# screenshot directory +scrdir="$HOME/Pictures/Screenshots" +mkdir -p "$scrdir" +cd "$scrdir" || exit 1 +filename=$(date "+%d-%m-%Y_%H:%M:%S") -## CHOICES ## -cho1=" Entire screen" -cho2=" Entire screen with delay" -cho3=" Focused window" -cho4=" Select area" -chos="$cho1\n$cho2\n$cho3\n$cho4" +# options array +option1=" Capture the screen" +option2=" Capture region" +option3="󰕧 Record the screen" +option4="󰕩 Record region" +option5="󰕧 Record the screen and audio" +option6="Exit" +options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6" -## DELAY OPTIONS ## -del1=" 3 sec delay" -del2=" 5 sec delay" -del3=" 10 sec delay" -dels="$del1\n$del2\n$del3" - -## DELAY FUNCTION ## -delays() { - del=$(echo -e "$dels" | rofi -dmenu -i -p "  Select Delay "); - case $del in - "$del1") - scrot -d 3 && notify-send "Screenshot saved";; - "$del2") - scrot -d 5 && notify-send "Screenshot saved";; - "$del3") - scrot -d 10 && notify-send "Screenshot saved" - esac +# countdown function +countdown() { + notify-send "Screenshot" "Executing in 3 seconds" -t 1000 + sleep 1 + notify-send "Screenshot" "Executing in 2 seconds" -t 1000 + sleep 1 + notify-send "Screenshot" "Executing in 1 seconds" -t 1000 + sleep 2 } -## ENTIRE SCREEN FUNCTION ## -screen() { - scrot && notify-send "Screenshot saved" -} +# show the help output with --help or -h arguments +if [[ $1 == '--help' ]] || [[ $1 = '-h' ]] + then + echo ### rofi-screenshot + echo USAGE: rofi-screenshot [OPTION] + echo \(no option\) + echo " show the screenshot menu" + echo -s, --stop + echo " stop recording" + echo -h, --help + echo " this screen" + exit 1 +fi -## FOCUSED WINDOW FUNCTION -window() { - scrot -u -b && notify-send "Screenshot saved." -} +# stop recording with -s or --stop arguments +if [[ $1 = '--stop' ]] || [[ $1 = '-s' ]] + then + killall -s SIGINT wf-recorder + exit 1 +fi -## SELECTED AREA FUNCTION ## -area() { - scrot -s && notify-send "Screenshot saved." -} - -## MAIN ACTION ## -choice=$(echo -e "$chos" | rofi -dmenu -i -p "  Sreenshot Menu ") +# run the selected command +choice=$(echo -e "$options" | rofi -dmenu -p " 󰄀 Screenshot " ) case $choice in - "$cho1") - screen;; - "$cho2") - delays;; - "$cho3") - window;; - "$cho4") - area + $option1) + countdown + grim "$filename.jpg" + notify-send "Screenshot" "Screenshot saved to $scrdir" + ;; + $option2) + notify-send "Screenshot" "Select a region to capture" + grim -g "$(slurp)" "$filename.jpg" + notify-send "Screenshot" "Region saved to $scrdir" + ;; + $option3) + countdown + wf-recorder --codec=h264_vaapi -d /dev/dri/renderD128 -f "$filename.mp4" + notify-send "Screenshot" "Recording saved to $scrdir" + ;; + $option4) + notify-send "Screenshot" "Select a region to record" + wf-recorder --codec=h264_vaapi -d /dev/dri/renderD128 -g "$(slurp)" -f "$filename.mp4" + notify-send "Screenshot" "Recording saved to $scrdir" + ;; + $option5) + devices=$(pactl list sources | grep "Name" | awk '{print $2}') + chosendevice=$(echo -e "$devices" | rofi -dmenu -p " Select audio input ") + if [ "$chosendevice" ]; then + device="$chosendevice" + countdown + wf-recorder --audio="$device" --codec=h264_vaapi -d /dev/dri/renderD128 -f "$filename.mp4" + else + notify-send "Please select an audio input device" + exit 1 + fi + notify-send "Screenshot" "Recording saved to $scrdir" + ;; + $option6) + exit 0 + ;; esac diff --git a/user/.config/rofi/scripts/rofi_wall b/user/.config/rofi/scripts/rofi_wall index db3e3dc06..4bd202afa 100755 --- a/user/.config/rofi/scripts/rofi_wall +++ b/user/.config/rofi/scripts/rofi_wall @@ -2,43 +2,23 @@ # ***This script was made by Clay Gomera (Drake)*** # - Description: A simple wallpaper changer script -# - Dependencies: rofi, fd, feh +# - Dependencies: rofi, fd, swaybg -## MAIN VARIABLES AND COMMANDS ## -walldir="Pictures/Wallpapers" # wallpapers folder, change it to yours, make sure that it ends with a / -cd "$walldir" || exit +## MENU PROMPT ## +menu="rofi -dmenu -i -p" -## SELECT PICTURE FUNCTION ## -selectpic() { - wallpaper=$(fd -p "$walldir" | rofi -dmenu -i -p "Select a wallpaper:") - if [ "$wallpaper" ]; then - chosenwall=$wallpaper - else - exit 0 - fi -} -selectpic +## WALLPAPER DIRECTORY ## +walldir="$HOME/Pictures/Wallpapers" # wallpapers folder, change it to yours -## WALLPAPER SETTING OPTIONS ## -option1="Fill" -option2="Center" -option3="Tile" -option4="Max" -option5="Scale" -options="$option1\n$option2\n$option3\n$option4\n$option5" +## SELECT PICTURE ## +cd "$walldir" || exit 1 +wallpaper=$(fd -p "$walldir" | $menu " 󰋩 Wallpaper Selector ") +if [ "$wallpaper" ]; then + chosenwall=$wallpaper +else + exit 0 +fi -## MAIN ACTION ## -action=$(echo -e "$options" | rofi -dmenu -i -p "Chose the format:") -case "$action" in - $option1*) - feh --bg-fill "$chosenwall";; - $option2*) - feh --bg-center "$chosenwall";; - $option3*) - feh --bg-tile "$chosenwall";; - $option4*) - feh --bg-max "$chosenwall";; - $option5*) - feh --bg-scale "$chosenwall";; -esac +swww img "$chosenwall" +echo -e "#!/bin/sh\nswww img $walldir/$chosenwall" > "$HOME/.wbg" exit 0 diff --git a/user/.config/rofi/scripts/rofi_wifi b/user/.config/rofi/scripts/rofi_wifi index 3f6a3cfde..92eb351c7 100755 --- a/user/.config/rofi/scripts/rofi_wifi +++ b/user/.config/rofi/scripts/rofi_wifi @@ -2,21 +2,23 @@ # ***This script was made by Clay Gomera (Drake)*** # - Description: A simple wifi rofi script -# - Dependencies: rofi, NetworkManager +# - Dependencies: rofi, NetworkManager, io.elementary.capnet-assist -## ROFI VARIABLES ## -ROFI="rofi -dmenu -i -p" +## MENU PROMPT ## +menu="rofi -dmenu -i -p" ## MAIN OPTIONS ## option1=" Turn on WiFi" option2=" Turn off WiFi" -option3="睊 Disconnect WiFi" -option4="直 Connect WiFi" -option5=" Setup captive portal" -option6=" Cancel" +option3="󱛅 Disconnect WiFi" +option4="󱛃 Connect WiFi" +option5="󱛆 Setup captive portal" +option6=" Exit" options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6" +## GRAB WIFI INTERFACE ## wlan=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f1 | head -1) + ## TURN OFF WIFI FUNCTION ## turnoff() { nmcli radio wifi off @@ -43,18 +45,18 @@ disconnect() { connect() { notify-send "Scannig networks, please wait" sleep 1 - bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $ROFI "Select Wifi  :" | cut -d' ' -f1) - } + bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | $menu " Select a Wifi Network  " | cut -d' ' -f1) +} ## SELECT PASSWORD FUNCTION ## password() { - pass=$(echo " " | $ROFI "Enter Password  :") - } + pass=$(echo " " | $menu " Enter Password  " -password) +} ## MAIN CONNECTION COMMAND ## action() { nmcli device wifi connect "$bssid" password "$pass" || nmcli device wifi connect "$bssid" - } +} ## CHECKING IF WIFI IS WORKING check() { @@ -69,21 +71,29 @@ check() { } ## MAIN ACTION COMMANDS ## -cases=$(echo -e "$options" | $ROFI "  Wifi Settings " ) -case "$cases" in - $option1*) - turnon;; - $option2*) - turnoff;; - $option3*) - disconnect;; - $option4*) - connect; - password; - action; - check;; - $option5*) - io.elementary.capnet-assist;; - $option6*) - exit 0 -esac +cases=$(echo -e "$options" | $menu "  Wifi Settings " ) +if [ -n "$cases" ]; then + case "$cases" in + $option1) + turnon;; + $option2) + turnoff;; + $option3) + disconnect;; + $option4) + connect; + if [ -n "$bssid" ]; then + password; + action; + check; + else + exit 0; + fi;; + $option5) + io.elementary.capnet-assist;; + $option6) + exit 0; + esac +else + exit 0; +fi diff --git a/user/.config/suckless/dmenu/Makefile b/user/.config/suckless/dmenu/Makefile deleted file mode 100644 index a03a95c30..000000000 --- a/user/.config/suckless/dmenu/Makefile +++ /dev/null @@ -1,64 +0,0 @@ -# dmenu - dynamic menu -# See LICENSE file for copyright and license details. - -include config.mk - -SRC = drw.c dmenu.c stest.c util.c -OBJ = $(SRC:.c=.o) - -all: options dmenu stest - -options: - @echo dmenu build options: - @echo "CFLAGS = $(CFLAGS)" - @echo "LDFLAGS = $(LDFLAGS)" - @echo "CC = $(CC)" - -.c.o: - $(CC) -c $(CFLAGS) $< - -config.h: - cp config.def.h $@ - -$(OBJ): arg.h config.h config.mk drw.h - -dmenu: dmenu.o drw.o util.o - $(CC) -o $@ dmenu.o drw.o util.o $(LDFLAGS) - -stest: stest.o - $(CC) -o $@ stest.o $(LDFLAGS) - -clean: - rm -f dmenu stest $(OBJ) dmenu-$(VERSION).tar.gz - -dist: clean - mkdir -p dmenu-$(VERSION) - cp LICENSE Makefile README arg.h config.def.h config.mk dmenu.1\ - drw.h util.h dmenu_path dmenu_run stest.1 $(SRC)\ - dmenu-$(VERSION) - tar -cf dmenu-$(VERSION).tar dmenu-$(VERSION) - gzip dmenu-$(VERSION).tar - rm -rf dmenu-$(VERSION) - -install: all - mkdir -p $(DESTDIR)$(PREFIX)/bin - cp -f dmenu dmenu_path dmenu_run stest $(DESTDIR)$(PREFIX)/bin - chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu - chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_path - chmod 755 $(DESTDIR)$(PREFIX)/bin/dmenu_run - chmod 755 $(DESTDIR)$(PREFIX)/bin/stest - mkdir -p $(DESTDIR)$(MANPREFIX)/man1 - sed "s/VERSION/$(VERSION)/g" < dmenu.1 > $(DESTDIR)$(MANPREFIX)/man1/dmenu.1 - sed "s/VERSION/$(VERSION)/g" < stest.1 > $(DESTDIR)$(MANPREFIX)/man1/stest.1 - chmod 644 $(DESTDIR)$(MANPREFIX)/man1/dmenu.1 - chmod 644 $(DESTDIR)$(MANPREFIX)/man1/stest.1 - -uninstall: - rm -f $(DESTDIR)$(PREFIX)/bin/dmenu\ - $(DESTDIR)$(PREFIX)/bin/dmenu_path\ - $(DESTDIR)$(PREFIX)/bin/dmenu_run\ - $(DESTDIR)$(PREFIX)/bin/stest\ - $(DESTDIR)$(MANPREFIX)/man1/dmenu.1\ - $(DESTDIR)$(MANPREFIX)/man1/stest.1 - -.PHONY: all options clean dist install uninstall diff --git a/user/.config/suckless/dmenu/arg.h b/user/.config/suckless/dmenu/arg.h deleted file mode 100644 index e94e02bba..000000000 --- a/user/.config/suckless/dmenu/arg.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copy me if you can. - * by 20h - */ - -#ifndef ARG_H__ -#define ARG_H__ - -extern char *argv0; - -/* use main(int argc, char *argv[]) */ -#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\ - argv[0] && argv[0][0] == '-'\ - && argv[0][1];\ - argc--, argv++) {\ - char argc_;\ - char **argv_;\ - int brk_;\ - if (argv[0][1] == '-' && argv[0][2] == '\0') {\ - argv++;\ - argc--;\ - break;\ - }\ - for (brk_ = 0, argv[0]++, argv_ = argv;\ - argv[0][0] && !brk_;\ - argv[0]++) {\ - if (argv_ != argv)\ - break;\ - argc_ = argv[0][0];\ - switch (argc_) - -#define ARGEND }\ - } - -#define ARGC() argc_ - -#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\ - ((x), abort(), (char *)0) :\ - (brk_ = 1, (argv[0][1] != '\0')?\ - (&argv[0][1]) :\ - (argc--, argv++, argv[0]))) - -#define ARGF() ((argv[0][1] == '\0' && argv[1] == NULL)?\ - (char *)0 :\ - (brk_ = 1, (argv[0][1] != '\0')?\ - (&argv[0][1]) :\ - (argc--, argv++, argv[0]))) - -#endif diff --git a/user/.config/suckless/dmenu/config.def.h b/user/.config/suckless/dmenu/config.def.h deleted file mode 100644 index 46c398db0..000000000 --- a/user/.config/suckless/dmenu/config.def.h +++ /dev/null @@ -1,27 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -/* Default settings; can be overriden by command line. */ - -static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ -static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ -/* -fn option overrides fonts[0]; default X11 font or font set */ -static const char *fonts[] = { - "mononoki Nerd Font Mono:size=10" -}; -static const char *prompt = NULL; /* -p option; prompt to the left of input field */ -static const char *colors[SchemeLast][2] = { - /* fg bg */ - [SchemeNorm] = { "#ebdbb2", "#1d2021" }, - [SchemeSel] = { "#ebdbb2", "#cc241d" }, - [SchemeSelHighlight] = { "#fbf1c7", "#282828" }, - [SchemeNormHighlight] = { "#fbf1c7", "#282828" }, - [SchemeOut] = { "#ebdbb2", "#8ec07c" }, - [SchemeOutHighlight] = { "#fabd2f", "#83a598" }, -}; -/* -l option; if nonzero, dmenu uses vertical list with given number of lines */ -static unsigned int lines = 0; - -/* - * Characters not considered part of a word while deleting words - * for example: " /?\"&[]" - */ -static const char worddelimiters[] = " "; diff --git a/user/.config/suckless/dmenu/config.mk b/user/.config/suckless/dmenu/config.mk deleted file mode 100644 index fd6ff0560..000000000 --- a/user/.config/suckless/dmenu/config.mk +++ /dev/null @@ -1,32 +0,0 @@ -# dmenu version -VERSION = 5.2 - -# paths -PREFIX = /usr/local -MANPREFIX = $(PREFIX)/share/man - -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib - -# Xinerama, comment if you don't want it -XINERAMALIBS = -lXinerama -XINERAMAFLAGS = -DXINERAMA - -# freetype -FREETYPELIBS = -lfontconfig -lXft -FREETYPEINC = /usr/include/freetype2 -# OpenBSD (uncomment) -#FREETYPEINC = $(X11INC)/freetype2 -#MANPREFIX = ${PREFIX}/man - -# includes and libs -INCS = -I$(X11INC) -I$(FREETYPEINC) -LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS) -lm - -# flags -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS) -CFLAGS = -std=c99 -pedantic -Wall -Os $(INCS) $(CPPFLAGS) -LDFLAGS = $(LIBS) - -# compiler and linker -CC = cc diff --git a/user/.config/suckless/dmenu/dmenu.1 b/user/.config/suckless/dmenu/dmenu.1 deleted file mode 100644 index 762f7071c..000000000 --- a/user/.config/suckless/dmenu/dmenu.1 +++ /dev/null @@ -1,197 +0,0 @@ -.TH DMENU 1 dmenu\-VERSION -.SH NAME -dmenu \- dynamic menu -.SH SYNOPSIS -.B dmenu -.RB [ \-bfivP ] -.RB [ \-l -.IR lines ] -.RB [ \-m -.IR monitor ] -.RB [ \-p -.IR prompt ] -.RB [ \-fn -.IR font ] -.RB [ \-nb -.IR color ] -.RB [ \-nf -.IR color ] -.RB [ \-sb -.IR color ] -.RB [ \-sf -.IR color ] -.RB [ \-w -.IR windowid ] -.P -.BR dmenu_run " ..." -.SH DESCRIPTION -.B dmenu -is a dynamic menu for X, which reads a list of newline\-separated items from -stdin. When the user selects an item and presses Return, their choice is printed -to stdout and dmenu terminates. Entering text will narrow the items to those -matching the tokens in the input. -.P -.B dmenu_run -is a script used by -.IR dwm (1) -which lists programs in the user's $PATH and runs the result in their $SHELL. -.SH OPTIONS -.TP -.B \-b -dmenu appears at the bottom of the screen. -.TP -.B \-f -dmenu grabs the keyboard before reading stdin if not reading from a tty. This -is faster, but will lock up X until stdin reaches end\-of\-file. -.TP -.B \-i -dmenu matches menu items case insensitively. -.TP -.B \-P -dmenu will not directly display the keyboard input, but instead replace it with dots. All data from stdin will be ignored. -.TP -.BI \-l " lines" -dmenu lists items vertically, with the given number of lines. -.TP -.BI \-m " monitor" -dmenu is displayed on the monitor number supplied. Monitor numbers are starting -from 0. -.TP -.BI \-p " prompt" -defines the prompt to be displayed to the left of the input field. -.TP -.BI \-fn " font" -defines the font or font set used. -.TP -.BI \-nb " color" -defines the normal background color. -.IR #RGB , -.IR #RRGGBB , -and X color names are supported. -.TP -.BI \-nf " color" -defines the normal foreground color. -.TP -.BI \-sb " color" -defines the selected background color. -.TP -.BI \-sf " color" -defines the selected foreground color. -.TP -.B \-v -prints version information to stdout, then exits. -.TP -.BI \-w " windowid" -embed into windowid. -.SH USAGE -dmenu is completely controlled by the keyboard. Items are selected using the -arrow keys, page up, page down, home, and end. -.TP -.B Tab -Copy the selected item to the input field. -.TP -.B Return -Confirm selection. Prints the selected item to stdout and exits, returning -success. -.TP -.B Ctrl-Return -Confirm selection. Prints the selected item to stdout and continues. -.TP -.B Shift\-Return -Confirm input. Prints the input text to stdout and exits, returning success. -.TP -.B Escape -Exit without selecting an item, returning failure. -.TP -.B Ctrl-Left -Move cursor to the start of the current word -.TP -.B Ctrl-Right -Move cursor to the end of the current word -.TP -.B C\-a -Home -.TP -.B C\-b -Left -.TP -.B C\-c -Escape -.TP -.B C\-d -Delete -.TP -.B C\-e -End -.TP -.B C\-f -Right -.TP -.B C\-g -Escape -.TP -.B C\-h -Backspace -.TP -.B C\-i -Tab -.TP -.B C\-j -Return -.TP -.B C\-J -Shift-Return -.TP -.B C\-k -Delete line right -.TP -.B C\-m -Return -.TP -.B C\-M -Shift-Return -.TP -.B C\-n -Down -.TP -.B C\-p -Up -.TP -.B C\-u -Delete line left -.TP -.B C\-w -Delete word left -.TP -.B C\-y -Paste from primary X selection -.TP -.B C\-Y -Paste from X clipboard -.TP -.B M\-b -Move cursor to the start of the current word -.TP -.B M\-f -Move cursor to the end of the current word -.TP -.B M\-g -Home -.TP -.B M\-G -End -.TP -.B M\-h -Up -.TP -.B M\-j -Page down -.TP -.B M\-k -Page up -.TP -.B M\-l -Down -.SH SEE ALSO -.IR dwm (1), -.IR stest (1) diff --git a/user/.config/suckless/dmenu/dmenu.c b/user/.config/suckless/dmenu/dmenu.c deleted file mode 100644 index 2332a9106..000000000 --- a/user/.config/suckless/dmenu/dmenu.c +++ /dev/null @@ -1,1073 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#ifdef XINERAMA -#include -#endif -#include - -#include "drw.h" -#include "util.h" - -/* macros */ -#define INTERSECT(x,y,w,h,r) (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \ - * MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org))) -#define LENGTH(X) (sizeof X / sizeof X[0]) -#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) - -/* enums */ -enum { SchemeNorm, SchemeSel, SchemeOut, SchemeNormHighlight, SchemeSelHighlight, SchemeOutHighlight, SchemeLast }; /* color schemes */ -struct item { - char *text; - struct item *left, *right; - int out; - double distance; -}; - -static char text[BUFSIZ] = ""; -static char *embed; -static int bh, mw, mh; -static int inputw = 0, promptw, passwd = 0; -static int lrpad; /* sum of left and right padding */ -static size_t cursor; -static struct item *items = NULL; -static struct item *matches, *matchend; -static struct item *prev, *curr, *next, *sel; -static int mon = -1, screen; - -static Atom clip, utf8; -static Display *dpy; -static Window root, parentwin, win; -static XIC xic; - -static Drw *drw; -static Clr *scheme[SchemeLast]; - -#include "config.h" - -static int (*fstrncmp)(const char *, const char *, size_t) = strncmp; -static char *(*fstrstr)(const char *, const char *) = strstr; - -static unsigned int -textw_clamp(const char *str, unsigned int n) -{ - unsigned int w = drw_fontset_getwidth_clamp(drw, str, n) + lrpad; - return MIN(w, n); -} - -static void -appenditem(struct item *item, struct item **list, struct item **last) -{ - if (*last) - (*last)->right = item; - else - *list = item; - - item->left = *last; - item->right = NULL; - *last = item; -} - -static void -calcoffsets(void) -{ - int i, n; - - if (lines > 0) - n = lines * bh; - else - n = mw - (promptw + inputw + TEXTW("<") + TEXTW(">")); - /* calculate which items will begin the next page and previous page */ - for (i = 0, next = curr; next; next = next->right) - if ((i += (lines > 0) ? bh : textw_clamp(next->text, n)) > n) - break; - for (i = 0, prev = curr; prev && prev->left; prev = prev->left) - if ((i += (lines > 0) ? bh : textw_clamp(prev->left->text, n)) > n) - break; -} - -static void -cleanup(void) -{ - size_t i; - - XUngrabKey(dpy, AnyKey, AnyModifier, root); - for (i = 0; i < SchemeLast; i++) - free(scheme[i]); - for (i = 0; items && items[i].text; ++i) - free(items[i].text); - free(items); - drw_free(drw); - XSync(dpy, False); - XCloseDisplay(dpy); -} - -static char * -cistrstr(const char *h, const char *n) -{ - size_t i; - - if (!n[0]) - return (char *)h; - - for (; *h; ++h) { - for (i = 0; n[i] && tolower((unsigned char)n[i]) == - tolower((unsigned char)h[i]); ++i) - ; - if (n[i] == '\0') - return (char *)h; - } - return NULL; -} - -static void -drawhighlights(struct item *item, int x, int y, int maxw) -{ - char restorechar, tokens[sizeof text], *highlight, *token; - int indentx, highlightlen; - - drw_setscheme(drw, scheme[item == sel ? SchemeSelHighlight : item->out ? SchemeOutHighlight : SchemeNormHighlight]); - strcpy(tokens, text); - for (token = strtok(tokens, " "); token; token = strtok(NULL, " ")) { - highlight = fstrstr(item->text, token); - while (highlight) { - // Move item str end, calc width for highlight indent, & restore - highlightlen = highlight - item->text; - restorechar = *highlight; - item->text[highlightlen] = '\0'; - indentx = TEXTW(item->text); - item->text[highlightlen] = restorechar; - - // Move highlight str end, draw highlight, & restore - restorechar = highlight[strlen(token)]; - highlight[strlen(token)] = '\0'; - if (indentx - (lrpad / 2) - 1 < maxw) - drw_text( - drw, - x + indentx - (lrpad / 2) - 1, - y, - MIN(maxw - indentx, TEXTW(highlight) - lrpad), - bh, 0, highlight, 0 - ); - highlight[strlen(token)] = restorechar; - - if (strlen(highlight) - strlen(token) < strlen(token)) break; - highlight = fstrstr(highlight + strlen(token), token); - } - } -} - -static int -drawitem(struct item *item, int x, int y, int w) -{ - if (item == sel) - drw_setscheme(drw, scheme[SchemeSel]); - else if (item->out) - drw_setscheme(drw, scheme[SchemeOut]); - else - drw_setscheme(drw, scheme[SchemeNorm]); - - int r = drw_text(drw, x, y, w, bh, lrpad / 2, item->text, 0); - drawhighlights(item, x, y, w); - return r; -} - -static void -drawmenu(void) -{ - unsigned int curpos; - struct item *item; - int x = 0, y = 0, w; - char *censort; - - drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, 0, 0, mw, mh, 1, 1); - - if (prompt && *prompt) { - drw_setscheme(drw, scheme[SchemeSel]); - x = drw_text(drw, x, 0, promptw, bh, lrpad / 2, prompt, 0); - } - /* draw input field */ - w = (lines > 0 || !matches) ? mw - x : inputw; - drw_setscheme(drw, scheme[SchemeNorm]); - if (passwd) { - censort = ecalloc(1, sizeof(text)); - memset(censort, '.', strlen(text)); - drw_text(drw, x, 0, w, bh, lrpad / 2, censort, 0); - free(censort); - } else drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); - - curpos = TEXTW(text) - TEXTW(&text[cursor]); - if ((curpos += lrpad / 2 - 1) < w) { - drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, x + curpos, 2, 2, bh - 4, 1, 0); - } - - if (lines > 0) { - /* draw vertical list */ - for (item = curr; item != next; item = item->right) - drawitem(item, x, y += bh, mw - x); - } else if (matches) { - /* draw horizontal list */ - x += inputw; - w = TEXTW("<"); - if (curr->left) { - drw_setscheme(drw, scheme[SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, "<", 0); - } - x += w; - for (item = curr; item != next; item = item->right) - x = drawitem(item, x, 0, textw_clamp(item->text, mw - x - TEXTW(">"))); - if (next) { - w = TEXTW(">"); - drw_setscheme(drw, scheme[SchemeNorm]); - drw_text(drw, mw - w, 0, w, bh, lrpad / 2, ">", 0); - } - } - drw_map(drw, win, 0, 0, mw, mh); -} - -static void -grabfocus(void) -{ - struct timespec ts = { .tv_sec = 0, .tv_nsec = 10000000 }; - Window focuswin; - int i, revertwin; - - for (i = 0; i < 100; ++i) { - XGetInputFocus(dpy, &focuswin, &revertwin); - if (focuswin == win) - return; - XSetInputFocus(dpy, win, RevertToParent, CurrentTime); - nanosleep(&ts, NULL); - } - die("cannot grab focus"); -} - -static void -grabkeyboard(void) -{ - struct timespec ts = { .tv_sec = 0, .tv_nsec = 1000000 }; - int i; - - if (embed) - return; - /* try to grab keyboard, we may have to wait for another process to ungrab */ - for (i = 0; i < 1000; i++) { - if (XGrabKeyboard(dpy, DefaultRootWindow(dpy), True, GrabModeAsync, - GrabModeAsync, CurrentTime) == GrabSuccess) - return; - nanosleep(&ts, NULL); - } - die("cannot grab keyboard"); -} - -int -compare_distance(const void *a, const void *b) -{ - struct item *da = *(struct item **) a; - struct item *db = *(struct item **) b; - - if (!db) - return 1; - if (!da) - return -1; - - return da->distance == db->distance ? 0 : da->distance < db->distance ? -1 : 1; -} - -void -fuzzymatch(void) -{ - /* bang - we have so much memory */ - struct item *it; - struct item **fuzzymatches = NULL; - char c; - int number_of_matches = 0, i, pidx, sidx, eidx; - int text_len = strlen(text), itext_len; - - matches = matchend = NULL; - - /* walk through all items */ - for (it = items; it && it->text; it++) { - if (text_len) { - itext_len = strlen(it->text); - pidx = 0; /* pointer */ - sidx = eidx = -1; /* start of match, end of match */ - /* walk through item text */ - for (i = 0; i < itext_len && (c = it->text[i]); i++) { - /* fuzzy match pattern */ - if (!fstrncmp(&text[pidx], &c, 1)) { - if(sidx == -1) - sidx = i; - pidx++; - if (pidx == text_len) { - eidx = i; - break; - } - } - } - /* build list of matches */ - if (eidx != -1) { - /* compute distance */ - /* add penalty if match starts late (log(sidx+2)) - * add penalty for long a match without many matching characters */ - it->distance = log(sidx + 2) + (double)(eidx - sidx - text_len); - /* fprintf(stderr, "distance %s %f\n", it->text, it->distance); */ - appenditem(it, &matches, &matchend); - number_of_matches++; - } - } else { - appenditem(it, &matches, &matchend); - } - } - - if (number_of_matches) { - /* initialize array with matches */ - if (!(fuzzymatches = realloc(fuzzymatches, number_of_matches * sizeof(struct item*)))) - die("cannot realloc %u bytes:", number_of_matches * sizeof(struct item*)); - for (i = 0, it = matches; it && i < number_of_matches; i++, it = it->right) { - fuzzymatches[i] = it; - } - /* sort matches according to distance */ - qsort(fuzzymatches, number_of_matches, sizeof(struct item*), compare_distance); - /* rebuild list of matches */ - matches = matchend = NULL; - for (i = 0, it = fuzzymatches[i]; i < number_of_matches && it && \ - it->text; i++, it = fuzzymatches[i]) { - appenditem(it, &matches, &matchend); - } - free(fuzzymatches); - } - curr = sel = matches; - calcoffsets(); -} - -static void -match(void) -{ - if (fuzzy) { - fuzzymatch(); - return; - } - static char **tokv = NULL; - static int tokn = 0; - - char buf[sizeof text], *s; - int i, tokc = 0; - size_t len, textsize; - struct item *item, *lprefix, *lsubstr, *prefixend, *substrend; - - strcpy(buf, text); - /* separate input text into tokens to be matched individually */ - for (s = strtok(buf, " "); s; tokv[tokc - 1] = s, s = strtok(NULL, " ")) - if (++tokc > tokn && !(tokv = realloc(tokv, ++tokn * sizeof *tokv))) - die("cannot realloc %zu bytes:", tokn * sizeof *tokv); - len = tokc ? strlen(tokv[0]) : 0; - - matches = lprefix = lsubstr = matchend = prefixend = substrend = NULL; - textsize = strlen(text) + 1; - for (item = items; item && item->text; item++) { - for (i = 0; i < tokc; i++) - if (!fstrstr(item->text, tokv[i])) - break; - if (i != tokc) /* not all tokens match */ - continue; - /* exact matches go first, then prefixes, then substrings */ - if (!tokc || !fstrncmp(text, item->text, textsize)) - appenditem(item, &matches, &matchend); - else if (!fstrncmp(tokv[0], item->text, len)) - appenditem(item, &lprefix, &prefixend); - else - appenditem(item, &lsubstr, &substrend); - } - if (lprefix) { - if (matches) { - matchend->right = lprefix; - lprefix->left = matchend; - } else - matches = lprefix; - matchend = prefixend; - } - if (lsubstr) { - if (matches) { - matchend->right = lsubstr; - lsubstr->left = matchend; - } else - matches = lsubstr; - matchend = substrend; - } - curr = sel = matches; - calcoffsets(); -} - -static void -insert(const char *str, ssize_t n) -{ - if (strlen(text) + n > sizeof text - 1) - return; - /* move existing text out of the way, insert new text, and update cursor */ - memmove(&text[cursor + n], &text[cursor], sizeof text - cursor - MAX(n, 0)); - if (n > 0) - memcpy(&text[cursor], str, n); - cursor += n; - match(); -} - -static size_t -nextrune(int inc) -{ - ssize_t n; - - /* return location of next utf8 rune in the given direction (+1 or -1) */ - for (n = cursor + inc; n + inc >= 0 && (text[n] & 0xc0) == 0x80; n += inc) - ; - return n; -} - -static void -movewordedge(int dir) -{ - if (dir < 0) { /* move cursor to the start of the word*/ - while (cursor > 0 && strchr(worddelimiters, text[nextrune(-1)])) - cursor = nextrune(-1); - while (cursor > 0 && !strchr(worddelimiters, text[nextrune(-1)])) - cursor = nextrune(-1); - } else { /* move cursor to the end of the word */ - while (text[cursor] && strchr(worddelimiters, text[cursor])) - cursor = nextrune(+1); - while (text[cursor] && !strchr(worddelimiters, text[cursor])) - cursor = nextrune(+1); - } -} - -static void -keypress(XKeyEvent *ev) -{ - char buf[32]; - int len; - KeySym ksym; - Status status; - - len = XmbLookupString(xic, ev, buf, sizeof buf, &ksym, &status); - switch (status) { - default: /* XLookupNone, XBufferOverflow */ - return; - case XLookupChars: - goto insert; - case XLookupKeySym: - case XLookupBoth: - break; - } - - if (ev->state & ControlMask) { - switch(ksym) { - case XK_a: ksym = XK_Home; break; - case XK_b: ksym = XK_Left; break; - case XK_c: ksym = XK_Escape; break; - case XK_d: ksym = XK_Delete; break; - case XK_e: ksym = XK_End; break; - case XK_f: ksym = XK_Right; break; - case XK_g: ksym = XK_Escape; break; - case XK_h: ksym = XK_BackSpace; break; - case XK_i: ksym = XK_Tab; break; - case XK_j: /* fallthrough */ - case XK_J: /* fallthrough */ - case XK_m: /* fallthrough */ - case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break; - case XK_n: ksym = XK_Down; break; - case XK_p: ksym = XK_Up; break; - - case XK_k: /* delete right */ - text[cursor] = '\0'; - match(); - break; - case XK_u: /* delete left */ - insert(NULL, 0 - cursor); - break; - case XK_w: /* delete word */ - while (cursor > 0 && strchr(worddelimiters, text[nextrune(-1)])) - insert(NULL, nextrune(-1) - cursor); - while (cursor > 0 && !strchr(worddelimiters, text[nextrune(-1)])) - insert(NULL, nextrune(-1) - cursor); - break; - case XK_y: /* paste selection */ - case XK_Y: - XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, - utf8, utf8, win, CurrentTime); - return; - case XK_Left: - case XK_KP_Left: - movewordedge(-1); - goto draw; - case XK_Right: - case XK_KP_Right: - movewordedge(+1); - goto draw; - case XK_Return: - case XK_KP_Enter: - break; - case XK_bracketleft: - cleanup(); - exit(1); - default: - return; - } - } else if (ev->state & Mod1Mask) { - switch(ksym) { - case XK_b: - movewordedge(-1); - goto draw; - case XK_f: - movewordedge(+1); - goto draw; - case XK_g: ksym = XK_Home; break; - case XK_G: ksym = XK_End; break; - case XK_h: ksym = XK_Up; break; - case XK_j: ksym = XK_Next; break; - case XK_k: ksym = XK_Prior; break; - case XK_l: ksym = XK_Down; break; - default: - return; - } - } - - switch(ksym) { - default: -insert: - if (!iscntrl((unsigned char)*buf)) - insert(buf, len); - break; - case XK_Delete: - case XK_KP_Delete: - if (text[cursor] == '\0') - return; - cursor = nextrune(+1); - /* fallthrough */ - case XK_BackSpace: - if (cursor == 0) - return; - insert(NULL, nextrune(-1) - cursor); - break; - case XK_End: - case XK_KP_End: - if (text[cursor] != '\0') { - cursor = strlen(text); - break; - } - if (next) { - /* jump to end of list and position items in reverse */ - curr = matchend; - calcoffsets(); - curr = prev; - calcoffsets(); - while (next && (curr = curr->right)) - calcoffsets(); - } - sel = matchend; - break; - case XK_Escape: - cleanup(); - exit(1); - case XK_Home: - case XK_KP_Home: - if (sel == matches) { - cursor = 0; - break; - } - sel = curr = matches; - calcoffsets(); - break; - case XK_Left: - case XK_KP_Left: - if (cursor > 0 && (!sel || !sel->left || lines > 0)) { - cursor = nextrune(-1); - break; - } - if (lines > 0) - return; - /* fallthrough */ - case XK_Up: - case XK_KP_Up: - if (sel && sel->left && (sel = sel->left)->right == curr) { - curr = prev; - calcoffsets(); - } - break; - case XK_Next: - case XK_KP_Next: - if (!next) - return; - sel = curr = next; - calcoffsets(); - break; - case XK_Prior: - case XK_KP_Prior: - if (!prev) - return; - sel = curr = prev; - calcoffsets(); - break; - case XK_Return: - case XK_KP_Enter: - puts((sel && !(ev->state & ShiftMask)) ? sel->text : text); - if (!(ev->state & ControlMask)) { - cleanup(); - exit(0); - } - if (sel) - sel->out = 1; - break; - case XK_Right: - case XK_KP_Right: - if (text[cursor] != '\0') { - cursor = nextrune(+1); - break; - } - if (lines > 0) - return; - /* fallthrough */ - case XK_Down: - case XK_KP_Down: - if (sel && sel->right && (sel = sel->right) == next) { - curr = next; - calcoffsets(); - } - break; - case XK_Tab: - if (!sel) - return; - cursor = strnlen(sel->text, sizeof text - 1); - memcpy(text, sel->text, cursor); - text[cursor] = '\0'; - match(); - break; - } - -draw: - drawmenu(); -} - -static void -buttonpress(XEvent *e) -{ - struct item *item; - XButtonPressedEvent *ev = &e->xbutton; - int x = 0, y = 0, h = bh, w; - - if (ev->window != win) - return; - - /* right-click: exit */ - if (ev->button == Button3) - exit(1); - - if (prompt && *prompt) - x += promptw; - - /* input field */ - w = (lines > 0 || !matches) ? mw - x : inputw; - - /* left-click on input: clear input, - * NOTE: if there is no left-arrow the space for < is reserved so - * add that to the input width */ - if (ev->button == Button1 && - ((lines <= 0 && ev->x >= 0 && ev->x <= x + w + - ((!prev || !curr->left) ? TEXTW("<") : 0)) || - (lines > 0 && ev->y >= y && ev->y <= y + h))) { - insert(NULL, -cursor); - drawmenu(); - return; - } - /* middle-mouse click: paste selection */ - if (ev->button == Button2) { - XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, - utf8, utf8, win, CurrentTime); - drawmenu(); - return; - } - /* scroll up */ - if (ev->button == Button4 && prev) { - sel = curr = prev; - calcoffsets(); - drawmenu(); - return; - } - /* scroll down */ - if (ev->button == Button5 && next) { - sel = curr = next; - calcoffsets(); - drawmenu(); - return; - } - if (ev->button != Button1) - return; - if (ev->state & ~ControlMask) - return; - if (lines > 0) { - /* vertical list: (ctrl)left-click on item */ - w = mw - x; - for (item = curr; item != next; item = item->right) { - y += h; - if (ev->y >= y && ev->y <= (y + h)) { - puts(item->text); - if (!(ev->state & ControlMask)) - exit(0); - sel = item; - if (sel) { - sel->out = 1; - drawmenu(); - } - return; - } - } - } else if (matches) { - /* left-click on left arrow */ - x += inputw; - w = TEXTW("<"); - if (prev && curr->left) { - if (ev->x >= x && ev->x <= x + w) { - sel = curr = prev; - calcoffsets(); - drawmenu(); - return; - } - } - /* horizontal list: (ctrl)left-click on item */ - for (item = curr; item != next; item = item->right) { - x += w; - w = MIN(TEXTW(item->text), mw - x - TEXTW(">")); - if (ev->x >= x && ev->x <= x + w) { - puts(item->text); - if (!(ev->state & ControlMask)) - exit(0); - sel = item; - if (sel) { - sel->out = 1; - drawmenu(); - } - return; - } - } - /* left-click on right arrow */ - w = TEXTW(">"); - x = mw - w; - if (next && ev->x >= x && ev->x <= x + w) { - sel = curr = next; - calcoffsets(); - drawmenu(); - return; - } - } -} - -static void -motionevent(XButtonEvent *ev) -{ - struct item *it; - int xy, ev_xy; - - if (ev->window != win || matches == 0) - return; - - xy = lines > 0 ? bh : inputw + promptw + TEXTW("<"); - ev_xy = lines > 0 ? ev->y : ev->x; - for (it = curr; it && it != next; it = it->right) { - int wh = lines > 0 ? bh : textw_clamp(it->text, mw - xy - TEXTW(">")); - if (ev_xy >= xy && ev_xy < (xy + wh)) { - sel = it; - calcoffsets(); - drawmenu(); - break; - } - xy += wh; - } -} - -static void -paste(void) -{ - char *p, *q; - int di; - unsigned long dl; - Atom da; - - /* we have been given the current selection, now insert it into input */ - if (XGetWindowProperty(dpy, win, utf8, 0, (sizeof text / 4) + 1, False, - utf8, &da, &di, &dl, &dl, (unsigned char **)&p) - == Success && p) { - insert(p, (q = strchr(p, '\n')) ? q - p : (ssize_t)strlen(p)); - XFree(p); - } - drawmenu(); -} - -static void -readstdin(void) -{ - char *line = NULL; - size_t i, junk, size = 0; - ssize_t len; - if(passwd){ - inputw = lines = 0; - return; - } - - /* read each line from stdin and add it to the item list */ - for (i = 0; (len = getline(&line, &junk, stdin)) != -1; i++, line = NULL) { - if (i + 1 >= size / sizeof *items) - if (!(items = realloc(items, (size += BUFSIZ)))) - die("cannot realloc %zu bytes:", size); - if (line[len - 1] == '\n') - line[len - 1] = '\0'; - items[i].text = line; - items[i].out = 0; - } - if (items) - items[i].text = NULL; - lines = MIN(lines, i); -} - -static void -run(void) -{ - XEvent ev; - - while (!XNextEvent(dpy, &ev)) { - if (XFilterEvent(&ev, win)) - continue; - switch(ev.type) { - case DestroyNotify: - if (ev.xdestroywindow.window != win) - break; - cleanup(); - exit(1); - case ButtonPress: - buttonpress(&ev); - break; - case MotionNotify: - motionevent(&ev.xbutton); - break; - case Expose: - if (ev.xexpose.count == 0) - drw_map(drw, win, 0, 0, mw, mh); - break; - case FocusIn: - /* regrab focus from parent window */ - if (ev.xfocus.window != win) - grabfocus(); - break; - case KeyPress: - keypress(&ev.xkey); - break; - case SelectionNotify: - if (ev.xselection.property == utf8) - paste(); - break; - case VisibilityNotify: - if (ev.xvisibility.state != VisibilityUnobscured) - XRaiseWindow(dpy, win); - break; - } - } -} - -static void -setup(void) -{ - int x, y, i, j; - unsigned int du; - XSetWindowAttributes swa; - XIM xim; - Window w, dw, *dws; - XWindowAttributes wa; - XClassHint ch = {"dmenu", "dmenu"}; -#ifdef XINERAMA - XineramaScreenInfo *info; - Window pw; - int a, di, n, area = 0; -#endif - /* init appearance */ - for (j = 0; j < SchemeLast; j++) - scheme[j] = drw_scm_create(drw, colors[j], 2); - - clip = XInternAtom(dpy, "CLIPBOARD", False); - utf8 = XInternAtom(dpy, "UTF8_STRING", False); - - /* calculate menu geometry */ - bh = drw->fonts->h + 2; - lines = MAX(lines, 0); - mh = (lines + 1) * bh; -#ifdef XINERAMA - i = 0; - if (parentwin == root && (info = XineramaQueryScreens(dpy, &n))) { - XGetInputFocus(dpy, &w, &di); - if (mon >= 0 && mon < n) - i = mon; - else if (w != root && w != PointerRoot && w != None) { - /* find top-level window containing current input focus */ - do { - if (XQueryTree(dpy, (pw = w), &dw, &w, &dws, &du) && dws) - XFree(dws); - } while (w != root && w != pw); - /* find xinerama screen with which the window intersects most */ - if (XGetWindowAttributes(dpy, pw, &wa)) - for (j = 0; j < n; j++) - if ((a = INTERSECT(wa.x, wa.y, wa.width, wa.height, info[j])) > area) { - area = a; - i = j; - } - } - /* no focused window is on screen, so use pointer location instead */ - if (mon < 0 && !area && XQueryPointer(dpy, root, &dw, &dw, &x, &y, &di, &di, &du)) - for (i = 0; i < n; i++) - if (INTERSECT(x, y, 1, 1, info[i]) != 0) - break; - - x = info[i].x_org; - y = info[i].y_org + (topbar ? 0 : info[i].height - mh); - mw = info[i].width; - XFree(info); - } else -#endif - { - if (!XGetWindowAttributes(dpy, parentwin, &wa)) - die("could not get embedding window attributes: 0x%lx", - parentwin); - x = 0; - y = topbar ? 0 : wa.height - mh; - mw = wa.width; - } - promptw = (prompt && *prompt) ? TEXTW(prompt) - lrpad / 4 : 0; - inputw = mw / 3; /* input width: ~33% of monitor width */ - match(); - - /* create menu window */ - swa.override_redirect = True; - swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; - swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask | - ButtonPressMask | PointerMotionMask; - win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0, - CopyFromParent, CopyFromParent, CopyFromParent, - CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); - XSetClassHint(dpy, win, &ch); - - - /* input methods */ - if ((xim = XOpenIM(dpy, NULL, NULL, NULL)) == NULL) - die("XOpenIM failed: could not open input device"); - - xic = XCreateIC(xim, XNInputStyle, XIMPreeditNothing | XIMStatusNothing, - XNClientWindow, win, XNFocusWindow, win, NULL); - - XMapRaised(dpy, win); - if (embed) { - XSelectInput(dpy, parentwin, FocusChangeMask | SubstructureNotifyMask); - if (XQueryTree(dpy, parentwin, &dw, &w, &dws, &du) && dws) { - for (i = 0; i < du && dws[i] != win; ++i) - XSelectInput(dpy, dws[i], FocusChangeMask); - XFree(dws); - } - grabfocus(); - } - drw_resize(drw, mw, mh); - drawmenu(); -} - -static void -usage(void) -{ - die("usage: dmenu [-bfivP] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" - " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]"); -} - -int -main(int argc, char *argv[]) -{ - XWindowAttributes wa; - int i, fast = 0; - - for (i = 1; i < argc; i++) - /* these options take no arguments */ - if (!strcmp(argv[i], "-v")) { /* prints version information */ - puts("dmenu-"VERSION); - exit(0); - } else if (!strcmp(argv[i], "-b")) /* appears at the bottom of the screen */ - topbar = 0; - else if (!strcmp(argv[i], "-f")) /* grabs keyboard before reading stdin */ - fast = 1; - else if (!strcmp(argv[i], "-F")) /* grabs keyboard before reading stdin */ - fuzzy = 0; - else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */ - fstrncmp = strncasecmp; - fstrstr = cistrstr; - } else if (!strcmp(argv[i], "-P")) /* is the input a password */ - passwd = 1; - else if (i + 1 == argc) - usage(); - /* these options take one argument */ - else if (!strcmp(argv[i], "-l")) /* number of lines in vertical list */ - lines = atoi(argv[++i]); - else if (!strcmp(argv[i], "-m")) - mon = atoi(argv[++i]); - else if (!strcmp(argv[i], "-p")) /* adds prompt to left of input field */ - prompt = argv[++i]; - else if (!strcmp(argv[i], "-fn")) /* font or font set */ - fonts[0] = argv[++i]; - else if (!strcmp(argv[i], "-nb")) /* normal background color */ - colors[SchemeNorm][ColBg] = argv[++i]; - else if (!strcmp(argv[i], "-nf")) /* normal foreground color */ - colors[SchemeNorm][ColFg] = argv[++i]; - else if (!strcmp(argv[i], "-sb")) /* selected background color */ - colors[SchemeSel][ColBg] = argv[++i]; - else if (!strcmp(argv[i], "-sf")) /* selected foreground color */ - colors[SchemeSel][ColFg] = argv[++i]; - else if (!strcmp(argv[i], "-w")) /* embedding window id */ - embed = argv[++i]; - else - usage(); - - if (!setlocale(LC_CTYPE, "") || !XSupportsLocale()) - fputs("warning: no locale support\n", stderr); - if (!(dpy = XOpenDisplay(NULL))) - die("cannot open display"); - screen = DefaultScreen(dpy); - root = RootWindow(dpy, screen); - if (!embed || !(parentwin = strtol(embed, NULL, 0))) - parentwin = root; - if (!XGetWindowAttributes(dpy, parentwin, &wa)) - die("could not get embedding window attributes: 0x%lx", - parentwin); - drw = drw_create(dpy, screen, root, wa.width, wa.height); - if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) - die("no fonts could be loaded."); - lrpad = drw->fonts->h; - -#ifdef __OpenBSD__ - if (pledge("stdio rpath", NULL) == -1) - die("pledge"); -#endif - - if (fast && !isatty(0)) { - grabkeyboard(); - readstdin(); - } else { - readstdin(); - grabkeyboard(); - } - setup(); - run(); - - return 1; /* unreachable */ -} diff --git a/user/.config/suckless/dmenu/dmenu_path b/user/.config/suckless/dmenu/dmenu_path deleted file mode 100755 index 3a7cda792..000000000 --- a/user/.config/suckless/dmenu/dmenu_path +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}" -cache="$cachedir/dmenu_run" - -[ ! -e "$cachedir" ] && mkdir -p "$cachedir" - -IFS=: -if stest -dqr -n "$cache" $PATH; then - stest -flx $PATH | sort -u | tee "$cache" -else - cat "$cache" -fi diff --git a/user/.config/suckless/dmenu/dmenu_run b/user/.config/suckless/dmenu/dmenu_run deleted file mode 100755 index 834ede54f..000000000 --- a/user/.config/suckless/dmenu/dmenu_run +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & diff --git a/user/.config/suckless/dmenu/drw.c b/user/.config/suckless/dmenu/drw.c deleted file mode 100644 index a58a2b489..000000000 --- a/user/.config/suckless/dmenu/drw.c +++ /dev/null @@ -1,450 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include -#include -#include -#include - -#include "drw.h" -#include "util.h" - -#define UTF_INVALID 0xFFFD -#define UTF_SIZ 4 - -static const unsigned char utfbyte[UTF_SIZ + 1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; -static const unsigned char utfmask[UTF_SIZ + 1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8}; -static const long utfmin[UTF_SIZ + 1] = { 0, 0, 0x80, 0x800, 0x10000}; -static const long utfmax[UTF_SIZ + 1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF}; - -static long -utf8decodebyte(const char c, size_t *i) -{ - for (*i = 0; *i < (UTF_SIZ + 1); ++(*i)) - if (((unsigned char)c & utfmask[*i]) == utfbyte[*i]) - return (unsigned char)c & ~utfmask[*i]; - return 0; -} - -static size_t -utf8validate(long *u, size_t i) -{ - if (!BETWEEN(*u, utfmin[i], utfmax[i]) || BETWEEN(*u, 0xD800, 0xDFFF)) - *u = UTF_INVALID; - for (i = 1; *u > utfmax[i]; ++i) - ; - return i; -} - -static size_t -utf8decode(const char *c, long *u, size_t clen) -{ - size_t i, j, len, type; - long udecoded; - - *u = UTF_INVALID; - if (!clen) - return 0; - udecoded = utf8decodebyte(c[0], &len); - if (!BETWEEN(len, 1, UTF_SIZ)) - return 1; - for (i = 1, j = 1; i < clen && j < len; ++i, ++j) { - udecoded = (udecoded << 6) | utf8decodebyte(c[i], &type); - if (type) - return j; - } - if (j < len) - return 0; - *u = udecoded; - utf8validate(u, len); - - return len; -} - -Drw * -drw_create(Display *dpy, int screen, Window root, unsigned int w, unsigned int h) -{ - Drw *drw = ecalloc(1, sizeof(Drw)); - - drw->dpy = dpy; - drw->screen = screen; - drw->root = root; - drw->w = w; - drw->h = h; - drw->drawable = XCreatePixmap(dpy, root, w, h, DefaultDepth(dpy, screen)); - drw->gc = XCreateGC(dpy, root, 0, NULL); - XSetLineAttributes(dpy, drw->gc, 1, LineSolid, CapButt, JoinMiter); - - return drw; -} - -void -drw_resize(Drw *drw, unsigned int w, unsigned int h) -{ - if (!drw) - return; - - drw->w = w; - drw->h = h; - if (drw->drawable) - XFreePixmap(drw->dpy, drw->drawable); - drw->drawable = XCreatePixmap(drw->dpy, drw->root, w, h, DefaultDepth(drw->dpy, drw->screen)); -} - -void -drw_free(Drw *drw) -{ - XFreePixmap(drw->dpy, drw->drawable); - XFreeGC(drw->dpy, drw->gc); - drw_fontset_free(drw->fonts); - free(drw); -} - -/* This function is an implementation detail. Library users should use - * drw_fontset_create instead. - */ -static Fnt * -xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) -{ - Fnt *font; - XftFont *xfont = NULL; - FcPattern *pattern = NULL; - - if (fontname) { - /* Using the pattern found at font->xfont->pattern does not yield the - * same substitution results as using the pattern returned by - * FcNameParse; using the latter results in the desired fallback - * behaviour whereas the former just results in missing-character - * rectangles being drawn, at least with some fonts. */ - if (!(xfont = XftFontOpenName(drw->dpy, drw->screen, fontname))) { - fprintf(stderr, "error, cannot load font from name: '%s'\n", fontname); - return NULL; - } - if (!(pattern = FcNameParse((FcChar8 *) fontname))) { - fprintf(stderr, "error, cannot parse font name to pattern: '%s'\n", fontname); - XftFontClose(drw->dpy, xfont); - return NULL; - } - } else if (fontpattern) { - if (!(xfont = XftFontOpenPattern(drw->dpy, fontpattern))) { - fprintf(stderr, "error, cannot load font from pattern.\n"); - return NULL; - } - } else { - die("no font specified."); - } - - font = ecalloc(1, sizeof(Fnt)); - font->xfont = xfont; - font->pattern = pattern; - font->h = xfont->ascent + xfont->descent; - font->dpy = drw->dpy; - - return font; -} - -static void -xfont_free(Fnt *font) -{ - if (!font) - return; - if (font->pattern) - FcPatternDestroy(font->pattern); - XftFontClose(font->dpy, font->xfont); - free(font); -} - -Fnt* -drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount) -{ - Fnt *cur, *ret = NULL; - size_t i; - - if (!drw || !fonts) - return NULL; - - for (i = 1; i <= fontcount; i++) { - if ((cur = xfont_create(drw, fonts[fontcount - i], NULL))) { - cur->next = ret; - ret = cur; - } - } - return (drw->fonts = ret); -} - -void -drw_fontset_free(Fnt *font) -{ - if (font) { - drw_fontset_free(font->next); - xfont_free(font); - } -} - -void -drw_clr_create(Drw *drw, Clr *dest, const char *clrname) -{ - if (!drw || !dest || !clrname) - return; - - if (!XftColorAllocName(drw->dpy, DefaultVisual(drw->dpy, drw->screen), - DefaultColormap(drw->dpy, drw->screen), - clrname, dest)) - die("error, cannot allocate color '%s'", clrname); -} - -/* Wrapper to create color schemes. The caller has to call free(3) on the - * returned color scheme when done using it. */ -Clr * -drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount) -{ - size_t i; - Clr *ret; - - /* need at least two colors for a scheme */ - if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(XftColor)))) - return NULL; - - for (i = 0; i < clrcount; i++) - drw_clr_create(drw, &ret[i], clrnames[i]); - return ret; -} - -void -drw_setfontset(Drw *drw, Fnt *set) -{ - if (drw) - drw->fonts = set; -} - -void -drw_setscheme(Drw *drw, Clr *scm) -{ - if (drw) - drw->scheme = scm; -} - -void -drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert) -{ - if (!drw || !drw->scheme) - return; - XSetForeground(drw->dpy, drw->gc, invert ? drw->scheme[ColBg].pixel : drw->scheme[ColFg].pixel); - if (filled) - XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); - else - XDrawRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w - 1, h - 1); -} - -int -drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert) -{ - int i, ty, ellipsis_x = 0; - unsigned int tmpw, ew, ellipsis_w = 0, ellipsis_len; - XftDraw *d = NULL; - Fnt *usedfont, *curfont, *nextfont; - int utf8strlen, utf8charlen, render = x || y || w || h; - long utf8codepoint = 0; - const char *utf8str; - FcCharSet *fccharset; - FcPattern *fcpattern; - FcPattern *match; - XftResult result; - int charexists = 0, overflow = 0; - /* keep track of a couple codepoints for which we have no match. */ - enum { nomatches_len = 64 }; - static struct { long codepoint[nomatches_len]; unsigned int idx; } nomatches; - static unsigned int ellipsis_width = 0; - - if (!drw || (render && (!drw->scheme || !w)) || !text || !drw->fonts) - return 0; - - if (!render) { - w = invert ? invert : ~invert; - } else { - XSetForeground(drw->dpy, drw->gc, drw->scheme[invert ? ColFg : ColBg].pixel); - XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); - d = XftDrawCreate(drw->dpy, drw->drawable, - DefaultVisual(drw->dpy, drw->screen), - DefaultColormap(drw->dpy, drw->screen)); - x += lpad; - w -= lpad; - } - - usedfont = drw->fonts; - if (!ellipsis_width && render) - ellipsis_width = drw_fontset_getwidth(drw, "..."); - while (1) { - ew = ellipsis_len = utf8strlen = 0; - utf8str = text; - nextfont = NULL; - while (*text) { - utf8charlen = utf8decode(text, &utf8codepoint, UTF_SIZ); - for (curfont = drw->fonts; curfont; curfont = curfont->next) { - charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint); - if (charexists) { - drw_font_getexts(curfont, text, utf8charlen, &tmpw, NULL); - if (ew + ellipsis_width <= w) { - /* keep track where the ellipsis still fits */ - ellipsis_x = x + ew; - ellipsis_w = w - ew; - ellipsis_len = utf8strlen; - } - - if (ew + tmpw > w) { - overflow = 1; - /* called from drw_fontset_getwidth_clamp(): - * it wants the width AFTER the overflow - */ - if (!render) - x += tmpw; - else - utf8strlen = ellipsis_len; - } else if (curfont == usedfont) { - utf8strlen += utf8charlen; - text += utf8charlen; - ew += tmpw; - } else { - nextfont = curfont; - } - break; - } - } - - if (overflow || !charexists || nextfont) - break; - else - charexists = 0; - } - - if (utf8strlen) { - if (render) { - ty = y + (h - usedfont->h) / 2 + usedfont->xfont->ascent; - XftDrawStringUtf8(d, &drw->scheme[invert ? ColBg : ColFg], - usedfont->xfont, x, ty, (XftChar8 *)utf8str, utf8strlen); - } - x += ew; - w -= ew; - } - if (render && overflow) - drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "...", invert); - - if (!*text || overflow) { - break; - } else if (nextfont) { - charexists = 0; - usedfont = nextfont; - } else { - /* Regardless of whether or not a fallback font is found, the - * character must be drawn. */ - charexists = 1; - - for (i = 0; i < nomatches_len; ++i) { - /* avoid calling XftFontMatch if we know we won't find a match */ - if (utf8codepoint == nomatches.codepoint[i]) - goto no_match; - } - - fccharset = FcCharSetCreate(); - FcCharSetAddChar(fccharset, utf8codepoint); - - if (!drw->fonts->pattern) { - /* Refer to the comment in xfont_create for more information. */ - die("the first font in the cache must be loaded from a font string."); - } - - fcpattern = FcPatternDuplicate(drw->fonts->pattern); - FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset); - FcPatternAddBool(fcpattern, FC_SCALABLE, FcTrue); - - FcConfigSubstitute(NULL, fcpattern, FcMatchPattern); - FcDefaultSubstitute(fcpattern); - match = XftFontMatch(drw->dpy, drw->screen, fcpattern, &result); - - FcCharSetDestroy(fccharset); - FcPatternDestroy(fcpattern); - - if (match) { - usedfont = xfont_create(drw, NULL, match); - if (usedfont && XftCharExists(drw->dpy, usedfont->xfont, utf8codepoint)) { - for (curfont = drw->fonts; curfont->next; curfont = curfont->next) - ; /* NOP */ - curfont->next = usedfont; - } else { - xfont_free(usedfont); - nomatches.codepoint[++nomatches.idx % nomatches_len] = utf8codepoint; -no_match: - usedfont = drw->fonts; - } - } - } - } - if (d) - XftDrawDestroy(d); - - return x + (render ? w : 0); -} - -void -drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h) -{ - if (!drw) - return; - - XCopyArea(drw->dpy, drw->drawable, win, drw->gc, x, y, w, h, x, y); - XSync(drw->dpy, False); -} - -unsigned int -drw_fontset_getwidth(Drw *drw, const char *text) -{ - if (!drw || !drw->fonts || !text) - return 0; - return drw_text(drw, 0, 0, 0, 0, 0, text, 0); -} - -unsigned int -drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n) -{ - unsigned int tmp = 0; - if (drw && drw->fonts && text && n) - tmp = drw_text(drw, 0, 0, 0, 0, 0, text, n); - return MIN(n, tmp); -} - -void -drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h) -{ - XGlyphInfo ext; - - if (!font || !text) - return; - - XftTextExtentsUtf8(font->dpy, font->xfont, (XftChar8 *)text, len, &ext); - if (w) - *w = ext.xOff; - if (h) - *h = font->h; -} - -Cur * -drw_cur_create(Drw *drw, int shape) -{ - Cur *cur; - - if (!drw || !(cur = ecalloc(1, sizeof(Cur)))) - return NULL; - - cur->cursor = XCreateFontCursor(drw->dpy, shape); - - return cur; -} - -void -drw_cur_free(Drw *drw, Cur *cursor) -{ - if (!cursor) - return; - - XFreeCursor(drw->dpy, cursor->cursor); - free(cursor); -} diff --git a/user/.config/suckless/dmenu/drw.h b/user/.config/suckless/dmenu/drw.h deleted file mode 100644 index fd7631b2b..000000000 --- a/user/.config/suckless/dmenu/drw.h +++ /dev/null @@ -1,58 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -typedef struct { - Cursor cursor; -} Cur; - -typedef struct Fnt { - Display *dpy; - unsigned int h; - XftFont *xfont; - FcPattern *pattern; - struct Fnt *next; -} Fnt; - -enum { ColFg, ColBg }; /* Clr scheme index */ -typedef XftColor Clr; - -typedef struct { - unsigned int w, h; - Display *dpy; - int screen; - Window root; - Drawable drawable; - GC gc; - Clr *scheme; - Fnt *fonts; -} Drw; - -/* Drawable abstraction */ -Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h); -void drw_resize(Drw *drw, unsigned int w, unsigned int h); -void drw_free(Drw *drw); - -/* Fnt abstraction */ -Fnt *drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount); -void drw_fontset_free(Fnt* set); -unsigned int drw_fontset_getwidth(Drw *drw, const char *text); -unsigned int drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n); -void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h); - -/* Colorscheme abstraction */ -void drw_clr_create(Drw *drw, Clr *dest, const char *clrname); -Clr *drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount); - -/* Cursor abstraction */ -Cur *drw_cur_create(Drw *drw, int shape); -void drw_cur_free(Drw *drw, Cur *cursor); - -/* Drawing context manipulation */ -void drw_setfontset(Drw *drw, Fnt *set); -void drw_setscheme(Drw *drw, Clr *scm); - -/* Drawing functions */ -void drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert); -int drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert); - -/* Map functions */ -void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h); diff --git a/user/.config/suckless/dmenu/patches/dmenu-fuzzymatch-4.9.diff b/user/.config/suckless/dmenu/patches/dmenu-fuzzymatch-4.9.diff deleted file mode 100644 index 9fd206d8b..000000000 --- a/user/.config/suckless/dmenu/patches/dmenu-fuzzymatch-4.9.diff +++ /dev/null @@ -1,163 +0,0 @@ -From 94353eb52055927d9079f3d9e33da1c954abf386 Mon Sep 17 00:00:00 2001 -From: aleks -Date: Wed, 26 Jun 2019 13:25:10 +0200 -Subject: [PATCH] Add support for fuzzy-matching - ---- - config.def.h | 1 + - config.mk | 2 +- - dmenu.c | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++++ - 3 files changed, 91 insertions(+), 1 deletion(-) - -diff --git a/config.def.h b/config.def.h -index 1edb647..51612b9 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -2,6 +2,7 @@ - /* Default settings; can be overriden by command line. */ - - static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ -+static int fuzzy = 1; /* -F option; if 0, dmenu doesn't use fuzzy matching */ - /* -fn option overrides fonts[0]; default X11 font or font set */ - static const char *fonts[] = { - "monospace:size=10" -diff --git a/config.mk b/config.mk -index 0929b4a..d14309a 100644 ---- a/config.mk -+++ b/config.mk -@@ -20,7 +20,7 @@ FREETYPEINC = /usr/include/freetype2 - - # includes and libs - INCS = -I$(X11INC) -I$(FREETYPEINC) --LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS) -+LIBS = -L$(X11LIB) -lX11 $(XINERAMALIBS) $(FREETYPELIBS) -lm - - # flags - CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"$(VERSION)\" $(XINERAMAFLAGS) -diff --git a/dmenu.c b/dmenu.c -index 6b8f51b..96ddc98 100644 ---- a/dmenu.c -+++ b/dmenu.c -@@ -1,6 +1,7 @@ - /* See LICENSE file for copyright and license details. */ - #include - #include -+#include - #include - #include - #include -@@ -32,6 +33,7 @@ struct item { - char *text; - struct item *left, *right; - int out; -+ double distance; - }; - - static char text[BUFSIZ] = ""; -@@ -210,9 +212,94 @@ grabkeyboard(void) - die("cannot grab keyboard"); - } - -+int -+compare_distance(const void *a, const void *b) -+{ -+ struct item *da = *(struct item **) a; -+ struct item *db = *(struct item **) b; -+ -+ if (!db) -+ return 1; -+ if (!da) -+ return -1; -+ -+ return da->distance == db->distance ? 0 : da->distance < db->distance ? -1 : 1; -+} -+ -+void -+fuzzymatch(void) -+{ -+ /* bang - we have so much memory */ -+ struct item *it; -+ struct item **fuzzymatches = NULL; -+ char c; -+ int number_of_matches = 0, i, pidx, sidx, eidx; -+ int text_len = strlen(text), itext_len; -+ -+ matches = matchend = NULL; -+ -+ /* walk through all items */ -+ for (it = items; it && it->text; it++) { -+ if (text_len) { -+ itext_len = strlen(it->text); -+ pidx = 0; /* pointer */ -+ sidx = eidx = -1; /* start of match, end of match */ -+ /* walk through item text */ -+ for (i = 0; i < itext_len && (c = it->text[i]); i++) { -+ /* fuzzy match pattern */ -+ if (!fstrncmp(&text[pidx], &c, 1)) { -+ if(sidx == -1) -+ sidx = i; -+ pidx++; -+ if (pidx == text_len) { -+ eidx = i; -+ break; -+ } -+ } -+ } -+ /* build list of matches */ -+ if (eidx != -1) { -+ /* compute distance */ -+ /* add penalty if match starts late (log(sidx+2)) -+ * add penalty for long a match without many matching characters */ -+ it->distance = log(sidx + 2) + (double)(eidx - sidx - text_len); -+ /* fprintf(stderr, "distance %s %f\n", it->text, it->distance); */ -+ appenditem(it, &matches, &matchend); -+ number_of_matches++; -+ } -+ } else { -+ appenditem(it, &matches, &matchend); -+ } -+ } -+ -+ if (number_of_matches) { -+ /* initialize array with matches */ -+ if (!(fuzzymatches = realloc(fuzzymatches, number_of_matches * sizeof(struct item*)))) -+ die("cannot realloc %u bytes:", number_of_matches * sizeof(struct item*)); -+ for (i = 0, it = matches; it && i < number_of_matches; i++, it = it->right) { -+ fuzzymatches[i] = it; -+ } -+ /* sort matches according to distance */ -+ qsort(fuzzymatches, number_of_matches, sizeof(struct item*), compare_distance); -+ /* rebuild list of matches */ -+ matches = matchend = NULL; -+ for (i = 0, it = fuzzymatches[i]; i < number_of_matches && it && \ -+ it->text; i++, it = fuzzymatches[i]) { -+ appenditem(it, &matches, &matchend); -+ } -+ free(fuzzymatches); -+ } -+ curr = sel = matches; -+ calcoffsets(); -+} -+ - static void - match(void) - { -+ if (fuzzy) { -+ fuzzymatch(); -+ return; -+ } - static char **tokv = NULL; - static int tokn = 0; - -@@ -702,6 +789,8 @@ main(int argc, char *argv[]) - topbar = 0; - else if (!strcmp(argv[i], "-f")) /* grabs keyboard before reading stdin */ - fast = 1; -+ else if (!strcmp(argv[i], "-F")) /* grabs keyboard before reading stdin */ -+ fuzzy = 0; - else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */ - fstrncmp = strncasecmp; - fstrstr = cistrstr; --- -2.22.0 - diff --git a/user/.config/suckless/dmenu/patches/dmenu-highlight-20201211-fcdc159.diff b/user/.config/suckless/dmenu/patches/dmenu-highlight-20201211-fcdc159.diff deleted file mode 100644 index c3ac5c12d..000000000 --- a/user/.config/suckless/dmenu/patches/dmenu-highlight-20201211-fcdc159.diff +++ /dev/null @@ -1,97 +0,0 @@ -From fcdc1593ed418166f20b7e691a49b1e6eefc116e Mon Sep 17 00:00:00 2001 -From: Nathaniel Evan -Date: Fri, 11 Dec 2020 11:08:12 +0700 -Subject: [PATCH] Highlight matched text in a different color scheme - ---- - config.def.h | 3 +++ - dmenu.c | 44 +++++++++++++++++++++++++++++++++++++++++--- - 2 files changed, 44 insertions(+), 3 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 1edb647..79be73a 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -11,7 +11,10 @@ static const char *colors[SchemeLast][2] = { - /* fg bg */ - [SchemeNorm] = { "#bbbbbb", "#222222" }, - [SchemeSel] = { "#eeeeee", "#005577" }, -+ [SchemeSelHighlight] = { "#ffc978", "#005577" }, -+ [SchemeNormHighlight] = { "#ffc978", "#222222" }, - [SchemeOut] = { "#000000", "#00ffff" }, -+ [SchemeOutHighlight] = { "#ffc978", "#00ffff" }, - }; - /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ - static unsigned int lines = 0; -diff --git a/dmenu.c b/dmenu.c -index 65f25ce..cce1ad1 100644 ---- a/dmenu.c -+++ b/dmenu.c -@@ -26,8 +26,7 @@ - #define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) - - /* enums */ --enum { SchemeNorm, SchemeSel, SchemeOut, SchemeLast }; /* color schemes */ -- -+enum { SchemeNorm, SchemeSel, SchemeOut, SchemeNormHighlight, SchemeSelHighlight, SchemeOutHighlight, SchemeLast }; /* color schemes */ - struct item { - char *text; - struct item *left, *right; -@@ -113,6 +112,43 @@ cistrstr(const char *s, const char *sub) - return NULL; - } - -+static void -+drawhighlights(struct item *item, int x, int y, int maxw) -+{ -+ char restorechar, tokens[sizeof text], *highlight, *token; -+ int indentx, highlightlen; -+ -+ drw_setscheme(drw, scheme[item == sel ? SchemeSelHighlight : item->out ? SchemeOutHighlight : SchemeNormHighlight]); -+ strcpy(tokens, text); -+ for (token = strtok(tokens, " "); token; token = strtok(NULL, " ")) { -+ highlight = fstrstr(item->text, token); -+ while (highlight) { -+ // Move item str end, calc width for highlight indent, & restore -+ highlightlen = highlight - item->text; -+ restorechar = *highlight; -+ item->text[highlightlen] = '\0'; -+ indentx = TEXTW(item->text); -+ item->text[highlightlen] = restorechar; -+ -+ // Move highlight str end, draw highlight, & restore -+ restorechar = highlight[strlen(token)]; -+ highlight[strlen(token)] = '\0'; -+ if (indentx - (lrpad / 2) - 1 < maxw) -+ drw_text( -+ drw, -+ x + indentx - (lrpad / 2) - 1, -+ y, -+ MIN(maxw - indentx, TEXTW(highlight) - lrpad), -+ bh, 0, highlight, 0 -+ ); -+ highlight[strlen(token)] = restorechar; -+ -+ if (strlen(highlight) - strlen(token) < strlen(token)) break; -+ highlight = fstrstr(highlight + strlen(token), token); -+ } -+ } -+} -+ - static int - drawitem(struct item *item, int x, int y, int w) - { -@@ -123,7 +159,9 @@ drawitem(struct item *item, int x, int y, int w) - else - drw_setscheme(drw, scheme[SchemeNorm]); - -- return drw_text(drw, x, y, w, bh, lrpad / 2, item->text, 0); -+ int r = drw_text(drw, x, y, w, bh, lrpad / 2, item->text, 0); -+ drawhighlights(item, x, y, w); -+ return r; - } - - static void --- -2.29.2 - diff --git a/user/.config/suckless/dmenu/patches/dmenu-mousesupport-5.2.diff b/user/.config/suckless/dmenu/patches/dmenu-mousesupport-5.2.diff deleted file mode 100644 index eaacea423..000000000 --- a/user/.config/suckless/dmenu/patches/dmenu-mousesupport-5.2.diff +++ /dev/null @@ -1,144 +0,0 @@ -diff --git a/dmenu.c b/dmenu.c -index 7cf253b..d276a94 100644 ---- a/dmenu.c -+++ b/dmenu.c -@@ -528,6 +528,119 @@ draw: - drawmenu(); - } - -+static void -+buttonpress(XEvent *e) -+{ -+ struct item *item; -+ XButtonPressedEvent *ev = &e->xbutton; -+ int x = 0, y = 0, h = bh, w; -+ -+ if (ev->window != win) -+ return; -+ -+ /* right-click: exit */ -+ if (ev->button == Button3) -+ exit(1); -+ -+ if (prompt && *prompt) -+ x += promptw; -+ -+ /* input field */ -+ w = (lines > 0 || !matches) ? mw - x : inputw; -+ -+ /* left-click on input: clear input, -+ * NOTE: if there is no left-arrow the space for < is reserved so -+ * add that to the input width */ -+ if (ev->button == Button1 && -+ ((lines <= 0 && ev->x >= 0 && ev->x <= x + w + -+ ((!prev || !curr->left) ? TEXTW("<") : 0)) || -+ (lines > 0 && ev->y >= y && ev->y <= y + h))) { -+ insert(NULL, -cursor); -+ drawmenu(); -+ return; -+ } -+ /* middle-mouse click: paste selection */ -+ if (ev->button == Button2) { -+ XConvertSelection(dpy, (ev->state & ShiftMask) ? clip : XA_PRIMARY, -+ utf8, utf8, win, CurrentTime); -+ drawmenu(); -+ return; -+ } -+ /* scroll up */ -+ if (ev->button == Button4 && prev) { -+ sel = curr = prev; -+ calcoffsets(); -+ drawmenu(); -+ return; -+ } -+ /* scroll down */ -+ if (ev->button == Button5 && next) { -+ sel = curr = next; -+ calcoffsets(); -+ drawmenu(); -+ return; -+ } -+ if (ev->button != Button1) -+ return; -+ if (ev->state & ~ControlMask) -+ return; -+ if (lines > 0) { -+ /* vertical list: (ctrl)left-click on item */ -+ w = mw - x; -+ for (item = curr; item != next; item = item->right) { -+ y += h; -+ if (ev->y >= y && ev->y <= (y + h)) { -+ puts(item->text); -+ if (!(ev->state & ControlMask)) -+ exit(0); -+ sel = item; -+ if (sel) { -+ sel->out = 1; -+ drawmenu(); -+ } -+ return; -+ } -+ } -+ } else if (matches) { -+ /* left-click on left arrow */ -+ x += inputw; -+ w = TEXTW("<"); -+ if (prev && curr->left) { -+ if (ev->x >= x && ev->x <= x + w) { -+ sel = curr = prev; -+ calcoffsets(); -+ drawmenu(); -+ return; -+ } -+ } -+ /* horizontal list: (ctrl)left-click on item */ -+ for (item = curr; item != next; item = item->right) { -+ x += w; -+ w = MIN(TEXTW(item->text), mw - x - TEXTW(">")); -+ if (ev->x >= x && ev->x <= x + w) { -+ puts(item->text); -+ if (!(ev->state & ControlMask)) -+ exit(0); -+ sel = item; -+ if (sel) { -+ sel->out = 1; -+ drawmenu(); -+ } -+ return; -+ } -+ } -+ /* left-click on right arrow */ -+ w = TEXTW(">"); -+ x = mw - w; -+ if (next && ev->x >= x && ev->x <= x + w) { -+ sel = curr = next; -+ calcoffsets(); -+ drawmenu(); -+ return; -+ } -+ } -+} -+ - static void - paste(void) - { -@@ -582,6 +695,9 @@ run(void) - break; - cleanup(); - exit(1); -+ case ButtonPress: -+ buttonpress(&ev); -+ break; - case Expose: - if (ev.xexpose.count == 0) - drw_map(drw, win, 0, 0, mw, mh); -@@ -679,7 +795,8 @@ setup(void) - /* create menu window */ - swa.override_redirect = True; - swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; -- swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; -+ swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask | -+ ButtonPressMask; - win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0, - CopyFromParent, CopyFromParent, CopyFromParent, - CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); diff --git a/user/.config/suckless/dmenu/patches/dmenu-mousesupport-motion-5.2.diff b/user/.config/suckless/dmenu/patches/dmenu-mousesupport-motion-5.2.diff deleted file mode 100644 index 414201c56..000000000 --- a/user/.config/suckless/dmenu/patches/dmenu-mousesupport-motion-5.2.diff +++ /dev/null @@ -1,53 +0,0 @@ -diff --git a/dmenu.c b/dmenu.c -index 48d4980..7677401 100644 ---- a/dmenu.c -+++ b/dmenu.c -@@ -641,6 +641,29 @@ buttonpress(XEvent *e) - } - } - -+static void -+motionevent(XButtonEvent *ev) -+{ -+ struct item *it; -+ int xy, ev_xy; -+ -+ if (ev->window != win || matches == 0) -+ return; -+ -+ xy = lines > 0 ? bh : inputw + promptw + TEXTW("<"); -+ ev_xy = lines > 0 ? ev->y : ev->x; -+ for (it = curr; it && it != next; it = it->right) { -+ int wh = lines > 0 ? bh : textw_clamp(it->text, mw - xy - TEXTW(">")); -+ if (ev_xy >= xy && ev_xy < (xy + wh)) { -+ sel = it; -+ calcoffsets(); -+ drawmenu(); -+ break; -+ } -+ xy += wh; -+ } -+} -+ - static void - paste(void) - { -@@ -702,6 +725,9 @@ run(void) - case ButtonPress: - buttonpress(&ev); - break; -+ case MotionNotify: -+ motionevent(&ev.xbutton); -+ break; - case Expose: - if (ev.xexpose.count == 0) - drw_map(drw, win, 0, 0, mw, mh); -@@ -800,7 +826,7 @@ setup(void) - swa.override_redirect = True; - swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; - swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask | -- ButtonPressMask; -+ ButtonPressMask | PointerMotionMask; - win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0, - CopyFromParent, CopyFromParent, CopyFromParent, - CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); diff --git a/user/.config/suckless/dmenu/patches/dmenu-password-5.0.diff b/user/.config/suckless/dmenu/patches/dmenu-password-5.0.diff deleted file mode 100644 index 7a187b98e..000000000 --- a/user/.config/suckless/dmenu/patches/dmenu-password-5.0.diff +++ /dev/null @@ -1,103 +0,0 @@ -From c4de1032bd4c247bc20b6ab92a10a8d778966679 Mon Sep 17 00:00:00 2001 -From: Mehrad Mahmoudian -Date: Tue, 4 May 2021 12:05:09 +0300 -Subject: [PATCH] patched with password patch - ---- - dmenu.1 | 5 ++++- - dmenu.c | 21 +++++++++++++++++---- - 2 files changed, 21 insertions(+), 5 deletions(-) - -diff --git a/dmenu.1 b/dmenu.1 -index 323f93c..762f707 100644 ---- a/dmenu.1 -+++ b/dmenu.1 -@@ -3,7 +3,7 @@ - dmenu \- dynamic menu - .SH SYNOPSIS - .B dmenu --.RB [ \-bfiv ] -+.RB [ \-bfivP ] - .RB [ \-l - .IR lines ] - .RB [ \-m -@@ -47,6 +47,9 @@ is faster, but will lock up X until stdin reaches end\-of\-file. - .B \-i - dmenu matches menu items case insensitively. - .TP -+.B \-P -+dmenu will not directly display the keyboard input, but instead replace it with dots. All data from stdin will be ignored. -+.TP - .BI \-l " lines" - dmenu lists items vertically, with the given number of lines. - .TP -diff --git a/dmenu.c b/dmenu.c -index 65f25ce..ad8f63b 100644 ---- a/dmenu.c -+++ b/dmenu.c -@@ -37,7 +37,7 @@ struct item { - static char text[BUFSIZ] = ""; - static char *embed; - static int bh, mw, mh; --static int inputw = 0, promptw; -+static int inputw = 0, promptw, passwd = 0; - static int lrpad; /* sum of left and right padding */ - static size_t cursor; - static struct item *items = NULL; -@@ -132,6 +132,7 @@ drawmenu(void) - unsigned int curpos; - struct item *item; - int x = 0, y = 0, w; -+ char *censort; - - drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, 0, 0, mw, mh, 1, 1); -@@ -143,7 +144,12 @@ drawmenu(void) - /* draw input field */ - w = (lines > 0 || !matches) ? mw - x : inputw; - drw_setscheme(drw, scheme[SchemeNorm]); -- drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); -+ if (passwd) { -+ censort = ecalloc(1, sizeof(text)); -+ memset(censort, '.', strlen(text)); -+ drw_text(drw, x, 0, w, bh, lrpad / 2, censort, 0); -+ free(censort); -+ } else drw_text(drw, x, 0, w, bh, lrpad / 2, text, 0); - - curpos = TEXTW(text) - TEXTW(&text[cursor]); - if ((curpos += lrpad / 2 - 1) < w) { -@@ -524,6 +530,11 @@ readstdin(void) - char buf[sizeof text], *p; - size_t i, imax = 0, size = 0; - unsigned int tmpmax = 0; -+ if(passwd){ -+ inputw = lines = 0; -+ return; -+ } -+ - - /* read each line from stdin and add it to the item list */ - for (i = 0; fgets(buf, sizeof buf, stdin); i++) { -@@ -689,7 +700,7 @@ setup(void) - static void - usage(void) - { -- fputs("usage: dmenu [-bfiv] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" -+ fputs("usage: dmenu [-bfivP] [-l lines] [-p prompt] [-fn font] [-m monitor]\n" - " [-nb color] [-nf color] [-sb color] [-sf color] [-w windowid]\n", stderr); - exit(1); - } -@@ -712,7 +723,9 @@ main(int argc, char *argv[]) - else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */ - fstrncmp = strncasecmp; - fstrstr = cistrstr; -- } else if (i + 1 == argc) -+ } else if (!strcmp(argv[i], "-P")) /* is the input a password */ -+ passwd = 1; -+ else if (i + 1 == argc) - usage(); - /* these options take one argument */ - else if (!strcmp(argv[i], "-l")) /* number of lines in vertical list */ --- -2.31.1 - diff --git a/user/.config/suckless/dmenu/scripts/dmenu_blue b/user/.config/suckless/dmenu/scripts/dmenu_blue deleted file mode 100755 index 5b6459605..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_blue +++ /dev/null @@ -1,317 +0,0 @@ -#!/usr/bin/env bash -# _ _ _ _ _ _ -# __| |_ __ ___ ___ _ __ _ _ | |__ | |_ _ ___| |_ ___ ___ | |_ | |__ -# / _` | '_ ` _ \ / _ \ '_ \| | | |_____| '_ \| | | | |/ _ \ __/ _ \ / _ \| __|| '_ \ -# | (_| | | | | | | __/ | | | |_| |_____| |_) | | |_| | __/ || (_) | (_) | |_ | | | | -# \__,_|_| |_| |_|\___|_| |_|\__,_| |_.__/|_|\__,_|\___|\__\___/ \___/ \__||_| |_| -# -# Author: Nick Clyde (clydedroid) -# dmenu support by: Layerex -# -# A script that generates a dmenu menu that uses bluetoothctl to -# connect to bluetooth devices and display status info. -# -# Inspired by networkmanager-dmenu (https://github.com/firecat53/networkmanager-dmenu) -# Thanks to x70b1 (https://github.com/polybar/polybar-scripts/tree/master/polybar-scripts/system-bluetooth-bluetoothctl) -# -# Depends on: -# Arch repositories: dmenu, bluez-utils (contains bluetoothctl) - -# Constants -divider="---------" -goback="Back" - -# Checks if bluetooth controller is powered on -power_on() { - if bluetoothctl show | grep -F -q "Powered: yes"; then - return 0 - else - return 1 - fi -} - -# Toggles power state -toggle_power() { - if power_on; then - bluetoothctl power off - show_menu - else - if rfkill list bluetooth | grep -F -q 'blocked: yes'; then - rfkill unblock bluetooth && sleep 3 - fi - bluetoothctl power on - show_menu - fi -} - -# Checks if controller is scanning for new devices -scan_on() { - if bluetoothctl show | grep -F -q "Discovering: yes"; then - echo "Scan: on" - return 0 - else - echo "Scan: off" - return 1 - fi -} - -# Toggles scanning state -toggle_scan() { - if scan_on; then - kill "$(pgrep -F -f "bluetoothctl scan on")" - bluetoothctl scan off - show_menu - else - bluetoothctl scan on & - echo "Scanning..." - sleep 5 - show_menu - fi -} - -# Checks if controller is able to pair to devices -pairable_on() { - if bluetoothctl show | grep -F -q "Pairable: yes"; then - echo "Pairable: on" - return 0 - else - echo "Pairable: off" - return 1 - fi -} - -# Toggles pairable state -toggle_pairable() { - if pairable_on; then - bluetoothctl pairable off - show_menu - else - bluetoothctl pairable on - show_menu - fi -} - -# Checks if controller is discoverable by other devices -discoverable_on() { - if bluetoothctl show | grep -F -q "Discoverable: yes"; then - echo "Discoverable: on" - return 0 - else - echo "Discoverable: off" - return 1 - fi -} - -# Toggles discoverable state -toggle_discoverable() { - if discoverable_on; then - bluetoothctl discoverable off - show_menu - else - bluetoothctl discoverable on - show_menu - fi -} - -# Checks if a device is connected -device_connected() { - device_info=$(bluetoothctl info "$1") - if echo "$device_info" | grep -F -q "Connected: yes"; then - return 0 - else - return 1 - fi -} - -# Toggles device connection -toggle_connection() { - if device_connected "$1"; then - bluetoothctl disconnect "$1" - # device_menu "$device" - else - bluetoothctl connect "$1" - # device_menu "$device" - fi -} - -# Checks if a device is paired -device_paired() { - device_info=$(bluetoothctl info "$1") - if echo "$device_info" | grep -F -q "Paired: yes"; then - echo "Paired: yes" - return 0 - else - echo "Paired: no" - return 1 - fi -} - -# Toggles device paired state -toggle_paired() { - if device_paired "$1"; then - bluetoothctl remove "$1" - device_menu "$device" - else - bluetoothctl pair "$1" - device_menu "$device" - fi -} - -# Checks if a device is trusted -device_trusted() { - device_info=$(bluetoothctl info "$1") - if echo "$device_info" | grep -F -q "Trusted: yes"; then - echo "Trusted: yes" - return 0 - else - echo "Trusted: no" - return 1 - fi -} - -# Toggles device connection -toggle_trust() { - if device_trusted "$1"; then - bluetoothctl untrust "$1" - device_menu "$device" - else - bluetoothctl trust "$1" - device_menu "$device" - fi -} - -# Prints a short string with the current bluetooth status -# Useful for status bars like polybar, etc. -print_status() { - if power_on; then - printf '' - - mapfile -t paired_devices < <(bluetoothctl paired-devices | grep -F Device | cut -d ' ' -f 2) - counter=0 - - for device in "${paired_devices[@]}"; do - if device_connected "$device"; then - device_alias="$(bluetoothctl info "$device" | grep -F "Alias" | cut -d ' ' -f 2-)" - - if [ $counter -gt 0 ]; then - printf ", %s" "$device_alias" - else - printf " %s" "$device_alias" - fi - - ((counter++)) - fi - done - printf "\n" - else - echo "" - fi -} - -# A submenu for a specific device that allows connecting, pairing, and trusting -device_menu() { - device=$1 - - # Get device name and mac address - device_name="$(echo "$device" | cut -d ' ' -f 3-)" - mac="$(echo "$device" | cut -d ' ' -f 2)" - - # Build options - if device_connected "$mac"; then - connected="Connected: yes" - else - connected="Connected: no" - fi - paired=$(device_paired "$mac") - trusted=$(device_trusted "$mac") - options="$connected\n$paired\n$trusted\n$divider\n$goback\nExit" - - # Open dmenu menu, read chosen option - chosen="$(echo -e "$options" | run_dmenu "$device_name")" - - # Match chosen option to command - case $chosen in - "" | "$divider") - echo "No option chosen." - ;; - "$connected") - toggle_connection "$mac" - ;; - "$paired") - toggle_paired "$mac" - ;; - "$trusted") - toggle_trust "$mac" - ;; - "$goback") - show_menu - ;; - esac -} - -# Opens a dmenu menu with current bluetooth status and options to connect -show_menu() { - # Get menu options - if power_on; then - power="Power: on" - - # Human-readable names of devices, one per line - # If scan is off, will only list paired devices - devices=$(bluetoothctl devices | grep -F Device | cut -d ' ' -f 3-) - - # Get controller flags - scan=$(scan_on) - pairable=$(pairable_on) - discoverable=$(discoverable_on) - - # Options passed to dmenu - options="$devices\n$divider\n$power\n$scan\n$pairable\n$discoverable\nExit" - else - power="Power: off" - options="$power\nExit" - fi - - # Open dmenu menu, read chosen option - chosen="$(echo -e "$options" | run_dmenu "Bluetooth")" - - # Match chosen option to command - case $chosen in - "" | "$divider") - echo "No option chosen." - ;; - "$power") - toggle_power - ;; - "$scan") - toggle_scan - ;; - "$discoverable") - toggle_discoverable - ;; - "$pairable") - toggle_pairable - ;; - *) - device=$(bluetoothctl devices | grep -F "$chosen") - # Open a submenu if a device is selected - if [[ $device ]]; then device_menu "$device"; fi - ;; - esac -} - -original_args=("$@") - -# dmenu command to pipe into. Extra arguments to dmenu-bluetooth are passed through to dmenu. This -# allows the user to set fonts, sizes, colours, etc. -run_dmenu() { - dmenu "${original_args[@]}" -b -l 5 -i -p "$1" -} - -case "$1" in - --status) - print_status - ;; - *) - show_menu - ;; -esac diff --git a/user/.config/suckless/dmenu/scripts/dmenu_drun b/user/.config/suckless/dmenu/scripts/dmenu_drun deleted file mode 100755 index 49d256429..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_drun +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple desktop dmenu script -# - Dependencies: dmenu, j4-dmenu-desktop - -prompt="-p launch:" -colors="-nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7" -font="-fn 'mononoki Nerd Font-10'" - -DMENU="dmenu -i -l 10 $font $colors $prompt" -j4-dmenu-desktop --dmenu "$DMENU" --no-generic diff --git a/user/.config/suckless/dmenu/scripts/dmenu_edit b/user/.config/suckless/dmenu/scripts/dmenu_edit deleted file mode 100755 index 80c270cc9..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_edit +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple script for file editing in dmenu -# - Dependencies: dmenu (Everything else can be changed) - -# Show list of options -EDITOR="emacsclient -c -a emacs" -cd "$HOME" || exit 0 -file=1 -while [ "$file" ]; do - file=$(fd -LHpd 1 | dmenu -i -l 10 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "file to edit: $(basename "$(pwd)")") - if [ -e "$file" ]; then - owd=$(pwd) - if [ -d "$file" ]; then - cd "$file" || exit 0 - else [ -f "$file" ] - if [ "$file" ]; then - $EDITOR "$owd/$file" & - exit 0 - else - exit 0 - fi - fi - fi -done diff --git a/user/.config/suckless/dmenu/scripts/dmenu_emoji b/user/.config/suckless/dmenu/scripts/dmenu_emoji deleted file mode 100755 index b494cde55..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_emoji +++ /dev/null @@ -1,1839 +0,0 @@ -#!/bin/bash -# This files comes from: -# https://github.com/porras/dmenu-emoji -# -# If this file includes emojis below "__DATA__" it is generated. -# This file was generated: 2022-04-21 12:38:03+00:00 - -set -e - -case "$1" in - "list") - data=$(sed '0,/^__DATA__$/d' "$0") - echo "$data" - ;; - "copy") - input=$(tee) - if [ ! -z "$input" ]; then - emoji=${input: -1} - echo -n "$emoji" | xclip -selection c - command -v notify-send > /dev/null && notify-send "$emoji copied!" - fi - ;; - "") - bash $0 list | dmenu -b -i -l 10 -p 'Emoji: ' | bash $0 copy - ;; -esac - -exit - -__DATA__ -grinning face 😀 -grinning face with big eyes 😃 -grinning face with smiling eyes 😄 -beaming face with smiling eyes 😁 -grinning squinting face 😆 -grinning face with sweat 😅 -rolling on the floor laughing 🤣 -face with tears of joy 😂 -slightly smiling face 🙂 -upside-down face 🙃 -winking face 😉 -smiling face with smiling eyes 😊 -smiling face with halo 😇 -smiling face with hearts 🥰 -smiling face with heart-eyes 😍 -star-struck 🤩 -face blowing a kiss 😘 -kissing face 😗 -smiling face ☺ -kissing face with closed eyes 😚 -kissing face with smiling eyes 😙 -smiling face with tear 🥲 -face savoring food 😋 -face with tongue 😛 -winking face with tongue 😜 -zany face 🤪 -squinting face with tongue 😝 -money-mouth face 🤑 -hugging face 🤗 -face with hand over mouth 🤭 -shushing face 🤫 -thinking face 🤔 -zipper-mouth face 🤐 -face with raised eyebrow 🤨 -neutral face 😐 -expressionless face 😑 -face without mouth 😶 -smirking face 😏 -unamused face 😒 -face with rolling eyes 🙄 -grimacing face 😬 -face exhaling 😮‍ -lying face 🤥 -relieved face 😌 -pensive face 😔 -sleepy face 😪 -drooling face 🤤 -sleeping face 😴 -face with medical mask 😷 -face with thermometer 🤒 -face with head-bandage 🤕 -nauseated face 🤢 -face vomiting 🤮 -sneezing face 🤧 -hot face 🥵 -cold face 🥶 -woozy face 🥴 -knocked-out face 😵 -exploding head 🤯 -cowboy hat face 🤠 -partying face 🥳 -disguised face 🥸 -smiling face with sunglasses 😎 -nerd face 🤓 -face with monocle 🧐 -confused face 😕 -worried face 😟 -slightly frowning face 🙁 -face with open mouth 😮 -hushed face 😯 -astonished face 😲 -flushed face 😳 -pleading face 🥺 -frowning face with open mouth 😦 -anguished face 😧 -fearful face 😨 -anxious face with sweat 😰 -sad but relieved face 😥 -crying face 😢 -loudly crying face 😭 -face screaming in fear 😱 -confounded face 😖 -persevering face 😣 -disappointed face 😞 -downcast face with sweat 😓 -weary face 😩 -tired face 😫 -yawning face 🥱 -face with steam from nose 😤 -pouting face 😡 -angry face 😠 -face with symbols on mouth 🤬 -smiling face with horns 😈 -angry face with horns 👿 -skull 💀 -skull and crossbones ☠️ -pile of poo 💩 -clown face 🤡 -ogre 👹 -goblin 👺 -ghost 👻 -alien 👽 -alien monster 👾 -robot 🤖 -grinning cat 😺 -grinning cat with smiling eyes 😸 -cat with tears of joy 😹 -smiling cat with heart-eyes 😻 -cat with wry smile 😼 -kissing cat 😽 -weary cat 🙀 -crying cat 😿 -pouting cat 😾 -see-no-evil monkey 🙈 -hear-no-evil monkey 🙉 -speak-no-evil monkey 🙊 -kiss mark 💋 -love letter 💌 -heart with arrow 💘 -heart with ribbon 💝 -sparkling heart 💖 -growing heart 💗 -beating heart 💓 -revolving hearts 💞 -two hearts 💕 -heart decoration 💟 -heart exclamation ❣️ -broken heart 💔 -heart on fire ❤️‍🔥 -mending heart ❤️‍🩹 -red heart ❤️ -orange heart 🧡 -yellow heart 💛 -green heart 💚 -blue heart 💙 -purple heart 💜 -brown heart 🤎 -black heart 🖤 -white heart 🤍 -hundred points 💯 -anger symbol 💢 -collision 💥 -dizzy 💫 -sweat droplets 💦 -dashing away 💨 -hole 🕳️ -bomb 💣 -speech balloon 💬 -eye in speech bubble 👁️‍🗨️ -left speech bubble 🗨️ -right anger bubble 🗯️ -thought balloon 💭 -zzz 💤 -waving hand 👋 -raised back of hand 🤚 -hand with fingers splayed 🖐️ -raised hand ✋ -vulcan salute 🖖 -OK hand 👌 -pinched fingers 🤌 -pinching hand 🤏 -victory hand ✌️ -crossed fingers 🤞 -love-you gesture 🤟 -sign of the horns 🤘 -call me hand 🤙 -backhand index pointing left 👈 -backhand index pointing right 👉 -backhand index pointing up 👆 -middle finger 🖕 -backhand index pointing down 👇 -index pointing up ☝️ -thumbs up 👍 -thumbs down 👎 -raised fist ✊ -oncoming fist 👊 -left-facing fist 🤛 -right-facing fist 🤜 -clapping hands 👏 -raising hands 🙌 -open hands 👐 -palms up together 🤲 -handshake 🤝 -folded hands 🙏 -writing hand ✍️ -nail polish 💅 -selfie 🤳 -flexed biceps 💪 -mechanical arm 🦾 -mechanical leg 🦿 -leg 🦵 -foot 🦶 -ear 👂 -ear with hearing aid 🦻 -nose 👃 -brain 🧠 -anatomical heart 🫀 -lungs 🫁 -tooth 🦷 -bone 🦴 -eyes 👀 -eye 👁️ -tongue 👅 -mouth 👄 -baby 👶 -child 🧒 -boy 👦 -girl 👧 -person 🧑 -person: blond hair 👱 -man 👨 -person: beard 🧔 -man: beard 🧔‍♂️ -woman: beard 🧔‍♀️ -man: red hair 👨‍🦰 -man: curly hair 👨‍🦱 -man: white hair 👨‍🦳 -man: bald 👨‍🦲 -woman 👩 -woman: red hair 👩‍🦰 -person: red hair 🧑‍🦰 -woman: curly hair 👩‍🦱 -person: curly hair 🧑‍🦱 -woman: white hair 👩‍🦳 -person: white hair 🧑‍🦳 -woman: bald 👩‍🦲 -person: bald 🧑‍🦲 -woman: blond hair 👱‍♀️ -man: blond hair 👱‍♂️ -older person 🧓 -old man 👴 -old woman 👵 -person frowning 🙍 -man frowning 🙍‍♂️ -woman frowning 🙍‍♀️ -person pouting 🙎 -man pouting 🙎‍♂️ -woman pouting 🙎‍♀️ -person gesturing NO 🙅 -man gesturing NO 🙅‍♂️ -woman gesturing NO 🙅‍♀️ -person gesturing OK 🙆 -man gesturing OK 🙆‍♂️ -woman gesturing OK 🙆‍♀️ -person tipping hand 💁 -man tipping hand 💁‍♂️ -woman tipping hand 💁‍♀️ -person raising hand 🙋 -man raising hand 🙋‍♂️ -woman raising hand 🙋‍♀️ -deaf person 🧏 -deaf man 🧏‍♂️ -deaf woman 🧏‍♀️ -person bowing 🙇 -man bowing 🙇‍♂️ -woman bowing 🙇‍♀️ -person facepalming 🤦 -man facepalming 🤦‍♂️ -woman facepalming 🤦‍♀️ -person shrugging 🤷 -man shrugging 🤷‍♂️ -woman shrugging 🤷‍♀️ -health worker 🧑‍⚕️ -man health worker 👨‍⚕️ -woman health worker 👩‍⚕️ -student 🧑‍🎓 -man student 👨‍🎓 -woman student 👩‍🎓 -teacher 🧑‍🏫 -man teacher 👨‍🏫 -woman teacher 👩‍🏫 -judge 🧑‍⚖️ -man judge 👨‍⚖️ -woman judge 👩‍⚖️ -farmer 🧑‍🌾 -man farmer 👨‍🌾 -woman farmer 👩‍🌾 -cook 🧑‍🍳 -man cook 👨‍🍳 -woman cook 👩‍🍳 -mechanic 🧑‍🔧 -man mechanic 👨‍🔧 -woman mechanic 👩‍🔧 -factory worker 🧑‍🏭 -man factory worker 👨‍🏭 -woman factory worker 👩‍🏭 -office worker 🧑‍💼 -man office worker 👨‍💼 -woman office worker 👩‍💼 -scientist 🧑‍🔬 -man scientist 👨‍🔬 -woman scientist 👩‍🔬 -technologist 🧑‍💻 -man technologist 👨‍💻 -woman technologist 👩‍💻 -singer 🧑‍🎤 -man singer 👨‍🎤 -woman singer 👩‍🎤 -artist 🧑‍🎨 -man artist 👨‍🎨 -woman artist 👩‍🎨 -pilot 🧑‍✈️ -man pilot 👨‍✈️ -woman pilot 👩‍✈️ -astronaut 🧑‍🚀 -man astronaut 👨‍🚀 -woman astronaut 👩‍🚀 -firefighter 🧑‍🚒 -man firefighter 👨‍🚒 -woman firefighter 👩‍🚒 -police officer 👮 -man police officer 👮‍♂️ -woman police officer 👮‍♀️ -detective 🕵️ -man detective 🕵️‍♂️ -woman detective 🕵️‍♀️ -guard 💂 -man guard 💂‍♂️ -woman guard 💂‍♀️ -ninja 🥷 -construction worker 👷 -man construction worker 👷‍♂️ -woman construction worker 👷‍♀️ -prince 🤴 -princess 👸 -person wearing turban 👳 -man wearing turban 👳‍♂️ -woman wearing turban 👳‍♀️ -person with skullcap 👲 -woman with headscarf 🧕 -person in tuxedo 🤵 -man in tuxedo 🤵‍♂️ -woman in tuxedo 🤵‍♀️ -person with veil 👰 -man with veil 👰‍♂️ -woman with veil 👰‍♀️ -pregnant woman 🤰 -breast-feeding 🤱 -woman feeding baby 👩‍🍼 -man feeding baby 👨‍🍼 -person feeding baby 🧑‍🍼 -baby angel 👼 -Santa Claus 🎅 -Mrs. Claus 🤶 -mx claus 🧑‍🎄 -superhero 🦸 -man superhero 🦸‍♂️ -woman superhero 🦸‍♀️ -supervillain 🦹 -man supervillain 🦹‍♂️ -woman supervillain 🦹‍♀️ -mage 🧙 -man mage 🧙‍♂️ -woman mage 🧙‍♀️ -fairy 🧚 -man fairy 🧚‍♂️ -woman fairy 🧚‍♀️ -vampire 🧛 -man vampire 🧛‍♂️ -woman vampire 🧛‍♀️ -merperson 🧜 -merman 🧜‍♂️ -mermaid 🧜‍♀️ -elf 🧝 -man elf 🧝‍♂️ -woman elf 🧝‍♀️ -genie 🧞 -man genie 🧞‍♂️ -woman genie 🧞‍♀️ -zombie 🧟 -man zombie 🧟‍♂️ -woman zombie 🧟‍♀️ -person getting massage 💆 -man getting massage 💆‍♂️ -woman getting massage 💆‍♀️ -person getting haircut 💇 -man getting haircut 💇‍♂️ -woman getting haircut 💇‍♀️ -person walking 🚶 -man walking 🚶‍♂️ -woman walking 🚶‍♀️ -person standing 🧍 -man standing 🧍‍♂️ -woman standing 🧍‍♀️ -person kneeling 🧎 -man kneeling 🧎‍♂️ -woman kneeling 🧎‍♀️ -person with white cane 🧑‍🦯 -man with white cane 👨‍🦯 -woman with white cane 👩‍🦯 -person in motorized wheelchair 🧑‍🦼 -man in motorized wheelchair 👨‍🦼 -woman in motorized wheelchair 👩‍🦼 -person in manual wheelchair 🧑‍🦽 -man in manual wheelchair 👨‍🦽 -woman in manual wheelchair 👩‍🦽 -person running 🏃 -man running 🏃‍♂️ -woman running 🏃‍♀️ -woman dancing 💃 -man dancing 🕺 -person in suit levitating 🕴️ -people with bunny ears 👯 -men with bunny ears 👯‍♂️ -women with bunny ears 👯‍♀️ -person in steamy room 🧖 -man in steamy room 🧖‍♂️ -woman in steamy room 🧖‍♀️ -person climbing 🧗 -man climbing 🧗‍♂️ -woman climbing 🧗‍♀️ -person fencing 🤺 -horse racing 🏇 -skier ⛷️ -snowboarder 🏂 -person golfing 🏌️ -man golfing 🏌️‍♂️ -woman golfing 🏌️‍♀️ -person surfing 🏄 -man surfing 🏄‍♂️ -woman surfing 🏄‍♀️ -person rowing boat 🚣 -man rowing boat 🚣‍♂️ -woman rowing boat 🚣‍♀️ -person swimming 🏊 -man swimming 🏊‍♂️ -woman swimming 🏊‍♀️ -person bouncing ball ⛹️ -man bouncing ball ⛹️‍♂️ -woman bouncing ball ⛹️‍♀️ -person lifting weights 🏋️ -man lifting weights 🏋️‍♂️ -woman lifting weights 🏋️‍♀️ -person biking 🚴 -man biking 🚴‍♂️ -woman biking 🚴‍♀️ -person mountain biking 🚵 -man mountain biking 🚵‍♂️ -woman mountain biking 🚵‍♀️ -person cartwheeling 🤸 -man cartwheeling 🤸‍♂️ -woman cartwheeling 🤸‍♀️ -people wrestling 🤼 -men wrestling 🤼‍♂️ -women wrestling 🤼‍♀️ -person playing water polo 🤽 -man playing water polo 🤽‍♂️ -woman playing water polo 🤽‍♀️ -person playing handball 🤾 -man playing handball 🤾‍♂️ -woman playing handball 🤾‍♀️ -person juggling 🤹 -man juggling 🤹‍♂️ -woman juggling 🤹‍♀️ -person in lotus position 🧘 -man in lotus position 🧘‍♂️ -woman in lotus position 🧘‍♀️ -person taking bath 🛀 -person in bed 🛌 -people holding hands 🧑‍🤝‍🧑 -women holding hands 👭 -woman and man holding hands 👫 -men holding hands 👬 -kiss 💏 -kiss: woman man 👩‍❤️‍💋‍👨 -kiss: man man 👨‍❤️‍💋‍👨 -kiss: woman woman 👩‍❤️‍💋‍👩 -couple with heart 💑 -couple with heart: woman man 👩‍❤️‍👨 -couple with heart: man man 👨‍❤️‍👨 -couple with heart: woman woman 👩‍❤️‍👩 -family 👪 -family: man woman boy 👨‍👩‍👦 -family: man woman girl 👨‍👩‍👧 -family: man woman girl boy 👨‍👩‍👧‍👦 -family: man woman boy boy 👨‍👩‍👦‍👦 -family: man woman girl girl 👨‍👩‍👧‍👧 -family: man man boy 👨‍👨‍👦 -family: man man girl 👨‍👨‍👧 -family: man man girl boy 👨‍👨‍👧‍👦 -family: man man boy boy 👨‍👨‍👦‍👦 -family: man man girl girl 👨‍👨‍👧‍👧 -family: woman woman boy 👩‍👩‍👦 -family: woman woman girl 👩‍👩‍👧 -family: woman woman girl boy 👩‍👩‍👧‍👦 -family: woman woman boy boy 👩‍👩‍👦‍👦 -family: woman woman girl girl 👩‍👩‍👧‍👧 -family: man boy 👨‍👦 -family: man boy boy 👨‍👦‍👦 -family: man girl 👨‍👧 -family: man girl boy 👨‍👧‍👦 -family: man girl girl 👨‍👧‍👧 -family: woman boy 👩‍👦 -family: woman boy boy 👩‍👦‍👦 -family: woman girl 👩‍👧 -family: woman girl boy 👩‍👧‍👦 -family: woman girl girl 👩‍👧‍👧 -speaking head 🗣️ -bust in silhouette 👤 -busts in silhouette 👥 -people hugging 🫂 -footprints 👣 -monkey face 🐵 -monkey 🐒 -gorilla 🦍 -orangutan 🦧 -dog face 🐶 -dog 🐕 -guide dog 🦮 -service dog 🐕‍🦺 -poodle 🐩 -wolf 🐺 -fox 🦊 -raccoon 🦝 -cat face 🐱 -cat 🐈 -black cat 🐈‍⬛ -lion 🦁 -tiger face 🐯 -tiger 🐅 -leopard 🐆 -horse face 🐴 -horse 🐎 -unicorn 🦄 -zebra 🦓 -deer 🦌 -bison 🦬 -cow face 🐮 -ox 🐂 -water buffalo 🐃 -cow 🐄 -pig face 🐷 -pig 🐖 -boar 🐗 -pig nose 🐽 -ram 🐏 -ewe 🐑 -goat 🐐 -camel 🐪 -two-hump camel 🐫 -llama 🦙 -giraffe 🦒 -elephant 🐘 -mammoth 🦣 -rhinoceros 🦏 -hippopotamus 🦛 -mouse face 🐭 -mouse 🐁 -rat 🐀 -hamster 🐹 -rabbit face 🐰 -rabbit 🐇 -chipmunk 🐿️ -beaver 🦫 -hedgehog 🦔 -bat 🦇 -bear 🐻 -polar bear 🐻‍❄️ -koala 🐨 -panda 🐼 -sloth 🦥 -otter 🦦 -skunk 🦨 -kangaroo 🦘 -badger 🦡 -paw prints 🐾 -turkey 🦃 -chicken 🐔 -rooster 🐓 -hatching chick 🐣 -baby chick 🐤 -front-facing baby chick 🐥 -bird 🐦 -penguin 🐧 -dove 🕊️ -eagle 🦅 -duck 🦆 -swan 🦢 -owl 🦉 -dodo 🦤 -feather 🪶 -flamingo 🦩 -peacock 🦚 -parrot 🦜 -frog 🐸 -crocodile 🐊 -turtle 🐢 -lizard 🦎 -snake 🐍 -dragon face 🐲 -dragon 🐉 -sauropod 🦕 -T-Rex 🦖 -spouting whale 🐳 -whale 🐋 -dolphin 🐬 -seal 🦭 -fish 🐟 -tropical fish 🐠 -blowfish 🐡 -shark 🦈 -octopus 🐙 -spiral shell 🐚 -snail 🐌 -butterfly 🦋 -bug 🐛 -ant 🐜 -honeybee 🐝 -beetle 🪲 -lady beetle 🐞 -cricket 🦗 -cockroach 🪳 -spider 🕷️ -spider web 🕸️ -scorpion 🦂 -mosquito 🦟 -fly 🪰 -worm 🪱 -microbe 🦠 -bouquet 💐 -cherry blossom 🌸 -white flower 💮 -rosette 🏵️ -rose 🌹 -wilted flower 🥀 -hibiscus 🌺 -sunflower 🌻 -blossom 🌼 -tulip 🌷 -seedling 🌱 -potted plant 🪴 -evergreen tree 🌲 -deciduous tree 🌳 -palm tree 🌴 -cactus 🌵 -sheaf of rice 🌾 -herb 🌿 -shamrock ☘️ -four leaf clover 🍀 -maple leaf 🍁 -fallen leaf 🍂 -leaf fluttering in wind 🍃 -grapes 🍇 -melon 🍈 -watermelon 🍉 -tangerine 🍊 -lemon 🍋 -banana 🍌 -pineapple 🍍 -mango 🥭 -red apple 🍎 -green apple 🍏 -pear 🍐 -peach 🍑 -cherries 🍒 -strawberry 🍓 -blueberries 🫐 -kiwi fruit 🥝 -tomato 🍅 -olive 🫒 -coconut 🥥 -avocado 🥑 -eggplant 🍆 -potato 🥔 -carrot 🥕 -ear of corn 🌽 -hot pepper 🌶️ -bell pepper 🫑 -cucumber 🥒 -leafy green 🥬 -broccoli 🥦 -garlic 🧄 -onion 🧅 -mushroom 🍄 -peanuts 🥜 -chestnut 🌰 -bread 🍞 -croissant 🥐 -baguette bread 🥖 -flatbread 🫓 -pretzel 🥨 -bagel 🥯 -pancakes 🥞 -waffle 🧇 -cheese wedge 🧀 -meat on bone 🍖 -poultry leg 🍗 -cut of meat 🥩 -bacon 🥓 -hamburger 🍔 -french fries 🍟 -pizza 🍕 -hot dog 🌭 -sandwich 🥪 -taco 🌮 -burrito 🌯 -tamale 🫔 -stuffed flatbread 🥙 -falafel 🧆 -egg 🥚 -cooking 🍳 -shallow pan of food 🥘 -pot of food 🍲 -fondue 🫕 -bowl with spoon 🥣 -green salad 🥗 -popcorn 🍿 -butter 🧈 -salt 🧂 -canned food 🥫 -bento box 🍱 -rice cracker 🍘 -rice ball 🍙 -cooked rice 🍚 -curry rice 🍛 -steaming bowl 🍜 -spaghetti 🍝 -roasted sweet potato 🍠 -oden 🍢 -sushi 🍣 -fried shrimp 🍤 -fish cake with swirl 🍥 -moon cake 🥮 -dango 🍡 -dumpling 🥟 -fortune cookie 🥠 -takeout box 🥡 -crab 🦀 -lobster 🦞 -shrimp 🦐 -squid 🦑 -oyster 🦪 -soft ice cream 🍦 -shaved ice 🍧 -ice cream 🍨 -doughnut 🍩 -cookie 🍪 -birthday cake 🎂 -shortcake 🍰 -cupcake 🧁 -pie 🥧 -chocolate bar 🍫 -candy 🍬 -lollipop 🍭 -custard 🍮 -honey pot 🍯 -baby bottle 🍼 -glass of milk 🥛 -hot beverage ☕ -teapot 🫖 -teacup without handle 🍵 -sake 🍶 -bottle with popping cork 🍾 -wine glass 🍷 -cocktail glass 🍸 -tropical drink 🍹 -beer mug 🍺 -clinking beer mugs 🍻 -clinking glasses 🥂 -tumbler glass 🥃 -cup with straw 🥤 -bubble tea 🧋 -beverage box 🧃 -mate 🧉 -ice 🧊 -chopsticks 🥢 -fork and knife with plate 🍽️ -fork and knife 🍴 -spoon 🥄 -kitchen knife 🔪 -amphora 🏺 -globe showing Europe-Africa 🌍 -globe showing Americas 🌎 -globe showing Asia-Australia 🌏 -globe with meridians 🌐 -world map 🗺️ -map of Japan 🗾 -compass 🧭 -snow-capped mountain 🏔️ -mountain ⛰️ -volcano 🌋 -mount fuji 🗻 -camping 🏕️ -beach with umbrella 🏖️ -desert 🏜️ -desert island 🏝️ -national park 🏞️ -stadium 🏟️ -classical building 🏛️ -building construction 🏗️ -brick 🧱 -rock 🪨 -wood 🪵 -hut 🛖 -houses 🏘️ -derelict house 🏚️ -house 🏠 -house with garden 🏡 -office building 🏢 -Japanese post office 🏣 -post office 🏤 -hospital 🏥 -bank 🏦 -hotel 🏨 -love hotel 🏩 -convenience store 🏪 -school 🏫 -department store 🏬 -factory 🏭 -Japanese castle 🏯 -castle 🏰 -wedding 💒 -Tokyo tower 🗼 -Statue of Liberty 🗽 -church ⛪ -mosque 🕌 -hindu temple 🛕 -synagogue 🕍 -shinto shrine ⛩️ -kaaba 🕋 -fountain ⛲ -tent ⛺ -foggy 🌁 -night with stars 🌃 -cityscape 🏙️ -sunrise over mountains 🌄 -sunrise 🌅 -cityscape at dusk 🌆 -sunset 🌇 -bridge at night 🌉 -hot springs ♨️ -carousel horse 🎠 -ferris wheel 🎡 -roller coaster 🎢 -barber pole 💈 -circus tent 🎪 -locomotive 🚂 -railway car 🚃 -high-speed train 🚄 -bullet train 🚅 -train 🚆 -metro 🚇 -light rail 🚈 -station 🚉 -tram 🚊 -monorail 🚝 -mountain railway 🚞 -tram car 🚋 -bus 🚌 -oncoming bus 🚍 -trolleybus 🚎 -minibus 🚐 -ambulance 🚑 -fire engine 🚒 -police car 🚓 -oncoming police car 🚔 -taxi 🚕 -oncoming taxi 🚖 -automobile 🚗 -oncoming automobile 🚘 -sport utility vehicle 🚙 -pickup truck 🛻 -delivery truck 🚚 -articulated lorry 🚛 -tractor 🚜 -racing car 🏎️ -motorcycle 🏍️ -motor scooter 🛵 -manual wheelchair 🦽 -motorized wheelchair 🦼 -auto rickshaw 🛺 -bicycle 🚲 -kick scooter 🛴 -skateboard 🛹 -roller skate 🛼 -bus stop 🚏 -motorway 🛣️ -railway track 🛤️ -oil drum 🛢️ -fuel pump ⛽ -police car light 🚨 -horizontal traffic light 🚥 -vertical traffic light 🚦 -stop sign 🛑 -construction 🚧 -anchor ⚓ -sailboat ⛵ -canoe 🛶 -speedboat 🚤 -passenger ship 🛳️ -ferry ⛴️ -motor boat 🛥️ -ship 🚢 -airplane ✈️ -small airplane 🛩️ -airplane departure 🛫 -airplane arrival 🛬 -parachute 🪂 -seat 💺 -helicopter 🚁 -suspension railway 🚟 -mountain cableway 🚠 -aerial tramway 🚡 -satellite 🛰️ -rocket 🚀 -flying saucer 🛸 -bellhop bell 🛎️ -luggage 🧳 -hourglass done ⌛ -hourglass not done ⏳ -watch ⌚ -alarm clock ⏰ -stopwatch ⏱️ -timer clock ⏲️ -mantelpiece clock 🕰️ -twelve o’clock 🕛 -twelve-thirty 🕧 -one o’clock 🕐 -one-thirty 🕜 -two o’clock 🕑 -two-thirty 🕝 -three o’clock 🕒 -three-thirty 🕞 -four o’clock 🕓 -four-thirty 🕟 -five o’clock 🕔 -five-thirty 🕠 -six o’clock 🕕 -six-thirty 🕡 -seven o’clock 🕖 -seven-thirty 🕢 -eight o’clock 🕗 -eight-thirty 🕣 -nine o’clock 🕘 -nine-thirty 🕤 -ten o’clock 🕙 -ten-thirty 🕥 -eleven o’clock 🕚 -eleven-thirty 🕦 -new moon 🌑 -waxing crescent moon 🌒 -first quarter moon 🌓 -waxing gibbous moon 🌔 -full moon 🌕 -waning gibbous moon 🌖 -last quarter moon 🌗 -waning crescent moon 🌘 -crescent moon 🌙 -new moon face 🌚 -first quarter moon face 🌛 -last quarter moon face 🌜 -thermometer 🌡️ -sun ☀️ -full moon face 🌝 -sun with face 🌞 -ringed planet 🪐 -star ⭐ -glowing star 🌟 -shooting star 🌠 -milky way 🌌 -cloud ☁️ -sun behind cloud ⛅ -cloud with lightning and rain ⛈️ -sun behind small cloud 🌤️ -sun behind large cloud 🌥️ -sun behind rain cloud 🌦️ -cloud with rain 🌧️ -cloud with snow 🌨️ -cloud with lightning 🌩️ -tornado 🌪️ -fog 🌫️ -wind face 🌬️ -cyclone 🌀 -rainbow 🌈 -closed umbrella 🌂 -umbrella ☂️ -umbrella with rain drops ☔ -umbrella on ground ⛱️ -high voltage ⚡ -snowflake ❄️ -snowman ☃️ -snowman without snow ⛄ -comet ☄️ -fire 🔥 -droplet 💧 -water wave 🌊 -jack-o-lantern 🎃 -Christmas tree 🎄 -fireworks 🎆 -sparkler 🎇 -firecracker 🧨 -sparkles ✨ -balloon 🎈 -party popper 🎉 -confetti ball 🎊 -tanabata tree 🎋 -pine decoration 🎍 -Japanese dolls 🎎 -carp streamer 🎏 -wind chime 🎐 -moon viewing ceremony 🎑 -red envelope 🧧 -ribbon 🎀 -wrapped gift 🎁 -reminder ribbon 🎗️ -admission tickets 🎟️ -ticket 🎫 -military medal 🎖️ -trophy 🏆 -sports medal 🏅 -1st place medal 🥇 -2nd place medal 🥈 -3rd place medal 🥉 -soccer ball ⚽ -baseball ⚾ -softball 🥎 -basketball 🏀 -volleyball 🏐 -american football 🏈 -rugby football 🏉 -tennis 🎾 -flying disc 🥏 -bowling 🎳 -cricket game 🏏 -field hockey 🏑 -ice hockey 🏒 -lacrosse 🥍 -ping pong 🏓 -badminton 🏸 -boxing glove 🥊 -martial arts uniform 🥋 -goal net 🥅 -flag in hole ⛳ -ice skate ⛸️ -fishing pole 🎣 -diving mask 🤿 -running shirt 🎽 -skis 🎿 -sled 🛷 -curling stone 🥌 -bullseye 🎯 -yo-yo 🪀 -kite 🪁 -pool 8 ball 🎱 -crystal ball 🔮 -magic wand 🪄 -nazar amulet 🧿 -video game 🎮 -joystick 🕹️ -slot machine 🎰 -game die 🎲 -puzzle piece 🧩 -teddy bear 🧸 -piñata 🪅 -nesting dolls 🪆 -spade suit ♠️ -heart suit ♥️ -diamond suit ♦️ -club suit ♣️ -chess pawn ♟️ -joker 🃏 -mahjong red dragon 🀄 -flower playing cards 🎴 -performing arts 🎭 -framed picture 🖼️ -artist palette 🎨 -thread 🧵 -sewing needle 🪡 -yarn 🧶 -knot 🪢 -glasses 👓 -sunglasses 🕶️ -goggles 🥽 -lab coat 🥼 -safety vest 🦺 -necktie 👔 -t-shirt 👕 -jeans 👖 -scarf 🧣 -gloves 🧤 -coat 🧥 -socks 🧦 -dress 👗 -kimono 👘 -sari 🥻 -one-piece swimsuit 🩱 -briefs 🩲 -shorts 🩳 -bikini 👙 -woman’s clothes 👚 -purse 👛 -handbag 👜 -clutch bag 👝 -shopping bags 🛍️ -backpack 🎒 -thong sandal 🩴 -man’s shoe 👞 -running shoe 👟 -hiking boot 🥾 -flat shoe 🥿 -high-heeled shoe 👠 -woman’s sandal 👡 -ballet shoes 🩰 -woman’s boot 👢 -crown 👑 -woman’s hat 👒 -top hat 🎩 -graduation cap 🎓 -billed cap 🧢 -military helmet 🪖 -rescue worker’s helmet ⛑️ -prayer beads 📿 -lipstick 💄 -ring 💍 -gem stone 💎 -muted speaker 🔇 -speaker low volume 🔈 -speaker medium volume 🔉 -speaker high volume 🔊 -loudspeaker 📢 -megaphone 📣 -postal horn 📯 -bell 🔔 -bell with slash 🔕 -musical score 🎼 -musical note 🎵 -musical notes 🎶 -studio microphone 🎙️ -level slider 🎚️ -control knobs 🎛️ -microphone 🎤 -headphone 🎧 -radio 📻 -saxophone 🎷 -accordion 🪗 -guitar 🎸 -musical keyboard 🎹 -trumpet 🎺 -violin 🎻 -banjo 🪕 -drum 🥁 -long drum 🪘 -mobile phone 📱 -mobile phone with arrow 📲 -telephone ☎️ -telephone receiver 📞 -pager 📟 -fax machine 📠 -battery 🔋 -electric plug 🔌 -laptop 💻 -desktop computer 🖥️ -printer 🖨️ -keyboard ⌨️ -computer mouse 🖱️ -trackball 🖲️ -computer disk 💽 -floppy disk 💾 -optical disk 💿 -dvd 📀 -abacus 🧮 -movie camera 🎥 -film frames 🎞️ -film projector 📽️ -clapper board 🎬 -television 📺 -camera 📷 -camera with flash 📸 -video camera 📹 -videocassette 📼 -magnifying glass tilted left 🔍 -magnifying glass tilted right 🔎 -candle 🕯️ -light bulb 💡 -flashlight 🔦 -red paper lantern 🏮 -diya lamp 🪔 -notebook with decorative cover 📔 -closed book 📕 -open book 📖 -green book 📗 -blue book 📘 -orange book 📙 -books 📚 -notebook 📓 -ledger 📒 -page with curl 📃 -scroll 📜 -page facing up 📄 -newspaper 📰 -rolled-up newspaper 🗞️ -bookmark tabs 📑 -bookmark 🔖 -label 🏷️ -money bag 💰 -coin 🪙 -yen banknote 💴 -dollar banknote 💵 -euro banknote 💶 -pound banknote 💷 -money with wings 💸 -credit card 💳 -receipt 🧾 -chart increasing with yen 💹 -envelope ✉️ -e-mail 📧 -incoming envelope 📨 -envelope with arrow 📩 -outbox tray 📤 -inbox tray 📥 -package 📦 -closed mailbox with raised flag 📫 -closed mailbox with lowered flag 📪 -open mailbox with raised flag 📬 -open mailbox with lowered flag 📭 -postbox 📮 -ballot box with ballot 🗳️ -pencil ✏️ -black nib ✒️ -fountain pen 🖋️ -pen 🖊️ -paintbrush 🖌️ -crayon 🖍️ -memo 📝 -briefcase 💼 -file folder 📁 -open file folder 📂 -card index dividers 🗂️ -calendar 📅 -tear-off calendar 📆 -spiral notepad 🗒️ -spiral calendar 🗓️ -card index 📇 -chart increasing 📈 -chart decreasing 📉 -bar chart 📊 -clipboard 📋 -pushpin 📌 -round pushpin 📍 -paperclip 📎 -linked paperclips 🖇️ -straight ruler 📏 -triangular ruler 📐 -scissors ✂️ -card file box 🗃️ -file cabinet 🗄️ -wastebasket 🗑️ -locked 🔒 -unlocked 🔓 -locked with pen 🔏 -locked with key 🔐 -key 🔑 -old key 🗝️ -hammer 🔨 -axe 🪓 -pick ⛏️ -hammer and pick ⚒️ -hammer and wrench 🛠️ -dagger 🗡️ -crossed swords ⚔️ -water pistol 🔫 -boomerang 🪃 -bow and arrow 🏹 -shield 🛡️ -carpentry saw 🪚 -wrench 🔧 -screwdriver 🪛 -nut and bolt 🔩 -gear ⚙️ -clamp 🗜️ -balance scale ⚖️ -white cane 🦯 -link 🔗 -chains ⛓️ -hook 🪝 -toolbox 🧰 -magnet 🧲 -ladder 🪜 -alembic ⚗️ -test tube 🧪 -petri dish 🧫 -dna 🧬 -microscope 🔬 -telescope 🔭 -satellite antenna 📡 -syringe 💉 -drop of blood 🩸 -pill 💊 -adhesive bandage 🩹 -stethoscope 🩺 -door 🚪 -elevator 🛗 -mirror 🪞 -window 🪟 -bed 🛏️ -couch and lamp 🛋️ -chair 🪑 -toilet 🚽 -plunger 🪠 -shower 🚿 -bathtub 🛁 -mouse trap 🪤 -razor 🪒 -lotion bottle 🧴 -safety pin 🧷 -broom 🧹 -basket 🧺 -roll of paper 🧻 -bucket 🪣 -soap 🧼 -toothbrush 🪥 -sponge 🧽 -fire extinguisher 🧯 -shopping cart 🛒 -cigarette 🚬 -coffin ⚰️ -headstone 🪦 -funeral urn ⚱️ -moai 🗿 -placard 🪧 -ATM sign 🏧 -litter in bin sign 🚮 -potable water 🚰 -wheelchair symbol ♿ -men’s room 🚹 -women’s room 🚺 -restroom 🚻 -baby symbol 🚼 -water closet 🚾 -passport control 🛂 -customs 🛃 -baggage claim 🛄 -left luggage 🛅 -warning ⚠️ -children crossing 🚸 -no entry ⛔ -prohibited 🚫 -no bicycles 🚳 -no smoking 🚭 -no littering 🚯 -non-potable water 🚱 -no pedestrians 🚷 -no mobile phones 📵 -no one under eighteen 🔞 -radioactive ☢️ -biohazard ☣️ -up arrow ⬆️ -up-right arrow ↗️ -right arrow ➡️ -down-right arrow ↘️ -down arrow ⬇️ -down-left arrow ↙️ -left arrow ⬅️ -up-left arrow ↖️ -up-down arrow ↕️ -left-right arrow ↔️ -right arrow curving left ↩️ -left arrow curving right ↪️ -right arrow curving up ⤴️ -right arrow curving down ⤵️ -clockwise vertical arrows 🔃 -counterclockwise arrows button 🔄 -BACK arrow 🔙 -END arrow 🔚 -ON! arrow 🔛 -SOON arrow 🔜 -TOP arrow 🔝 -place of worship 🛐 -atom symbol ⚛️ -om 🕉️ -star of David ✡️ -wheel of dharma ☸️ -yin yang ☯️ -latin cross ✝️ -orthodox cross ☦️ -star and crescent ☪️ -peace symbol ☮️ -menorah 🕎 -dotted six-pointed star 🔯 -Aries ♈ -Taurus ♉ -Gemini ♊ -Cancer ♋ -Leo ♌ -Virgo ♍ -Libra ♎ -Scorpio ♏ -Sagittarius ♐ -Capricorn ♑ -Aquarius ♒ -Pisces ♓ -Ophiuchus ⛎ -shuffle tracks button 🔀 -repeat button 🔁 -repeat single button 🔂 -play button ▶️ -fast-forward button ⏩ -next track button ⏭️ -play or pause button ⏯️ -reverse button ◀️ -fast reverse button ⏪ -last track button ⏮️ -upwards button 🔼 -fast up button ⏫ -downwards button 🔽 -fast down button ⏬ -pause button ⏸️ -stop button ⏹️ -record button ⏺️ -eject button ⏏️ -cinema 🎦 -dim button 🔅 -bright button 🔆 -antenna bars 📶 -vibration mode 📳 -mobile phone off 📴 -female sign ♀️ -male sign ♂️ -transgender symbol ⚧️ -multiply ✖️ -plus ➕ -minus ➖ -divide ➗ -infinity ♾️ -double exclamation mark ‼️ -exclamation question mark ⁉️ -red question mark ❓ -white question mark ❔ -white exclamation mark ❕ -red exclamation mark ❗ -wavy dash 〰️ -currency exchange 💱 -heavy dollar sign 💲 -medical symbol ⚕️ -recycling symbol ♻️ -fleur-de-lis ⚜️ -trident emblem 🔱 -name badge 📛 -Japanese symbol for beginner 🔰 -hollow red circle ⭕ -check mark button ✅ -check box with check ☑️ -check mark ✔️ -cross mark ❌ -cross mark button ❎ -curly loop ➰ -double curly loop ➿ -part alternation mark 〽️ -eight-spoked asterisk ✳️ -eight-pointed star ✴️ -sparkle ❇️ -copyright ©️ -registered ®️ -trade mark ™️ -keycap: # #️⃣ -keycap: * *️⃣ -keycap: 0 0️⃣ -keycap: 1 1️⃣ -keycap: 2 2️⃣ -keycap: 3 3️⃣ -keycap: 4 4️⃣ -keycap: 5 5️⃣ -keycap: 6 6️⃣ -keycap: 7 7️⃣ -keycap: 8 8️⃣ -keycap: 9 9️⃣ -keycap: 10 🔟 -input latin uppercase 🔠 -input latin lowercase 🔡 -input numbers 🔢 -input symbols 🔣 -input latin letters 🔤 -A button (blood type) 🅰️ -AB button (blood type) 🆎 -B button (blood type) 🅱️ -CL button 🆑 -COOL button 🆒 -FREE button 🆓 -information ℹ️ -ID button 🆔 -circled M Ⓜ️ -NEW button 🆕 -NG button 🆖 -O button (blood type) 🅾️ -OK button 🆗 -P button 🅿️ -SOS button 🆘 -UP! button 🆙 -VS button 🆚 -Japanese “here” button 🈁 -Japanese “service charge” button 🈂️ -Japanese “monthly amount” button 🈷️ -Japanese “not free of charge” button 🈶 -Japanese “reserved” button 🈯 -Japanese “bargain” button 🉐 -Japanese “discount” button 🈹 -Japanese “free of charge” button 🈚 -Japanese “prohibited” button 🈲 -Japanese “acceptable” button 🉑 -Japanese “application” button 🈸 -Japanese “passing grade” button 🈴 -Japanese “vacancy” button 🈳 -Japanese “congratulations” button ㊗️ -Japanese “secret” button ㊙️ -Japanese “open for business” button 🈺 -Japanese “no vacancy” button 🈵 -red circle 🔴 -orange circle 🟠 -yellow circle 🟡 -green circle 🟢 -blue circle 🔵 -purple circle 🟣 -brown circle 🟤 -black circle ⚫ -white circle ⚪ -red square 🟥 -orange square 🟧 -yellow square 🟨 -green square 🟩 -blue square 🟦 -purple square 🟪 -brown square 🟫 -black large square ⬛ -white large square ⬜ -black medium square ◼️ -white medium square ◻️ -black medium-small square ◾ -white medium-small square ◽ -black small square ▪️ -white small square ▫️ -large orange diamond 🔶 -large blue diamond 🔷 -small orange diamond 🔸 -small blue diamond 🔹 -red triangle pointed up 🔺 -red triangle pointed down 🔻 -diamond with a dot 💠 -radio button 🔘 -white square button 🔳 -black square button 🔲 -chequered flag 🏁 -triangular flag 🚩 -crossed flags 🎌 -black flag 🏴 -white flag 🏳️ -rainbow flag 🏳️‍🌈 -transgender flag 🏳️‍⚧️ -pirate flag 🏴‍☠️ -flag: Ascension Island 🇦🇨 -flag: Andorra 🇦🇩 -flag: United Arab Emirates 🇦🇪 -flag: Afghanistan 🇦🇫 -flag: Antigua & Barbuda 🇦🇬 -flag: Anguilla 🇦🇮 -flag: Albania 🇦🇱 -flag: Armenia 🇦🇲 -flag: Angola 🇦🇴 -flag: Antarctica 🇦🇶 -flag: Argentina 🇦🇷 -flag: American Samoa 🇦🇸 -flag: Austria 🇦🇹 -flag: Australia 🇦🇺 -flag: Aruba 🇦🇼 -flag: Åland Islands 🇦🇽 -flag: Azerbaijan 🇦🇿 -flag: Bosnia & Herzegovina 🇧🇦 -flag: Barbados 🇧🇧 -flag: Bangladesh 🇧🇩 -flag: Belgium 🇧🇪 -flag: Burkina Faso 🇧🇫 -flag: Bulgaria 🇧🇬 -flag: Bahrain 🇧🇭 -flag: Burundi 🇧🇮 -flag: Benin 🇧🇯 -flag: St. Barthélemy 🇧🇱 -flag: Bermuda 🇧🇲 -flag: Brunei 🇧🇳 -flag: Bolivia 🇧🇴 -flag: Caribbean Netherlands 🇧🇶 -flag: Brazil 🇧🇷 -flag: Bahamas 🇧🇸 -flag: Bhutan 🇧🇹 -flag: Bouvet Island 🇧🇻 -flag: Botswana 🇧🇼 -flag: Belarus 🇧🇾 -flag: Belize 🇧🇿 -flag: Canada 🇨🇦 -flag: Cocos (Keeling) Islands 🇨🇨 -flag: Congo - Kinshasa 🇨🇩 -flag: Central African Republic 🇨🇫 -flag: Congo - Brazzaville 🇨🇬 -flag: Switzerland 🇨🇭 -flag: Côte d’Ivoire 🇨🇮 -flag: Cook Islands 🇨🇰 -flag: Chile 🇨🇱 -flag: Cameroon 🇨🇲 -flag: China 🇨🇳 -flag: Colombia 🇨🇴 -flag: Clipperton Island 🇨🇵 -flag: Costa Rica 🇨🇷 -flag: Cuba 🇨🇺 -flag: Cape Verde 🇨🇻 -flag: Curaçao 🇨🇼 -flag: Christmas Island 🇨🇽 -flag: Cyprus 🇨🇾 -flag: Czechia 🇨🇿 -flag: Germany 🇩🇪 -flag: Diego Garcia 🇩🇬 -flag: Djibouti 🇩🇯 -flag: Denmark 🇩🇰 -flag: Dominica 🇩🇲 -flag: Dominican Republic 🇩🇴 -flag: Algeria 🇩🇿 -flag: Ceuta & Melilla 🇪🇦 -flag: Ecuador 🇪🇨 -flag: Estonia 🇪🇪 -flag: Egypt 🇪🇬 -flag: Western Sahara 🇪🇭 -flag: Eritrea 🇪🇷 -flag: Spain 🇪🇸 -flag: Ethiopia 🇪🇹 -flag: European Union 🇪🇺 -flag: Finland 🇫🇮 -flag: Fiji 🇫🇯 -flag: Falkland Islands 🇫🇰 -flag: Micronesia 🇫🇲 -flag: Faroe Islands 🇫🇴 -flag: France 🇫🇷 -flag: Gabon 🇬🇦 -flag: United Kingdom 🇬🇧 -flag: Grenada 🇬🇩 -flag: Georgia 🇬🇪 -flag: French Guiana 🇬🇫 -flag: Guernsey 🇬🇬 -flag: Ghana 🇬🇭 -flag: Gibraltar 🇬🇮 -flag: Greenland 🇬🇱 -flag: Gambia 🇬🇲 -flag: Guinea 🇬🇳 -flag: Guadeloupe 🇬🇵 -flag: Equatorial Guinea 🇬🇶 -flag: Greece 🇬🇷 -flag: South Georgia & South Sandwich Islands 🇬🇸 -flag: Guatemala 🇬🇹 -flag: Guam 🇬🇺 -flag: Guinea-Bissau 🇬🇼 -flag: Guyana 🇬🇾 -flag: Hong Kong SAR China 🇭🇰 -flag: Heard & McDonald Islands 🇭🇲 -flag: Honduras 🇭🇳 -flag: Croatia 🇭🇷 -flag: Haiti 🇭🇹 -flag: Hungary 🇭🇺 -flag: Canary Islands 🇮🇨 -flag: Indonesia 🇮🇩 -flag: Ireland 🇮🇪 -flag: Israel 🇮🇱 -flag: Isle of Man 🇮🇲 -flag: India 🇮🇳 -flag: British Indian Ocean Territory 🇮🇴 -flag: Iraq 🇮🇶 -flag: Iran 🇮🇷 -flag: Iceland 🇮🇸 -flag: Italy 🇮🇹 -flag: Jersey 🇯🇪 -flag: Jamaica 🇯🇲 -flag: Jordan 🇯🇴 -flag: Japan 🇯🇵 -flag: Kenya 🇰🇪 -flag: Kyrgyzstan 🇰🇬 -flag: Cambodia 🇰🇭 -flag: Kiribati 🇰🇮 -flag: Comoros 🇰🇲 -flag: St. Kitts & Nevis 🇰🇳 -flag: North Korea 🇰🇵 -flag: South Korea 🇰🇷 -flag: Kuwait 🇰🇼 -flag: Cayman Islands 🇰🇾 -flag: Kazakhstan 🇰🇿 -flag: Laos 🇱🇦 -flag: Lebanon 🇱🇧 -flag: St. Lucia 🇱🇨 -flag: Liechtenstein 🇱🇮 -flag: Sri Lanka 🇱🇰 -flag: Liberia 🇱🇷 -flag: Lesotho 🇱🇸 -flag: Lithuania 🇱🇹 -flag: Luxembourg 🇱🇺 -flag: Latvia 🇱🇻 -flag: Libya 🇱🇾 -flag: Morocco 🇲🇦 -flag: Monaco 🇲🇨 -flag: Moldova 🇲🇩 -flag: Montenegro 🇲🇪 -flag: St. Martin 🇲🇫 -flag: Madagascar 🇲🇬 -flag: Marshall Islands 🇲🇭 -flag: North Macedonia 🇲🇰 -flag: Mali 🇲🇱 -flag: Myanmar (Burma) 🇲🇲 -flag: Mongolia 🇲🇳 -flag: Macao SAR China 🇲🇴 -flag: Northern Mariana Islands 🇲🇵 -flag: Martinique 🇲🇶 -flag: Mauritania 🇲🇷 -flag: Montserrat 🇲🇸 -flag: Malta 🇲🇹 -flag: Mauritius 🇲🇺 -flag: Maldives 🇲🇻 -flag: Malawi 🇲🇼 -flag: Mexico 🇲🇽 -flag: Malaysia 🇲🇾 -flag: Mozambique 🇲🇿 -flag: Namibia 🇳🇦 -flag: New Caledonia 🇳🇨 -flag: Niger 🇳🇪 -flag: Norfolk Island 🇳🇫 -flag: Nigeria 🇳🇬 -flag: Nicaragua 🇳🇮 -flag: Netherlands 🇳🇱 -flag: Norway 🇳🇴 -flag: Nepal 🇳🇵 -flag: Nauru 🇳🇷 -flag: Niue 🇳🇺 -flag: New Zealand 🇳🇿 -flag: Oman 🇴🇲 -flag: Panama 🇵🇦 -flag: Peru 🇵🇪 -flag: French Polynesia 🇵🇫 -flag: Papua New Guinea 🇵🇬 -flag: Philippines 🇵🇭 -flag: Pakistan 🇵🇰 -flag: Poland 🇵🇱 -flag: St. Pierre & Miquelon 🇵🇲 -flag: Pitcairn Islands 🇵🇳 -flag: Puerto Rico 🇵🇷 -flag: Palestinian Territories 🇵🇸 -flag: Portugal 🇵🇹 -flag: Palau 🇵🇼 -flag: Paraguay 🇵🇾 -flag: Qatar 🇶🇦 -flag: Réunion 🇷🇪 -flag: Romania 🇷🇴 -flag: Serbia 🇷🇸 -flag: Russia 🇷🇺 -flag: Rwanda 🇷🇼 -flag: Saudi Arabia 🇸🇦 -flag: Solomon Islands 🇸🇧 -flag: Seychelles 🇸🇨 -flag: Sudan 🇸🇩 -flag: Sweden 🇸🇪 -flag: Singapore 🇸🇬 -flag: St. Helena 🇸🇭 -flag: Slovenia 🇸🇮 -flag: Svalbard & Jan Mayen 🇸🇯 -flag: Slovakia 🇸🇰 -flag: Sierra Leone 🇸🇱 -flag: San Marino 🇸🇲 -flag: Senegal 🇸🇳 -flag: Somalia 🇸🇴 -flag: Suriname 🇸🇷 -flag: South Sudan 🇸🇸 -flag: São Tomé & Príncipe 🇸🇹 -flag: El Salvador 🇸🇻 -flag: Sint Maarten 🇸🇽 -flag: Syria 🇸🇾 -flag: Eswatini 🇸🇿 -flag: Tristan da Cunha 🇹🇦 -flag: Turks & Caicos Islands 🇹🇨 -flag: Chad 🇹🇩 -flag: French Southern Territories 🇹🇫 -flag: Togo 🇹🇬 -flag: Thailand 🇹🇭 -flag: Tajikistan 🇹🇯 -flag: Tokelau 🇹🇰 -flag: Timor-Leste 🇹🇱 -flag: Turkmenistan 🇹🇲 -flag: Tunisia 🇹🇳 -flag: Tonga 🇹🇴 -flag: Turkey 🇹🇷 -flag: Trinidad & Tobago 🇹🇹 -flag: Tuvalu 🇹🇻 -flag: Taiwan 🇹🇼 -flag: Tanzania 🇹🇿 -flag: Ukraine 🇺🇦 -flag: Uganda 🇺🇬 -flag: U.S. Outlying Islands 🇺🇲 -flag: United Nations 🇺🇳 -flag: United States 🇺🇸 -flag: Uruguay 🇺🇾 -flag: Uzbekistan 🇺🇿 -flag: Vatican City 🇻🇦 -flag: St. Vincent & Grenadines 🇻🇨 -flag: Venezuela 🇻🇪 -flag: British Virgin Islands 🇻🇬 -flag: U.S. Virgin Islands 🇻🇮 -flag: Vietnam 🇻🇳 -flag: Vanuatu 🇻🇺 -flag: Wallis & Futuna 🇼🇫 -flag: Samoa 🇼🇸 -flag: Kosovo 🇽🇰 -flag: Yemen 🇾🇪 -flag: Mayotte 🇾🇹 -flag: South Africa 🇿🇦 -flag: Zambia 🇿🇲 -flag: Zimbabwe 🇿🇼 -flag: England 🏴󠁧󠁢󠁥󠁮󠁧󠁿 -flag: Scotland 🏴󠁧󠁢󠁳󠁣󠁴󠁿 -flag: Wales 🏴󠁧󠁢󠁷󠁬󠁳󠁿 diff --git a/user/.config/suckless/dmenu/scripts/dmenu_power b/user/.config/suckless/dmenu/scripts/dmenu_power deleted file mode 100755 index 0568ca612..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_power +++ /dev/null @@ -1,56 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple power menu dmenu script -# - Dependencies: dmenu, power-profiles-daemon - -## OPTIONS ## -option1="logout" -option2="reboot" -option3="power off" -option4="suspend" -option5="lock" -option6="change power profile" -option7="cancel" - -## OPTIONS ARRAY ## -options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6\n$option7" - -## POWER PROFILE OPTIONS ## -pwr1="performance" -pwr2="balanced" -pwr3="powersaver" -pwr4="cancel" - -## POWER PROFILES ARRAY ## -pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4" - -## MAIN ACTION COMMAND ## -action=$(echo -e "$options" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "power options:") -case "$action" in - $option1*) - pkill X;; - $option2*) - systemctl reboot;; - $option3*) - systemctl poweroff;; - $option4*) - slock systemctl suspend;; - $option5*) - slock;; - $option6*) - currentpwr=$(powerprofilesctl get) - pwraction=$(echo -e "$pwrs" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "current profile is: ${currentpwr} | select profile:") - case "$pwraction" in - $pwr1*) - powerprofilesctl set performance && notify-send "power profile switched to performance";; - $pwr2*) - powerprofilesctl set balanced && notify-send "power profile switched to balanced";; - $pwr3*) - powerprofilesctl set power-saver && notify-send "power profile switched to power saver";; - $pwr4*) - exit 0 - esac;; - $option7*) - exit 0 -esac diff --git a/user/.config/suckless/dmenu/scripts/dmenu_scrot b/user/.config/suckless/dmenu/scripts/dmenu_scrot deleted file mode 100755 index dd2c837e9..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_scrot +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple screenshot dmenu script -# - Dependencies: scrot, dmenu, notify-send - -## CREATING SCREENSHOT FOLDER ## -mkdir -p "$HOME/Pictures/Screenshots" -cd "$HOME/Pictures/Screenshots" || exit 0 - -## CHOICES ## -cho1="entire screen" -cho2="entire screen with delay" -cho3="focused window" -cho4="select area" -chos="$cho1\n$cho2\n$cho3\n$cho4" - -## DELAY OPTIONS ## -del1="3 sec delay" -del2="5 sec delay" -del3="10 sec delay" -dels="$del1\n$del2\n$del3" - -## DELAY FUNCTION ## -delays() { - del=$(echo -e "$dels" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "Select: "); - case $del in - $del1) - scrot -d 3 && notify-send "screenshot saved";; - $del2) - scrot -d 5 && notify-send "screenshot saved";; - $del3) - scrot -d 10 && notify-send "screenshot saved" - esac -} - -## ENTIRE SCREEN FUNCTION ## -screen() { - scrot && notify-send "screenshot saved" -} - -## FOCUSED WINDOW FUNCTION -window() { - scrot -u -b && notify-send "screenshot saved." -} - -## SELECTED AREA FUNCTION ## -area() { - scrot -s && notify-send "screenshot saved." -} - -## MAIN ACTION ## -choice=$(echo -e "$chos" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "Select: ") -case $choice in - $cho1*) - screen;; - $cho2*) - delays;; - $cho3*) - window;; - $cho4*) - area -esac diff --git a/user/.config/suckless/dmenu/scripts/dmenu_wall b/user/.config/suckless/dmenu/scripts/dmenu_wall deleted file mode 100755 index b9d76de31..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_wall +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple wallpaper changer script -# - Dependencies: dmenu, fd, feh - -## MAIN VARIABLES AND COMMANDS ## -walldir="Pictures/Wallpapers/" # wallpapers folder, change it to yours, make sure that it ends with a / -cd "$walldir" || exit - -## SELECT PICTURE FUNCTION ## -selectpic() { - wallpaper=$(fd -p "$walldir" | dmenu -i -l 10 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select a wallpaper:") - if [ "$wallpaper" ]; then - chosenwall=$wallpaper - else - exit 0 - fi -} -selectpic - -## WALLPAPER SETTING OPTIONS ## -option1="fill" -option2="center" -option3="tile" -option4="max" -option5="scale" -options="$option1\n$option2\n$option3\n$option4\n$option5" - -## MAIN ACTION ## -action=$(echo -e "$options" | dmenu -i -l 5 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "chose the format:") -case "$action" in - $option1*) - feh --bg-fill "$chosenwall";; - $option2*) - feh --bg-center "$chosenwall";; - $option3*) - feh --bg-tile "$chosenwall";; - $option4*) - feh --bg-max "$chosenwall";; - $option5*) - feh --bg-scale "$chosenwall";; -esac -exit 0 diff --git a/user/.config/suckless/dmenu/scripts/dmenu_wifi b/user/.config/suckless/dmenu/scripts/dmenu_wifi deleted file mode 100755 index 86d6db8d1..000000000 --- a/user/.config/suckless/dmenu/scripts/dmenu_wifi +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/env bash - -# ***This script was made by Clay Gomera (Drake)*** -# - Description: A simple wifi dmenu script -# - Dependencies: dmenu, NetworkManager - -## MAIN OPTIONS ## -option1="turn on wifi" -option2="turn off wifi" -option3="disconnect wifi" -option4="connect wifi" -option5="setup captive portal" -option6="exit" -options="$option1\n$option2\n$option3\n$option4\n$option5\n$option6" - -wlan=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f1 | head -1) -## TURN OFF WIFI FUNCTION ## -turnoff() { - nmcli radio wifi off - notify-send "WiFi has been turned off" -} - -## TURN ON WIFI FUNCTION ## -turnon() { - nmcli radio wifi on - notify-send "WiFi has been turned on" -} - -## DISCONNECT WIFI FUNCTION ## -disconnect() { - nmcli device disconnect "$wlan" - sleep 1 - constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1) - if [ "$constate" = "disconnected" ]; then - notify-send "WiFi has been disconnected" - fi -} - -## CONNECT FUNCTION ## -connect() { - notify-send "Scannig networks, please wait" - sleep 1 - bssid=$(nmcli device wifi list | sed -n '1!p' | cut -b 9- | dmenu -i -l 10 -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "select wifi:" | cut -d' ' -f1) - } - -## SELECT PASSWORD FUNCTION ## -password() { - pass=$(echo " " | dmenu -P -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "enter password:") - } - -## MAIN CONNECTION COMMAND ## -action() { - nmcli device wifi connect "$bssid" password "$pass" || nmcli device wifi connect "$bssid" - } - -## CHECKING IF WIFI IS WORKING -check() { - notify-send "Checking if connection was successful" - sleep 1 - currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1) - if ping -q -c 2 -W 2 google.com >/dev/null; then - notify-send "You are now connected to $currentwfi and internet is working properly" - else - notify-send "Your internet is not working :(" - fi -} - -## MAIN ACTION COMMANDS ## -cases=$(echo -e "$options" | dmenu -i -fn "mononoki Nerd Font-10" -nb \#1d2021 -nf \#fbf1c7 -sb \#cc241d -sf \#fbf1c7 -p "wifi options:" ) -case "$cases" in - $option1*) - turnon;; - $option2*) - turnoff;; - $option3*) - disconnect;; - $option4*) - connect; - password; - action; - check;; - $option5*) - io.elementary.capnet-assist;; - $option6*) - exit 0 -esac diff --git a/user/.config/suckless/dmenu/stest.1 b/user/.config/suckless/dmenu/stest.1 deleted file mode 100644 index 2667d8aa7..000000000 --- a/user/.config/suckless/dmenu/stest.1 +++ /dev/null @@ -1,90 +0,0 @@ -.TH STEST 1 dmenu\-VERSION -.SH NAME -stest \- filter a list of files by properties -.SH SYNOPSIS -.B stest -.RB [ -abcdefghlpqrsuwx ] -.RB [ -n -.IR file ] -.RB [ -o -.IR file ] -.RI [ file ...] -.SH DESCRIPTION -.B stest -takes a list of files and filters by the files' properties, analogous to -.IR test (1). -Files which pass all tests are printed to stdout. If no files are given, stest -reads files from stdin. -.SH OPTIONS -.TP -.B \-a -Test hidden files. -.TP -.B \-b -Test that files are block specials. -.TP -.B \-c -Test that files are character specials. -.TP -.B \-d -Test that files are directories. -.TP -.B \-e -Test that files exist. -.TP -.B \-f -Test that files are regular files. -.TP -.B \-g -Test that files have their set-group-ID flag set. -.TP -.B \-h -Test that files are symbolic links. -.TP -.B \-l -Test the contents of a directory given as an argument. -.TP -.BI \-n " file" -Test that files are newer than -.IR file . -.TP -.BI \-o " file" -Test that files are older than -.IR file . -.TP -.B \-p -Test that files are named pipes. -.TP -.B \-q -No files are printed, only the exit status is returned. -.TP -.B \-r -Test that files are readable. -.TP -.B \-s -Test that files are not empty. -.TP -.B \-u -Test that files have their set-user-ID flag set. -.TP -.B \-v -Invert the sense of tests, only failing files pass. -.TP -.B \-w -Test that files are writable. -.TP -.B \-x -Test that files are executable. -.SH EXIT STATUS -.TP -.B 0 -At least one file passed all tests. -.TP -.B 1 -No files passed all tests. -.TP -.B 2 -An error occurred. -.SH SEE ALSO -.IR dmenu (1), -.IR test (1) diff --git a/user/.config/suckless/dmenu/stest.c b/user/.config/suckless/dmenu/stest.c deleted file mode 100644 index e27d3a5e5..000000000 --- a/user/.config/suckless/dmenu/stest.c +++ /dev/null @@ -1,109 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include - -#include -#include -#include -#include -#include -#include - -#include "arg.h" -char *argv0; - -#define FLAG(x) (flag[(x)-'a']) - -static void test(const char *, const char *); -static void usage(void); - -static int match = 0; -static int flag[26]; -static struct stat old, new; - -static void -test(const char *path, const char *name) -{ - struct stat st, ln; - - if ((!stat(path, &st) && (FLAG('a') || name[0] != '.') /* hidden files */ - && (!FLAG('b') || S_ISBLK(st.st_mode)) /* block special */ - && (!FLAG('c') || S_ISCHR(st.st_mode)) /* character special */ - && (!FLAG('d') || S_ISDIR(st.st_mode)) /* directory */ - && (!FLAG('e') || access(path, F_OK) == 0) /* exists */ - && (!FLAG('f') || S_ISREG(st.st_mode)) /* regular file */ - && (!FLAG('g') || st.st_mode & S_ISGID) /* set-group-id flag */ - && (!FLAG('h') || (!lstat(path, &ln) && S_ISLNK(ln.st_mode))) /* symbolic link */ - && (!FLAG('n') || st.st_mtime > new.st_mtime) /* newer than file */ - && (!FLAG('o') || st.st_mtime < old.st_mtime) /* older than file */ - && (!FLAG('p') || S_ISFIFO(st.st_mode)) /* named pipe */ - && (!FLAG('r') || access(path, R_OK) == 0) /* readable */ - && (!FLAG('s') || st.st_size > 0) /* not empty */ - && (!FLAG('u') || st.st_mode & S_ISUID) /* set-user-id flag */ - && (!FLAG('w') || access(path, W_OK) == 0) /* writable */ - && (!FLAG('x') || access(path, X_OK) == 0)) != FLAG('v')) { /* executable */ - if (FLAG('q')) - exit(0); - match = 1; - puts(name); - } -} - -static void -usage(void) -{ - fprintf(stderr, "usage: %s [-abcdefghlpqrsuvwx] " - "[-n file] [-o file] [file...]\n", argv0); - exit(2); /* like test(1) return > 1 on error */ -} - -int -main(int argc, char *argv[]) -{ - struct dirent *d; - char path[PATH_MAX], *line = NULL, *file; - size_t linesiz = 0; - ssize_t n; - DIR *dir; - int r; - - ARGBEGIN { - case 'n': /* newer than file */ - case 'o': /* older than file */ - file = EARGF(usage()); - if (!(FLAG(ARGC()) = !stat(file, (ARGC() == 'n' ? &new : &old)))) - perror(file); - break; - default: - /* miscellaneous operators */ - if (strchr("abcdefghlpqrsuvwx", ARGC())) - FLAG(ARGC()) = 1; - else - usage(); /* unknown flag */ - } ARGEND; - - if (!argc) { - /* read list from stdin */ - while ((n = getline(&line, &linesiz, stdin)) > 0) { - if (line[n - 1] == '\n') - line[n - 1] = '\0'; - test(line, line); - } - free(line); - } else { - for (; argc; argc--, argv++) { - if (FLAG('l') && (dir = opendir(*argv))) { - /* test directory contents */ - while ((d = readdir(dir))) { - r = snprintf(path, sizeof path, "%s/%s", - *argv, d->d_name); - if (r >= 0 && (size_t)r < sizeof path) - test(path, d->d_name); - } - closedir(dir); - } else { - test(*argv, *argv); - } - } - } - return match ? 0 : 1; -} diff --git a/user/.config/suckless/dmenu/util.c b/user/.config/suckless/dmenu/util.c deleted file mode 100644 index 96b82c980..000000000 --- a/user/.config/suckless/dmenu/util.c +++ /dev/null @@ -1,36 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include -#include -#include - -#include "util.h" - -void -die(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - - if (fmt[0] && fmt[strlen(fmt)-1] == ':') { - fputc(' ', stderr); - perror(NULL); - } else { - fputc('\n', stderr); - } - - exit(1); -} - -void * -ecalloc(size_t nmemb, size_t size) -{ - void *p; - - if (!(p = calloc(nmemb, size))) - die("calloc:"); - return p; -} diff --git a/user/.config/suckless/dmenu/util.h b/user/.config/suckless/dmenu/util.h deleted file mode 100644 index f633b5173..000000000 --- a/user/.config/suckless/dmenu/util.h +++ /dev/null @@ -1,8 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -#define MAX(A, B) ((A) > (B) ? (A) : (B)) -#define MIN(A, B) ((A) < (B) ? (A) : (B)) -#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) - -void die(const char *fmt, ...); -void *ecalloc(size_t nmemb, size_t size); diff --git a/user/.config/suckless/dwm/Makefile b/user/.config/suckless/dwm/Makefile deleted file mode 100644 index 77bcbc02c..000000000 --- a/user/.config/suckless/dwm/Makefile +++ /dev/null @@ -1,51 +0,0 @@ -# dwm - dynamic window manager -# See LICENSE file for copyright and license details. - -include config.mk - -SRC = drw.c dwm.c util.c -OBJ = ${SRC:.c=.o} - -all: options dwm - -options: - @echo dwm build options: - @echo "CFLAGS = ${CFLAGS}" - @echo "LDFLAGS = ${LDFLAGS}" - @echo "CC = ${CC}" - -.c.o: - ${CC} -c ${CFLAGS} $< - -${OBJ}: config.h config.mk - -config.h: - cp config.def.h $@ - -dwm: ${OBJ} - ${CC} -o $@ ${OBJ} ${LDFLAGS} - -clean: - rm -f dwm ${OBJ} dwm-${VERSION}.tar.gz - -dist: clean - mkdir -p dwm-${VERSION} - cp -R LICENSE Makefile README config.def.h config.mk\ - dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION} - tar -cf dwm-${VERSION}.tar dwm-${VERSION} - gzip dwm-${VERSION}.tar - rm -rf dwm-${VERSION} - -install: all - mkdir -p ${DESTDIR}${PREFIX}/bin - cp -f dwm ${DESTDIR}${PREFIX}/bin - chmod 755 ${DESTDIR}${PREFIX}/bin/dwm - mkdir -p ${DESTDIR}${MANPREFIX}/man1 - sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1 - chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1 - -uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/dwm\ - ${DESTDIR}${MANPREFIX}/man1/dwm.1 - -.PHONY: all options clean dist install uninstall diff --git a/user/.config/suckless/dwm/autostart b/user/.config/suckless/dwm/autostart deleted file mode 100755 index 42e519ffe..000000000 --- a/user/.config/suckless/dwm/autostart +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -## ____ __ ## -## / __ \_________ _/ /_____ ## -## / / / / ___/ __ `/ //_/ _ \ ## -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) ## -## /_____/_/ \__,_/_/|_|\___/ My custom dwm build ## - -lxpolkit & -dwmblocks & -sh "$HOME"/.fehbg & -unclutter --hide-on-touch & -picom --no-fading-openclose --config "$HOME/.config/picom/picom.conf" & diff --git a/user/.config/suckless/dwm/config.def.h b/user/.config/suckless/dwm/config.def.h deleted file mode 100644 index 5346272b3..000000000 --- a/user/.config/suckless/dwm/config.def.h +++ /dev/null @@ -1,297 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -/* appearance */ -static const unsigned int borderpx = 1; /* border pixel of windows */ -static const unsigned int snap = 32; /* snap pixel */ -static const int showbar = 1; /* 0 means no bar */ -static const int topbar = 1; /* 0 means bottom bar */ -static const int horizpadbar = 2; /* horizontal padding for statusbar */ -static const int vertpadbar = 1; /* vertical padding for statusbar */ -static const char *fonts[] = {"mononoki Nerd Font Mono:size=10"}; -static const char dmenufont[] = "mononoki Nerd Font Mono:size=10"; -static const char col_gray1[] = "#1d2021"; -static const char col_gray2[] = "#32302f"; -static const char col_gray3[] = "#d5c4a1"; -static const char col_gray4[] = "#fbf1c7"; -static const char col_cyan[] = "#cc241d"; -static const char *colors[][3] = { - /* fg bg border */ - [SchemeNorm] = { col_gray3, col_gray1, col_gray2 }, - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, -}; - -// SCRATCHPADS -typedef struct { - const char *name; - const void *cmd; -} Sp; -const char *spcmd1[] = {"alacritty", "-t", "sptrm", "--class", "sptrm,sptrm", NULL }; -const char *spcmd2[] = {"alacritty", "-t", "sptop", "--class", "sptop,sptop", "-e", "btop", NULL }; -const char *spcmd3[] = {"alacritty", "-t", "spfli", "--class", "spfli,spfli", "-e", "flix-cli", NULL }; -const char *spcmd4[] = {"alacritty", "-t", "spani", "--class", "spani,spani", "-e", "ani-cli", NULL }; -const char *spcmd5[] = {"alacritty", "-t", "spytf", "--class", "spytf,spytf", "-e", "ytfzf", "-flst", NULL }; -const char *spcmd6[] = {"alacritty", "-t", "spamx", "--class", "spamx,spamx", "-e", "alsamixer", NULL }; -const char *spcmd7[] = {"alacritty", "-t", "sppmx", "--class", "sppmx,sppmx", "-e", "pulsemixer", NULL }; -const char *spcmd8[] = {"alacritty", "-t", "spmsc", "--class", "spmsc,spmsc", "-e", "cmus", NULL }; -const char *spcmd9[] = {"alacritty", "-t", "spflm", "--class", "spflm,spflm", "-e", "./.config/vifm/scripts/vifmrun", NULL }; -const char *spcmd10[] = {"alacritty", "-t", "sptot", "--class", "sptot,sptot", "-e", "tut", NULL }; -const char *spcmd11[] = {"alacritty", "-t", "spytm", "--class", "spytm,spytm", "-e", "ytfzf", "-mlst", NULL }; -const char *spcmd12[] = {"alacritty", "-t", "sprss", "--class", "sprss,sprss", "-e", "newsboat", "-u", "~/.config/newsboat/urls", NULL }; -static Sp scratchpads[] = { - /* name cmd */ - {"sptrm", spcmd1}, - {"sptop", spcmd2}, - {"spfli", spcmd3}, - {"spani", spcmd4}, - {"spytf", spcmd5}, - {"spamx", spcmd6}, - {"sppmx", spcmd7}, - {"spmsc", spcmd8}, - {"spflm", spcmd9}, - {"sptot", spcmd10}, - {"spytm", spcmd11}, - {"sprss", spcmd12}, -}; - -/* tagging */ -static const char *tags[] = { - "cde", // EDITOR - "tst", // FILE MANAGER - "web", // WEB BROWSER - "aud", // CHAT - "tls", // MUSIC - "vid", // VIDEO - "gfx", // IMAGE/EDIT TOOLS - "off", // OFFICE - "gme" // GAMES -}; - -// RULES -static const Rule rules[] = { - /* xprop(1): - * WM_CLASS(STRING) = instance, class - * WM_NAME(STRING) = title - */ - // class instance title tags mask isfloating monitor - // no workspace - { "Galculator", NULL, NULL, 0, 1, -1 }, - // code tag - { "Emacs", NULL, NULL, 1, 0, -1 }, - { "Godot", NULL, NULL, 1, 0, -1 }, - { "neovim", NULL, NULL, 1, 0, -1 }, - { "neovide", NULL, NULL, 1, 0, -1 }, - // test tag - { "Virt-manager", NULL, NULL, 1, 0, -1 }, - // web tag - { "LibreWolf", NULL, NULL, 1 << 2, 0, -1 }, - { "firefox", NULL, NULL, 1 << 2, 0, -1 }, - { "qutebrowser", NULL, NULL, 1 << 2, 0, -1 }, - { "Chromium", NULL, NULL, 1 << 2, 0, -1 }, - { "Brave-browser", NULL, NULL, 1 << 2, 0, -1 }, - { "Bitwarden", NULL, NULL, 1 << 2, 0, -1 }, - // audio tag - { "Audacity", NULL, NULL, 1 << 3, 0, -1 }, - { "Ardour", NULL, NULL, 1 << 3, 0, -1 }, - { "Carla2", NULL, NULL, 1 << 3, 0, -1 }, - { "Carla2-Control", NULL, NULL, 1 << 3, 0, -1 }, - // audio tools tag - { "QjackCtl", NULL, NULL, 1 << 4, 1, -1 }, - { "lsp-plugins", NULL, NULL, 1 << 4, 1, -1 }, - { "qpwgraph", NULL, NULL, 1 << 4, 0, -1 }, - { "Cadence", NULL, NULL, 1 << 4, 0, -1 }, - // video tag - { "kdenlive", NULL, NULL, 1 << 5, 0, -1 }, - { "Pitivi", NULL, NULL, 1 << 5, 0, -1 }, - { "Blender", NULL, NULL, 1 << 5, 0, -1 }, - { "Natron", NULL, NULL, 1 << 5, 0, -1 }, - { "SimpleScreenRecorder", NULL, NULL, 1 << 5, 0, -1 }, - { "Ghb", NULL, NULL, 1 << 5, 0, -1 }, - { "obs", NULL, NULL, 1 << 5, 0, -1 }, - // graphics/extra tools tag - { "Gimp-2.10", NULL, NULL, 1 << 6, 0, -1 }, - { "krita", NULL, NULL, 1 << 6, 0, -1 }, - { "Inkscape", NULL, NULL, 1 << 6, 0, -1 }, - { "Xournalpp", NULL, NULL, 1 << 6, 0, -1 }, - // office tag - { "DesktopEditors", NULL, NULL, 1 << 7, 0, -1 }, - { "Soffice", "soffice", NULL, 1 << 7, 0, -1 }, - { "libreoffice-startcenter", NULL, NULL, 1 << 7, 0, -1 }, - { "Joplin", NULL, NULL, 1 << 7, 0, -1 }, - // games tag - { "retroarch", NULL, NULL, 1 << 8, 0, -1 }, - { "steam", NULL, NULL, 1 << 8, 0, -1 }, - // scratchpads - { NULL, "sptrm", NULL, SPTAG(0), 1, -1 }, - { NULL, "sptop", NULL, SPTAG(1), 1, -1 }, - { NULL, "spfli", NULL, SPTAG(2), 1, -1 }, - { NULL, "spani", NULL, SPTAG(3), 1, -1 }, - { NULL, "spytf", NULL, SPTAG(4), 1, -1 }, - { NULL, "spamx", NULL, SPTAG(5), 1, -1 }, - { NULL, "sppmx", NULL, SPTAG(6), 1, -1 }, - { NULL, "spmsc", NULL, SPTAG(7), 1, -1 }, - { NULL, "spflm", NULL, SPTAG(8), 1, -1 }, - { NULL, "sptot", NULL, SPTAG(9), 1, -1 }, - { NULL, "spytm", NULL, SPTAG(10), 1, -1 }, - { NULL, "sprss", NULL, SPTAG(11), 1, -1 }, -}; - -// layout(s) -static const float mfact = 0.5; /* factor of master area size [0.05..0.95] */ -static const int nmaster = 1; /* number of clients in master area */ -static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */ -static const int lockfullscreen = 1; /* 1 will force focus on the fullscreen window */ - -#include "tcl.c" -static const Layout layouts[] = { - /* symbol arrange function */ - { "[]=", tile }, /* first entry is default */ - { "><>", NULL }, /* no layout function means floating behavior */ - { "[M]", monocle }, - { "|||", tcl }, -}; - -//key definitions -#define MODKEY Mod4Mask -#define TAGKEYS(KEY,TAG) \ - { MODKEY, KEY, view, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \ - { MODKEY|ShiftMask, KEY, tag, {.ui = 1 << TAG} }, \ - { MODKEY|ControlMask|ShiftMask, KEY, toggletag, {.ui = 1 << TAG} }, - -// helper for spawning shell commands in the pre dwm-5.0 fashion -#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } - -/* commands */ -// dmenu -static const char *dmenucmd[] = { "dmenu_run", "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; -// terminal -static const char *termcmd[] = { "alacritty", NULL }; - -#include "movestack.c" - -static const Key keys[] = { - /* modifier key function argument */ - // text editor - { MODKEY, XK_e, spawn, SHCMD("emacsclient -c -a 'emacs'")}, - // web browser - { MODKEY, XK_w, spawn, SHCMD("librewolf")}, - // set keyboard layout to es - { MODKEY|ControlMask, XK_e, spawn, SHCMD("setxkbmap -layout es")}, - // set keyboard layout to us - { MODKEY|ControlMask, XK_u, spawn, SHCMD("setxkbmap -layout us")}, - // increase volume - { 0, XF86XK_AudioRaiseVolume, spawn, SHCMD("pamixer -i 5")}, - // decrease volume - { 0, XF86XK_AudioLowerVolume, spawn, SHCMD("pamixer -d 5")}, - // mute volume - { 0, XF86XK_AudioMute, spawn, SHCMD("pamixer -t")}, - // mute microphone - { 0, XF86XK_AudioMicMute, spawn, SHCMD("pamixer --default-source -t")}, - // increase brightness - { 0, XF86XK_MonBrightnessUp, spawn, SHCMD("xbacklight -inc 10")}, - // decrease brightness - { 0, XF86XK_MonBrightnessDown, spawn, SHCMD("xbacklight -dec 10")}, - // decrease brightness - { 0, XF86XK_Display, spawn, SHCMD("arandr")}, - // launcher - { MODKEY|ControlMask, XK_p, spawn, {.v = dmenucmd } }, - // desktop launcher - { MODKEY, XK_p, spawn, SHCMD("$HOME/.config/suckless/dmenu/scripts/dmenu_drun") }, - // wifi config - { MODKEY|Mod1Mask, XK_i, spawn, SHCMD("$HOME/.config/suckless/dmenu/scripts/dmenu_wifi") }, - // screenshots - { MODKEY|Mod1Mask, XK_s, spawn, SHCMD("$HOME/.config/suckless/dmenu/scripts/dmenu_scrot") }, - // screenshots - { MODKEY|Mod1Mask, XK_w, spawn, SHCMD("$HOME/.config/suckless/dmenu/scripts/dmenu_wall") }, - // edit - { MODKEY|Mod1Mask, XK_e, spawn, SHCMD("$HOME/.config/suckless/dmenu/scripts/dmenu_edit") }, - // terminal - { MODKEY, XK_Return, spawn, {.v = termcmd } }, - // toogle the bar - { MODKEY, XK_b, togglebar, {0} }, - // window focusing - { MODKEY, XK_j, focusstack, {.i = +1 } }, - { MODKEY, XK_k, focusstack, {.i = -1 } }, - // increase and decrease master clients count - { MODKEY, XK_i, incnmaster, {.i = +1 } }, - { MODKEY, XK_d, incnmaster, {.i = -1 } }, - // increase and decrease master client size - { MODKEY, XK_h, setmfact, {.f = -0.05} }, - { MODKEY, XK_l, setmfact, {.f = +0.05} }, - // move windows on stack - { MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } }, - { MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } }, - // switch master window - { MODKEY|ControlMask, XK_Return, zoom, {0} }, - // switch to latest tag - { MODKEY, XK_Tab, view, {0} }, - // close focused client - { MODKEY, XK_q, killclient, {0} }, - // switch to tiling layout - { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, - // switch to floating layout - { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, - // switch to monocle layout - { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, - // switch to three-column layout - { MODKEY, XK_c, setlayout, {.v = &layouts[3]} }, - // switch to latest layout - { MODKEY, XK_space, setlayout, {0} }, - // toggle floating mode on focused window - { MODKEY|ControlMask, XK_space, togglefloating, {0} }, - // view all opened clients on current tag - { MODKEY, XK_0, view, {.ui = ~0 } }, - { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - // focus next or previous screen - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - // move focused client to next or previous screen - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, - // scratchpads - { MODKEY|ShiftMask, XK_Return, togglescratch, {.ui = 0 } }, - { MODKEY|ShiftMask, XK_b, togglescratch, {.ui = 1 } }, - { MODKEY|ShiftMask, XK_f, togglescratch, {.ui = 2 } }, - { MODKEY|ShiftMask, XK_a, togglescratch, {.ui = 3 } }, - { MODKEY|ShiftMask, XK_y, togglescratch, {.ui = 4 } }, - { MODKEY|ShiftMask, XK_o, togglescratch, {.ui = 5 } }, - { MODKEY|ShiftMask, XK_p, togglescratch, {.ui = 6 } }, - { MODKEY|ShiftMask, XK_m, togglescratch, {.ui = 7 } }, - { MODKEY|ShiftMask, XK_v, togglescratch, {.ui = 8 } }, - { MODKEY|ShiftMask, XK_t, togglescratch, {.ui = 9 } }, - { MODKEY|ShiftMask, XK_n, togglescratch, {.ui = 10 } }, - { MODKEY|ShiftMask, XK_r, togglescratch, {.ui = 11 } }, - // tag bindings - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) - TAGKEYS( XK_4, 3) - TAGKEYS( XK_5, 4) - TAGKEYS( XK_6, 5) - TAGKEYS( XK_7, 6) - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) - // logout - //{ MODKEY|ShiftMask, XK_q, quit, {0} }, - { MODKEY|ShiftMask, XK_q, spawn, SHCMD("$HOME/.config/suckless/dmenu/scripts/dmenu_power")}, - // restart dwm - { MODKEY|ControlMask, XK_r, quit, {1} }, -}; - -/* button definitions */ -/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -// mouse bindings -static const Button buttons[] = { - /* click event mask button function argument */ - { ClkLtSymbol, 0, Button1, setlayout, {0} }, - { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, - { ClkWinTitle, 0, Button2, zoom, {0} }, - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, - { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, - { ClkTagBar, MODKEY, Button3, toggletag, {0} }, -}; - diff --git a/user/.config/suckless/dwm/config.mk b/user/.config/suckless/dwm/config.mk deleted file mode 100644 index ef8acf76b..000000000 --- a/user/.config/suckless/dwm/config.mk +++ /dev/null @@ -1,39 +0,0 @@ -# dwm version -VERSION = 6.4 - -# Customize below to fit your system - -# paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man - -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib - -# Xinerama, comment if you don't want it -XINERAMALIBS = -lXinerama -XINERAMAFLAGS = -DXINERAMA - -# freetype -FREETYPELIBS = -lfontconfig -lXft -FREETYPEINC = /usr/include/freetype2 -# OpenBSD (uncomment) -#FREETYPEINC = ${X11INC}/freetype2 -#MANPREFIX = ${PREFIX}/man - -# includes and libs -INCS = -I${X11INC} -I${FREETYPEINC} -LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} ${FREETYPELIBS} - -# flags -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=200809L -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS} -#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} -CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} -LDFLAGS = ${LIBS} - -# Solaris -#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" -#LDFLAGS = ${LIBS} - -# compiler and linker -CC = cc diff --git a/user/.config/suckless/dwm/dependencies.txt b/user/.config/suckless/dwm/dependencies.txt deleted file mode 100644 index 23a3f5248..000000000 --- a/user/.config/suckless/dwm/dependencies.txt +++ /dev/null @@ -1,24 +0,0 @@ -# core dependencies -xorg-server -libx11 -libxft -libxinerama - -# extra dependencies -xbacklight # brightness control -pamixer # volume control -arandr # display config -alacritty # terminal -dmenu # run launcher -dwmblocks # status bar scripts -slock # lockscreen -herbe # notifications -neovim & neovide # text editor - -# scratchpads -ani-cli # watch anime -flix-cli # watch movies -ytfzf # watch/listen to youtube -vifm # file manager -gomuks # matrix client -toot # tui mastodon client diff --git a/user/.config/suckless/dwm/drw.c b/user/.config/suckless/dwm/drw.c deleted file mode 100644 index 16e386292..000000000 --- a/user/.config/suckless/dwm/drw.c +++ /dev/null @@ -1,451 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include -#include -#include -#include - -#include "drw.h" -#include "util.h" - -#define UTF_INVALID 0xFFFD -#define UTF_SIZ 4 - -static const unsigned char utfbyte[UTF_SIZ + 1] = {0x80, 0, 0xC0, 0xE0, 0xF0}; -static const unsigned char utfmask[UTF_SIZ + 1] = {0xC0, 0x80, 0xE0, 0xF0, 0xF8}; -static const long utfmin[UTF_SIZ + 1] = { 0, 0, 0x80, 0x800, 0x10000}; -static const long utfmax[UTF_SIZ + 1] = {0x10FFFF, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF}; - -static long -utf8decodebyte(const char c, size_t *i) -{ - for (*i = 0; *i < (UTF_SIZ + 1); ++(*i)) - if (((unsigned char)c & utfmask[*i]) == utfbyte[*i]) - return (unsigned char)c & ~utfmask[*i]; - return 0; -} - -static size_t -utf8validate(long *u, size_t i) -{ - if (!BETWEEN(*u, utfmin[i], utfmax[i]) || BETWEEN(*u, 0xD800, 0xDFFF)) - *u = UTF_INVALID; - for (i = 1; *u > utfmax[i]; ++i) - ; - return i; -} - -static size_t -utf8decode(const char *c, long *u, size_t clen) -{ - size_t i, j, len, type; - long udecoded; - - *u = UTF_INVALID; - if (!clen) - return 0; - udecoded = utf8decodebyte(c[0], &len); - if (!BETWEEN(len, 1, UTF_SIZ)) - return 1; - for (i = 1, j = 1; i < clen && j < len; ++i, ++j) { - udecoded = (udecoded << 6) | utf8decodebyte(c[i], &type); - if (type) - return j; - } - if (j < len) - return 0; - *u = udecoded; - utf8validate(u, len); - - return len; -} - -Drw * -drw_create(Display *dpy, int screen, Window root, unsigned int w, unsigned int h) -{ - Drw *drw = ecalloc(1, sizeof(Drw)); - - drw->dpy = dpy; - drw->screen = screen; - drw->root = root; - drw->w = w; - drw->h = h; - drw->drawable = XCreatePixmap(dpy, root, w, h, DefaultDepth(dpy, screen)); - drw->gc = XCreateGC(dpy, root, 0, NULL); - XSetLineAttributes(dpy, drw->gc, 1, LineSolid, CapButt, JoinMiter); - - return drw; -} - -void -drw_resize(Drw *drw, unsigned int w, unsigned int h) -{ - if (!drw) - return; - - drw->w = w; - drw->h = h; - if (drw->drawable) - XFreePixmap(drw->dpy, drw->drawable); - drw->drawable = XCreatePixmap(drw->dpy, drw->root, w, h, DefaultDepth(drw->dpy, drw->screen)); -} - -void -drw_free(Drw *drw) -{ - XFreePixmap(drw->dpy, drw->drawable); - XFreeGC(drw->dpy, drw->gc); - drw_fontset_free(drw->fonts); - free(drw); -} - -/* This function is an implementation detail. Library users should use - * drw_fontset_create instead. - */ -static Fnt * -xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern) -{ - Fnt *font; - XftFont *xfont = NULL; - FcPattern *pattern = NULL; - - if (fontname) { - /* Using the pattern found at font->xfont->pattern does not yield the - * same substitution results as using the pattern returned by - * FcNameParse; using the latter results in the desired fallback - * behaviour whereas the former just results in missing-character - * rectangles being drawn, at least with some fonts. */ - if (!(xfont = XftFontOpenName(drw->dpy, drw->screen, fontname))) { - fprintf(stderr, "error, cannot load font from name: '%s'\n", fontname); - return NULL; - } - if (!(pattern = FcNameParse((FcChar8 *) fontname))) { - fprintf(stderr, "error, cannot parse font name to pattern: '%s'\n", fontname); - XftFontClose(drw->dpy, xfont); - return NULL; - } - } else if (fontpattern) { - if (!(xfont = XftFontOpenPattern(drw->dpy, fontpattern))) { - fprintf(stderr, "error, cannot load font from pattern.\n"); - return NULL; - } - } else { - die("no font specified."); - } - - font = ecalloc(1, sizeof(Fnt)); - font->xfont = xfont; - font->pattern = pattern; - font->h = xfont->ascent + xfont->descent; - font->dpy = drw->dpy; - - return font; -} - -static void -xfont_free(Fnt *font) -{ - if (!font) - return; - if (font->pattern) - FcPatternDestroy(font->pattern); - XftFontClose(font->dpy, font->xfont); - free(font); -} - -Fnt* -drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount) -{ - Fnt *cur, *ret = NULL; - size_t i; - - if (!drw || !fonts) - return NULL; - - for (i = 1; i <= fontcount; i++) { - if ((cur = xfont_create(drw, fonts[fontcount - i], NULL))) { - cur->next = ret; - ret = cur; - } - } - return (drw->fonts = ret); -} - -void -drw_fontset_free(Fnt *font) -{ - if (font) { - drw_fontset_free(font->next); - xfont_free(font); - } -} - -void -drw_clr_create(Drw *drw, Clr *dest, const char *clrname) -{ - if (!drw || !dest || !clrname) - return; - - if (!XftColorAllocName(drw->dpy, DefaultVisual(drw->dpy, drw->screen), - DefaultColormap(drw->dpy, drw->screen), - clrname, dest)) - die("error, cannot allocate color '%s'", clrname); - dest->pixel |= 0xff << 24; -} - -/* Wrapper to create color schemes. The caller has to call free(3) on the - * returned color scheme when done using it. */ -Clr * -drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount) -{ - size_t i; - Clr *ret; - - /* need at least two colors for a scheme */ - if (!drw || !clrnames || clrcount < 2 || !(ret = ecalloc(clrcount, sizeof(XftColor)))) - return NULL; - - for (i = 0; i < clrcount; i++) - drw_clr_create(drw, &ret[i], clrnames[i]); - return ret; -} - -void -drw_setfontset(Drw *drw, Fnt *set) -{ - if (drw) - drw->fonts = set; -} - -void -drw_setscheme(Drw *drw, Clr *scm) -{ - if (drw) - drw->scheme = scm; -} - -void -drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert) -{ - if (!drw || !drw->scheme) - return; - XSetForeground(drw->dpy, drw->gc, invert ? drw->scheme[ColBg].pixel : drw->scheme[ColFg].pixel); - if (filled) - XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); - else - XDrawRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w - 1, h - 1); -} - -int -drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert) -{ - int i, ty, ellipsis_x = 0; - unsigned int tmpw, ew, ellipsis_w = 0, ellipsis_len; - XftDraw *d = NULL; - Fnt *usedfont, *curfont, *nextfont; - int utf8strlen, utf8charlen, render = x || y || w || h; - long utf8codepoint = 0; - const char *utf8str; - FcCharSet *fccharset; - FcPattern *fcpattern; - FcPattern *match; - XftResult result; - int charexists = 0, overflow = 0; - /* keep track of a couple codepoints for which we have no match. */ - enum { nomatches_len = 64 }; - static struct { long codepoint[nomatches_len]; unsigned int idx; } nomatches; - static unsigned int ellipsis_width = 0; - - if (!drw || (render && (!drw->scheme || !w)) || !text || !drw->fonts) - return 0; - - if (!render) { - w = invert ? invert : ~invert; - } else { - XSetForeground(drw->dpy, drw->gc, drw->scheme[invert ? ColFg : ColBg].pixel); - XFillRectangle(drw->dpy, drw->drawable, drw->gc, x, y, w, h); - d = XftDrawCreate(drw->dpy, drw->drawable, - DefaultVisual(drw->dpy, drw->screen), - DefaultColormap(drw->dpy, drw->screen)); - x += lpad; - w -= lpad; - } - - usedfont = drw->fonts; - if (!ellipsis_width && render) - ellipsis_width = drw_fontset_getwidth(drw, "..."); - while (1) { - ew = ellipsis_len = utf8strlen = 0; - utf8str = text; - nextfont = NULL; - while (*text) { - utf8charlen = utf8decode(text, &utf8codepoint, UTF_SIZ); - for (curfont = drw->fonts; curfont; curfont = curfont->next) { - charexists = charexists || XftCharExists(drw->dpy, curfont->xfont, utf8codepoint); - if (charexists) { - drw_font_getexts(curfont, text, utf8charlen, &tmpw, NULL); - if (ew + ellipsis_width <= w) { - /* keep track where the ellipsis still fits */ - ellipsis_x = x + ew; - ellipsis_w = w - ew; - ellipsis_len = utf8strlen; - } - - if (ew + tmpw > w) { - overflow = 1; - /* called from drw_fontset_getwidth_clamp(): - * it wants the width AFTER the overflow - */ - if (!render) - x += tmpw; - else - utf8strlen = ellipsis_len; - } else if (curfont == usedfont) { - utf8strlen += utf8charlen; - text += utf8charlen; - ew += tmpw; - } else { - nextfont = curfont; - } - break; - } - } - - if (overflow || !charexists || nextfont) - break; - else - charexists = 0; - } - - if (utf8strlen) { - if (render) { - ty = y + (h - usedfont->h) / 2 + usedfont->xfont->ascent; - XftDrawStringUtf8(d, &drw->scheme[invert ? ColBg : ColFg], - usedfont->xfont, x, ty, (XftChar8 *)utf8str, utf8strlen); - } - x += ew; - w -= ew; - } - if (render && overflow) - drw_text(drw, ellipsis_x, y, ellipsis_w, h, 0, "...", invert); - - if (!*text || overflow) { - break; - } else if (nextfont) { - charexists = 0; - usedfont = nextfont; - } else { - /* Regardless of whether or not a fallback font is found, the - * character must be drawn. */ - charexists = 1; - - for (i = 0; i < nomatches_len; ++i) { - /* avoid calling XftFontMatch if we know we won't find a match */ - if (utf8codepoint == nomatches.codepoint[i]) - goto no_match; - } - - fccharset = FcCharSetCreate(); - FcCharSetAddChar(fccharset, utf8codepoint); - - if (!drw->fonts->pattern) { - /* Refer to the comment in xfont_create for more information. */ - die("the first font in the cache must be loaded from a font string."); - } - - fcpattern = FcPatternDuplicate(drw->fonts->pattern); - FcPatternAddCharSet(fcpattern, FC_CHARSET, fccharset); - FcPatternAddBool(fcpattern, FC_SCALABLE, FcTrue); - - FcConfigSubstitute(NULL, fcpattern, FcMatchPattern); - FcDefaultSubstitute(fcpattern); - match = XftFontMatch(drw->dpy, drw->screen, fcpattern, &result); - - FcCharSetDestroy(fccharset); - FcPatternDestroy(fcpattern); - - if (match) { - usedfont = xfont_create(drw, NULL, match); - if (usedfont && XftCharExists(drw->dpy, usedfont->xfont, utf8codepoint)) { - for (curfont = drw->fonts; curfont->next; curfont = curfont->next) - ; /* NOP */ - curfont->next = usedfont; - } else { - xfont_free(usedfont); - nomatches.codepoint[++nomatches.idx % nomatches_len] = utf8codepoint; -no_match: - usedfont = drw->fonts; - } - } - } - } - if (d) - XftDrawDestroy(d); - - return x + (render ? w : 0); -} - -void -drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h) -{ - if (!drw) - return; - - XCopyArea(drw->dpy, drw->drawable, win, drw->gc, x, y, w, h, x, y); - XSync(drw->dpy, False); -} - -unsigned int -drw_fontset_getwidth(Drw *drw, const char *text) -{ - if (!drw || !drw->fonts || !text) - return 0; - return drw_text(drw, 0, 0, 0, 0, 0, text, 0); -} - -unsigned int -drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n) -{ - unsigned int tmp = 0; - if (drw && drw->fonts && text && n) - tmp = drw_text(drw, 0, 0, 0, 0, 0, text, n); - return MIN(n, tmp); -} - -void -drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h) -{ - XGlyphInfo ext; - - if (!font || !text) - return; - - XftTextExtentsUtf8(font->dpy, font->xfont, (XftChar8 *)text, len, &ext); - if (w) - *w = ext.xOff; - if (h) - *h = font->h; -} - -Cur * -drw_cur_create(Drw *drw, int shape) -{ - Cur *cur; - - if (!drw || !(cur = ecalloc(1, sizeof(Cur)))) - return NULL; - - cur->cursor = XCreateFontCursor(drw->dpy, shape); - - return cur; -} - -void -drw_cur_free(Drw *drw, Cur *cursor) -{ - if (!cursor) - return; - - XFreeCursor(drw->dpy, cursor->cursor); - free(cursor); -} diff --git a/user/.config/suckless/dwm/drw.h b/user/.config/suckless/dwm/drw.h deleted file mode 100644 index 64714316b..000000000 --- a/user/.config/suckless/dwm/drw.h +++ /dev/null @@ -1,58 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -typedef struct { - Cursor cursor; -} Cur; - -typedef struct Fnt { - Display *dpy; - unsigned int h; - XftFont *xfont; - FcPattern *pattern; - struct Fnt *next; -} Fnt; - -enum { ColFg, ColBg, ColBorder }; /* Clr scheme index */ -typedef XftColor Clr; - -typedef struct { - unsigned int w, h; - Display *dpy; - int screen; - Window root; - Drawable drawable; - GC gc; - Clr *scheme; - Fnt *fonts; -} Drw; - -/* Drawable abstraction */ -Drw *drw_create(Display *dpy, int screen, Window win, unsigned int w, unsigned int h); -void drw_resize(Drw *drw, unsigned int w, unsigned int h); -void drw_free(Drw *drw); - -/* Fnt abstraction */ -Fnt *drw_fontset_create(Drw* drw, const char *fonts[], size_t fontcount); -void drw_fontset_free(Fnt* set); -unsigned int drw_fontset_getwidth(Drw *drw, const char *text); -unsigned int drw_fontset_getwidth_clamp(Drw *drw, const char *text, unsigned int n); -void drw_font_getexts(Fnt *font, const char *text, unsigned int len, unsigned int *w, unsigned int *h); - -/* Colorscheme abstraction */ -void drw_clr_create(Drw *drw, Clr *dest, const char *clrname); -Clr *drw_scm_create(Drw *drw, const char *clrnames[], size_t clrcount); - -/* Cursor abstraction */ -Cur *drw_cur_create(Drw *drw, int shape); -void drw_cur_free(Drw *drw, Cur *cursor); - -/* Drawing context manipulation */ -void drw_setfontset(Drw *drw, Fnt *set); -void drw_setscheme(Drw *drw, Clr *scm); - -/* Drawing functions */ -void drw_rect(Drw *drw, int x, int y, unsigned int w, unsigned int h, int filled, int invert); -int drw_text(Drw *drw, int x, int y, unsigned int w, unsigned int h, unsigned int lpad, const char *text, int invert); - -/* Map functions */ -void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h); diff --git a/user/.config/suckless/dwm/dwm.1 b/user/.config/suckless/dwm/dwm.1 deleted file mode 100644 index 0f3a6bab4..000000000 --- a/user/.config/suckless/dwm/dwm.1 +++ /dev/null @@ -1,209 +0,0 @@ -.TH DWM 1 dwm\-VERSION -.SH NAME -dwm \- dynamic window manager -.SH SYNOPSIS -.B dwm -.RB [ \-v ] -.SH DESCRIPTION -dwm is a dynamic window manager for X. It manages windows in tiled, monocle -and floating layouts. Either layout can be applied dynamically, optimising the -environment for the application in use and the task performed. -.P -In tiled layouts windows are managed in a master and stacking area. The master -area on the left contains one window by default, and the stacking area on the -right contains all other windows. The number of master area windows can be -adjusted from zero to an arbitrary number. In monocle layout all windows are -maximised to the screen size. In floating layout windows can be resized and -moved freely. Dialog windows are always managed floating, regardless of the -layout applied. -.P -Windows are grouped by tags. Each window can be tagged with one or multiple -tags. Selecting certain tags displays all windows with these tags. -.P -Each screen contains a small status bar which displays all available tags, the -layout, the title of the focused window, and the text read from the root window -name property, if the screen is focused. A floating window is indicated with an -empty square and a maximised floating window is indicated with a filled square -before the windows title. The selected tags are indicated with a different -color. The tags of the focused window are indicated with a filled square in the -top left corner. The tags which are applied to one or more windows are -indicated with an empty square in the top left corner. -.P -dwm draws a small border around windows to indicate the focus state. -.P -On start, dwm can start additional programs that may be specified in two special -shell scripts (see the FILES section below), autostart_blocking.sh and -autostart.sh. The former is executed first and dwm will wait for its -termination before starting. The latter is executed in the background before -dwm enters its handler loop. -.P -Either of these files may be omitted. -.SH OPTIONS -.TP -.B \-v -prints version information to stderr, then exits. -.SH USAGE -.SS Status bar -.TP -.B X root window name -is read and displayed in the status text area. It can be set with the -.BR xsetroot (1) -command. -.TP -.B Button1 -click on a tag label to display all windows with that tag, click on the layout -label toggles between tiled and floating layout. -.TP -.B Button3 -click on a tag label adds/removes all windows with that tag to/from the view. -.TP -.B Mod1\-Button1 -click on a tag label applies that tag to the focused window. -.TP -.B Mod1\-Button3 -click on a tag label adds/removes that tag to/from the focused window. -.SS Keyboard commands -.TP -.B Mod1\-Shift\-Return -Start -.BR st(1). -.TP -.B Mod1\-p -Spawn -.BR dmenu(1) -for launching other programs. -.TP -.B Mod1\-, -Focus previous screen, if any. -.TP -.B Mod1\-. -Focus next screen, if any. -.TP -.B Mod1\-Shift\-, -Send focused window to previous screen, if any. -.TP -.B Mod1\-Shift\-. -Send focused window to next screen, if any. -.TP -.B Mod1\-b -Toggles bar on and off. -.TP -.B Mod1\-t -Sets tiled layout. -.TP -.B Mod1\-f -Sets floating layout. -.TP -.B Mod1\-m -Sets monocle layout. -.TP -.B Mod1\-space -Toggles between current and previous layout. -.TP -.B Mod1\-j -Focus next window. -.TP -.B Mod1\-k -Focus previous window. -.TP -.B Mod1\-i -Increase number of windows in master area. -.TP -.B Mod1\-d -Decrease number of windows in master area. -.TP -.B Mod1\-l -Increase master area size. -.TP -.B Mod1\-h -Decrease master area size. -.TP -.B Mod1\-Return -Zooms/cycles focused window to/from master area (tiled layouts only). -.TP -.B Mod1\-Shift\-c -Close focused window. -.TP -.B Mod1\-Shift\-space -Toggle focused window between tiled and floating state. -.TP -.B Mod1\-Tab -Toggles to the previously selected tags. -.TP -.B Mod1\-Shift\-[1..n] -Apply nth tag to focused window. -.TP -.B Mod1\-Shift\-0 -Apply all tags to focused window. -.TP -.B Mod1\-Control\-Shift\-[1..n] -Add/remove nth tag to/from focused window. -.TP -.B Mod1\-[1..n] -View all windows with nth tag. -.TP -.B Mod1\-0 -View all windows with any tag. -.TP -.B Mod1\-Control\-[1..n] -Add/remove all windows with nth tag to/from the view. -.TP -.B Mod1\-Shift\-q -Quit dwm. -.TP -.B Mod1\-Control\-Shift\-q -Restart dwm. -.SS Mouse commands -.TP -.B Mod1\-Button1 -Move focused window while dragging. Tiled windows will be toggled to the floating state. -.TP -.B Mod1\-Button2 -Toggles focused window between floating and tiled state. -.TP -.B Mod1\-Button3 -Resize focused window while dragging. Tiled windows will be toggled to the floating state. -.SH FILES -The files containing programs to be started along with dwm are searched for in -the following directories: -.IP "1. $XDG_DATA_HOME/dwm" -.IP "2. $HOME/.local/share/dwm" -.IP "3. $HOME/.dwm" -.P -The first existing directory is scanned for any of the autostart files below. -.TP 15 -autostart.sh -This file is started as a shell background process before dwm enters its handler -loop. -.TP 15 -autostart_blocking.sh -This file is started before any autostart.sh; dwm waits for its termination. -.SH CUSTOMIZATION -dwm is customized by creating a custom config.h and (re)compiling the source -code. This keeps it fast, secure and simple. -.SH SIGNALS -.TP -.B SIGHUP - 1 -Restart the dwm process. -.TP -.B SIGTERM - 15 -Cleanly terminate the dwm process. -.SH SEE ALSO -.BR dmenu (1), -.BR st (1) -.SH ISSUES -Java applications which use the XToolkit/XAWT backend may draw grey windows -only. The XToolkit/XAWT backend breaks ICCCM-compliance in recent JDK 1.5 and early -JDK 1.6 versions, because it assumes a reparenting window manager. Possible workarounds -are using JDK 1.4 (which doesn't contain the XToolkit/XAWT backend) or setting the -environment variable -.BR AWT_TOOLKIT=MToolkit -(to use the older Motif backend instead) or running -.B xprop -root -f _NET_WM_NAME 32a -set _NET_WM_NAME LG3D -or -.B wmname LG3D -(to pretend that a non-reparenting window manager is running that the -XToolkit/XAWT backend can recognize) or when using OpenJDK setting the environment variable -.BR _JAVA_AWT_WM_NONREPARENTING=1 . -.SH BUGS -Send all bug reports with a patch to hackers@suckless.org. diff --git a/user/.config/suckless/dwm/dwm.c b/user/.config/suckless/dwm/dwm.c deleted file mode 100644 index 813311ecf..000000000 --- a/user/.config/suckless/dwm/dwm.c +++ /dev/null @@ -1,2330 +0,0 @@ -/* See LICENSE file for copyright and license details. - * - * dynamic window manager is designed like any other X client as well. It is - * driven through handling X events. In contrast to other X clients, a window - * manager selects for SubstructureRedirectMask on the root window, to receive - * events about window (dis-)appearance. Only one X connection at a time is - * allowed to select for this event mask. - * - * The event handlers of dwm are organized in an array which is accessed - * whenever a new event has been fetched. This allows event dispatching - * in O(1) time. - * - * Each child of the root window is called a client, except windows which have - * set the override_redirect flag. Clients are organized in a linked client - * list on each monitor, the focus history is remembered through a stack list - * on each monitor. Each client contains a bit array to indicate the tags of a - * client. - * - * Keys and tagging rules are organized as arrays and defined in config.h. - * - * To understand everything else, start reading main(). - */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef XINERAMA -#include -#endif /* XINERAMA */ -#include -#include - -#include "drw.h" -#include "util.h" - -/* macros */ -#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask) -#define CLEANMASK(mask) (mask & ~(numlockmask|LockMask) & (ShiftMask|ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask)) -#define INTERSECT(x,y,w,h,m) (MAX(0, MIN((x)+(w),(m)->wx+(m)->ww) - MAX((x),(m)->wx)) \ - * MAX(0, MIN((y)+(h),(m)->wy+(m)->wh) - MAX((y),(m)->wy))) -#define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) -#define LENGTH(X) (sizeof X / sizeof X[0]) -#define MOUSEMASK (BUTTONMASK|PointerMotionMask) -#define WIDTH(X) ((X)->w + 2 * (X)->bw) -#define HEIGHT(X) ((X)->h + 2 * (X)->bw) -#define NUMTAGS (LENGTH(tags) + LENGTH(scratchpads)) -#define TAGMASK ((1 << NUMTAGS) - 1) -#define SPTAG(i) ((1 << LENGTH(tags)) << (i)) -#define SPTAGMASK (((1 << LENGTH(scratchpads))-1) << LENGTH(tags)) -#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) - -/* enums */ -enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ -enum { SchemeNorm, SchemeSel }; /* color schemes */ -enum { NetSupported, NetWMName, NetWMState, NetWMCheck, - NetWMFullscreen, NetActiveWindow, NetWMWindowType, - NetWMWindowTypeDialog, NetClientList, NetLast }; /* EWMH atoms */ -enum { WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */ -enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, - ClkClientWin, ClkRootWin, ClkLast }; /* clicks */ - -typedef union { - int i; - unsigned int ui; - float f; - const void *v; -} Arg; - -typedef struct { - unsigned int click; - unsigned int mask; - unsigned int button; - void (*func)(const Arg *arg); - const Arg arg; -} Button; - -typedef struct Monitor Monitor; -typedef struct Client Client; -struct Client { - char name[256]; - float mina, maxa; - int x, y, w, h; - int oldx, oldy, oldw, oldh; - int basew, baseh, incw, inch, maxw, maxh, minw, minh, hintsvalid; - int bw, oldbw; - unsigned int tags; - int isfixed, isfloating, isurgent, neverfocus, oldstate, isfullscreen; - Client *next; - Client *snext; - Monitor *mon; - Window win; -}; - -typedef struct { - unsigned int mod; - KeySym keysym; - void (*func)(const Arg *); - const Arg arg; -} Key; - -typedef struct { - const char *symbol; - void (*arrange)(Monitor *); -} Layout; - -typedef struct Pertag Pertag; -struct Monitor { - char ltsymbol[16]; - float mfact; - int nmaster; - int num; - int by; /* bar geometry */ - int mx, my, mw, mh; /* screen size */ - int wx, wy, ww, wh; /* window area */ - unsigned int seltags; - unsigned int sellt; - unsigned int tagset[2]; - int showbar; - int topbar; - Client *clients; - Client *sel; - Client *stack; - Monitor *next; - Window barwin; - const Layout *lt[2]; - Pertag *pertag; -}; - -typedef struct { - const char *class; - const char *instance; - const char *title; - unsigned int tags; - int isfloating; - int monitor; -} Rule; - -/* function declarations */ -static void applyrules(Client *c); -static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact); -static void arrange(Monitor *m); -static void arrangemon(Monitor *m); -static void attach(Client *c); -static void attachbottom(Client *c); -static void attachstack(Client *c); -static void buttonpress(XEvent *e); -static void checkotherwm(void); -static void cleanup(void); -static void cleanupmon(Monitor *mon); -static void clientmessage(XEvent *e); -static void configure(Client *c); -static void configurenotify(XEvent *e); -static void configurerequest(XEvent *e); -static Monitor *createmon(void); -static void destroynotify(XEvent *e); -static void detach(Client *c); -static void detachstack(Client *c); -static Monitor *dirtomon(int dir); -static void drawbar(Monitor *m); -static void drawbars(void); -static void enternotify(XEvent *e); -static void expose(XEvent *e); -static void focus(Client *c); -static void focusin(XEvent *e); -static void focusmon(const Arg *arg); -static void focusstack(const Arg *arg); -static Atom getatomprop(Client *c, Atom prop); -static int getrootptr(int *x, int *y); -static long getstate(Window w); -static int gettextprop(Window w, Atom atom, char *text, unsigned int size); -static void grabbuttons(Client *c, int focused); -static void grabkeys(void); -static void incnmaster(const Arg *arg); -static void keypress(XEvent *e); -static void killclient(const Arg *arg); -static void manage(Window w, XWindowAttributes *wa); -static void mappingnotify(XEvent *e); -static void maprequest(XEvent *e); -static void monocle(Monitor *m); -static void motionnotify(XEvent *e); -static void movemouse(const Arg *arg); -static Client *nexttiled(Client *c); -static void pop(Client *c); -static void propertynotify(XEvent *e); -static void quit(const Arg *arg); -static Monitor *recttomon(int x, int y, int w, int h); -static void resize(Client *c, int x, int y, int w, int h, int interact); -static void resizeclient(Client *c, int x, int y, int w, int h); -static void resizemouse(const Arg *arg); -static void restack(Monitor *m); -static void run(void); -static void runAutostart(void); -static void scan(void); -static int sendevent(Client *c, Atom proto); -static void sendmon(Client *c, Monitor *m); -static void setclientstate(Client *c, long state); -static void setfocus(Client *c); -static void setfullscreen(Client *c, int fullscreen); -static void setlayout(const Arg *arg); -static void setmfact(const Arg *arg); -static void setup(void); -static void seturgent(Client *c, int urg); -static void showhide(Client *c); -static void sigchld(int unused); -static void sighup(int unused); -static void sigterm(int unused); -static void spawn(const Arg *arg); -static void tag(const Arg *arg); -static void tagmon(const Arg *arg); -static void tile(Monitor *m); -static void togglebar(const Arg *arg); -static void togglefloating(const Arg *arg); -static void togglescratch(const Arg *arg); -static void toggletag(const Arg *arg); -static void toggleview(const Arg *arg); -static void unfocus(Client *c, int setfocus); -static void unmanage(Client *c, int destroyed); -static void unmapnotify(XEvent *e); -static void updatebarpos(Monitor *m); -static void updatebars(void); -static void updateclientlist(void); -static int updategeom(void); -static void updatenumlockmask(void); -static void updatesizehints(Client *c); -static void updatestatus(void); -static void updatetitle(Client *c); -static void updatewindowtype(Client *c); -static void updatewmhints(Client *c); -static void view(const Arg *arg); -static void warp(const Client *c); -static Client *wintoclient(Window w); -static Monitor *wintomon(Window w); -static int xerror(Display *dpy, XErrorEvent *ee); -static int xerrordummy(Display *dpy, XErrorEvent *ee); -static int xerrorstart(Display *dpy, XErrorEvent *ee); -static void zoom(const Arg *arg); - -/* variables */ -static const char broken[] = "broken"; -static char stext[256]; -static int screen; -static int sw, sh; /* X display screen geometry width, height */ -static int bh; /* bar height */ -static int lrpad; /* sum of left and right padding for text */ -static int (*xerrorxlib)(Display *, XErrorEvent *); -static unsigned int numlockmask = 0; -static void (*handler[LASTEvent]) (XEvent *) = { - [ButtonPress] = buttonpress, - [ClientMessage] = clientmessage, - [ConfigureRequest] = configurerequest, - [ConfigureNotify] = configurenotify, - [DestroyNotify] = destroynotify, - [EnterNotify] = enternotify, - [Expose] = expose, - [FocusIn] = focusin, - [KeyPress] = keypress, - [MappingNotify] = mappingnotify, - [MapRequest] = maprequest, - [MotionNotify] = motionnotify, - [PropertyNotify] = propertynotify, - [UnmapNotify] = unmapnotify -}; -static Atom wmatom[WMLast], netatom[NetLast]; -static int restart = 0; -static int running = 1; -static Cur *cursor[CurLast]; -static Clr **scheme; -static Display *dpy; -static Drw *drw; -static Monitor *mons, *selmon; -static Window root, wmcheckwin; - -/* configuration, allows nested code to access above variables */ -#include "config.h" - -struct Pertag { - unsigned int curtag, prevtag; /* current and previous tag */ - int nmasters[LENGTH(tags) + 1]; /* number of windows in master area */ - float mfacts[LENGTH(tags) + 1]; /* mfacts per tag */ - unsigned int sellts[LENGTH(tags) + 1]; /* selected layouts */ - const Layout *ltidxs[LENGTH(tags) + 1][2]; /* matrix of tags and layouts indexes */ - int showbars[LENGTH(tags) + 1]; /* display bar for the current tag */ -}; - -/* compile-time check if all tags fit into an unsigned int bit array. */ -struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; }; - -/* function implementations */ -void -applyrules(Client *c) -{ - const char *class, *instance; - unsigned int i; - const Rule *r; - Monitor *m; - XClassHint ch = { NULL, NULL }; - - /* rule matching */ - c->isfloating = 0; - c->tags = 0; - XGetClassHint(dpy, c->win, &ch); - class = ch.res_class ? ch.res_class : broken; - instance = ch.res_name ? ch.res_name : broken; - - for (i = 0; i < LENGTH(rules); i++) { - r = &rules[i]; - if ((!r->title || strstr(c->name, r->title)) - && (!r->class || strstr(class, r->class)) - && (!r->instance || strstr(instance, r->instance))) - { - c->isfloating = r->isfloating; - c->tags |= r->tags; - if ((r->tags & SPTAGMASK) && r->isfloating) { - c->x = c->mon->wx + (c->mon->ww / 2 - WIDTH(c) / 2); - c->y = c->mon->wy + (c->mon->wh / 2 - HEIGHT(c) / 2); - } - - for (m = mons; m && m->num != r->monitor; m = m->next); - if (m) - c->mon = m; - } - } - if (ch.res_class) - XFree(ch.res_class); - if (ch.res_name) - XFree(ch.res_name); - c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : (c->mon->tagset[c->mon->seltags] & ~SPTAGMASK); -} - -int -applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact) -{ - int baseismin; - Monitor *m = c->mon; - - /* set minimum possible */ - *w = MAX(1, *w); - *h = MAX(1, *h); - if (interact) { - if (*x > sw) - *x = sw - WIDTH(c); - if (*y > sh) - *y = sh - HEIGHT(c); - if (*x + *w + 2 * c->bw < 0) - *x = 0; - if (*y + *h + 2 * c->bw < 0) - *y = 0; - } else { - if (*x >= m->wx + m->ww) - *x = m->wx + m->ww - WIDTH(c); - if (*y >= m->wy + m->wh) - *y = m->wy + m->wh - HEIGHT(c); - if (*x + *w + 2 * c->bw <= m->wx) - *x = m->wx; - if (*y + *h + 2 * c->bw <= m->wy) - *y = m->wy; - } - if (*h < bh) - *h = bh; - if (*w < bh) - *w = bh; - if (resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) { - if (!c->hintsvalid) - updatesizehints(c); - /* see last two sentences in ICCCM 4.1.2.3 */ - baseismin = c->basew == c->minw && c->baseh == c->minh; - if (!baseismin) { /* temporarily remove base dimensions */ - *w -= c->basew; - *h -= c->baseh; - } - /* adjust for aspect limits */ - if (c->mina > 0 && c->maxa > 0) { - if (c->maxa < (float)*w / *h) - *w = *h * c->maxa + 0.5; - else if (c->mina < (float)*h / *w) - *h = *w * c->mina + 0.5; - } - if (baseismin) { /* increment calculation requires this */ - *w -= c->basew; - *h -= c->baseh; - } - /* adjust for increment value */ - if (c->incw) - *w -= *w % c->incw; - if (c->inch) - *h -= *h % c->inch; - /* restore base dimensions */ - *w = MAX(*w + c->basew, c->minw); - *h = MAX(*h + c->baseh, c->minh); - if (c->maxw) - *w = MIN(*w, c->maxw); - if (c->maxh) - *h = MIN(*h, c->maxh); - } - return *x != c->x || *y != c->y || *w != c->w || *h != c->h; -} - -void -arrange(Monitor *m) -{ - if (m) - showhide(m->stack); - else for (m = mons; m; m = m->next) - showhide(m->stack); - if (m) { - arrangemon(m); - restack(m); - } else for (m = mons; m; m = m->next) - arrangemon(m); -} - -void -arrangemon(Monitor *m) -{ - strncpy(m->ltsymbol, m->lt[m->sellt]->symbol, sizeof m->ltsymbol); - if (m->lt[m->sellt]->arrange) - m->lt[m->sellt]->arrange(m); -} - -void -attach(Client *c) -{ - c->next = c->mon->clients; - c->mon->clients = c; -} - -void -attachbottom(Client *c) -{ - Client **tc; - c->next = NULL; - for (tc = &c->mon->clients; *tc; tc = &(*tc)->next); - *tc = c; -} - -void -attachstack(Client *c) -{ - c->snext = c->mon->stack; - c->mon->stack = c; -} - -void -buttonpress(XEvent *e) -{ - unsigned int i, x, click; - Arg arg = {0}; - Client *c; - Monitor *m; - XButtonPressedEvent *ev = &e->xbutton; - - click = ClkRootWin; - /* focus monitor if necessary */ - if ((m = wintomon(ev->window)) && m != selmon) { - unfocus(selmon->sel, 1); - selmon = m; - focus(NULL); - } - if (ev->window == selmon->barwin) { - i = x = 0; - do - x += TEXTW(tags[i]); - while (ev->x >= x && ++i < LENGTH(tags)); - if (i < LENGTH(tags)) { - click = ClkTagBar; - arg.ui = 1 << i; - } else if (ev->x < x + TEXTW(selmon->ltsymbol)) - click = ClkLtSymbol; - else if (ev->x > selmon->ww - (int)TEXTW(stext)) - click = ClkStatusText; - else - click = ClkWinTitle; - } else if ((c = wintoclient(ev->window))) { - focus(c); - restack(selmon); - XAllowEvents(dpy, ReplayPointer, CurrentTime); - click = ClkClientWin; - } - for (i = 0; i < LENGTH(buttons); i++) - if (click == buttons[i].click && buttons[i].func && buttons[i].button == ev->button - && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state)) - buttons[i].func(click == ClkTagBar && buttons[i].arg.i == 0 ? &arg : &buttons[i].arg); -} - -void -checkotherwm(void) -{ - xerrorxlib = XSetErrorHandler(xerrorstart); - /* this causes an error if some other window manager is running */ - XSelectInput(dpy, DefaultRootWindow(dpy), SubstructureRedirectMask); - XSync(dpy, False); - XSetErrorHandler(xerror); - XSync(dpy, False); -} - -void -cleanup(void) -{ - Arg a = {.ui = ~0}; - Layout foo = { "", NULL }; - Monitor *m; - size_t i; - - view(&a); - selmon->lt[selmon->sellt] = &foo; - for (m = mons; m; m = m->next) - while (m->stack) - unmanage(m->stack, 0); - XUngrabKey(dpy, AnyKey, AnyModifier, root); - while (mons) - cleanupmon(mons); - for (i = 0; i < CurLast; i++) - drw_cur_free(drw, cursor[i]); - for (i = 0; i < LENGTH(colors); i++) - free(scheme[i]); - free(scheme); - XDestroyWindow(dpy, wmcheckwin); - drw_free(drw); - XSync(dpy, False); - XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime); - XDeleteProperty(dpy, root, netatom[NetActiveWindow]); -} - -void -cleanupmon(Monitor *mon) -{ - Monitor *m; - - if (mon == mons) - mons = mons->next; - else { - for (m = mons; m && m->next != mon; m = m->next); - m->next = mon->next; - } - XUnmapWindow(dpy, mon->barwin); - XDestroyWindow(dpy, mon->barwin); - free(mon); -} - -void -clientmessage(XEvent *e) -{ - XClientMessageEvent *cme = &e->xclient; - Client *c = wintoclient(cme->window); - - if (!c) - return; - if (cme->message_type == netatom[NetWMState]) { - if (cme->data.l[1] == netatom[NetWMFullscreen] - || cme->data.l[2] == netatom[NetWMFullscreen]) - setfullscreen(c, (cme->data.l[0] == 1 /* _NET_WM_STATE_ADD */ - || (cme->data.l[0] == 2 /* _NET_WM_STATE_TOGGLE */ && !c->isfullscreen))); - } else if (cme->message_type == netatom[NetActiveWindow]) { - if (c != selmon->sel && !c->isurgent) - seturgent(c, 1); - } -} - -void -configure(Client *c) -{ - XConfigureEvent ce; - - ce.type = ConfigureNotify; - ce.display = dpy; - ce.event = c->win; - ce.window = c->win; - ce.x = c->x; - ce.y = c->y; - ce.width = c->w; - ce.height = c->h; - ce.border_width = c->bw; - ce.above = None; - ce.override_redirect = False; - XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&ce); -} - -void -configurenotify(XEvent *e) -{ - Monitor *m; - Client *c; - XConfigureEvent *ev = &e->xconfigure; - int dirty; - - /* TODO: updategeom handling sucks, needs to be simplified */ - if (ev->window == root) { - dirty = (sw != ev->width || sh != ev->height); - sw = ev->width; - sh = ev->height; - if (updategeom() || dirty) { - drw_resize(drw, sw, bh); - updatebars(); - for (m = mons; m; m = m->next) { - for (c = m->clients; c; c = c->next) - if (c->isfullscreen) - resizeclient(c, m->mx, m->my, m->mw, m->mh); - XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh); - } - focus(NULL); - arrange(NULL); - } - } -} - -void -configurerequest(XEvent *e) -{ - Client *c; - Monitor *m; - XConfigureRequestEvent *ev = &e->xconfigurerequest; - XWindowChanges wc; - - if ((c = wintoclient(ev->window))) { - if (ev->value_mask & CWBorderWidth) - c->bw = ev->border_width; - else if (c->isfloating || !selmon->lt[selmon->sellt]->arrange) { - m = c->mon; - if (ev->value_mask & CWX) { - c->oldx = c->x; - c->x = m->mx + ev->x; - } - if (ev->value_mask & CWY) { - c->oldy = c->y; - c->y = m->my + ev->y; - } - if (ev->value_mask & CWWidth) { - c->oldw = c->w; - c->w = ev->width; - } - if (ev->value_mask & CWHeight) { - c->oldh = c->h; - c->h = ev->height; - } - if ((c->x + c->w) > m->mx + m->mw && c->isfloating) - c->x = m->mx + (m->mw / 2 - WIDTH(c) / 2); /* center in x direction */ - if ((c->y + c->h) > m->my + m->mh && c->isfloating) - c->y = m->my + (m->mh / 2 - HEIGHT(c) / 2); /* center in y direction */ - if ((ev->value_mask & (CWX|CWY)) && !(ev->value_mask & (CWWidth|CWHeight))) - configure(c); - if (ISVISIBLE(c)) - XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); - } else - configure(c); - } else { - wc.x = ev->x; - wc.y = ev->y; - wc.width = ev->width; - wc.height = ev->height; - wc.border_width = ev->border_width; - wc.sibling = ev->above; - wc.stack_mode = ev->detail; - XConfigureWindow(dpy, ev->window, ev->value_mask, &wc); - } - XSync(dpy, False); -} - -Monitor * -createmon(void) -{ - Monitor *m; - unsigned int i; - - m = ecalloc(1, sizeof(Monitor)); - m->tagset[0] = m->tagset[1] = 1; - m->mfact = mfact; - m->nmaster = nmaster; - m->showbar = showbar; - m->topbar = topbar; - m->lt[0] = &layouts[0]; - m->lt[1] = &layouts[1 % LENGTH(layouts)]; - strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol); - m->pertag = ecalloc(1, sizeof(Pertag)); - m->pertag->curtag = m->pertag->prevtag = 1; - - for (i = 0; i <= LENGTH(tags); i++) { - m->pertag->nmasters[i] = m->nmaster; - m->pertag->mfacts[i] = m->mfact; - - m->pertag->ltidxs[i][0] = m->lt[0]; - m->pertag->ltidxs[i][1] = m->lt[1]; - m->pertag->sellts[i] = m->sellt; - - m->pertag->showbars[i] = m->showbar; - } - - return m; -} - -void -destroynotify(XEvent *e) -{ - Client *c; - XDestroyWindowEvent *ev = &e->xdestroywindow; - - if ((c = wintoclient(ev->window))) - unmanage(c, 1); -} - -void -detach(Client *c) -{ - Client **tc; - - for (tc = &c->mon->clients; *tc && *tc != c; tc = &(*tc)->next); - *tc = c->next; -} - -void -detachstack(Client *c) -{ - Client **tc, *t; - - for (tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext); - *tc = c->snext; - - if (c == c->mon->sel) { - for (t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext); - c->mon->sel = t; - } -} - -Monitor * -dirtomon(int dir) -{ - Monitor *m = NULL; - - if (dir > 0) { - if (!(m = selmon->next)) - m = mons; - } else if (selmon == mons) - for (m = mons; m->next; m = m->next); - else - for (m = mons; m->next != selmon; m = m->next); - return m; -} - -void -drawbar(Monitor *m) -{ - int x, w, tw = 0; - int boxs = drw->fonts->h / 9; - int boxw = drw->fonts->h / 6 + 2; - unsigned int i, occ = 0, urg = 0; - Client *c; - - if (!m->showbar) - return; - - /* draw status first so it can be overdrawn by tags later */ - if (m == selmon) { /* status is only drawn on selected monitor */ - drw_setscheme(drw, scheme[SchemeNorm]); - tw = TEXTW(stext); - drw_text(drw, m->ww - tw, 0, tw, bh, lrpad / 2, stext, 0); - } - - for (c = m->clients; c; c = c->next) { - occ |= c->tags; - if (c->isurgent) - urg |= c->tags; - } - x = 0; - for (i = 0; i < LENGTH(tags); i++) { - w = TEXTW(tags[i]); - drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i); - if (occ & 1 << i) - drw_rect(drw, x + boxs, boxs, boxw, boxw, - m == selmon && selmon->sel && selmon->sel->tags & 1 << i, - urg & 1 << i); - x += w; - } - w = TEXTW(m->ltsymbol); - drw_setscheme(drw, scheme[SchemeNorm]); - x = drw_text(drw, x, 0, w, bh, lrpad / 2, m->ltsymbol, 0); - - if ((w = m->ww - tw - x) > bh) { - if (m->sel) { - drw_setscheme(drw, scheme[m == selmon ? SchemeSel : SchemeNorm]); - drw_text(drw, x, 0, w, bh, lrpad / 2, m->sel->name, 0); - if (m->sel->isfloating) - drw_rect(drw, x + boxs, boxs, boxw, boxw, m->sel->isfixed, 0); - } else { - drw_setscheme(drw, scheme[SchemeNorm]); - drw_rect(drw, x, 0, w, bh, 1, 1); - } - } - drw_map(drw, m->barwin, 0, 0, m->ww, bh); -} - -void -drawbars(void) -{ - Monitor *m; - - for (m = mons; m; m = m->next) - drawbar(m); -} - -void -enternotify(XEvent *e) -{ - Client *c; - Monitor *m; - XCrossingEvent *ev = &e->xcrossing; - - if ((ev->mode != NotifyNormal || ev->detail == NotifyInferior) && ev->window != root) - return; - c = wintoclient(ev->window); - m = c ? c->mon : wintomon(ev->window); - if (m != selmon) { - unfocus(selmon->sel, 1); - selmon = m; - } else if (!c || c == selmon->sel) - return; - focus(c); -} - -void -expose(XEvent *e) -{ - Monitor *m; - XExposeEvent *ev = &e->xexpose; - - if (ev->count == 0 && (m = wintomon(ev->window))) - drawbar(m); -} - -void -focus(Client *c) -{ - if (!c || !ISVISIBLE(c)) - for (c = selmon->stack; c && !ISVISIBLE(c); c = c->snext); - if (selmon->sel && selmon->sel != c) - unfocus(selmon->sel, 0); - if (c) { - if (c->mon != selmon) - selmon = c->mon; - if (c->isurgent) - seturgent(c, 0); - detachstack(c); - attachstack(c); - grabbuttons(c, 1); - XSetWindowBorder(dpy, c->win, scheme[SchemeSel][ColBorder].pixel); - setfocus(c); - } else { - XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); - XDeleteProperty(dpy, root, netatom[NetActiveWindow]); - } - selmon->sel = c; - drawbars(); -} - -/* there are some broken focus acquiring clients needing extra handling */ -void -focusin(XEvent *e) -{ - XFocusChangeEvent *ev = &e->xfocus; - - if (selmon->sel && ev->window != selmon->sel->win) - setfocus(selmon->sel); -} - -void -focusmon(const Arg *arg) -{ - Monitor *m; - - if (!mons->next) - return; - if ((m = dirtomon(arg->i)) == selmon) - return; - unfocus(selmon->sel, 0); - selmon = m; - focus(NULL); - warp(selmon->sel); -} - -void -focusstack(const Arg *arg) -{ - Client *c = NULL, *i; - - if (!selmon->sel || (selmon->sel->isfullscreen && lockfullscreen)) - return; - if (arg->i > 0) { - for (c = selmon->sel->next; c && !ISVISIBLE(c); c = c->next); - if (!c) - for (c = selmon->clients; c && !ISVISIBLE(c); c = c->next); - } else { - for (i = selmon->clients; i != selmon->sel; i = i->next) - if (ISVISIBLE(i)) - c = i; - if (!c) - for (; i; i = i->next) - if (ISVISIBLE(i)) - c = i; - } - if (c) { - focus(c); - restack(selmon); - } -} - -Atom -getatomprop(Client *c, Atom prop) -{ - int di; - unsigned long dl; - unsigned char *p = NULL; - Atom da, atom = None; - - if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof atom, False, XA_ATOM, - &da, &di, &dl, &dl, &p) == Success && p) { - atom = *(Atom *)p; - XFree(p); - } - return atom; -} - -int -getrootptr(int *x, int *y) -{ - int di; - unsigned int dui; - Window dummy; - - return XQueryPointer(dpy, root, &dummy, &dummy, x, y, &di, &di, &dui); -} - -long -getstate(Window w) -{ - int format; - long result = -1; - unsigned char *p = NULL; - unsigned long n, extra; - Atom real; - - if (XGetWindowProperty(dpy, w, wmatom[WMState], 0L, 2L, False, wmatom[WMState], - &real, &format, &n, &extra, (unsigned char **)&p) != Success) - return -1; - if (n != 0) - result = *p; - XFree(p); - return result; -} - -int -gettextprop(Window w, Atom atom, char *text, unsigned int size) -{ - char **list = NULL; - int n; - XTextProperty name; - - if (!text || size == 0) - return 0; - text[0] = '\0'; - if (!XGetTextProperty(dpy, w, &name, atom) || !name.nitems) - return 0; - if (name.encoding == XA_STRING) { - strncpy(text, (char *)name.value, size - 1); - } else if (XmbTextPropertyToTextList(dpy, &name, &list, &n) >= Success && n > 0 && *list) { - strncpy(text, *list, size - 1); - XFreeStringList(list); - } - text[size - 1] = '\0'; - XFree(name.value); - return 1; -} - -void -grabbuttons(Client *c, int focused) -{ - updatenumlockmask(); - { - unsigned int i, j; - unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; - XUngrabButton(dpy, AnyButton, AnyModifier, c->win); - if (!focused) - XGrabButton(dpy, AnyButton, AnyModifier, c->win, False, - BUTTONMASK, GrabModeSync, GrabModeSync, None, None); - for (i = 0; i < LENGTH(buttons); i++) - if (buttons[i].click == ClkClientWin) - for (j = 0; j < LENGTH(modifiers); j++) - XGrabButton(dpy, buttons[i].button, - buttons[i].mask | modifiers[j], - c->win, False, BUTTONMASK, - GrabModeAsync, GrabModeSync, None, None); - } -} - -void -grabkeys(void) -{ - updatenumlockmask(); - { - unsigned int i, j; - unsigned int modifiers[] = { 0, LockMask, numlockmask, numlockmask|LockMask }; - KeyCode code; - - XUngrabKey(dpy, AnyKey, AnyModifier, root); - for (i = 0; i < LENGTH(keys); i++) - if ((code = XKeysymToKeycode(dpy, keys[i].keysym))) - for (j = 0; j < LENGTH(modifiers); j++) - XGrabKey(dpy, code, keys[i].mod | modifiers[j], root, - True, GrabModeAsync, GrabModeAsync); - } -} - -void -incnmaster(const Arg *arg) -{ - selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag] = MAX(selmon->nmaster + arg->i, 0); - arrange(selmon); -} - -#ifdef XINERAMA -static int -isuniquegeom(XineramaScreenInfo *unique, size_t n, XineramaScreenInfo *info) -{ - while (n--) - if (unique[n].x_org == info->x_org && unique[n].y_org == info->y_org - && unique[n].width == info->width && unique[n].height == info->height) - return 0; - return 1; -} -#endif /* XINERAMA */ - -void -keypress(XEvent *e) -{ - unsigned int i; - KeySym keysym; - XKeyEvent *ev; - - ev = &e->xkey; - keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0); - for (i = 0; i < LENGTH(keys); i++) - if (keysym == keys[i].keysym - && CLEANMASK(keys[i].mod) == CLEANMASK(ev->state) - && keys[i].func) - keys[i].func(&(keys[i].arg)); -} - -void -killclient(const Arg *arg) -{ - if (!selmon->sel) - return; - if (!sendevent(selmon->sel, wmatom[WMDelete])) { - XGrabServer(dpy); - XSetErrorHandler(xerrordummy); - XSetCloseDownMode(dpy, DestroyAll); - XKillClient(dpy, selmon->sel->win); - XSync(dpy, False); - XSetErrorHandler(xerror); - XUngrabServer(dpy); - } -} - -void -manage(Window w, XWindowAttributes *wa) -{ - Client *c, *t = NULL; - Window trans = None; - XWindowChanges wc; - - c = ecalloc(1, sizeof(Client)); - c->win = w; - /* geometry */ - c->x = c->oldx = wa->x; - c->y = c->oldy = wa->y; - c->w = c->oldw = wa->width; - c->h = c->oldh = wa->height; - c->oldbw = wa->border_width; - - updatetitle(c); - if (XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) { - c->mon = t->mon; - c->tags = t->tags; - } else { - c->mon = selmon; - applyrules(c); - } - - if (c->x + WIDTH(c) > c->mon->wx + c->mon->ww) - c->x = c->mon->wx + c->mon->ww - WIDTH(c); - if (c->y + HEIGHT(c) > c->mon->wy + c->mon->wh) - c->y = c->mon->wy + c->mon->wh - HEIGHT(c); - c->x = MAX(c->x, c->mon->wx); - c->y = MAX(c->y, c->mon->wy); - c->bw = borderpx; - - wc.border_width = c->bw; - XConfigureWindow(dpy, w, CWBorderWidth, &wc); - XSetWindowBorder(dpy, w, scheme[SchemeNorm][ColBorder].pixel); - configure(c); /* propagates border_width, if size doesn't change */ - updatewindowtype(c); - updatesizehints(c); - updatewmhints(c); - c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2; - c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2; - XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); - grabbuttons(c, 0); - if (!c->isfloating) - c->isfloating = c->oldstate = trans != None || c->isfixed; - if (c->isfloating) - XRaiseWindow(dpy, c->win); - attachbottom(c); - attachstack(c); - XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend, - (unsigned char *) &(c->win), 1); - XMoveResizeWindow(dpy, c->win, c->x + 2 * sw, c->y, c->w, c->h); /* some windows require this */ - setclientstate(c, NormalState); - if (c->mon == selmon) - unfocus(selmon->sel, 0); - c->mon->sel = c; - arrange(c->mon); - XMapWindow(dpy, c->win); - focus(NULL); -} - -void -mappingnotify(XEvent *e) -{ - XMappingEvent *ev = &e->xmapping; - - XRefreshKeyboardMapping(ev); - if (ev->request == MappingKeyboard) - grabkeys(); -} - -void -maprequest(XEvent *e) -{ - static XWindowAttributes wa; - XMapRequestEvent *ev = &e->xmaprequest; - - if (!XGetWindowAttributes(dpy, ev->window, &wa) || wa.override_redirect) - return; - if (!wintoclient(ev->window)) - manage(ev->window, &wa); -} - -void -monocle(Monitor *m) -{ - unsigned int n = 0; - Client *c; - - for (c = m->clients; c; c = c->next) - if (ISVISIBLE(c)) - n++; - if (n > 0) /* override layout symbol */ - snprintf(m->ltsymbol, sizeof m->ltsymbol, "[%d]", n); - for (c = nexttiled(m->clients); c; c = nexttiled(c->next)) - resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, 0); -} - -void -motionnotify(XEvent *e) -{ - static Monitor *mon = NULL; - Monitor *m; - XMotionEvent *ev = &e->xmotion; - - if (ev->window != root) - return; - if ((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) { - unfocus(selmon->sel, 1); - selmon = m; - focus(NULL); - } - mon = m; -} - -void -movemouse(const Arg *arg) -{ - int x, y, ocx, ocy, nx, ny; - Client *c; - Monitor *m; - XEvent ev; - Time lasttime = 0; - - if (!(c = selmon->sel)) - return; - if (c->isfullscreen) /* no support moving fullscreen windows by mouse */ - return; - restack(selmon); - ocx = c->x; - ocy = c->y; - if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, - None, cursor[CurMove]->cursor, CurrentTime) != GrabSuccess) - return; - if (!getrootptr(&x, &y)) - return; - do { - XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); - switch(ev.type) { - case ConfigureRequest: - case Expose: - case MapRequest: - handler[ev.type](&ev); - break; - case MotionNotify: - if ((ev.xmotion.time - lasttime) <= (1000 / 60)) - continue; - lasttime = ev.xmotion.time; - - nx = ocx + (ev.xmotion.x - x); - ny = ocy + (ev.xmotion.y - y); - if (abs(selmon->wx - nx) < snap) - nx = selmon->wx; - else if (abs((selmon->wx + selmon->ww) - (nx + WIDTH(c))) < snap) - nx = selmon->wx + selmon->ww - WIDTH(c); - if (abs(selmon->wy - ny) < snap) - ny = selmon->wy; - else if (abs((selmon->wy + selmon->wh) - (ny + HEIGHT(c))) < snap) - ny = selmon->wy + selmon->wh - HEIGHT(c); - if (!c->isfloating && selmon->lt[selmon->sellt]->arrange - && (abs(nx - c->x) > snap || abs(ny - c->y) > snap)) - togglefloating(NULL); - if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) - resize(c, nx, ny, c->w, c->h, 1); - break; - } - } while (ev.type != ButtonRelease); - XUngrabPointer(dpy, CurrentTime); - if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { - sendmon(c, m); - selmon = m; - focus(NULL); - } -} - -Client * -nexttiled(Client *c) -{ - for (; c && (c->isfloating || !ISVISIBLE(c)); c = c->next); - return c; -} - -void -pop(Client *c) -{ - detach(c); - attach(c); - focus(c); - arrange(c->mon); -} - -void -propertynotify(XEvent *e) -{ - Client *c; - Window trans; - XPropertyEvent *ev = &e->xproperty; - - if ((ev->window == root) && (ev->atom == XA_WM_NAME)) - updatestatus(); - else if (ev->state == PropertyDelete) - return; /* ignore */ - else if ((c = wintoclient(ev->window))) { - switch(ev->atom) { - default: break; - case XA_WM_TRANSIENT_FOR: - if (!c->isfloating && (XGetTransientForHint(dpy, c->win, &trans)) && - (c->isfloating = (wintoclient(trans)) != NULL)) - arrange(c->mon); - break; - case XA_WM_NORMAL_HINTS: - c->hintsvalid = 0; - break; - case XA_WM_HINTS: - updatewmhints(c); - drawbars(); - break; - } - if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { - updatetitle(c); - if (c == c->mon->sel) - drawbar(c->mon); - } - if (ev->atom == netatom[NetWMWindowType]) - updatewindowtype(c); - } -} - -void -quit(const Arg *arg) -{ - if(arg->i) restart = 1; - running = 0; -} - -Monitor * -recttomon(int x, int y, int w, int h) -{ - Monitor *m, *r = selmon; - int a, area = 0; - - for (m = mons; m; m = m->next) - if ((a = INTERSECT(x, y, w, h, m)) > area) { - area = a; - r = m; - } - return r; -} - -void -resize(Client *c, int x, int y, int w, int h, int interact) -{ - if (applysizehints(c, &x, &y, &w, &h, interact)) - resizeclient(c, x, y, w, h); -} - -void -resizeclient(Client *c, int x, int y, int w, int h) -{ - XWindowChanges wc; - - c->oldx = c->x; c->x = wc.x = x; - c->oldy = c->y; c->y = wc.y = y; - c->oldw = c->w; c->w = wc.width = w; - c->oldh = c->h; c->h = wc.height = h; - wc.border_width = c->bw; - XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); - configure(c); - XSync(dpy, False); -} - -void -resizemouse(const Arg *arg) -{ - int ocx, ocy, nw, nh; - Client *c; - Monitor *m; - XEvent ev; - Time lasttime = 0; - - if (!(c = selmon->sel)) - return; - if (c->isfullscreen) /* no support resizing fullscreen windows by mouse */ - return; - restack(selmon); - ocx = c->x; - ocy = c->y; - if (XGrabPointer(dpy, root, False, MOUSEMASK, GrabModeAsync, GrabModeAsync, - None, cursor[CurResize]->cursor, CurrentTime) != GrabSuccess) - return; - XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); - do { - XMaskEvent(dpy, MOUSEMASK|ExposureMask|SubstructureRedirectMask, &ev); - switch(ev.type) { - case ConfigureRequest: - case Expose: - case MapRequest: - handler[ev.type](&ev); - break; - case MotionNotify: - if ((ev.xmotion.time - lasttime) <= (1000 / 60)) - continue; - lasttime = ev.xmotion.time; - - nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); - nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); - if (c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww - && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh) - { - if (!c->isfloating && selmon->lt[selmon->sellt]->arrange - && (abs(nw - c->w) > snap || abs(nh - c->h) > snap)) - togglefloating(NULL); - } - if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) - resize(c, c->x, c->y, nw, nh, 1); - break; - } - } while (ev.type != ButtonRelease); - XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w + c->bw - 1, c->h + c->bw - 1); - XUngrabPointer(dpy, CurrentTime); - while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); - if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { - sendmon(c, m); - selmon = m; - focus(NULL); - } -} - -void -restack(Monitor *m) -{ - Client *c; - XEvent ev; - XWindowChanges wc; - - drawbar(m); - if (!m->sel) - return; - if (m->sel->isfloating || !m->lt[m->sellt]->arrange) - XRaiseWindow(dpy, m->sel->win); - if (m->lt[m->sellt]->arrange) { - wc.stack_mode = Below; - wc.sibling = m->barwin; - for (c = m->stack; c; c = c->snext) - if (!c->isfloating && ISVISIBLE(c)) { - XConfigureWindow(dpy, c->win, CWSibling|CWStackMode, &wc); - wc.sibling = c->win; - } - } - XSync(dpy, False); - while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); - if (m == selmon && (m->tagset[m->seltags] & m->sel->tags) && selmon->lt[selmon->sellt] != &layouts[2]) - warp(m->sel); -} - -void -run(void) -{ - XEvent ev; - /* main event loop */ - XSync(dpy, False); - while (running && !XNextEvent(dpy, &ev)) - if (handler[ev.type]) - handler[ev.type](&ev); /* call handler */ -} - -void -runAutostart(void) { - system("$HOME/.config/suckless/dwm/autostart"); -} - -void -scan(void) -{ - unsigned int i, num; - Window d1, d2, *wins = NULL; - XWindowAttributes wa; - - if (XQueryTree(dpy, root, &d1, &d2, &wins, &num)) { - for (i = 0; i < num; i++) { - if (!XGetWindowAttributes(dpy, wins[i], &wa) - || wa.override_redirect || XGetTransientForHint(dpy, wins[i], &d1)) - continue; - if (wa.map_state == IsViewable || getstate(wins[i]) == IconicState) - manage(wins[i], &wa); - } - for (i = 0; i < num; i++) { /* now the transients */ - if (!XGetWindowAttributes(dpy, wins[i], &wa)) - continue; - if (XGetTransientForHint(dpy, wins[i], &d1) - && (wa.map_state == IsViewable || getstate(wins[i]) == IconicState)) - manage(wins[i], &wa); - } - if (wins) - XFree(wins); - } -} - -void -sendmon(Client *c, Monitor *m) -{ - if (c->mon == m) - return; - unfocus(c, 1); - detach(c); - detachstack(c); - c->mon = m; - c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ - attachbottom(c); - attachstack(c); - focus(NULL); - arrange(NULL); -} - -void -setclientstate(Client *c, long state) -{ - long data[] = { state, None }; - - XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32, - PropModeReplace, (unsigned char *)data, 2); -} - -int -sendevent(Client *c, Atom proto) -{ - int n; - Atom *protocols; - int exists = 0; - XEvent ev; - - if (XGetWMProtocols(dpy, c->win, &protocols, &n)) { - while (!exists && n--) - exists = protocols[n] == proto; - XFree(protocols); - } - if (exists) { - ev.type = ClientMessage; - ev.xclient.window = c->win; - ev.xclient.message_type = wmatom[WMProtocols]; - ev.xclient.format = 32; - ev.xclient.data.l[0] = proto; - ev.xclient.data.l[1] = CurrentTime; - XSendEvent(dpy, c->win, False, NoEventMask, &ev); - } - return exists; -} - -void -setfocus(Client *c) -{ - if (!c->neverfocus) { - XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); - XChangeProperty(dpy, root, netatom[NetActiveWindow], - XA_WINDOW, 32, PropModeReplace, - (unsigned char *) &(c->win), 1); - } - sendevent(c, wmatom[WMTakeFocus]); -} - -void -setfullscreen(Client *c, int fullscreen) -{ - if (fullscreen && !c->isfullscreen) { - XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32, - PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1); - c->isfullscreen = 1; - c->oldstate = c->isfloating; - c->oldbw = c->bw; - c->bw = 0; - c->isfloating = 1; - resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh); - XRaiseWindow(dpy, c->win); - } else if (!fullscreen && c->isfullscreen){ - XChangeProperty(dpy, c->win, netatom[NetWMState], XA_ATOM, 32, - PropModeReplace, (unsigned char*)0, 0); - c->isfullscreen = 0; - c->isfloating = c->oldstate; - c->bw = c->oldbw; - c->x = c->oldx; - c->y = c->oldy; - c->w = c->oldw; - c->h = c->oldh; - resizeclient(c, c->x, c->y, c->w, c->h); - arrange(c->mon); - } -} - -void -setlayout(const Arg *arg) -{ - if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt]) - selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag] ^= 1; - if (arg && arg->v) - selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt] = (Layout *)arg->v; - strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol); - if (selmon->sel) - arrange(selmon); - else - drawbar(selmon); -} - -/* arg > 1.0 will set mfact absolutely */ -void -setmfact(const Arg *arg) -{ - float f; - - if (!arg || !selmon->lt[selmon->sellt]->arrange) - return; - f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0; - if (f < 0.05 || f > 0.95) - return; - selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag] = f; - arrange(selmon); -} - -void -setup(void) -{ - int i; - XSetWindowAttributes wa; - Atom utf8string; - - /* clean up any zombies immediately */ - sigchld(0); - - signal(SIGHUP, sighup); - signal(SIGTERM, sigterm); - - /* init screen */ - screen = DefaultScreen(dpy); - sw = DisplayWidth(dpy, screen); - sh = DisplayHeight(dpy, screen); - root = RootWindow(dpy, screen); - drw = drw_create(dpy, screen, root, sw, sh); - if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) - die("no fonts could be loaded."); - lrpad = drw->fonts->h + horizpadbar; - bh = drw->fonts->h + vertpadbar; - updategeom(); - /* init atoms */ - utf8string = XInternAtom(dpy, "UTF8_STRING", False); - wmatom[WMProtocols] = XInternAtom(dpy, "WM_PROTOCOLS", False); - wmatom[WMDelete] = XInternAtom(dpy, "WM_DELETE_WINDOW", False); - wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False); - wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False); - netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False); - netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False); - netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False); - netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False); - netatom[NetWMCheck] = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", False); - netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False); - netatom[NetWMWindowType] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE", False); - netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False); - netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False); - /* init cursors */ - cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr); - cursor[CurResize] = drw_cur_create(drw, XC_sizing); - cursor[CurMove] = drw_cur_create(drw, XC_fleur); - /* init appearance */ - scheme = ecalloc(LENGTH(colors), sizeof(Clr *)); - for (i = 0; i < LENGTH(colors); i++) - scheme[i] = drw_scm_create(drw, colors[i], 3); - /* init bars */ - updatebars(); - updatestatus(); - /* supporting window for NetWMCheck */ - wmcheckwin = XCreateSimpleWindow(dpy, root, 0, 0, 1, 1, 0, 0, 0); - XChangeProperty(dpy, wmcheckwin, netatom[NetWMCheck], XA_WINDOW, 32, - PropModeReplace, (unsigned char *) &wmcheckwin, 1); - XChangeProperty(dpy, wmcheckwin, netatom[NetWMName], utf8string, 8, - PropModeReplace, (unsigned char *) "dwm", 3); - XChangeProperty(dpy, root, netatom[NetWMCheck], XA_WINDOW, 32, - PropModeReplace, (unsigned char *) &wmcheckwin, 1); - /* EWMH support per view */ - XChangeProperty(dpy, root, netatom[NetSupported], XA_ATOM, 32, - PropModeReplace, (unsigned char *) netatom, NetLast); - XDeleteProperty(dpy, root, netatom[NetClientList]); - /* select events */ - wa.cursor = cursor[CurNormal]->cursor; - wa.event_mask = SubstructureRedirectMask|SubstructureNotifyMask - |ButtonPressMask|PointerMotionMask|EnterWindowMask - |LeaveWindowMask|StructureNotifyMask|PropertyChangeMask; - XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa); - XSelectInput(dpy, root, wa.event_mask); - grabkeys(); - focus(NULL); -} - -void -seturgent(Client *c, int urg) -{ - XWMHints *wmh; - - c->isurgent = urg; - if (!(wmh = XGetWMHints(dpy, c->win))) - return; - wmh->flags = urg ? (wmh->flags | XUrgencyHint) : (wmh->flags & ~XUrgencyHint); - XSetWMHints(dpy, c->win, wmh); - XFree(wmh); -} - -void -showhide(Client *c) -{ - if (!c) - return; - if (ISVISIBLE(c)) { - if ((c->tags & SPTAGMASK) && c->isfloating) { - c->x = c->mon->wx + (c->mon->ww / 2 - WIDTH(c) / 2); - c->y = c->mon->wy + (c->mon->wh / 2 - HEIGHT(c) / 2); - } - /* show clients top down */ - XMoveWindow(dpy, c->win, c->x, c->y); - if ((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen) - resize(c, c->x, c->y, c->w, c->h, 0); - showhide(c->snext); - } else { - /* hide clients bottom up */ - showhide(c->snext); - XMoveWindow(dpy, c->win, WIDTH(c) * -2, c->y); - } -} - -void -sigchld(int unused) -{ - if (signal(SIGCHLD, sigchld) == SIG_ERR) - die("can't install SIGCHLD handler:"); - while (0 < waitpid(-1, NULL, WNOHANG)); -} - -void -sighup(int unused) -{ - Arg a = {.i = 1}; - quit(&a); -} - -void -sigterm(int unused) -{ - Arg a = {.i = 0}; - quit(&a); -} - -void -spawn(const Arg *arg) -{ - if (fork() == 0) { - if (dpy) - close(ConnectionNumber(dpy)); - setsid(); - execvp(((char **)arg->v)[0], (char **)arg->v); - die("dwm: execvp '%s' failed:", ((char **)arg->v)[0]); - } -} - -void -tag(const Arg *arg) -{ - if (selmon->sel && arg->ui & TAGMASK) { - selmon->sel->tags = arg->ui & TAGMASK; - focus(NULL); - arrange(selmon); - } -} - -void -tagmon(const Arg *arg) -{ - if (!selmon->sel || !mons->next) - return; - sendmon(selmon->sel, dirtomon(arg->i)); -} - -void -tile(Monitor *m) -{ - unsigned int i, n, h, mw, my, ty; - Client *c; - - for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++); - if (n == 0) - return; - - if (n > m->nmaster) - mw = m->nmaster ? m->ww * m->mfact : 0; - else - mw = m->ww; - for (i = my = ty = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) - if (i < m->nmaster) { - h = (m->wh - my) / (MIN(n, m->nmaster) - i); - resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0); - if (my + HEIGHT(c) < m->wh) - my += HEIGHT(c); - } else { - h = (m->wh - ty) / (n - i); - resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0); - if (ty + HEIGHT(c) < m->wh) - ty += HEIGHT(c); - } -} - -void -togglebar(const Arg *arg) -{ - selmon->showbar = selmon->pertag->showbars[selmon->pertag->curtag] = !selmon->showbar; - updatebarpos(selmon); - XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh); - arrange(selmon); -} - -void -togglefloating(const Arg *arg) -{ - if (!selmon->sel) - return; - if (selmon->sel->isfullscreen) /* no support for fullscreen windows */ - return; - selmon->sel->isfloating = !selmon->sel->isfloating || selmon->sel->isfixed; - if (selmon->sel->isfloating) - resize(selmon->sel, selmon->sel->x, selmon->sel->y, - selmon->sel->w, selmon->sel->h, 0); - arrange(selmon); -} - -void -togglescratch(const Arg *arg) -{ - Client *c; - unsigned int found = 0; - unsigned int scratchtag = SPTAG(arg->ui); - Arg sparg = {.v = scratchpads[arg->ui].cmd}; - - for (c = selmon->clients; c && !(found = c->tags & scratchtag); c = c->next); - if (found) { - unsigned int newtagset = selmon->tagset[selmon->seltags] ^ scratchtag; - if (newtagset) { - selmon->tagset[selmon->seltags] = newtagset; - focus(NULL); - arrange(selmon); - } - if (ISVISIBLE(c)) { - focus(c); - restack(selmon); - } - } else { - selmon->tagset[selmon->seltags] |= scratchtag; - spawn(&sparg); - } -} - -void -toggletag(const Arg *arg) -{ - unsigned int newtags; - - if (!selmon->sel) - return; - newtags = selmon->sel->tags ^ (arg->ui & TAGMASK); - if (newtags) { - selmon->sel->tags = newtags; - focus(NULL); - arrange(selmon); - } -} - -void -toggleview(const Arg *arg) -{ - unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); - int i; - - if (newtagset) { - selmon->tagset[selmon->seltags] = newtagset; - - if (newtagset == ~0) { - selmon->pertag->prevtag = selmon->pertag->curtag; - selmon->pertag->curtag = 0; - } - - /* test if the user did not select the same tag */ - if (!(newtagset & 1 << (selmon->pertag->curtag - 1))) { - selmon->pertag->prevtag = selmon->pertag->curtag; - for (i = 0; !(newtagset & 1 << i); i++) ; - selmon->pertag->curtag = i + 1; - } - - /* apply settings for this view */ - selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag]; - selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag]; - selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag]; - selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt]; - selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1]; - - if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag]) - togglebar(NULL); - - focus(NULL); - arrange(selmon); - } -} - -void -unfocus(Client *c, int setfocus) -{ - if (!c) - return; - grabbuttons(c, 0); - XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel); - if (setfocus) { - XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime); - XDeleteProperty(dpy, root, netatom[NetActiveWindow]); - } -} - -void -unmanage(Client *c, int destroyed) -{ - Monitor *m = c->mon; - XWindowChanges wc; - - detach(c); - detachstack(c); - if (!destroyed) { - wc.border_width = c->oldbw; - XGrabServer(dpy); /* avoid race conditions */ - XSetErrorHandler(xerrordummy); - XSelectInput(dpy, c->win, NoEventMask); - XConfigureWindow(dpy, c->win, CWBorderWidth, &wc); /* restore border */ - XUngrabButton(dpy, AnyButton, AnyModifier, c->win); - setclientstate(c, WithdrawnState); - XSync(dpy, False); - XSetErrorHandler(xerror); - XUngrabServer(dpy); - } - free(c); - focus(NULL); - updateclientlist(); - arrange(m); -} - -void -unmapnotify(XEvent *e) -{ - Client *c; - XUnmapEvent *ev = &e->xunmap; - - if ((c = wintoclient(ev->window))) { - if (ev->send_event) - setclientstate(c, WithdrawnState); - else - unmanage(c, 0); - } -} - -void -updatebars(void) -{ - Monitor *m; - XSetWindowAttributes wa = { - .override_redirect = True, - .background_pixmap = ParentRelative, - .event_mask = ButtonPressMask|ExposureMask - }; - XClassHint ch = {"dwm", "dwm"}; - for (m = mons; m; m = m->next) { - if (m->barwin) - continue; - m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, DefaultDepth(dpy, screen), - CopyFromParent, DefaultVisual(dpy, screen), - CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); - XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); - XMapRaised(dpy, m->barwin); - XSetClassHint(dpy, m->barwin, &ch); - } -} - -void -updatebarpos(Monitor *m) -{ - m->wy = m->my; - m->wh = m->mh; - if (m->showbar) { - m->wh -= bh; - m->by = m->topbar ? m->wy : m->wy + m->wh; - m->wy = m->topbar ? m->wy + bh : m->wy; - } else - m->by = -bh; -} - -void -updateclientlist() -{ - Client *c; - Monitor *m; - - XDeleteProperty(dpy, root, netatom[NetClientList]); - for (m = mons; m; m = m->next) - for (c = m->clients; c; c = c->next) - XChangeProperty(dpy, root, netatom[NetClientList], - XA_WINDOW, 32, PropModeAppend, - (unsigned char *) &(c->win), 1); -} - -int -updategeom(void) -{ - int dirty = 0; - -#ifdef XINERAMA - if (XineramaIsActive(dpy)) { - int i, j, n, nn; - Client *c; - Monitor *m; - XineramaScreenInfo *info = XineramaQueryScreens(dpy, &nn); - XineramaScreenInfo *unique = NULL; - - for (n = 0, m = mons; m; m = m->next, n++); - /* only consider unique geometries as separate screens */ - unique = ecalloc(nn, sizeof(XineramaScreenInfo)); - for (i = 0, j = 0; i < nn; i++) - if (isuniquegeom(unique, j, &info[i])) - memcpy(&unique[j++], &info[i], sizeof(XineramaScreenInfo)); - XFree(info); - nn = j; - - /* new monitors if nn > n */ - for (i = n; i < nn; i++) { - for (m = mons; m && m->next; m = m->next); - if (m) - m->next = createmon(); - else - mons = createmon(); - } - for (i = 0, m = mons; i < nn && m; m = m->next, i++) - if (i >= n - || unique[i].x_org != m->mx || unique[i].y_org != m->my - || unique[i].width != m->mw || unique[i].height != m->mh) - { - dirty = 1; - m->num = i; - m->mx = m->wx = unique[i].x_org; - m->my = m->wy = unique[i].y_org; - m->mw = m->ww = unique[i].width; - m->mh = m->wh = unique[i].height; - updatebarpos(m); - } - /* removed monitors if n > nn */ - for (i = nn; i < n; i++) { - for (m = mons; m && m->next; m = m->next); - while ((c = m->clients)) { - dirty = 1; - m->clients = c->next; - detachstack(c); - c->mon = mons; - attachbottom(c); - attachstack(c); - } - if (m == selmon) - selmon = mons; - cleanupmon(m); - } - free(unique); - } else -#endif /* XINERAMA */ - { /* default monitor setup */ - if (!mons) - mons = createmon(); - if (mons->mw != sw || mons->mh != sh) { - dirty = 1; - mons->mw = mons->ww = sw; - mons->mh = mons->wh = sh; - updatebarpos(mons); - } - } - if (dirty) { - selmon = mons; - selmon = wintomon(root); - } - return dirty; -} - -void -updatenumlockmask(void) -{ - unsigned int i, j; - XModifierKeymap *modmap; - - numlockmask = 0; - modmap = XGetModifierMapping(dpy); - for (i = 0; i < 8; i++) - for (j = 0; j < modmap->max_keypermod; j++) - if (modmap->modifiermap[i * modmap->max_keypermod + j] - == XKeysymToKeycode(dpy, XK_Num_Lock)) - numlockmask = (1 << i); - XFreeModifiermap(modmap); -} - -void -updatesizehints(Client *c) -{ - long msize; - XSizeHints size; - - if (!XGetWMNormalHints(dpy, c->win, &size, &msize)) - /* size is uninitialized, ensure that size.flags aren't used */ - size.flags = PSize; - if (size.flags & PBaseSize) { - c->basew = size.base_width; - c->baseh = size.base_height; - } else if (size.flags & PMinSize) { - c->basew = size.min_width; - c->baseh = size.min_height; - } else - c->basew = c->baseh = 0; - if (size.flags & PResizeInc) { - c->incw = size.width_inc; - c->inch = size.height_inc; - } else - c->incw = c->inch = 0; - if (size.flags & PMaxSize) { - c->maxw = size.max_width; - c->maxh = size.max_height; - } else - c->maxw = c->maxh = 0; - if (size.flags & PMinSize) { - c->minw = size.min_width; - c->minh = size.min_height; - } else if (size.flags & PBaseSize) { - c->minw = size.base_width; - c->minh = size.base_height; - } else - c->minw = c->minh = 0; - if (size.flags & PAspect) { - c->mina = (float)size.min_aspect.y / size.min_aspect.x; - c->maxa = (float)size.max_aspect.x / size.max_aspect.y; - } else - c->maxa = c->mina = 0.0; - c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == c->minh); - c->hintsvalid = 1; -} - -void -updatestatus(void) -{ - if (!gettextprop(root, XA_WM_NAME, stext, sizeof(stext))) - strcpy(stext, "dwm-"VERSION); - drawbar(selmon); -} - -void -updatetitle(Client *c) -{ - if (!gettextprop(c->win, netatom[NetWMName], c->name, sizeof c->name)) - gettextprop(c->win, XA_WM_NAME, c->name, sizeof c->name); - if (c->name[0] == '\0') /* hack to mark broken clients */ - strcpy(c->name, broken); -} - -void -updatewindowtype(Client *c) -{ - Atom state = getatomprop(c, netatom[NetWMState]); - Atom wtype = getatomprop(c, netatom[NetWMWindowType]); - - if (state == netatom[NetWMFullscreen]) - setfullscreen(c, 1); - if (wtype == netatom[NetWMWindowTypeDialog]) - c->isfloating = 1; -} - -void -updatewmhints(Client *c) -{ - XWMHints *wmh; - - if ((wmh = XGetWMHints(dpy, c->win))) { - if (c == selmon->sel && wmh->flags & XUrgencyHint) { - wmh->flags &= ~XUrgencyHint; - XSetWMHints(dpy, c->win, wmh); - } else - c->isurgent = (wmh->flags & XUrgencyHint) ? 1 : 0; - if (wmh->flags & InputHint) - c->neverfocus = !wmh->input; - else - c->neverfocus = 0; - XFree(wmh); - } -} - -void -view(const Arg *arg) -{ - int i; - unsigned int tmptag; - - if ((arg->ui & TAGMASK) == selmon->tagset[selmon->seltags]) - return; - selmon->seltags ^= 1; /* toggle sel tagset */ - if (arg->ui & TAGMASK) { - selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; - selmon->pertag->prevtag = selmon->pertag->curtag; - - if (arg->ui == ~0) - selmon->pertag->curtag = 0; - else { - for (i = 0; !(arg->ui & 1 << i); i++) ; - selmon->pertag->curtag = i + 1; - } - } else { - tmptag = selmon->pertag->prevtag; - selmon->pertag->prevtag = selmon->pertag->curtag; - selmon->pertag->curtag = tmptag; - } - - selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag]; - selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag]; - selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag]; - selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt]; - selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1]; - - if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag]) - togglebar(NULL); - - focus(NULL); - arrange(selmon); -} - -void -warp(const Client *c) -{ - int x, y; - - if (!c) { - XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->wx + selmon->ww/2, selmon->wy + selmon->wh/2); - return; - } - - if (!getrootptr(&x, &y) || - (x > c->x - c->bw && - y > c->y - c->bw && - x < c->x + c->w + c->bw*2 && - y < c->y + c->h + c->bw*2) || - (y > c->mon->by && y < c->mon->by + bh) || - (c->mon->topbar && !y)) - return; - - XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w / 2, c->h / 2); -} - -Client * -wintoclient(Window w) -{ - Client *c; - Monitor *m; - - for (m = mons; m; m = m->next) - for (c = m->clients; c; c = c->next) - if (c->win == w) - return c; - return NULL; -} - -Monitor * -wintomon(Window w) -{ - int x, y; - Client *c; - Monitor *m; - - if (w == root && getrootptr(&x, &y)) - return recttomon(x, y, 1, 1); - for (m = mons; m; m = m->next) - if (w == m->barwin) - return m; - if ((c = wintoclient(w))) - return c->mon; - return selmon; -} - -/* There's no way to check accesses to destroyed windows, thus those cases are - * ignored (especially on UnmapNotify's). Other types of errors call Xlibs - * default error handler, which may call exit. */ -int -xerror(Display *dpy, XErrorEvent *ee) -{ - if (ee->error_code == BadWindow - || (ee->request_code == X_SetInputFocus && ee->error_code == BadMatch) - || (ee->request_code == X_PolyText8 && ee->error_code == BadDrawable) - || (ee->request_code == X_PolyFillRectangle && ee->error_code == BadDrawable) - || (ee->request_code == X_PolySegment && ee->error_code == BadDrawable) - || (ee->request_code == X_ConfigureWindow && ee->error_code == BadMatch) - || (ee->request_code == X_GrabButton && ee->error_code == BadAccess) - || (ee->request_code == X_GrabKey && ee->error_code == BadAccess) - || (ee->request_code == X_CopyArea && ee->error_code == BadDrawable)) - return 0; - fprintf(stderr, "dwm: fatal error: request code=%d, error code=%d\n", - ee->request_code, ee->error_code); - return xerrorxlib(dpy, ee); /* may call exit */ -} - -int -xerrordummy(Display *dpy, XErrorEvent *ee) -{ - return 0; -} - -/* Startup Error handler to check if another window manager - * is already running. */ -int -xerrorstart(Display *dpy, XErrorEvent *ee) -{ - die("dwm: another window manager is already running"); - return -1; -} - -void -zoom(const Arg *arg) -{ - Client *c = selmon->sel; - - if (!selmon->lt[selmon->sellt]->arrange || !c || c->isfloating) - return; - if (c == nexttiled(selmon->clients) && !(c = nexttiled(c->next))) - return; - pop(c); -} - -int -main(int argc, char *argv[]) -{ - if (argc == 2 && !strcmp("-v", argv[1])) - die("dwm-"VERSION); - else if (argc != 1) - die("usage: dwm [-v]"); - if (!setlocale(LC_CTYPE, "") || !XSupportsLocale()) - fputs("warning: no locale support\n", stderr); - if (!(dpy = XOpenDisplay(NULL))) - die("dwm: cannot open display"); - checkotherwm(); - setup(); -#ifdef __OpenBSD__ - if (pledge("stdio rpath proc exec", NULL) == -1) - die("pledge"); -#endif /* __OpenBSD__ */ - scan(); - runAutostart(); - run(); - if(restart) execvp(argv[0], argv); - cleanup(); - XCloseDisplay(dpy); - return EXIT_SUCCESS; -} diff --git a/user/.config/suckless/dwm/dwm.png b/user/.config/suckless/dwm/dwm.png deleted file mode 100644 index b1f9ba7e5..000000000 Binary files a/user/.config/suckless/dwm/dwm.png and /dev/null differ diff --git a/user/.config/suckless/dwm/movestack.c b/user/.config/suckless/dwm/movestack.c deleted file mode 100644 index 520f4ae39..000000000 --- a/user/.config/suckless/dwm/movestack.c +++ /dev/null @@ -1,48 +0,0 @@ -void -movestack(const Arg *arg) { - Client *c = NULL, *p = NULL, *pc = NULL, *i; - - if(arg->i > 0) { - /* find the client after selmon->sel */ - for(c = selmon->sel->next; c && (!ISVISIBLE(c) || c->isfloating); c = c->next); - if(!c) - for(c = selmon->clients; c && (!ISVISIBLE(c) || c->isfloating); c = c->next); - - } - else { - /* find the client before selmon->sel */ - for(i = selmon->clients; i != selmon->sel; i = i->next) - if(ISVISIBLE(i) && !i->isfloating) - c = i; - if(!c) - for(; i; i = i->next) - if(ISVISIBLE(i) && !i->isfloating) - c = i; - } - /* find the client before selmon->sel and c */ - for(i = selmon->clients; i && (!p || !pc); i = i->next) { - if(i->next == selmon->sel) - p = i; - if(i->next == c) - pc = i; - } - - /* swap c and selmon->sel selmon->clients in the selmon->clients list */ - if(c && c != selmon->sel) { - Client *temp = selmon->sel->next==c?selmon->sel:selmon->sel->next; - selmon->sel->next = c->next==selmon->sel?c:c->next; - c->next = temp; - - if(p && p != c) - p->next = c; - if(pc && pc != selmon->sel) - pc->next = selmon->sel; - - if(selmon->sel == selmon->clients) - selmon->clients = c; - else if(c == selmon->clients) - selmon->clients = selmon->sel; - - arrange(selmon); - } -} \ No newline at end of file diff --git a/user/.config/suckless/dwm/patches/dwm-alwayscenter-20200625-f04cac6.diff b/user/.config/suckless/dwm/patches/dwm-alwayscenter-20200625-f04cac6.diff deleted file mode 100644 index 03ea9ef2a..000000000 --- a/user/.config/suckless/dwm/patches/dwm-alwayscenter-20200625-f04cac6.diff +++ /dev/null @@ -1,12 +0,0 @@ -diff -up dwm/dwm.c dwmmod/dwm.c ---- dwm/dwm.c 2020-06-25 00:21:30.383692180 -0300 -+++ dwmmod/dwm.c 2020-06-25 00:20:35.643692330 -0300 -@@ -1057,6 +1057,8 @@ manage(Window w, XWindowAttributes *wa) - updatewindowtype(c); - updatesizehints(c); - updatewmhints(c); -+ c->x = c->mon->mx + (c->mon->mw - WIDTH(c)) / 2; -+ c->y = c->mon->my + (c->mon->mh - HEIGHT(c)) / 2; - XSelectInput(dpy, w, EnterWindowMask|FocusChangeMask|PropertyChangeMask|StructureNotifyMask); - grabbuttons(c, 0); - if (!c->isfloating) diff --git a/user/.config/suckless/dwm/patches/dwm-attachbottom-6.3.diff b/user/.config/suckless/dwm/patches/dwm-attachbottom-6.3.diff deleted file mode 100644 index c3955f9b1..000000000 --- a/user/.config/suckless/dwm/patches/dwm-attachbottom-6.3.diff +++ /dev/null @@ -1,54 +0,0 @@ -diff -up dwm-6.3/dwm.c dwm-6.3-attachbottom/dwm.c ---- dwm-6.3/dwm.c 2022-01-07 12:42:18.000000000 +0100 -+++ dwm-6.3-attachbottom/dwm.c 2022-08-17 22:14:41.813809073 +0200 -@@ -147,6 +147,7 @@ static int applysizehints(Client *c, int - static void arrange(Monitor *m); - static void arrangemon(Monitor *m); - static void attach(Client *c); -+static void attachbottom(Client *c); - static void attachstack(Client *c); - static void buttonpress(XEvent *e); - static void checkotherwm(void); -@@ -408,6 +409,15 @@ attach(Client *c) - } - - void -+attachbottom(Client *c) -+{ -+ Client **tc; -+ c->next = NULL; -+ for (tc = &c->mon->clients; *tc; tc = &(*tc)->next); -+ *tc = c; -+} -+ -+void - attachstack(Client *c) - { - c->snext = c->mon->stack; -@@ -1066,7 +1076,7 @@ manage(Window w, XWindowAttributes *wa) - c->isfloating = c->oldstate = trans != None || c->isfixed; - if (c->isfloating) - XRaiseWindow(dpy, c->win); -- attach(c); -+ attachbottom(c); - attachstack(c); - XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend, - (unsigned char *) &(c->win), 1); -@@ -1421,7 +1431,7 @@ sendmon(Client *c, Monitor *m) - detachstack(c); - c->mon = m; - c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */ -- attach(c); -+ attachbottom(c); - attachstack(c); - focus(NULL); - arrange(NULL); -@@ -1903,7 +1913,7 @@ updategeom(void) - m->clients = c->next; - detachstack(c); - c->mon = mons; -- attach(c); -+ attachbottom(c); - attachstack(c); - } - if (m == selmon) diff --git a/user/.config/suckless/dwm/patches/dwm-autostart-20161205-bb3bd6f.diff b/user/.config/suckless/dwm/patches/dwm-autostart-20161205-bb3bd6f.diff deleted file mode 100644 index 6f11eaf28..000000000 --- a/user/.config/suckless/dwm/patches/dwm-autostart-20161205-bb3bd6f.diff +++ /dev/null @@ -1,39 +0,0 @@ -commit 5918623c5bd7fda155bf9dc3d33890c4ae1722d0 -Author: Simon Bremer -Date: Thu Dec 22 17:31:07 2016 +0100 - - Applied and fixed autostart patch for previous version; - -diff --git a/dwm.c b/dwm.c -index d27cb67..066ed71 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -194,6 +194,7 @@ static void resizeclient(Client *c, int x, int y, int w, int h); - static void resizemouse(const Arg *arg); - static void restack(Monitor *m); - static void run(void); -+static void runAutostart(void); - static void scan(void); - static int sendevent(Client *c, Atom proto); - static void sendmon(Client *c, Monitor *m); -@@ -1386,6 +1387,12 @@ run(void) - } - - void -+runAutostart(void) { -+ system("cd ~/.dwm; ./autostart_blocking.sh"); -+ system("cd ~/.dwm; ./autostart.sh &"); -+} -+ -+void - scan(void) - { - unsigned int i, num; -@@ -2145,6 +2152,7 @@ main(int argc, char *argv[]) - checkotherwm(); - setup(); - scan(); -+ runAutostart(); - run(); - cleanup(); - XCloseDisplay(dpy); diff --git a/user/.config/suckless/dwm/patches/dwm-movestack-20211115-a786211.diff b/user/.config/suckless/dwm/patches/dwm-movestack-20211115-a786211.diff deleted file mode 100644 index 134abb88b..000000000 --- a/user/.config/suckless/dwm/patches/dwm-movestack-20211115-a786211.diff +++ /dev/null @@ -1,95 +0,0 @@ -From 9a4037dc0ef56f91c009317e78e9e3790dafbb58 Mon Sep 17 00:00:00 2001 -From: BrunoCooper17 -Date: Mon, 15 Nov 2021 14:04:53 -0600 -Subject: [PATCH] MoveStack patch - -This plugin allows you to move clients around in the stack and swap them -with the master. It emulates the behavior off mod+shift+j and mod+shift+k -in Xmonad. movestack(+1) will swap the client with the current focus with -the next client. movestack(-1) will swap the client with the current focus -with the previous client. ---- - config.def.h | 3 +++ - movestack.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ - 2 files changed, 51 insertions(+) - create mode 100644 movestack.c - -diff --git a/config.def.h b/config.def.h -index a2ac963..33efa5b 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -60,6 +60,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() - static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; - static const char *termcmd[] = { "st", NULL }; - -+#include "movestack.c" - static Key keys[] = { - /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd } }, -@@ -71,6 +72,8 @@ static Key keys[] = { - { MODKEY, XK_d, incnmaster, {.i = -1 } }, - { MODKEY, XK_h, setmfact, {.f = -0.05} }, - { MODKEY, XK_l, setmfact, {.f = +0.05} }, -+ { MODKEY|ShiftMask, XK_j, movestack, {.i = +1 } }, -+ { MODKEY|ShiftMask, XK_k, movestack, {.i = -1 } }, - { MODKEY, XK_Return, zoom, {0} }, - { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_c, killclient, {0} }, -diff --git a/movestack.c b/movestack.c -new file mode 100644 -index 0000000..520f4ae ---- /dev/null -+++ b/movestack.c -@@ -0,0 +1,48 @@ -+void -+movestack(const Arg *arg) { -+ Client *c = NULL, *p = NULL, *pc = NULL, *i; -+ -+ if(arg->i > 0) { -+ /* find the client after selmon->sel */ -+ for(c = selmon->sel->next; c && (!ISVISIBLE(c) || c->isfloating); c = c->next); -+ if(!c) -+ for(c = selmon->clients; c && (!ISVISIBLE(c) || c->isfloating); c = c->next); -+ -+ } -+ else { -+ /* find the client before selmon->sel */ -+ for(i = selmon->clients; i != selmon->sel; i = i->next) -+ if(ISVISIBLE(i) && !i->isfloating) -+ c = i; -+ if(!c) -+ for(; i; i = i->next) -+ if(ISVISIBLE(i) && !i->isfloating) -+ c = i; -+ } -+ /* find the client before selmon->sel and c */ -+ for(i = selmon->clients; i && (!p || !pc); i = i->next) { -+ if(i->next == selmon->sel) -+ p = i; -+ if(i->next == c) -+ pc = i; -+ } -+ -+ /* swap c and selmon->sel selmon->clients in the selmon->clients list */ -+ if(c && c != selmon->sel) { -+ Client *temp = selmon->sel->next==c?selmon->sel:selmon->sel->next; -+ selmon->sel->next = c->next==selmon->sel?c:c->next; -+ c->next = temp; -+ -+ if(p && p != c) -+ p->next = c; -+ if(pc && pc != selmon->sel) -+ pc->next = selmon->sel; -+ -+ if(selmon->sel == selmon->clients) -+ selmon->clients = c; -+ else if(c == selmon->clients) -+ selmon->clients = selmon->sel; -+ -+ arrange(selmon); -+ } -+} -\ No newline at end of file --- -2.33.1 - diff --git a/user/.config/suckless/dwm/patches/dwm-pertag-20200914-61bb8b2.diff b/user/.config/suckless/dwm/patches/dwm-pertag-20200914-61bb8b2.diff deleted file mode 100644 index c8d7fbcb3..000000000 --- a/user/.config/suckless/dwm/patches/dwm-pertag-20200914-61bb8b2.diff +++ /dev/null @@ -1,177 +0,0 @@ -diff --git a/dwm.c b/dwm.c -index 664c527..ac8e4ec 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -111,6 +111,7 @@ typedef struct { - void (*arrange)(Monitor *); - } Layout; - -+typedef struct Pertag Pertag; - struct Monitor { - char ltsymbol[16]; - float mfact; -@@ -130,6 +131,7 @@ struct Monitor { - Monitor *next; - Window barwin; - const Layout *lt[2]; -+ Pertag *pertag; - }; - - typedef struct { -@@ -272,6 +274,15 @@ static Window root, wmcheckwin; - /* configuration, allows nested code to access above variables */ - #include "config.h" - -+struct Pertag { -+ unsigned int curtag, prevtag; /* current and previous tag */ -+ int nmasters[LENGTH(tags) + 1]; /* number of windows in master area */ -+ float mfacts[LENGTH(tags) + 1]; /* mfacts per tag */ -+ unsigned int sellts[LENGTH(tags) + 1]; /* selected layouts */ -+ const Layout *ltidxs[LENGTH(tags) + 1][2]; /* matrix of tags and layouts indexes */ -+ int showbars[LENGTH(tags) + 1]; /* display bar for the current tag */ -+}; -+ - /* compile-time check if all tags fit into an unsigned int bit array. */ - struct NumTags { char limitexceeded[LENGTH(tags) > 31 ? -1 : 1]; }; - -@@ -632,6 +643,7 @@ Monitor * - createmon(void) - { - Monitor *m; -+ unsigned int i; - - m = ecalloc(1, sizeof(Monitor)); - m->tagset[0] = m->tagset[1] = 1; -@@ -642,6 +654,20 @@ createmon(void) - m->lt[0] = &layouts[0]; - m->lt[1] = &layouts[1 % LENGTH(layouts)]; - strncpy(m->ltsymbol, layouts[0].symbol, sizeof m->ltsymbol); -+ m->pertag = ecalloc(1, sizeof(Pertag)); -+ m->pertag->curtag = m->pertag->prevtag = 1; -+ -+ for (i = 0; i <= LENGTH(tags); i++) { -+ m->pertag->nmasters[i] = m->nmaster; -+ m->pertag->mfacts[i] = m->mfact; -+ -+ m->pertag->ltidxs[i][0] = m->lt[0]; -+ m->pertag->ltidxs[i][1] = m->lt[1]; -+ m->pertag->sellts[i] = m->sellt; -+ -+ m->pertag->showbars[i] = m->showbar; -+ } -+ - return m; - } - -@@ -967,7 +993,7 @@ grabkeys(void) - void - incnmaster(const Arg *arg) - { -- selmon->nmaster = MAX(selmon->nmaster + arg->i, 0); -+ selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag] = MAX(selmon->nmaster + arg->i, 0); - arrange(selmon); - } - -@@ -1502,9 +1528,9 @@ void - setlayout(const Arg *arg) - { - if (!arg || !arg->v || arg->v != selmon->lt[selmon->sellt]) -- selmon->sellt ^= 1; -+ selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag] ^= 1; - if (arg && arg->v) -- selmon->lt[selmon->sellt] = (Layout *)arg->v; -+ selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt] = (Layout *)arg->v; - strncpy(selmon->ltsymbol, selmon->lt[selmon->sellt]->symbol, sizeof selmon->ltsymbol); - if (selmon->sel) - arrange(selmon); -@@ -1523,7 +1549,7 @@ setmfact(const Arg *arg) - f = arg->f < 1.0 ? arg->f + selmon->mfact : arg->f - 1.0; - if (f < 0.05 || f > 0.95) - return; -- selmon->mfact = f; -+ selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag] = f; - arrange(selmon); - } - -@@ -1702,7 +1728,7 @@ tile(Monitor *m) - void - togglebar(const Arg *arg) - { -- selmon->showbar = !selmon->showbar; -+ selmon->showbar = selmon->pertag->showbars[selmon->pertag->curtag] = !selmon->showbar; - updatebarpos(selmon); - XMoveResizeWindow(dpy, selmon->barwin, selmon->wx, selmon->by, selmon->ww, bh); - arrange(selmon); -@@ -1741,9 +1767,33 @@ void - toggleview(const Arg *arg) - { - unsigned int newtagset = selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK); -+ int i; - - if (newtagset) { - selmon->tagset[selmon->seltags] = newtagset; -+ -+ if (newtagset == ~0) { -+ selmon->pertag->prevtag = selmon->pertag->curtag; -+ selmon->pertag->curtag = 0; -+ } -+ -+ /* test if the user did not select the same tag */ -+ if (!(newtagset & 1 << (selmon->pertag->curtag - 1))) { -+ selmon->pertag->prevtag = selmon->pertag->curtag; -+ for (i = 0; !(newtagset & 1 << i); i++) ; -+ selmon->pertag->curtag = i + 1; -+ } -+ -+ /* apply settings for this view */ -+ selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag]; -+ selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag]; -+ selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag]; -+ selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt]; -+ selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1]; -+ -+ if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag]) -+ togglebar(NULL); -+ - focus(NULL); - arrange(selmon); - } -@@ -2038,11 +2088,37 @@ updatewmhints(Client *c) - void - view(const Arg *arg) - { -+ int i; -+ unsigned int tmptag; -+ - if ((arg->ui & TAGMASK) == selmon->tagset[selmon->seltags]) - return; - selmon->seltags ^= 1; /* toggle sel tagset */ -- if (arg->ui & TAGMASK) -+ if (arg->ui & TAGMASK) { - selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; -+ selmon->pertag->prevtag = selmon->pertag->curtag; -+ -+ if (arg->ui == ~0) -+ selmon->pertag->curtag = 0; -+ else { -+ for (i = 0; !(arg->ui & 1 << i); i++) ; -+ selmon->pertag->curtag = i + 1; -+ } -+ } else { -+ tmptag = selmon->pertag->prevtag; -+ selmon->pertag->prevtag = selmon->pertag->curtag; -+ selmon->pertag->curtag = tmptag; -+ } -+ -+ selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag]; -+ selmon->mfact = selmon->pertag->mfacts[selmon->pertag->curtag]; -+ selmon->sellt = selmon->pertag->sellts[selmon->pertag->curtag]; -+ selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt]; -+ selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1]; -+ -+ if (selmon->showbar != selmon->pertag->showbars[selmon->pertag->curtag]) -+ togglebar(NULL); -+ - focus(NULL); - arrange(selmon); - } diff --git a/user/.config/suckless/dwm/patches/dwm-restartsig-20180523-6.2.diff b/user/.config/suckless/dwm/patches/dwm-restartsig-20180523-6.2.diff deleted file mode 100644 index f1f86808e..000000000 --- a/user/.config/suckless/dwm/patches/dwm-restartsig-20180523-6.2.diff +++ /dev/null @@ -1,139 +0,0 @@ -From 2991f37f0aaf44b9f9b11e7893ff0af8eb88f649 Mon Sep 17 00:00:00 2001 -From: Christopher Drelich -Date: Wed, 23 May 2018 22:50:38 -0400 -Subject: [PATCH] Modifies quit to handle restarts and adds SIGHUP and SIGTERM - handlers. - -Modified quit() to restart if it receives arg .i = 1 -MOD+CTRL+SHIFT+Q was added to confid.def.h to do just that. - -Signal handlers were handled for SIGHUP and SIGTERM. -If dwm receives these signals it calls quit() with -arg .i = to 1 or 0, respectively. - -To restart dwm: -MOD+CTRL+SHIFT+Q -or -kill -HUP dwmpid - -To quit dwm cleanly: -MOD+SHIFT+Q -or -kill -TERM dwmpid ---- - config.def.h | 1 + - dwm.1 | 10 ++++++++++ - dwm.c | 22 ++++++++++++++++++++++ - 3 files changed, 33 insertions(+) - -diff --git a/config.def.h b/config.def.h -index a9ac303..e559429 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -94,6 +94,7 @@ static Key keys[] = { - TAGKEYS( XK_8, 7) - TAGKEYS( XK_9, 8) - { MODKEY|ShiftMask, XK_q, quit, {0} }, -+ { MODKEY|ControlMask|ShiftMask, XK_q, quit, {1} }, - }; - - /* button definitions */ -diff --git a/dwm.1 b/dwm.1 -index 13b3729..36a331c 100644 ---- a/dwm.1 -+++ b/dwm.1 -@@ -142,6 +142,9 @@ Add/remove all windows with nth tag to/from the view. - .TP - .B Mod1\-Shift\-q - Quit dwm. -+.TP -+.B Mod1\-Control\-Shift\-q -+Restart dwm. - .SS Mouse commands - .TP - .B Mod1\-Button1 -@@ -155,6 +158,13 @@ Resize focused window while dragging. Tiled windows will be toggled to the float - .SH CUSTOMIZATION - dwm is customized by creating a custom config.h and (re)compiling the source - code. This keeps it fast, secure and simple. -+.SH SIGNALS -+.TP -+.B SIGHUP - 1 -+Restart the dwm process. -+.TP -+.B SIGTERM - 15 -+Cleanly terminate the dwm process. - .SH SEE ALSO - .BR dmenu (1), - .BR st (1) -diff --git a/dwm.c b/dwm.c -index bb95e26..286eecd 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -205,6 +205,8 @@ static void setup(void); - static void seturgent(Client *c, int urg); - static void showhide(Client *c); - static void sigchld(int unused); -+static void sighup(int unused); -+static void sigterm(int unused); - static void spawn(const Arg *arg); - static void tag(const Arg *arg); - static void tagmon(const Arg *arg); -@@ -260,6 +262,7 @@ static void (*handler[LASTEvent]) (XEvent *) = { - [UnmapNotify] = unmapnotify - }; - static Atom wmatom[WMLast], netatom[NetLast]; -+static int restart = 0; - static int running = 1; - static Cur *cursor[CurLast]; - static Clr **scheme; -@@ -1248,6 +1251,7 @@ propertynotify(XEvent *e) - void - quit(const Arg *arg) - { -+ if(arg->i) restart = 1; - running = 0; - } - -@@ -1536,6 +1540,9 @@ setup(void) - /* clean up any zombies immediately */ - sigchld(0); - -+ signal(SIGHUP, sighup); -+ signal(SIGTERM, sigterm); -+ - /* init screen */ - screen = DefaultScreen(dpy); - sw = DisplayWidth(dpy, screen); -@@ -1637,6 +1644,20 @@ sigchld(int unused) - } - - void -+sighup(int unused) -+{ -+ Arg a = {.i = 1}; -+ quit(&a); -+} -+ -+void -+sigterm(int unused) -+{ -+ Arg a = {.i = 0}; -+ quit(&a); -+} -+ -+void - spawn(const Arg *arg) - { - if (arg->v == dmenucmd) -@@ -2139,6 +2160,7 @@ main(int argc, char *argv[]) - setup(); - scan(); - run(); -+ if(restart) execvp(argv[0], argv); - cleanup(); - XCloseDisplay(dpy); - return EXIT_SUCCESS; --- -2.7.4 - diff --git a/user/.config/suckless/dwm/patches/dwm-scratchpads-20200414-728d397b.diff b/user/.config/suckless/dwm/patches/dwm-scratchpads-20200414-728d397b.diff deleted file mode 100644 index d3e90c01a..000000000 --- a/user/.config/suckless/dwm/patches/dwm-scratchpads-20200414-728d397b.diff +++ /dev/null @@ -1,199 +0,0 @@ -From 728d397b21982af88737277fd9d6939a7b558786 Mon Sep 17 00:00:00 2001 -From: Christian Tenllado -Date: Tue, 14 Apr 2020 23:31:15 +0200 -Subject: [PATCH] Multiple scratchpads - -This patch enables multiple scratchpads, each with one asigned window. -This enables the same scratchpad workflow that you have in i3. - -Scratchpads are implemented as special tags, whose mask does not -apply to new spawned windows. To assign a window to a scratchpad you -have to set up a rule, as you do with regular tags. - -Windows tagged with scratchpad tags can be set floating or not in the -rules array. Most users would probably want them floating (i3 style), -but having them tiled does also perfectly work and might fit better the -DWM approach. In case they are set floating, the patch moves them to the -center of the screen whenever they are shown. The patch can easily be -modified to make this last feature configurable in the rules array (see -the center patch). - -The togglescratch function, borrowed from the previous scratchpad patch -and slightly modified, can be used to spawn a registered scratchpad -process or toggle its view. This function looks for a window tagged with -the selected scratchpad tag. If it is found its view is toggled. If it is -not found the corresponding registered command is spawned. The -config.def.h shows three examples of its use to spawn a terminal in the -first scratchpad tag, a second terminal running ranger on the second -scratchpad tag and the keepassxc application to manage passwords on a -third scratchpad tag. - -If you prefer to spawn your scratchpad applications from the startup -script, you might opt for binding keys to toggleview instead, as -scratchpads are just special tags (you may even extend the TAGKEYS macro -to generalize the key bindings). ---- - config.def.h | 28 ++++++++++++++++++++++++---- - dwm.c | 43 +++++++++++++++++++++++++++++++++++++++++-- - 2 files changed, 65 insertions(+), 6 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 1c0b587..06265e1 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -18,17 +18,33 @@ static const char *colors[][3] = { - [SchemeSel] = { col_gray4, col_cyan, col_cyan }, - }; - -+typedef struct { -+ const char *name; -+ const void *cmd; -+} Sp; -+const char *spcmd1[] = {"st", "-n", "spterm", "-g", "120x34", NULL }; -+const char *spcmd2[] = {"st", "-n", "spfm", "-g", "144x41", "-e", "ranger", NULL }; -+const char *spcmd3[] = {"keepassxc", NULL }; -+static Sp scratchpads[] = { -+ /* name cmd */ -+ {"spterm", spcmd1}, -+ {"spranger", spcmd2}, -+ {"keepassxc", spcmd3}, -+}; -+ - /* tagging */ - static const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -- - static const Rule rules[] = { - /* xprop(1): - * WM_CLASS(STRING) = instance, class - * WM_NAME(STRING) = title - */ - /* class instance title tags mask isfloating monitor */ -- { "Gimp", NULL, NULL, 0, 1, -1 }, -- { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, -+ { "Gimp", NULL, NULL, 0, 1, -1 }, -+ { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, -+ { NULL, "spterm", NULL, SPTAG(0), 1, -1 }, -+ { NULL, "spfm", NULL, SPTAG(1), 1, -1 }, -+ { NULL, "keepassxc", NULL, SPTAG(2), 0, -1 }, - }; - - /* layout(s) */ -@@ -59,6 +75,7 @@ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() - static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; - static const char *termcmd[] = { "st", NULL }; - -+ - static Key keys[] = { - /* modifier key function argument */ - { MODKEY, XK_p, spawn, {.v = dmenucmd } }, -@@ -84,6 +101,9 @@ static Key keys[] = { - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } }, -+ { MODKEY, XK_y, togglescratch, {.ui = 0 } }, -+ { MODKEY, XK_u, togglescratch, {.ui = 1 } }, -+ { MODKEY, XK_x, togglescratch, {.ui = 2 } }, - TAGKEYS( XK_1, 0) - TAGKEYS( XK_2, 1) - TAGKEYS( XK_3, 2) -@@ -106,7 +126,7 @@ static Button buttons[] = { - { ClkStatusText, 0, Button2, spawn, {.v = termcmd } }, - { ClkClientWin, MODKEY, Button1, movemouse, {0} }, - { ClkClientWin, MODKEY, Button2, togglefloating, {0} }, -- { ClkClientWin, MODKEY, Button3, resizemouse, {0} }, -+ { ClkClientWin, MODKEY, Button1, resizemouse, {0} }, - { ClkTagBar, 0, Button1, view, {0} }, - { ClkTagBar, 0, Button3, toggleview, {0} }, - { ClkTagBar, MODKEY, Button1, tag, {0} }, -diff --git a/dwm.c b/dwm.c -index 4465af1..646aa1a 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -54,7 +54,10 @@ - #define MOUSEMASK (BUTTONMASK|PointerMotionMask) - #define WIDTH(X) ((X)->w + 2 * (X)->bw) - #define HEIGHT(X) ((X)->h + 2 * (X)->bw) --#define TAGMASK ((1 << LENGTH(tags)) - 1) -+#define NUMTAGS (LENGTH(tags) + LENGTH(scratchpads)) -+#define TAGMASK ((1 << NUMTAGS) - 1) -+#define SPTAG(i) ((1 << LENGTH(tags)) << (i)) -+#define SPTAGMASK (((1 << LENGTH(scratchpads))-1) << LENGTH(tags)) - #define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) - - /* enums */ -@@ -211,6 +214,7 @@ static void tagmon(const Arg *arg); - static void tile(Monitor *); - static void togglebar(const Arg *arg); - static void togglefloating(const Arg *arg); -+static void togglescratch(const Arg *arg); - static void toggletag(const Arg *arg); - static void toggleview(const Arg *arg); - static void unfocus(Client *c, int setfocus); -@@ -299,6 +303,11 @@ applyrules(Client *c) - { - c->isfloating = r->isfloating; - c->tags |= r->tags; -+ if ((r->tags & SPTAGMASK) && r->isfloating) { -+ c->x = c->mon->wx + (c->mon->ww / 2 - WIDTH(c) / 2); -+ c->y = c->mon->wy + (c->mon->wh / 2 - HEIGHT(c) / 2); -+ } -+ - for (m = mons; m && m->num != r->monitor; m = m->next); - if (m) - c->mon = m; -@@ -308,7 +317,7 @@ applyrules(Client *c) - XFree(ch.res_class); - if (ch.res_name) - XFree(ch.res_name); -- c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : c->mon->tagset[c->mon->seltags]; -+ c->tags = c->tags & TAGMASK ? c->tags & TAGMASK : (c->mon->tagset[c->mon->seltags] & ~SPTAGMASK); - } - - int -@@ -1616,6 +1625,10 @@ showhide(Client *c) - if (!c) - return; - if (ISVISIBLE(c)) { -+ if ((c->tags & SPTAGMASK) && c->isfloating) { -+ c->x = c->mon->wx + (c->mon->ww / 2 - WIDTH(c) / 2); -+ c->y = c->mon->wy + (c->mon->wh / 2 - HEIGHT(c) / 2); -+ } - /* show clients top down */ - XMoveWindow(dpy, c->win, c->x, c->y); - if ((!c->mon->lt[c->mon->sellt]->arrange || c->isfloating) && !c->isfullscreen) -@@ -1719,6 +1732,32 @@ togglefloating(const Arg *arg) - arrange(selmon); - } - -+void -+togglescratch(const Arg *arg) -+{ -+ Client *c; -+ unsigned int found = 0; -+ unsigned int scratchtag = SPTAG(arg->ui); -+ Arg sparg = {.v = scratchpads[arg->ui].cmd}; -+ -+ for (c = selmon->clients; c && !(found = c->tags & scratchtag); c = c->next); -+ if (found) { -+ unsigned int newtagset = selmon->tagset[selmon->seltags] ^ scratchtag; -+ if (newtagset) { -+ selmon->tagset[selmon->seltags] = newtagset; -+ focus(NULL); -+ arrange(selmon); -+ } -+ if (ISVISIBLE(c)) { -+ focus(c); -+ restack(selmon); -+ } -+ } else { -+ selmon->tagset[selmon->seltags] |= scratchtag; -+ spawn(&sparg); -+ } -+} -+ - void - toggletag(const Arg *arg) - { --- -2.20.1 - diff --git a/user/.config/suckless/dwm/patches/dwm-statuspadding-6.3.diff b/user/.config/suckless/dwm/patches/dwm-statuspadding-6.3.diff deleted file mode 100644 index fa6780f6f..000000000 --- a/user/.config/suckless/dwm/patches/dwm-statuspadding-6.3.diff +++ /dev/null @@ -1,62 +0,0 @@ -From d6dd69c26f4272f87672ae54f69dc0d48650d34b Mon Sep 17 00:00:00 2001 -From: taep96 <64481039+taep96@users.noreply.github.com> -Date: Mon, 7 Feb 2022 19:09:45 +0100 -Subject: [PATCH] Fixed | Replaces magic numbers in statusbar with configurable - variables. - -horizpadbar for horizontal statusbar padding -vertpadbar for vertical statusbar padding - -StatusText now has both left and right padding, -as well as the vertical padding that all of the statusbar shares. - -Other than the addition of left padding to StatusText, appearance -of the statusbar is identical to pre-patch when using the defaults -in config.def.h ---- - config.def.h | 2 ++ - dwm.c | 8 ++++---- - 2 files changed, 6 insertions(+), 4 deletions(-) - -diff --git a/config.def.h b/config.def.h -index a2ac963..6cb845c 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -5,6 +5,8 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ - static const unsigned int snap = 32; /* snap pixel */ - static const int showbar = 1; /* 0 means no bar */ - static const int topbar = 1; /* 0 means bottom bar */ -+static const int horizpadbar = 2; /* horizontal padding for statusbar */ -+static const int vertpadbar = 0; /* vertical padding for statusbar */ - static const char *fonts[] = { "monospace:size=10" }; - static const char dmenufont[] = "monospace:size=10"; - static const char col_gray1[] = "#222222"; -diff --git a/dwm.c b/dwm.c -index a96f33c..a1b8c95 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -708,8 +708,8 @@ drawbar(Monitor *m) - /* draw status first so it can be overdrawn by tags later */ - if (m == selmon) { /* status is only drawn on selected monitor */ - drw_setscheme(drw, scheme[SchemeNorm]); -- tw = TEXTW(stext) - lrpad + 2; /* 2px right padding */ -- drw_text(drw, m->ww - tw, 0, tw, bh, 0, stext, 0); -+ tw = TEXTW(stext); -+ drw_text(drw, m->ww - tw, 0, tw, bh, lrpad / 2, stext, 0); - } - - for (c = m->clients; c; c = c->next) { -@@ -1548,8 +1548,8 @@ setup(void) - drw = drw_create(dpy, screen, root, sw, sh); - if (!drw_fontset_create(drw, fonts, LENGTH(fonts))) - die("no fonts could be loaded."); -- lrpad = drw->fonts->h; -- bh = drw->fonts->h + 2; -+ lrpad = drw->fonts->h + horizpadbar; -+ bh = drw->fonts->h + vertpadbar; - updategeom(); - /* init atoms */ - utf8string = XInternAtom(dpy, "UTF8_STRING", False); --- -2.35.1 - diff --git a/user/.config/suckless/dwm/patches/dwm-warp-6.2.diff b/user/.config/suckless/dwm/patches/dwm-warp-6.2.diff deleted file mode 100644 index 813c41d6d..000000000 --- a/user/.config/suckless/dwm/patches/dwm-warp-6.2.diff +++ /dev/null @@ -1,58 +0,0 @@ -diff --git a/dwm.c b/dwm.c -index 4465af1..bf74f60 100644 ---- a/dwm.c -+++ b/dwm.c -@@ -227,6 +227,7 @@ static void updatetitle(Client *c); - static void updatewindowtype(Client *c); - static void updatewmhints(Client *c); - static void view(const Arg *arg); -+static void warp(const Client *c); - static Client *wintoclient(Window w); - static Monitor *wintomon(Window w); - static int xerror(Display *dpy, XErrorEvent *ee); -@@ -827,6 +828,7 @@ focusmon(const Arg *arg) - unfocus(selmon->sel, 0); - selmon = m; - focus(NULL); -+ warp(selmon->sel); - } - - void -@@ -1367,6 +1369,8 @@ restack(Monitor *m) - } - XSync(dpy, False); - while (XCheckMaskEvent(dpy, EnterWindowMask, &ev)); -+ if (m == selmon && (m->tagset[m->seltags] & m->sel->tags) && selmon->lt[selmon->sellt] != &layouts[2]) -+ warp(m->sel); - } - - void -@@ -2044,6 +2048,28 @@ view(const Arg *arg) - arrange(selmon); - } - -+void -+warp(const Client *c) -+{ -+ int x, y; -+ -+ if (!c) { -+ XWarpPointer(dpy, None, root, 0, 0, 0, 0, selmon->wx + selmon->ww/2, selmon->wy + selmon->wh/2); -+ return; -+ } -+ -+ if (!getrootptr(&x, &y) || -+ (x > c->x - c->bw && -+ y > c->y - c->bw && -+ x < c->x + c->w + c->bw*2 && -+ y < c->y + c->h + c->bw*2) || -+ (y > c->mon->by && y < c->mon->by + bh) || -+ (c->mon->topbar && !y)) -+ return; -+ -+ XWarpPointer(dpy, None, c->win, 0, 0, 0, 0, c->w / 2, c->h / 2); -+} -+ - Client * - wintoclient(Window w) - { diff --git a/user/.config/suckless/dwm/tcl.c b/user/.config/suckless/dwm/tcl.c deleted file mode 100644 index 4c94914f7..000000000 --- a/user/.config/suckless/dwm/tcl.c +++ /dev/null @@ -1,74 +0,0 @@ -void -tcl(Monitor * m) -{ - int x, y, h, w, mw, sw, bdw; - unsigned int i, n; - Client * c; - - for (n = 0, c = nexttiled(m->clients); c; - c = nexttiled(c->next), n++); - - if (n == 0) - return; - - c = nexttiled(m->clients); - - mw = m->mfact * m->ww; - sw = (m->ww - mw) / 2; - bdw = (2 * c->bw); - resize(c, - n < 3 ? m->wx : m->wx + sw, - m->wy, - n == 1 ? m->ww - bdw : mw - bdw, - m->wh - bdw, - False); - - if (--n == 0) - return; - - w = (m->ww - mw) / ((n > 1) + 1); - c = nexttiled(c->next); - - if (n > 1) - { - x = m->wx + ((n > 1) ? mw + sw : mw); - y = m->wy; - h = m->wh / (n / 2); - - if (h < bh) - h = m->wh; - - for (i = 0; c && i < n / 2; c = nexttiled(c->next), i++) - { - resize(c, - x, - y, - w - bdw, - (i + 1 == n / 2) ? m->wy + m->wh - y - bdw : h - bdw, - False); - - if (h != m->wh) - y = c->y + HEIGHT(c); - } - } - - x = (n + 1 / 2) == 1 ? mw : m->wx; - y = m->wy; - h = m->wh / ((n + 1) / 2); - - if (h < bh) - h = m->wh; - - for (i = 0; c; c = nexttiled(c->next), i++) - { - resize(c, - x, - y, - (i + 1 == (n + 1) / 2) ? w - bdw : w - bdw, - (i + 1 == (n + 1) / 2) ? m->wy + m->wh - y - bdw : h - bdw, - False); - - if (h != m->wh) - y = c->y + HEIGHT(c); - } -} diff --git a/user/.config/suckless/dwm/transient.c b/user/.config/suckless/dwm/transient.c deleted file mode 100644 index 040adb5b3..000000000 --- a/user/.config/suckless/dwm/transient.c +++ /dev/null @@ -1,42 +0,0 @@ -/* cc transient.c -o transient -lX11 */ - -#include -#include -#include -#include - -int main(void) { - Display *d; - Window r, f, t = None; - XSizeHints h; - XEvent e; - - d = XOpenDisplay(NULL); - if (!d) - exit(1); - r = DefaultRootWindow(d); - - f = XCreateSimpleWindow(d, r, 100, 100, 400, 400, 0, 0, 0); - h.min_width = h.max_width = h.min_height = h.max_height = 400; - h.flags = PMinSize | PMaxSize; - XSetWMNormalHints(d, f, &h); - XStoreName(d, f, "floating"); - XMapWindow(d, f); - - XSelectInput(d, f, ExposureMask); - while (1) { - XNextEvent(d, &e); - - if (t == None) { - sleep(5); - t = XCreateSimpleWindow(d, r, 50, 50, 100, 100, 0, 0, 0); - XSetTransientForHint(d, t, f); - XStoreName(d, t, "transient"); - XMapWindow(d, t); - XSelectInput(d, t, ExposureMask); - } - } - - XCloseDisplay(d); - exit(0); -} diff --git a/user/.config/suckless/dwm/util.c b/user/.config/suckless/dwm/util.c deleted file mode 100644 index 96b82c980..000000000 --- a/user/.config/suckless/dwm/util.c +++ /dev/null @@ -1,36 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include -#include -#include -#include - -#include "util.h" - -void -die(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - - if (fmt[0] && fmt[strlen(fmt)-1] == ':') { - fputc(' ', stderr); - perror(NULL); - } else { - fputc('\n', stderr); - } - - exit(1); -} - -void * -ecalloc(size_t nmemb, size_t size) -{ - void *p; - - if (!(p = calloc(nmemb, size))) - die("calloc:"); - return p; -} diff --git a/user/.config/suckless/dwm/util.h b/user/.config/suckless/dwm/util.h deleted file mode 100644 index f633b5173..000000000 --- a/user/.config/suckless/dwm/util.h +++ /dev/null @@ -1,8 +0,0 @@ -/* See LICENSE file for copyright and license details. */ - -#define MAX(A, B) ((A) > (B) ? (A) : (B)) -#define MIN(A, B) ((A) < (B) ? (A) : (B)) -#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) - -void die(const char *fmt, ...); -void *ecalloc(size_t nmemb, size_t size); diff --git a/user/.config/suckless/dwmblocks/Makefile b/user/.config/suckless/dwmblocks/Makefile deleted file mode 100644 index c9911b0eb..000000000 --- a/user/.config/suckless/dwmblocks/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -PREFIX ?= /usr/local -CC ?= cc - -output: dwmblocks.c blocks.def.h blocks.h - ${CC} `pkg-config --cflags x11 --libs x11` dwmblocks.c -o dwmblocks -blocks.h: - cp -v blocks.def.h $@ -clean: - rm -fv *.o *.gch dwmblocks -install: output - mkdir -pv $(DESTDIR)$(PREFIX)/bin - install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks -uninstall: - rm -fv $(DESTDIR)$(PREFIX)/bin/dwmblocks diff --git a/user/.config/suckless/dwmblocks/blocks.def.h b/user/.config/suckless/dwmblocks/blocks.def.h deleted file mode 100644 index aac6a3007..000000000 --- a/user/.config/suckless/dwmblocks/blocks.def.h +++ /dev/null @@ -1,22 +0,0 @@ -//Modify this file to change what commands output to your statusbar, and recompile using the make command. -static const Block blocks[] = { - /*Command*/ /*Update Interval*/ /*Update Signal*/ -// {"", "$HOME/.config/suckless/dwmblocks/block_cpu", 1, 1}, - -// {"", "$HOME/.config/suckless/dwmblocks/block_memory", 1, 1}, - - {"", "$HOME/.config/suckless/dwmblocks/scripts/block_layout", 1, 0}, - - {"", "$HOME/.config/suckless/dwmblocks/scripts/block_battery", 1, 0}, - - {"", "$HOME/.config/suckless/dwmblocks/scripts/block_brightness", 1, 0}, - - {"", "$HOME/.config/suckless/dwmblocks/scripts/block_volume", 1, 0}, - - {"", "$HOME/.config/suckless/dwmblocks/scripts/block_clock", 1, 0}, - - {"", "$HOME/.config/suckless/dwmblocks/scripts/block_wifi", 1, 0}, -}; - -//sets delimeter between status commands. NULL character ('\0') means no delimeter. -static char delim = '|'; diff --git a/user/.config/suckless/dwmblocks/dwmblocks.c b/user/.config/suckless/dwmblocks/dwmblocks.c deleted file mode 100644 index 88bdfb0b0..000000000 --- a/user/.config/suckless/dwmblocks/dwmblocks.c +++ /dev/null @@ -1,175 +0,0 @@ -#include -#include -#include -#include -#include -#include -#define LENGTH(X) (sizeof(X) / sizeof (X[0])) -#define CMDLENGTH 50 - -typedef struct { - char* icon; - char* command; - unsigned int interval; - unsigned int signal; -} Block; -void sighandler(int num); -void replace(char *str, char old, char new); -void getcmds(int time); -#ifndef __OpenBSD__ -void getsigcmds(int signal); -void setupsignals(); -void sighandler(int signum); -#endif -int getstatus(char *str, char *last); -void setroot(); -void statusloop(); -void termhandler(int signum); - - -#include "blocks.h" - -static Display *dpy; -static int screen; -static Window root; -static char statusbar[LENGTH(blocks)][CMDLENGTH] = {0}; -static char statusstr[2][256]; -static int statusContinue = 1; -static void (*writestatus) () = setroot; - -void replace(char *str, char old, char new) -{ - int N = strlen(str); - for(int i = 0; i < N; i++) - if(str[i] == old) - str[i] = new; -} - -//opens process *cmd and stores output in *output -void getcmd(const Block *block, char *output) -{ - strcpy(output, block->icon); - char *cmd = block->command; - FILE *cmdf = popen(cmd,"r"); - if (!cmdf) - return; - char c; - int i = strlen(block->icon); - fgets(output+i, CMDLENGTH-i, cmdf); - i = strlen(output); - if (delim != '\0' && --i) - output[i++] = delim; - output[i++] = '\0'; - pclose(cmdf); -} - -void getcmds(int time) -{ - const Block* current; - for(int i = 0; i < LENGTH(blocks); i++) - { - current = blocks + i; - if ((current->interval != 0 && time % current->interval == 0) || time == -1) - getcmd(current,statusbar[i]); - } -} - -#ifndef __OpenBSD__ -void getsigcmds(int signal) -{ - const Block *current; - for (int i = 0; i < LENGTH(blocks); i++) - { - current = blocks + i; - if (current->signal == signal) - getcmd(current,statusbar[i]); - } -} - -void setupsignals() -{ - for(int i = 0; i < LENGTH(blocks); i++) - { - if (blocks[i].signal > 0) - signal(SIGRTMIN+blocks[i].signal, sighandler); - } - -} -#endif - -int getstatus(char *str, char *last) -{ - strcpy(last, str); - str[0] = '\0'; - for(int i = 0; i < LENGTH(blocks); i++) - strcat(str, statusbar[i]); - str[strlen(str)-1] = '\0'; - return strcmp(str, last);//0 if they are the same -} - -void setroot() -{ - if (!getstatus(statusstr[0], statusstr[1]))//Only set root if text has changed. - return; - Display *d = XOpenDisplay(NULL); - if (d) { - dpy = d; - } - screen = DefaultScreen(dpy); - root = RootWindow(dpy, screen); - XStoreName(dpy, root, statusstr[0]); - XCloseDisplay(dpy); -} - -void pstdout() -{ - if (!getstatus(statusstr[0], statusstr[1]))//Only write out if text has changed. - return; - printf("%s\n",statusstr[0]); - fflush(stdout); -} - - -void statusloop() -{ -#ifndef __OpenBSD__ - setupsignals(); -#endif - int i = 0; - getcmds(-1); - while(statusContinue) - { - getcmds(i); - writestatus(); - sleep(1.0); - i++; - } -} - -#ifndef __OpenBSD__ -void sighandler(int signum) -{ - getsigcmds(signum-SIGRTMIN); - writestatus(); -} -#endif - -void termhandler(int signum) -{ - statusContinue = 0; - exit(0); -} - -int main(int argc, char** argv) -{ - for(int i = 0; i < argc; i++) - { - if (!strcmp("-d",argv[i])) - delim = argv[++i][0]; - else if(!strcmp("-p",argv[i])) - writestatus = pstdout; - } - signal(SIGTERM, termhandler); - signal(SIGINT, termhandler); - statusloop(); -} diff --git a/user/.config/suckless/dwmblocks/scripts/block_battery b/user/.config/suckless/dwmblocks/scripts/block_battery deleted file mode 100755 index d0c53e5f3..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_battery +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -# Loop through all attached batteries and format the info -currntpwr=$(powerprofilesctl get) -if [ "${currntpwr}" = "performance" ]; then - pwr="perf" -elif [ "${currntpwr}" = "balanced" ]; then - pwr="balc" -elif [ "${currntpwr}" = "power-saver" ]; then - pwr="pwrs" -fi -battery="/sys/class/power_supply/BAT0" -capacity=$(cat "$battery"/capacity) -echo -e " bat: $capacity% - $pwr " diff --git a/user/.config/suckless/dwmblocks/scripts/block_brightness b/user/.config/suckless/dwmblocks/scripts/block_brightness deleted file mode 100755 index 35404cf8c..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_brightness +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -brt=$(xbacklight -get) -echo " bri: ${brt%.*}% " diff --git a/user/.config/suckless/dwmblocks/scripts/block_clock b/user/.config/suckless/dwmblocks/scripts/block_clock deleted file mode 100755 index a5d15126c..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_clock +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -date="$(date +%d/%m/%Y)" -clock="$(date +%R:%S)" -echo " dte: $date - $clock " diff --git a/user/.config/suckless/dwmblocks/scripts/block_cpu b/user/.config/suckless/dwmblocks/scripts/block_cpu deleted file mode 100755 index 3815c72ad..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_cpu +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -usage=$(top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}') -echo -e "CPU: [${usage%.*}%] " diff --git a/user/.config/suckless/dwmblocks/scripts/block_layout b/user/.config/suckless/dwmblocks/scripts/block_layout deleted file mode 100755 index fa722e116..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_layout +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -layout=$(setxkbmap -query | grep -oP 'layout:\s*\K\w+') -echo "key: $layout " diff --git a/user/.config/suckless/dwmblocks/scripts/block_memory b/user/.config/suckless/dwmblocks/scripts/block_memory deleted file mode 100755 index 9c899f6d8..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_memory +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -mem="$(free -h | awk '/^Mem:/ {print $3 "/" $2}')" -echo -e " RAM: [$mem] " diff --git a/user/.config/suckless/dwmblocks/scripts/block_volume b/user/.config/suckless/dwmblocks/scripts/block_volume deleted file mode 100755 index 8dc11d50d..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_volume +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -# Prints the current volume or 🔇 if muted. -[ $(pamixer --get-mute) = true ] && echo " vol: mut " && exit -vol="$(pamixer --get-volume)" -echo " vol: $vol% " diff --git a/user/.config/suckless/dwmblocks/scripts/block_wifi b/user/.config/suckless/dwmblocks/scripts/block_wifi deleted file mode 100755 index c4328b459..000000000 --- a/user/.config/suckless/dwmblocks/scripts/block_wifi +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1) -currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1) - -if [ "$constate" = "disconnected" ]; then - echo " wfi: disc" -elif [ "$constate" = "connected" ]; then - echo " wfi: $currentwfi" -else - echo " wfi: disc" -fi diff --git a/user/.config/suckless/herbe/.gitignore b/user/.config/suckless/herbe/.gitignore deleted file mode 100644 index fba990b27..000000000 --- a/user/.config/suckless/herbe/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -herbe -config.h -.ccls-cache diff --git a/user/.config/suckless/herbe/LICENSE b/user/.config/suckless/herbe/LICENSE deleted file mode 100644 index 7b85eda1b..000000000 --- a/user/.config/suckless/herbe/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Samuel Dudík - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/user/.config/suckless/herbe/Makefile b/user/.config/suckless/herbe/Makefile deleted file mode 100644 index 473523054..000000000 --- a/user/.config/suckless/herbe/Makefile +++ /dev/null @@ -1,25 +0,0 @@ -CFLAGS = -Wall -Wextra -pedantic -lX11 -lXft -I/usr/include/freetype2 -pthread - -PREFIX ?= /usr/local -CC ?= cc - -all: herbe - -config.h: config.def.h - cp config.def.h config.h - -herbe: herbe.c config.h - $(CC) herbe.c $(CFLAGS) -o herbe - -install: herbe - mkdir -p ${DESTDIR}${PREFIX}/bin - cp -f herbe ${DESTDIR}${PREFIX}/bin - cp -f notify-send ${DESTDIR}${PREFIX}/bin - -uninstall: - rm -f ${DESTDIR}${PREFIX}/bin/herbe - -clean: - rm -f herbe - -.PHONY: all install uninstall clean diff --git a/user/.config/suckless/herbe/README.md b/user/.config/suckless/herbe/README.md deleted file mode 100644 index 25eb20c8c..000000000 --- a/user/.config/suckless/herbe/README.md +++ /dev/null @@ -1,139 +0,0 @@ -# 🌱 herbe -> Daemon-less notifications without D-Bus. Minimal and lightweight. - -

- -

- -## Features -* Under 200 lines of code -* Doesn't run in the background, just displays the notification and exits -* No external dependencies except Xlib and Xft -* Configurable through `config.h` or Xresources ([using this patch](https://github.com/dudik/herbe/pull/11)) -* [Actions support](#actions) -* Extensible through [patches](https://github.com/dudik/herbe/pulls?q=is%3Aopen+is%3Apr+label%3Apatch) - -## Table of contents - -* [Usage](#usage) - * [Patches](#patches) - * [Dismiss a notification](#dismiss-a-notification) - * [Actions](#actions) - * [Newlines](#newlines) - * [Multiple notifications](#multiple-notifications) - * [Notifications don't show up](#notifications-dont-show-up) -* [Installation](#installation) - * [Packages](#packages) - * [Dependencies](#dependencies) - * [Build](#build) -* [Configuration](#configuration) -* [Contribute](#contribute) - -## Usage - -### Patches -[List of available patches](https://github.com/dudik/herbe/pulls?q=is%3Aopen+is%3Apr+label%3Apatch) - -To create a new patch you'll have to open a pull request with your changes. Append `.diff` to the pull request URL to get a downloadable diff file. Don't forget to prefix the title with `patch:` and to apply the `patch` label to it. For inspiration, look at [my Xresources patch](https://github.com/dudik/herbe/pull/11). Thank you. - -_Note: This patching method was heavily inspired by [dylan's sowm](https://github.com/dylanaraps/sowm)._ - -### Dismiss a notification -A notification can be dismissed either by clicking on it with `DISMISS_BUTTON` (set in config.h, defaults to left mouse button) or sending a `SIGUSR1` signal to it: -```shell -$ pkill -SIGUSR1 herbe -``` -Dismissed notifications return exit code 2. - -### Actions -Action is a piece of shell code that runs when a notification gets accepted. Accepting a notification is the same as dismissing it, but you have to use either `ACTION_BUTTON` (defaults to right mouse button) or the `SIGUSR2` signal. -An accepted notification always returns exit code 0. To specify an action: -```shell -$ herbe "Notification body" && echo "This is an action" -``` -Where everything after `&&` is the action and will get executed after the notification gets accepted. - -### Newlines -Every command line argument gets printed on a separate line by default e.g.: -```shell -$ herbe "First line" "Second line" "Third line" ... -``` -You can also use `\n` e.g. in `bash`: -```shell -$ herbe $'First line\nSecond line\nThird line' -``` -But by default `herbe` prints `\n` literally: -```shell -$ herbe "First line\nStill the first line" -``` -Output of other programs will get printed correctly, just make sure to escape it (so you don't end up with every word on a separate line): -```shell -$ herbe "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" -``` - -### Multiple notifications -Notifications are put in a queue and shown one after another in order of creation (first in, first out). They don't overlap and each one is shown for its entire duration. - -### Notifications don't show up -Most likely a running notification got terminated forcefully (SIGKILL or any uncaught signal) which caused the semaphore not getting unlocked. First, kill any `herbe` instance that is stuck: -```shell -$ pkill -SIGKILL herbe -``` -Then just call `herbe` without any arguments: -```shell -$ herbe -``` -Notifications should now show up as expected. - -Don't ever send any signals to `herbe` except these: -```shell -# same as pkill -SIGTERM herbe, terminates every running herbe process -$ pkill herbe - -$ pkill -SIGUSR1 herbe -$ pkill -SIGUSR2 herbe -``` -And you should be fine. That's all you really need to interact with `herbe`. - -## Installation -### Packages -[![Packaging status](https://repology.org/badge/vertical-allrepos/herbe.svg)](https://repology.org/project/herbe/versions) - -[OpenBSD patch](https://github.com/dudik/herbe/pull/4) - -[FreeBSD patch](https://github.com/dudik/herbe/pull/16) - -[Wayland port](https://github.com/muevoid/Wayherb) by [muevoid](https://github.com/muevoid) - -**Only the [herbe-git AUR package](https://aur.archlinux.org/packages/herbe-git/) is maintained by me.** - -### Dependencies -* X11 (Xlib) -* Xft - -The names of packages are different depending on which distribution you use. -For example, if you use [Void Linux](https://voidlinux.org/) you will have to install these dependencies: -```shell -sudo xbps-install base-devel libX11-devel libXft-devel -``` - -### Build -```shell -git clone https://github.com/dudik/herbe -cd herbe -sudo make install -``` -`make install` requires root privileges because it copies the resulting binary to `/usr/local/bin`. This makes `herbe` accessible globally. - -You can also use `make clean` to remove the binary from the build folder, `sudo make uninstall` to remove the binary from `/usr/local/bin` or just `make` to build the binary locally. - -## Configuration -herbe is configured at compile-time by editing `config.h`. Every option should be self-explanatory. There is no `height` option because height is determined by font size and text padding. - -[Xresources patch](https://github.com/dudik/herbe/pull/11) - -## Contribute -If you want to report a bug or you have a feature request, feel free to [open an issue](https://github.com/dudik/herbe/issues). - -## Projects with herbe integration -- [qutebrowser](https://qutebrowser.org/) supports showing web notifications via herbe, via the `content.notifications.presenter` setting. diff --git a/user/.config/suckless/herbe/config.def.h b/user/.config/suckless/herbe/config.def.h deleted file mode 100644 index 94932d4fe..000000000 --- a/user/.config/suckless/herbe/config.def.h +++ /dev/null @@ -1,19 +0,0 @@ -static const char *background_color = "#1d2021"; -static const char *border_color = "#cc241d"; -static const char *font_color = "#fbf1c7"; -static const char *font_pattern = "mononoki Nerd Font Mono:size=10"; -static const unsigned line_spacing = 5; -static const unsigned int padding = 15; - -static const unsigned int width = 450; -static const unsigned int border_size = 2; -static const unsigned int pos_x = 30; -static const unsigned int pos_y = 60; - -enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; -enum corners corner = TOP_RIGHT; - -static const unsigned int duration = 5; /* in seconds */ - -#define DISMISS_BUTTON Button1 -#define ACTION_BUTTON Button3 diff --git a/user/.config/suckless/herbe/herbe.c b/user/.config/suckless/herbe/herbe.c deleted file mode 100644 index 8bfdbc172..000000000 --- a/user/.config/suckless/herbe/herbe.c +++ /dev/null @@ -1,233 +0,0 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "config.h" - -#define EXIT_ACTION 0 -#define EXIT_FAIL 1 -#define EXIT_DISMISS 2 - -Display *display; -Window window; -int exit_code = EXIT_DISMISS; - -static void die(const char *format, ...) -{ - va_list ap; - va_start(ap, format); - vfprintf(stderr, format, ap); - fprintf(stderr, "\n"); - va_end(ap); - exit(EXIT_FAIL); -} - -int get_max_len(char *string, XftFont *font, int max_text_width) -{ - int eol = strlen(string); - XGlyphInfo info; - XftTextExtentsUtf8(display, font, (FcChar8 *)string, eol, &info); - - if (info.width > max_text_width) - { - eol = max_text_width / font->max_advance_width; - info.width = 0; - - while (info.width < max_text_width) - { - eol++; - XftTextExtentsUtf8(display, font, (FcChar8 *)string, eol, &info); - } - - eol--; - } - - for (int i = 0; i < eol; i++) - if (string[i] == '\n') - { - string[i] = ' '; - return ++i; - } - - if (info.width <= max_text_width) - return eol; - - int temp = eol; - - while (string[eol] != ' ' && eol) - --eol; - - if (eol == 0) - return temp; - else - return ++eol; -} - -void expire(int sig) -{ - XEvent event; - event.type = ButtonPress; - event.xbutton.button = (sig == SIGUSR2) ? (ACTION_BUTTON) : (DISMISS_BUTTON); - XSendEvent(display, window, 0, 0, &event); - XFlush(display); -} - -void read_y_offset(unsigned int **offset, int *id) { - int shm_id = shmget(8432, sizeof(unsigned int), IPC_CREAT | 0660); - if (shm_id == -1) die("shmget failed"); - - *offset = (unsigned int *)shmat(shm_id, 0, 0); - if (*offset == (unsigned int *)-1) die("shmat failed\n"); - *id = shm_id; -} - -void free_y_offset(int id) { - shmctl(id, IPC_RMID, NULL); -} - -int main(int argc, char *argv[]) -{ - if (argc == 1) - die("Usage: %s body", argv[0]); - - struct sigaction act_expire, act_ignore; - - act_expire.sa_handler = expire; - act_expire.sa_flags = SA_RESTART; - sigemptyset(&act_expire.sa_mask); - - act_ignore.sa_handler = SIG_IGN; - act_ignore.sa_flags = 0; - sigemptyset(&act_ignore.sa_mask); - - sigaction(SIGALRM, &act_expire, 0); - sigaction(SIGTERM, &act_expire, 0); - sigaction(SIGINT, &act_expire, 0); - - sigaction(SIGUSR1, &act_ignore, 0); - sigaction(SIGUSR2, &act_ignore, 0); - - if (!(display = XOpenDisplay(0))) - die("Cannot open display"); - - int screen = DefaultScreen(display); - Visual *visual = DefaultVisual(display, screen); - Colormap colormap = DefaultColormap(display, screen); - - int screen_width = DisplayWidth(display, screen); - int screen_height = DisplayHeight(display, screen); - - XSetWindowAttributes attributes; - attributes.override_redirect = True; - XftColor color; - XftColorAllocName(display, visual, colormap, background_color, &color); - attributes.background_pixel = color.pixel; - XftColorAllocName(display, visual, colormap, border_color, &color); - attributes.border_pixel = color.pixel; - - int num_of_lines = 0; - int max_text_width = width - 2 * padding; - int lines_size = 5; - char **lines = malloc(lines_size * sizeof(char *)); - if (!lines) - die("malloc failed"); - - XftFont *font = XftFontOpenName(display, screen, font_pattern); - - for (int i = 1; i < argc; i++) - { - for (unsigned int eol = get_max_len(argv[i], font, max_text_width); eol; argv[i] += eol, num_of_lines++, eol = get_max_len(argv[i], font, max_text_width)) - { - if (lines_size <= num_of_lines) - { - lines = realloc(lines, (lines_size += 5) * sizeof(char *)); - if (!lines) - die("realloc failed"); - } - - lines[num_of_lines] = malloc((eol + 1) * sizeof(char)); - if (!lines[num_of_lines]) - die("malloc failed"); - - strncpy(lines[num_of_lines], argv[i], eol); - lines[num_of_lines][eol] = '\0'; - } - } - - int y_offset_id; - unsigned int *y_offset; - read_y_offset(&y_offset, &y_offset_id); - - unsigned int text_height = font->ascent - font->descent; - unsigned int height = (num_of_lines - 1) * line_spacing + num_of_lines * text_height + 2 * padding; - unsigned int x = pos_x; - unsigned int y = pos_y + *y_offset; - - unsigned int used_y_offset = (*y_offset) += height + padding; - - if (corner == TOP_RIGHT || corner == BOTTOM_RIGHT) - x = screen_width - width - border_size * 2 - x; - - if (corner == BOTTOM_LEFT || corner == BOTTOM_RIGHT) - y = screen_height - height - border_size * 2 - y; - - window = XCreateWindow(display, RootWindow(display, screen), x, y, width, height, border_size, DefaultDepth(display, screen), - CopyFromParent, visual, CWOverrideRedirect | CWBackPixel | CWBorderPixel, &attributes); - - XftDraw *draw = XftDrawCreate(display, window, visual, colormap); - XftColorAllocName(display, visual, colormap, font_color, &color); - - XSelectInput(display, window, ExposureMask | ButtonPress); - XMapWindow(display, window); - - sigaction(SIGUSR1, &act_expire, 0); - sigaction(SIGUSR2, &act_expire, 0); - - if (duration != 0) - alarm(duration); - - for (;;) - { - XEvent event; - XNextEvent(display, &event); - - if (event.type == Expose) - { - XClearWindow(display, window); - for (int i = 0; i < num_of_lines; i++) - XftDrawStringUtf8(draw, &color, font, padding, line_spacing * i + text_height * (i + 1) + padding, - (FcChar8 *)lines[i], strlen(lines[i])); - } - else if (event.type == ButtonPress) - { - if (event.xbutton.button == DISMISS_BUTTON) - break; - else if (event.xbutton.button == ACTION_BUTTON) - { - exit_code = EXIT_ACTION; - break; - } - } - } - - - for (int i = 0; i < num_of_lines; i++) - free(lines[i]); - - if (used_y_offset == *y_offset) free_y_offset(y_offset_id); - free(lines); - XftDrawDestroy(draw); - XftColorFree(display, visual, colormap, &color); - XftFontClose(display, font); - XCloseDisplay(display); - - return exit_code; -} diff --git a/user/.config/suckless/herbe/notify-send b/user/.config/suckless/herbe/notify-send deleted file mode 100755 index 3a3872b6d..000000000 --- a/user/.config/suckless/herbe/notify-send +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/sh -# Shell script to redirect notify-send calls to herbe. The purpose is to ignore -# options passed to notify-send. -# -# Option parser generated by getoptions -# URL: https://github.com/ko1nksm/getoptions -# LICENSE: Creative Commons Zero v1.0 Universal - -usage() { - printf '%s\n' "${0##*/}: notify-send replacement for herbe" "accepts but ignores all notify-send options." -} - -REST='' -parse() { - OPTIND=$(($#+1)) - while [ $# -gt 0 ] && OPTARG=; do - case $1 in - --?*=*) OPTARG=$1; shift - eval 'set -- "${OPTARG%%\=*}" "${OPTARG#*\=}"' ${1+'"$@"'} - ;; - -[utich]?*) OPTARG=$1; shift - eval 'set -- "${OPTARG%"${OPTARG#??}"}" "${OPTARG#??}"' ${1+'"$@"'} - ;; - -[!-]?*) OPTARG=$1; shift - eval 'set -- "${OPTARG%"${OPTARG#??}"}" "-${OPTARG#??}"' ${1+'"$@"'} - OPTARG= ;; - esac - case $1 in - -u | --urgency) - [ $# -le 1 ] && set -- "$1" required && break - OPTARG=$2 - _=$OPTARG - shift ;; - -t | --expire-time) - [ $# -le 1 ] && set -- "$1" required && break - OPTARG=$2 - _=$OPTARG - shift ;; - -i | --icon) - [ $# -le 1 ] && set -- "$1" required && break - OPTARG=$2 - _=$OPTARG - shift ;; - -c | --category) - [ $# -le 1 ] && set -- "$1" required && break - OPTARG=$2 - _=$OPTARG - shift ;; - -h | --hint) - [ $# -le 1 ] && set -- "$1" required && break - OPTARG=$2 - _=$OPTARG - shift ;; - -? | --help) - usage - exit 0 ;; - --) shift - while [ $# -gt 0 ]; do - REST="${REST} \"\${$(($OPTIND-$#))}\"" - shift - done - break ;; - [-]?*) set -- "$1" unknown && break ;; - *) REST="${REST} \"\${$(($OPTIND-$#))}\"" - esac - shift - done - [ $# -eq 0 ] && return 0 - case $2 in - unknown) echo "unrecognized option '$1'" ;; - noarg) echo "option '$1' doesn't allow an argument" ;; - required) echo "option '$1' requires an argument" ;; - pattern) echo "option '$1' does not match the pattern ($3)" ;; - *) echo "option '$1' validation error: $2" - esac >&2 - exit 1 -} - -parse "$@" -eval set -- "$REST" -herbe "$@" & diff --git a/user/.config/suckless/herbe/patches/19.diff b/user/.config/suckless/herbe/patches/19.diff deleted file mode 100644 index 2ece3fbd7..000000000 --- a/user/.config/suckless/herbe/patches/19.diff +++ /dev/null @@ -1,100 +0,0 @@ -diff --git a/herbe.c b/herbe.c -index 51d3990..8bfdbc1 100644 ---- a/herbe.c -+++ b/herbe.c -@@ -7,7 +7,8 @@ - #include - #include - #include --#include -+#include -+#include - - #include "config.h" - -@@ -79,13 +80,23 @@ void expire(int sig) - XFlush(display); - } - -+void read_y_offset(unsigned int **offset, int *id) { -+ int shm_id = shmget(8432, sizeof(unsigned int), IPC_CREAT | 0660); -+ if (shm_id == -1) die("shmget failed"); -+ -+ *offset = (unsigned int *)shmat(shm_id, 0, 0); -+ if (*offset == (unsigned int *)-1) die("shmat failed\n"); -+ *id = shm_id; -+} -+ -+void free_y_offset(int id) { -+ shmctl(id, IPC_RMID, NULL); -+} -+ - int main(int argc, char *argv[]) - { - if (argc == 1) -- { -- sem_unlink("/herbe"); -- die("Usage: %s body", argv[0]); -- } -+ die("Usage: %s body", argv[0]); - - struct sigaction act_expire, act_ignore; - -@@ -151,16 +162,22 @@ int main(int argc, char *argv[]) - } - } - -- unsigned int x = pos_x; -- unsigned int y = pos_y; -+ int y_offset_id; -+ unsigned int *y_offset; -+ read_y_offset(&y_offset, &y_offset_id); -+ - unsigned int text_height = font->ascent - font->descent; - unsigned int height = (num_of_lines - 1) * line_spacing + num_of_lines * text_height + 2 * padding; -+ unsigned int x = pos_x; -+ unsigned int y = pos_y + *y_offset; -+ -+ unsigned int used_y_offset = (*y_offset) += height + padding; - - if (corner == TOP_RIGHT || corner == BOTTOM_RIGHT) -- x = screen_width - width - border_size * 2 - pos_x; -+ x = screen_width - width - border_size * 2 - x; - - if (corner == BOTTOM_LEFT || corner == BOTTOM_RIGHT) -- y = screen_height - height - border_size * 2 - pos_y; -+ y = screen_height - height - border_size * 2 - y; - - window = XCreateWindow(display, RootWindow(display, screen), x, y, width, height, border_size, DefaultDepth(display, screen), - CopyFromParent, visual, CWOverrideRedirect | CWBackPixel | CWBorderPixel, &attributes); -@@ -171,9 +188,6 @@ int main(int argc, char *argv[]) - XSelectInput(display, window, ExposureMask | ButtonPress); - XMapWindow(display, window); - -- sem_t *mutex = sem_open("/herbe", O_CREAT, 0644, 1); -- sem_wait(mutex); -- - sigaction(SIGUSR1, &act_expire, 0); - sigaction(SIGUSR2, &act_expire, 0); - -@@ -204,12 +218,11 @@ int main(int argc, char *argv[]) - } - } - -- sem_post(mutex); -- sem_close(mutex); - - for (int i = 0; i < num_of_lines; i++) - free(lines[i]); - -+ if (used_y_offset == *y_offset) free_y_offset(y_offset_id); - free(lines); - XftDrawDestroy(draw); - XftColorFree(display, visual, colormap, &color); -@@ -217,4 +230,4 @@ int main(int argc, char *argv[]) - XCloseDisplay(display); - - return exit_code; --} -\ No newline at end of file -+} diff --git a/user/.config/suckless/slock/Makefile b/user/.config/suckless/slock/Makefile deleted file mode 100644 index b20fd4ee6..000000000 --- a/user/.config/suckless/slock/Makefile +++ /dev/null @@ -1,61 +0,0 @@ -# slock - simple screen locker -# See LICENSE file for copyright and license details. - -include config.mk - -SRC = slock.c ${COMPATSRC} -OBJ = ${SRC:.c=.o} - -all: options slock - -options: - @echo slock build options: - @echo "CFLAGS = ${CFLAGS}" - @echo "LDFLAGS = ${LDFLAGS}" - @echo "CC = ${CC}" - -.c.o: - @echo CC $< - @${CC} -c ${CFLAGS} $< - -${OBJ}: config.h config.mk arg.h util.h - -config.h: - @echo creating $@ from config.def.h - @cp config.def.h $@ - -slock: ${OBJ} - @echo CC -o $@ - @${CC} -o $@ ${OBJ} ${LDFLAGS} - -clean: - @echo cleaning - @rm -f slock ${OBJ} slock-${VERSION}.tar.gz - -dist: clean - @echo creating dist tarball - @mkdir -p slock-${VERSION} - @cp -R LICENSE Makefile README slock.1 config.mk \ - ${SRC} config.def.h arg.h util.h slock-${VERSION} - @tar -cf slock-${VERSION}.tar slock-${VERSION} - @gzip slock-${VERSION}.tar - @rm -rf slock-${VERSION} - -install: all - @echo installing executable file to ${DESTDIR}${PREFIX}/bin - @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f slock ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/slock - @chmod u+s ${DESTDIR}${PREFIX}/bin/slock - @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 - @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @sed "s/VERSION/${VERSION}/g" ${DESTDIR}${MANPREFIX}/man1/slock.1 - @chmod 644 ${DESTDIR}${MANPREFIX}/man1/slock.1 - -uninstall: - @echo removing executable file from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/slock - @echo removing manual page from ${DESTDIR}${MANPREFIX}/man1 - @rm -f ${DESTDIR}${MANPREFIX}/man1/slock.1 - -.PHONY: all options clean dist install uninstall diff --git a/user/.config/suckless/slock/arg.h b/user/.config/suckless/slock/arg.h deleted file mode 100644 index 0b23c53a9..000000000 --- a/user/.config/suckless/slock/arg.h +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copy me if you can. - * by 20h - */ - -#ifndef ARG_H__ -#define ARG_H__ - -extern char *argv0; - -/* use main(int argc, char *argv[]) */ -#define ARGBEGIN for (argv0 = *argv, argv++, argc--;\ - argv[0] && argv[0][0] == '-'\ - && argv[0][1];\ - argc--, argv++) {\ - char argc_;\ - char **argv_;\ - int brk_;\ - if (argv[0][1] == '-' && argv[0][2] == '\0') {\ - argv++;\ - argc--;\ - break;\ - }\ - for (brk_ = 0, argv[0]++, argv_ = argv;\ - argv[0][0] && !brk_;\ - argv[0]++) {\ - if (argv_ != argv)\ - break;\ - argc_ = argv[0][0];\ - switch (argc_) - -/* Handles obsolete -NUM syntax */ -#define ARGNUM case '0':\ - case '1':\ - case '2':\ - case '3':\ - case '4':\ - case '5':\ - case '6':\ - case '7':\ - case '8':\ - case '9' - -#define ARGEND }\ - } - -#define ARGC() argc_ - -#define ARGNUMF() (brk_ = 1, estrtonum(argv[0], 0, INT_MAX)) - -#define EARGF(x) ((argv[0][1] == '\0' && argv[1] == NULL)?\ - ((x), abort(), (char *)0) :\ - (brk_ = 1, (argv[0][1] != '\0')?\ - (&argv[0][1]) :\ - (argc--, argv++, argv[0]))) - -#define ARGF() ((argv[0][1] == '\0' && argv[1] == NULL)?\ - (char *)0 :\ - (brk_ = 1, (argv[0][1] != '\0')?\ - (&argv[0][1]) :\ - (argc--, argv++, argv[0]))) - -#define LNGARG() &argv[0][0] - -#endif diff --git a/user/.config/suckless/slock/config.def.h b/user/.config/suckless/slock/config.def.h deleted file mode 100644 index 85e35d9fd..000000000 --- a/user/.config/suckless/slock/config.def.h +++ /dev/null @@ -1,28 +0,0 @@ -/* user and group to drop privileges to */ -static const char *user = "drk"; -static const char *group = "drk"; - -static const char *colorname[NUMCOLS] = { - [INIT] = "#1d2021", /* after initialization */ - [INPUT] = "#076678", /* during input */ - [FAILED] = "#cc241d", /* wrong password */ - [PAM] = "#32302f", /* waiting for PAM */ -}; - -/* treat a cleared input like a wrong password (color) */ -static const int failonclear = 1; - -/* default message */ -static const char * message = "This device is locked\neven if you manage to unlock it\nyou wont know how to use it"; - -/* text color */ -static const char * text_color = "#d4c4a1"; - -/* text size (must be a valid size) */ -static const char * font_name = "mtx"; - -/* Background image path, should be available to the user above */ -static const char* background_image = ".config/suckless/slock/lockscreen.jpg"; - -/* PAM service that's used for authentication */ -static const char* pam_service = "system-local-login"; diff --git a/user/.config/suckless/slock/config.mk b/user/.config/suckless/slock/config.mk deleted file mode 100644 index 050bc5c71..000000000 --- a/user/.config/suckless/slock/config.mk +++ /dev/null @@ -1,32 +0,0 @@ -# slock version -VERSION = 1.5 - -# Customize below to fit your system - -# paths -PREFIX = /usr/local -MANPREFIX = ${PREFIX}/share/man - -X11INC = /usr/X11R6/include -X11LIB = /usr/X11R6/lib - -# includes and libs -INCS = -I. -I/usr/include -I${X11INC} -LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr -lImlib2 -lXinerama -lpam - -# flags -CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H -CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} -LDFLAGS = -s ${LIBS} -COMPATSRC = explicit_bzero.c - -# On OpenBSD and Darwin remove -lcrypt from LIBS -#LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 -lXext -lXrandr -# On *BSD remove -DHAVE_SHADOW_H from CPPFLAGS -# On NetBSD add -D_NETBSD_SOURCE to CPPFLAGS -#CPPFLAGS = -DVERSION=\"${VERSION}\" -D_BSD_SOURCE -D_NETBSD_SOURCE -# On OpenBSD set COMPATSRC to empty -#COMPATSRC = - -# compiler and linker -CC = cc diff --git a/user/.config/suckless/slock/explicit_bzero.c b/user/.config/suckless/slock/explicit_bzero.c deleted file mode 100644 index 3e33ca85b..000000000 --- a/user/.config/suckless/slock/explicit_bzero.c +++ /dev/null @@ -1,19 +0,0 @@ -/* $OpenBSD: explicit_bzero.c,v 1.3 2014/06/21 02:34:26 matthew Exp $ */ -/* - * Public domain. - * Written by Matthew Dempsky. - */ - -#include - -__attribute__((weak)) void -__explicit_bzero_hook(void *buf, size_t len) -{ -} - -void -explicit_bzero(void *buf, size_t len) -{ - memset(buf, 0, len); - __explicit_bzero_hook(buf, len); -} diff --git a/user/.config/suckless/slock/lockscreen.jpg b/user/.config/suckless/slock/lockscreen.jpg deleted file mode 100644 index 7d2f10e5f..000000000 Binary files a/user/.config/suckless/slock/lockscreen.jpg and /dev/null differ diff --git a/user/.config/suckless/slock/patchs/slock-background-image-20220318-1c5a538.diff b/user/.config/suckless/slock/patchs/slock-background-image-20220318-1c5a538.diff deleted file mode 100644 index 2d4caf453..000000000 --- a/user/.config/suckless/slock/patchs/slock-background-image-20220318-1c5a538.diff +++ /dev/null @@ -1,149 +0,0 @@ -From 1c5a5383a1cf3351fe9c80a21cfbc98c5ec4355d Mon Sep 17 00:00:00 2001 -From: Yan Doroshenko -Date: Fri, 18 Mar 2022 12:28:13 +0100 -Subject: [PATCH] Provide a way to set a background image - ---- - config.def.h | 5 ++++- - config.mk | 2 +- - slock.c | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- - 3 files changed, 52 insertions(+), 5 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 9855e21..eb88b3d 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -1,6 +1,6 @@ - /* user and group to drop privileges to */ - static const char *user = "nobody"; --static const char *group = "nogroup"; -+static const char *group = "nobody"; - - static const char *colorname[NUMCOLS] = { - [INIT] = "black", /* after initialization */ -@@ -10,3 +10,6 @@ static const char *colorname[NUMCOLS] = { - - /* treat a cleared input like a wrong password (color) */ - static const int failonclear = 1; -+ -+/* Background image path, should be available to the user above */ -+static const char* background_image = ""; -diff --git a/config.mk b/config.mk -index 74429ae..987819e 100644 ---- a/config.mk -+++ b/config.mk -@@ -12,7 +12,7 @@ X11LIB = /usr/X11R6/lib - - # includes and libs - INCS = -I. -I/usr/include -I${X11INC} --LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr -+LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr -lImlib2 - - # flags - CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H -diff --git a/slock.c b/slock.c -index 5ae738c..345a279 100644 ---- a/slock.c -+++ b/slock.c -@@ -18,6 +18,7 @@ - #include - #include - #include -+#include - - #include "arg.h" - #include "util.h" -@@ -35,6 +36,7 @@ struct lock { - int screen; - Window root, win; - Pixmap pmap; -+ Pixmap bgmap; - unsigned long colors[NUMCOLS]; - }; - -@@ -46,6 +48,8 @@ struct xrandr { - - #include "config.h" - -+Imlib_Image image; -+ - static void - die(const char *errstr, ...) - { -@@ -190,9 +194,10 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, - color = len ? INPUT : ((failure || failonclear) ? FAILED : INIT); - if (running && oldc != color) { - for (screen = 0; screen < nscreens; screen++) { -- XSetWindowBackground(dpy, -- locks[screen]->win, -- locks[screen]->colors[color]); -+ if (locks[screen]->bgmap) -+ XSetWindowBackgroundPixmap(dpy, locks[screen]->win, locks[screen]->bgmap); -+ else -+ XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[0]); - XClearWindow(dpy, locks[screen]->win); - } - oldc = color; -@@ -235,6 +240,17 @@ lockscreen(Display *dpy, struct xrandr *rr, int screen) - lock->screen = screen; - lock->root = RootWindow(dpy, lock->screen); - -+ if(image) -+ { -+ lock->bgmap = XCreatePixmap(dpy, lock->root, DisplayWidth(dpy, lock->screen), DisplayHeight(dpy, lock->screen), DefaultDepth(dpy, lock->screen)); -+ imlib_context_set_display(dpy); -+ imlib_context_set_visual(DefaultVisual(dpy, lock->screen)); -+ imlib_context_set_colormap(DefaultColormap(dpy, lock->screen)); -+ imlib_context_set_drawable(lock->bgmap); -+ imlib_render_image_on_drawable(0, 0); -+ imlib_free_image(); -+ } -+ - for (i = 0; i < NUMCOLS; i++) { - XAllocNamedColor(dpy, DefaultColormap(dpy, lock->screen), - colorname[i], &color, &dummy); -@@ -251,6 +267,8 @@ lockscreen(Display *dpy, struct xrandr *rr, int screen) - CopyFromParent, - DefaultVisual(dpy, lock->screen), - CWOverrideRedirect | CWBackPixel, &wa); -+ if(lock->bgmap) -+ XSetWindowBackgroundPixmap(dpy, lock->win, lock->bgmap); - lock->pmap = XCreateBitmapFromData(dpy, lock->win, curs, 8, 8); - invisible = XCreatePixmapCursor(dpy, lock->pmap, lock->pmap, - &color, &color, 0, 0); -@@ -355,6 +373,32 @@ main(int argc, char **argv) { - if (setuid(duid) < 0) - die("slock: setuid: %s\n", strerror(errno)); - -+ /* Load picture */ -+ Imlib_Image buffer = imlib_load_image(background_image); -+ imlib_context_set_image(buffer); -+ int background_image_width = imlib_image_get_width(); -+ int background_image_height = imlib_image_get_height(); -+ -+ /* Create an image to be rendered */ -+ Screen *scr = ScreenOfDisplay(dpy, DefaultScreen(dpy)); -+ image = imlib_create_image(scr->width, scr->height); -+ imlib_context_set_image(image); -+ -+ /* Fill the image for every X monitor */ -+ XRRMonitorInfo *monitors; -+ int number_of_monitors; -+ monitors = XRRGetMonitors(dpy, RootWindow(dpy, XScreenNumberOfScreen(scr)), True, &number_of_monitors); -+ -+ int i; -+ for (i = 0; i < number_of_monitors; i++) { -+ imlib_blend_image_onto_image(buffer, 0, 0, 0, background_image_width, background_image_height, monitors[i].x, monitors[i].y, monitors[i].width, monitors[i].height); -+ } -+ -+ /* Clean up */ -+ imlib_context_set_image(buffer); -+ imlib_free_image(); -+ imlib_context_set_image(image); -+ - /* check for Xrandr support */ - rr.active = XRRQueryExtension(dpy, &rr.evbase, &rr.errbase); - --- -2.35.1 - diff --git a/user/.config/suckless/slock/patchs/slock-colormessage-20200210-35633d4.diff b/user/.config/suckless/slock/patchs/slock-colormessage-20200210-35633d4.diff deleted file mode 100644 index 0ef08474a..000000000 --- a/user/.config/suckless/slock/patchs/slock-colormessage-20200210-35633d4.diff +++ /dev/null @@ -1,284 +0,0 @@ -From 53ba5a8d3608ca9c9c406b12c51c2bfdfb3e01d3 Mon Sep 17 00:00:00 2001 -From: Guy Shefy -Date: Wed, 10 Feb 2021 00:17:46 +0200 -Subject: [PATCH] Add a message command with 24 bit color support - ---- - config.def.h | 9 +++ - config.mk | 2 +- - slock.1 | 7 +++ - slock.c | 154 +++++++++++++++++++++++++++++++++++++++++++++++++-- - 4 files changed, 167 insertions(+), 5 deletions(-) - -diff --git a/config.def.h b/config.def.h -index 9855e21..c2a0ab2 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -10,3 +10,12 @@ static const char *colorname[NUMCOLS] = { - - /* treat a cleared input like a wrong password (color) */ - static const int failonclear = 1; -+ -+/* default message */ -+static const char * message = "Suckless: Software that sucks less."; -+ -+/* text color */ -+static const char * text_color = "#ffffff"; -+ -+/* text size (must be a valid size) */ -+static const char * font_name = "6x10"; -diff --git a/config.mk b/config.mk -index 74429ae..c4ccf66 100644 ---- a/config.mk -+++ b/config.mk -@@ -12,7 +12,7 @@ X11LIB = /usr/X11R6/lib - - # includes and libs - INCS = -I. -I/usr/include -I${X11INC} --LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr -+LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr -lXinerama - - # flags - CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H -diff --git a/slock.1 b/slock.1 -index 82cdcd6..946165f 100644 ---- a/slock.1 -+++ b/slock.1 -@@ -6,6 +6,8 @@ - .Sh SYNOPSIS - .Nm - .Op Fl v -+.Op Fl f -+.Op Fl m Ar message - .Op Ar cmd Op Ar arg ... - .Sh DESCRIPTION - .Nm -@@ -16,6 +18,11 @@ is executed after the screen has been locked. - .Bl -tag -width Ds - .It Fl v - Print version information to stdout and exit. -+.It Fl f -+List all valid X fonts and exit. -+.It Fl m Ar message -+Overrides default slock lock message. -+.TP - .El - .Sh SECURITY CONSIDERATIONS - To make sure a locked screen can not be bypassed by switching VTs -diff --git a/slock.c b/slock.c -index 5ae738c..b8b7fe4 100644 ---- a/slock.c -+++ b/slock.c -@@ -15,6 +15,7 @@ - #include - #include - #include -+#include - #include - #include - #include -@@ -24,6 +25,9 @@ - - char *argv0; - -+/* global count to prevent repeated error messages */ -+int count_error = 0; -+ - enum { - INIT, - INPUT, -@@ -83,6 +87,132 @@ dontkillme(void) - } - #endif - -+static int -+readescapedint(const char *str, int *i) { -+ int n = 0; -+ if (str[*i]) -+ ++*i; -+ while(str[*i] && str[*i] != ';' && str[*i] != 'm') { -+ n = 10 * n + str[*i] - '0'; -+ ++*i; -+ } -+ return n; -+} -+ -+static void -+writemessage(Display *dpy, Window win, int screen) -+{ -+ int len, line_len, width, height, s_width, s_height, i, k, tab_size, r, g, b, escaped_int, curr_line_len; -+ XGCValues gr_values; -+ XFontStruct *fontinfo; -+ XColor color, dummy; -+ XineramaScreenInfo *xsi; -+ GC gc; -+ fontinfo = XLoadQueryFont(dpy, font_name); -+ -+ if (fontinfo == NULL) { -+ if (count_error == 0) { -+ fprintf(stderr, "slock: Unable to load font \"%s\"\n", font_name); -+ fprintf(stderr, "slock: Try listing fonts with 'slock -f'\n"); -+ count_error++; -+ } -+ return; -+ } -+ -+ tab_size = 8 * XTextWidth(fontinfo, " ", 1); -+ -+ XAllocNamedColor(dpy, DefaultColormap(dpy, screen), -+ text_color, &color, &dummy); -+ -+ gr_values.font = fontinfo->fid; -+ gr_values.foreground = color.pixel; -+ gc=XCreateGC(dpy,win,GCFont+GCForeground, &gr_values); -+ -+ /* To prevent "Uninitialized" warnings. */ -+ xsi = NULL; -+ -+ /* -+ * Start formatting and drawing text -+ */ -+ -+ len = strlen(message); -+ -+ /* Max max line length (cut at '\n') */ -+ line_len = curr_line_len = 0; -+ k = 0; -+ for (i = 0; i < len; i++) { -+ if (message[i] == '\n') { -+ curr_line_len = 0; -+ k++; -+ } else if (message[i] == 0x1b) { -+ while (i < len && message[i] != 'm') { -+ i++; -+ } -+ if (i == len) -+ die("slock: unclosed escape sequence\n"); -+ } else { -+ curr_line_len += XTextWidth(fontinfo, message + i, 1); -+ if (curr_line_len > line_len) -+ line_len = curr_line_len; -+ } -+ } -+ /* If there is only one line */ -+ if (line_len == 0) -+ line_len = len; -+ -+ if (XineramaIsActive(dpy)) { -+ xsi = XineramaQueryScreens(dpy, &i); -+ s_width = xsi[0].width; -+ s_height = xsi[0].height; -+ } else { -+ s_width = DisplayWidth(dpy, screen); -+ s_height = DisplayHeight(dpy, screen); -+ } -+ height = s_height*3/7 - (k*20)/3; -+ width = (s_width - line_len)/2; -+ -+ line_len = 0; -+ /* print the text while parsing 24 bit color ANSI escape codes*/ -+ for (i = k = 0; i < len; i++) { -+ switch (message[i]) { -+ case '\n': -+ line_len = 0; -+ while (message[i + 1] == '\t') { -+ line_len += tab_size; -+ i++; -+ } -+ k++; -+ break; -+ case 0x1b: -+ i++; -+ if (message[i] == '[') { -+ escaped_int = readescapedint(message, &i); -+ if (escaped_int == 39) -+ continue; -+ if (escaped_int != 38) -+ die("slock: unknown escape sequence%d\n", escaped_int); -+ if (readescapedint(message, &i) != 2) -+ die("slock: only 24 bit color supported\n"); -+ r = readescapedint(message, &i) & 0xff; -+ g = readescapedint(message, &i) & 0xff; -+ b = readescapedint(message, &i) & 0xff; -+ XSetForeground(dpy, gc, r << 16 | g << 8 | b); -+ } else -+ die("slock: unknown escape sequence\n"); -+ break; -+ default: -+ XDrawString(dpy, win, gc, width + line_len, height + 20 * k, message + i, 1); -+ line_len += XTextWidth(fontinfo, message + i, 1); -+ } -+ } -+ -+ /* xsi should not be NULL anyway if Xinerama is active, but to be safe */ -+ if (XineramaIsActive(dpy) && xsi != NULL) -+ XFree(xsi); -+} -+ -+ -+ - static const char * - gethash(void) - { -@@ -194,6 +324,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, - locks[screen]->win, - locks[screen]->colors[color]); - XClearWindow(dpy, locks[screen]->win); -+ writemessage(dpy, locks[screen]->win, screen); - } - oldc = color; - } -@@ -300,7 +431,7 @@ lockscreen(Display *dpy, struct xrandr *rr, int screen) - static void - usage(void) - { -- die("usage: slock [-v] [cmd [arg ...]]\n"); -+ die("usage: slock [-v] [-f] [-m message] [cmd [arg ...]]\n"); - } - - int -@@ -313,12 +444,25 @@ main(int argc, char **argv) { - gid_t dgid; - const char *hash; - Display *dpy; -- int s, nlocks, nscreens; -+ int i, s, nlocks, nscreens; -+ int count_fonts; -+ char **font_names; - - ARGBEGIN { - case 'v': - fprintf(stderr, "slock-"VERSION"\n"); - return 0; -+ case 'm': -+ message = EARGF(usage()); -+ break; -+ case 'f': -+ if (!(dpy = XOpenDisplay(NULL))) -+ die("slock: cannot open display\n"); -+ font_names = XListFonts(dpy, "*", 10000 /* list 10000 fonts*/, &count_fonts); -+ for (i=0; iwin, s); - nlocks++; -- else -+ } else { - break; -+ } - } - XSync(dpy, 0); - --- -2.30.0 - diff --git a/user/.config/suckless/slock/patchs/slock-pam_auth-20190207-35633d4.diff b/user/.config/suckless/slock/patchs/slock-pam_auth-20190207-35633d4.diff deleted file mode 100644 index 136f4b57a..000000000 --- a/user/.config/suckless/slock/patchs/slock-pam_auth-20190207-35633d4.diff +++ /dev/null @@ -1,154 +0,0 @@ -diff --git a/config.def.h b/config.def.h -index 9855e21..19e7f62 100644 ---- a/config.def.h -+++ b/config.def.h -@@ -6,7 +6,11 @@ static const char *colorname[NUMCOLS] = { - [INIT] = "black", /* after initialization */ - [INPUT] = "#005577", /* during input */ - [FAILED] = "#CC3333", /* wrong password */ -+ [PAM] = "#9400D3", /* waiting for PAM */ - }; - - /* treat a cleared input like a wrong password (color) */ - static const int failonclear = 1; -+ -+/* PAM service that's used for authentication */ -+static const char* pam_service = "login"; -diff --git a/config.mk b/config.mk -index 74429ae..6e82074 100644 ---- a/config.mk -+++ b/config.mk -@@ -12,7 +12,7 @@ X11LIB = /usr/X11R6/lib - - # includes and libs - INCS = -I. -I/usr/include -I${X11INC} --LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr -+LIBS = -L/usr/lib -lc -lcrypt -L${X11LIB} -lX11 -lXext -lXrandr -lpam - - # flags - CPPFLAGS = -DVERSION=\"${VERSION}\" -D_DEFAULT_SOURCE -DHAVE_SHADOW_H -diff --git a/slock.c b/slock.c -index 5ae738c..3a8da42 100644 ---- a/slock.c -+++ b/slock.c -@@ -18,16 +18,22 @@ - #include - #include - #include -+#include -+#include - - #include "arg.h" - #include "util.h" - - char *argv0; -+static int pam_conv(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr); -+struct pam_conv pamc = {pam_conv, NULL}; -+char passwd[256]; - - enum { - INIT, - INPUT, - FAILED, -+ PAM, - NUMCOLS - }; - -@@ -57,6 +63,31 @@ die(const char *errstr, ...) - exit(1); - } - -+static int -+pam_conv(int num_msg, const struct pam_message **msg, -+ struct pam_response **resp, void *appdata_ptr) -+{ -+ int retval = PAM_CONV_ERR; -+ for(int i=0; imsg_style == PAM_PROMPT_ECHO_OFF && -+ strncmp(msg[i]->msg, "Password: ", 10) == 0) { -+ struct pam_response *resp_msg = malloc(sizeof(struct pam_response)); -+ if (!resp_msg) -+ die("malloc failed\n"); -+ char *password = malloc(strlen(passwd) + 1); -+ if (!password) -+ die("malloc failed\n"); -+ memset(password, 0, strlen(passwd) + 1); -+ strcpy(password, passwd); -+ resp_msg->resp_retcode = 0; -+ resp_msg->resp = password; -+ resp[i] = resp_msg; -+ retval = PAM_SUCCESS; -+ } -+ } -+ return retval; -+} -+ - #ifdef __linux__ - #include - #include -@@ -121,6 +152,8 @@ gethash(void) - } - #endif /* HAVE_SHADOW_H */ - -+ /* pam, store user name */ -+ hash = pw->pw_name; - return hash; - } - -@@ -129,11 +162,12 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, - const char *hash) - { - XRRScreenChangeNotifyEvent *rre; -- char buf[32], passwd[256], *inputhash; -- int num, screen, running, failure, oldc; -+ char buf[32]; -+ int num, screen, running, failure, oldc, retval; - unsigned int len, color; - KeySym ksym; - XEvent ev; -+ pam_handle_t *pamh; - - len = 0; - running = 1; -@@ -160,10 +194,26 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, - case XK_Return: - passwd[len] = '\0'; - errno = 0; -- if (!(inputhash = crypt(passwd, hash))) -- fprintf(stderr, "slock: crypt: %s\n", strerror(errno)); -+ retval = pam_start(pam_service, hash, &pamc, &pamh); -+ color = PAM; -+ for (screen = 0; screen < nscreens; screen++) { -+ XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]); -+ XClearWindow(dpy, locks[screen]->win); -+ XRaiseWindow(dpy, locks[screen]->win); -+ } -+ XSync(dpy, False); -+ -+ if (retval == PAM_SUCCESS) -+ retval = pam_authenticate(pamh, 0); -+ if (retval == PAM_SUCCESS) -+ retval = pam_acct_mgmt(pamh, 0); -+ -+ running = 1; -+ if (retval == PAM_SUCCESS) -+ running = 0; - else -- running = !!strcmp(inputhash, hash); -+ fprintf(stderr, "slock: %s\n", pam_strerror(pamh, retval)); -+ pam_end(pamh, retval); - if (running) { - XBell(dpy, 100); - failure = 1; -@@ -339,10 +389,9 @@ main(int argc, char **argv) { - dontkillme(); - #endif - -+ /* the contents of hash are used to transport the current user name */ - hash = gethash(); - errno = 0; -- if (!crypt("", hash)) -- die("slock: crypt: %s\n", strerror(errno)); - - if (!(dpy = XOpenDisplay(NULL))) - die("slock: cannot open display\n"); diff --git a/user/.config/suckless/slock/slock.1 b/user/.config/suckless/slock/slock.1 deleted file mode 100644 index 946165fa0..000000000 --- a/user/.config/suckless/slock/slock.1 +++ /dev/null @@ -1,46 +0,0 @@ -.Dd 2016-08-23 -.Dt SLOCK 1 -.Sh NAME -.Nm slock -.Nd simple X screen locker -.Sh SYNOPSIS -.Nm -.Op Fl v -.Op Fl f -.Op Fl m Ar message -.Op Ar cmd Op Ar arg ... -.Sh DESCRIPTION -.Nm -is a simple X screen locker. If provided, -.Ar cmd Op Ar arg ... -is executed after the screen has been locked. -.Sh OPTIONS -.Bl -tag -width Ds -.It Fl v -Print version information to stdout and exit. -.It Fl f -List all valid X fonts and exit. -.It Fl m Ar message -Overrides default slock lock message. -.TP -.El -.Sh SECURITY CONSIDERATIONS -To make sure a locked screen can not be bypassed by switching VTs -or killing the X server with Ctrl+Alt+Backspace, it is recommended -to disable both in -.Xr xorg.conf 5 -for maximum security: -.Bd -literal -offset left -Section "ServerFlags" - Option "DontVTSwitch" "True" - Option "DontZap" "True" -EndSection -.Ed -.Sh EXAMPLES -$ -.Nm -/usr/sbin/s2ram -.Sh CUSTOMIZATION -.Nm -can be customized by creating a custom config.h from config.def.h and -(re)compiling the source code. This keeps it fast, secure and simple. diff --git a/user/.config/suckless/slock/slock.c b/user/.config/suckless/slock/slock.c deleted file mode 100644 index ab6040b43..000000000 --- a/user/.config/suckless/slock/slock.c +++ /dev/null @@ -1,635 +0,0 @@ -/* See LICENSE file for license details. */ -#define _XOPEN_SOURCE 500 -#if HAVE_SHADOW_H -#include -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "arg.h" -#include "util.h" - -char *argv0; - -static int pam_conv(int num_msg, const struct pam_message **msg, struct pam_response **resp, void *appdata_ptr); -struct pam_conv pamc = {pam_conv, NULL}; -char passwd[256]; - -/* global count to prevent repeated error messages */ -int count_error = 0; - -enum { - INIT, - INPUT, - FAILED, - PAM, - NUMCOLS -}; - -struct lock { - int screen; - Window root, win; - Pixmap pmap; - Pixmap bgmap; - unsigned long colors[NUMCOLS]; -}; - -struct xrandr { - int active; - int evbase; - int errbase; -}; - -#include "config.h" - -Imlib_Image image; - -static void -die(const char *errstr, ...) -{ - va_list ap; - - va_start(ap, errstr); - vfprintf(stderr, errstr, ap); - va_end(ap); - exit(1); -} - -static int -pam_conv(int num_msg, const struct pam_message **msg, - struct pam_response **resp, void *appdata_ptr) -{ - int retval = PAM_CONV_ERR; - for(int i=0; imsg_style == PAM_PROMPT_ECHO_OFF && - strncmp(msg[i]->msg, "Password: ", 10) == 0) { - struct pam_response *resp_msg = malloc(sizeof(struct pam_response)); - if (!resp_msg) - die("malloc failed\n"); - char *password = malloc(strlen(passwd) + 1); - if (!password) - die("malloc failed\n"); - memset(password, 0, strlen(passwd) + 1); - strcpy(password, passwd); - resp_msg->resp_retcode = 0; - resp_msg->resp = password; - resp[i] = resp_msg; - retval = PAM_SUCCESS; - } - } - return retval; -} - -#ifdef __linux__ -#include -#include - -static void -dontkillme(void) -{ - FILE *f; - const char oomfile[] = "/proc/self/oom_score_adj"; - - if (!(f = fopen(oomfile, "w"))) { - if (errno == ENOENT) - return; - die("slock: fopen %s: %s\n", oomfile, strerror(errno)); - } - fprintf(f, "%d", OOM_SCORE_ADJ_MIN); - if (fclose(f)) { - if (errno == EACCES) - die("slock: unable to disable OOM killer. " - "Make sure to suid or sgid slock.\n"); - else - die("slock: fclose %s: %s\n", oomfile, strerror(errno)); - } -} -#endif - -static int -readescapedint(const char *str, int *i) { - int n = 0; - if (str[*i]) - ++*i; - while(str[*i] && str[*i] != ';' && str[*i] != 'm') { - n = 10 * n + str[*i] - '0'; - ++*i; - } - return n; -} - -static void -writemessage(Display *dpy, Window win, int screen) -{ - int len, line_len, width, height, s_width, s_height, i, k, tab_size, r, g, b, escaped_int, curr_line_len; - XGCValues gr_values; - XFontStruct *fontinfo; - XColor color, dummy; - XineramaScreenInfo *xsi; - GC gc; - fontinfo = XLoadQueryFont(dpy, font_name); - - if (fontinfo == NULL) { - if (count_error == 0) { - fprintf(stderr, "slock: Unable to load font \"%s\"\n", font_name); - fprintf(stderr, "slock: Try listing fonts with 'slock -f'\n"); - count_error++; - } - return; - } - - tab_size = 8 * XTextWidth(fontinfo, " ", 1); - - XAllocNamedColor(dpy, DefaultColormap(dpy, screen), - text_color, &color, &dummy); - - gr_values.font = fontinfo->fid; - gr_values.foreground = color.pixel; - gc=XCreateGC(dpy,win,GCFont+GCForeground, &gr_values); - - /* To prevent "Uninitialized" warnings. */ - xsi = NULL; - - /* - * Start formatting and drawing text - */ - - len = strlen(message); - - /* Max max line length (cut at '\n') */ - line_len = curr_line_len = 0; - k = 0; - for (i = 0; i < len; i++) { - if (message[i] == '\n') { - curr_line_len = 0; - k++; - } else if (message[i] == 0x1b) { - while (i < len && message[i] != 'm') { - i++; - } - if (i == len) - die("slock: unclosed escape sequence\n"); - } else { - curr_line_len += XTextWidth(fontinfo, message + i, 1); - if (curr_line_len > line_len) - line_len = curr_line_len; - } - } - /* If there is only one line */ - if (line_len == 0) - line_len = len; - - if (XineramaIsActive(dpy)) { - xsi = XineramaQueryScreens(dpy, &i); - s_width = xsi[0].width; - s_height = xsi[0].height; - } else { - s_width = DisplayWidth(dpy, screen); - s_height = DisplayHeight(dpy, screen); - } - height = s_height*3/7 - (k*20)/3; - width = (s_width - line_len)/2; - - line_len = 0; - /* print the text while parsing 24 bit color ANSI escape codes*/ - for (i = k = 0; i < len; i++) { - switch (message[i]) { - case '\n': - line_len = 0; - while (message[i + 1] == '\t') { - line_len += tab_size; - i++; - } - k++; - break; - case 0x1b: - i++; - if (message[i] == '[') { - escaped_int = readescapedint(message, &i); - if (escaped_int == 39) - continue; - if (escaped_int != 38) - die("slock: unknown escape sequence%d\n", escaped_int); - if (readescapedint(message, &i) != 2) - die("slock: only 24 bit color supported\n"); - r = readescapedint(message, &i) & 0xff; - g = readescapedint(message, &i) & 0xff; - b = readescapedint(message, &i) & 0xff; - XSetForeground(dpy, gc, r << 16 | g << 8 | b); - } else - die("slock: unknown escape sequence\n"); - break; - default: - XDrawString(dpy, win, gc, width + line_len, height + 20 * k, message + i, 1); - line_len += XTextWidth(fontinfo, message + i, 1); - } - } - - /* xsi should not be NULL anyway if Xinerama is active, but to be safe */ - if (XineramaIsActive(dpy) && xsi != NULL) - XFree(xsi); -} - - - -static const char * -gethash(void) -{ - const char *hash; - struct passwd *pw; - - /* Check if the current user has a password entry */ - errno = 0; - if (!(pw = getpwuid(getuid()))) { - if (errno) - die("slock: getpwuid: %s\n", strerror(errno)); - else - die("slock: cannot retrieve password entry\n"); - } - hash = pw->pw_passwd; - -#if HAVE_SHADOW_H - if (!strcmp(hash, "x")) { - struct spwd *sp; - if (!(sp = getspnam(pw->pw_name))) - die("slock: getspnam: cannot retrieve shadow entry. " - "Make sure to suid or sgid slock.\n"); - hash = sp->sp_pwdp; - } -#else - if (!strcmp(hash, "*")) { -#ifdef __OpenBSD__ - if (!(pw = getpwuid_shadow(getuid()))) - die("slock: getpwnam_shadow: cannot retrieve shadow entry. " - "Make sure to suid or sgid slock.\n"); - hash = pw->pw_passwd; -#else - die("slock: getpwuid: cannot retrieve shadow entry. " - "Make sure to suid or sgid slock.\n"); -#endif /* __OpenBSD__ */ - } -#endif /* HAVE_SHADOW_H */ - - /* pam, store user name */ - hash = pw->pw_name; - return hash; -} - -static void -readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens, - const char *hash) -{ - XRRScreenChangeNotifyEvent *rre; - char buf[32]; - int num, screen, running, failure, oldc, retval; - unsigned int len, color; - KeySym ksym; - XEvent ev; - pam_handle_t *pamh; - - len = 0; - running = 1; - failure = 0; - oldc = INIT; - - while (running && !XNextEvent(dpy, &ev)) { - if (ev.type == KeyPress) { - explicit_bzero(&buf, sizeof(buf)); - num = XLookupString(&ev.xkey, buf, sizeof(buf), &ksym, 0); - if (IsKeypadKey(ksym)) { - if (ksym == XK_KP_Enter) - ksym = XK_Return; - else if (ksym >= XK_KP_0 && ksym <= XK_KP_9) - ksym = (ksym - XK_KP_0) + XK_0; - } - if (IsFunctionKey(ksym) || - IsKeypadKey(ksym) || - IsMiscFunctionKey(ksym) || - IsPFKey(ksym) || - IsPrivateKeypadKey(ksym)) - continue; - switch (ksym) { - case XK_Return: - passwd[len] = '\0'; - errno = 0; - retval = pam_start(pam_service, hash, &pamc, &pamh); - color = PAM; - for (screen = 0; screen < nscreens; screen++) { - XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[color]); - XClearWindow(dpy, locks[screen]->win); - XRaiseWindow(dpy, locks[screen]->win); - } - XSync(dpy, False); - - if (retval == PAM_SUCCESS) - retval = pam_authenticate(pamh, 0); - if (retval == PAM_SUCCESS) - retval = pam_acct_mgmt(pamh, 0); - - running = 1; - if (retval == PAM_SUCCESS) - running = 0; - else - fprintf(stderr, "slock: %s\n", pam_strerror(pamh, retval)); - pam_end(pamh, retval); - if (running) { - XBell(dpy, 100); - failure = 1; - } - explicit_bzero(&passwd, sizeof(passwd)); - len = 0; - break; - case XK_Escape: - explicit_bzero(&passwd, sizeof(passwd)); - len = 0; - break; - case XK_BackSpace: - if (len) - passwd[--len] = '\0'; - break; - default: - if (num && !iscntrl((int)buf[0]) && - (len + num < sizeof(passwd))) { - memcpy(passwd + len, buf, num); - len += num; - } - break; - } - color = len ? INPUT : ((failure || failonclear) ? FAILED : INIT); - if (running && oldc != color) { - for (screen = 0; screen < nscreens; screen++) { - if (locks[screen]->bgmap) - XSetWindowBackgroundPixmap(dpy, locks[screen]->win, locks[screen]->bgmap); - else - XSetWindowBackground(dpy, locks[screen]->win, locks[screen]->colors[0]); - XClearWindow(dpy, locks[screen]->win); - writemessage(dpy, locks[screen]->win, screen); - } - oldc = color; - } - } else if (rr->active && ev.type == rr->evbase + RRScreenChangeNotify) { - rre = (XRRScreenChangeNotifyEvent*)&ev; - for (screen = 0; screen < nscreens; screen++) { - if (locks[screen]->win == rre->window) { - if (rre->rotation == RR_Rotate_90 || - rre->rotation == RR_Rotate_270) - XResizeWindow(dpy, locks[screen]->win, - rre->height, rre->width); - else - XResizeWindow(dpy, locks[screen]->win, - rre->width, rre->height); - XClearWindow(dpy, locks[screen]->win); - break; - } - } - } else { - for (screen = 0; screen < nscreens; screen++) - XRaiseWindow(dpy, locks[screen]->win); - } - } -} - -static struct lock * -lockscreen(Display *dpy, struct xrandr *rr, int screen) -{ - char curs[] = {0, 0, 0, 0, 0, 0, 0, 0}; - int i, ptgrab, kbgrab; - struct lock *lock; - XColor color, dummy; - XSetWindowAttributes wa; - Cursor invisible; - - if (dpy == NULL || screen < 0 || !(lock = malloc(sizeof(struct lock)))) - return NULL; - - lock->screen = screen; - lock->root = RootWindow(dpy, lock->screen); - - if(image) - { - lock->bgmap = XCreatePixmap(dpy, lock->root, DisplayWidth(dpy, lock->screen), DisplayHeight(dpy, lock->screen), DefaultDepth(dpy, lock->screen)); - imlib_context_set_display(dpy); - imlib_context_set_visual(DefaultVisual(dpy, lock->screen)); - imlib_context_set_colormap(DefaultColormap(dpy, lock->screen)); - imlib_context_set_drawable(lock->bgmap); - imlib_render_image_on_drawable(0, 0); - imlib_free_image(); - } - - for (i = 0; i < NUMCOLS; i++) { - XAllocNamedColor(dpy, DefaultColormap(dpy, lock->screen), - colorname[i], &color, &dummy); - lock->colors[i] = color.pixel; - } - - /* init */ - wa.override_redirect = 1; - wa.background_pixel = lock->colors[INIT]; - lock->win = XCreateWindow(dpy, lock->root, 0, 0, - DisplayWidth(dpy, lock->screen), - DisplayHeight(dpy, lock->screen), - 0, DefaultDepth(dpy, lock->screen), - CopyFromParent, - DefaultVisual(dpy, lock->screen), - CWOverrideRedirect | CWBackPixel, &wa); - if(lock->bgmap) - XSetWindowBackgroundPixmap(dpy, lock->win, lock->bgmap); - lock->pmap = XCreateBitmapFromData(dpy, lock->win, curs, 8, 8); - invisible = XCreatePixmapCursor(dpy, lock->pmap, lock->pmap, - &color, &color, 0, 0); - XDefineCursor(dpy, lock->win, invisible); - - /* Try to grab mouse pointer *and* keyboard for 600ms, else fail the lock */ - for (i = 0, ptgrab = kbgrab = -1; i < 6; i++) { - if (ptgrab != GrabSuccess) { - ptgrab = XGrabPointer(dpy, lock->root, False, - ButtonPressMask | ButtonReleaseMask | - PointerMotionMask, GrabModeAsync, - GrabModeAsync, None, invisible, CurrentTime); - } - if (kbgrab != GrabSuccess) { - kbgrab = XGrabKeyboard(dpy, lock->root, True, - GrabModeAsync, GrabModeAsync, CurrentTime); - } - - /* input is grabbed: we can lock the screen */ - if (ptgrab == GrabSuccess && kbgrab == GrabSuccess) { - XMapRaised(dpy, lock->win); - if (rr->active) - XRRSelectInput(dpy, lock->win, RRScreenChangeNotifyMask); - - XSelectInput(dpy, lock->root, SubstructureNotifyMask); - return lock; - } - - /* retry on AlreadyGrabbed but fail on other errors */ - if ((ptgrab != AlreadyGrabbed && ptgrab != GrabSuccess) || - (kbgrab != AlreadyGrabbed && kbgrab != GrabSuccess)) - break; - - usleep(100000); - } - - /* we couldn't grab all input: fail out */ - if (ptgrab != GrabSuccess) - fprintf(stderr, "slock: unable to grab mouse pointer for screen %d\n", - screen); - if (kbgrab != GrabSuccess) - fprintf(stderr, "slock: unable to grab keyboard for screen %d\n", - screen); - return NULL; -} - -static void -usage(void) -{ - die("usage: slock [-v] [-f] [-m message] [cmd [arg ...]]\n"); -} - -int -main(int argc, char **argv) { - struct xrandr rr; - struct lock **locks; - struct passwd *pwd; - struct group *grp; - uid_t duid; - gid_t dgid; - const char *hash; - Display *dpy; - int i, s, nlocks, nscreens; - int count_fonts; - char **font_names; - - ARGBEGIN { - case 'v': - fprintf(stderr, "slock-"VERSION"\n"); - return 0; - case 'm': - message = EARGF(usage()); - break; - case 'f': - if (!(dpy = XOpenDisplay(NULL))) - die("slock: cannot open display\n"); - font_names = XListFonts(dpy, "*", 10000 /* list 10000 fonts*/, &count_fonts); - for (i=0; ipw_uid; - errno = 0; - if (!(grp = getgrnam(group))) - die("slock: getgrnam %s: %s\n", group, - errno ? strerror(errno) : "group entry not found"); - dgid = grp->gr_gid; - -#ifdef __linux__ - dontkillme(); -#endif - - /* the contents of hash are used to transport the current user name */ - hash = gethash(); - errno = 0; - - if (!(dpy = XOpenDisplay(NULL))) - die("slock: cannot open display\n"); - - /* drop privileges */ - if (setgroups(0, NULL) < 0) - die("slock: setgroups: %s\n", strerror(errno)); - if (setgid(dgid) < 0) - die("slock: setgid: %s\n", strerror(errno)); - if (setuid(duid) < 0) - die("slock: setuid: %s\n", strerror(errno)); - - /* Load picture */ - Imlib_Image buffer = imlib_load_image(background_image); - imlib_context_set_image(buffer); - int background_image_width = imlib_image_get_width(); - int background_image_height = imlib_image_get_height(); - - /* Create an image to be rendered */ - Screen *scr = ScreenOfDisplay(dpy, DefaultScreen(dpy)); - image = imlib_create_image(scr->width, scr->height); - imlib_context_set_image(image); - - /* Fill the image for every X monitor */ - XRRMonitorInfo *monitors; - int number_of_monitors; - monitors = XRRGetMonitors(dpy, RootWindow(dpy, XScreenNumberOfScreen(scr)), True, &number_of_monitors); - - int e; - for (e = 0; e < number_of_monitors; e++) { - imlib_blend_image_onto_image(buffer, 0, 0, 0, background_image_width, background_image_height, monitors[e].x, monitors[e].y, monitors[e].width, monitors[e].height); - } - - /* Clean up */ - imlib_context_set_image(buffer); - imlib_free_image(); - imlib_context_set_image(image); - - /* check for Xrandr support */ - rr.active = XRRQueryExtension(dpy, &rr.evbase, &rr.errbase); - - /* get number of screens in display "dpy" and blank them */ - nscreens = ScreenCount(dpy); - if (!(locks = calloc(nscreens, sizeof(struct lock *)))) - die("slock: out of memory\n"); - for (nlocks = 0, s = 0; s < nscreens; s++) { - if ((locks[s] = lockscreen(dpy, &rr, s)) != NULL) { - writemessage(dpy, locks[s]->win, s); - nlocks++; - } else { - break; - } - } - XSync(dpy, 0); - - /* did we manage to lock everything? */ - if (nlocks != nscreens) - return 1; - - /* run post-lock command */ - if (argc > 0) { - switch (fork()) { - case -1: - die("slock: fork failed: %s\n", strerror(errno)); - case 0: - if (close(ConnectionNumber(dpy)) < 0) - die("slock: close: %s\n", strerror(errno)); - execvp(argv[0], argv); - fprintf(stderr, "slock: execvp %s: %s\n", argv[0], strerror(errno)); - _exit(1); - } - } - - /* everything is now blank. Wait for the correct password */ - readpw(dpy, &rr, locks, nscreens, hash); - - return 0; -} diff --git a/user/.config/suckless/slock/util.h b/user/.config/suckless/slock/util.h deleted file mode 100644 index 6f748b890..000000000 --- a/user/.config/suckless/slock/util.h +++ /dev/null @@ -1,2 +0,0 @@ -#undef explicit_bzero -void explicit_bzero(void *, size_t); diff --git a/user/.config/user-dirs.dirs b/user/.config/user-dirs.dirs deleted file mode 100644 index 46a4d7e73..000000000 --- a/user/.config/user-dirs.dirs +++ /dev/null @@ -1,15 +0,0 @@ -# This file is written by xdg-user-dirs-update -# If you want to change or add directories, just edit the line you're -# interested in. All local changes will be retained on the next run. -# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped -# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an -# absolute path. No other format is supported. -# -XDG_DESKTOP_DIR="$HOME/temporal" -XDG_DOWNLOAD_DIR="$HOME/downloads" -XDG_TEMPLATES_DIR="$HOME/documents/templates" -XDG_PUBLICSHARE_DIR="$HOME/public" -XDG_DOCUMENTS_DIR="$HOME/documents" -XDG_MUSIC_DIR="$HOME/music" -XDG_PICTURES_DIR="$HOME/pictures" -XDG_VIDEOS_DIR="$HOME/videos" diff --git a/user/.config/vifm/colors/Default.vifm b/user/.config/vifm/colors/Default.vifm deleted file mode 100644 index 1647f96c3..000000000 --- a/user/.config/vifm/colors/Default.vifm +++ /dev/null @@ -1,87 +0,0 @@ -" You can edit this file by hand. -" The " character at the beginning of a line comments out the line. -" Blank lines are ignored. - -" The Default color scheme is used for any directory that does not have -" a specified scheme and for parts of user interface like menus. A -" color scheme set for a base directory will also -" be used for the sub directories. - -" The standard ncurses colors are: -" Default = -1 = None, can be used for transparency or default color -" Black = 0 -" Red = 1 -" Green = 2 -" Yellow = 3 -" Blue = 4 -" Magenta = 5 -" Cyan = 6 -" White = 7 - -" Light versions of colors are also available (they set bold -" attribute in terminals with less than 16 colors): -" LightBlack -" LightRed -" LightGreen -" LightYellow -" LightBlue -" LightMagenta -" LightCyan -" LightWhite - -" Available attributes (some of them can be combined): -" bold -" underline -" reverse or inverse -" standout -" italic (on unsupported systems becomes reverse) -" combine -" none - -" Vifm supports 256 colors you can use color numbers 0-255 -" (requires properly set up terminal: set your TERM environment variable -" (directly or using resources) to some color terminal name (e.g. -" xterm-256color) from /usr/lib/terminfo/; you can check current number -" of colors in your terminal with tput colors command) - -" highlight group cterm=attrs ctermfg=foreground_color ctermbg=background_color - -highlight clear - -highlight Win cterm=none ctermfg=white ctermbg=black -highlight Directory cterm=bold ctermfg=cyan ctermbg=default -highlight Link cterm=bold ctermfg=yellow ctermbg=default -highlight BrokenLink cterm=bold ctermfg=red ctermbg=default -highlight HardLink cterm=none ctermfg=yellow ctermbg=default -highlight Socket cterm=bold ctermfg=magenta ctermbg=default -highlight Device cterm=bold ctermfg=red ctermbg=default -highlight Fifo cterm=bold ctermfg=cyan ctermbg=default -highlight Executable cterm=bold ctermfg=green ctermbg=default -highlight Selected cterm=bold ctermfg=magenta ctermbg=default -highlight CurrLine cterm=bold,reverse ctermfg=default ctermbg=default -highlight TopLine cterm=none ctermfg=black ctermbg=white -highlight TopLineSel cterm=bold ctermfg=black ctermbg=default -highlight StatusLine cterm=bold ctermfg=black ctermbg=white -highlight WildMenu cterm=underline,reverse ctermfg=white ctermbg=black -highlight CmdLine cterm=none ctermfg=white ctermbg=black -highlight ErrorMsg cterm=none ctermfg=red ctermbg=black -highlight Border cterm=none ctermfg=black ctermbg=white -highlight OtherLine ctermfg=default ctermbg=default -highlight JobLine cterm=bold,reverse ctermfg=black ctermbg=white -highlight SuggestBox cterm=bold ctermfg=default ctermbg=default -highlight CmpMismatch cterm=bold ctermfg=white ctermbg=red -highlight AuxWin ctermfg=default ctermbg=default -highlight TabLine cterm=none ctermfg=white ctermbg=black -highlight TabLineSel cterm=bold,reverse ctermfg=default ctermbg=default -highlight User1 ctermfg=default ctermbg=default -highlight User2 ctermfg=default ctermbg=default -highlight User3 ctermfg=default ctermbg=default -highlight User4 ctermfg=default ctermbg=default -highlight User5 ctermfg=default ctermbg=default -highlight User6 ctermfg=default ctermbg=default -highlight User7 ctermfg=default ctermbg=default -highlight User8 ctermfg=default ctermbg=default -highlight User9 ctermfg=default ctermbg=default -highlight OtherWin ctermfg=default ctermbg=default -highlight LineNr ctermfg=default ctermbg=default -highlight OddLine ctermfg=default ctermbg=default diff --git a/new-config/.config/vifm/colors/gruvbox-dark.vifm b/user/.config/vifm/colors/gruvbox-dark.vifm similarity index 100% rename from new-config/.config/vifm/colors/gruvbox-dark.vifm rename to user/.config/vifm/colors/gruvbox-dark.vifm diff --git a/user/.config/vifm/scripts/README b/user/.config/vifm/scripts/README deleted file mode 100644 index 769495228..000000000 --- a/user/.config/vifm/scripts/README +++ /dev/null @@ -1,6 +0,0 @@ -This directory is dedicated for user-supplied scripts/executables. -vifm modifies its PATH environment variable to let user run those -scripts without specifying full path. All subdirectories are added -as well. File in a subdirectory overrules file with the same name -in parent directories. Restart might be needed to recognize files -in newly created or renamed subdirectories. \ No newline at end of file diff --git a/user/.config/vifm/scripts/vifmimg b/user/.config/vifm/scripts/vifmimg deleted file mode 100755 index e5d8763a0..000000000 --- a/user/.config/vifm/scripts/vifmimg +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash -readonly ID_PREVIEW="preview" - -#AUTO_REMOVE="yes" -# By enabling this option the script will remove the preview file after it is drawn -# and by doing so the preview will always be up-to-date with the file. -# This however, requires more CPU and therefore affects the overall performance. - -if [ -e "$FIFO_UEBERZUG" ]; then - if [[ "$1" == "draw" ]]; then - declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" - [x]="$2" [y]="$3" [width]="$4" [height]="$5" \ - [path]="${PWD}/$6") \ - > "$FIFO_UEBERZUG" - - elif [[ "$1" == "videopreview" ]]; then - echo -e "Loading preview..\nFile: $6" - [[ ! -d "/tmp${PWD}/$6/" ]] && mkdir -p "/tmp${PWD}/$6/" - [[ ! -f "/tmp${PWD}/$6.png" ]] && ffmpegthumbnailer -i "${PWD}/$6" -o "/tmp${PWD}/$6.png" -s 0 -q 10 - declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" - [x]="$2" [y]="$3" [width]="$4" [height]="$5" \ - [path]="/tmp${PWD}/$6.png") \ - > "$FIFO_UEBERZUG" - - elif [[ "$1" == "gifpreview" ]]; then - echo -e "Loading preview..\nFile: $6" - [[ ! -d "/tmp${PWD}/$6/" ]] && mkdir -p "/tmp${PWD}/$6/" && convert -coalesce "${PWD}/$6" "/tmp${PWD}/$6/$6.png" - for frame in $(ls -1 /tmp${PWD}/$6/$6*.png | sort -V); do - declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" - [x]="$2" [y]="$3" [width]="$4" [height]="$5" \ - [path]="$frame") \ - > "$FIFO_UEBERZUG" - # Sleep between frames to make the animation smooth. - sleep .07 - done - - elif [[ "$1" == "pdfpreview" ]]; then - echo -e "Loading preview..\nFile: $6" - [[ ! -d "/tmp${PWD}/$6/" ]] && mkdir -p "/tmp${PWD}/$6/" - [[ ! -f "/tmp${PWD}/$6.png" ]] && pdftoppm -png -singlefile "$6" "/tmp${PWD}/$6" - declare -p -A cmd=([action]=add [identifier]="$ID_PREVIEW" - [x]="$2" [y]="$3" [width]="$4" [height]="$5" \ - [path]="/tmp${PWD}/$6.png") \ - > "$FIFO_UEBERZUG" - - elif [[ "$1" == "clear" ]]; then - declare -p -A cmd=([action]=remove [identifier]="$ID_PREVIEW") \ - > "$FIFO_UEBERZUG" - [[ ! -z $AUTO_REMOVE ]] && [[ -f "/tmp${PWD}/$6.png" ]] && rm -f "/tmp${PWD}/$6.png" - [[ ! -z $AUTO_REMOVE ]] && [[ -d "/tmp${PWD}/$6/" ]] && rm -rf "/tmp${PWD}/$6/" - - fi -fi diff --git a/user/.config/vifm/scripts/vifmrun b/user/.config/vifm/scripts/vifmrun deleted file mode 100755 index 9eda32a99..000000000 --- a/user/.config/vifm/scripts/vifmrun +++ /dev/null @@ -1,15 +0,0 @@ -#!/usr/bin/env bash -export FIFO_UEBERZUG="/tmp/vifm-ueberzug-${PPID}" - -function cleanup { - rm "$FIFO_UEBERZUG" 2>/dev/null - pkill -P $$ 2>/dev/null -} - -rm "$FIFO_UEBERZUG" 2>/dev/null -mkfifo "$FIFO_UEBERZUG" -trap cleanup EXIT -tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser bash & - -vifm -cleanup diff --git a/user/.config/vifm/vifmrc b/user/.config/vifm/vifmrc index e7f5c4686..ca5c53ffa 100644 --- a/user/.config/vifm/vifmrc +++ b/user/.config/vifm/vifmrc @@ -13,7 +13,7 @@ " Since emacs is a GUI app and not a terminal app like vim, append the command " with an ampersand (&). -set vicmd=nvim +set vicmd=~/.local/bin/lvim " This makes vifm perform file operations on its own instead of relying on " standard utilities like `cp`. While using `cp` and alike is a more universal @@ -65,7 +65,7 @@ set norunexec " Selected color scheme " The following line will cause issues if using vifm.vim with regular vim. " Either use neovim or comment out the following line. -colorscheme distrotube +colorscheme gruvbox-dark " Format for displaying time in file list. For example: " TIME_STAMP_FORMAT=%m/%d-%H:%M @@ -175,10 +175,7 @@ command! reload :write | restart " Pdf filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c fileviewer *.pdf - \ vifmimg pdfpreview %px %py %pw %ph %c - \ %pc - \ vifmimg clear - " \ pdftotext -nopgbrk %c - + \ pdftotext -nopgbrk %c - " PostScript filextype *.ps,*.eps,*.ps.gz @@ -210,10 +207,7 @@ filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob, \*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx, \*.as[fx] - \ vifmimg videopreview %px %py %pw %ph %c - \ %pc - \ vifmimg clear - " \ ffprobe -pretty %c 2>&1 + \ ffprobe -pretty %c 2>&1 " Web filextype *.html,*.htm @@ -238,23 +232,11 @@ fileviewer *.[1-8] man ./%c | col -b " Images filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm - \ {View in sxiv} - \ sxiv -ia %f &, \ {View in imv} - \ imv -b 1D2330 -d %d &, - \ {View in feh} - \ feh %d &, - \ {View in cacaview} - \ cacaview %c &, -fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm - \ vifmimg draw %px %py %pw %ph %c - \ %pc - \ vifmimg clear -fileviewer *.gif - \ vifmimg gifpreview %px %py %pw %ph %c - \ %pc - \ vifmimg clear - + \ imv %f &, +fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.xpm,*.gif + \ wezterm imgcat --width %pw --height %ph %c:p %pd + " OpenRaster filextype *.ora \ {Edit in MyPaint} diff --git a/new-config/.config/waybar/config b/user/.config/waybar/config similarity index 100% rename from new-config/.config/waybar/config rename to user/.config/waybar/config diff --git a/new-config/.config/waybar/power-profiles b/user/.config/waybar/power-profiles similarity index 100% rename from new-config/.config/waybar/power-profiles rename to user/.config/waybar/power-profiles diff --git a/new-config/.config/waybar/style.css b/user/.config/waybar/style.css similarity index 100% rename from new-config/.config/waybar/style.css rename to user/.config/waybar/style.css diff --git a/user/.config/wezterm/wezterm.lua b/user/.config/wezterm/wezterm.lua index 07af3923b..38be7d68c 100644 --- a/user/.config/wezterm/wezterm.lua +++ b/user/.config/wezterm/wezterm.lua @@ -2,6 +2,7 @@ local wezterm = require 'wezterm' local gpus = wezterm.gui.enumerate_gpus() return { + enable_wayland = true, font = wezterm.font { family = 'mononoki Nerd Font', weight = 'Medium' @@ -9,7 +10,7 @@ return { color_scheme = 'Gruvbox dark, hard (base16)', default_prog = { '/usr/bin/fish' }, default_cursor_style = "BlinkingUnderline", - font_size = 13.5, + font_size = 12, check_for_updates = false, use_dead_keys = false, warn_about_missing_glyphs = false, @@ -28,5 +29,5 @@ return { exit_behavior = "Close", window_close_confirmation = 'NeverPrompt', tab_bar_at_bottom = false, - window_background_opacity = 0.96, + window_background_opacity = 0.9, } diff --git a/new-config/.config/xsettingsd/xsettingsd.conf b/user/.config/xsettingsd/xsettingsd.conf similarity index 100% rename from new-config/.config/xsettingsd/xsettingsd.conf rename to user/.config/xsettingsd/xsettingsd.conf diff --git a/user/.config/zathura/zathurarc b/user/.config/zathura/zathurarc index 86a9afb9c..126e180bb 100644 --- a/user/.config/zathura/zathurarc +++ b/user/.config/zathura/zathurarc @@ -35,7 +35,7 @@ set notification-fg "#458588" #00 set recolor-lightcolor "#262626" #00 set recolor-darkcolor "#ebdbb2" #06 -set recolor "true" +set recolor "false" # setting recolor-keep true will keep any color your pdf has. # if it is false, it'll just be black and white diff --git a/user/.gitconfig b/user/.gitconfig deleted file mode 100644 index f7effc496..000000000 --- a/user/.gitconfig +++ /dev/null @@ -1,4 +0,0 @@ -[user] - mail = misterclay@tutanota.com - name = Clay Gomera - email = misterclay@tutanota.com diff --git a/user/.gtkrc-2.0 b/user/.gtkrc-2.0 deleted file mode 100644 index bdeefb832..000000000 --- a/user/.gtkrc-2.0 +++ /dev/null @@ -1,14 +0,0 @@ -gtk-theme-name="gruvbox-dark-gtk" -gtk-icon-theme-name="gruvbox-dark-icons-gtk" -gtk-font-name="mononoki Nerd Font 10" -gtk-cursor-theme-name="Simp1e-Gruvbox-Dark" -gtk-cursor-theme-size=0 -gtk-toolbar-style=GTK_TOOLBAR_BOTH -gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR -gtk-button-images=1 -gtk-menu-images=1 -gtk-enable-event-sounds=1 -gtk-enable-input-feedback-sounds=1 -gtk-xft-antialias=1 -gtk-xft-hinting=1 -gtk-xft-hintstyle="hintfull" diff --git a/user/.icons/default/index.theme b/user/.icons/default/index.theme index 817baa4cb..27401a6a0 100644 --- a/user/.icons/default/index.theme +++ b/user/.icons/default/index.theme @@ -1,4 +1,4 @@ -# This file is written by LXAppearance. Do not edit. +# This file is written by nwg-look. Do not edit. [Icon Theme] Name=Default Comment=Default Cursor Theme diff --git a/user/.moc/config b/user/.moc/config deleted file mode 100644 index c0d841f97..000000000 --- a/user/.moc/config +++ /dev/null @@ -1,697 +0,0 @@ -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom moc config -## - -# This is a configuration file for the MOC player. It should be named -# 'config' and placed in the ~/.moc directory. As this file can specify -# commands which invoke other applications, MOC will refuse to start if it -# is not owned by either root or the current user, or if it is writable by -# anyone other than its owner. All options are given with their default -# values, and therefore commented. - -# Comments begin with '#'. -# You can use quotes and escape ('\') in parameters. -# -# You can have variable values substituted by enclosing the variable name -# as "${...}". (This only applies to the portion of the option following -# the '='.) Variables are substituted first from the environment then, -# if not found, from the configuration options. (Note that the value of -# a configuration option substituted is that which it has at the time the -# substitution variable is encountered.) If there is a naming conflict -# between an environment and configuration variable, you may be able to -# resolve it by using lowercase as the environment variable matches are -# case-sensitive whereas the configuration variables are not. -# -# You can also use the form "${...:-...}" where the value in the second -# position will be substituted if the variable name given in the first -# position is unset or null. -# -# So, for example: -# -# MusicDir = /music/${USER:-public} -# Fastdir1 = ${MusicDir}/mp3/rock -# Fastdir2 = ${MusicDir}/mp3/electronic -# Fastdir3 = ${MusicDir}/mp3/rap -# Fastdir4 = ${MusicDir}/mp3/etc -# -# Variable names are limited to those accepted by the BASH shell; that -# is, those comprising the upper- and lowercase ASCII characters, digits -# and the underscore. -# -# If you need to use the "${" sequence for any other purpose, write "$${" -# and it will be replaced by "${" and not treated as a substitution. -# -# Some options take lists of strings as their values. The strings are -# separated by colons. Additional strings can be appended to the list -# using "+=" in place of a plain "=" to assign the value. For an example, -# see the XTerms option. -# -# You can override any configuration option when you run MOC using the -# '-O' command line option: -# -# mocp -O AutoNext=no -O messagelingertime=1 -O XTerms+=xxt:xwt -# -# This command line option can be repeated as many times as needed and -# the configuration option name is not case sensitive. (Note that MOC -# does not perform variable substitution on the value of such overridden -# configuration options.) Most option values are set before the -# configuration file is processed (which allows the new values to be -# picked up by substitutions), however list-valued options are overridden -# afterwards (which gives the choice of whether the configured values are -# replaced or added to). - -# Remember that the client and server are separate processes and the -# server will retain the configuration values formed from the environment -# within which it was originally started. - -# Show file titles (title, author, album) instead of file names? -ReadTags = yes - -# In which directory do you store your music files? If you specify it -# you will be able to jump straight to this directory with the '-m' -# parameter or the 'm' command. This can also point to a playlist. -# -# Example: MusicDir = "/home/joe/music" -# -MusicDir = "~/Music" - -# Start in the music directory by default? If set to 'no', start -# in the current directory by default. A single directory on -# the command line takes precedence. -StartInMusicDir = yes - -# How to sort? FileName is the option's only value for now. -#Sort = FileName - -# Show errors in the streams (for example, broken frames in MP3 files)? -#ShowStreamErrors = no - -# Ignore CRC errors in MP3 files? Most players do that, so the default -# value is 'yes'. -#MP3IgnoreCRCErrors = yes - -# Set playback toggles. -#Repeat = no -#Shuffle = no -#AutoNext = yes - -# Default FormatString: -# -# %n - Track number -# %a - Artist -# %A - Album -# %t - Title -# %(X:TRUE:FALSE) - Ternary expression: if X exists, do TRUE, -# otherwise FALSE. The escape character must -# be doubled (i.e., '\\'). (See zshmisc -# documentation for more information.) -# -#FormatString = "%(n:%n :)%(a:%a - :)%(t:%t:)%(A: \(%A\):)" - -# Input and output buffer sizes (in kilobytes). -#InputBuffer = 512 # Minimum value is 32KB -#OutputBuffer = 512 # Minimum value is 128KB - -# How much to fill the input buffer before playing (in kilobytes)? -# This can't be greater than the value of InputBuffer. While this has -# a positive effect for network streams, it also causes the broadcast -# audio to be delayed. -#Prebuffering = 64 - -# Use this HTTP proxy server for internet streams. If not set, the -# environment variables http_proxy and ALL_PROXY will be used if present. -# -# Format: HTTPProxy = PROXY_NAME:PORT -# -#HTTPProxy = - -# Sound driver - OSS, ALSA, JACK, SNDIO (on OpenBSD) or null (only for -# debugging). You can enter more than one driver as a colon-separated -# list. The first working driver will be used. -#SoundDriver = JACK:ALSA:OSS - -# Jack output settings. -#JackClientName = "moc" -#JackStartServer = no -#JackOutLeft = "system:playback_1" -#JackOutRight = "system:playback_2" - -# OSS output settings. -#OSSDevice = /dev/dsp -#OSSMixerDevice = /dev/mixer -#OSSMixerChannel1 = pcm # 'pcm', 'master' or 'speaker' -#OSSMixerChannel2 = master # 'pcm', 'master' or 'speaker' - -# ALSA output settings. If you need to dump the audio produced by MOC -# to a file for diagnostic purposes, the following setting of 'ALSADevice' -# should do that: -# -# ALSADevice=tee:hw,'/tmp/out.wav',wav -# -#ALSADevice = default -#ALSAMixer1 = PCM -#ALSAMixer2 = Master - -# Under some circumstances on 32-bit systems, audio played continously -# for long periods of time may begin to stutter. Setting this option to -# 'yes' will force MOC to avoid ALSA's dmix resampling and prevent this -# stutter. But it also has other implications: -# -# - You may experience unacceptably high CPU load. -# - ALSA's resampler plug-ins will not be used. -# - The resampling may be of lower quality than ALSA would provide. -# - You may need to try different "ResampleMethod" option settings. -# - The "ForceSampleRate" option may be ineffective. -# - If libsamplerate is not configured, many audios may be unplayable. -# -#ALSAStutterDefeat = no - -# Save software mixer state? -# If enabled, a file 'softmixer' will be created in '~/.moc/' storing the -# mixersetting set when the server is shut down. -# Note that there is a "hidden" 'Amplification' setting in that file. -# Amplification (0-200) is used to scale the mixer setting (0-100). This -# results in a higher signal amplitude but may also produce clipping. -#Softmixer_SaveState = yes - -# Save equalizer state? -# If enabled, a file 'equalizer' will be created in '~/.moc/' storing the -# equalizer settings when the server is shut down. -# Note that there is a "hidden" 'Mixin' setting in that file. -# Mixin (0.0-1.0) is used to determine how much of the original signal is -# used after equalizing. 0 means to only use the equalized sound, while 1 -# effectively disabled the mixer. The default is 0.25. -#Equalizer_SaveState = yes - -# Show files with dot at the beginning? -ShowHiddenFiles = no - -# Hide file name extensions? -HideFileExtension = yes - -# Show file format in menu? -ShowFormat = yes - -# Show file time in menu? Possible values: 'yes', 'no' and 'IfAvailable' -# (meaning show the time only when it is already known, which often works -# faster). -ShowTime = yes - -# Show time played as a percentage in the time progress bar. -#ShowTimePercent = no - -# Values of the TERM environment variable which are deemed to be managed by -# screen(1). If you are setting a specific terminal using screen(1)'s -# '-T ' option, then you will need to add 'screen.' to this list. -# Note that this is only a partial test; the value of the WINDOW environment -# variable must also be a number (which screen(1) sets). -#ScreenTerms = screen:screen-w:vt100 - -# Values of the TERM environment variable which are deemed to be xterms. If -# you are using MOC within screen(1) under an xterm, then add screen(1)'s -# TERM setting here as well to cause MOC to update the xterm's title. -#XTerms = xterm -#XTerms += xterm-colour:xterm-color -#XTerms += xterm-256colour:xterm-256color -#XTerms += rxvt:rxvt-unicode -#XTerms += rxvt-unicode-256colour:rxvt-unicode-256color -#XTerms += eterm - -# Theme file to use. This can be absolute path or relative to -# /usr/share/moc/themes/ (depends on installation prefix) or -# ~/.moc/themes/ . -# -# Example: Theme = laras_theme -# -Theme = transparent-background - -# The theme used when running on an xterm. -# -# Example: XTermTheme = transparent-background -# -#XTermTheme = - -# Should MOC try to autoload the default lyrics file for an audio? (The -# default lyrics file is a text file with the same file name as the audio -# file name with any trailing "extension" removed.) -#AutoLoadLyrics = yes - -# MOC directory (where pid file, socket and state files are stored). -# You can use ~ at the beginning. -#MOCDir = ~/.moc - -# Use mmap() to read files. mmap() is much slower on NFS. -#UseMMap = no - -# Use MIME to identify audio files. This can make for slower loading -# of playlists but is more accurate than using "extensions". -#UseMimeMagic = no - -# Assume this encoding for ID3 version 1/1.1 tags (MP3 files). Unlike -# ID3v2, UTF-8 is not used here and MOC can't guess how tags are encoded. -# Another solution is using librcc (see the next option). This option is -# ignored if UseRCC is set to 'yes'. -#ID3v1TagsEncoding = WINDOWS-1250 - -# Use librcc to fix ID3 version 1/1.1 tags encoding. -#UseRCC = yes - -# Use librcc to filenames and directory names encoding. -#UseRCCForFilesystem = yes - -# When this option is set the player assumes that if the encoding of -# ID3v2 is set to ISO-8859-1 then the ID3v1TagsEncoding is actually -# that and applies appropriate conversion. -#EnforceTagsEncoding = no - -# Enable the conversion of filenames from the local encoding to UTF-8. -#FileNamesIconv = no - -# Enable the conversion of the xterm title from UTF-8 to the local encoding. -#NonUTFXterm = no - -# Should MOC precache files to assist gapless playback? -#Precache = yes - -# Remember the playlist after exit? -SavePlaylist = yes - -# When using more than one client (interface) at a time, do they share -# the playlist? -SyncPlaylist = yes - -# Choose a keymap file (relative to '~/.moc/' or using an absolute path). -# An annotated example keymap file is included ('keymap.example'). -# -# Example: Keymap = my_keymap -# -#Keymap = - -# Use ASCII rather than graphic characters for drawing lines. This -# helps on some terminals. -#ASCIILines = no - -# FastDirs, these allow you to jump directly to a directory, the key -# bindings are in the keymap file. -# -# Examples: Fastdir1 = /mp3/rock -# Fastdir2 = /mp3/electronic -# Fastdir3 = /mp3/rap -# Fastdir4 = /mp3/etc -# -#Fastdir1 = -#Fastdir2 = -#Fastdir3 = -#Fastdir4 = -#Fastdir5 = -#Fastdir6 = -#Fastdir7 = -#Fastdir8 = -#Fastdir9 = -#Fastdir10 = - -# How fast to seek (in number of seconds per keystroke). The first -# option is for normal seek and the second for silent seek. -#SeekTime = 1 -#SilentSeekTime = 5 - -# PreferredDecoders allows you to specify which decoder should be used -# for any given audio format. It is a colon-separated list in which -# each entry is of the general form 'code(decoders)', where 'code' -# identifies the audio format and 'decoders' is a comma-separated list -# of decoders in order of preference. -# -# The audio format identifier may be either a filename extension or a -# MIME media type. If the latter, the format is 'type/subtype' (e.g., -# 'audio/flac'). Because different systems may give different MIME -# media types, any 'x-' prefix of the subtype is ignored both here and -# in the actual file MIME type (so all combinations of 'audio/flac' and -# 'audio/x-flac' match each other). -# -# For Internet streams the matching is done on MIME media type and on -# actual content. For files the matches are made on MIME media type -# (if the 'UseMimeMagic' option is set) and on filename extension. The -# MIME media type of a file is not determined until the first entry for -# MIME is encountered in the list. -# -# The matching is done in the order of appearance in the list with any -# entries added from the command line being matched before those listed -# here. Therefore, if you place all filename extension entries before -# all MIME entries you will speed up MOC's processing of directories -# (which could be significant for remote file systems). -# -# The decoder list may be empty, in which case no decoders will be used -# for files (and files with that audio format ignored) while Internet -# streams will be assessed on the actual content. Any decoder position -# may contain an asterisk, in which case any decoder not otherwise listed -# which can handle the audio format will be used. It is not an error to -# list the same decoder twice, but neither does it make sense to do so. -# -# If you have a mix of audio and non-audio files in your directories, you -# may wish to include entries at top of the list which ignore non-audio -# files by extension. -# -# In summary, the PreferredDecoders option provides fine control over the -# type of matching which is performed (filename extension, MIME media -# type and streamed media content) and which decoder(s) (if any) are used -# based on the option's list entries and their ordering. -# -# Examples: aac(aac,ffmpeg) first try FAAD2 for AACs then FFmpeg -# mp3() ignore MP3 files -# wav(*,sndfile) use sndfile for WAV as a last resort -# ogg(vorbis,*):flac(flac,*) try Xiph decoders first -# ogg():audio/ogg() ignore OGG files, and -# force Internet selection by content -# gz():html() ignore some non-audio files -# -# Any unspecified audio formats default to trying all decoders. -# Any unknown (or misspelt) drivers are ignored. -# All names are case insensitive. -# The default setting reflects the historical situation modified by -# the experience of users. -# -#PreferredDecoders = aac(aac,ffmpeg):m4a(ffmpeg) -#PreferredDecoders += mpc(musepack,*,ffmpeg):mpc8(musepack,*,ffmpeg) -#PreferredDecoders += sid(sidplay2):mus(sidplay2) -#PreferredDecoders += wav(sndfile,*,ffmpeg) -#PreferredDecoders += wv(wavpack,*,ffmpeg) -#PreferredDecoders += audio/aac(aac):audio/aacp(aac):audio/m4a(ffmpeg) -#PreferredDecoders += audio/wav(sndfile,*) - -# The following PreferredDecoders attempt to handle the ambiguity surrounding -# container types such as OGG for files. The first two entries will force -# a local file to the correct decoder (assuming the .ogg file contains Vorbis -# audio), while the MIME media types will cause Internet audio streams to -# be assessed on content (which may be either Vorbis or Speex). -# -#PreferredDecoders += ogg(vorbis,ffmpeg):oga(vorbis,ffmpeg):ogv(ffmpeg) -#PreferredDecoders += opus(ffmpeg) -#PreferredDecoders += spx(speex) -#PreferredDecoders += application/ogg(vorbis):audio/ogg(vorbis) - -# Which resampling method to use. There are a few methods of resampling -# sound supported by libresamplerate. The default is 'Linear') which is -# also the fastest. A better description can be found at: -# -# http://www.mega-nerd.com/libsamplerate/api_misc.html#Converters -# -# but briefly, the following methods are based on bandlimited interpolation -# and are higher quality, but also slower: -# -# SincBestQuality - really slow (I know you probably have an xx GHz -# processor, but it's still not enough to not see -# this in the top output :) The worst case -# Signal-to-Noise Ratio is 97dB. -# SincMediumQuality - much faster. -# SincFastest - the fastest bandlimited interpolation. -# -# And these are lower quality, but much faster methods: -# -# ZeroOrderHold - really poor quality, but it's really fast. -# Linear - a bit better and a bit slower. -# -#ResampleMethod = Linear - -# Always use this sample rate (in Hz) when opening the audio device (and -# resample the sound if necessary). When set to 0 the device is opened -# with the file's rate. -#ForceSampleRate = 0 - -# By default, even if the sound card reports that it can output 24bit samples -# MOC converts 24bit PCM to 16bit. Setting this option to 'yes' allows MOC -# to use 24bit output. (The MP3 decoder, for example, uses this format.) -# This is disabled by default because there were reports that it prevents -# MP3 files from playing on some soundcards. -#Allow24bitOutput = no - -# Use realtime priority for output buffer thread. This will prevent gaps -# while playing even with heavy load. The user who runs MOC must have -# permissions to set such a priority. This could be dangerous, because it -# is possible that a bug in MOC will freeze your computer. -#UseRealtimePriority = no - -# The number of audio files for which MOC will cache tags. When this limit -# is reached, file tags are discarded on a least recently used basis (with -# one second resolution). You can disable the cache by giving it a size of -# zero. Note that if you decrease the cache size below the number of items -# currently in the cache, the number will not decrease immediately (if at -# all). -#TagsCacheSize = 256 - -# Number items in the playlist. -PlaylistNumbering = yes - -# Main window layouts can be configured. You can change the position and -# size of the menus (directory and playlist). You have three layouts and -# can switch between then using the 'l' key (standard mapping). By default, -# only two layouts are configured. -# -# The format is as follows: -# -# - Each layout is described as a list of menu entries. -# - Each menu entry is of the form: -# -# menu(position_x, position_y, width, height) -# -# where 'menu' is either 'directory' or 'playlist'. -# - The parameters define position and size of the menu. They can -# be absolute numbers (like 10) or a percentage of the screen size -# (like 45%). -# - 'width' and 'height' can have also value of 'FILL' which means -# fill the screen from the menu's position to the border. -# - Menus may overlap. -# -# You must describe at least one menu (default is to fill the whole window). -# There must be at least one layout (Layout1) defined; others can be empty. -# -# Example: Layout1 = playlist(50%,50%,50%,50%) -# Layout2 = "" -# Layout3 = "" -# -# Just one layout, the directory will occupy the whole -# screen, the playlist will have 1/4 of the screen size -# and be positioned at lower right corner. (Note that -# because the playlist will be hidden by the directory -# you will have to use the TAB key to make the playlist -# visible.) -# -# Example: Layout1 = playlist(0,0,100%,10):directory(0,10,100%,FILL) -# -# The screen is split into two parts: playlist at the top -# and the directory menu at the bottom. Playlist will -# occupy 10 lines and the directory menu the rest. -# -#Layout1 = directory(0,0,50%,100%):playlist(50%,0,FILL,100%) -#Layout2 = directory(0,0,100%,100%):playlist(0,0,100%,100%) -#Layout3 = "" - -# When the song changes, should the menu be scrolled so that the currently -# played file is visible? -#FollowPlayedFile = yes - -# What to do if the interface was started and the server is already playing -# something from the playlist? If CanStartInPlaylist is set to 'yes', the -# interface will switch to the playlist. When set to 'no' it will start -# from the last directory. -#CanStartInPlaylist = yes - -# Executing external commands (1 - 10) invoked with key commands (F1 - F10 -# by default). -# -# Some arguments are substituted before executing: -# -# %f - file path -# %i - title made from tags -# %S - start block mark (in seconds) -# %E - end block mark (in seconds) -# -# Data from tags can also be substituted: -# -# %t - title -# %a - album -# %r - artist -# %n - track -# %m - time of the file (in seconds) -# -# The parameters above apply to the currently selected file. If you change -# them to capital letters, they are taken from the file currently playing. -# -# Programs are run using execv(), not a shell, so you can't do things like -# redirecting the output to a file. The command string is split using blank -# characters as separators; the first element is the command to be executed -# and the rest are its parameters, so if you use "echo Playing: %I" we run -# program 'echo' (from $PATH) with 2 parameters: the string 'Playing:' and -# the title of the file currently playing. Even if the title contains -# spaces, it's still one parameter and it's safe if it contains `rm -rf /`. -# -# Examples: ExecCommand1 = "cp %f /mnt/usb_drive" -# ExecCommand2 = "/home/joe/now_playing %I" -# -#ExecCommand1 = -#ExecCommand2 = -#ExecCommand3 = -#ExecCommand4 = -#ExecCommand5 = -#ExecCommand6 = -#ExecCommand7 = -#ExecCommand8 = -#ExecCommand9 = -#ExecCommand10 = - -# Display the cursor in the line with the selected file. Some braille -# readers (the Handy Tech modular series ZMU 737, for example) use the -# cursor to focus and can make use of it to present the file line even -# when other fields are changing. -#UseCursorSelection = no - -# Set the terminal title when running under xterm. -#SetXtermTitle = yes - -# Set the terminal title when running under screen(1). If MOC can detect -# that it is running under screen(1), then it will set an appropriate -# title (see description of ScreenTerms above). However, if multiple -# levels of screen management are involved, detection might fail and this -# could cause a screen upset. In that situation you can use this option -# to force screen titles off. -#SetScreenTitle = yes - -# Display full paths instead of just file names in the playlist. -#PlaylistFullPaths = yes - -# The following setting describes how block markers are displayed in -# the play time progress bar. Its value is a string of exactly three -# characters. The first character is displayed in a position which -# corresponds to the time marked as the start of a block and the last -# character to the time marked as the end of the block. The middle -# character is displayed instead if both the start and the end of the block -# would fall in the same position (within the resolution of the interface). -# You can turn off the displaying of these block marker positions by using -# three space characters. -#BlockDecorators = "`\"'" - -# How long (in seconds) to leave a message displayed on the screen. -# Setting this to a high value allows you to scroll through the messages -# using the 'hide_message' key. Setting it to zero means you'll have to -# be quick to see any message at all. Any new messages will be queued up -# and displayed after the current message's linger time expires. -#MessageLingerTime = 3 - -# Does MOC display a prefix on delayed messages indicating -# the number of queued messages still to be displayed? -#PrefixQueuedMessages = yes - -# String to append to the queued message count if any -# error messages are still waiting to be displayed. -#ErrorMessagesQueued = "!" - -# Self-describing ModPlug options (with 'yes' or 'no' values). -#ModPlug_Oversampling = yes -#ModPlug_NoiseReduction = yes -#ModPlug_Reverb = no -#ModPlug_MegaBass = no -#ModPlug_Surround = no - -# ModPlug resampling mode. -# Valid values are: -# -# FIR - 8 tap fir filter (extremely high quality) -# SPLINE - Cubic spline interpolation (high quality) -# LINEAR - Linear interpolation (fast, good quality) -# NEAREST - No interpolation (very fast, extremely bad sound quality) -# -#ModPlug_ResamplingMode = FIR - -# Other self-describing ModPlug audio characteristic options. -# (Note that the 32 bit sample size seems to be buggy.) -#ModPlug_Channels = 2 # 1 or 2 channels -#ModPlug_Bits = 16 # 8, 16 or 32 bits -#ModPlug_Frequency = 44100 # 11025, 22050, 44100 or 48000 Hz -#ModPlug_ReverbDepth = 0 # 0 (quiet) to 100 (loud) -#ModPlug_ReverbDelay = 0 # Delay in ms (usually 40-200ms) -#ModPlug_BassAmount = 0 # 0 (quiet) to 100 (loud). -#ModPlug_BassRange = 10 # Cutoff in Hz (10-100). -#ModPlug_SurroundDepth = 0 # Surround level 0(quiet)-100(heavy). -#ModPlug_SurroundDelay = 0 # Surround delay in ms, usually 5-40ms. -#ModPlug_LoopCount = 0 # 0 (never), n (times) or -1 (forever) - -# Self-describing TiMidity audio characteristic options. -#TiMidity_Rate = 44100 # Between 8000 and 48000 -#TiMidity_Bits = 16 # 8 or 16 -#TiMidity_Channels = 2 # 1 or 2 -#TiMidity_Volume = 100 # 0 to 800 - -# You can setup a TiMidity-Config-File here. -# Leave it unset to use library defaults (/etc/timidity.cfg mostly). -# Setting it to 'yes' also uses the library defaults. -# Set it to 'no' if you don't have any configuration file. -# Otherwise set it to the name of a specific file. -#TiMidity_Config = - -# Self-describing SidPlay2 audio characteristic options. -#SidPlay2_DefaultSongLength = 180 # If not in database (in seconds) -#SidPlay2_MinimumSongLength = 0 # Play at least n (in seconds) -#SidPlay2_Frequency = 44100 # 4000 to 48000 -#SidPlay2_Bits = 16 # 8 or 16 -#SidPlay2_Optimisation = 0 # 0 (worst quality) to 2 (best quality) - -# Set path to a HVSC-compatible database (if not set, database is disabled). -#SidPlay2_Database = - -# SidPlay2 playback Mode: -# -# "M": Mono (best for many SIDs) -# "S": Stereo -# "L"/"R": Left / Right -# -#SidPlay2_PlayMode = "M" - -# Use start-song information from SID ('yes') or start at first song -# ('no'). Songs before the start-song won't be played. (Note that this -# option previously took the values 1 and 0; these are now deprecated -# in favour of 'yes' and 'no'.) -#SidPlay2_StartAtStart = yes - -# Play sub-tunes. (Note that this option previously took the values 1 -# and 0; these are now deprecated in favour of 'yes' and 'no'.) -#SidPlay2_PlaySubTunes = yes - -# Run the OnSongChange command when a new song starts playing. -# Specify the full path (i.e. no leading '~') of an executable to run. -# Arguments will be passed, and you can use the following escapes: -# -# %a artist -# %r album -# %f filename -# %t title -# %n track -# %d file duration in XX:YY form -# %D file duration, number of seconds -# -# No pipes/redirects can be used directly, but writing a shell script -# can do the job. -# -# Example: OnSongChange = "/home/jack/.moc/myscript %a %r" -# -#OnSongChange = - -# If RepeatSongChange is 'yes' then MOC will execute the command every time -# a song starts playing regardless of whether or not it is just repeating. -# Otherwise the command will only be executed when a different song is -# started. -#RepeatSongChange = no - -# Run the OnStop command (full path, no arguments) when MOC changes state -# to stopped (i.e., when user stopped playing or changes a song). -#OnStop = "/home/jack/.moc/myscript_on_stop" - -# This option determines which song to play after finishing all the songs -# in the queue. Setting this to 'yes' causes MOC to play the song which -# follows the song being played before queue playing started. If set to -# 'no', MOC will play the song following the last song in the queue if it -# is in the playlist. The default is 'yes' because this is the way other -# players usually behave. (Note that this option previously took the -# values 1 and 0; these are now deprecated in favour of 'yes' and 'no'.) -#QueueNextSongReturn = yes diff --git a/user/.moc/themes/black_theme b/user/.moc/themes/black_theme deleted file mode 100644 index 955ca38cb..000000000 --- a/user/.moc/themes/black_theme +++ /dev/null @@ -1,34 +0,0 @@ -# Black theme by Arn - -background = white black -frame = white black -window_title = white black -directory = white black -selected_directory = white black reverse -playlist = white black -selected_playlist = white black reverse -file = white black -selected_file = white black reverse -marked_file = white black bold -marked_selected_file = white black bold,reverse -info = white black underline -status = white black -title = white black bold -state = white black -current_time = white black bold -time_left = white black bold -total_time = white black bold -time_total_frames = white black -sound_parameters = white black bold -legend = white black -disabled = white black -enabled = white black bold -empty_mixer_bar = white black -filled_mixer_bar = white black reverse -empty_time_bar = white black -filled_time_bar = white black reverse -entry = white black -entry_title = white black -error = white black bold,underline -message = white black -plist_time = white black diff --git a/user/.moc/themes/darkdot_theme b/user/.moc/themes/darkdot_theme deleted file mode 100644 index 8bbec1b4f..000000000 --- a/user/.moc/themes/darkdot_theme +++ /dev/null @@ -1,34 +0,0 @@ -# Theme to match the 'darkdot' vim theme, by David Lazar (david_bv|at|yahoo|com) - -background = default default -frame = white default -window_title = white default -directory = blue default bold -selected_directory = black cyan -playlist = white default bold -selected_playlist = black cyan -file = white default -selected_file = black cyan -marked_file = white default bold -marked_selected_file = white cyan bold -info = white default -status = white default -title = white default bold -state = white default bold -current_time = white default bold -time_left = black default bold -total_time = white default -time_total_frames = white default -sound_parameters = white default bold -legend = white default -disabled = black default bold -enabled = white default bold -empty_mixer_bar = white default -filled_mixer_bar = black white -empty_time_bar = white default -filled_time_bar = black white -entry = white default -entry_title = white default -error = white red bold -message = white default -plist_time = white default diff --git a/user/.moc/themes/example_theme b/user/.moc/themes/example_theme deleted file mode 100644 index 44439d2c2..000000000 --- a/user/.moc/themes/example_theme +++ /dev/null @@ -1,125 +0,0 @@ -# Example color theme for MOC. -# You can use a theme by copying it to ~/.moc/themes directory and using -# Theme config option or -T command line option. -# -# Fill free to make your own themes and send me them. It will be included in -# official MOC releases or on the MOC web site. -# -# The format of this file is: -# Lines beginning with # are comments. -# Blank lines are ignored. -# Every other line is expected to be in format: -# -# ELEMENT = FOREGROUND_COLOR BACKGROUND_COLOR [ATTRIBUTE[,ATTRIBUTE,..]] -# -# or -# -# colordef COLOR = RED GREEN BLUE -# -# Where names are case insensitive. -# -# ELEMENT is an element of MOC interface. This can be: -# background - default background for regions when nothing is displayed -# frame - frames for windows -# window_title - the title of the window (eg name of the current -# directory) -# directory - a directory in the menu -# selected_directory - a directory that is selected using arrows -# playlist - playlist file -# selected_playlist - see selected directory -# file - an ordinary file in the menu (mp3, ogg, ...) -# selected_file - see selected directory -# marked_file - a file that is currently being played -# marked_selected_file - a file that is currently being played and is also -# selected using arrows -# info - information shown at the right side of files -# selected_info - see selected directory -# marked_info - a file (its time) that is currently being played -# marked_selected_info - a file (its time) that is currently being played -# and is also selected using arrows -# status - the status line with a message -# title - the title of the file that is currently being played -# state - the state: play, stop, or paused (>, [], ||) -# current_time - current time of playing -# time_left - the time left to the end of playing the current file -# total_time - the length of the currently played file -# time_total_frames - the brackets outside the total time of a file ([10:13]) -# sound_parameters - the frequency and bitrate numbers -# legend - "KHz" and "Kbps" -# disabled - disabled element ([STEREO]) -# enabled - enabled element -# empty_mixer_bar - "empty" part of the volume bar -# filled_mixer_bar - "filled" part of the volume bar -# empty_time_bar - "empty" part of the time bar -# filled_time_bar - "filled" part of the time bar -# entry - place wher user can type a search query or a file name -# entry_title - the title of an entry -# error - error message -# message - information message -# plist_time - total time of displayed items -# -# FOREGOUND_COLOR and BACKGROUND_COLOR can have one of the following values: -# black, red, green, yellow, blue, magenta, cyan, white, default (can be -# transparent), grey (not standard, but works) -# -# Optional ATTRIBUTE parameters can be (from ncurses manual): -# normal - default (no highlight) -# standout - best highlighting mode of the terminal -# underline - underlining -# reverse - reverse video -# blink - blinking -# dim - half bright -# bold - extra bright or bold -# protect - protected mode -# -# You can specify a list of attributes separated by commas: attr1,attr2,attr3. -# Don't use spaces anywhere in such a list. -# -# With colordef you can change the definition of a color. It works only if -# your terminal supports it, if not those lines will be silently ignored. -# COLOR must be a valid color name and the RED GREEN and BLUE are numbers -# from 0 to 1000. Example: -# -# colordef red = 1000 0 0 -# -# HINT: you have only 8 colors, but combined with attributes bold and/or -# reversed you actually get more colors. -# -# If you don't specify some elements, the default values will be used. -# -# Here follows the default configuration: -background = white blue -frame = white blue -window_title = white blue -directory = white blue bold -selected_directory = white black bold -playlist = white blue bold -selected_playlist = white black bold -file = white blue -selected_file = white black -marked_file = green blue bold -marked_selected_file = green black bold -info = blue blue bold -selected_info = blue black bold -marked_info = blue blue bold -marked_selected_info = blue black bold -status = white blue -title = white blue bold -state = white blue bold -current_time = white blue bold -time_left = white blue bold -total_time = white blue bold -time_total_frames = white blue -sound_parameters = white blue bold -legend = white blue -disabled = blue blue bold -enabled = white blue bold -empty_mixer_bar = white blue -filled_mixer_bar = black cyan -empty_time_bar = white blue -filled_time_bar = black cyan -entry = white blue -entry_title = black cyan -error = red blue bold -message = green blue bold -plist_time = white blue diff --git a/user/.moc/themes/green_theme b/user/.moc/themes/green_theme deleted file mode 100644 index 4df566758..000000000 --- a/user/.moc/themes/green_theme +++ /dev/null @@ -1,35 +0,0 @@ -# green theme by Jacek Lehmann -# best viewed on shaded or black terminal - -background = default default -frame = black default -window_title = green default -directory = red default -selected_directory = yellow default -playlist = blue default -selected_playlist = magenta default -file = green default -selected_file = cyan default -marked_file = green default bold -marked_selected_file = cyan default bold -info = cyan default -status = magenta default -title = green default -state = magenta default -current_time = magenta default -time_left = cyan default -total_time = cyan default -time_total_frames = magenta default -sound_parameters = cyan default -legend = magenta default -disabled = black default -enabled = yellow default -empty_mixer_bar = green default -filled_mixer_bar = black green -empty_time_bar = green default -filled_time_bar = black green -entry = yellow default -entry_title = red default -error = red default -message = yellow default -plist_time = magenta default diff --git a/user/.moc/themes/moca_theme b/user/.moc/themes/moca_theme deleted file mode 100644 index 58c2aa056..000000000 --- a/user/.moc/themes/moca_theme +++ /dev/null @@ -1,36 +0,0 @@ -# -# Theme: moca -# Author: Nicola Vitale -# -background = white black -frame = white black -window_title = yellow black bold -directory = white black -selected_directory = white black bold -playlist = white black -selected_playlist = cyan black bold -file = white black -selected_file = yellow red bold -marked_file = cyan black blink,bold -marked_selected_file = cyan red blink,bold -info = magenta black bold -status = yellow black bold -title = cyan black bold -state = red black bold -current_time = green black bold -time_left = magenta black bold -total_time = red black bold -time_total_frames = red black bold -sound_parameters = white black bold -legend = white black -disabled = white black bold -enabled = blue black bold -empty_mixer_bar = cyan blue -filled_mixer_bar = blue cyan -empty_time_bar = green magenta -filled_time_bar = magenta green -entry = white black -entry_title = magenta black bold -error = red black bold -message = green black bold -plist_time = red black bold diff --git a/user/.moc/themes/nightly_theme b/user/.moc/themes/nightly_theme deleted file mode 100644 index b9ff37b4a..000000000 --- a/user/.moc/themes/nightly_theme +++ /dev/null @@ -1,34 +0,0 @@ -# Author: Wim Speekenbrink - -background = blue black -frame = blue black bold -window_title = blue black bold -directory = blue black bold -selected_directory = black magenta -playlist = blue black bold -selected_playlist = black magenta -file = blue black bold -selected_file = black magenta -marked_file = green black bold -marked_selected_file = green magenta bold -info = green black bold -status = blue black bold -title = green black bold -state = blue black bold -current_time = magenta black bold -time_left = magenta black bold -total_time = magenta black bold -time_total_frames = blue black bold -sound_parameters = magenta black bold -legend = blue black bold -disabled = black black -enabled = blue black bold -empty_mixer_bar = blue black bold -filled_mixer_bar = black magenta -empty_time_bar = blue black bold -filled_time_bar = black magenta -entry = green black bold -entry_title = green black bold -error = red black bold -message = green black bold -plist_time = green black bold diff --git a/user/.moc/themes/red_theme b/user/.moc/themes/red_theme deleted file mode 100644 index fe6297ce1..000000000 --- a/user/.moc/themes/red_theme +++ /dev/null @@ -1,36 +0,0 @@ -# rednblack theme by yyz -# works good on a light term - -#property fg bg fx -background = default default -frame = black default -window_title = black default -directory = red default -selected_directory = black default bold -playlist = blue default -selected_playlist = black default bold -file = red default -selected_file = black default bold -marked_file = red default underline -marked_selected_file = black default bold -info = red default -status = black default -title = red default -state = black default -current_time = black default -time_left = black default -total_time = black default -time_total_frames = black default -sound_parameters = black default -legend = black default -disabled = white default -enabled = black default -empty_mixer_bar = black default -filled_mixer_bar = black red -empty_time_bar = black default -filled_time_bar = black red -entry = black default -entry_title = red default -error = red default -message = black default -plist_time = black default diff --git a/user/.moc/themes/transparent-background b/user/.moc/themes/transparent-background deleted file mode 100644 index a73ffa5be..000000000 --- a/user/.moc/themes/transparent-background +++ /dev/null @@ -1,34 +0,0 @@ -# Transparent background theme by Marcin Michałowski - -background = default default -frame = white default -window_title = white default -directory = white default bold -selected_directory = white blue bold -playlist = white default bold -selected_playlist = white blue bold -file = white default -selected_file = white blue -marked_file = green default bold -marked_selected_file = green blue bold -info = blue default bold -status = white default -title = white default bold -state = white default bold -current_time = white default bold -time_left = white default bold -total_time = white default bold -time_total_frames = white default -sound_parameters = white default bold -legend = white default -disabled = blue default bold -enabled = white default bold -empty_mixer_bar = white default -filled_mixer_bar = black cyan -empty_time_bar = white default -filled_time_bar = black cyan -entry = white default -entry_title = black cyan -error = red default bold -message = green default bold -plist_time = white default bold diff --git a/user/.moc/themes/yellow_red_theme b/user/.moc/themes/yellow_red_theme deleted file mode 100644 index 8a1bb71f1..000000000 --- a/user/.moc/themes/yellow_red_theme +++ /dev/null @@ -1,35 +0,0 @@ -# Yellow/Red theme - mostly Yellow. By Morten Grunnet Buhl -# Doesn't work on terminals when underline is not supported (like Linux console) - -background = red default -frame = red default -window_title = yellow default underline,dim -directory = yellow default -selected_directory = yellow default underline -playlist = yellow default -selected_playlist = yellow default -file = yellow default -selected_file = yellow default underline -marked_file = yellow default bold -marked_selected_file = red default bold,underline -info = yellow default -status = yellow default -title = yellow default -state = yellow default -current_time = yellow default -time_left = yellow default -total_time = yellow default -time_total_frames = yellow default -sound_parameters = yellow default -legend = yellow default -disabled = red default dim -enabled = yellow default bold -empty_mixer_bar = yellow red -filled_mixer_bar = red yellow -empty_time_bar = yellow default -filled_time_bar = default yellow -entry = yellow default -entry_title = yellow default bold -error = cyan default -message = yellow default -plist_time = yellow default diff --git a/new-config/.winitrc b/user/.winitrc similarity index 100% rename from new-config/.winitrc rename to user/.winitrc diff --git a/user/.xinitrc b/user/.xinitrc deleted file mode 100755 index 91aa360e1..000000000 --- a/user/.xinitrc +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -## ____ __ -## / __ \_________ _/ /_____ -## / / / / ___/ __ `/ //_/ _ \ -## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake) -## /_____/_/ \__,_/_/|_|\___/ My custom xinitrc -## - -userresources=$HOME/.Xresources -usermodmap=$HOME/.Xmodmap -sysresources=/etc/X11/xinit/.Xresources -sysmodmap=/etc/X11/xinit/.Xmodmap - -# merge in defaults and keymaps - -if [ -f $sysresources ]; then - xrdb -merge $sysresources -fi - -if [ -f $sysmodmap ]; then - xmodmap $sysmodmap -fi - -if [ -f "$userresources" ]; then - xrdb -merge "$userresources" -fi - -if [ -f "$usermodmap" ]; then - xmodmap "$usermodmap" -fi - -### ENVIRONMENT VARIABLES -export MOZ_USE_XINPUT2=1 -export EDITOR="lvim" # $EDITOR use lunarvim in terminal -export VISUAL="neovide --neovim-bin ./.local/bin/lvim" # $VISUAL use neovide for lunarvim in GUI -export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}" -export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}" -export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}" -export QT_QPA_PLATFORMTHEME=qt5ct # Qt theeming stuff - -# start window manager / desktop environment -exec awesome diff --git a/new-config/dependencies.md b/user/dependencies.md similarity index 100% rename from new-config/dependencies.md rename to user/dependencies.md