From bfbd50b7db5134aecb3462c4f6fc8d02ccce1ade Mon Sep 17 00:00:00 2001 From: inference Date: Sat, 21 May 2022 19:23:19 +0100 Subject: [PATCH] Add Dunst configuration files. Add mc configuration files. Add mpv configuration files. Add neofetch configuration files. Add Neovim configuration files. Add Sway configuration files. Add Waybar configuration files. --- dunst/dunstrc | 471 +++++++++++++++++++++++++++++++++++++++++++ mc/ini | 150 ++++++++++++++ mc/mc.keymap | 6 + mc/panels.ini | 0 mpv/input.conf | 9 + mpv/mpv.conf | 10 + neofetch/config.conf | 447 ++++++++++++++++++++++++++++++++++++++++ nvim/init.vim | 3 + sway/config | 212 +++++++++++++++++++ waybar/cmus.sh | 28 +++ waybar/config | 153 ++++++++++++++ waybar/config-old | 295 +++++++++++++++++++++++++++ waybar/cpu-frq.sh | 15 ++ waybar/cpu-temp.sh | 8 + waybar/launch.sh | 19 ++ waybar/style.css | 104 ++++++++++ 16 files changed, 1930 insertions(+) create mode 100755 dunst/dunstrc create mode 100755 mc/ini create mode 100755 mc/mc.keymap create mode 100755 mc/panels.ini create mode 100644 mpv/input.conf create mode 100644 mpv/mpv.conf create mode 100755 neofetch/config.conf create mode 100755 nvim/init.vim create mode 100755 sway/config create mode 100755 waybar/cmus.sh create mode 100644 waybar/config create mode 100755 waybar/config-old create mode 100755 waybar/cpu-frq.sh create mode 100755 waybar/cpu-temp.sh create mode 100755 waybar/launch.sh create mode 100644 waybar/style.css diff --git a/dunst/dunstrc b/dunst/dunstrc new file mode 100755 index 0000000..148fca8 --- /dev/null +++ b/dunst/dunstrc @@ -0,0 +1,471 @@ +# Dunst configuration file. + +# Copyright 2021 Inference + +# 1.0.0.1 + + +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = mouse + + # The geometry of the window: + # [{width}]x{height}[+/-{x}+/-{y}] + # The geometry of the message window. + # The height is measured in number of notifications everything else + # in pixels. If the width is omitted but the height is given + # ("-geometry x2"), the message window expands over the whole screen + # (dmenu-like). If width is 0, the window expands to the longest + # message displayed. A positive x is measured from the left, a + # negative from the right side of the screen. Y is measured from + # the top and down respectively. + # The width can be negative. In this case the actual width is the + # screen width minus the width defined in within the geometry option. + geometry = "400x0-0+47" + + # Turn on the progess bar + progress_bar = true + + # Set the progress bar height. This includes the frame, so make sure + # it's at least twice as big as the frame width. + progress_bar_height = 10 + + # Set the frame width of the progress bar + progress_bar_frame_width = 1 + + # Set the minimum width for the progress bar + progress_bar_min_width = 150 + + # Set the maximum width for the progress bar + progress_bar_max_width = 300 + + + # 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 = 0 + + # The height of the entire notification. If the height is smaller + # than the font height and padding combined, it will be raised + # to the font height and padding. + notification_height = 0 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + separator_height = 5 + + # Padding between text and separator. + padding = 8 + + # Horizontal padding. + horizontal_padding = 8 + + # Padding between text and icon. + text_icon_padding = 0 + + # 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 = "#aaaaaa" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + # 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 = Monospace 12 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 0 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # Vertical alignment of message text and icon. + # Possible values are "top", "center" and "bottom". + vertical_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 small icons up to this size, set to 0 to disable. Helpful + # for e.g. small files or high-dpi screens. In case of conflict, + # max_icon_size takes precedence over this. + min_icon_size = 0 + + # 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 -new-tab + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst + title = Dunst + + # Define the class of the windows spawned by dunst + class = Dunst + + # Print a notification on startup. + # This is mainly for error detection, since dbus (re-)starts dunst + # automatically after a crash. + startup_notification = false + + # Manage dunst's desire for talking + # Can be one of the following values: + # crit: Critical features. Dunst aborts + # warn: Only non-fatal warnings + # mesg: Important Messages + # info: all unimportant stuff + # debug: all less than unimportant stuff + verbosity = mesg + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 0 + + # Ignore the dbus closeNotification message. + # Useful to enforce the timeout set by dunst configuration. Without this + # parameter, an application may close the notification sent before the + # user defined timeout. + ignore_dbusclose = false + + ### Wayland ### + # These settings are Wayland-specific. They have no effect when using X11 + + # Uncomment this if you want to let notications appear under fullscreen + # applications (default: overlay) + # layer = top + + # Set this to true to use X11 output on Wayland. + force_xwayland = false + + ### 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 list of actions for each 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. + # These values can be strung together for each mouse event, and + # will be executed in sequence. + mouse_left_click = close_current + mouse_middle_click = do_action, close_current + mouse_right_click = close_all + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + +# The internal keyboard shortcut support in dunst is now considered deprecated +# and should be replaced by dunstctl calls. You can use the configuration of your +# WM or DE to bind these to shortcuts of your choice. +# Check the dunstctl manual page for more info. +[shortcuts] + + # Shortcuts are specified as [modifier+][modifier+]...key + # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", + # "mod3" and "mod4" (windows-key). + # Xev might be helpful to find names for keys. + + # Close notification. Equivalent dunstctl command: + # dunstctl close + # close = ctrl+space + + # Close all notifications. Equivalent dunstctl command: + # dunstctl close-all + # close_all = ctrl+shift+space + + # Redisplay last message(s). Equivalent dunstctl command: + # dunstctl history-pop + # history = ctrl+grave + + # Context menu. Equivalent dunstctl command: + # dunstctl context + # context = ctrl+shift+period + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#222222" + foreground = "#888888" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + frame_color = "#ff0000" + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# timeout +# urgency +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: if you don't want a notification to be displayed, set the format +# to "". +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# format = "" + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" diff --git a/mc/ini b/mc/ini new file mode 100755 index 0000000..17eee00 --- /dev/null +++ b/mc/ini @@ -0,0 +1,150 @@ +[Midnight-Commander] +verbose=true +shell_patterns=true +auto_save_setup=true +preallocate_space=false +auto_menu=false +use_internal_view=true +use_internal_edit=false +clear_before_exec=true +confirm_delete=true +confirm_overwrite=true +confirm_execute=false +confirm_history_cleanup=true +confirm_exit=false +confirm_directory_hotlist_delete=false +confirm_view_dir=false +safe_delete=false +safe_overwrite=false +use_8th_bit_as_meta=false +mouse_move_pages_viewer=true +mouse_close_dialog=false +fast_refresh=false +drop_menus=false +wrap_mode=true +old_esc_mode=true +cd_symlinks=true +show_all_if_ambiguous=false +use_file_to_guess_type=true +alternate_plus_minus=false +only_leading_plus_minus=true +show_output_starts_shell=false +xtree_mode=false +file_op_compute_totals=true +classic_progressbar=true +use_netrc=true +ftpfs_always_use_proxy=false +ftpfs_use_passive_connections=true +ftpfs_use_passive_connections_over_proxy=false +ftpfs_use_unix_list_options=true +ftpfs_first_cd_then_ls=true +ignore_ftp_chattr_errors=true +editor_fill_tabs_with_spaces=false +editor_return_does_auto_indent=false +editor_backspace_through_tabs=false +editor_fake_half_tabs=true +editor_option_save_position=true +editor_option_auto_para_formatting=false +editor_option_typewriter_wrap=false +editor_edit_confirm_save=true +editor_syntax_highlighting=true +editor_persistent_selections=true +editor_drop_selection_on_copy=true +editor_cursor_beyond_eol=false +editor_cursor_after_inserted_block=false +editor_visible_tabs=true +editor_visible_spaces=true +editor_line_state=false +editor_simple_statusbar=false +editor_check_new_line=false +editor_show_right_margin=false +editor_group_undo=true +editor_state_full_filename=true +editor_ask_filename_before_edit=false +nice_rotating_dash=true +mcview_remember_file_position=false +auto_fill_mkdir_name=true +copymove_persistent_attr=true +pause_after_run=1 +mouse_repeat_rate=100 +double_click_speed=250 +old_esc_mode_timeout=1000000 +max_dirt_limit=10 +num_history_items_recorded=60 +vfs_timeout=60 +ftpfs_directory_timeout=900 +ftpfs_retry_seconds=30 +fish_directory_timeout=900 +editor_tab_spacing=8 +editor_word_wrap_line_length=72 +editor_option_save_mode=0 +editor_backup_extension=~ +editor_filesize_threshold=64M +editor_stop_format_chars=-+*\\,.;:&> +mcview_eof= +skin=dark + +shadows=true + +[Layout] +message_visible=false +keybar_visible=true +xterm_title=true +output_lines=0 +command_prompt=false +menubar_visible=true +free_space=true +horizontal_split=false +vertical_equal=true +left_panel_size=86 +horizontal_equal=true +top_panel_size=1 + +[Misc] +timeformat_recent=%b %e %H:%M +timeformat_old=%b %e %Y +ftp_proxy_host=gate +ftpfs_password=anonymous@ +display_codepage=UTF-8 +source_codepage=Other_8_bit +autodetect_codeset= +spell_language=en +clipboard_store= +clipboard_paste= + +[Colors] +base_color= +xterm-256color= +color_terminals= + +xterm= + +[Panels] +show_mini_info=true +kilobyte_si=false +mix_all_files=false +show_backups=true +show_dot_files=true +fast_reload=false +fast_reload_msg_shown=false +mark_moves_down=true +reverse_files_only=true +auto_save_setup_panels=false +navigate_with_arrows=false +panel_scroll_pages=true +panel_scroll_center=false +mouse_move_pages=true +filetype_mode=true +permission_mode=false +torben_fj_mode=false +quick_search_mode=2 +select_flags=6 + +[Panelize] +Find *.orig after patching=find . -name \\*.orig -print +Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print +Find rejects after patching=find . -name \\*.rej -print +Modified git files=git ls-files --modified + +[terminal:general] +complete=` diff --git a/mc/mc.keymap b/mc/mc.keymap new file mode 100755 index 0000000..7cee3d6 --- /dev/null +++ b/mc/mc.keymap @@ -0,0 +1,6 @@ +[main:empty-cmdline] +ChangePanel = tab +[main] +ChangePanel = +[input] +Complete = tab; alt-tab diff --git a/mc/panels.ini b/mc/panels.ini new file mode 100755 index 0000000..e69de29 diff --git a/mpv/input.conf b/mpv/input.conf new file mode 100644 index 0000000..4c468a6 --- /dev/null +++ b/mpv/input.conf @@ -0,0 +1,9 @@ +# Video panning. +Alt+left add video-pan-x 0.1 +Alt+right add video-pan-x -0.1 +Alt+up add video-pan-y 0.1 +Alt+down add video-pan-y -0.1 + +# Video zooming. +Alt+= add video-zoom 0.1 +Alt+- add video-zoom -0.1 diff --git a/mpv/mpv.conf b/mpv/mpv.conf new file mode 100644 index 0000000..a33b171 --- /dev/null +++ b/mpv/mpv.conf @@ -0,0 +1,10 @@ +loop-playlist=inf +loop-file=inf +vo=gpu +hwdec=vaapi +volume=100 +image-display-duration=inf +no-border +no-osc +osd-level=0 +alpha=yes diff --git a/neofetch/config.conf b/neofetch/config.conf new file mode 100755 index 0000000..e936365 --- /dev/null +++ b/neofetch/config.conf @@ -0,0 +1,447 @@ +# Neofetch Configuration File. + +# Copyright 2021 Inference + +# 1.0.0 + + +print_info() { + + info title + info underline + info "Host" model + info "CPU" cpu + info "GPU" gpu + info "GPU drv" gpu_driver + info "Mem" memory + info "Res" resolution + info underline + info "OS" distro + info "Kernel" kernel + info "Packages" packages + info "Shell" shell + info "DE" de + info "WM" wm + info "Terminal" term + info "Locale" locale + +} + + +# 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="off" + + +# Distro + +# Shorten the output of the distro function +# +# Default: 'off' +# Values: 'on', 'off', 'tiny' +# 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" + + +# 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" + +speed_shorthand="off" + +cpu_brand="on" + +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" + +gpu_brand="on" + +gpu_type="all" + +refresh_rate="on" + + +# 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" + + +# 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' +# 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%)' +disk_subtitle="mount" + + +# 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=":" + + +# 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', +# '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: Arch and Ubuntu have 'old' logo variants. +# Change this to 'arch_old' or 'ubuntu_old' to use the old logos. +# NOTE: Ubuntu has flavor variants. +# Change this to 'Lubuntu', 'Xubuntu', 'Ubuntu-GNOME' or 'Ubuntu-Budgie' to use the flavors. +# NOTE: Arch, Crux and Gentoo have a smaller logo variant. +# Change this to 'arch_small', 'crux_small' or 'gentoo_small' to use the small logos. +ascii_distro="auto" + +# 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" + +# Gap between image and text +# +# Default: '3' +# Values: 'num', '-num' +# Flag: --gap +gap=3 + diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100755 index 0000000..bc5eeee --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,3 @@ +set number +set tabstop=4 + diff --git a/sway/config b/sway/config new file mode 100755 index 0000000..83b1eff --- /dev/null +++ b/sway/config @@ -0,0 +1,212 @@ +# Sway Configuration File. + +# Copyright 2022 Inference + + +# Set Mod key. +set $mod Mod4 + +# Reload Sway configuration file. +bindsym $mod+Shift+c reload + +# Restart Sway. +bindsym $mod+Shift+r restart + +# Exit Sway (log out of Wayland session). +bindsym $mod+Shift+e exec swaynag -t warning -m 'Exit Sway?' -b 'Yes' 'swaymsg exit' + +# Start terminal. +bindsym $mod+Return exec alacritty + +# Kill focused window. +bindsym $mod+Shift+q kill + +# Change focus. +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# Move focused window. +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# Split in horizontal orientation. +bindsym $mod+h split h + +# Split in vertical orientation. +bindsym $mod+v split v + +# Enter fullscreen mode for the focused container. +bindsym $mod+f fullscreen toggle + +# Change container layout. +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# Change focus between tiling/floating windows. +bindsym $mod+space focus mode_toggle + +# Pop-up windows control. +popup_during_fullscreen smart + +# Focus the parent container. +bindsym $mod+a focus parent + +# Window activation focus control. +focus_on_window_activation smart + +# Workspaces. +set $ws1 "0" +set $ws2 "1" +set $ws3 "2" +set $ws4 "3" +set $ws5 "4" + +# Switch workspace. +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 + +# Move focused container to workspace. +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 + +# Move window. +## Move window via shortcut. +bindsym $mod+m focus floating; mode "move" +mode "move" { + # Move mode shortcuts. + bindsym J move up 20px + bindsym K move down 20x + bindsym N move left 20px + bindsym M move right 20px + + ## Return to normal mode. + bindsym $mod+m mode "default" +} + +# Resize window. +## Resize window via shortcut. +bindsym $mod+r mode "resize" +mode "resize" { + ## Resize mode shortcuts. + bindsym N resize shrink width 10 px or 10 ppt + bindsym K resize grow height 10 px or 10 ppt + bindsym J resize shrink height 10 px or 10 ppt + bindsym M resize grow width 10 px or 10 ppt + + ## Return to normal mode. + bindsym $mod+r mode "default" +} + +# Volume control. +## Activate volume up key. +bindsym XF86AudioRaiseVolume exec amixer -q -D pulse sset Master 5%+ +## Activate volume down key. +bindsym XF86AudioLowerVolume exec amixer -q -D pulse sset Master 5%- +## Activate volume mute key. +bindsym XF86AudioMute exec amixer -q -D pulse sset Master toggle + +# Display brightness control. +## Activate display brightness up key. +bindsym XF86MonBrightnessUp exec "brightnessctl s 5%+" +## Activate display brightness down key. +bindsym XF86MonBrightnessDown exec "brightnessctl s 5%-" + +# Keyboard layout. +input * { + xkb_layout gb,jp + xkb_options grp:alt_space_toggle + } + +# Disable mouse focus. +focus_follows_mouse no + +# Disable mouse buttons. +## Left mouse button. +bindsym button1 nop +## Middle mouse button. +bindsym button2 nop +## Right mouse button. +bindsym button3 nop +## Scroll wheel up. +bindsym button4 nop +## Scroll wheel down. +bindsym button5 nop +## Scroll wheel right. +bindsym button6 nop +## Scroll wheel left. +bindsym button7 nop + +# Media control. +## Play media key. +bindsym XF86AudioPlay exec playerctl play +## Pause media key. +#bindsym XF86AudioPause exec playerctl pause +## Previous media key. +bindsym XF86AudioPrev exec playerctl previous +## Next media key. +bindsym XF86AudioNext exec playerctl next + +# System power control. +## Shut down system. +#bindsym XF86PowerOff exec alacritty -e "shutdown -h 0" + +# Font for window titles. +font pango:monospace 9 + +# Colors. +## Class Border Backgr Text Indicator Child_border +client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577 +client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a +client.unfocused #333333 #222222 #888888 #292d2e #222222 +client.urgent #2f343a #c79500 #000000 #900000 #900000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c +client.background #ffffff + +# Open specific software on specific workspaces. +#assign [class="KeePassXC"] $ws2 +#assign [class="Signal"] $ws3 +#assign [class="Wire"] $ws3 +#assign [class="Element"] $ws3 +#assign [class="Session"] $ws3 +#assign [class="VSCodium"] $ws4 +#assign [class="FreeTube"] $ws5 + + +# External software. +## Execute Waybar. +exec waybar + +## Execute Dunst. +exec dunst + +## Execute Pipewire. +exec gentoo-pipewire-launcher + +## Execute PulseAudio. +exec pulseaudio -D + +## Execute Unclutter. +#exec_always --no-startup-id nohup unclutter -idle 2 & + +## Set desktop background. +#exec_always --no-startup-id /scr/background-set.sh + +## Execute Wofi. +bindsym $mod+d exec "wofi --show drun" + +# Screen locker. +bindsym $mod+l exec alacritty -e swaylock -c 000000 + exec swayidle -w \ + timeout 600 'swaylock -f -c 000000' \ + timeout 1200 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' diff --git a/waybar/cmus.sh b/waybar/cmus.sh new file mode 100755 index 0000000..567c491 --- /dev/null +++ b/waybar/cmus.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + + +# Copyright 2021 Inference + +# 1.0.0.1 + + +#prepend_zero () { +# seq -f "%02g" $1 $1 +#} + +#artist=$(echo -n $(cmus-remote -C status | grep "tag artist" | cut -c 12-)) + +#if [[ $artist = *[!\ ]* ]]; then +# song=$(echo -n $(cmus-remote -C status | grep title | cut -c 11-)) +# position=$(cmus-remote -C status | grep position | cut -c 10-) +# minutes1=$(prepend_zero $(($position / 60))) +# seconds1=$(prepend_zero $(($position % 60))) +# duration=$(cmus-remote -C status | grep duration | cut -c 10-) +# minutes2=$(prepend_zero $(($duration / 60))) +# seconds2=$(prepend_zero $(($duration % 60))) +# echo -n "$artist - $song [$minutes1:$seconds1/$minutes2:$seconds2]" +#else +# echo +#fi + +cmus-remote -C 'format_print %F' diff --git a/waybar/config b/waybar/config new file mode 100644 index 0000000..bead114 --- /dev/null +++ b/waybar/config @@ -0,0 +1,153 @@ +// Waybar - Configuration. + +{ + "layer": "top", + "position": "top", + "height": 30, + + "modules-left": [ + "clock#date", + "clock#time", + ], + + "modules-center": [ + "sway/workspaces", + "sway/mode", + ], + + "modules-right": [ + "pulseaudio", + "backlight", + "sway/language", + "cpu", + "temperature", + "memory", + "disk", + "network", + "battery", + ], + + "clock#date": { + "interval": 1, + "format": "{:%Y-%m-%d}", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "clock#time": { + "interval": 1, + "format": "{:%H:%M:%S}", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + +// "battery": { +// "interval": 1, +// "format": " {capacity}%", +// "format-discharging": " {capacity}%", +// "disable-hover": true, +// "disable-click": true, +// "disable-scroll": true, +// "tooltip": false, +// }, + + "cpu": { + "interval": 1, + "format": " {usage:3}% {avg_frequency:0.03} GHz", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "sway/language": { + "format": " {short}", + "min-length": 4, + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "memory": { + "interval": 1, + "format": " {used:0.02f} GiB / {total:0.02f} GiB", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "disk": { + "interval": 1, + "format": " {used} / {total}", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "network": { + "interval": 1, + "format-wifi": " {essid} ({signalStrength}%)", // Icon: wifi + //"format-ethernet": " {ifname}: {ipaddr}/{cidr}", // Icon: ethernet + "format-ethernet": " {ifname}", + "format-disconnected": "", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "sway/workspaces": { + "format": "{name}", + "all-outputs": false, + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "sway/mode": { + "format": " {}" , + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "pulseaudio": { + "format": " {volume:3}%", + "format-muted": " {volume:3}%", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "backlight": { + "device": "amdgpu_bl0", + "format": " {percent:3}%", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + + "temperature": { + "interval": 1, + "thermal-zone": 0, + "hwmon-path": "/sys/class/hwmon/hwmon1/temp1_input", + "critical-threshold": 90, + "format": "{temperatureC:3}°C", + "disable-hover": true, + "disable-click": true, + "disable-scroll": true, + "tooltip": false, + }, + +} diff --git a/waybar/config-old b/waybar/config-old new file mode 100755 index 0000000..2fe1ff0 --- /dev/null +++ b/waybar/config-old @@ -0,0 +1,295 @@ +; root filesystem module configuration. +[module/filesystem0] +type = internal/fs +interval = 1 +mount-0 = / +label-mounted = " /: %used%/%total% " +label-mounted-background = #c79500 +label-mounted-foreground = #000000 +label-unmounted = "  /:  " +label-unmounted-background = #c79500 +label-unmounted-foreground = #000000 + +; home filesystem module configuration. +[module/filesystem1] +type = internal/fs +interval = 1 +mount-0 = /home +label-mounted = "  /home: %used%/%total% " +label-mounted-background = #c79500 +label-mounted-foreground = #000000 +label-unmounted = "  /home:  " +label-unmounted-background = #c79500 +label-unmounted-foreground = #000000 + +; CPU module configuration. +[module/cpu] +type = internal/cpu +interval = 1 +label = "  %percentage:3%% " +label-background = #003487 +label-foreground = #ffffff + +; Physical memory module configuration. +[module/memory0] +type = internal/memory +interval = 1 +label = "  %gb_used%/%gb_total% " +label-background = #a60000 +label-foreground = #ffffff + +; Virtual memory module configuration. +[module/memory1] +type = internal/memory +interval = 1 +label = "  %gb_swap_used%/%gb_swap_total% " +label-background = #a60000 +label-foreground = #ffffff + +; Ethernet module configuration. +[module/eth] +type = internal/network +interface = eth0 +interval = 1 +label-connected = "   " +label-connected-background = #007a00 +label-connected-foreground = #ffffff +format-disconnected = +label-disconnected = "   " +label-disconnected-background = #007a00 +label-disconnected-foreground = #ffffff + +; Wi-Fi module configuration. +[module/wlan] +type = internal/network +interface = wlan0 +interval = 1 +format-connected = +label-connected = "   " +label-connected-background = #007a00 +label-connected-foreground = #ffffff +format-disconnected = +label-disconnected = "   " +label-disconnected-background = #007a00 +label-disconnected-foreground = #ffffff + +; Public IP address module configuration. +[module/ip-public] +type = custom/script +exec = curl -s https://www.icanhazip.com +label-padding = 1 +format =