[
  {
    "path": "README.md",
    "content": "# hyppuccin\nCatppuccin theme for Hyprland\n\n* Compositor: Hyprland\n* Terminal: Kitty\n* Shell: zsh\n* Color scheme (and all themes): Cattpuccin\n* GUI file manager: Thunar\n* TUI file manager: Ranger\n* Bar: Waybar\n* App launcher: Wofi\n* Text editor: nvim\n* Note taker: Joplin\n* Cursor theme: Bibata modern classic\n* PDF viewer: Zathura\n\n![alt text](./screenshots/screenshot1.png)\n![alt text](./screenshots/screenshot2.png)\n![alt text](./screenshots/screenshot3.png)\n![alt text](./screenshots/screenshot4.png)\n![alt text](./screenshots/screenshot5.png)\n\n"
  },
  {
    "path": "copy-configs.sh",
    "content": "#!/bin/sh\n\ncp -r -l $HOME/.config/hypr/ ./\ncp -r -l $HOME/.config/waybar/ ./\ncp -r -l $HOME/.config/wofi/ ./\ncp -r -l $HOME/.config/nvim/ ./\ncp -r -l $HOME/.config/dunst/ ./\ncp -r -l $HOME/.config/kitty/ ./\ncp -r -l $HOME/.config/rofi/ ./\ncp -r -l $HOME/.config/eww/ ./\ncp -r -l $HOME/.zshrc ./zsh\ncp -r -l $HOME/.p10k.zsh ./zsh\n"
  },
  {
    "path": "dunst/dunstrc",
    "content": "# See dunst(5) for all configuration options\n\n[global]\n    ### Display ###\n\n    # Which monitor should the notifications be displayed on.\n    monitor = 0\n\n    # Display notification on focused monitor.  Possible modes are:\n    #   mouse: follow mouse pointer\n    #   keyboard: follow window with keyboard focus\n    #   none: don't follow anything\n    #\n    # \"keyboard\" needs a window manager that exports the\n    # _NET_ACTIVE_WINDOW property.\n    # This should be the case for almost all modern window managers.\n    #\n    # If this option is set to mouse or keyboard, the monitor option\n    # will be ignored.\n    follow = none\n\n    ### Geometry ###\n\n    # dynamic width from 0 to 300\n    # width = (0, 300)\n    # constant width of 300\n    width = 500\n\n    # The maximum height of a single notification, excluding the frame.\n    height = 300\n\n    # Position the notification in the top right corner\n    origin = top-right\n\n    # Offset from the origin\n    offset = 25x25\n\n    # Scale factor. It is auto-detected if value is 0.\n    scale = 0\n\n    # Maximum number of notification (0 means no limit)\n    notification_limit = 0\n\n    ### Progress bar ###\n\n    # Turn on the progess bar. It appears when a progress hint is passed with\n    # for example dunstify -h int:value:12\n    progress_bar = true\n\n    # Set the progress bar height. This includes the frame, so make sure\n    # it's at least twice as big as the frame width.\n    progress_bar_height = 10\n\n    # Set the frame width of the progress bar\n    progress_bar_frame_width = 1\n\n    # Set the minimum width for the progress bar\n    progress_bar_min_width = 150\n\n    # Set the maximum width for the progress bar\n    progress_bar_max_width = 300\n\n\n    # Show how many messages are currently hidden (because of\n    # notification_limit).\n    indicate_hidden = yes\n\n    # The transparency of the window.  Range: [0; 100].\n    # This option will only work if a compositing window manager is\n    # present (e.g. xcompmgr, compiz, etc.). (X11 only)\n    transparency = 100\n\n    # Draw a line of \"separator_height\" pixel height between two\n    # notifications.\n    # Set to 0 to disable.\n    # If gap_size is greater than 0, this setting will be ignored.\n    separator_height = 2\n\n    # Padding between text and separator.\n    padding = 8\n\n    # Horizontal padding.\n    horizontal_padding = 8\n\n    # Padding between text and icon.\n    text_icon_padding = 0\n\n    # Defines width in pixels of frame around the notification window.\n    # Set to 0 to disable.\n    frame_width = 3\n\n    # Defines color of the frame around the notification window.\n    frame_color = \"#FFFFFF\"\n\n    # Size of gap to display between notifications - requires a compositor.\n    # If value is greater than 0, separator_height will be ignored and a border\n    # of size frame_width will be drawn around each notification instead.\n    # Click events on gaps do not currently propagate to applications below.\n    gap_size = 15\n\n    # Define a color for the separator.\n    # possible values are:\n    #  * auto: dunst tries to find a color fitting to the background;\n    #  * foreground: use the same color as the foreground;\n    #  * frame: use the same color as the frame;\n    #  * anything else will be interpreted as a X color.\n    separator_color = frame\n\n    # Sort messages by urgency.\n    sort = yes\n\n    # Don't remove messages, if the user is idle (no mouse or keyboard input)\n    # for longer than idle_threshold seconds.\n    # Set to 0 to disable.\n    # A client can set the 'transient' hint to bypass this. See the rules\n    # section for how to disable this if necessary\n    # idle_threshold = 120\n\n    ### Text ###\n\n    font = SFPro 12\n\n    # The spacing between lines.  If the height is smaller than the\n    # font height, it will get raised to the font height.\n    line_height = 0\n\n    # Possible values are:\n    # full: Allow a small subset of html markup in notifications:\n    #        <b>bold</b>\n    #        <i>italic</i>\n    #        <s>strikethrough</s>\n    #        <u>underline</u>\n    #\n    #        For a complete reference see\n    #        <https://docs.gtk.org/Pango/pango_markup.html>.\n    #\n    # strip: This setting is provided for compatibility with some broken\n    #        clients that send markup even though it's not enabled on the\n    #        server. Dunst will try to strip the markup but the parsing is\n    #        simplistic so using this option outside of matching rules for\n    #        specific applications *IS GREATLY DISCOURAGED*.\n    #\n    # no:    Disable markup parsing, incoming notifications will be treated as\n    #        plain text. Dunst will not advertise that it has the body-markup\n    #        capability if this is set as a global setting.\n    #\n    # It's important to note that markup inside the format option will be parsed\n    # regardless of what this is set to.\n    markup = full\n\n    # The format of the message.  Possible variables are:\n    #   %a  appname\n    #   %s  summary\n    #   %b  body\n    #   %i  iconname (including its path)\n    #   %I  iconname (without its path)\n    #   %p  progress value if set ([  0%] to [100%]) or nothing\n    #   %n  progress value if set without any extra characters\n    #   %%  Literal %\n    # Markup is allowed\n    format = \"<b>%s</b>\\n%b\"\n\n    # Alignment of message text.\n    # Possible values are \"left\", \"center\" and \"right\".\n    alignment = left\n\n    # Vertical alignment of message text and icon.\n    # Possible values are \"top\", \"center\" and \"bottom\".\n    vertical_alignment = center\n\n    # Show age of message if message is older than show_age_threshold\n    # seconds.\n    # Set to -1 to disable.\n    show_age_threshold = 60\n\n    # Specify where to make an ellipsis in long lines.\n    # Possible values are \"start\", \"middle\" and \"end\".\n    ellipsize = middle\n\n    # Ignore newlines '\\n' in notifications.\n    ignore_newline = no\n\n    # Stack together notifications with the same content\n    stack_duplicates = true\n\n    # Hide the count of stacked notifications with the same content\n    hide_duplicate_count = false\n\n    # Display indicators for URLs (U) and actions (A).\n    show_indicators = yes\n\n    ### Icons ###\n\n    # Recursive icon lookup. You can set a single theme, instead of having to\n    # define all lookup paths.\n    enable_recursive_icon_lookup = true\n\n    # Set icon theme (only used for recursive icon lookup)\n    icon_theme = Adwaita\n    # You can also set multiple icon themes, with the leftmost one being used first.\n    # icon_theme = \"Adwaita, breeze\"\n\n    # Align icons left/right/top/off\n    icon_position = off\n\n    # Scale small icons up to this size, set to 0 to disable. Helpful\n    # for e.g. small files or high-dpi screens. In case of conflict,\n    # max_icon_size takes precedence over this.\n    min_icon_size = 32\n\n    # Scale larger icons down to this size, set to 0 to disable\n    max_icon_size = 128\n\n    # Paths to default icons (only neccesary when not using recursive icon lookup)\n    icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/\n\n    ### History ###\n\n    # Should a notification popped up from history be sticky or timeout\n    # as if it would normally do.\n    sticky_history = yes\n\n    # Maximum amount of notifications kept in history\n    history_length = 20\n\n    ### Misc/Advanced ###\n\n    # dmenu path.\n    dmenu = /usr/bin/dmenu -p dunst:\n\n    # Browser for opening urls in context menu.\n    browser = /usr/bin/xdg-open\n\n    # Always run rule-defined scripts, even if the notification is suppressed\n    always_run_script = true\n\n    # Define the title of the windows spawned by dunst\n    title = Dunst\n\n    # Define the class of the windows spawned by dunst\n    class = Dunst\n\n    # Define the corner radius of the notification window\n    # in pixel size. If the radius is 0, you have no rounded\n    # corners.\n    # The radius will be automatically lowered if it exceeds half of the\n    # notification height to avoid clipping text and/or icons.\n    corner_radius = 15\n\n    # Ignore the dbus closeNotification message.\n    # Useful to enforce the timeout set by dunst configuration. Without this\n    # parameter, an application may close the notification sent before the\n    # user defined timeout.\n    ignore_dbusclose = false\n\n    ### Wayland ###\n    # These settings are Wayland-specific. They have no effect when using X11\n\n    # Uncomment this if you want to let notications appear under fullscreen\n    # applications (default: overlay)\n    # layer = top\n\n    # Set this to true to use X11 output on Wayland.\n    force_xwayland = false\n\n    ### Legacy\n\n    # Use the Xinerama extension instead of RandR for multi-monitor support.\n    # This setting is provided for compatibility with older nVidia drivers that\n    # do not support RandR and using it on systems that support RandR is highly\n    # discouraged.\n    #\n    # By enabling this setting dunst will not be able to detect when a monitor\n    # is connected or disconnected which might break follow mode if the screen\n    # layout changes.\n    force_xinerama = false\n\n    ### mouse\n\n    # Defines list of actions for each mouse event\n    # Possible values are:\n    # * none: Don't do anything.\n    # * do_action: Invoke the action determined by the action_name rule. If there is no\n    #              such action, open the context menu.\n    # * open_url: If the notification has exactly one url, open it. If there are multiple\n    #             ones, open the context menu.\n    # * close_current: Close current notification.\n    # * close_all: Close all notifications.\n    # * context: Open context menu for the notification.\n    # * context_all: Open context menu for all notifications.\n    # These values can be strung together for each mouse event, and\n    # will be executed in sequence.\n    mouse_left_click = close_current\n    mouse_middle_click = do_action, close_current\n    mouse_right_click = close_all\n\n# Experimental features that may or may not work correctly. Do not expect them\n# to have a consistent behaviour across releases.\n[experimental]\n    # Calculate the dpi to use on a per-monitor basis.\n    # If this setting is enabled the Xft.dpi value will be ignored and instead\n    # dunst will attempt to calculate an appropriate dpi value for each monitor\n    # using the resolution and physical size. This might be useful in setups\n    # where there are multiple screens with very different dpi values.\n    per_monitor_dpi = true\n\n\n[global]\nframe_color = \"#89B4FA\"\nseparator_color= frame\n\n[urgency_low]\nbackground = \"#1E1E2E\"\nforeground = \"#CDD6F4\"\n\n[urgency_normal]\nbackground = \"#1E1E2E\"\nforeground = \"#CDD6F4\"\n\n[urgency_critical]\nbackground = \"#1E1E2E\"\nforeground = \"#CDD6F4\"\nframe_color = \"#FAB387\"\n\n# Every section that isn't one of the above is interpreted as a rules to\n# override settings for certain messages.\n#\n# Messages can be matched by\n#    appname (discouraged, see desktop_entry)\n#    body\n#    category\n#    desktop_entry\n#    icon\n#    match_transient\n#    msg_urgency\n#    stack_tag\n#    summary\n#\n# and you can override the\n#    background\n#    foreground\n#    format\n#    frame_color\n#    fullscreen\n#    new_icon\n#    set_stack_tag\n#    set_transient\n#    set_category\n#    timeout\n#    urgency\n#    icon_position\n#    skip_display\n#    history_ignore\n#    action_name\n#    word_wrap\n#    ellipsize\n#    alignment\n#    hide_text\n#\n# Shell-like globbing will get expanded.\n#\n# Instead of the appname filter, it's recommended to use the desktop_entry filter.\n# GLib based applications export their desktop-entry name. In comparison to the appname,\n# the desktop-entry won't get localized.\n#\n# SCRIPTING\n# You can specify a script that gets run when the rule matches by\n# setting the \"script\" option.\n# The script will be called as follows:\n#   script appname summary body icon urgency\n# where urgency can be \"LOW\", \"NORMAL\" or \"CRITICAL\".\n#\n# NOTE: It might be helpful to run dunst -print in a terminal in order\n# to find fitting options for rules.\n\n# Disable the transient hint so that idle_threshold cannot be bypassed from the\n# client\n#[transient_disable]\n#    match_transient = yes\n#    set_transient = no\n#\n# Make the handling of transient notifications more strict by making them not\n# be placed in history.\n#[transient_history_ignore]\n#    match_transient = yes\n#    history_ignore = yes\n\n# fullscreen values\n# show: show the notifications, regardless if there is a fullscreen window opened\n# delay: displays the new notification, if there is no fullscreen window active\n#        If the notification is already drawn, it won't get undrawn.\n# pushback: same as delay, but when switching into fullscreen, the notification will get\n#           withdrawn from screen again and will get delayed like a new notification\n#[fullscreen_delay_everything]\n#    fullscreen = delay\n#[fullscreen_show_critical]\n#    msg_urgency = critical\n#    fullscreen = show\n\n#[espeak]\n#    summary = \"*\"\n#    script = dunst_espeak.sh\n\n#[script-test]\n#    summary = \"*script*\"\n#    script = dunst_test.sh\n\n#[ignore]\n#    # This notification will not be displayed\n#    summary = \"foobar\"\n#    skip_display = true\n\n#[history-ignore]\n#    # This notification will not be saved in history\n#    summary = \"foobar\"\n#    history_ignore = yes\n\n#[skip-display]\n#    # This notification will not be displayed, but will be included in the history\n#    summary = \"foobar\"\n#    skip_display = yes\n\n#[signed_on]\n#    appname = Pidgin\n#    summary = \"*signed on*\"\n#    urgency = low\n#\n#[signed_off]\n#    appname = Pidgin\n#    summary = *signed off*\n#    urgency = low\n#\n#[says]\n#    appname = Pidgin\n#    summary = *says*\n#    urgency = critical\n#\n#[twitter]\n#    appname = Pidgin\n#    summary = *twitter.com*\n#    urgency = normal\n#\n#[stack-volumes]\n#    appname = \"some_volume_notifiers\"\n#    set_stack_tag = \"volume\"\n#\n# vim: ft=cfg\n"
  },
  {
    "path": "dunst/mocha.conf",
    "content": "[global]\nframe_color = \"#89B4FA\"\nseparator_color= frame\n\n[urgency_low]\nbackground = \"#1E1E2E\"\nforeground = \"#CDD6F4\"\n\n[urgency_normal]\nbackground = \"#1E1E2E\"\nforeground = \"#CDD6F4\"\n\n[urgency_critical]\nbackground = \"#1E1E2E\"\nforeground = \"#CDD6F4\"\nframe_color = \"#FAB387\"\n"
  },
  {
    "path": "eww/README.md",
    "content": "# Eww configuration\n\nThis configuration aims to provide a fully working shell replacement for\ncompositors/window managers. Features constantly get added and existing ones\nget improved.\n\n## ❔ Usage\n\nTo quickly install this config, grab all the files in this directory and put\nthem in `~/.config/eww`. Then run `eww daemon` and `eww open bar`. Enjoy!\n\nDependencies:\n- Icon fonts: `material-design-icons`, `material-icons`\n- Text font: Torus (get it from the osu! website with DevTools)\n\n## 🎨 Theme\n- tokyonight\n"
  },
  {
    "path": "eww/css/_colors.scss",
    "content": "\n\n$blue: #89b4fa;\n$lavender: #b4befe;\n$sapphire: #74c7ec;\n$sky: #89dceb;\n$teal: #94e2d5;\n$green: #a6e3a1;\n$yellow: #f9e2af;\n$peach: #fab387;\n$maroon: #eba0ac;\n$red: #f38ba8;\n$mauve: #cba6f7;\n$pink: #f5c2e7;\n$flamingo: #f2cdcd;\n$rosewater: #f5e0dc;\n\n$true: #EF738A;\n$false: #A9B1D6;\n\n\n$forestgreen: #A8B468;\n$forestyellow : #8e8370;\n$foresttext : #d3c6ab;\n$forestblack : #1e201f;\n$forestred : #e76c69;\n$forestpink : #d698b5;\n$forestorange : #e59576;\n$forestgray : #75817b;\n$forestgraylight: #495156;\n$forestgreendark: #7fba90;\n$forestblue: #77AEA7;\n\n$tokyobluedark: #1A1B26;\n$tokyobluelessdark: #1f212e;\n$tokyotext: #a9b1d6;\n$tokyopink: #ff79b1; //nah theres no pink in tokyonight, but i need one so added\n$tokyored: #EF738A;\n$tokyoorange: #FF9E64;\n$tokyoyellow: #E0AF68;\n$tokyogreen: #9ECE6A;\n$tokyoturquoise: #73daca;\n$tokyoice: #b4f9f8;\n$tokyocyan: #0DB9D7;\n$tokyoblue: #7AA2F7;\n$tokyopurple: #9778D0;\n$tokyogrey: #444B6A;\n$catbg: #1E1E2E;\n\n$text: #cdd6f4;\n$subtext0: #a6adc8;\n$subtext1: #bac2de;\n\n$overlay0: #6c7086;\n$overlay1: #7f849c;\n$overlay2: #9399b2;\n\n$surface0: #313244;\n$surface1: #45475a;\n$surface2: #585b70;\n\n\n$base: #1e1e2e;\n$mantle: #181825;\n$crust: #11111b;\n\n$fg: $tokyotext;\n$bg: #171726;\n$barbg: #131426;\n$shadow: $crust;\n\n// $battcolor: $tokyogreen;\n// $memcolor: $tokyoorange;\n// $cpucolor: $tokyoblue;"
  },
  {
    "path": "eww/css/_colorscheme.scss",
    "content": "//Auto generated color theme for image at: https://i.ytimg.com/vi/xKbIQaKEE8s/hqdefault.jpg?sqp=-oaymwEcCNACELwBSFXyq4qpAw4IARUAAIhCGAFwAcABBg==&rs=AOn4CLC_6DS9-dITi7axcFf2eedEZ_68EQ\n@function bluetint($color, $percentage) { @return mix(#CDDFED, $color, $percentage); }\n@function blueshade($color, $percentage) { @return mix(#152E50, $color, $percentage); }\n$colorbg: #0f1a1b;\n$colortext: #c8e7e8;\n$color0: #96A46E;\n$color1: #3B6E8F;\n$color2: #629C9D;\n$color3: #5EB3CB;\n$color4: #9BAC9A;\n$color5: #B9CCAB;\n$color6: #c8e7e8;\n$color7: #5EB3CB;\n"
  },
  {
    "path": "eww/css/_overview.scss",
    "content": ".overview-window {\n  @include window;\n  font-family: 'SFPro', 'Material Symbols Rounded';\n  border-radius: 20px;\n  background-color: $crust;\n  // background-color: transparent;\n  // border: 3px solid $color0;\n  padding: 5px;\n}\n\n.overview-window-top {\n  @include rounding;\n  background-color: transparent;\n  border: 3px solid transparent;\n  padding: 5px;\n}\n\n.overview-ws {\n  border-radius: 11px;\n  background-color: $mantle;\n  margin: 5px;\n}\n\n.overview-ws-window {\n  border: 2px solid $peach;\n  border-radius: 11px;\n  margin: 3px; \n  padding-left: 5px;\n  padding-right: 5px;\n}\n\n.overview-icon {\n  margin-top: 5px;\n  margin-bottom: 5px;\n  padding-left: 17px;\n  padding-right: 17px;\n  background-size: contain;\n  background-repeat: no-repeat;\n  background-position: center;\n}\n\n.overview-ws-text {\n  padding-left: 5px;\n  font-size: 13pt;\n}\n.overview-ws-subtext {\n  padding-left: 5px;\n  font-size: 9pt;\n}\n\n.overview-ws-number { //Note: height 100px width 356px\n  font-size: 25pt;\n  border-radius: 11px;\n  background-color: $overlay0;\n  color: $colortext;\n  margin: 10px;\n  min-height: 40px;\n  min-width: 40px;\n}\n\n.overview-title {\n  font-weight: bold;\n  font-size: 15pt;\n  padding-top: .6rem;\n  padding-bottom: .6rem;\n}"
  },
  {
    "path": "eww/eww.scss",
    "content": "@import 'css/colors';\n@import 'css/colorscheme';\n\n$colorbar: #c8e7e8;\n$battcolor: $colorbar;\n$memcolor: $color1;\n$cpucolor: $color3;\n$border: $color7;\n$surface0: tint($colorbg, 10%);\n$bg1: $surface0;\n\n@mixin rounding {\n  border-radius: 8px;\n}\n\n@mixin filter {\n  saturate {\n    filter: saturate(3);\n  }\n\n  grayscale {\n    filter: grayscale(100%);\n  }\n\n  contrast {\n    filter: contrast(160%);\n  }\n\n  brightness {\n    filter: brightness(0.25);\n  }\n\n  blur {\n    filter: blur(3px);\n  }\n\n  invert {\n    filter: invert(100%);\n  }\n\n  .sepia {\n    filter: sepia(100%);\n  }\n\n  huerotate {\n    filter: hue-rotate(180deg);\n  }\n\n  rss.opacity {\n    filter: opacity(50%);\n  }\n}\n\n@mixin window {\n  border: 3px solid $sky;\n  // box-shadow: 0 2px 3px $shadow;\n  margin: 5px 5px 10px;\n  @include rounding;\n}\n\n* {\n  all: unset;\n  transition: 200ms cubic-bezier(0.05, 0.9, 0.1, 1);\n  background-repeat: no-repeat;\n}\n\n@import 'css/overview';"
  },
  {
    "path": "eww/eww.yuck",
    "content": "(include \"./modules/variables.yuck\")\n(include \"./windows/overview.yuck\")"
  },
  {
    "path": "eww/modules/variables.yuck",
    "content": "(defvar selected '')\n(deflisten wsjsona `scripts/overview1`)\n(deflisten wsjsonb `scripts/overview2`)"
  },
  {
    "path": "eww/scripts/activewin",
    "content": "#!/usr/bin/bash\n\ngetactivewin(){\n  winname=$(hyprctl activewindow | grep -e 'title: ' | sed 's/title: //' | sed 's/\\t//')\n  echo \"$winname\"\n}\n\ngetactivewin\n\nif [ \"$1\" == \"--once\" ]; then\n  exit 0\nelse\n  socat -u UNIX-CONNECT:/tmp/hypr/\"$HYPRLAND_INSTANCE_SIGNATURE\"/.socket2.sock - | rg --line-buffered \"window>>\" | while read -r line; do\n    getactivewin\n  done\nfi\n\n"
  },
  {
    "path": "eww/scripts/activews",
    "content": "#!/usr/bin/bash\n\nfocusedws=$(hyprctl activewindow -j | gojq '.workspace.id')\n\nif [ \"$1\" == \"--once\" ]; then\n  exit 0\nelse\n  socat -u UNIX-CONNECT:/tmp/hypr/\"$HYPRLAND_INSTANCE_SIGNATURE\"/.socket2.sock - | rg --line-buffered \"workspace>>\" | while read -r line; do\n    case ${line%>>*} in\n      \"workspace\")\n        focusedws=${line#*>>}\n        echo $focusedws\n        ;;\n    esac  \n  done\nfi\n\n"
  },
  {
    "path": "eww/scripts/focuswindow",
    "content": "#!/usr/bin/bash\nif [[ $1 == '_none' ]]; then\n  hyprctl dispatch workspace $2\nelse \n  hyprctl dispatch focuswindow address:$1\nfi"
  },
  {
    "path": "eww/scripts/get-icon.py",
    "content": "#!/usr/bin/env python3\nimport gi\nimport sys\ngi.require_version('Gtk', '3.0')\nfrom gi.repository import Gtk\n\n# Predefine class corrections\nif sys.argv[1] == 'Code':\n    sys.argv[1] = 'code'\nelif sys.argv[1] == 'code-url-handler':\n    sys.argv[1] = 'code'\nelif sys.argv[1] == 'Microsoft-edge':\n    sys.argv[1] = 'microsoft-edge'\nelif sys.argv[1] == 'GitHub Desktop':\n    sys.argv[1] = 'github-desktop'\nelif sys.argv[1] == 'org.kde.kolourpaint':\n    sys.argv[1] = 'kolourpaint'\nelif sys.argv[1] == 'osu!':\n    sys.argv[1] = 'osu'\nelif sys.argv[1] == 'Electron':\n    sys.argv[1] = 'discord'\nelif sys.argv[1] == 'WebCord':\n    sys.argv[1] = 'discord'\n\nicon_name = sys.argv[1]\nicon_theme = Gtk.IconTheme.get_default()\nicon = icon_theme.lookup_icon(icon_name, 48, 0)\nif icon:\n    print(icon.get_filename())\nelse:\n    print(\"not found\")\n"
  },
  {
    "path": "eww/scripts/overview1",
    "content": "#!/usr/bin/bash\ndummy='{\"address\":\"_none\",\"at\":[0,0],\"class\":\"workspace\",\"size\":[0,0],\"title\":\"<___overview_workspace>\",\"workspace\":{\"id\":<___overview_workspace>, \"name\": \"<___overview_workspace>\"}}'\n\ngetwins() {\n  hyprctlclients=$(hyprctl clients -j \\\n    | grep -v '\"xwayland\": ' \\\n    | grep -v '\"grouped\": ' \\\n    | grep -v '\"pid\": ' \\\n    | grep -v '\"fullscreenMode\": ' \\\n    | grep -v '\"monitor\": ' \\\n    | grep -v '\"floating\": ' \\\n    | grep -v '\"fullscreen\": ' \\\n    | grep -v '\"pinned\":') # | grep -v \"\"name\":\")\n  # echo '-=-=-=- final output -=-=-=-'\n  # echo \"$toprint\"\n  # echo $(echo \"$hyprctlclients\")  # Print on one line only\n\n  workspace=('[' '[' '[' '[' '[' '[' '[' '[' '[' '[')\n  workspacecnt=(0 0 0 0 0 0 0 0 0 0)\n\n  wsid=0\n\n  # echo $hyprctlclients | gojq -c '.[]'\n\n  IFS=$'\\n'\n  clientsarr=( $(echo $hyprctlclients | gojq -c '.[]') )\n  for client in \"${clientsarr[@]}\"; do\n    wsid=$(echo $client | gojq -c '.workspace.id')\n    ((wsid-=1))\n    if [[ \"${workspacecnt[wsid]}\" != \"0\" ]]; then \n      workspace[wsid]+=\",\"\n    fi\n\n    clientclass=$(echo $client | gojq '.class' | sed 's/\"//g')\n    iconpath=''\n\n    if [ -f \"scripts/cache/$clientclass\" ]; then\n        iconpath=$(cat scripts/cache/$clientclass)\n        if [ ! -f \"${iconpath}\" ]; then # Cache refresh if icon doesnt exist\n            iconpath=$(scripts/get-icon.py \"$clientclass\")\n            echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n        fi\n    else\n        iconpath=$(scripts/get-icon.py \"$clientclass\")\n        echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n    fi\n    if [[ ${iconpath} = \"not found\" ]]; then\n      iconpath=$(scripts/get-icon.py \"$(echo \"${classarr[i]##*.}\" | tr '[:upper:]' '[:lower:]')\")\n      if [[ ! ${iconpath} = \"not found\" ]]; then\n        rm \"scripts/cache/$clientclass\"\n        echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n      else \n        iconpath=\"/home/$USER/.local/share/icons/candy-icons/mimetypes/scalable/application-x-theme.svg\"\n        rm \"scripts/cache/$clientclass\"\n        echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n      fi\n    fi\n\n    client=${client::-1}\n    client+=\",\\\"icon\\\": \\\"$iconpath\\\"}\"\n    workspace[wsid]+=\"$client\" # Add window to workspace JSON\n\n    # echo -n \"Window: $clientclass\"\n    # echo '; icon path: '\"$iconpath\"\n    \n\n    # echo \"Count: ${workspacecnt[wsid]}\"\n    # echo 'ADDED TO: workspace '\"$wsid\"\n    # echo ' --> '\"${workspace[wsid]}\"\n    ((workspacecnt[wsid]+=1))\n  done\n  \n  for i in 0 1 2 3 4; do\n    if [[ ${workspace[i]} == \"[\" ]]; then \n      workspace[i]+=$(echo $dummy | sed \"s/<___overview_workspace>/$((i+1))/g\")\n    fi\n  done\n\n  for i in 0 1 2 3 4; do\n    workspace[i]+=']'\n  done\n\n  # echo '-=-=-=-=-=- Summary -=-=-=-=-=-'\n\n  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=- PRINT STUFF HERE -=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n  echo -n '['\n  for i in 0 1 2 3 4; do\n    if [[ $i != 0 ]]; then\n      echo -n ','\n    fi\n    echo -n \"${workspace[i]}\"\n  done\n  echo ']'\n}\n\n# Do stuff here\ngetwins\n\nif [ \"$1\" == \"--once\" ]; then\n  exit 0\nelse\n  socat -u UNIX-CONNECT:/tmp/hypr/\"$HYPRLAND_INSTANCE_SIGNATURE\"/.socket2.sock - | rg --line-buffered \"window>>\" | while read -r line; do\n    getwins\n  done\nfi"
  },
  {
    "path": "eww/scripts/overview2",
    "content": "#!/usr/bin/bash\ndummy='{\"address\":\"_none\",\"at\":[0,0],\"class\":\"workspace\",\"size\":[0,0],\"title\":\"<___overview_workspace>\",\"workspace\":{\"id\":<___overview_workspace>, \"name\": \"<___overview_workspace>\"}}'\n\ngetwins() {\n  hyprctlclients=$(hyprctl clients -j \\\n    | grep -v '\"xwayland\": ' \\\n    | grep -v '\"grouped\": ' \\\n    | grep -v '\"pid\": ' \\\n    | grep -v '\"fullscreenMode\": ' \\\n    | grep -v '\"monitor\": ' \\\n    | grep -v '\"floating\": ' \\\n    | grep -v '\"fullscreen\": ' \\\n    | grep -v '\"pinned\":') # | grep -v \"\"name\":\")\n  # echo '-=-=-=- final output -=-=-=-'\n  # echo \"$toprint\"\n  # echo $(echo \"$hyprctlclients\")  # Print on one line only\n\n  workspace=('[' '[' '[' '[' '[' '[' '[' '[' '[' '[')\n  workspacecnt=(0 0 0 0 0 0 0 0 0 0)\n\n  wsid=0\n\n  # echo $hyprctlclients | gojq -c '.[]'\n\n  IFS=$'\\n'\n  clientsarr=( $(echo $hyprctlclients | gojq -c '.[]') )\n  for client in \"${clientsarr[@]}\"; do\n    wsid=$(echo $client | gojq -c '.workspace.id')\n    ((wsid-=1))\n    if [[ \"${workspacecnt[wsid]}\" != \"0\" ]]; then \n      workspace[wsid]+=\",\"\n    fi\n\n    clientclass=$(echo $client | gojq '.class' | sed 's/\"//g')\n    iconpath=''\n\n    if [ -f \"scripts/cache/$clientclass\" ]; then\n        iconpath=$(cat scripts/cache/$clientclass)\n        if [ ! -f \"${iconpath}\" ]; then # Cache refresh if icon doesnt exist\n            iconpath=$(scripts/get-icon.py \"$clientclass\")\n            echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n        fi\n    else\n        iconpath=$(scripts/get-icon.py \"$clientclass\")\n        echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n    fi\n    if [[ ${iconpath} = \"not found\" ]]; then\n      iconpath=$(scripts/get-icon.py \"$(echo \"${classarr[i]##*.}\" | tr '[:upper:]' '[:lower:]')\")\n      if [[ ! ${iconpath} = \"not found\" ]]; then\n        rm \"scripts/cache/$clientclass\"\n        echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n      else \n        iconpath=\"/home/$USER/.local/share/icons/candy-icons/mimetypes/scalable/application-x-theme.svg\"\n        rm \"scripts/cache/$clientclass\"\n        echo \"${iconpath}\" > \"scripts/cache/$clientclass\"\n      fi\n    fi\n\n    client=${client::-1}\n    client+=\",\\\"icon\\\": \\\"$iconpath\\\"}\"\n    workspace[wsid]+=\"$client\" # Add window to workspace JSON\n\n    # echo -n \"Window: $clientclass\"\n    # echo '; icon path: '\"$iconpath\"\n    \n\n    # echo \"Count: ${workspacecnt[wsid]}\"\n    # echo 'ADDED TO: workspace '\"$wsid\"\n    # echo ' --> '\"${workspace[wsid]}\"\n    ((workspacecnt[wsid]+=1))\n  done\n  \n  for i in 5 6 7 8 9; do\n    if [[ ${workspace[i]} == \"[\" ]]; then \n      workspace[i]+=$(echo $dummy | sed \"s/<___overview_workspace>/$((i+1))/g\")\n    fi\n  done\n\n  for i in 5 6 7 8 9; do\n    workspace[i]+=']'\n  done\n\n  # echo '-=-=-=-=-=- Summary -=-=-=-=-=-'\n\n  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=- PRINT STUFF HERE -=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n  echo -n '['\n  for i in 5 6 7 8 9; do\n    if [[ $i != 5 ]]; then\n      echo -n ','\n    fi\n    echo -n \"${workspace[i]}\"\n  done\n  echo ']'\n}\n\n# Do stuff here\ngetwins\n\nif [ \"$1\" == \"--once\" ]; then\n  exit 0\nelse\n  socat -u UNIX-CONNECT:/tmp/hypr/\"$HYPRLAND_INSTANCE_SIGNATURE\"/.socket2.sock - | rg --line-buffered \"window>>\" | while read -r line; do\n    getwins\n  done\nfi"
  },
  {
    "path": "eww/scripts/selectwindow",
    "content": "#!/usr/bin/bash\n\nselected=$(eval $2 get selected)\n\n\nif [[ $selected == \"_none\" ]] || [[ $selected == \"\" ]]; then\n  eval \"$2 update selected=$1\"\n  selected=$(eval $2 get selected)\nelse\n  hyprctl dispatch movetoworkspacesilent $3,address:$selected\n\n  eval \"$2 update selected=_none\"\n  selected=$(eval $2 get selected)\nfi"
  },
  {
    "path": "eww/scripts/winlist",
    "content": "#!/usr/bin/bash\ngetwinlist(){\n  toprint=$(hyprctl clients -j \\\n    | grep -v '\"xwayland\": ' \\\n    | grep -v '\"grouped\": ' \\\n    | grep -v '\"pid\": ' \\\n    | grep -v '\"fullscreenMode\": ' \\\n    | grep -v '\"monitor\": ' \\\n    | grep -v '\"floating\": ' \\\n    | grep -v '\"fullscreen\": ' \\\n    | grep -v '\"at\": ' \\\n    | grep -v '\"size\": ' \\\n    | grep -v '\"pinned\":') # | grep -v \"\"name\":\")\n  # echo '-=-=-=- final output -=-=-=-'\n  # echo \"$toprint\"\n  echo $(echo \"$toprint\")  # Print on one line only\n}\n\ngetwinlist\n\nif [ \"$1\" == \"--once\" ]; then\n  exit 0\nelse\n  socat -u UNIX-CONNECT:/tmp/hypr/\"$HYPRLAND_INSTANCE_SIGNATURE\"/.socket2.sock - | rg --line-buffered \"window>>\" | while read -r line; do\n    echo $line\n    # getwinlist\n  done\nfi"
  },
  {
    "path": "eww/scripts/winnumbers",
    "content": "#!/usr/bin/bash\n\ngeticonlist() {\n    classes=$(hyprctl clients | grep -e 'class: ' | sed 's/class: Code/class: code/' | sed 's/\\tclass: //')\n    addresses=$(hyprctl clients | grep -e ' -> ')\n    # echo \"$classes\"\n    IFS=$'\\n'\n    classarr=($(echo \"$classes\"))\n    \n    printf '['\n    for i in \"${!classarr[@]}\"; do\n        if [ $i -ne 0 ]; then\n            printf ', '\n        fi\n        printf \"$i\"\n    done\n    echo ']'\n}\n\ngeticonlist\n\nif [ \"$1\" == \"--once\" ]; then\n  exit 0\nelse\n  socat -u UNIX-CONNECT:/tmp/hypr/\"$HYPRLAND_INSTANCE_SIGNATURE\"/.socket2.sock - | rg --line-buffered \"window>>\" | while read -r line; do\n    geticonlist\n  done\nfi\n\n"
  },
  {
    "path": "eww/scripts/workspaces",
    "content": "#!/usr/bin/env bash\n\n# define colors\ncolors=(\"#FFFFFF\" \"#fab387\" \"#a6e3a1\" \"#89b4fa\") # Active Workspaces\ndimmed=(\"#838383\" \"#f9e2af\" \"#94e2d5\" \"#b4befe\") # Inactive workspaces\nempty=\"#313244\" # Empty workspaces\n\n# get initial focused workspace\nfocusedws=$(hyprctl -j monitors | gojq -r '.[] | select(.focused == true) | .activeWorkspace.id')\n\ndeclare -A o=([1]=0 [2]=0 [3]=0 [4]=0 [5]=0 [6]=0 [7]=0 [8]=0 [9]=0 [10]=0)\ndeclare -A monitormap\ndeclare -A workspaces\n\n# set color for each workspace\nstatus() {\n  if [ \"${o[$1]}\" -eq 1 ]; then \n    mon=${monitormap[${workspaces[$1]}]}\n\n    if [ $focusedws -eq \"$1\" ]; then\n      echo -n \"${colors[$mon]}\"\n    else\n      echo -n \"${dimmed[$mon]}\"\n    fi\n  else\n    echo -n \"$empty\"\n  fi\n}\n\nstatus_activity() {\n  if [ \"${o[$1]}\" -eq 1 ]; then \n    mon=${monitormap[${workspaces[$1]}]}\n\n    if [ $focusedws -eq \"$1\" ]; then\n      echo -n \"active\"\n    else\n      echo -n \"inactive\"\n    fi\n  else\n    echo -n \"empty\"\n  fi\n}\n\n# handle workspace create/destroy\nworkspace_event() {\n  o[$1]=$2\n  while read -r k v; do workspaces[$k]=\"$v\"; done < <(hyprctl -j workspaces | gojq -r '.[]|\"\\(.id) \\(.monitor)\"')\n}\n# handle monitor (dis)connects\nmonitor_event() {\n  while read -r k v; do monitormap[\"$k\"]=$v; done < <(hyprctl -j monitors | gojq -r '.[]|\"\\(.name) \\(.id) \"')\n}\n\n# generate the json for eww\ngenerate() {\n  echo -n '['\n\n  for i in {1..10}; do\n    echo -n ''$([ $i -eq 1 ] || echo ,)'{\"num\":\"'$i'\",\"class\":\"'$(status_activity \"$i\")'\"}'\n    # echo -n ''$([ $i -eq 1 ] || echo ,) '{ \"number\": \"'\"$i\"'\", \"activity\": \"'\"$(status_activity $i)\"'\", \"color\": \"'$(status \"$i\")'\" }'\n  done\n\n  # echo -n ',{\"num\":\"'$focusedws'\",\"clr\":\"'$(status \"$focusedws\")'\"}'\n\n  echo ']'\n}\n\n# setup\n\n# add monitors\nmonitor_event\n\n# add workspaces\nwhile read -r k v; do workspaces[$k]=\"$v\"; done < <(hyprctl -j workspaces | gojq -r '.[]|\"\\(.id) \\(.monitor)\"')\n\n# check occupied workspaces\nfor num in \"${!workspaces[@]}\"; do\n  o[$num]=1\ndone\n# generate initial widget\ngenerate\n\n# main loop\nsocat -u UNIX-CONNECT:/tmp/hypr/\"$HYPRLAND_INSTANCE_SIGNATURE\"/.socket2.sock - | while read -r line; do\n  case ${line%>>*} in\n    \"workspace\")\n      focusedws=${line#*>>}\n      generate\n      ;;\n    \"focusedmon\")\n      focusedws=${line#*,}\n      generate\n      ;;\n    \"createworkspace\")\n      workspace_event \"${line#*>>}\" 1\n      generate\n      ;;\n    \"destroyworkspace\")\n      workspace_event \"${line#*>>}\" 0\n      generate\n      ;;\n    \"monitor\"*)\n      monitor_event\n      generate\n      ;;\n  esac\n  # echo $line\n  # generate\ndone\n"
  },
  {
    "path": "eww/tmp/_colorscheme.colorpallete",
    "content": "//Auto generated color theme for image at: https://i.ytimg.com/vi/1y2wUv8R-0M/hqdefault.jpg?sqp=-oaymwE2CNACELwBSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB1AaAAuADigIMCAAQARgwIEcofzAP&rs=AOn4CLC7Y8ZWbbAadA7DCL3H9YDr3eO7HQ\n@function bluetint($color, $percentage) { @return mix(#CDDFED, $color, $percentage); }\n@function blueshade($color, $percentage) { @return mix(#152E50, $color, $percentage); }\n$colorbg: #0a080d;\n$colortext: #e1e8ea;\n$color0: #2E6598;\n$color1: #57729D;\n$color2: #6696C2;\n$color3: #9F9FAA;\n$color4: #A0B0C9;\n$color5: #B1D8E6;\n$color6: #e1e8ea;\n$color7: #9F9FAA;\n"
  },
  {
    "path": "eww/tmp/_iconcolor.txt",
    "content": "#e1e8ea\n"
  },
  {
    "path": "eww/tmp/colors_generated.conf",
    "content": "# Auto generated color theme for image at: https://i.ytimg.com/vi/1y2wUv8R-0M/hqdefault.jpg?sqp=-oaymwE2CNACELwBSFXyq4qpAygIARUAAIhCGAFwAcABBvABAfgB1AaAAuADigIMCAAQARgwIEcofzAP&rs=AOn4CLC7Y8ZWbbAadA7DCL3H9YDr3eO7HQ\ngeneral {\n    col.active_border = rgba(2E6598FF) rgba(57729DFF) rgba(9F9FAAFF) 45deg\n    col.inactive_border = rgba(2E659866)\n}\n"
  },
  {
    "path": "eww/windows/overview.yuck",
    "content": "(defwidget overview []\n  (overlay\n    (box\n      :orientation \"v\"\n      :class \"overview-window\"\n      ; :space-evenly false\n      ; (label :text \"${wsjsona}\")\n      ; (label :text \"${selected}\")\n      (box\n        :orientation \"h\"\n        (for wspace in wsjsona\n          (box ; Note: height 100px width 356px\n            :class \"overview-ws\"\n            (box\n              :orientation \"v\"\n              (for ws-window in wspace\n                (eventbox\n                  :onrightclick \"scripts/selectwindow ${ws-window.address} '${EWW_CMD}' ${ws-window.workspace.id}\"\n                  :onmiddleclick \"hyprctl dispatch closewindow address:${ws-window.address}\"\n                  :onclick \"scripts/focuswindow ${ws-window.address} ${ws-window.workspace.id} && ${EWW_CMD} close overview\"\n                  (box\n                    :class \"overview-ws-window\"\n                    :orientation \"h\"\n                    :space-evenly false\n                    :spacing 10\n                    :style \"${ws-window.address == selected ? 'border: 2px solid #FFFFFF' : ''}; ${ws-window.address == '_none' ? 'border: none' : ''};\"\n                    (box\n                      :class \"overview-icon\"\n                      :style \"background-image: url('${ws-window.icon}')\"\n                    )\n                    (box\n                      :orientation \"v\"\n                      :space-evenly false\n                      :valign \"center\"\n                      (label :xalign 0 :halign \"start\" :class \"overview-ws-text\" :text \"${ws-window.title}\" :limit-width 28 :wrap false )\n                      (label :xalign 0 :halign \"start\" :class \"overview-ws-subtext\" :text \"${ws-window.class}\" :limit-width 30 :wrap false )\n                    )\n                  )\n                )\n              )\n            )\n          )\n        )\n      )\n      (box\n        :orientation \"h\"\n        (for wspace in wsjsonb\n          (box ; Note: height 100px width 178px\n            :class \"overview-ws\"\n            (box\n              :orientation \"v\"\n              (for ws-window in wspace\n                (eventbox\n                  :onrightclick \"scripts/selectwindow ${ws-window.address} '${EWW_CMD}' ${ws-window.workspace.id}\"\n                  :onmiddleclick \"hyprctl dispatch closewindow address:${ws-window.address}\"\n                  :onclick \"scripts/focuswindow ${ws-window.address} ${ws-window.workspace.id} && ${EWW_CMD} close overview\"\n                  (box\n                    :class \"overview-ws-window\"\n                    :orientation \"h\"\n                    :space-evenly false\n                    :spacing 10\n                    :style \"${ws-window.address == selected ? 'border: 2px solid #FFFFFF' : ''}; ${ws-window.address == '_none' ? 'border: none' : ''};\"\n                    (box\n                      :class \"overview-icon\"\n                      :style \"background-image: url('${ws-window.icon}')\"\n                    )\n                    (box\n                      :orientation \"v\"\n                      :space-evenly false\n                      :valign \"center\"\n                      (label :xalign 0 :halign \"start\" :class \"overview-ws-text\" :text \"${ws-window.title}\" :limit-width 28 :wrap false )\n                      (label :xalign 0 :halign \"start\" :class \"overview-ws-subtext\" :text \"${ws-window.class}\" :limit-width 30 :wrap false )\n                    )\n                  )\n                )\n              )\n            )\n          )\n        )\n      )\n    )\n  )\n)\n\n(defwidget testing []\n  (box\n    :class \"overview-window\"\n    (overlay\n      (box\n        :class \"overview-ws-window\"\n        :style \"margin: 2px;\"\n      )\n    )\n  )\n)\n\n(defwindow overview\n  :wm-ignore true\n  :monitor 0\n  :geometry (geometry\n    :x \"300px\"\n    :y \"32px\"\n    :anchor \"center\"\n    :width \"1780px\"\n    :height \"405px\"\n  )\n  ; (testing)\n  (overview)\n)\n"
  },
  {
    "path": "hypr/desktop-portals.sh",
    "content": "#!/bin/sh\necho \"amogus\" > ~/.config/hypr/portals-log\nsleep 1\nkillall xdg-desktop-portal-hyprland\nkillall xdg-desktop-portal-wlr\nkillall xdg-desktop-portal\n/usr/lib/xdg-desktop-portal-hyprland &\nsleep 2\n/usr/lib/xdg-desktop-portal &\n\n"
  },
  {
    "path": "hypr/hyprland.conf",
    "content": "# Catppuccin Hyprland config\n\n# Catppuccin colors\nsource = ~/.config/hypr/mocha.conf\n\n#monitor=,preferred,auto,1\nmonitor = DP-1,3840x2160@60,5760x0,2\nmonitor = DP-2,3840x2160@60,1920x0,1\nmonitor = eDP-1,1920x1080@60,0x0,1 \n\nworkspace=eDP-1,1\nworkspace=DP-2,2\nworkspace=DP-1,3\n\n# Startup programs and scipts\nexec-once = sh .config/hypr/desktop-portals.sh\n\nexec-once = sh .config/hypr/per-monitor-launcher.sh # My bar and wallpaper are set depending on the monitor\nexec-once = dunst\nexec-once = ckb-next -b\nexec-once = hyprctl setcursor Bibata-Modern-Classic 24\nexec-once = /usr/lib/polkit-kde-authentication-agent-1\nexec-once = swayidle -w before-sleep swaylock\nexec = sh .config/hypr/scripts/get-last-focused-window.sh\nexec = eww daemon\n#exec-once = sleep 2 & swaylock\n\ninput {\n    kb_layout = ca\n    kb_variant = multix\n    kb_model =\n    kb_options =\n    kb_rules =\n    numlock_by_default=true\n\n    follow_mouse = 1\n\n    touchpad {\n        natural_scroll = yes\n    }\n\n    sensitivity = 0 # -1.0 - 1.0, 0 means no modification.\n}\n\ngestures {\n    workspace_swipe=1\n    workspace_swipe_distance=400\n    workspace_swipe_invert=1\n    workspace_swipe_min_speed_to_force=30\n    workspace_swipe_cancel_ratio=0.5\n    workspace_swipe_create_new=0\n    workspace_swipe_forever=1\n}\n\ngeneral {\n    gaps_in = 10\n    gaps_out = 20\n\n    border_size = 3\n    col.active_border=$teal\n    col.inactive_border=$surface2\n\n    layout = dwindle\n}\n\ndecoration {\n    rounding = 15\n\n    blur = no\n    blur_size = 9\n    blur_passes = 4\n    blur_new_optimizations = on\n\n    drop_shadow = yes\n    shadow_range = 15\n    shadow_render_power = 3\n    col.shadow = rgba(000000ee)\n\n    dim_inactive = false\n    dim_strength = 0.2\n\n    multisample_edges = true\n}\n\nanimations {\n    enabled = yes\n\n    bezier = myBezier, 0.05, 0.9, 0.1, 1.05\n    bezier = myBezier2, 0.65, 0, 0.35, 1\n\n    bezier=slow,0,0.85,0.3,1\n    bezier=overshot,0.7,0.6,0.1,1.1\n    bezier=bounce,1,1.6,0.1,0.85\n    bezier=slingshot,1,-1,0.15,1.25\n    bezier=nice,0,6.9,0.5,-4.20\n\t\n    animation=windows,1,5,bounce,popin\n    animation=border,1,20,default\n    animation=fade,1,5,default\n    animation=workspaces,1,5,overshot,slide\n}\n\ndwindle {\n    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below\n    preserve_split = yes # you probably want this\n\n    col.group_border = $surface2\n    col.group_border_active = $teal\n}\n\nmaster {\n    new_is_master = true\n}\n\ngestures {\n    workspace_swipe = on\n}\n\ndevice:epic mouse V1 {\n    sensitivity = -0.5\n}\n\nbinds {\n\tworkspace_back_and_forth = true\n\n}\n\nmisc {\n\tno_vfr = true\n}\n\nwindowrule = float, ^(pavucontrol)$\nwindowrule = maxsize 600 800, ^(pavucontrol)$\nwindowrule = center, ^(pavucontrol)$\nwindowrule = tile, ^(libreoffice)$\nwindowrule = float, ^(blueman-manager)$\nwindowrule = nofullscreenrequest, ^(.*libreoffice.*)$\nwindowrule = size 490 600, ^(org.gnome.Calculator)$\nwindowrule = float, ^(org.gnome.Calculator)$\nwindowrule = float, ^(org.kde.polkit-kde-authentication-agent-1)$\n\n$mainMod = SUPER\n\n# Main binds\nbind = $mainMod, return, exec, kitty\nbind = $mainMod, Q, killactive, \nbind = $mainMod, M, exit, \nbind = $mainMod, E, exec, thunar\nbind = $mainMod, V, togglefloating, \nbind = $mainMod, D, exec, wofi --show drun --term=kitty --width=40% --columns 2 -I -s ~/.config/wofi/style.css\nbind = $mainMod, C, exec, rofi -show calc -modi calc -no-show-match -no-sort -terse -no-persist-history -theme ~/.config/rofi/style.rasi\nbind = $mainMod, L, exec, swaylock\nbind = $mainMod, G, togglegroup\nbind = $mainMod, F, fullscreen,\nbind = $mainMod, A, movetoworkspace, special\nbind = $mainMod, P, pseudo, # dwindle\nbind = $mainMod, J, togglesplit, # dwindle\nbind = $mainMod, B, exec, sh .config/wofi/powermenu.sh\nbind = $mainMod, W, exec, eww open --toggle overview  && eww update selected=_none\nbind = $mainMod, N, exec, ~/wofi-emoji/wofi-emoji\nbind = $mainMod, F10, pass, ^(com\\.obsproject\\.Studio)$\nbind = ALT, Tab, exec, hyprctl dispatch focuswindow pid:$(cat .config/hypr/scripts/last-focused-window | sed 's/.*\\(pid: \\([0-9]*\\)\\).*/\\2 /')\n\n# Hardware controls using function keys\nbind = , XF86MonBrightnessDown, exec, brightnessctl set 10%-\nbind = , XF86MonBrightnessUp, exec, brightnessctl set +10%\nbinde = , XF86AudioRaiseVolume, exec, pactl -- set-sink-volume @DEFAULT_SINK@ +5%\nbinde = , XF86AudioLowerVolume, exec, pactl -- set-sink-volume @DEFAULT_SINK@ -5%\nbind = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle\n\n# Toggle gaps\nbind = $mainMod, H, exec, sh .config/hypr/toggle-gaps.sh\n\n# Toggle between floating windows\n#bind = ALT, Tab, cyclenext,\n#bind = ALT, Tab, bringactivetotop,\n\nbind = $mainMod, Tab, changegroupactive,\n\n# Resize focused window with arrow keys, indicated with borders of a different color\nbind = $mainMod, R, exec, hyprctl --batch keyword \"general:col.active_border rgba(fab387ff);\"\nbind = $mainMod, R, exec, hyprctl --batch keyword \"dwindle:col.group_border_active rgba(fab387ff);\"\nbind = $mainMod, R, submap, resize\nsubmap = resize\nbinde = , right, resizeactive, 10 0\nbinde = , left, resizeactive, -10 0\nbinde = , up, resizeactive, 0 -10\nbinde = , down, resizeactive, 0 10\nbind = , escape, exec, hyprctl --batch keyword \"general:col.active_border rgba(94e2d5ff);\"\nbind = , escape, exec, hyprctl --batch keyword \"dwindle:col.group_border_active rgba(94e2d5ff);\"\nbind = , escape, submap, reset\nsubmap = reset\n\n# Change DPI on external monitor\nbind = $mainMod, F11, exec, hyprctl keyword monitor DP-2,3840x2160@60,0x0,1.25\nbind = $mainMod, F12, exec, hyprctl keyword monitor DP-2,3840x2160@60,0x0,1\n\n# Move focus with mainMod + arrow keys\nbind = $mainMod, left, movefocus, l\nbind = $mainMod, right, movefocus, r\nbind = $mainMod, up, movefocus, u\nbind = $mainMod, down, movefocus, d\n\n# Switch workspaces with mainMod + [0-9]\nbind = $mainMod, MINUS, workspace, special \nbind = $mainMod, 1, workspace, 1\nbind = $mainMod, 2, workspace, 2\nbind = $mainMod, 3, workspace, 3\nbind = $mainMod, 4, workspace, 4\nbind = $mainMod, 5, workspace, 5\nbind = $mainMod, 6, workspace, 6\nbind = $mainMod, 7, workspace, 7\nbind = $mainMod, 8, workspace, 8\nbind = $mainMod, 9, workspace, 9\nbind = $mainMod, 0, workspace, 10\n\n# Move active window to a workspace with mainMod + SHIFT + [0-9]\nbind = $mainMod SHIFT, 1, movetoworkspace, 1\nbind = $mainMod SHIFT, 2, movetoworkspace, 2\nbind = $mainMod SHIFT, 3, movetoworkspace, 3\nbind = $mainMod SHIFT, 4, movetoworkspace, 4\nbind = $mainMod SHIFT, 5, movetoworkspace, 5\nbind = $mainMod SHIFT, 6, movetoworkspace, 6\nbind = $mainMod SHIFT, 7, movetoworkspace, 7\nbind = $mainMod SHIFT, 8, movetoworkspace, 8\nbind = $mainMod SHIFT, 9, movetoworkspace, 9\nbind = $mainMod SHIFT, 0, movetoworkspace, 10\n\n# Scroll through existing workspaces with mainMod + scroll\nbind = $mainMod, mouse_down, workspace, e+1\nbind = $mainMod, mouse_up, workspace, e-1\n\n# Move/resize windows with mainMod + LMB/RMB and dragging\nbindm = $mainMod, mouse:272, movewindow\nbindm = $mainMod, mouse:273, resizewindow\n\nbind = $mainMod SHIFT, left, movewindow, l\nbind = $mainMod SHIFT, right, movewindow, r\nbind = $mainMod SHIFT, up, movewindow, u\nbind = $mainMod SHIFT, down, movewindow, d\n\nbind = $mainMod CTRL, left, workspace, e-1\nbind = $mainMod CTRL, right, workspace, e+1\n\n# Take a screenshot\nbind = $mainMod,Print, exec, grim -g \"$(slurp)\" \"$HOME/Pictures/screenshots/$(date +'%s_grim.png')\"\nbind = , Print, exec, grim -g \"$(slurp -d)\" - | wl-copy\n\nexec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP\nexec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP\n"
  },
  {
    "path": "hypr/hyprpaper-desktop.conf",
    "content": "preload = Pictures/wallpapers/catppuccin-custom-darker-corners-desktop.png\npreload = Pictures/wallpapers/catppuccin-custom-darker.png\npreload = Pictures/wallpapers/result.png\n\nwallpaper = DP-2,Pictures/wallpapers/catppuccin-custom-darker-corners-desktop.png\nwallpaper = eDP-1,Pictures/wallpapers/catppuccin-custom-darker.png\n"
  },
  {
    "path": "hypr/hyprpaper-laptop.conf",
    "content": "preload = Pictures/wallpapers/catppuccin-custom-darker-corners.png\n\nwallpaper = ,Pictures/wallpapers/catppuccin-custom-darker-corners.png\n"
  },
  {
    "path": "hypr/mocha.conf",
    "content": "$rosewater = 0xfff5e0dc\n$flamingo  = 0xfff2cdcd\n$pink      = 0xfff5c2e7\n$mauve     = 0xffcba6f7\n$red       = 0xfff38ba8\n$maroon    = 0xffeba0ac\n$peach     = 0xfffab387\n$yellow    = 0xfff9e2af\n$green     = 0xffa6e3a1\n$teal      = 0xff94e2d5\n$sky       = 0xff89dceb\n$sapphire  = 0xff74c7ec\n$blue      = 0xff89b4fa\n$lavender  = 0xffb4befe\n\n$text      = 0xffcdd6f4\n$subtext1  = 0xffbac2de\n$subtext0  = 0xffa6adc8\n\n$overlay2  = 0xff9399b2\n$overlay1  = 0xff7f849c\n$overlay0  = 0xff6c7086\n\n$surface2  = 0xff585b70\n$surface1  = 0xff45475a\n$surface0  = 0xff313244\n\n$base      = 0xff1e1e2e\n$mantle    = 0xff181825\n$crust     = 0xff11111b\n"
  },
  {
    "path": "hypr/per-monitor-launcher.sh",
    "content": "#!/bin/sh\npkill waybar\npkill hyprpaper\n\nm=$(printenv LAPTOP)\n\nif [ $m = 1 ]; then\n    hyprpaper -c .config/hypr/hyprpaper-laptop.conf &\n    sleep 2 & waybar --config .config/waybar/laptop-bar/config --style .config/waybar/laptop-bar/style.css\nelse\n    hyprpaper -c .config/hypr/hyprpaper-desktop.conf &\n    sleep 2 & waybar --config .config/waybar/desktop-bar/config --style .config/waybar/desktop-bar/style.css\nfi\n"
  },
  {
    "path": "hypr/portals-log",
    "content": "amogus\n"
  },
  {
    "path": "hypr/scripts/focused-window",
    "content": "Window a9ea0840 -> git add -A: at: 973,73 size: 924,984 workspace: 1 (1) floating: 0 monitor: 0 class: kitty title: git add -A pid: 158327 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0\n"
  },
  {
    "path": "hypr/scripts/get-last-focused-window.sh",
    "content": "#!/bin/sh\n\nfunction handle {\n  if [[ ${1:0:12} == \"activewindow\" ]]; then\n    if [[ $1 != \"activewindow>>,\" ]]; then\n      cat ~/.config/hypr/scripts/focused-window > ~/.config/hypr/scripts/last-focused-window\n      window=$(hyprctl activewindow)\n      echo $window > ~/.config/hypr/scripts/focused-window\n      #notify-send $1\n    fi\n  fi\n}\n\nsocat - UNIX-CONNECT:/tmp/hypr/$(echo $HYPRLAND_INSTANCE_SIGNATURE)/.socket2.sock | while read line; do handle $line; done"
  },
  {
    "path": "hypr/scripts/last-focused-window",
    "content": "Window a9ea0840 -> mathis_hyprland@LEGION-Mathis:~/hyppuccin: at: 973,73 size: 924,984 workspace: 1 (1) floating: 0 monitor: 0 class: kitty title: mathis_hyprland@LEGION-Mathis:~/hyppuccin pid: 158327 xwayland: 0 pinned: 0 fullscreen: 0 fullscreenmode: 0 fakefullscreen: 0 grouped: 0 swallowing: 0\n"
  },
  {
    "path": "hypr/toggle-gaps.sh",
    "content": "#!/bin/sh\n\nTOGGLE=$HOME/.toggle\n\nif [ ! -e $TOGGLE ]; then\n\ttouch $TOGGLE\n\thyprctl keyword general:gaps_in 0\n\thyprctl keyword general:gaps_out 0\n\thyprctl keyword decoration:rounding 0\nelse\n\trm $TOGGLE\n\thyprctl keyword general:gaps_in 10\n\thyprctl keyword general:gaps_out 20\n\thyprctl keyword decoration:rounding 15\nfi\n"
  },
  {
    "path": "kitty/kitty.conf",
    "content": "# vim:fileencoding=utf-8:foldmethod=marker\n\n#: Fonts {{{\n\n#: kitty has very powerful font management. You can configure\n#: individual font faces and even specify special fonts for particular\n#: characters.\n\n# font_family      monospace\n# bold_font        auto\n# italic_font      auto\n# bold_italic_font auto\n\n#: You can specify different fonts for the bold/italic/bold-italic\n#: variants. To get a full list of supported fonts use the `kitty\n#: +list-fonts` command. By default they are derived automatically, by\n#: the OSes font system. When bold_font or bold_italic_font is set to\n#: auto on macOS, the priority of bold fonts is semi-bold, bold,\n#: heavy. Setting them manually is useful for font families that have\n#: many weight variants like Book, Medium, Thick, etc. For example::\n\n     font_family      SF Mono\n#:     bold_font        Operator Mono Medium\n#:     italic_font      Operator Mono Book Italic\n#:     bold_italic_font Operator Mono Medium Italic\n\n font_size 12.0\n\n#: Font size (in pts)\n\n# force_ltr no\n\n#: kitty does not support BIDI (bidirectional text), however, for RTL\n#: scripts, words are automatically displayed in RTL. That is to say,\n#: in an RTL script, the words \"HELLO WORLD\" display in kitty as\n#: \"WORLD HELLO\", and if you try to select a substring of an RTL-\n#: shaped string, you will get the character that would be there had\n#: the the string been LTR. For example, assuming the Hebrew word\n#: ירושלים, selecting the character that on the screen appears to be ם\n#: actually writes into the selection buffer the character י.  kitty's\n#: default behavior is useful in conjunction with a filter to reverse\n#: the word order, however, if you wish to manipulate RTL glyphs, it\n#: can be very challenging to work with, so this option is provided to\n#: turn it off. Furthermore, this option can be used with the command\n#: line program GNU FriBidi\n#: <https://github.com/fribidi/fribidi#executable> to get BIDI\n#: support, because it will force kitty to always treat the text as\n#: LTR, which FriBidi expects for terminals.\n\n# symbol_map\n\n#: E.g. symbol_map U+E0A0-U+E0A3,U+E0C0-U+E0C7 PowerlineSymbols\n\n#: Map the specified Unicode codepoints to a particular font. Useful\n#: if you need special rendering for some symbols, such as for\n#: Powerline. Avoids the need for patched fonts. Each Unicode code\n#: point is specified in the form `U+<code point in hexadecimal>`. You\n#: can specify multiple code points, separated by commas and ranges\n#: separated by hyphens. This option can be specified multiple times.\n#: The syntax is::\n\n#:     symbol_map codepoints Font Family Name\n\n# narrow_symbols\n\n#: E.g. narrow_symbols U+E0A0-U+E0A3,U+E0C0-U+E0C7 1\n\n#: Usually, for Private Use Unicode characters and some symbol/dingbat\n#: characters, if the character is followed by one or more spaces,\n#: kitty will use those extra cells to render the character larger, if\n#: the character in the font has a wide aspect ratio. Using this\n#: option you can force kitty to restrict the specified code points to\n#: render in the specified number of cells (defaulting to one cell).\n#: This option can be specified multiple times. The syntax is::\n\n#:     narrow_symbols codepoints [optionally the number of cells]\n\n# disable_ligatures never\n\n#: Choose how you want to handle multi-character ligatures. The\n#: default is to always render them. You can tell kitty to not render\n#: them when the cursor is over them by using cursor to make editing\n#: easier, or have kitty never render them at all by using always, if\n#: you don't like them. The ligature strategy can be set per-window\n#: either using the kitty remote control facility or by defining\n#: shortcuts for it in kitty.conf, for example::\n\n#:     map alt+1 disable_ligatures_in active always\n#:     map alt+2 disable_ligatures_in all never\n#:     map alt+3 disable_ligatures_in tab cursor\n\n#: Note that this refers to programming ligatures, typically\n#: implemented using the calt OpenType feature. For disabling general\n#: ligatures, use the font_features option.\n\n# font_features\n\n#: E.g. font_features none\n\n#: Choose exactly which OpenType features to enable or disable. This\n#: is useful as some fonts might have features worthwhile in a\n#: terminal. For example, Fira Code includes a discretionary feature,\n#: zero, which in that font changes the appearance of the zero (0), to\n#: make it more easily distinguishable from Ø. Fira Code also includes\n#: other discretionary features known as Stylistic Sets which have the\n#: tags ss01 through ss20.\n\n#: For the exact syntax to use for individual features, see the\n#: HarfBuzz documentation <https://harfbuzz.github.io/harfbuzz-hb-\n#: common.html#hb-feature-from-string>.\n\n#: Note that this code is indexed by PostScript name, and not the font\n#: family. This allows you to define very precise feature settings;\n#: e.g. you can disable a feature in the italic font but not in the\n#: regular font.\n\n#: On Linux, font features are first read from the FontConfig database\n#: and then this option is applied, so they can be configured in a\n#: single, central place.\n\n#: To get the PostScript name for a font, use `kitty +list-fonts\n#: --psnames`:\n\n#: .. code-block:: sh\n\n#:     $ kitty +list-fonts --psnames | grep Fira\n#:     Fira Code\n#:     Fira Code Bold (FiraCode-Bold)\n#:     Fira Code Light (FiraCode-Light)\n#:     Fira Code Medium (FiraCode-Medium)\n#:     Fira Code Regular (FiraCode-Regular)\n#:     Fira Code Retina (FiraCode-Retina)\n\n#: The part in brackets is the PostScript name.\n\n#: Enable alternate zero and oldstyle numerals::\n\n#:     font_features FiraCode-Retina +zero +onum\n\n#: Enable only alternate zero in the bold font::\n\n#:     font_features FiraCode-Bold +zero\n\n#: Disable the normal ligatures, but keep the calt feature which (in\n#: this font) breaks up monotony::\n\n#:     font_features TT2020StyleB-Regular -liga +calt\n\n#: In conjunction with force_ltr, you may want to disable Arabic\n#: shaping entirely, and only look at their isolated forms if they\n#: show up in a document. You can do this with e.g.::\n\n#:     font_features UnifontMedium +isol -medi -fina -init\n\n# modify_font\n\n#: Modify font characteristics such as the position or thickness of\n#: the underline and strikethrough. The modifications can have the\n#: suffix px for pixels or % for percentage of original value. No\n#: suffix means use pts. For example::\n\n#:     modify_font underline_position -2\n#:     modify_font underline_thickness 150%\n#:     modify_font strikethrough_position 2px\n\n#: Additionally, you can modify the size of the cell in which each\n#: font glyph is rendered and the baseline at which the glyph is\n#: placed in the cell. For example::\n\n#:     modify_font cell_width 80%\n#:     modify_font cell_height -2px\n#:     modify_font baseline 3\n\n#: Note that modifying the baseline will automatically adjust the\n#: underline and strikethrough positions by the same amount.\n#: Increasing the baseline raises glyphs inside the cell and\n#: decreasing it lowers them. Decreasing the cell size might cause\n#: rendering artifacts, so use with care.\n\n box_drawing_scale 0.001, 1, 1.5, 2\n\n#: The sizes of the lines used for the box drawing Unicode characters.\n#: These values are in pts. They will be scaled by the monitor DPI to\n#: arrive at a pixel value. There must be four values corresponding to\n#: thin, normal, thick, and very thick lines.\n\n#: }}}\n\n#: Cursor customization {{{\n\n# cursor #cccccc\n\n#: Default cursor color. If set to the special value none the cursor\n#: will be rendered with a \"reverse video\" effect. It's color will be\n#: the color of the text in the cell it is over and the text will be\n#: rendered with the background color of the cell. Note that if the\n#: program running in the terminal sets a cursor color, this takes\n#: precedence. Also, the cursor colors are modified if the cell\n#: background and foreground colors have very low contrast.\n\n# cursor_text_color #111111\n\n#: The color of text under the cursor. If you want it rendered with\n#: the background color of the cell underneath instead, use the\n#: special keyword: background. Note that if cursor is set to none\n#: then this option is ignored.\n\n# cursor_shape block\n\n#: The cursor shape can be one of block, beam, underline. Note that\n#: when reloading the config this will be changed only if the cursor\n#: shape has not been set by the program running in the terminal. This\n#: sets the default cursor shape, applications running in the terminal\n#: can override it. In particular, shell integration\n#: <https://sw.kovidgoyal.net/kitty/shell-integration/> in kitty sets\n#: the cursor shape to beam at shell prompts. You can avoid this by\n#: setting shell_integration to no-cursor.\n\n# cursor_beam_thickness 1.5\n\n#: The thickness of the beam cursor (in pts).\n\n# cursor_underline_thickness 2.0\n\n#: The thickness of the underline cursor (in pts).\n\n# cursor_blink_interval -1\n\n#: The interval to blink the cursor (in seconds). Set to zero to\n#: disable blinking. Negative values mean use system default. Note\n#: that the minimum interval will be limited to repaint_delay.\n\n# cursor_stop_blinking_after 15.0\n\n#: Stop blinking cursor after the specified number of seconds of\n#: keyboard inactivity. Set to zero to never stop blinking.\n\n#: }}}\n\n#: Scrollback {{{\n\n# scrollback_lines 2000\n\n#: Number of lines of history to keep in memory for scrolling back.\n#: Memory is allocated on demand. Negative numbers are (effectively)\n#: infinite scrollback. Note that using very large scrollback is not\n#: recommended as it can slow down performance of the terminal and\n#: also use large amounts of RAM. Instead, consider using\n#: scrollback_pager_history_size. Note that on config reload if this\n#: is changed it will only affect newly created windows, not existing\n#: ones.\n\n# scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER\n\n#: Program with which to view scrollback in a new window. The\n#: scrollback buffer is passed as STDIN to this program. If you change\n#: it, make sure the program you use can handle ANSI escape sequences\n#: for colors and text formatting. INPUT_LINE_NUMBER in the command\n#: line above will be replaced by an integer representing which line\n#: should be at the top of the screen. Similarly CURSOR_LINE and\n#: CURSOR_COLUMN will be replaced by the current cursor position or\n#: set to 0 if there is no cursor, for example, when showing the last\n#: command output.\n\n# scrollback_pager_history_size 0\n\n#: Separate scrollback history size (in MB), used only for browsing\n#: the scrollback buffer with pager. This separate buffer is not\n#: available for interactive scrolling but will be piped to the pager\n#: program when viewing scrollback buffer in a separate window. The\n#: current implementation stores the data in UTF-8, so approximatively\n#: 10000 lines per megabyte at 100 chars per line, for pure ASCII,\n#: unformatted text. A value of zero or less disables this feature.\n#: The maximum allowed size is 4GB. Note that on config reload if this\n#: is changed it will only affect newly created windows, not existing\n#: ones.\n\n# scrollback_fill_enlarged_window no\n\n#: Fill new space with lines from the scrollback buffer after\n#: enlarging a window.\n\n# wheel_scroll_multiplier 5.0\n\n#: Multiplier for the number of lines scrolled by the mouse wheel.\n#: Note that this is only used for low precision scrolling devices,\n#: not for high precision scrolling devices on platforms such as macOS\n#: and Wayland. Use negative numbers to change scroll direction. See\n#: also wheel_scroll_min_lines.\n\n# wheel_scroll_min_lines 1\n\n#: The minimum number of lines scrolled by the mouse wheel. The scroll\n#: multiplier wheel_scroll_multiplier only takes effect after it\n#: reaches this number. Note that this is only used for low precision\n#: scrolling devices like wheel mice that scroll by very small amounts\n#: when using the wheel. With a negative number, the minimum number of\n#: lines will always be added.\n\n# touch_scroll_multiplier 1.0\n\n#: Multiplier for the number of lines scrolled by a touchpad. Note\n#: that this is only used for high precision scrolling devices on\n#: platforms such as macOS and Wayland. Use negative numbers to change\n#: scroll direction.\n\n#: }}}\n\n#: Mouse {{{\n\n# mouse_hide_wait 3.0\n\n#: Hide mouse cursor after the specified number of seconds of the\n#: mouse not being used. Set to zero to disable mouse cursor hiding.\n#: Set to a negative value to hide the mouse cursor immediately when\n#: typing text. Disabled by default on macOS as getting it to work\n#: robustly with the ever-changing sea of bugs that is Cocoa is too\n#: much effort.\n\n# url_color #0087bd\n# url_style curly\n\n#: The color and style for highlighting URLs on mouse-over. url_style\n#: can be one of: none, straight, double, curly, dotted, dashed.\n\n# open_url_with default\n\n#: The program to open clicked URLs. The special value default with\n#: first look for any URL handlers defined via the open_actions\n#: <https://sw.kovidgoyal.net/kitty/open_actions/> facility and if non\n#: are found, it will use the Operating System's default URL handler\n#: (open on macOS and xdg-open on Linux).\n\n# url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty mailto news sftp ssh\n\n#: The set of URL prefixes to look for when detecting a URL under the\n#: mouse cursor.\n\n# detect_urls yes\n\n#: Detect URLs under the mouse. Detected URLs are highlighted with an\n#: underline and the mouse cursor becomes a hand over them. Even if\n#: this option is disabled, URLs are still clickable.\n\n# url_excluded_characters\n\n#: Additional characters to be disallowed from URLs, when detecting\n#: URLs under the mouse cursor. By default, all characters that are\n#: legal in URLs are allowed.\n\n# copy_on_select no\n\n#: Copy to clipboard or a private buffer on select. With this set to\n#: clipboard, selecting text with the mouse will cause the text to be\n#: copied to clipboard. Useful on platforms such as macOS that do not\n#: have the concept of primary selection. You can instead specify a\n#: name such as a1 to copy to a private kitty buffer. Map a shortcut\n#: with the paste_from_buffer action to paste from this private\n#: buffer. For example::\n\n#:     copy_on_select a1\n#:     map shift+cmd+v paste_from_buffer a1\n\n#: Note that copying to the clipboard is a security risk, as all\n#: programs, including websites open in your browser can read the\n#: contents of the system clipboard.\n\n# paste_actions quote-urls-at-prompt\n\n#: A comma separated list of actions to take when pasting text into\n#: the terminal. The supported paste actions are:\n\n#: quote-urls-at-prompt:\n#:     If the text being pasted is a URL and the cursor is at a shell prompt,\n#:     automatically quote the URL (needs shell_integration).\n#: confirm:\n#:     Confirm the paste if bracketed paste mode is not active or there is more\n#:     a large amount of text being pasted.\n#: filter:\n#:     Run the filter_paste() function from the file paste-actions.py in\n#:     the kitty config directory on the pasted text. The text returned by the\n#:     function will be actually pasted.\n\n# strip_trailing_spaces never\n\n#: Remove spaces at the end of lines when copying to clipboard. A\n#: value of smart will do it when using normal selections, but not\n#: rectangle selections. A value of always will always do it.\n\n# select_by_word_characters @-./_~?&=%+#\n\n#: Characters considered part of a word when double clicking. In\n#: addition to these characters any character that is marked as an\n#: alphanumeric character in the Unicode database will be matched.\n\n# select_by_word_characters_forward\n\n#: Characters considered part of a word when extending the selection\n#: forward on double clicking. In addition to these characters any\n#: character that is marked as an alphanumeric character in the\n#: Unicode database will be matched.\n\n#: If empty (default) select_by_word_characters will be used for both\n#: directions.\n\n# click_interval -1.0\n\n#: The interval between successive clicks to detect double/triple\n#: clicks (in seconds). Negative numbers will use the system default\n#: instead, if available, or fallback to 0.5.\n\n# focus_follows_mouse no\n\n#: Set the active window to the window under the mouse when moving the\n#: mouse around.\n\n# pointer_shape_when_grabbed arrow\n\n#: The shape of the mouse pointer when the program running in the\n#: terminal grabs the mouse. Valid values are: arrow, beam and hand.\n\n# default_pointer_shape beam\n\n#: The default shape of the mouse pointer. Valid values are: arrow,\n#: beam and hand.\n\n# pointer_shape_when_dragging beam\n\n#: The default shape of the mouse pointer when dragging across text.\n#: Valid values are: arrow, beam and hand.\n\n#: Mouse actions {{{\n\n#: Mouse buttons can be mapped to perform arbitrary actions. The\n#: syntax is:\n\n#: .. code-block:: none\n\n#:     mouse_map button-name event-type modes action\n\n#: Where button-name is one of left, middle, right, b1 ... b8 with\n#: added keyboard modifiers. For example: ctrl+shift+left refers to\n#: holding the Ctrl+Shift keys while clicking with the left mouse\n#: button. The value b1 ... b8 can be used to refer to up to eight\n#: buttons on a mouse.\n\n#: event-type is one of press, release, doublepress, triplepress,\n#: click, doubleclick. modes indicates whether the action is performed\n#: when the mouse is grabbed by the program running in the terminal,\n#: or not. The values are grabbed or ungrabbed or a comma separated\n#: combination of them. grabbed refers to when the program running in\n#: the terminal has requested mouse events. Note that the click and\n#: double click events have a delay of click_interval to disambiguate\n#: from double and triple presses.\n\n#: You can run kitty with the kitty --debug-input command line option\n#: to see mouse events. See the builtin actions below to get a sense\n#: of what is possible.\n\n#: If you want to unmap an action, map it to no_op. For example, to\n#: disable opening of URLs with a plain click::\n\n#:     mouse_map left click ungrabbed no_op\n\n#: See all the mappable actions including mouse actions here\n#: <https://sw.kovidgoyal.net/kitty/actions/>.\n\n#: .. note::\n#:     Once a selection is started, releasing the button that started it will\n#:     automatically end it and no release event will be dispatched.\n\n# clear_all_mouse_actions no\n\n#: Remove all mouse action definitions up to this point. Useful, for\n#: instance, to remove the default mouse actions.\n\n#: Click the link under the mouse or move the cursor\n\n# mouse_map left click ungrabbed mouse_handle_click selection link prompt\n\n#::  First check for a selection and if one exists do nothing. Then\n#::  check for a link under the mouse cursor and if one exists, click\n#::  it. Finally check if the click happened at the current shell\n#::  prompt and if so, move the cursor to the click location. Note\n#::  that this requires shell integration\n#::  <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.\n\n#: Click the link under the mouse or move the cursor even when grabbed\n\n# mouse_map shift+left click grabbed,ungrabbed mouse_handle_click selection link prompt\n\n#::  Same as above, except that the action is performed even when the\n#::  mouse is grabbed by the program running in the terminal.\n\n#: Click the link under the mouse cursor\n\n# mouse_map ctrl+shift+left release grabbed,ungrabbed mouse_handle_click link\n\n#::  Variant with Ctrl+Shift is present because the simple click based\n#::  version has an unavoidable delay of click_interval, to\n#::  disambiguate clicks from double clicks.\n\n#: Discard press event for link click\n\n# mouse_map ctrl+shift+left press grabbed discard_event\n\n#::  Prevent this press event from being sent to the program that has\n#::  grabbed the mouse, as the corresponding release event is used to\n#::  open a URL.\n\n#: Paste from the primary selection\n\n# mouse_map middle release ungrabbed paste_from_selection\n\n#: Start selecting text\n\n# mouse_map left press ungrabbed mouse_selection normal\n\n#: Start selecting text in a rectangle\n\n# mouse_map ctrl+alt+left press ungrabbed mouse_selection rectangle\n\n#: Select a word\n\n# mouse_map left doublepress ungrabbed mouse_selection word\n\n#: Select a line\n\n# mouse_map left triplepress ungrabbed mouse_selection line\n\n#: Select line from point\n\n# mouse_map ctrl+alt+left triplepress ungrabbed mouse_selection line_from_point\n\n#::  Select from the clicked point to the end of the line.\n\n#: Extend the current selection\n\n# mouse_map right press ungrabbed mouse_selection extend\n\n#::  If you want only the end of the selection to be moved instead of\n#::  the nearest boundary, use move-end instead of extend.\n\n#: Paste from the primary selection even when grabbed\n\n# mouse_map shift+middle release ungrabbed,grabbed paste_selection\n# mouse_map shift+middle press grabbed discard_event\n\n#: Start selecting text even when grabbed\n\n# mouse_map shift+left press ungrabbed,grabbed mouse_selection normal\n\n#: Start selecting text in a rectangle even when grabbed\n\n# mouse_map ctrl+shift+alt+left press ungrabbed,grabbed mouse_selection rectangle\n\n#: Select a word even when grabbed\n\n# mouse_map shift+left doublepress ungrabbed,grabbed mouse_selection word\n\n#: Select a line even when grabbed\n\n# mouse_map shift+left triplepress ungrabbed,grabbed mouse_selection line\n\n#: Select line from point even when grabbed\n\n# mouse_map ctrl+shift+alt+left triplepress ungrabbed,grabbed mouse_selection line_from_point\n\n#::  Select from the clicked point to the end of the line even when\n#::  grabbed.\n\n#: Extend the current selection even when grabbed\n\n# mouse_map shift+right press ungrabbed,grabbed mouse_selection extend\n\n#: Show clicked command output in pager\n\n# mouse_map ctrl+shift+right press ungrabbed mouse_show_command_output\n\n#::  Requires shell integration\n#::  <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.\n\n#: }}}\n\n#: }}}\n\n#: Performance tuning {{{\n\n# repaint_delay 10\n\n#: Delay between screen updates (in milliseconds). Decreasing it,\n#: increases frames-per-second (FPS) at the cost of more CPU usage.\n#: The default value yields ~100 FPS which is more than sufficient for\n#: most uses. Note that to actually achieve 100 FPS, you have to\n#: either set sync_to_monitor to no or use a monitor with a high\n#: refresh rate. Also, to minimize latency when there is pending input\n#: to be processed, this option is ignored.\n\n# input_delay 3\n\n#: Delay before input from the program running in the terminal is\n#: processed (in milliseconds). Note that decreasing it will increase\n#: responsiveness, but also increase CPU usage and might cause flicker\n#: in full screen programs that redraw the entire screen on each loop,\n#: because kitty is so fast that partial screen updates will be drawn.\n\n# sync_to_monitor yes\n\n#: Sync screen updates to the refresh rate of the monitor. This\n#: prevents screen tearing\n#: <https://en.wikipedia.org/wiki/Screen_tearing> when scrolling.\n#: However, it limits the rendering speed to the refresh rate of your\n#: monitor. With a very high speed mouse/high keyboard repeat rate,\n#: you may notice some slight input latency. If so, set this to no.\n\n#: }}}\n\n#: Terminal bell {{{\n\n# enable_audio_bell yes\n\n#: The audio bell. Useful to disable it in environments that require\n#: silence.\n\n# visual_bell_duration 0.0\n\n#: The visual bell duration (in seconds). Flash the screen when a bell\n#: occurs for the specified number of seconds. Set to zero to disable.\n\n# visual_bell_color none\n\n#: The color used by visual bell. Set to none will fall back to\n#: selection background color. If you feel that the visual bell is too\n#: bright, you can set it to a darker color.\n\n# window_alert_on_bell yes\n\n#: Request window attention on bell. Makes the dock icon bounce on\n#: macOS or the taskbar flash on linux.\n\n# bell_on_tab \"🔔 \"\n\n#: Some text or a Unicode symbol to show on the tab if a window in the\n#: tab that does not have focus has a bell. If you want to use leading\n#: or trailing spaces, surround the text with quotes. See\n#: tab_title_template for how this is rendered.\n\n#: For backwards compatibility, values of yes, y and true are\n#: converted to the default bell symbol and no, n, false and none are\n#: converted to the empty string.\n\n# command_on_bell none\n\n#: Program to run when a bell occurs. The environment variable\n#: KITTY_CHILD_CMDLINE can be used to get the program running in the\n#: window in which the bell occurred.\n\n# bell_path none\n\n#: Path to a sound file to play as the bell sound. If set to none, the\n#: system default bell sound is used. Must be in a format supported by\n#: the operating systems sound API, such as WAV or OGA on Linux\n#: (libcanberra) or AIFF, MP3 or WAV on macOS (NSSound)\n\n#: }}}\n\n#: Window layout {{{\n\n# remember_window_size  yes\n# initial_window_width  640\n# initial_window_height 400\n\n#: If enabled, the window size will be remembered so that new\n#: instances of kitty will have the same size as the previous\n#: instance. If disabled, the window will initially have size\n#: configured by initial_window_width/height, in pixels. You can use a\n#: suffix of \"c\" on the width/height values to have them interpreted\n#: as number of cells instead of pixels.\n\n# enabled_layouts *\n\n#: The enabled window layouts. A comma separated list of layout names.\n#: The special value all means all layouts. The first listed layout\n#: will be used as the startup layout. Default configuration is all\n#: layouts in alphabetical order. For a list of available layouts, see\n#: the layouts <https://sw.kovidgoyal.net/kitty/overview/#layouts>.\n\n# window_resize_step_cells 2\n# window_resize_step_lines 2\n\n#: The step size (in units of cell width/cell height) to use when\n#: resizing kitty windows in a layout with the shortcut\n#: start_resizing_window. The cells value is used for horizontal\n#: resizing, and the lines value is used for vertical resizing.\n\n# window_border_width 0.5pt\n\n#: The width of window borders. Can be either in pixels (px) or pts\n#: (pt). Values in pts will be rounded to the nearest number of pixels\n#: based on screen resolution. If not specified, the unit is assumed\n#: to be pts. Note that borders are displayed only when more than one\n#: window is visible. They are meant to separate multiple windows.\n\n# draw_minimal_borders yes\n\n#: Draw only the minimum borders needed. This means that only the\n#: borders that separate the inactive window from a neighbor are\n#: drawn. Note that setting a non-zero window_margin_width overrides\n#: this and causes all borders to be drawn.\n\n window_margin_width 15\n\n#: The window margin (in pts) (blank area outside the border). A\n#: single value sets all four sides. Two values set the vertical and\n#: horizontal sides. Three values set top, horizontal and bottom. Four\n#: values set top, right, bottom and left.\n\n# single_window_margin_width -1\n\n#: The window margin to use when only a single window is visible (in\n#: pts). Negative values will cause the value of window_margin_width\n#: to be used instead. A single value sets all four sides. Two values\n#: set the vertical and horizontal sides. Three values set top,\n#: horizontal and bottom. Four values set top, right, bottom and left.\n\n# window_padding_width 0\n\n#: The window padding (in pts) (blank area between the text and the\n#: window border). A single value sets all four sides. Two values set\n#: the vertical and horizontal sides. Three values set top, horizontal\n#: and bottom. Four values set top, right, bottom and left.\n\n# placement_strategy center\n\n#: When the window size is not an exact multiple of the cell size, the\n#: cell area of the terminal window will have some extra padding on\n#: the sides. You can control how that padding is distributed with\n#: this option. Using a value of center means the cell area will be\n#: placed centrally. A value of top-left means the padding will be\n#: only at the bottom and right edges.\n\n# active_border_color #00ff00\n\n#: The color for the border of the active window. Set this to none to\n#: not draw borders around the active window.\n\n# inactive_border_color #cccccc\n\n#: The color for the border of inactive windows.\n\n# bell_border_color #ff5a00\n\n#: The color for the border of inactive windows in which a bell has\n#: occurred.\n\n# inactive_text_alpha 1.0\n\n#: Fade the text in inactive windows by the specified amount (a number\n#: between zero and one, with zero being fully faded).\n\n# hide_window_decorations no\n\n#: Hide the window decorations (title-bar and window borders) with\n#: yes. On macOS, titlebar-only can be used to only hide the titlebar.\n#: Whether this works and exactly what effect it has depends on the\n#: window manager/operating system. Note that the effects of changing\n#: this option when reloading config are undefined.\n\n# window_logo_path none\n\n#: Path to a logo image. Must be in PNG format. Relative paths are\n#: interpreted relative to the kitty config directory. The logo is\n#: displayed in a corner of every kitty window. The position is\n#: controlled by window_logo_position. Individual windows can be\n#: configured to have different logos either using the launch action\n#: or the remote control <https://sw.kovidgoyal.net/kitty/remote-\n#: control/> facility.\n\n# window_logo_position bottom-right\n\n#: Where to position the window logo in the window. The value can be\n#: one of: top-left, top, top-right, left, center, right, bottom-left,\n#: bottom, bottom-right.\n\n# window_logo_alpha 0.5\n\n#: The amount the logo should be faded into the background. With zero\n#: being fully faded and one being fully opaque.\n\n# resize_debounce_time 0.1\n\n#: The time to wait before redrawing the screen when a resize event is\n#: received (in seconds). On platforms such as macOS, where the\n#: operating system sends events corresponding to the start and end of\n#: a resize, this number is ignored.\n\n# resize_draw_strategy static\n\n#: Choose how kitty draws a window while a resize is in progress. A\n#: value of static means draw the current window contents, mostly\n#: unchanged. A value of scale means draw the current window contents\n#: scaled. A value of blank means draw a blank window. A value of size\n#: means show the window size in cells.\n\n# resize_in_steps no\n\n#: Resize the OS window in steps as large as the cells, instead of\n#: with the usual pixel accuracy. Combined with initial_window_width\n#: and initial_window_height in number of cells, this option can be\n#: used to keep the margins as small as possible when resizing the OS\n#: window. Note that this does not currently work on Wayland.\n\n# visual_window_select_characters 1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ\n\n#: The list of characters for visual window selection. For example,\n#: for selecting a window to focus on with focus_visible_window. The\n#: value should be a series of unique numbers or alphabets, case\n#: insensitive, from the set [0-9A-Z]. Specify your preference as a\n#: string of characters.\n\n confirm_os_window_close -0\n\n#: Ask for confirmation when closing an OS window or a tab with at\n#: least this number of kitty windows in it by window manager (e.g.\n#: clicking the window close button or pressing the operating system\n#: shortcut to close windows) or by the close_tab action. A value of\n#: zero disables confirmation. This confirmation also applies to\n#: requests to quit the entire application (all OS windows, via the\n#: quit action). Negative values are converted to positive ones,\n#: however, with shell_integration enabled, using negative values\n#: means windows sitting at a shell prompt are not counted, only\n#: windows where some command is currently running. Note that if you\n#: want confirmation when closing individual windows, you can map the\n#: close_window_with_confirmation action.\n\n#: }}}\n\n#: Tab bar {{{\n\n# tab_bar_edge bottom\n\n#: The edge to show the tab bar on, top or bottom.\n\n# tab_bar_margin_width 0.0\n\n#: The margin to the left and right of the tab bar (in pts).\n\n# tab_bar_margin_height 0.0 0.0\n\n#: The margin above and below the tab bar (in pts). The first number\n#: is the margin between the edge of the OS Window and the tab bar.\n#: The second number is the margin between the tab bar and the\n#: contents of the current tab.\n\n# tab_bar_style fade\n\n#: The tab bar style, can be one of:\n\n#: fade\n#:     Each tab's edges fade into the background color. (See also tab_fade)\n#: slant\n#:     Tabs look like the tabs in a physical file.\n#: separator\n#:     Tabs are separated by a configurable separator. (See also\n#:     tab_separator)\n#: powerline\n#:     Tabs are shown as a continuous line with \"fancy\" separators.\n#:     (See also tab_powerline_style)\n#: custom\n#:     A user-supplied Python function called draw_tab is loaded from the file\n#:     tab_bar.py in the kitty config directory. For examples of how to\n#:     write such a function, see the functions named draw_tab_with_* in\n#:     kitty's source code: kitty/tab_bar.py. See also\n#:     this discussion <https://github.com/kovidgoyal/kitty/discussions/4447>\n#:     for examples from kitty users.\n#: hidden\n#:     The tab bar is hidden. If you use this, you might want to create a mapping\n#:     for the select_tab action which presents you with a list of tabs and\n#:     allows for easy switching to a tab.\n\n# tab_bar_align left\n\n#: The horizontal alignment of the tab bar, can be one of: left,\n#: center, right.\n\n# tab_bar_min_tabs 2\n\n#: The minimum number of tabs that must exist before the tab bar is\n#: shown.\n\n# tab_switch_strategy previous\n\n#: The algorithm to use when switching to a tab when the current tab\n#: is closed. The default of previous will switch to the last used\n#: tab. A value of left will switch to the tab to the left of the\n#: closed tab. A value of right will switch to the tab to the right of\n#: the closed tab. A value of last will switch to the right-most tab.\n\n# tab_fade 0.25 0.5 0.75 1\n\n#: Control how each tab fades into the background when using fade for\n#: the tab_bar_style. Each number is an alpha (between zero and one)\n#: that controls how much the corresponding cell fades into the\n#: background, with zero being no fade and one being full fade. You\n#: can change the number of cells used by adding/removing entries to\n#: this list.\n\n# tab_separator \" ┇\"\n\n#: The separator between tabs in the tab bar when using separator as\n#: the tab_bar_style.\n\n# tab_powerline_style angled\n\n#: The powerline separator style between tabs in the tab bar when\n#: using powerline as the tab_bar_style, can be one of: angled,\n#: slanted, round.\n\n# tab_activity_symbol none\n\n#: Some text or a Unicode symbol to show on the tab if a window in the\n#: tab that does not have focus has some activity. If you want to use\n#: leading or trailing spaces, surround the text with quotes. See\n#: tab_title_template for how this is rendered.\n\n# tab_title_template \"{fmt.fg.red}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}\"\n\n#: A template to render the tab title. The default just renders the\n#: title with optional symbols for bell and activity. If you wish to\n#: include the tab-index as well, use something like: {index}:{title}.\n#: Useful if you have shortcuts mapped for goto_tab N. If you prefer\n#: to see the index as a superscript, use {sup.index}. All data\n#: available is:\n\n#: title\n#:     The current tab title.\n#: index\n#:     The tab index useable with goto_tab N goto_tab shortcuts.\n#: layout_name\n#:     The current layout name.\n#: num_windows\n#:     The number of windows in the tab.\n#: num_window_groups\n#:     The number of window groups (not counting overlay windows) in the tab.\n#: tab.active_wd\n#:     The working directory of the currently active window in the tab (expensive,\n#:     requires syscall).\n#: max_title_length\n#:     The maximum title length available.\n\n#: Note that formatting is done by Python's string formatting\n#: machinery, so you can use, for instance, {layout_name[:2].upper()}\n#: to show only the first two letters of the layout name, upper-cased.\n#: If you want to style the text, you can use styling directives, for\n#: example:\n#: `{fmt.fg.red}red{fmt.fg.tab}normal{fmt.bg._00FF00}greenbg{fmt.bg.tab}`.\n#: Similarly, for bold and italic:\n#: `{fmt.bold}bold{fmt.nobold}normal{fmt.italic}italic{fmt.noitalic}`.\n#: Note that for backward compatibility, if {bell_symbol} or\n#: {activity_symbol} are not present in the template, they are\n#: prepended to it.\n\n# active_tab_title_template none\n\n#: Template to use for active tabs. If not specified falls back to\n#: tab_title_template.\n\n# active_tab_foreground   #000\n# active_tab_background   #eee\n# active_tab_font_style   bold-italic\n# inactive_tab_foreground #444\n# inactive_tab_background #999\n# inactive_tab_font_style normal\n\n#: Tab bar colors and styles.\n\n# tab_bar_background none\n\n#: Background color for the tab bar. Defaults to using the terminal\n#: background color.\n\n# tab_bar_margin_color none\n\n#: Color for the tab bar margin area. Defaults to using the terminal\n#: background color.\n\n#: }}}\n\n# The basic colors\nforeground              #CDD6F4\nbackground              #1E1E2E\nselection_foreground    #1E1E2E\nselection_background    #F5E0DC\n\n#: The foreground and background colors.\n\n background_opacity 1.0\n\n#: The opacity of the background. A number between zero and one, where\n#: one is opaque and zero is fully transparent. This will only work if\n#: supported by the OS (for instance, when using a compositor under\n#: X11). Note that it only sets the background color's opacity in\n#: cells that have the same background color as the default terminal\n#: background, so that things like the status bar in vim, powerline\n#: prompts, etc. still look good. But it means that if you use a color\n#: theme with a background color in your editor, it will not be\n#: rendered as transparent. Instead you should change the default\n#: background color in your kitty config and not use a background\n#: color in the editor color scheme. Or use the escape codes to set\n#: the terminals default colors in a shell script to launch your\n#: editor. Be aware that using a value less than 1.0 is a (possibly\n#: significant) performance hit. If you want to dynamically change\n#: transparency of windows, set dynamic_background_opacity to yes\n#: (this is off by default as it has a performance cost). Changing\n#: this option when reloading the config will only work if\n#: dynamic_background_opacity was enabled in the original config.\n\n# background_image none\n\n#: Path to a background image. Must be in PNG format.\n\n# background_image_layout tiled\n\n#: Whether to tile, scale or clamp the background image. The value can\n#: be one of tiled, mirror-tiled, scaled, clamped or centered.\n\n# background_image_linear no\n\n#: When background image is scaled, whether linear interpolation\n#: should be used.\n\n# dynamic_background_opacity no\n\n#: Allow changing of the background_opacity dynamically, using either\n#: keyboard shortcuts (increase_background_opacity and\n#: decrease_background_opacity) or the remote control facility.\n#: Changing this option by reloading the config is not supported.\n\n# background_tint 0.0\n\n#: How much to tint the background image by the background color.\n#: This option makes it easier to read the text. Tinting is done using\n#: the current background color for each window. This option applies\n#: only if background_opacity is set and transparent windows are\n#: supported or background_image is set.\n\n# dim_opacity 0.75\n\n#: How much to dim text that has the DIM/FAINT attribute set. One\n#: means no dimming and zero means fully dimmed (i.e. invisible).\n\n# selection_foreground #000000\n# selection_background #fffacd\n\n#: The foreground and background colors for text selected with the\n#: mouse. Setting both of these to none will cause a \"reverse video\"\n#: effect for selections, where the selection will be the cell text\n#: color and the text will become the cell background color. Setting\n#: only selection_foreground to none will cause the foreground color\n#: to be used unchanged. Note that these colors can be overridden by\n#: the program running in the terminal.\n\n# Cursor colors\ncursor                  #F5E0DC\ncursor_text_color       #1E1E2E\n\n# URL underline color when hovering with mouse\nurl_color               #F5E0DC\n\n# Kitty window border colors\nactive_border_color     #B4BEFE\ninactive_border_color   #6C7086\nbell_border_color       #F9E2AF\n\n# OS Window titlebar colors\nwayland_titlebar_color system\nmacos_titlebar_color system\n\n# Tab bar colors\nactive_tab_foreground   #11111B\nactive_tab_background   #CBA6F7\ninactive_tab_foreground #CDD6F4\ninactive_tab_background #181825\ntab_bar_background      #11111B\n\n# Colors for marks (marked text in the terminal)\nmark1_foreground #1E1E2E\nmark1_background #B4BEFE\nmark2_foreground #1E1E2E\nmark2_background #CBA6F7\nmark3_foreground #1E1E2E\nmark3_background #74C7EC\n\n# The 16 terminal colors\n\n# black\ncolor0 #45475A\ncolor8 #585B70\n\n# red\ncolor1 #F38BA8\ncolor9 #F38BA8\n\n# green\ncolor2  #A6E3A1\ncolor10 #A6E3A1\n\n# yellow\ncolor3  #F9E2AF\ncolor11 #F9E2AF\n\n# blue\ncolor4  #89B4FA\ncolor12 #89B4FA\n\n# magenta\ncolor5  #F5C2E7\ncolor13 #F5C2E7\n\n# cyan\ncolor6  #94E2D5\ncolor14 #94E2D5\n\n# white\ncolor7  #BAC2DE\ncolor15 #A6ADC8\n\n#; }}}\n\n#;  }}}\n\n#: Advanced {{{\n\n# shell .\n\n#: The shell program to execute. The default value of . means to use\n#: whatever shell is set as the default shell for the current user.\n#: Note that on macOS if you change this, you might need to add\n#: --login and --interactive to ensure that the shell starts in\n#: interactive mode and reads its startup rc files.\n\n# editor .\n\n#: The terminal based text editor (such as vim or nano) to use when\n#: editing the kitty config file or similar tasks.\n\n#: The default value of . means to use the environment variables\n#: VISUAL and EDITOR in that order. If these variables aren't set,\n#: kitty will run your shell ($SHELL -l -i -c env) to see if your\n#: shell startup rc files set VISUAL or EDITOR. If that doesn't work,\n#: kitty will cycle through various known editors (vim, emacs, etc.)\n#: and take the first one that exists on your system.\n\n# close_on_child_death no\n\n#: Close the window when the child process (shell) exits. With the\n#: default value no, the terminal will remain open when the child\n#: exits as long as there are still processes outputting to the\n#: terminal (for example disowned or backgrounded processes). When\n#: enabled with yes, the window will close as soon as the child\n#: process exits. Note that setting it to yes means that any\n#: background processes still using the terminal can fail silently\n#: because their stdout/stderr/stdin no longer work.\n\n# remote_control_password\n\n#: Allow other programs to control kitty using passwords. This option\n#: can be specified multiple times to add multiple passwords. If no\n#: passwords are present kitty will ask the user for permission if a\n#: program tries to use remote control with a password. A password can\n#: also *optionally* be associated with a set of allowed remote\n#: control actions. For example::\n\n#:     remote_control_password \"my passphrase\" get-colors set-colors focus-window focus-tab\n\n#: Only the specified actions will be allowed when using this\n#: password. Glob patterns can be used too, for example::\n\n#:     remote_control_password \"my passphrase\" set-tab-* resize-*\n\n#: To get a list of available actions, run::\n\n#:     kitty @ --help\n\n#: A set of actions to be allowed when no password is sent can be\n#: specified by using an empty password, for example::\n\n#:     remote_control_password \"\" *-colors\n\n#: Finally, the path to a python module can be specified that provides\n#: a function is_cmd_allowed that is used to check every remote\n#: control command. See rc_custom_auth\n#: <https://sw.kovidgoyal.net/kitty/remote-control/#rc-custom-auth>\n#: for details. For example::\n\n#:     remote_control_password \"my passphrase\" my_rc_command_checker.py\n\n#: Relative paths are resolved from the kitty configuration directory.\n\n# allow_remote_control no\n\n#: Allow other programs to control kitty. If you turn this on, other\n#: programs can control all aspects of kitty, including sending text\n#: to kitty windows, opening new windows, closing windows, reading the\n#: content of windows, etc. Note that this even works over SSH\n#: connections. The default setting of no prevents any form of remote\n#: control. The meaning of the various values are:\n\n#: password\n#:    Remote control requests received over both the TTY device and the socket are\n#:    confirmed based on passwords, see remote_control_password.\n\n#: socket-only\n#:    Remote control requests received over a socket are accepted unconditionally.\n#:    Requests received over the TTY are denied. See listen_on.\n\n#: socket\n#:    Remote control requests received over a socket are accepted unconditionally.\n#:    Requests received over the TTY are confirmed based on password.\n\n#: no\n#:    Remote control is completely disabled.\n\n#: yes\n#:    Remote control requests are always accepted.\n\n# listen_on none\n\n#: Listen to the specified UNIX socket for remote control connections.\n#: Note that this will apply to all kitty instances. It can be\n#: overridden by the kitty --listen-on command line option, which also\n#: supports listening on a TCP socket. This option accepts only UNIX\n#: sockets, such as unix:${TEMP}/mykitty or unix:@mykitty (on Linux).\n#: Environment variables are expanded and relative paths are resolved\n#: with respect to the temporary directory. If {kitty_pid} is present,\n#: then it is replaced by the PID of the kitty process, otherwise the\n#: PID of the kitty process is appended to the value, with a hyphen.\n#: See the help for kitty --listen-on for more details. Note that this\n#: will be ignored unless allow_remote_control is set to either: yes,\n#: socket or socket-only. Changing this option by reloading the config\n#: is not supported.\n\n# env\n\n#: Specify the environment variables to be set in all child processes.\n#: Using the name with an equal sign (e.g. env VAR=) will set it to\n#: the empty string. Specifying only the name (e.g. env VAR) will\n#: remove the variable from the child process' environment. Note that\n#: environment variables are expanded recursively, for example::\n\n#:     env VAR1=a\n#:     env VAR2=${HOME}/${VAR1}/b\n\n#: The value of VAR2 will be <path to home directory>/a/b.\n\n# watcher\n\n#: Path to python file which will be loaded for watchers\n#: <https://sw.kovidgoyal.net/kitty/launch/#watchers>. Can be\n#: specified more than once to load multiple watchers. The watchers\n#: will be added to every kitty window. Relative paths are resolved\n#: relative to the kitty config directory. Note that reloading the\n#: config will only affect windows created after the reload.\n\n# exe_search_path\n\n#: Control where kitty finds the programs to run. The default search\n#: order is: First search the system wide PATH, then ~/.local/bin and\n#: ~/bin. If still not found, the PATH defined in the login shell\n#: after sourcing all its startup files is tried. Finally, if present,\n#: the PATH specified by the env option is tried.\n\n#: This option allows you to prepend, append, or remove paths from\n#: this search order. It can be specified multiple times for multiple\n#: paths. A simple path will be prepended to the search order. A path\n#: that starts with the + sign will be append to the search order,\n#: after ~/bin above. A path that starts with the - sign will be\n#: removed from the entire search order. For example::\n\n#:     exe_search_path /some/prepended/path\n#:     exe_search_path +/some/appended/path\n#:     exe_search_path -/some/excluded/path\n\n# update_check_interval 24\n\n#: The interval to periodically check if an update to kitty is\n#: available (in hours). If an update is found, a system notification\n#: is displayed informing you of the available update. The default is\n#: to check every 24 hours, set to zero to disable. Update checking is\n#: only done by the official binary builds. Distro packages or source\n#: builds do not do update checking. Changing this option by reloading\n#: the config is not supported.\n\n# startup_session none\n\n#: Path to a session file to use for all kitty instances. Can be\n#: overridden by using the kitty --session command line option for\n#: individual instances. See sessions\n#: <https://sw.kovidgoyal.net/kitty/overview/#sessions> in the kitty\n#: documentation for details. Note that relative paths are interpreted\n#: with respect to the kitty config directory. Environment variables\n#: in the path are expanded. Changing this option by reloading the\n#: config is not supported.\n\n# clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask\n\n#: Allow programs running in kitty to read and write from the\n#: clipboard. You can control exactly which actions are allowed. The\n#: possible actions are: write-clipboard, read-clipboard, write-\n#: primary, read-primary, read-clipboard-ask, read-primary-ask. The\n#: default is to allow writing to the clipboard and primary selection\n#: and to ask for permission when a program tries to read from the\n#: clipboard. Note that disabling the read confirmation is a security\n#: risk as it means that any program, even the ones running on a\n#: remote server via SSH can read your clipboard. See also\n#: clipboard_max_size.\n\n# clipboard_max_size 64\n\n#: The maximum size (in MB) of data from programs running in kitty\n#: that will be stored for writing to the system clipboard. A value of\n#: zero means no size limit is applied. See also clipboard_control.\n\n# file_transfer_confirmation_bypass\n\n#: The password that can be supplied to the file transfer kitten\n#: <https://sw.kovidgoyal.net/kitty/kittens/transfer/> to skip the\n#: transfer confirmation prompt. This should only be used when\n#: initiating transfers from trusted computers, over trusted networks\n#: or encrypted transports, as it allows any programs running on the\n#: remote machine to read/write to the local filesystem, without\n#: permission.\n\n# allow_hyperlinks yes\n\n#: Process hyperlink escape sequences (OSC 8). If disabled OSC 8\n#: escape sequences are ignored. Otherwise they become clickable\n#: links, that you can click with the mouse or by using the hints\n#: kitten <https://sw.kovidgoyal.net/kitty/kittens/hints/>. The\n#: special value of ask means that kitty will ask before opening the\n#: link when clicked.\n\n# shell_integration enabled\n\n#: Enable shell integration on supported shells. This enables features\n#: such as jumping to previous prompts, browsing the output of the\n#: previous command in a pager, etc. on supported shells. Set to\n#: disabled to turn off shell integration, completely. It is also\n#: possible to disable individual features, set to a space separated\n#: list of these values: no-rc, no-cursor, no-title, no-cwd, no-\n#: prompt-mark, no-complete. See Shell integration\n#: <https://sw.kovidgoyal.net/kitty/shell-integration/> for details.\n\n# allow_cloning ask\n\n#: Control whether programs running in the terminal can request new\n#: windows to be created. The canonical example is clone-in-kitty\n#: <https://sw.kovidgoyal.net/kitty/shell-integration/#clone-shell>.\n#: By default, kitty will ask for permission for each clone request.\n#: Allowing cloning unconditionally gives programs running in the\n#: terminal (including over SSH) permission to execute arbitrary code,\n#: as the user who is running the terminal, on the computer that the\n#: terminal is running on.\n\n# clone_source_strategies venv,conda,env_var,path\n\n#: Control what shell code is sourced when running clone-in-kitty in\n#: the newly cloned window. The supported strategies are:\n\n#: venv\n#:     Source the file $VIRTUAL_ENV/bin/activate. This is used by the\n#:     Python stdlib venv module and allows cloning venvs automatically.\n#: conda\n#:     Run conda activate $CONDA_DEFAULT_ENV. This supports the virtual\n#:     environments created by conda.\n#: env_var\n#:     Execute the contents of the environment variable\n#:     KITTY_CLONE_SOURCE_CODE with eval.\n#: path\n#:     Source the file pointed to by the environment variable\n#:     KITTY_CLONE_SOURCE_PATH.\n\n#: This option must be a comma separated list of the above values.\n#: This only source the first valid one in the above order.\n\n# term xterm-kitty\n\n#: The value of the TERM environment variable to set. Changing this\n#: can break many terminal programs, only change it if you know what\n#: you are doing, not because you read some advice on \"Stack Overflow\"\n#: to change it. The TERM variable is used by various programs to get\n#: information about the capabilities and behavior of the terminal. If\n#: you change it, depending on what programs you run, and how\n#: different the terminal you are changing it to is, various things\n#: from key-presses, to colors, to various advanced features may not\n#: work. Changing this option by reloading the config will only affect\n#: newly created windows.\n\n#: }}}\n\n#: OS specific tweaks {{{\n\n# wayland_titlebar_color system\n\n#: The color of the kitty window's titlebar on Wayland systems with\n#: client side window decorations such as GNOME. A value of system\n#: means to use the default system color, a value of background means\n#: to use the background color of the currently active window and\n#: finally you can use an arbitrary color, such as #12af59 or red.\n\n# macos_titlebar_color system\n\n#: The color of the kitty window's titlebar on macOS. A value of\n#: system means to use the default system color, light or dark can\n#: also be used to set it explicitly. A value of background means to\n#: use the background color of the currently active window and finally\n#: you can use an arbitrary color, such as #12af59 or red. WARNING:\n#: This option works by using a hack when arbitrary color (or\n#: background) is configured, as there is no proper Cocoa API for it.\n#: It sets the background color of the entire window and makes the\n#: titlebar transparent. As such it is incompatible with\n#: background_opacity. If you want to use both, you are probably\n#: better off just hiding the titlebar with hide_window_decorations.\n\n# macos_option_as_alt no\n\n#: Use the Option key as an Alt key on macOS. With this set to no,\n#: kitty will use the macOS native Option+Key to enter Unicode\n#: character behavior. This will break any Alt+Key keyboard shortcuts\n#: in your terminal programs, but you can use the macOS Unicode input\n#: technique. You can use the values: left, right or both to use only\n#: the left, right or both Option keys as Alt, instead. Note that\n#: kitty itself always treats Option the same as Alt. This means you\n#: cannot use this option to configure different kitty shortcuts for\n#: Option+Key vs. Alt+Key. Also, any kitty shortcuts using\n#: Option/Alt+Key will take priority, so that any such key presses\n#: will not be passed to terminal programs running inside kitty.\n#: Changing this option by reloading the config is not supported.\n\n# macos_hide_from_tasks no\n\n#: Hide the kitty window from running tasks on macOS (⌘+Tab and the\n#: Dock). Changing this option by reloading the config is not\n#: supported.\n\n# macos_quit_when_last_window_closed no\n\n#: Have kitty quit when all the top-level windows are closed on macOS.\n#: By default, kitty will stay running, even with no open windows, as\n#: is the expected behavior on macOS.\n\n# macos_window_resizable yes\n\n#: Disable this if you want kitty top-level OS windows to not be\n#: resizable on macOS. Changing this option by reloading the config\n#: will only affect newly created OS windows.\n\n# macos_thicken_font 0\n\n#: Draw an extra border around the font with the given width, to\n#: increase legibility at small font sizes on macOS. For example, a\n#: value of 0.75 will result in rendering that looks similar to sub-\n#: pixel antialiasing at common font sizes.\n\n# macos_traditional_fullscreen no\n\n#: Use the macOS traditional full-screen transition, that is faster,\n#: but less pretty.\n\n# macos_show_window_title_in all\n\n#: Control where the window title is displayed on macOS. A value of\n#: window will show the title of the currently active window at the\n#: top of the macOS window. A value of menubar will show the title of\n#: the currently active window in the macOS global menu bar, making\n#: use of otherwise wasted space. A value of all will show the title\n#: in both places, and none hides the title. See\n#: macos_menubar_title_max_length for how to control the length of the\n#: title in the menu bar.\n\n# macos_menubar_title_max_length 0\n\n#: The maximum number of characters from the window title to show in\n#: the macOS global menu bar. Values less than one means that there is\n#: no maximum limit.\n\n# macos_custom_beam_cursor no\n\n#: Use a custom mouse cursor for macOS that is easier to see on both\n#: light and dark backgrounds. Nowadays, the default macOS cursor\n#: already comes with a white border. WARNING: this might make your\n#: mouse cursor invisible on dual GPU machines. Changing this option\n#: by reloading the config is not supported.\n\n# macos_colorspace srgb\n\n#: The colorspace in which to interpret terminal colors. The default\n#: of srgb will cause colors to match those seen in web browsers. The\n#: value of default will use whatever the native colorspace of the\n#: display is. The value of displayp3 will use Apple's special\n#: snowflake display P3 color space, which will result in over\n#: saturated (brighter) colors with some color shift. Reloading\n#: configuration will change this value only for newly created OS\n#: windows.\n\n# linux_display_server auto\n\n#: Choose between Wayland and X11 backends. By default, an appropriate\n#: backend based on the system state is chosen automatically. Set it\n#: to x11 or wayland to force the choice. Changing this option by\n#: reloading the config is not supported.\n\n#: }}}\n\n#: Keyboard shortcuts {{{\n\n#: Keys are identified simply by their lowercase Unicode characters.\n#: For example: a for the A key, [ for the left square bracket key,\n#: etc. For functional keys, such as Enter or Escape, the names are\n#: present at Functional key definitions\n#: <https://sw.kovidgoyal.net/kitty/keyboard-protocol/#functional>.\n#: For modifier keys, the names are ctrl (control, ⌃), shift (⇧), alt\n#: (opt, option, ⌥), super (cmd, command, ⌘). See also: GLFW mods\n#: <https://www.glfw.org/docs/latest/group__mods.html>\n\n#: On Linux you can also use XKB key names to bind keys that are not\n#: supported by GLFW. See XKB keys\n#: <https://github.com/xkbcommon/libxkbcommon/blob/master/include/xkbcommon/xkbcommon-\n#: keysyms.h> for a list of key names. The name to use is the part\n#: after the XKB_KEY_ prefix. Note that you can only use an XKB key\n#: name for keys that are not known as GLFW keys.\n\n#: Finally, you can use raw system key codes to map keys, again only\n#: for keys that are not known as GLFW keys. To see the system key\n#: code for a key, start kitty with the kitty --debug-input option,\n#: kitty will output some debug text for every key event. In that text\n#: look for native_code, the value of that becomes the key name in the\n#: shortcut. For example:\n\n#: .. code-block:: none\n\n#:     on_key_input: glfw key: 0x61 native_code: 0x61 action: PRESS mods: none text: 'a'\n\n#: Here, the key name for the A key is 0x61 and you can use it with::\n\n#:     map ctrl+0x61 something\n\n#: to map Ctrl+A to something.\n\n#: You can use the special action no_op to unmap a keyboard shortcut\n#: that is assigned in the default configuration::\n\n#:     map kitty_mod+space no_op\n\n#: If you would like kitty to completely ignore a key event, not even\n#: sending it to the program running in the terminal, map it to\n#: discard_event::\n\n#:     map kitty_mod+f1 discard_event\n\n#: You can combine multiple actions to be triggered by a single\n#: shortcut with combine action, using the syntax below::\n\n#:     map key combine <separator> action1 <separator> action2 <separator> action3 ...\n\n#: For example::\n\n#:     map kitty_mod+e combine : new_window : next_layout\n\n#: This will create a new window and switch to the next available\n#: layout.\n\n#: You can use multi-key shortcuts with the syntax shown below::\n\n#:     map key1>key2>key3 action\n\n#: For example::\n\n#:     map ctrl+f>2 set_font_size 20\n\n#: The full list of actions that can be mapped to key presses is\n#: available here <https://sw.kovidgoyal.net/kitty/actions/>.\n\n# kitty_mod ctrl+shift\n\n#: Special modifier key alias for default shortcuts. You can change\n#: the value of this option to alter all default shortcuts that use\n#: kitty_mod.\n\n# clear_all_shortcuts no\n\n#: Remove all shortcut definitions up to this point. Useful, for\n#: instance, to remove the default shortcuts.\n\n# action_alias\n\n#: E.g. action_alias launch_tab launch --type=tab --cwd=current\n\n#: Define action aliases to avoid repeating the same options in\n#: multiple mappings. Aliases can be defined for any action and will\n#: be expanded recursively. For example, the above alias allows you to\n#: create mappings to launch a new tab in the current working\n#: directory without duplication::\n\n#:     map f1 launch_tab vim\n#:     map f2 launch_tab emacs\n\n#: Similarly, to alias kitten invocation::\n\n#:     action_alias hints kitten hints --hints-offset=0\n\n# kitten_alias\n\n#: E.g. kitten_alias hints hints --hints-offset=0\n\n#: Like action_alias above, but specifically for kittens. Generally,\n#: prefer to use action_alias. This option is a legacy version,\n#: present for backwards compatibility. It causes all invocations of\n#: the aliased kitten to be substituted. So the example above will\n#: cause all invocations of the hints kitten to have the --hints-\n#: offset=0 option applied.\n\n#: Clipboard {{{\n\n#: Copy to clipboard\n\n# map kitty_mod+c copy_to_clipboard\n# map cmd+c       copy_to_clipboard\n\n#::  There is also a copy_or_interrupt action that can be optionally\n#::  mapped to Ctrl+C. It will copy only if there is a selection and\n#::  send an interrupt otherwise. Similarly,\n#::  copy_and_clear_or_interrupt will copy and clear the selection or\n#::  send an interrupt if there is no selection.\n\n#: Paste from clipboard\n\n# map kitty_mod+v paste_from_clipboard\n# map cmd+v       paste_from_clipboard\n\n#: Paste from selection\n\n# map kitty_mod+s  paste_from_selection\n# map shift+insert paste_from_selection\n\n#: Pass selection to program\n\n# map kitty_mod+o pass_selection_to_program\n\n#::  You can also pass the contents of the current selection to any\n#::  program with pass_selection_to_program. By default, the system's\n#::  open program is used, but you can specify your own, the selection\n#::  will be passed as a command line argument to the program. For\n#::  example::\n\n#::      map kitty_mod+o pass_selection_to_program firefox\n\n#::  You can pass the current selection to a terminal program running\n#::  in a new kitty window, by using the @selection placeholder::\n\n#::      map kitty_mod+y new_window less @selection\n\n#: }}}\n\n#: Scrolling {{{\n\n#: Scroll line up\n\n# map kitty_mod+up    scroll_line_up\n# map kitty_mod+k     scroll_line_up\n# map opt+cmd+page_up scroll_line_up\n# map cmd+up          scroll_line_up\n\n#: Scroll line down\n\n# map kitty_mod+down    scroll_line_down\n# map kitty_mod+j       scroll_line_down\n# map opt+cmd+page_down scroll_line_down\n# map cmd+down          scroll_line_down\n\n#: Scroll page up\n\n# map kitty_mod+page_up scroll_page_up\n# map cmd+page_up       scroll_page_up\n\n#: Scroll page down\n\n# map kitty_mod+page_down scroll_page_down\n# map cmd+page_down       scroll_page_down\n\n#: Scroll to top\n\n# map kitty_mod+home scroll_home\n# map cmd+home       scroll_home\n\n#: Scroll to bottom\n\n# map kitty_mod+end scroll_end\n# map cmd+end       scroll_end\n\n#: Scroll to previous shell prompt\n\n# map kitty_mod+z scroll_to_prompt -1\n\n#::  Use a parameter of 0 for scroll_to_prompt to scroll to the last\n#::  jumped to or the last clicked position. Requires shell\n#::  integration <https://sw.kovidgoyal.net/kitty/shell-integration/>\n#::  to work.\n\n#: Scroll to next shell prompt\n\n# map kitty_mod+x scroll_to_prompt 1\n\n#: Browse scrollback buffer in pager\n\n# map kitty_mod+h show_scrollback\n\n#::  You can pipe the contents of the current screen and history\n#::  buffer as STDIN to an arbitrary program using launch --stdin-\n#::  source. For example, the following opens the scrollback buffer in\n#::  less in an overlay window::\n\n#::      map f1 launch --stdin-source=@screen_scrollback --stdin-add-formatting --type=overlay less +G -R\n\n#::  For more details on piping screen and buffer contents to external\n#::  programs, see launch <https://sw.kovidgoyal.net/kitty/launch/>.\n\n#: Browse output of the last shell command in pager\n\n# map kitty_mod+g show_last_command_output\n\n#::  You can also define additional shortcuts to get the command\n#::  output. For example, to get the first command output on screen::\n\n#::      map f1 show_first_command_output_on_screen\n\n#::  To get the command output that was last accessed by a keyboard\n#::  action or mouse action::\n\n#::      map f1 show_last_visited_command_output\n\n#::  You can pipe the output of the last command run in the shell\n#::  using the launch action. For example, the following opens the\n#::  output in less in an overlay window::\n\n#::      map f1 launch --stdin-source=@last_cmd_output --stdin-add-formatting --type=overlay less +G -R\n\n#::  To get the output of the first command on the screen, use\n#::  @first_cmd_output_on_screen. To get the output of the last jumped\n#::  to command, use @last_visited_cmd_output.\n\n#::  Requires shell integration\n#::  <https://sw.kovidgoyal.net/kitty/shell-integration/> to work.\n\n#: }}}\n\n#: Window management {{{\n\n#: New window\n\n# map kitty_mod+enter new_window\n# map cmd+enter       new_window\n\n#::  You can open a new kitty window running an arbitrary program, for\n#::  example::\n\n#::      map kitty_mod+y launch mutt\n\n#::  You can open a new window with the current working directory set\n#::  to the working directory of the current window using::\n\n#::      map ctrl+alt+enter launch --cwd=current\n\n#::  You can open a new window that is allowed to control kitty via\n#::  the kitty remote control facility with launch --allow-remote-\n#::  control. Any programs running in that window will be allowed to\n#::  control kitty. For example::\n\n#::      map ctrl+enter launch --allow-remote-control some_program\n\n#::  You can open a new window next to the currently active window or\n#::  as the first window, with::\n\n#::      map ctrl+n launch --location=neighbor\n#::      map ctrl+f launch --location=first\n\n#::  For more details, see launch\n#::  <https://sw.kovidgoyal.net/kitty/launch/>.\n\n#: New OS window\n\n# map kitty_mod+n new_os_window\n# map cmd+n       new_os_window\n\n#::  Works like new_window above, except that it opens a top-level OS\n#::  window. In particular you can use new_os_window_with_cwd to open\n#::  a window with the current working directory.\n\n#: Close window\n\n# map kitty_mod+w close_window\n# map shift+cmd+d close_window\n\n#: Next window\n\n# map kitty_mod+] next_window\n\n#: Previous window\n\n# map kitty_mod+[ previous_window\n\n#: Move window forward\n\n# map kitty_mod+f move_window_forward\n\n#: Move window backward\n\n# map kitty_mod+b move_window_backward\n\n#: Move window to top\n\n# map kitty_mod+` move_window_to_top\n\n#: Start resizing window\n\n# map kitty_mod+r start_resizing_window\n# map cmd+r       start_resizing_window\n\n#: First window\n\n# map kitty_mod+1 first_window\n# map cmd+1       first_window\n\n#: Second window\n\n# map kitty_mod+2 second_window\n# map cmd+2       second_window\n\n#: Third window\n\n# map kitty_mod+3 third_window\n# map cmd+3       third_window\n\n#: Fourth window\n\n# map kitty_mod+4 fourth_window\n# map cmd+4       fourth_window\n\n#: Fifth window\n\n# map kitty_mod+5 fifth_window\n# map cmd+5       fifth_window\n\n#: Sixth window\n\n# map kitty_mod+6 sixth_window\n# map cmd+6       sixth_window\n\n#: Seventh window\n\n# map kitty_mod+7 seventh_window\n# map cmd+7       seventh_window\n\n#: Eight window\n\n# map kitty_mod+8 eighth_window\n# map cmd+8       eighth_window\n\n#: Ninth window\n\n# map kitty_mod+9 ninth_window\n# map cmd+9       ninth_window\n\n#: Tenth window\n\n# map kitty_mod+0 tenth_window\n\n#: Visually select and focus window\n\n# map kitty_mod+f7 focus_visible_window\n\n#::  Display overlay numbers and alphabets on the window, and switch\n#::  the focus to the window when you press the key. When there are\n#::  only two windows, the focus will be switched directly without\n#::  displaying the overlay. You can change the overlay characters and\n#::  their order with option visual_window_select_characters.\n\n#: Visually swap window with another\n\n# map kitty_mod+f8 swap_with_window\n\n#::  Works like focus_visible_window above, but swaps the window.\n\n#: }}}\n\n#: Tab management {{{\n\n#: Next tab\n\n# map kitty_mod+right next_tab\n# map shift+cmd+]     next_tab\n# map ctrl+tab        next_tab\n\n#: Previous tab\n\n# map kitty_mod+left previous_tab\n# map shift+cmd+[    previous_tab\n# map ctrl+shift+tab previous_tab\n\n#: New tab\n\n# map kitty_mod+t new_tab\n# map cmd+t       new_tab\n\n#: Close tab\n\n# map kitty_mod+q close_tab\n# map cmd+w       close_tab\n\n#: Close OS window\n\n# map shift+cmd+w close_os_window\n\n#: Move tab forward\n\n# map kitty_mod+. move_tab_forward\n\n#: Move tab backward\n\n# map kitty_mod+, move_tab_backward\n\n#: Set tab title\n\n# map kitty_mod+alt+t set_tab_title\n# map shift+cmd+i     set_tab_title\n\n\n#: You can also create shortcuts to go to specific tabs, with 1 being\n#: the first tab, 2 the second tab and -1 being the previously active\n#: tab, and any number larger than the last tab being the last tab::\n\n#:     map ctrl+alt+1 goto_tab 1\n#:     map ctrl+alt+2 goto_tab 2\n\n#: Just as with new_window above, you can also pass the name of\n#: arbitrary commands to run when using new_tab and new_tab_with_cwd.\n#: Finally, if you want the new tab to open next to the current tab\n#: rather than at the end of the tabs list, use::\n\n#:     map ctrl+t new_tab !neighbor [optional cmd to run]\n#: }}}\n\n#: Layout management {{{\n\n#: Next layout\n\n# map kitty_mod+l next_layout\n\n\n#: You can also create shortcuts to switch to specific layouts::\n\n#:     map ctrl+alt+t goto_layout tall\n#:     map ctrl+alt+s goto_layout stack\n\n#: Similarly, to switch back to the previous layout::\n\n#:     map ctrl+alt+p last_used_layout\n\n#: There is also a toggle_layout action that switches to the named\n#: layout or back to the previous layout if in the named layout.\n#: Useful to temporarily \"zoom\" the active window by switching to the\n#: stack layout::\n\n#:     map ctrl+alt+z toggle_layout stack\n#: }}}\n\n#: Font sizes {{{\n\n#: You can change the font size for all top-level kitty OS windows at\n#: a time or only the current one.\n\n#: Increase font size\n\n# map kitty_mod+equal  change_font_size all +2.0\n# map kitty_mod+plus   change_font_size all +2.0\n# map kitty_mod+kp_add change_font_size all +2.0\n# map cmd+plus         change_font_size all +2.0\n# map cmd+equal        change_font_size all +2.0\n# map shift+cmd+equal  change_font_size all +2.0\n\n#: Decrease font size\n\n# map kitty_mod+minus       change_font_size all -2.0\n# map kitty_mod+kp_subtract change_font_size all -2.0\n# map cmd+minus             change_font_size all -2.0\n# map shift+cmd+minus       change_font_size all -2.0\n\n#: Reset font size\n\n# map kitty_mod+backspace change_font_size all 0\n# map cmd+0               change_font_size all 0\n\n\n#: To setup shortcuts for specific font sizes::\n\n#:     map kitty_mod+f6 change_font_size all 10.0\n\n#: To setup shortcuts to change only the current OS window's font\n#: size::\n\n#:     map kitty_mod+f6 change_font_size current 10.0\n#: }}}\n\n#: Select and act on visible text {{{\n\n#: Use the hints kitten to select text and either pass it to an\n#: external program or insert it into the terminal or copy it to the\n#: clipboard.\n\n#: Open URL\n\n# map kitty_mod+e open_url_with_hints\n\n#::  Open a currently visible URL using the keyboard. The program used\n#::  to open the URL is specified in open_url_with.\n\n#: Insert selected path\n\n# map kitty_mod+p>f kitten hints --type path --program -\n\n#::  Select a path/filename and insert it into the terminal. Useful,\n#::  for instance to run git commands on a filename output from a\n#::  previous git command.\n\n#: Open selected path\n\n# map kitty_mod+p>shift+f kitten hints --type path\n\n#::  Select a path/filename and open it with the default open program.\n\n#: Insert selected line\n\n# map kitty_mod+p>l kitten hints --type line --program -\n\n#::  Select a line of text and insert it into the terminal. Useful for\n#::  the output of things like: `ls -1`.\n\n#: Insert selected word\n\n# map kitty_mod+p>w kitten hints --type word --program -\n\n#::  Select words and insert into terminal.\n\n#: Insert selected hash\n\n# map kitty_mod+p>h kitten hints --type hash --program -\n\n#::  Select something that looks like a hash and insert it into the\n#::  terminal. Useful with git, which uses SHA1 hashes to identify\n#::  commits.\n\n#: Open the selected file at the selected line\n\n# map kitty_mod+p>n kitten hints --type linenum\n\n#::  Select something that looks like filename:linenum and open it in\n#::  vim at the specified line number.\n\n#: Open the selected hyperlink\n\n# map kitty_mod+p>y kitten hints --type hyperlink\n\n#::  Select a hyperlink (i.e. a URL that has been marked as such by\n#::  the terminal program, for example, by `ls --hyperlink=auto`).\n\n\n#: The hints kitten has many more modes of operation that you can map\n#: to different shortcuts. For a full description see hints kitten\n#: <https://sw.kovidgoyal.net/kitty/kittens/hints/>.\n#: }}}\n\n#: Miscellaneous {{{\n\n#: Show documentation\n\n# map kitty_mod+f1 show_kitty_doc overview\n\n#: Toggle fullscreen\n\n# map kitty_mod+f11 toggle_fullscreen\n# map ctrl+cmd+f    toggle_fullscreen\n\n#: Toggle maximized\n\n# map kitty_mod+f10 toggle_maximized\n\n#: Toggle macOS secure keyboard entry\n\n# map opt+cmd+s toggle_macos_secure_keyboard_entry\n\n#: Unicode input\n\n# map kitty_mod+u    kitten unicode_input\n# map ctrl+cmd+space kitten unicode_input\n\n#: Edit config file\n\n# map kitty_mod+f2 edit_config_file\n# map cmd+,        edit_config_file\n\n#: Open the kitty command shell\n\n# map kitty_mod+escape kitty_shell window\n\n#::  Open the kitty shell in a new window / tab / overlay / os_window\n#::  to control kitty using commands.\n\n#: Increase background opacity\n\n# map kitty_mod+a>m set_background_opacity +0.1\n\n#: Decrease background opacity\n\n# map kitty_mod+a>l set_background_opacity -0.1\n\n#: Make background fully opaque\n\n# map kitty_mod+a>1 set_background_opacity 1\n\n#: Reset background opacity\n\n# map kitty_mod+a>d set_background_opacity default\n\n#: Reset the terminal\n\n# map kitty_mod+delete clear_terminal reset active\n# map opt+cmd+r        clear_terminal reset active\n\n#::  You can create shortcuts to clear/reset the terminal. For\n#::  example::\n\n#::      # Reset the terminal\n#::      map f1 clear_terminal reset active\n#::      # Clear the terminal screen by erasing all contents\n#::      map f1 clear_terminal clear active\n#::      # Clear the terminal scrollback by erasing it\n#::      map f1 clear_terminal scrollback active\n#::      # Scroll the contents of the screen into the scrollback\n#::      map f1 clear_terminal scroll active\n#::      # Clear everything up to the line with the cursor\n#::      map f1 clear_terminal to_cursor active\n\n#::  If you want to operate on all kitty windows instead of just the\n#::  current one, use all instead of active.\n\n#::  It is also possible to remap Ctrl+L to both scroll the current\n#::  screen contents into the scrollback buffer and clear the screen,\n#::  instead of just clearing the screen, for example, for ZSH add the\n#::  following to ~/.zshrc:\n\n#::  .. code-block:: zsh\n\n#::      scroll-and-clear-screen() {\n#::          printf '\\n%.0s' {1..$LINES}\n#::          zle clear-screen\n#::      }\n#::      zle -N scroll-and-clear-screen\n#::      bindkey '^l' scroll-and-clear-screen\n\n#: Clear up to cursor line\n\n# map cmd+k clear_terminal to_cursor active\n\n#: Reload kitty.conf\n\n# map kitty_mod+f5 load_config_file\n# map ctrl+cmd+,   load_config_file\n\n#::  Reload kitty.conf, applying any changes since the last time it\n#::  was loaded. Note that a handful of options cannot be dynamically\n#::  changed and require a full restart of kitty. Particularly, when\n#::  changing shortcuts for actions located on the macOS global menu\n#::  bar, a full restart is needed. You can also map a keybinding to\n#::  load a different config file, for example::\n\n#::      map f5 load_config /path/to/alternative/kitty.conf\n\n#::  Note that all options from the original kitty.conf are discarded,\n#::  in other words the new configuration *replace* the old ones.\n\n#: Debug kitty configuration\n\n# map kitty_mod+f6 debug_config\n# map opt+cmd+,    debug_config\n\n#::  Show details about exactly what configuration kitty is running\n#::  with and its host environment. Useful for debugging issues.\n\n#: Send arbitrary text on key presses\n\n#::  E.g. map ctrl+shift+alt+h send_text all Hello World\n\n#::  You can tell kitty to send arbitrary (UTF-8) encoded text to the\n#::  client program when pressing specified shortcut keys. For\n#::  example::\n\n#::      map ctrl+alt+a send_text all Special text\n\n#::  This will send \"Special text\" when you press the Ctrl+Alt+A key\n#::  combination. The text to be sent is a python string literal so\n#::  you can use escapes like \\x1b to send control codes or \\u21fb to\n#::  send Unicode characters (or you can just input the Unicode\n#::  characters directly as UTF-8 text). You can use `kitty +kitten\n#::  show_key` to get the key escape codes you want to emulate.\n\n#::  The first argument to send_text is the keyboard modes in which to\n#::  activate the shortcut. The possible values are normal,\n#::  application, kitty or a comma separated combination of them. The\n#::  modes normal and application refer to the DECCKM cursor key mode\n#::  for terminals, and kitty refers to the kitty extended keyboard\n#::  protocol. The special value all means all of them.\n\n#::  Some more examples::\n\n#::      # Output a word and move the cursor to the start of the line (like typing and pressing Home)\n#::      map ctrl+alt+a send_text normal Word\\x1b[H\n#::      map ctrl+alt+a send_text application Word\\x1bOH\n#::      # Run a command at a shell prompt (like typing the command and pressing Enter)\n#::      map ctrl+alt+a send_text normal,application some command with arguments\\r\n\n#: Open kitty Website\n\n# map shift+cmd+/ open_url https://sw.kovidgoyal.net/kitty/\n\n#: }}}\n\n#: }}}\n"
  },
  {
    "path": "nvim/init.vim",
    "content": "set notermguicolors t_Co=16\nset number\nset autoindent\nset selection=inclusive\n\nif (has(\"termguicolors\"))\n  set termguicolors\nendif\n\ncall plug#begin('~/.vim/plugged')\n\nPlug 'neoclide/coc.nvim', {'branch': 'release'}\n\nPlug 'nvim-tree/nvim-web-devicons' \" optional, for file icons\nPlug 'nvim-tree/nvim-tree.lua'\n\nPlug 'nvim-tree/nvim-web-devicons'\nPlug 'romgrk/barbar.nvim'\n\nPlug 'psliwka/termcolors.nvim'\n\nPlug 'neovim/nvim-lspconfig'\nPlug 'hrsh7th/cmp-nvim-lsp'\nPlug 'hrsh7th/cmp-buffer'\nPlug 'hrsh7th/cmp-path'\nPlug 'hrsh7th/cmp-cmdline'\nPlug 'hrsh7th/nvim-cmp'\n\n\" For vsnip users.\nPlug 'hrsh7th/cmp-vsnip'\nPlug 'hrsh7th/vim-vsnip'\n\nPlug 'catppuccin/nvim', { 'as': 'catppuccin' }\n\nPlug 'tmsvg/pear-tree'\n\nPlug 'mfussenegger/nvim-dap'\nPlug 'mfussenegger/nvim-dap'\nPlug 'rcarriga/nvim-dap-ui'\n\nPlug 'mfussenegger/nvim-dap'\nPlug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}\nPlug 'theHamsta/nvim-dap-virtual-text'\n\nPlug 'nvim-lua/plenary.nvim'\nPlug 'nvim-treesitter/nvim-treesitter'\nPlug 'antoinemadec/FixCursorHold.nvim'\nPlug 'nvim-neotest/neotest'\n\nPlug 'liuchengxu/vim-clap'\n\n\" Build the extra binary if cargo exists on your system.\nPlug 'liuchengxu/vim-clap', { 'do': ':Clap install-binary' }\n\n\" The bang version will try to download the prebuilt binary if cargo does not exist.\nPlug 'liuchengxu/vim-clap', { 'do': ':Clap install-binary!' }\n\n\" :Clap install-binary[!] will always try to compile the binary locally,\n\" if you do care about the disk used for the compilation, try using the force download way,\n\" which will download the prebuilt binary even you have installed cargo.\nPlug 'liuchengxu/vim-clap', { 'do': { -> clap#installer#force_download() } }\n\n\" `:Clap install-binary[!]` will run using the terminal feature which is inherently async.\n\" If you don't want that and hope to run the hook synchorously:\nPlug 'liuchengxu/vim-clap', { 'do': has('win32') ? 'cargo build --release' : 'make' }\n\nPlug 'nvim-lualine/lualine.nvim'\n\" If you want to have icons in your statusline choose one of these\nPlug 'kyazdani42/nvim-web-devicons'\nPlug 'norcalli/nvim-colorizer.lua'\n\nPlug 'elkowar/yuck.vim'\ncall plug#end()\n\nset completeopt=menu,menuone,noselect\n\nlet bufferline = get(g:, 'bufferline', {})\nlet bufferline.icon_separator_active = '▎'\nlet bufferline.icon_separator_inactive = '▎'\n\nlua << EOF\n\n-- examples for your init.lua\n\n-- disable netrw at the very start of your init.lua (strongly advised)\nvim.g.loaded_netrw = 1\nvim.g.loaded_netrwPlugin = 1\n\n-- set termguicolors to enable highlight groups\nvim.opt.termguicolors = true\n\n-- empty setup using defaults\nrequire(\"nvim-tree\").setup()\nEOF\n\nlua << EOF\n  -- Set up nvim-cmp.\n  local cmp = require'cmp'\n\n  cmp.setup({\n    snippet = {\n      -- REQUIRED - you must specify a snippet engine\n      expand = function(args)\n        vim.fn[\"vsnip#anonymous\"](args.body) -- For `vsnip` users.\n        -- require('luasnip').lsp_expand(args.body) -- For `luasnip` users.\n        -- require('snippy').expand_snippet(args.body) -- For `snippy` users.\n        -- vim.fn[\"UltiSnips#Anon\"](args.body) -- For `ultisnips` users.\n      end,\n    },\n    window = {\n      -- completion = cmp.config.window.bordered(),\n      -- documentation = cmp.config.window.bordered(),\n    },\n    mapping = cmp.mapping.preset.insert({\n      ['<C-b>'] = cmp.mapping.scroll_docs(-4),\n      ['<C-f>'] = cmp.mapping.scroll_docs(4),\n      ['<C-Space>'] = cmp.mapping.complete(),\n      ['<C-e>'] = cmp.mapping.abort(),\n      ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.\n    }),\n    sources = cmp.config.sources({\n      { name = 'nvim_lsp' },\n      { name = 'vsnip' }, -- For vsnip users.\n      -- { name = 'luasnip' }, -- For luasnip users.\n      -- { name = 'ultisnips' }, -- For ultisnips users.\n      -- { name = 'snippy' }, -- For snippy users.\n    }, {\n      { name = 'buffer' },\n    })\n  })\n\n  -- Set configuration for specific filetype.\n  cmp.setup.filetype('gitcommit', {\n    sources = cmp.config.sources({\n      { name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.\n    }, {\n      { name = 'buffer' },\n    })\n  })\n\n  -- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).\n  cmp.setup.cmdline({ '/', '?' }, {\n    mapping = cmp.mapping.preset.cmdline(),\n    sources = {\n      { name = 'buffer' }\n    }\n  })\n\n  -- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).\n  cmp.setup.cmdline(':', {\n    mapping = cmp.mapping.preset.cmdline(),\n    sources = cmp.config.sources({\n      { name = 'path' }\n    }, {\n      { name = 'cmdline' }\n    })\n  })\n\n  -- Set up lspconfig.\n  local capabilities = require('cmp_nvim_lsp').default_capabilities()\n  -- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.\n  require('lspconfig')['clangd'].setup {\n    capabilities = capabilities\n  }\nEOF\n\nlua << EOF\nlocal dap = require('dap')\ndap.adapters.cppdbg = {\n  id = 'cppdbg',\n  type = 'executable',\n  command = 'debug-adapters/extension/debugAdapters/bin/OpenDebugAD7',\n}\nEOF\n\nlua << EOF\nlocal dap = require('dap')\ndap.configurations.c = {\n  {\n    name = \"Launch file\",\n    type = \"cppdbg\",\n    request = \"launch\",\n    program = function()\n      return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')\n    end,\n    cwd = '${workspaceFolder}',\n    stopAtEntry = true,\n  },\n  {\n    name = 'Attach to gdbserver :1234',\n    type = 'cppdbg',\n    request = 'launch',\n    MIMode = 'gdb',\n    miDebuggerServerAddress = 'localhost:1234',\n    miDebuggerPath = '/usr/bin/gdb',\n    cwd = '${workspaceFolder}',\n    program = function()\n      return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')\n    end,\n  },\n}\nEOF\n\nlua << EOF\nrequire(\"catppuccin\").setup({\n    flavour = \"mocha\", -- latte, frappe, macchiato, mocha\n    background = { -- :h background\n        light = \"latte\",\n        dark = \"mocha\",\n    },\n    transparent_background = false,\n    show_end_of_buffer = false, -- show the '~' characters after the end of buffers\n    term_colors = false,\n    dim_inactive = {\n        enabled = false,\n        shade = \"dark\",\n        percentage = 0.15,\n    },\n    no_italic = false, -- Force no italic\n    no_bold = false, -- Force no bold\n    styles = {\n        comments = { \"italic\" },\n        conditionals = { \"italic\" },\n        loops = {},\n        functions = {},\n        keywords = {},\n        strings = {},\n        variables = {},\n        numbers = {},\n        booleans = {},\n        properties = {},\n        types = {},\n        operators = {},\n    },\n    color_overrides = {},\n    custom_highlights = {},\n    integrations = {\n        cmp = true,\n        gitsigns = true,\n        nvimtree = true,\n        telescope = true,\n        notify = false,\n        mini = false,\n        -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)\n    },\n})\nEOF\n\n\nlua << EOF\nrequire('lualine').setup {\noptions = {\n  component_separators = '|',\n  section_separators = { left = '', right = '' },\n  theme = \"catppuccin\"\n},\nsections = {\n    lualine_a = {\n      { 'mode', separator = { left = '' }, right_padding = 2 },\n    },\n    lualine_b = { 'filename', 'branch' },\n    lualine_c = { 'fileformat' },\n    lualine_x = {},\n    lualine_y = { 'filetype', 'progress' },\n    lualine_z = {\n      { 'location', separator = { right = '' }, left_padding = 2 },\n    },\n  },\n  inactive_sections = {\n    lualine_a = { 'filename' },\n    lualine_b = {},\n    lualine_c = {},\n    lualine_x = {},\n    lualine_y = {},\n    lualine_z = { 'location' },\n  },\n  tabline = {},\n  extensions = {},\n}\nEOF\n\ncolorscheme catppuccin-mocha\n"
  },
  {
    "path": "nvim/keymappings.lua",
    "content": "map({ \"n\", \"<F4>\", \":lua require('dapui').toggle()<CR>\" })\nmap({ \"n\", \"<F5>\", \":lua require('dap').toggle_breakpoint()<CR>\" })\nmap({ \"n\", \"<F9>\", \":lua require('dap').continue()<CR>\" })\n\nmap({ \"n\", \"<F1>\", \":lua require('dap').step_over()<CR>\" })\nmap({ \"n\", \"<F2>\", \":lua require('dap').step_into()<CR>\" })\nmap({ \"n\", \"<F3>\", \":lua require('dap').step_out()<CR>\" })\n\nmap({ \"n\", \"<Leader>dsc\", \":lua require('dap').continue()<CR>\" })\nmap({ \"n\", \"<Leader>dsv\", \":lua require('dap').step_over()<CR>\" })\nmap({ \"n\", \"<Leader>dsi\", \":lua require('dap').step_into()<CR>\" })\nmap({ \"n\", \"<Leader>dso\", \":lua require('dap').step_out()<CR>\" })\n\nmap({ \"n\", \"<Leader>dhh\", \":lua require('dap.ui.variables').hover()<CR>\" })\nmap({ \"v\", \"<Leader>dhv\", \":lua require('dap.ui.variables').visual_hover()<CR>\" })\n\nmap({ \"n\", \"<Leader>duh\", \":lua require('dap.ui.widgets').hover()<CR>\" })\nmap({ \"n\", \"<Leader>duf\", \":lua local widgets=require('dap.ui.widgets');widgets.centered_float(widgets.scopes)<CR>\" })\n\nmap({ \"n\", \"<Leader>dro\", \":lua require('dap').repl.open()<CR>\" })\nmap({ \"n\", \"<Leader>drl\", \":lua require('dap').repl.run_last()<CR>\" })\n\nmap({ \"n\", \"<Leader>dbc\", \":lua require('dap').set_breakpoint(vim.fn.input('Breakpoint condition: '))<CR>\" })\nmap({ \"n\", \"<Leader>dbm\", \":lua require('dap').set_breakpoint({ nil, nil, vim.fn.input('Log point message: ') })<CR>\" })\nmap({ \"n\", \"<Leader>dbt\", \":lua require('dap').toggle_breakpoint()<CR>\" })\n\nmap({ \"n\", \"<Leader>dc\", \":lua require('dap.ui.variables').scopes()<CR>\" })\nmap({ \"n\", \"<Leader>di\", \":lua require('dapui').toggle()<CR>\" })\n\n"
  },
  {
    "path": "ranger/commands.py",
    "content": "# This is a sample commands.py.  You can add your own commands here.\n#\n# Please refer to commands_full.py for all the default commands and a complete\n# documentation.  Do NOT add them all here, or you may end up with defunct\n# commands when upgrading ranger.\n\n# A simple command for demonstration purposes follows.\n# -----------------------------------------------------------------------------\n\nfrom __future__ import (absolute_import, division, print_function)\n\n# You can import any python module as needed.\nimport os\n\n# You always need to import ranger.api.commands here to get the Command class:\nfrom ranger.api.commands import Command\n\n\n# Any class that is a subclass of \"Command\" will be integrated into ranger as a\n# command.  Try typing \":my_edit<ENTER>\" in ranger!\nclass my_edit(Command):\n    # The so-called doc-string of the class will be visible in the built-in\n    # help that is accessible by typing \"?c\" inside ranger.\n    \"\"\":my_edit <filename>\n\n    A sample command for demonstration purposes that opens a file in an editor.\n    \"\"\"\n\n    # The execute method is called when you run this command in ranger.\n    def execute(self):\n        # self.arg(1) is the first (space-separated) argument to the function.\n        # This way you can write \":my_edit somefilename<ENTER>\".\n        if self.arg(1):\n            # self.rest(1) contains self.arg(1) and everything that follows\n            target_filename = self.rest(1)\n        else:\n            # self.fm is a ranger.core.filemanager.FileManager object and gives\n            # you access to internals of ranger.\n            # self.fm.thisfile is a ranger.container.file.File object and is a\n            # reference to the currently selected file.\n            target_filename = self.fm.thisfile.path\n\n        # This is a generic function to print text in ranger.\n        self.fm.notify(\"Let's edit the file \" + target_filename + \"!\")\n\n        # Using bad=True in fm.notify allows you to print error messages:\n        if not os.path.exists(target_filename):\n            self.fm.notify(\"The given file does not exist!\", bad=True)\n            return\n\n        # This executes a function from ranger.core.acitons, a module with a\n        # variety of subroutines that can help you construct commands.\n        # Check out the source, or run \"pydoc ranger.core.actions\" for a list.\n        self.fm.edit_file(target_filename)\n\n    # The tab method is called when you press tab, and should return a list of\n    # suggestions that the user will tab through.\n    # tabnum is 1 for <TAB> and -1 for <S-TAB> by default\n    def tab(self, tabnum):\n        # This is a generic tab-completion function that iterates through the\n        # content of the current directory.\n        return self._tab_directory_content()\n"
  },
  {
    "path": "ranger/commands_full.py",
    "content": "# -*- coding: utf-8 -*-\n# This file is part of ranger, the console file manager.\n# This configuration file is licensed under the same terms as ranger.\n# ===================================================================\n#\n# NOTE: If you copied this file to /etc/ranger/commands_full.py or\n# ~/.config/ranger/commands_full.py, then it will NOT be loaded by ranger,\n# and only serve as a reference.\n#\n# ===================================================================\n# This file contains ranger's commands.\n# It's all in python; lines beginning with # are comments.\n#\n# Note that additional commands are automatically generated from the methods\n# of the class ranger.core.actions.Actions.\n#\n# You can customize commands in the files /etc/ranger/commands.py (system-wide)\n# and ~/.config/ranger/commands.py (per user).\n# They have the same syntax as this file.  In fact, you can just copy this\n# file to ~/.config/ranger/commands_full.py with\n# `ranger --copy-config=commands_full' and make your modifications, don't\n# forget to rename it to commands.py.  You can also use\n# `ranger --copy-config=commands' to copy a short sample commands.py that\n# has everything you need to get started.\n# But make sure you update your configs when you update ranger.\n#\n# ===================================================================\n# Every class defined here which is a subclass of `Command' will be used as a\n# command in ranger.  Several methods are defined to interface with ranger:\n#   execute():   called when the command is executed.\n#   cancel():    called when closing the console.\n#   tab(tabnum): called when <TAB> is pressed.\n#   quick():     called after each keypress.\n#\n# tab() argument tabnum is 1 for <TAB> and -1 for <S-TAB> by default\n#\n# The return values for tab() can be either:\n#   None: There is no tab completion\n#   A string: Change the console to this string\n#   A list/tuple/generator: cycle through every item in it\n#\n# The return value for quick() can be:\n#   False: Nothing happens\n#   True: Execute the command afterwards\n#\n# The return value for execute() and cancel() doesn't matter.\n#\n# ===================================================================\n# Commands have certain attributes and methods that facilitate parsing of\n# the arguments:\n#\n# self.line: The whole line that was written in the console.\n# self.args: A list of all (space-separated) arguments to the command.\n# self.quantifier: If this command was mapped to the key \"X\" and\n#      the user pressed 6X, self.quantifier will be 6.\n# self.arg(n): The n-th argument, or an empty string if it doesn't exist.\n# self.rest(n): The n-th argument plus everything that followed.  For example,\n#      if the command was \"search foo bar a b c\", rest(2) will be \"bar a b c\"\n# self.start(n): Anything before the n-th argument.  For example, if the\n#      command was \"search foo bar a b c\", start(2) will be \"search foo\"\n#\n# ===================================================================\n# And this is a little reference for common ranger functions and objects:\n#\n# self.fm: A reference to the \"fm\" object which contains most information\n#      about ranger.\n# self.fm.notify(string): Print the given string on the screen.\n# self.fm.notify(string, bad=True): Print the given string in RED.\n# self.fm.reload_cwd(): Reload the current working directory.\n# self.fm.thisdir: The current working directory. (A File object.)\n# self.fm.thisfile: The current file. (A File object too.)\n# self.fm.thistab.get_selection(): A list of all selected files.\n# self.fm.execute_console(string): Execute the string as a ranger command.\n# self.fm.open_console(string): Open the console with the given string\n#      already typed in for you.\n# self.fm.move(direction): Moves the cursor in the given direction, which\n#      can be something like down=3, up=5, right=1, left=1, to=6, ...\n#\n# File objects (for example self.fm.thisfile) have these useful attributes and\n# methods:\n#\n# tfile.path: The path to the file.\n# tfile.basename: The base name only.\n# tfile.load_content(): Force a loading of the directories content (which\n#      obviously works with directories only)\n# tfile.is_directory: True/False depending on whether it's a directory.\n#\n# For advanced commands it is unavoidable to dive a bit into the source code\n# of ranger.\n# ===================================================================\n\nfrom __future__ import (absolute_import, division, print_function)\n\nfrom collections import deque\nimport os\nimport re\n\nfrom ranger.api.commands import Command\n\n\nclass alias(Command):\n    \"\"\":alias <newcommand> <oldcommand>\n\n    Copies the oldcommand as newcommand.\n    \"\"\"\n\n    context = 'browser'\n    resolve_macros = False\n\n    def execute(self):\n        if not self.arg(1) or not self.arg(2):\n            self.fm.notify('Syntax: alias <newcommand> <oldcommand>', bad=True)\n            return\n\n        self.fm.commands.alias(self.arg(1), self.rest(2))\n\n\nclass echo(Command):\n    \"\"\":echo <text>\n\n    Display the text in the statusbar.\n    \"\"\"\n\n    def execute(self):\n        self.fm.notify(self.rest(1))\n\n\nclass cd(Command):\n    \"\"\":cd [-r] <path>\n\n    The cd command changes the directory.\n    If the path is a file, selects that file.\n    The command 'cd -' is equivalent to typing ``.\n    Using the option \"-r\" will get you to the real path.\n    \"\"\"\n\n    def execute(self):\n        if self.arg(1) == '-r':\n            self.shift()\n            destination = os.path.realpath(self.rest(1))\n            if os.path.isfile(destination):\n                self.fm.select_file(destination)\n                return\n        else:\n            destination = self.rest(1)\n\n        if not destination:\n            destination = '~'\n\n        if destination == '-':\n            self.fm.enter_bookmark('`')\n        else:\n            self.fm.cd(destination)\n\n    def _tab_args(self):\n        # dest must be rest because path could contain spaces\n        if self.arg(1) == '-r':\n            start = self.start(2)\n            dest = self.rest(2)\n        else:\n            start = self.start(1)\n            dest = self.rest(1)\n\n        if dest:\n            head, tail = os.path.split(os.path.expanduser(dest))\n            if head:\n                dest_exp = os.path.join(os.path.normpath(head), tail)\n            else:\n                dest_exp = tail\n        else:\n            dest_exp = ''\n        return (start, dest_exp, os.path.join(self.fm.thisdir.path, dest_exp),\n                dest.endswith(os.path.sep))\n\n    @staticmethod\n    def _tab_paths(dest, dest_abs, ends_with_sep):\n        if not dest:\n            try:\n                return next(os.walk(dest_abs))[1], dest_abs\n            except (OSError, StopIteration):\n                return [], ''\n\n        if ends_with_sep:\n            try:\n                return [os.path.join(dest, path) for path in next(os.walk(dest_abs))[1]], ''\n            except (OSError, StopIteration):\n                return [], ''\n\n        return None, None\n\n    def _tab_match(self, path_user, path_file):\n        if self.fm.settings.cd_tab_case == 'insensitive':\n            path_user = path_user.lower()\n            path_file = path_file.lower()\n        elif self.fm.settings.cd_tab_case == 'smart' and path_user.islower():\n            path_file = path_file.lower()\n        return path_file.startswith(path_user)\n\n    def _tab_normal(self, dest, dest_abs):\n        dest_dir = os.path.dirname(dest)\n        dest_base = os.path.basename(dest)\n\n        try:\n            dirnames = next(os.walk(os.path.dirname(dest_abs)))[1]\n        except (OSError, StopIteration):\n            return [], ''\n\n        return [os.path.join(dest_dir, d) for d in dirnames if self._tab_match(dest_base, d)], ''\n\n    def _tab_fuzzy_match(self, basepath, tokens):\n        \"\"\" Find directories matching tokens recursively \"\"\"\n        if not tokens:\n            tokens = ['']\n        paths = [basepath]\n        while True:\n            token = tokens.pop()\n            matches = []\n            for path in paths:\n                try:\n                    directories = next(os.walk(path))[1]\n                except (OSError, StopIteration):\n                    continue\n                matches += [os.path.join(path, d) for d in directories\n                            if self._tab_match(token, d)]\n            if not tokens or not matches:\n                return matches\n            paths = matches\n\n        return None\n\n    def _tab_fuzzy(self, dest, dest_abs):\n        tokens = []\n        basepath = dest_abs\n        while True:\n            basepath_old = basepath\n            basepath, token = os.path.split(basepath)\n            if basepath == basepath_old:\n                break\n            if os.path.isdir(basepath_old) and not token.startswith('.'):\n                basepath = basepath_old\n                break\n            tokens.append(token)\n\n        paths = self._tab_fuzzy_match(basepath, tokens)\n        if not os.path.isabs(dest):\n            paths_rel = self.fm.thisdir.path\n            paths = [os.path.relpath(os.path.join(basepath, path), paths_rel)\n                     for path in paths]\n        else:\n            paths_rel = ''\n        return paths, paths_rel\n\n    def tab(self, tabnum):\n        from os.path import sep\n\n        start, dest, dest_abs, ends_with_sep = self._tab_args()\n\n        paths, paths_rel = self._tab_paths(dest, dest_abs, ends_with_sep)\n        if paths is None:\n            if self.fm.settings.cd_tab_fuzzy:\n                paths, paths_rel = self._tab_fuzzy(dest, dest_abs)\n            else:\n                paths, paths_rel = self._tab_normal(dest, dest_abs)\n\n        paths.sort()\n\n        if self.fm.settings.cd_bookmarks:\n            paths[0:0] = [\n                os.path.relpath(v.path, paths_rel) if paths_rel else v.path\n                for v in self.fm.bookmarks.dct.values() for path in paths\n                if v.path.startswith(os.path.join(paths_rel, path) + sep)\n            ]\n\n        if not paths:\n            return None\n        if len(paths) == 1:\n            return start + paths[0] + sep\n        return [start + dirname + sep for dirname in paths]\n\n\nclass chain(Command):\n    \"\"\":chain <command1>; <command2>; ...\n\n    Calls multiple commands at once, separated by semicolons.\n    \"\"\"\n    resolve_macros = False\n\n    def execute(self):\n        if not self.rest(1).strip():\n            self.fm.notify('Syntax: chain <command1>; <command2>; ...', bad=True)\n            return\n        for command in [s.strip() for s in self.rest(1).split(\";\")]:\n            self.fm.execute_console(command)\n\n\nclass shell(Command):\n    escape_macros_for_shell = True\n\n    def execute(self):\n        if self.arg(1) and self.arg(1)[0] == '-':\n            flags = self.arg(1)[1:]\n            command = self.rest(2)\n        else:\n            flags = ''\n            command = self.rest(1)\n\n        if command:\n            self.fm.execute_command(command, flags=flags)\n\n    def tab(self, tabnum):\n        from ranger.ext.get_executables import get_executables\n        if self.arg(1) and self.arg(1)[0] == '-':\n            command = self.rest(2)\n        else:\n            command = self.rest(1)\n        start = self.line[0:len(self.line) - len(command)]\n\n        try:\n            position_of_last_space = command.rindex(\" \")\n        except ValueError:\n            return (start + program + ' ' for program\n                    in get_executables() if program.startswith(command))\n        if position_of_last_space == len(command) - 1:\n            selection = self.fm.thistab.get_selection()\n            if len(selection) == 1:\n                return self.line + selection[0].shell_escaped_basename + ' '\n            return self.line + '%s '\n\n        before_word, start_of_word = self.line.rsplit(' ', 1)\n        return (before_word + ' ' + file.shell_escaped_basename\n                for file in self.fm.thisdir.files or []\n                if file.shell_escaped_basename.startswith(start_of_word))\n\n\nclass open_with(Command):\n\n    def execute(self):\n        app, flags, mode = self._get_app_flags_mode(self.rest(1))\n        self.fm.execute_file(\n            files=[f for f in self.fm.thistab.get_selection()],\n            app=app,\n            flags=flags,\n            mode=mode)\n\n    def tab(self, tabnum):\n        return self._tab_through_executables()\n\n    def _get_app_flags_mode(self, string):  # pylint: disable=too-many-branches,too-many-statements\n        \"\"\"Extracts the application, flags and mode from a string.\n\n        examples:\n        \"mplayer f 1\" => (\"mplayer\", \"f\", 1)\n        \"atool 4\" => (\"atool\", \"\", 4)\n        \"p\" => (\"\", \"p\", 0)\n        \"\" => None\n        \"\"\"\n\n        app = ''\n        flags = ''\n        mode = 0\n        split = string.split()\n\n        if len(split) == 1:\n            part = split[0]\n            if self._is_app(part):\n                app = part\n            elif self._is_flags(part):\n                flags = part\n            elif self._is_mode(part):\n                mode = part\n\n        elif len(split) == 2:\n            part0 = split[0]\n            part1 = split[1]\n\n            if self._is_app(part0):\n                app = part0\n                if self._is_flags(part1):\n                    flags = part1\n                elif self._is_mode(part1):\n                    mode = part1\n            elif self._is_flags(part0):\n                flags = part0\n                if self._is_mode(part1):\n                    mode = part1\n            elif self._is_mode(part0):\n                mode = part0\n                if self._is_flags(part1):\n                    flags = part1\n\n        elif len(split) >= 3:\n            part0 = split[0]\n            part1 = split[1]\n            part2 = split[2]\n\n            if self._is_app(part0):\n                app = part0\n                if self._is_flags(part1):\n                    flags = part1\n                    if self._is_mode(part2):\n                        mode = part2\n                elif self._is_mode(part1):\n                    mode = part1\n                    if self._is_flags(part2):\n                        flags = part2\n            elif self._is_flags(part0):\n                flags = part0\n                if self._is_mode(part1):\n                    mode = part1\n            elif self._is_mode(part0):\n                mode = part0\n                if self._is_flags(part1):\n                    flags = part1\n\n        return app, flags, int(mode)\n\n    def _is_app(self, arg):\n        return not self._is_flags(arg) and not arg.isdigit()\n\n    @staticmethod\n    def _is_flags(arg):\n        from ranger.core.runner import ALLOWED_FLAGS\n        return all(x in ALLOWED_FLAGS for x in arg)\n\n    @staticmethod\n    def _is_mode(arg):\n        return all(x in '0123456789' for x in arg)\n\n\nclass set_(Command):\n    \"\"\":set <option name>=<python expression>\n\n    Gives an option a new value.\n\n    Use `:set <option>!` to toggle or cycle it, e.g. `:set flush_input!`\n    \"\"\"\n    name = 'set'  # don't override the builtin set class\n\n    def execute(self):\n        name = self.arg(1)\n        name, value, _, toggle = self.parse_setting_line_v2()\n        if toggle:\n            self.fm.toggle_option(name)\n        else:\n            self.fm.set_option_from_string(name, value)\n\n    def tab(self, tabnum):  # pylint: disable=too-many-return-statements\n        from ranger.gui.colorscheme import get_all_colorschemes\n        name, value, name_done = self.parse_setting_line()\n        settings = self.fm.settings\n        if not name:\n            return sorted(self.firstpart + setting for setting in settings)\n        if not value and not name_done:\n            return sorted(self.firstpart + setting for setting in settings\n                          if setting.startswith(name))\n        if not value:\n            value_completers = {\n                \"colorscheme\":\n                # Cycle through colorschemes when name, but no value is specified\n                lambda: sorted(self.firstpart + colorscheme for colorscheme\n                               in get_all_colorschemes(self.fm)),\n\n                \"column_ratios\":\n                lambda: self.firstpart + \",\".join(map(str, settings[name])),\n            }\n\n            def default_value_completer():\n                return self.firstpart + str(settings[name])\n\n            return value_completers.get(name, default_value_completer)()\n        if bool in settings.types_of(name):\n            if 'true'.startswith(value.lower()):\n                return self.firstpart + 'True'\n            if 'false'.startswith(value.lower()):\n                return self.firstpart + 'False'\n        # Tab complete colorscheme values if incomplete value is present\n        if name == \"colorscheme\":\n            return sorted(self.firstpart + colorscheme for colorscheme\n                          in get_all_colorschemes(self.fm) if colorscheme.startswith(value))\n        return None\n\n\nclass setlocal(set_):\n    \"\"\":setlocal path=<regular expression> <option name>=<python expression>\n\n    Gives an option a new value.\n    \"\"\"\n    PATH_RE_DQUOTED = re.compile(r'^setlocal\\s+path=\"(.*?)\"')\n    PATH_RE_SQUOTED = re.compile(r\"^setlocal\\s+path='(.*?)'\")\n    PATH_RE_UNQUOTED = re.compile(r'^path=(.*?)$')\n\n    def _re_shift(self, match):\n        if not match:\n            return None\n        path = os.path.expanduser(match.group(1))\n        for _ in range(len(path.split())):\n            self.shift()\n        return path\n\n    def execute(self):\n        path = self._re_shift(self.PATH_RE_DQUOTED.match(self.line))\n        if path is None:\n            path = self._re_shift(self.PATH_RE_SQUOTED.match(self.line))\n        if path is None:\n            path = self._re_shift(self.PATH_RE_UNQUOTED.match(self.arg(1)))\n        if path is None and self.fm.thisdir:\n            path = self.fm.thisdir.path\n        if not path:\n            return\n\n        name, value, _ = self.parse_setting_line()\n        self.fm.set_option_from_string(name, value, localpath=path)\n\n\nclass setintag(set_):\n    \"\"\":setintag <tag or tags> <option name>=<option value>\n\n    Sets an option for directories that are tagged with a specific tag.\n    \"\"\"\n\n    def execute(self):\n        tags = self.arg(1)\n        self.shift()\n        name, value, _ = self.parse_setting_line()\n        self.fm.set_option_from_string(name, value, tags=tags)\n\n\nclass default_linemode(Command):\n\n    def execute(self):\n        from ranger.container.fsobject import FileSystemObject\n\n        if len(self.args) < 2:\n            self.fm.notify(\n                \"Usage: default_linemode [path=<regexp> | tag=<tag(s)>] <linemode>\", bad=True)\n\n        # Extract options like \"path=...\" or \"tag=...\" from the command line\n        arg1 = self.arg(1)\n        method = \"always\"\n        argument = None\n        if arg1.startswith(\"path=\"):\n            method = \"path\"\n            argument = re.compile(arg1[5:])\n            self.shift()\n        elif arg1.startswith(\"tag=\"):\n            method = \"tag\"\n            argument = arg1[4:]\n            self.shift()\n\n        # Extract and validate the line mode from the command line\n        lmode = self.rest(1)\n        if lmode not in FileSystemObject.linemode_dict:\n            self.fm.notify(\n                \"Invalid linemode: %s; should be %s\" % (\n                    lmode, \"/\".join(FileSystemObject.linemode_dict)),\n                bad=True,\n            )\n\n        # Add the prepared entry to the fm.default_linemodes\n        entry = [method, argument, lmode]\n        self.fm.default_linemodes.appendleft(entry)\n\n        # Redraw the columns\n        if self.fm.ui.browser:\n            for col in self.fm.ui.browser.columns:\n                col.need_redraw = True\n\n    def tab(self, tabnum):\n        return (self.arg(0) + \" \" + lmode\n                for lmode in self.fm.thisfile.linemode_dict.keys()\n                if lmode.startswith(self.arg(1)))\n\n\nclass quit(Command):  # pylint: disable=redefined-builtin\n    \"\"\":quit\n\n    Closes the current tab, if there's more than one tab.\n    Otherwise quits if there are no tasks in progress.\n    \"\"\"\n    def _exit_no_work(self):\n        if self.fm.loader.has_work():\n            self.fm.notify('Not quitting: Tasks in progress: Use `quit!` to force quit')\n        else:\n            self.fm.exit()\n\n    def execute(self):\n        if len(self.fm.tabs) >= 2:\n            self.fm.tab_close()\n        else:\n            self._exit_no_work()\n\n\nclass quit_bang(Command):\n    \"\"\":quit!\n\n    Closes the current tab, if there's more than one tab.\n    Otherwise force quits immediately.\n    \"\"\"\n    name = 'quit!'\n    allow_abbrev = False\n\n    def execute(self):\n        if len(self.fm.tabs) >= 2:\n            self.fm.tab_close()\n        else:\n            self.fm.exit()\n\n\nclass quitall(Command):\n    \"\"\":quitall\n\n    Quits if there are no tasks in progress.\n    \"\"\"\n    def _exit_no_work(self):\n        if self.fm.loader.has_work():\n            self.fm.notify('Not quitting: Tasks in progress: Use `quitall!` to force quit')\n        else:\n            self.fm.exit()\n\n    def execute(self):\n        self._exit_no_work()\n\n\nclass quitall_bang(Command):\n    \"\"\":quitall!\n\n    Force quits immediately.\n    \"\"\"\n    name = 'quitall!'\n    allow_abbrev = False\n\n    def execute(self):\n        self.fm.exit()\n\n\nclass terminal(Command):\n    \"\"\":terminal\n\n    Spawns an \"x-terminal-emulator\" starting in the current directory.\n    \"\"\"\n\n    def execute(self):\n        from ranger.ext.get_executables import get_term\n        self.fm.run(get_term(), flags='f')\n\n\nclass delete(Command):\n    \"\"\":delete\n\n    Tries to delete the selection or the files passed in arguments (if any).\n    The arguments use a shell-like escaping.\n\n    \"Selection\" is defined as all the \"marked files\" (by default, you\n    can mark files with space or v). If there are no marked files,\n    use the \"current file\" (where the cursor is)\n\n    When attempting to delete non-empty directories or multiple\n    marked files, it will require a confirmation.\n    \"\"\"\n\n    allow_abbrev = False\n    escape_macros_for_shell = True\n\n    def execute(self):\n        import shlex\n        from functools import partial\n\n        def is_directory_with_files(path):\n            return os.path.isdir(path) and not os.path.islink(path) and len(os.listdir(path)) > 0\n\n        if self.rest(1):\n            files = shlex.split(self.rest(1))\n            many_files = (len(files) > 1 or is_directory_with_files(files[0]))\n        else:\n            cwd = self.fm.thisdir\n            tfile = self.fm.thisfile\n            if not cwd or not tfile:\n                self.fm.notify(\"Error: no file selected for deletion!\", bad=True)\n                return\n\n            # relative_path used for a user-friendly output in the confirmation.\n            files = [f.relative_path for f in self.fm.thistab.get_selection()]\n            many_files = (cwd.marked_items or is_directory_with_files(tfile.path))\n\n        confirm = self.fm.settings.confirm_on_delete\n        if confirm != 'never' and (confirm != 'multiple' or many_files):\n            self.fm.ui.console.ask(\n                \"Confirm deletion of: %s (y/N)\" % ', '.join(files),\n                partial(self._question_callback, files),\n                ('n', 'N', 'y', 'Y'),\n            )\n        else:\n            # no need for a confirmation, just delete\n            self.fm.delete(files)\n\n    def tab(self, tabnum):\n        return self._tab_directory_content()\n\n    def _question_callback(self, files, answer):\n        if answer == 'y' or answer == 'Y':\n            self.fm.delete(files)\n\n\nclass trash(Command):\n    \"\"\":trash\n\n    Tries to move the selection or the files passed in arguments (if any) to\n    the trash, using rifle rules with label \"trash\".\n    The arguments use a shell-like escaping.\n\n    \"Selection\" is defined as all the \"marked files\" (by default, you\n    can mark files with space or v). If there are no marked files,\n    use the \"current file\" (where the cursor is)\n\n    When attempting to trash non-empty directories or multiple\n    marked files, it will require a confirmation.\n    \"\"\"\n\n    allow_abbrev = False\n    escape_macros_for_shell = True\n\n    def execute(self):\n        import shlex\n        from functools import partial\n\n        def is_directory_with_files(path):\n            return os.path.isdir(path) and not os.path.islink(path) and len(os.listdir(path)) > 0\n\n        if self.rest(1):\n            files = shlex.split(self.rest(1))\n            many_files = (len(files) > 1 or is_directory_with_files(files[0]))\n        else:\n            cwd = self.fm.thisdir\n            tfile = self.fm.thisfile\n            if not cwd or not tfile:\n                self.fm.notify(\"Error: no file selected for deletion!\", bad=True)\n                return\n\n            # relative_path used for a user-friendly output in the confirmation.\n            files = [f.relative_path for f in self.fm.thistab.get_selection()]\n            many_files = (cwd.marked_items or is_directory_with_files(tfile.path))\n\n        confirm = self.fm.settings.confirm_on_delete\n        if confirm != 'never' and (confirm != 'multiple' or many_files):\n            self.fm.ui.console.ask(\n                \"Confirm deletion of: %s (y/N)\" % ', '.join(files),\n                partial(self._question_callback, files),\n                ('n', 'N', 'y', 'Y'),\n            )\n        else:\n            # no need for a confirmation, just delete\n            self.fm.execute_file(files, label='trash')\n\n    def tab(self, tabnum):\n        return self._tab_directory_content()\n\n    def _question_callback(self, files, answer):\n        if answer == 'y' or answer == 'Y':\n            self.fm.execute_file(files, label='trash')\n\n\nclass jump_non(Command):\n    \"\"\":jump_non [-FLAGS...]\n\n    Jumps to first non-directory if highlighted file is a directory and vice versa.\n\n    Flags:\n     -r    Jump in reverse order\n     -w    Wrap around if reaching end of filelist\n    \"\"\"\n    def __init__(self, *args, **kwargs):\n        super(jump_non, self).__init__(*args, **kwargs)\n\n        flags, _ = self.parse_flags()\n        self._flag_reverse = 'r' in flags\n        self._flag_wrap = 'w' in flags\n\n    @staticmethod\n    def _non(fobj, is_directory):\n        return fobj.is_directory if not is_directory else not fobj.is_directory\n\n    def execute(self):\n        tfile = self.fm.thisfile\n        passed = False\n        found_before = None\n        found_after = None\n        for fobj in self.fm.thisdir.files[::-1] if self._flag_reverse else self.fm.thisdir.files:\n            if fobj.path == tfile.path:\n                passed = True\n                continue\n\n            if passed:\n                if self._non(fobj, tfile.is_directory):\n                    found_after = fobj.path\n                    break\n            elif not found_before and self._non(fobj, tfile.is_directory):\n                found_before = fobj.path\n\n        if found_after:\n            self.fm.select_file(found_after)\n        elif self._flag_wrap and found_before:\n            self.fm.select_file(found_before)\n\n\nclass mark_tag(Command):\n    \"\"\":mark_tag [<tags>]\n\n    Mark all tags that are tagged with either of the given tags.\n    When leaving out the tag argument, all tagged files are marked.\n    \"\"\"\n    do_mark = True\n\n    def execute(self):\n        cwd = self.fm.thisdir\n        tags = self.rest(1).replace(\" \", \"\")\n        if not self.fm.tags or not cwd.files:\n            return\n        for fileobj in cwd.files:\n            try:\n                tag = self.fm.tags.tags[fileobj.realpath]\n            except KeyError:\n                continue\n            if not tags or tag in tags:\n                cwd.mark_item(fileobj, val=self.do_mark)\n        self.fm.ui.status.need_redraw = True\n        self.fm.ui.need_redraw = True\n\n\nclass console(Command):\n    \"\"\":console <command>\n\n    Open the console with the given command.\n    \"\"\"\n\n    def execute(self):\n        position = None\n        if self.arg(1)[0:2] == '-p':\n            try:\n                position = int(self.arg(1)[2:])\n            except ValueError:\n                pass\n            else:\n                self.shift()\n        self.fm.open_console(self.rest(1), position=position)\n\n\nclass load_copy_buffer(Command):\n    \"\"\":load_copy_buffer\n\n    Load the copy buffer from datadir/copy_buffer\n    \"\"\"\n    copy_buffer_filename = 'copy_buffer'\n\n    def execute(self):\n        import sys\n        from ranger.container.file import File\n        from os.path import exists\n        fname = self.fm.datapath(self.copy_buffer_filename)\n        unreadable = IOError if sys.version_info[0] < 3 else OSError\n        try:\n            fobj = open(fname, 'r')\n        except unreadable:\n            return self.fm.notify(\n                \"Cannot open %s\" % (fname or self.copy_buffer_filename), bad=True)\n\n        self.fm.copy_buffer = set(File(g)\n                                  for g in fobj.read().split(\"\\n\") if exists(g))\n        fobj.close()\n        self.fm.ui.redraw_main_column()\n        return None\n\n\nclass save_copy_buffer(Command):\n    \"\"\":save_copy_buffer\n\n    Save the copy buffer to datadir/copy_buffer\n    \"\"\"\n    copy_buffer_filename = 'copy_buffer'\n\n    def execute(self):\n        import sys\n        fname = None\n        fname = self.fm.datapath(self.copy_buffer_filename)\n        unwritable = IOError if sys.version_info[0] < 3 else OSError\n        try:\n            fobj = open(fname, 'w')\n        except unwritable:\n            return self.fm.notify(\"Cannot open %s\" %\n                                  (fname or self.copy_buffer_filename), bad=True)\n        fobj.write(\"\\n\".join(fobj.path for fobj in self.fm.copy_buffer))\n        fobj.close()\n        return None\n\n\nclass unmark_tag(mark_tag):\n    \"\"\":unmark_tag [<tags>]\n\n    Unmark all tags that are tagged with either of the given tags.\n    When leaving out the tag argument, all tagged files are unmarked.\n    \"\"\"\n    do_mark = False\n\n\nclass mkdir(Command):\n    \"\"\":mkdir <dirname>\n\n    Creates a directory with the name <dirname>.\n    \"\"\"\n\n    def execute(self):\n        from os.path import join, expanduser, lexists\n        from os import makedirs\n\n        dirname = join(self.fm.thisdir.path, expanduser(self.rest(1)))\n        if not lexists(dirname):\n            makedirs(dirname)\n        else:\n            self.fm.notify(\"file/directory exists!\", bad=True)\n\n    def tab(self, tabnum):\n        return self._tab_directory_content()\n\n\nclass touch(Command):\n    \"\"\":touch <fname>\n\n    Creates a file with the name <fname>.\n    \"\"\"\n\n    def execute(self):\n        from os.path import join, expanduser, lexists\n\n        fname = join(self.fm.thisdir.path, expanduser(self.rest(1)))\n        if not lexists(fname):\n            open(fname, 'a').close()\n        else:\n            self.fm.notify(\"file/directory exists!\", bad=True)\n\n    def tab(self, tabnum):\n        return self._tab_directory_content()\n\n\nclass edit(Command):\n    \"\"\":edit <filename>\n\n    Opens the specified file in vim\n    \"\"\"\n\n    def execute(self):\n        if not self.arg(1):\n            self.fm.edit_file(self.fm.thisfile.path)\n        else:\n            self.fm.edit_file(self.rest(1))\n\n    def tab(self, tabnum):\n        return self._tab_directory_content()\n\n\nclass eval_(Command):\n    \"\"\":eval [-q] <python code>\n\n    Evaluates the python code.\n    `fm' is a reference to the FM instance.\n    To display text, use the function `p'.\n\n    Examples:\n    :eval fm\n    :eval len(fm.directories)\n    :eval p(\"Hello World!\")\n    \"\"\"\n    name = 'eval'\n    resolve_macros = False\n\n    def execute(self):\n        # The import is needed so eval() can access the ranger module\n        import ranger  # NOQA pylint: disable=unused-import,unused-variable\n        if self.arg(1) == '-q':\n            code = self.rest(2)\n            quiet = True\n        else:\n            code = self.rest(1)\n            quiet = False\n        global cmd, fm, p, quantifier  # pylint: disable=invalid-name,global-variable-undefined\n        fm = self.fm\n        cmd = self.fm.execute_console\n        p = fm.notify\n        quantifier = self.quantifier\n        try:\n            try:\n                result = eval(code)  # pylint: disable=eval-used\n            except SyntaxError:\n                exec(code)  # pylint: disable=exec-used\n            else:\n                if result and not quiet:\n                    p(result)\n        except Exception as err:  # pylint: disable=broad-except\n            fm.notify(\"The error `%s` was caused by evaluating the \"\n                      \"following code: `%s`\" % (err, code), bad=True)\n\n\nclass rename(Command):\n    \"\"\":rename <newname>\n\n    Changes the name of the currently highlighted file to <newname>\n    \"\"\"\n\n    def execute(self):\n        from ranger.container.file import File\n        from os import access\n\n        new_name = self.rest(1)\n\n        if not new_name:\n            return self.fm.notify('Syntax: rename <newname>', bad=True)\n\n        if new_name == self.fm.thisfile.relative_path:\n            return None\n\n        if access(new_name, os.F_OK):\n            return self.fm.notify(\"Can't rename: file already exists!\", bad=True)\n\n        if self.fm.rename(self.fm.thisfile, new_name):\n            file_new = File(new_name)\n            self.fm.bookmarks.update_path(self.fm.thisfile.path, file_new)\n            self.fm.tags.update_path(self.fm.thisfile.path, file_new.path)\n            self.fm.thisdir.pointed_obj = file_new\n            self.fm.thisfile = file_new\n\n        return None\n\n    def tab(self, tabnum):\n        return self._tab_directory_content()\n\n\nclass rename_append(Command):\n    \"\"\":rename_append [-FLAGS...]\n\n    Opens the console with \":rename <current file>\" with the cursor positioned\n    before the file extension.\n\n    Flags:\n     -a    Position before all extensions\n     -r    Remove everything before extensions\n    \"\"\"\n    def __init__(self, *args, **kwargs):\n        super(rename_append, self).__init__(*args, **kwargs)\n\n        flags, _ = self.parse_flags()\n        self._flag_ext_all = 'a' in flags\n        self._flag_remove = 'r' in flags\n\n    def execute(self):\n        from ranger import MACRO_DELIMITER, MACRO_DELIMITER_ESC\n\n        tfile = self.fm.thisfile\n        relpath = tfile.relative_path.replace(MACRO_DELIMITER, MACRO_DELIMITER_ESC)\n        basename = tfile.basename.replace(MACRO_DELIMITER, MACRO_DELIMITER_ESC)\n\n        if basename.find('.') <= 0 or os.path.isdir(relpath):\n            self.fm.open_console('rename ' + relpath)\n            return\n\n        if self._flag_ext_all:\n            pos_ext = re.search(r'[^.]+', basename).end(0)\n        else:\n            pos_ext = basename.rindex('.')\n        pos = len(relpath) - len(basename) + pos_ext\n\n        if self._flag_remove:\n            relpath = relpath[:-len(basename)] + basename[pos_ext:]\n            pos -= pos_ext\n\n        self.fm.open_console('rename ' + relpath, position=(7 + pos))\n\n\nclass chmod(Command):\n    \"\"\":chmod <octal number>\n\n    Sets the permissions of the selection to the octal number.\n\n    The octal number is between 0 and 777. The digits specify the\n    permissions for the user, the group and others.\n\n    A 1 permits execution, a 2 permits writing, a 4 permits reading.\n    Add those numbers to combine them. So a 7 permits everything.\n    \"\"\"\n\n    def execute(self):\n        mode_str = self.rest(1)\n        if not mode_str:\n            if self.quantifier is None:\n                self.fm.notify(\"Syntax: chmod <octal number> \"\n                               \"or specify a quantifier\", bad=True)\n                return\n            mode_str = str(self.quantifier)\n\n        try:\n            mode = int(mode_str, 8)\n            if mode < 0 or mode > 0o777:\n                raise ValueError\n        except ValueError:\n            self.fm.notify(\"Need an octal number between 0 and 777!\", bad=True)\n            return\n\n        for fobj in self.fm.thistab.get_selection():\n            try:\n                os.chmod(fobj.path, mode)\n            except OSError as ex:\n                self.fm.notify(ex)\n\n        # reloading directory.  maybe its better to reload the selected\n        # files only.\n        self.fm.thisdir.content_outdated = True\n\n\nclass bulkrename(Command):\n    \"\"\":bulkrename\n\n    This command opens a list of selected files in an external editor.\n    After you edit and save the file, it will generate a shell script\n    which does bulk renaming according to the changes you did in the file.\n\n    This shell script is opened in an editor for you to review.\n    After you close it, it will be executed.\n    \"\"\"\n\n    def execute(self):\n        # pylint: disable=too-many-locals,too-many-statements,too-many-branches\n        import sys\n        import tempfile\n        from ranger.container.file import File\n        from ranger.ext.shell_escape import shell_escape as esc\n        py3 = sys.version_info[0] >= 3\n\n        # Create and edit the file list\n        filenames = [f.relative_path for f in self.fm.thistab.get_selection()]\n        with tempfile.NamedTemporaryFile(delete=False) as listfile:\n            listpath = listfile.name\n            if py3:\n                listfile.write(\"\\n\".join(filenames).encode(\n                    encoding=\"utf-8\", errors=\"surrogateescape\"))\n            else:\n                listfile.write(\"\\n\".join(filenames))\n        self.fm.execute_file([File(listpath)], app='editor')\n        with (open(listpath, 'r', encoding=\"utf-8\", errors=\"surrogateescape\") if\n              py3 else open(listpath, 'r')) as listfile:\n            new_filenames = listfile.read().split(\"\\n\")\n        os.unlink(listpath)\n        if all(a == b for a, b in zip(filenames, new_filenames)):\n            self.fm.notify(\"No renaming to be done!\")\n            return\n\n        # Generate script\n        with tempfile.NamedTemporaryFile() as cmdfile:\n            script_lines = []\n            script_lines.append(\"# This file will be executed when you close\"\n                                \" the editor.\")\n            script_lines.append(\"# Please double-check everything, clear the\"\n                                \" file to abort.\")\n            new_dirs = []\n            for old, new in zip(filenames, new_filenames):\n                if old != new:\n                    basepath, _ = os.path.split(new)\n                    if (basepath and basepath not in new_dirs\n                            and not os.path.isdir(basepath)):\n                        script_lines.append(\"mkdir -vp -- {dir}\".format(\n                            dir=esc(basepath)))\n                        new_dirs.append(basepath)\n                    script_lines.append(\"mv -vi -- {old} {new}\".format(\n                        old=esc(old), new=esc(new)))\n            # Make sure not to forget the ending newline\n            script_content = \"\\n\".join(script_lines) + \"\\n\"\n            if py3:\n                cmdfile.write(script_content.encode(encoding=\"utf-8\",\n                                                    errors=\"surrogateescape\"))\n            else:\n                cmdfile.write(script_content)\n            cmdfile.flush()\n\n            # Open the script and let the user review it, then check if the\n            # script was modified by the user\n            self.fm.execute_file([File(cmdfile.name)], app='editor')\n            cmdfile.seek(0)\n            script_was_edited = (script_content != cmdfile.read())\n\n            # Do the renaming\n            self.fm.run(['/bin/sh', cmdfile.name], flags='w')\n\n        # Retag the files, but only if the script wasn't changed during review,\n        # because only then we know which are the source and destination files.\n        if not script_was_edited:\n            tags_changed = False\n            for old, new in zip(filenames, new_filenames):\n                if old != new:\n                    oldpath = self.fm.thisdir.path + '/' + old\n                    newpath = self.fm.thisdir.path + '/' + new\n                    if oldpath in self.fm.tags:\n                        old_tag = self.fm.tags.tags[oldpath]\n                        self.fm.tags.remove(oldpath)\n                        self.fm.tags.tags[newpath] = old_tag\n                        tags_changed = True\n            if tags_changed:\n                self.fm.tags.dump()\n        else:\n            fm.notify(\"files have not been retagged\")\n\n\nclass relink(Command):\n    \"\"\":relink <newpath>\n\n    Changes the linked path of the currently highlighted symlink to <newpath>\n    \"\"\"\n\n    def execute(self):\n        new_path = self.rest(1)\n        tfile = self.fm.thisfile\n\n        if not new_path:\n            return self.fm.notify('Syntax: relink <newpath>', bad=True)\n\n        if not tfile.is_link:\n            return self.fm.notify('%s is not a symlink!' % tfile.relative_path, bad=True)\n\n        if new_path == os.readlink(tfile.path):\n            return None\n\n        try:\n            os.remove(tfile.path)\n            os.symlink(new_path, tfile.path)\n        except OSError as err:\n            self.fm.notify(err)\n\n        self.fm.reset()\n        self.fm.thisdir.pointed_obj = tfile\n        self.fm.thisfile = tfile\n\n        return None\n\n    def tab(self, tabnum):\n        if not self.rest(1):\n            return self.line + os.readlink(self.fm.thisfile.path)\n        return self._tab_directory_content()\n\n\nclass help_(Command):\n    \"\"\":help\n\n    Display ranger's manual page.\n    \"\"\"\n    name = 'help'\n\n    def execute(self):\n        def callback(answer):\n            if answer == \"q\":\n                return\n            elif answer == \"m\":\n                self.fm.display_help()\n            elif answer == \"c\":\n                self.fm.dump_commands()\n            elif answer == \"k\":\n                self.fm.dump_keybindings()\n            elif answer == \"s\":\n                self.fm.dump_settings()\n\n        self.fm.ui.console.ask(\n            \"View [m]an page, [k]ey bindings, [c]ommands or [s]ettings? (press q to abort)\",\n            callback,\n            list(\"mqkcs\")\n        )\n\n\nclass copymap(Command):\n    \"\"\":copymap <keys> <newkeys1> [<newkeys2>...]\n\n    Copies a \"browser\" keybinding from <keys> to <newkeys>\n    \"\"\"\n    context = 'browser'\n\n    def execute(self):\n        if not self.arg(1) or not self.arg(2):\n            return self.fm.notify(\"Not enough arguments\", bad=True)\n\n        for arg in self.args[2:]:\n            self.fm.ui.keymaps.copy(self.context, self.arg(1), arg)\n\n        return None\n\n\nclass copypmap(copymap):\n    \"\"\":copypmap <keys> <newkeys1> [<newkeys2>...]\n\n    Copies a \"pager\" keybinding from <keys> to <newkeys>\n    \"\"\"\n    context = 'pager'\n\n\nclass copycmap(copymap):\n    \"\"\":copycmap <keys> <newkeys1> [<newkeys2>...]\n\n    Copies a \"console\" keybinding from <keys> to <newkeys>\n    \"\"\"\n    context = 'console'\n\n\nclass copytmap(copymap):\n    \"\"\":copytmap <keys> <newkeys1> [<newkeys2>...]\n\n    Copies a \"taskview\" keybinding from <keys> to <newkeys>\n    \"\"\"\n    context = 'taskview'\n\n\nclass unmap(Command):\n    \"\"\":unmap <keys> [<keys2>, ...]\n\n    Remove the given \"browser\" mappings\n    \"\"\"\n    context = 'browser'\n\n    def execute(self):\n        for arg in self.args[1:]:\n            self.fm.ui.keymaps.unbind(self.context, arg)\n\n\nclass uncmap(unmap):\n    \"\"\":uncmap <keys> [<keys2>, ...]\n\n    Remove the given \"console\" mappings\n    \"\"\"\n    context = 'console'\n\n\nclass cunmap(uncmap):\n    \"\"\":cunmap <keys> [<keys2>, ...]\n\n    Remove the given \"console\" mappings\n\n    DEPRECATED in favor of uncmap.\n    \"\"\"\n\n    def execute(self):\n        self.fm.notify(\"cunmap is deprecated in favor of uncmap!\")\n        super(cunmap, self).execute()\n\n\nclass unpmap(unmap):\n    \"\"\":unpmap <keys> [<keys2>, ...]\n\n    Remove the given \"pager\" mappings\n    \"\"\"\n    context = 'pager'\n\n\nclass punmap(unpmap):\n    \"\"\":punmap <keys> [<keys2>, ...]\n\n    Remove the given \"pager\" mappings\n\n    DEPRECATED in favor of unpmap.\n    \"\"\"\n\n    def execute(self):\n        self.fm.notify(\"punmap is deprecated in favor of unpmap!\")\n        super(punmap, self).execute()\n\n\nclass untmap(unmap):\n    \"\"\":untmap <keys> [<keys2>, ...]\n\n    Remove the given \"taskview\" mappings\n    \"\"\"\n    context = 'taskview'\n\n\nclass tunmap(untmap):\n    \"\"\":tunmap <keys> [<keys2>, ...]\n\n    Remove the given \"taskview\" mappings\n\n    DEPRECATED in favor of untmap.\n    \"\"\"\n\n    def execute(self):\n        self.fm.notify(\"tunmap is deprecated in favor of untmap!\")\n        super(tunmap, self).execute()\n\n\nclass map_(Command):\n    \"\"\":map <keysequence> <command>\n\n    Maps a command to a keysequence in the \"browser\" context.\n\n    Example:\n    map j move down\n    map J move down 10\n    \"\"\"\n    name = 'map'\n    context = 'browser'\n    resolve_macros = False\n\n    def execute(self):\n        if not self.arg(1) or not self.arg(2):\n            self.fm.notify(\"Syntax: {0} <keysequence> <command>\".format(self.get_name()), bad=True)\n            return\n\n        self.fm.ui.keymaps.bind(self.context, self.arg(1), self.rest(2))\n\n\nclass cmap(map_):\n    \"\"\":cmap <keysequence> <command>\n\n    Maps a command to a keysequence in the \"console\" context.\n\n    Example:\n    cmap <ESC> console_close\n    cmap <C-x> console_type test\n    \"\"\"\n    context = 'console'\n\n\nclass tmap(map_):\n    \"\"\":tmap <keysequence> <command>\n\n    Maps a command to a keysequence in the \"taskview\" context.\n    \"\"\"\n    context = 'taskview'\n\n\nclass pmap(map_):\n    \"\"\":pmap <keysequence> <command>\n\n    Maps a command to a keysequence in the \"pager\" context.\n    \"\"\"\n    context = 'pager'\n\n\nclass scout(Command):\n    \"\"\":scout [-FLAGS...] <pattern>\n\n    Swiss army knife command for searching, traveling and filtering files.\n\n    Flags:\n     -a    Automatically open a file on unambiguous match\n     -e    Open the selected file when pressing enter\n     -f    Filter files that match the current search pattern\n     -g    Interpret pattern as a glob pattern\n     -i    Ignore the letter case of the files\n     -k    Keep the console open when changing a directory with the command\n     -l    Letter skipping; e.g. allow \"rdme\" to match the file \"readme\"\n     -m    Mark the matching files after pressing enter\n     -M    Unmark the matching files after pressing enter\n     -p    Permanent filter: hide non-matching files after pressing enter\n     -r    Interpret pattern as a regular expression pattern\n     -s    Smart case; like -i unless pattern contains upper case letters\n     -t    Apply filter and search pattern as you type\n     -v    Inverts the match\n\n    Multiple flags can be combined.  For example, \":scout -gpt\" would create\n    a :filter-like command using globbing.\n    \"\"\"\n    # pylint: disable=bad-whitespace\n    AUTO_OPEN     = 'a'\n    OPEN_ON_ENTER = 'e'\n    FILTER        = 'f'\n    SM_GLOB       = 'g'\n    IGNORE_CASE   = 'i'\n    KEEP_OPEN     = 'k'\n    SM_LETTERSKIP = 'l'\n    MARK          = 'm'\n    UNMARK        = 'M'\n    PERM_FILTER   = 'p'\n    SM_REGEX      = 'r'\n    SMART_CASE    = 's'\n    AS_YOU_TYPE   = 't'\n    INVERT        = 'v'\n    # pylint: enable=bad-whitespace\n\n    def __init__(self, *args, **kwargs):\n        super(scout, self).__init__(*args, **kwargs)\n        self._regex = None\n        self.flags, self.pattern = self.parse_flags()\n\n    def execute(self):  # pylint: disable=too-many-branches\n        thisdir = self.fm.thisdir\n        flags = self.flags\n        pattern = self.pattern\n        regex = self._build_regex()\n        count = self._count(move=True)\n\n        self.fm.thistab.last_search = regex\n        self.fm.set_search_method(order=\"search\")\n\n        if (self.MARK in flags or self.UNMARK in flags) and thisdir.files:\n            value = flags.find(self.MARK) > flags.find(self.UNMARK)\n            if self.FILTER in flags:\n                for fobj in thisdir.files:\n                    thisdir.mark_item(fobj, value)\n            else:\n                for fobj in thisdir.files:\n                    if regex.search(fobj.relative_path):\n                        thisdir.mark_item(fobj, value)\n\n        if self.PERM_FILTER in flags:\n            thisdir.filter = regex if pattern else None\n\n        # clean up:\n        self.cancel()\n\n        if self.OPEN_ON_ENTER in flags or \\\n                (self.AUTO_OPEN in flags and count == 1):\n            if pattern == '..':\n                self.fm.cd(pattern)\n            else:\n                self.fm.move(right=1)\n                if self.quickly_executed:\n                    self.fm.block_input(0.5)\n\n        if self.KEEP_OPEN in flags and thisdir != self.fm.thisdir:\n            # reopen the console:\n            if not pattern:\n                self.fm.open_console(self.line)\n            else:\n                self.fm.open_console(self.line[0:-len(pattern)])\n\n        if self.quickly_executed and thisdir != self.fm.thisdir and pattern != \"..\":\n            self.fm.block_input(0.5)\n\n    def cancel(self):\n        self.fm.thisdir.temporary_filter = None\n        self.fm.thisdir.refilter()\n\n    def quick(self):\n        asyoutype = self.AS_YOU_TYPE in self.flags\n        if self.FILTER in self.flags:\n            self.fm.thisdir.temporary_filter = self._build_regex()\n        if self.PERM_FILTER in self.flags and asyoutype:\n            self.fm.thisdir.filter = self._build_regex()\n        if self.FILTER in self.flags or self.PERM_FILTER in self.flags:\n            self.fm.thisdir.refilter()\n        if self._count(move=asyoutype) == 1 and self.AUTO_OPEN in self.flags:\n            return True\n        return False\n\n    def tab(self, tabnum):\n        self._count(move=True, offset=tabnum)\n\n    def _build_regex(self):\n        if self._regex is not None:\n            return self._regex\n\n        frmat = \"%s\"\n        flags = self.flags\n        pattern = self.pattern\n\n        if pattern == \".\":\n            return re.compile(\"\")\n\n        # Handle carets at start and dollar signs at end separately\n        if pattern.startswith('^'):\n            pattern = pattern[1:]\n            frmat = \"^\" + frmat\n        if pattern.endswith('$'):\n            pattern = pattern[:-1]\n            frmat += \"$\"\n\n        # Apply one of the search methods\n        if self.SM_REGEX in flags:\n            regex = pattern\n        elif self.SM_GLOB in flags:\n            regex = re.escape(pattern).replace(\"\\\\*\", \".*\").replace(\"\\\\?\", \".\")\n        elif self.SM_LETTERSKIP in flags:\n            regex = \".*\".join(re.escape(c) for c in pattern)\n        else:\n            regex = re.escape(pattern)\n\n        regex = frmat % regex\n\n        # Invert regular expression if necessary\n        if self.INVERT in flags:\n            regex = \"^(?:(?!%s).)*$\" % regex\n\n        # Compile Regular Expression\n        # pylint: disable=no-member\n        options = re.UNICODE\n        if self.IGNORE_CASE in flags or self.SMART_CASE in flags and \\\n                pattern.islower():\n            options |= re.IGNORECASE\n        # pylint: enable=no-member\n        try:\n            self._regex = re.compile(regex, options)\n        except re.error:\n            self._regex = re.compile(\"\")\n        return self._regex\n\n    def _count(self, move=False, offset=0):\n        count = 0\n        cwd = self.fm.thisdir\n        pattern = self.pattern\n\n        if not pattern or not cwd.files:\n            return 0\n        if pattern == '.':\n            return 0\n        if pattern == '..':\n            return 1\n\n        deq = deque(cwd.files)\n        deq.rotate(-cwd.pointer - offset)\n        i = offset\n        regex = self._build_regex()\n        for fsobj in deq:\n            if regex.search(fsobj.relative_path):\n                count += 1\n                if move and count == 1:\n                    cwd.move(to=(cwd.pointer + i) % len(cwd.files))\n                    self.fm.thisfile = cwd.pointed_obj\n            if count > 1:\n                return count\n            i += 1\n\n        return count == 1\n\n\nclass narrow(Command):\n    \"\"\"\n    :narrow\n\n    Show only the files selected right now. If no files are selected,\n    disable narrowing.\n    \"\"\"\n    def execute(self):\n        if self.fm.thisdir.marked_items:\n            selection = [f.basename for f in self.fm.thistab.get_selection()]\n            self.fm.thisdir.narrow_filter = selection\n        else:\n            self.fm.thisdir.narrow_filter = None\n        self.fm.thisdir.refilter()\n\n\nclass filter_inode_type(Command):\n    \"\"\"\n    :filter_inode_type [dfl]\n\n    Displays only the files of specified inode type. Parameters\n    can be combined.\n\n        d display directories\n        f display files\n        l display links\n    \"\"\"\n\n    def execute(self):\n        if not self.arg(1):\n            self.fm.thisdir.inode_type_filter = \"\"\n        else:\n            self.fm.thisdir.inode_type_filter = self.arg(1)\n        self.fm.thisdir.refilter()\n\n\nclass filter_stack(Command):\n    \"\"\"\n    :filter_stack ...\n\n    Manages the filter stack.\n\n        filter_stack add FILTER_TYPE ARGS...\n        filter_stack pop\n        filter_stack decompose\n        filter_stack rotate [N=1]\n        filter_stack clear\n        filter_stack show\n    \"\"\"\n    def execute(self):\n        from ranger.core.filter_stack import SIMPLE_FILTERS, FILTER_COMBINATORS\n\n        subcommand = self.arg(1)\n\n        if subcommand == \"add\":\n            try:\n                self.fm.thisdir.filter_stack.append(\n                    SIMPLE_FILTERS[self.arg(2)](self.rest(3))\n                )\n            except KeyError:\n                FILTER_COMBINATORS[self.arg(2)](self.fm.thisdir.filter_stack)\n        elif subcommand == \"pop\":\n            self.fm.thisdir.filter_stack.pop()\n        elif subcommand == \"decompose\":\n            inner_filters = self.fm.thisdir.filter_stack.pop().decompose()\n            if inner_filters:\n                self.fm.thisdir.filter_stack.extend(inner_filters)\n        elif subcommand == \"clear\":\n            self.fm.thisdir.filter_stack = []\n        elif subcommand == \"rotate\":\n            rotate_by = int(self.arg(2) or self.quantifier or 1)\n            self.fm.thisdir.filter_stack = (\n                self.fm.thisdir.filter_stack[-rotate_by:]\n                + self.fm.thisdir.filter_stack[:-rotate_by]\n            )\n        elif subcommand == \"show\":\n            stack = list(map(str, self.fm.thisdir.filter_stack))\n            pager = self.fm.ui.open_pager()\n            pager.set_source([\"Filter stack: \"] + stack)\n            pager.move(to=100, percentage=True)\n            return\n        else:\n            self.fm.notify(\n                \"Unknown subcommand: {}\".format(subcommand),\n                bad=True\n            )\n            return\n\n        self.fm.thisdir.refilter()\n\n\nclass grep(Command):\n    \"\"\":grep <string>\n\n    Looks for a string in all marked files or directories\n    \"\"\"\n\n    def execute(self):\n        if self.rest(1):\n            action = ['grep', '--line-number']\n            action.extend(['-e', self.rest(1), '-r'])\n            action.extend(f.path for f in self.fm.thistab.get_selection())\n            self.fm.execute_command(action, flags='p')\n\n\nclass flat(Command):\n    \"\"\"\n    :flat <level>\n\n    Flattens the directory view up to the specified level.\n\n        -1 fully flattened\n         0 remove flattened view\n    \"\"\"\n\n    def execute(self):\n        try:\n            level_str = self.rest(1)\n            level = int(level_str)\n        except ValueError:\n            level = self.quantifier\n        if level is None:\n            self.fm.notify(\"Syntax: flat <level>\", bad=True)\n            return\n        if level < -1:\n            self.fm.notify(\"Need an integer number (-1, 0, 1, ...)\", bad=True)\n        self.fm.thisdir.unload()\n        self.fm.thisdir.flat = level\n        self.fm.thisdir.load_content()\n\n\nclass reset_previews(Command):\n    \"\"\":reset_previews\n\n    Reset the file previews.\n    \"\"\"\n    def execute(self):\n        self.fm.previews = {}\n        self.fm.ui.need_redraw = True\n\n\n# Version control commands\n# --------------------------------\n\n\nclass stage(Command):\n    \"\"\"\n    :stage\n\n    Stage selected files for the corresponding version control system\n    \"\"\"\n\n    def execute(self):\n        from ranger.ext.vcs import VcsError\n\n        if self.fm.thisdir.vcs and self.fm.thisdir.vcs.track:\n            filelist = [f.path for f in self.fm.thistab.get_selection()]\n            try:\n                self.fm.thisdir.vcs.action_add(filelist)\n            except VcsError as ex:\n                self.fm.notify('Unable to stage files: {0}'.format(ex))\n            self.fm.ui.vcsthread.process(self.fm.thisdir)\n        else:\n            self.fm.notify('Unable to stage files: Not in repository')\n\n\nclass unstage(Command):\n    \"\"\"\n    :unstage\n\n    Unstage selected files for the corresponding version control system\n    \"\"\"\n\n    def execute(self):\n        from ranger.ext.vcs import VcsError\n\n        if self.fm.thisdir.vcs and self.fm.thisdir.vcs.track:\n            filelist = [f.path for f in self.fm.thistab.get_selection()]\n            try:\n                self.fm.thisdir.vcs.action_reset(filelist)\n            except VcsError as ex:\n                self.fm.notify('Unable to unstage files: {0}'.format(ex))\n            self.fm.ui.vcsthread.process(self.fm.thisdir)\n        else:\n            self.fm.notify('Unable to unstage files: Not in repository')\n\n# Metadata commands\n# --------------------------------\n\n\nclass prompt_metadata(Command):\n    \"\"\"\n    :prompt_metadata <key1> [<key2> [<key3> ...]]\n\n    Prompt the user to input metadata for multiple keys in a row.\n    \"\"\"\n\n    _command_name = \"meta\"\n    _console_chain = None\n\n    def execute(self):\n        prompt_metadata._console_chain = self.args[1:]\n        self._process_command_stack()\n\n    def _process_command_stack(self):\n        if prompt_metadata._console_chain:\n            key = prompt_metadata._console_chain.pop()\n            self._fill_console(key)\n        else:\n            for col in self.fm.ui.browser.columns:\n                col.need_redraw = True\n\n    def _fill_console(self, key):\n        metadata = self.fm.metadata.get_metadata(self.fm.thisfile.path)\n        if key in metadata and metadata[key]:\n            existing_value = metadata[key]\n        else:\n            existing_value = \"\"\n        text = \"%s %s %s\" % (self._command_name, key, existing_value)\n        self.fm.open_console(text, position=len(text))\n\n\nclass meta(prompt_metadata):\n    \"\"\"\n    :meta <key> [<value>]\n\n    Change metadata of a file.  Deletes the key if value is empty.\n    \"\"\"\n\n    def execute(self):\n        key = self.arg(1)\n        update_dict = dict()\n        update_dict[key] = self.rest(2)\n        selection = self.fm.thistab.get_selection()\n        for fobj in selection:\n            self.fm.metadata.set_metadata(fobj.path, update_dict)\n        self._process_command_stack()\n\n    def tab(self, tabnum):\n        key = self.arg(1)\n        metadata = self.fm.metadata.get_metadata(self.fm.thisfile.path)\n        if key in metadata and metadata[key]:\n            return [\" \".join([self.arg(0), self.arg(1), metadata[key]])]\n        return [self.arg(0) + \" \" + k for k in sorted(metadata)\n                if k.startswith(self.arg(1))]\n\n\nclass linemode(default_linemode):\n    \"\"\"\n    :linemode <mode>\n\n    Change what is displayed as a filename.\n\n    - \"mode\" may be any of the defined linemodes (see: ranger.core.linemode).\n      \"normal\" is mapped to \"filename\".\n    \"\"\"\n\n    def execute(self):\n        mode = self.arg(1)\n\n        if mode == \"normal\":\n            from ranger.core.linemode import DEFAULT_LINEMODE\n            mode = DEFAULT_LINEMODE\n\n        if mode not in self.fm.thisfile.linemode_dict:\n            self.fm.notify(\"Unhandled linemode: `%s'\" % mode, bad=True)\n            return\n\n        self.fm.thisdir.set_linemode_of_children(mode)\n\n        # Ask the browsercolumns to redraw\n        for col in self.fm.ui.browser.columns:\n            col.need_redraw = True\n\n\nclass yank(Command):\n    \"\"\":yank [name|dir|path]\n\n    Copies the file's name (default), directory or path into both the primary X\n    selection and the clipboard.\n    \"\"\"\n\n    modes = {\n        '': 'basename',\n        'name_without_extension': 'basename_without_extension',\n        'name': 'basename',\n        'dir': 'dirname',\n        'path': 'path',\n    }\n\n    def execute(self):\n        import subprocess\n\n        def clipboards():\n            from ranger.ext.get_executables import get_executables\n            clipboard_managers = {\n                'xclip': [\n                    ['xclip'],\n                    ['xclip', '-selection', 'clipboard'],\n                ],\n                'xsel': [\n                    ['xsel'],\n                    ['xsel', '-b'],\n                ],\n                'wl-copy': [\n                    ['wl-copy'],\n                ],\n                'pbcopy': [\n                    ['pbcopy'],\n                ],\n            }\n            ordered_managers = ['pbcopy', 'wl-copy', 'xclip', 'xsel']\n            executables = get_executables()\n            for manager in ordered_managers:\n                if manager in executables:\n                    return clipboard_managers[manager]\n            return []\n\n        clipboard_commands = clipboards()\n\n        mode = self.modes[self.arg(1)]\n        selection = self.get_selection_attr(mode)\n\n        new_clipboard_contents = \"\\n\".join(selection)\n        for command in clipboard_commands:\n            process = subprocess.Popen(command, universal_newlines=True,\n                                       stdin=subprocess.PIPE)\n            process.communicate(input=new_clipboard_contents)\n\n    def get_selection_attr(self, attr):\n        return [getattr(item, attr) for item in\n                self.fm.thistab.get_selection()]\n\n    def tab(self, tabnum):\n        return (\n            self.start(1) + mode for mode\n            in sorted(self.modes.keys())\n            if mode\n        )\n\n\nclass paste_ext(Command):\n    \"\"\"\n    :paste_ext\n\n    Like paste but tries to rename conflicting files so that the\n    file extension stays intact (e.g. file_.ext).\n    \"\"\"\n\n    @staticmethod\n    def make_safe_path(dst):\n        if not os.path.exists(dst):\n            return dst\n\n        dst_name, dst_ext = os.path.splitext(dst)\n\n        if not dst_name.endswith(\"_\"):\n            dst_name += \"_\"\n            if not os.path.exists(dst_name + dst_ext):\n                return dst_name + dst_ext\n        n = 0\n        test_dst = dst_name + str(n)\n        while os.path.exists(test_dst + dst_ext):\n            n += 1\n            test_dst = dst_name + str(n)\n\n        return test_dst + dst_ext\n\n    def execute(self):\n        return self.fm.paste(make_safe_path=paste_ext.make_safe_path)\n"
  },
  {
    "path": "ranger/rc.conf",
    "content": "# ===================================================================\n# This file contains the default startup commands for ranger.\n# To change them, it is recommended to create either /etc/ranger/rc.conf\n# (system-wide) or ~/.config/ranger/rc.conf (per user) and add your custom\n# commands there.\n#\n# If you copy this whole file there, you may want to set the environment\n# variable RANGER_LOAD_DEFAULT_RC to FALSE to avoid loading it twice.\n#\n# The purpose of this file is mainly to define keybindings and settings.\n# For running more complex python code, please create a plugin in \"plugins/\" or\n# a command in \"commands.py\".\n#\n# Each line is a command that will be run before the user interface\n# is initialized.  As a result, you can not use commands which rely\n# on the UI such as :delete or :mark.\n# ===================================================================\n\n# ===================================================================\n# == Options\n# ===================================================================\n\n# Which viewmode should be used?  Possible values are:\n#     miller: Use miller columns which show multiple levels of the hierarchy\n#     multipane: Midnight-commander like multipane view showing all tabs next\n#                to each other\nset viewmode miller\n#set viewmode multipane\n\n# How many columns are there, and what are their relative widths?\nset column_ratios 1,3,4\n\n# Which files should be hidden? (regular expression)\nset hidden_filter ^\\.|\\.(?:pyc|pyo|bak|swp)$|^lost\\+found$|^__(py)?cache__$\n\n# Show hidden files? You can toggle this by typing 'zh'\nset show_hidden true\n\n# Ask for a confirmation when running the \"delete\" command?\n# Valid values are \"always\", \"never\", \"multiple\" (default)\n# With \"multiple\", ranger will ask only if you delete multiple files at once.\nset confirm_on_delete multiple\n\n# Use non-default path for file preview script?\n# ranger ships with scope.sh, a script that calls external programs (see\n# README.md for dependencies) to preview images, archives, etc.\n#set preview_script ~/.config/ranger/scope.sh\n\n# Use the external preview script or display simple plain text or image previews?\nset use_preview_script true\n\n# Automatically count files in the directory, even before entering them?\nset automatically_count_files true\n\n# Open all images in this directory when running certain image viewers\n# like feh or sxiv?  You can still open selected files by marking them.\nset open_all_images true\n\n# Be aware of version control systems and display information.\nset vcs_aware false\n\n# State of the four backends git, hg, bzr, svn. The possible states are\n# disabled, local (only show local info), enabled (show local and remote\n# information).\nset vcs_backend_git enabled\nset vcs_backend_hg disabled\nset vcs_backend_bzr disabled\nset vcs_backend_svn disabled\n\n# Truncate the long commit messages to this length when shown in the statusbar.\nset vcs_msg_length 50\n\n# Use one of the supported image preview protocols\nset preview_images true\n\n# Set the preview image method. Supported methods:\n#\n# * w3m (default):\n#   Preview images in full color with the external command \"w3mimgpreview\"?\n#   This requires the console web browser \"w3m\" and a supported terminal.\n#   It has been successfully tested with \"xterm\" and \"urxvt\" without tmux.\n#\n# * iterm2:\n#   Preview images in full color using iTerm2 image previews\n#   (http://iterm2.com/images.html). This requires using iTerm2 compiled\n#   with image preview support.\n#\n#   This feature relies on the dimensions of the terminal's font.  By default, a\n#   width of 8 and height of 11 are used.  To use other values, set the options\n#   iterm2_font_width and iterm2_font_height to the desired values.\n#\n# * terminology:\n#   Previews images in full color in the terminology terminal emulator.\n#   Supports a wide variety of formats, even vector graphics like svg.\n#\n# * urxvt:\n#   Preview images in full color using urxvt image backgrounds. This\n#   requires using urxvt compiled with pixbuf support.\n#\n# * urxvt-full:\n#   The same as urxvt but utilizing not only the preview pane but the\n#   whole terminal window.\n#\n# * kitty:\n#   Preview images in full color using kitty image protocol.\n#   Requires python PIL or pillow library.\n#   If ranger does not share the local filesystem with kitty\n#   the transfer method is changed to encode the whole image;\n#   while slower, this allows remote previews,\n#   for example during an ssh session.\n#   Tmux is unsupported.\n#\n# * ueberzug:\n#   Preview images in full color with the external command \"ueberzug\".\n#   Images are shown by using a child window.\n#   Only for users who run X11 in GNU/Linux.\nset preview_images_method kitty\n\n# Delay in seconds before displaying an image with the w3m method.\n# Increase it in case of experiencing display corruption.\nset w3m_delay 0.02\n\n# Manually adjust the w3mimg offset when using a terminal which needs this\nset w3m_offset 0\n\n# Default iTerm2 font size (see: preview_images_method: iterm2)\nset iterm2_font_width 8\nset iterm2_font_height 11\n\n# Use a unicode \"...\" character to mark cut-off filenames?\nset unicode_ellipsis false\n\n# BIDI support - try to properly display file names in RTL languages (Hebrew, Arabic).\n# Requires the python-bidi pip package\nset bidi_support false\n\n# Show dotfiles in the bookmark preview box?\nset show_hidden_bookmarks true\n\n# Which colorscheme to use?  These colorschemes are available by default:\n# default, jungle, snow, solarized\nset colorscheme default\n\n# Preview files on the rightmost column?\n# And collapse (shrink) the last column if there is nothing to preview?\nset preview_files true\nset preview_directories true\nset collapse_preview true\n\n# Wrap long lines in plain text previews?\nset wrap_plaintext_previews false\n\n# Save the console history on exit?\nset save_console_history true\n\n# Draw the status bar on top of the browser window (default: bottom)\nset status_bar_on_top false\n\n# Draw a progress bar in the status bar which displays the average state of all\n# currently running tasks which support progress bars?\nset draw_progress_bar_in_status_bar true\n\n# Draw borders around columns? (separators, outline, both, or none)\n# Separators are vertical lines between columns.\n# Outline draws a box around all the columns.\n# Both combines the two.\nset draw_borders both\n\n# Display the directory name in tabs?\nset dirname_in_tabs true\n\n# Enable the mouse support?\nset mouse_enabled true\n\n# Display the file size in the main column or status bar?\nset display_size_in_main_column true\nset display_size_in_status_bar true\n\n# Display the free disk space in the status bar?\nset display_free_space_in_status_bar true\n\n# Display files tags in all columns or only in main column?\nset display_tags_in_all_columns true\n\n# Set a title for the window? Updates both `WM_NAME` and `WM_ICON_NAME`\nset update_title false\n\n# Set the tmux/screen window-name to \"ranger\"?\nset update_tmux_title true\n\n# Shorten the title if it gets long?  The number defines how many\n# directories are displayed at once, 0 turns off this feature.\nset shorten_title 3\n\n# Show hostname in titlebar?\nset hostname_in_titlebar true\n\n# Abbreviate $HOME with ~ in the titlebar (first line) of ranger?\nset tilde_in_titlebar true\n\n# How many directory-changes or console-commands should be kept in history?\nset max_history_size 20\nset max_console_history_size 50\n\n# Try to keep so much space between the top/bottom border when scrolling:\nset scroll_offset 8\n\n# Flush the input after each key hit?  (Noticeable when ranger lags)\nset flushinput true\n\n# Padding on the right when there's no preview?\n# This allows you to click into the space to run the file.\nset padding_right true\n\n# Save bookmarks (used with mX and `X) instantly?\n# This helps to synchronize bookmarks between multiple ranger\n# instances but leads to *slight* performance loss.\n# When false, bookmarks are saved when ranger is exited.\nset autosave_bookmarks true\n\n# Save the \"`\" bookmark to disk.  This can be used to switch to the last\n# directory by typing \"``\".\nset save_backtick_bookmark true\n\n# You can display the \"real\" cumulative size of directories by using the\n# command :get_cumulative_size or typing \"dc\".  The size is expensive to\n# calculate and will not be updated automatically.  You can choose\n# to update it automatically though by turning on this option:\nset autoupdate_cumulative_size false\n\n# Turning this on makes sense for screen readers:\nset show_cursor false\n\n# One of: size, natural, basename, atime, ctime, mtime, type, random\nset sort natural\n\n# Additional sorting options\nset sort_reverse false\nset sort_case_insensitive true\nset sort_directories_first true\nset sort_unicode false\n\n# Enable this if key combinations with the Alt Key don't work for you.\n# (Especially on xterm)\nset xterm_alt_key false\n\n# Whether to include bookmarks in cd command\nset cd_bookmarks true\n\n# Changes case sensitivity for the cd command tab completion\nset cd_tab_case sensitive\n\n# Use fuzzy tab completion with the \"cd\" command. For example,\n# \":cd /u/lo/b<tab>\" expands to \":cd /usr/local/bin\".\nset cd_tab_fuzzy false\n\n# Avoid previewing files larger than this size, in bytes.  Use a value of 0 to\n# disable this feature.\nset preview_max_size 0\n\n# The key hint lists up to this size have their sublists expanded.\n# Otherwise the submaps are replaced with \"...\".\nset hint_collapse_threshold 10\n\n# Add the highlighted file to the path in the titlebar\nset show_selection_in_titlebar true\n\n# The delay that ranger idly waits for user input, in milliseconds, with a\n# resolution of 100ms.  Lower delay reduces lag between directory updates but\n# increases CPU load.\nset idle_delay 2000\n\n# When the metadata manager module looks for metadata, should it only look for\n# a \".metadata.json\" file in the current directory, or do a deep search and\n# check all directories above the current one as well?\nset metadata_deep_search false\n\n# Clear all existing filters when leaving a directory\nset clear_filters_on_dir_change false\n\n# Disable displaying line numbers in main column.\n# Possible values: false, absolute, relative.\nset line_numbers false\n\n# When line_numbers=relative show the absolute line number in the\n# current line.\nset relative_current_zero false\n\n# Start line numbers from 1 instead of 0\nset one_indexed false\n\n# Save tabs on exit\nset save_tabs_on_exit false\n\n# Enable scroll wrapping - moving down while on the last item will wrap around to\n# the top and vice versa.\nset wrap_scroll false\n\n# Set the global_inode_type_filter to nothing.  Possible options: d, f and l for\n# directories, files and symlinks respectively.\nset global_inode_type_filter\n\n# This setting allows to freeze the list of files to save I/O bandwidth.  It\n# should be 'false' during start-up, but you can toggle it by pressing F.\nset freeze_files false\n\n# Print file sizes in bytes instead of the default human-readable format.\nset size_in_bytes false\n\n# Warn at startup if RANGER_LEVEL env var is greater than 0, in other words\n# give a warning when you nest ranger in a subshell started by ranger.\n# Special value \"error\" makes the warning more visible.\nset nested_ranger_warning true\n\n# ===================================================================\n# == Local Options\n# ===================================================================\n# You can set local options that only affect a single directory.\n\n# Examples:\n# setlocal path=~/downloads sort mtime\n\n# ===================================================================\n# == Command Aliases in the Console\n# ===================================================================\n\nalias e     edit\nalias q     quit\nalias q!    quit!\nalias qa    quitall\nalias qa!   quitall!\nalias qall  quitall\nalias qall! quitall!\nalias setl  setlocal\n\nalias filter     scout -prts\nalias find       scout -aets\nalias mark       scout -mr\nalias unmark     scout -Mr\nalias search     scout -rs\nalias search_inc scout -rts\nalias travel     scout -aefklst\n\n# ===================================================================\n# == Define keys for the browser\n# ===================================================================\n\n# Basic\nmap     Q quitall\nmap     q quit\ncopymap q ZZ ZQ\n\nmap R     reload_cwd\nmap F     set freeze_files!\nmap <C-r> reset\nmap <C-l> redraw_window\nmap <C-c> abort\nmap <esc> change_mode normal\nmap ~ set viewmode!\n\nmap i display_file\nmap <A-j> scroll_preview 1\nmap <A-k> scroll_preview -1\nmap ? help\nmap W display_log\nmap w taskview_open\nmap S shell $SHELL\n\nmap :  console\nmap ;  console\nmap !  console shell%space\nmap @  console -p6 shell  %%s\nmap #  console shell -p%space\nmap s  console shell%space\nmap r  chain draw_possible_programs; console open_with%space\nmap f  console find%space\nmap cd console cd%space\n\nmap <C-p> chain console; eval fm.ui.console.history_move(-1)\n\n# Change the line mode\nmap Mf linemode filename\nmap Mi linemode fileinfo\nmap Mm linemode mtime\nmap Mh linemode humanreadablemtime\nmap Mp linemode permissions\nmap Ms linemode sizemtime\nmap MH linemode sizehumanreadablemtime\nmap Mt linemode metatitle\n\n# Tagging / Marking\nmap t       tag_toggle\nmap ut      tag_remove\nmap \"<any>  tag_toggle tag=%any\nmap <Space> mark_files toggle=True\nmap v       mark_files all=True toggle=True\nmap uv      mark_files all=True val=False\nmap V       toggle_visual_mode\nmap uV      toggle_visual_mode reverse=True\n\n# For the nostalgics: Midnight Commander bindings\nmap <F1> help\nmap <F2> rename_append\nmap <F3> display_file\nmap <F4> edit\nmap <F5> copy\nmap <F6> cut\nmap <F7> console mkdir%space\nmap <F8> console delete\n#map <F8> console trash\nmap <F10> exit\n\n# In case you work on a keyboard with dvorak layout\nmap <UP>       move up=1\nmap <DOWN>     move down=1\nmap <LEFT>     move left=1\nmap <RIGHT>    move right=1\nmap <HOME>     move to=0\nmap <END>      move to=-1\nmap <PAGEDOWN> move down=1   pages=True\nmap <PAGEUP>   move up=1     pages=True\nmap <CR>       move right=1\n#map <DELETE>   console delete\nmap <INSERT>   console touch%space\n\n# VIM-like\ncopymap <UP>       k\ncopymap <DOWN>     j\ncopymap <LEFT>     h\ncopymap <RIGHT>    l\ncopymap <HOME>     gg\ncopymap <END>      G\ncopymap <PAGEDOWN> <C-F>\ncopymap <PAGEUP>   <C-B>\n\nmap J  move down=0.5  pages=True\nmap K  move up=0.5    pages=True\ncopymap J <C-D>\ncopymap K <C-U>\n\n# Jumping around\nmap H     history_go -1\nmap L     history_go 1\nmap ]     move_parent 1\nmap [     move_parent -1\nmap }     traverse\nmap {     traverse_backwards\nmap )     jump_non\n\nmap gh cd ~\nmap ge cd /etc\nmap gu cd /usr\nmap gd cd /dev\nmap gl cd -r .\nmap gL cd -r %f\nmap go cd /opt\nmap gv cd /var\nmap gm cd /media\nmap gi eval fm.cd('/run/media/' + os.getenv('USER'))\nmap gM cd /mnt\nmap gs cd /srv\nmap gp cd /tmp\nmap gr cd /\nmap gR eval fm.cd(ranger.RANGERDIR)\nmap g/ cd /\nmap g? cd /usr/share/doc/ranger\n\n# External Programs\nmap E  edit\nmap du shell -p du --max-depth=1 -h --apparent-size\nmap dU shell -p du --max-depth=1 -h --apparent-size | sort -rh\nmap yp yank path\nmap yd yank dir\nmap yn yank name\nmap y. yank name_without_extension\n\n# Filesystem Operations\nmap =  chmod\n\nmap cw console rename%space\nmap a  rename_append\nmap A  eval fm.open_console('rename ' + fm.thisfile.relative_path.replace(\"%\", \"%%\"))\nmap I  eval fm.open_console('rename ' + fm.thisfile.relative_path.replace(\"%\", \"%%\"), position=7)\n\nmap pp paste\nmap po paste overwrite=True\nmap pP paste append=True\nmap pO paste overwrite=True append=True\nmap pl paste_symlink relative=False\nmap pL paste_symlink relative=True\nmap phl paste_hardlink\nmap pht paste_hardlinked_subtree\nmap pd console paste dest=\nmap p`<any> paste dest=%any_path\nmap p'<any> paste dest=%any_path\n\nmap dD console delete\nmap dT console trash\n\nmap dd cut\nmap ud uncut\nmap da cut mode=add\nmap dr cut mode=remove\nmap dt cut mode=toggle\n\nmap yy copy\nmap uy uncut\nmap ya copy mode=add\nmap yr copy mode=remove\nmap yt copy mode=toggle\n\n# Temporary workarounds\nmap dgg eval fm.cut(dirarg=dict(to=0), narg=quantifier)\nmap dG  eval fm.cut(dirarg=dict(to=-1), narg=quantifier)\nmap dj  eval fm.cut(dirarg=dict(down=1), narg=quantifier)\nmap dk  eval fm.cut(dirarg=dict(up=1), narg=quantifier)\nmap ygg eval fm.copy(dirarg=dict(to=0), narg=quantifier)\nmap yG  eval fm.copy(dirarg=dict(to=-1), narg=quantifier)\nmap yj  eval fm.copy(dirarg=dict(down=1), narg=quantifier)\nmap yk  eval fm.copy(dirarg=dict(up=1), narg=quantifier)\n\n# Searching\nmap /  console search%space\nmap n  search_next\nmap N  search_next forward=False\nmap ct search_next order=tag\nmap cs search_next order=size\nmap ci search_next order=mimetype\nmap cc search_next order=ctime\nmap cm search_next order=mtime\nmap ca search_next order=atime\n\n# Tabs\nmap <C-n>     tab_new\nmap <C-w>     tab_close\nmap <TAB>     tab_move 1\nmap <S-TAB>   tab_move -1\nmap <A-Right> tab_move 1\nmap <A-Left>  tab_move -1\nmap gt        tab_move 1\nmap gT        tab_move -1\nmap gn        tab_new\nmap gc        tab_close\nmap uq        tab_restore\nmap <a-1>     tab_open 1\nmap <a-2>     tab_open 2\nmap <a-3>     tab_open 3\nmap <a-4>     tab_open 4\nmap <a-5>     tab_open 5\nmap <a-6>     tab_open 6\nmap <a-7>     tab_open 7\nmap <a-8>     tab_open 8\nmap <a-9>     tab_open 9\nmap <a-r>     tab_shift 1\nmap <a-l>     tab_shift -1\n\n# Sorting\nmap or set sort_reverse!\nmap oz set sort=random\nmap os chain set sort=size;      set sort_reverse=False\nmap ob chain set sort=basename;  set sort_reverse=False\nmap on chain set sort=natural;   set sort_reverse=False\nmap om chain set sort=mtime;     set sort_reverse=False\nmap oc chain set sort=ctime;     set sort_reverse=False\nmap oa chain set sort=atime;     set sort_reverse=False\nmap ot chain set sort=type;      set sort_reverse=False\nmap oe chain set sort=extension; set sort_reverse=False\n\nmap oS chain set sort=size;      set sort_reverse=True\nmap oB chain set sort=basename;  set sort_reverse=True\nmap oN chain set sort=natural;   set sort_reverse=True\nmap oM chain set sort=mtime;     set sort_reverse=True\nmap oC chain set sort=ctime;     set sort_reverse=True\nmap oA chain set sort=atime;     set sort_reverse=True\nmap oT chain set sort=type;      set sort_reverse=True\nmap oE chain set sort=extension; set sort_reverse=True\n\nmap dc get_cumulative_size\n\n# Settings\nmap zc    set collapse_preview!\nmap zd    set sort_directories_first!\nmap zh    set show_hidden!\nmap <C-h> set show_hidden!\ncopymap <C-h> <backspace>\ncopymap <backspace> <backspace2>\nmap zI    set flushinput!\nmap zi    set preview_images!\nmap zm    set mouse_enabled!\nmap zp    set preview_files!\nmap zP    set preview_directories!\nmap zs    set sort_case_insensitive!\nmap zu    set autoupdate_cumulative_size!\nmap zv    set use_preview_script!\nmap zf    console filter%space\ncopymap zf zz\n\n# Filter stack\nmap .d filter_stack add type d\nmap .f filter_stack add type f\nmap .l filter_stack add type l\nmap .m console filter_stack add mime%space\nmap .n console filter_stack add name%space\nmap .# console filter_stack add hash%space\nmap .\" filter_stack add duplicate\nmap .' filter_stack add unique\nmap .| filter_stack add or\nmap .& filter_stack add and\nmap .! filter_stack add not\nmap .r filter_stack rotate\nmap .c filter_stack clear\nmap .* filter_stack decompose\nmap .p filter_stack pop\nmap .. filter_stack show\n\n# Bookmarks\nmap `<any>  enter_bookmark %any\nmap '<any>  enter_bookmark %any\nmap m<any>  set_bookmark %any\nmap um<any> unset_bookmark %any\n\nmap m<bg>   draw_bookmarks\ncopymap m<bg>  um<bg> `<bg> '<bg>\n\n# Generate all the chmod bindings with some python help:\neval for arg in \"rwxXst\": cmd(\"map +u{0} shell -f chmod u+{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map +g{0} shell -f chmod g+{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map +o{0} shell -f chmod o+{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map +a{0} shell -f chmod a+{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map +{0}  shell -f chmod u+{0} %s\".format(arg))\n\neval for arg in \"rwxXst\": cmd(\"map -u{0} shell -f chmod u-{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map -g{0} shell -f chmod g-{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map -o{0} shell -f chmod o-{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map -a{0} shell -f chmod a-{0} %s\".format(arg))\neval for arg in \"rwxXst\": cmd(\"map -{0}  shell -f chmod u-{0} %s\".format(arg))\n\n# ===================================================================\n# == Define keys for the console\n# ===================================================================\n# Note: Unmapped keys are passed directly to the console.\n\n# Basic\ncmap <tab>   eval fm.ui.console.tab()\ncmap <s-tab> eval fm.ui.console.tab(-1)\ncmap <ESC>   eval fm.ui.console.close()\ncmap <CR>    eval fm.ui.console.execute()\ncmap <C-l>   redraw_window\n\ncopycmap <ESC> <C-c>\ncopycmap <CR>  <C-j>\n\n# Move around\ncmap <up>    eval fm.ui.console.history_move(-1)\ncmap <down>  eval fm.ui.console.history_move(1)\ncmap <left>  eval fm.ui.console.move(left=1)\ncmap <right> eval fm.ui.console.move(right=1)\ncmap <home>  eval fm.ui.console.move(right=0, absolute=True)\ncmap <end>   eval fm.ui.console.move(right=-1, absolute=True)\ncmap <a-b> eval fm.ui.console.move_word(left=1)\ncmap <a-f> eval fm.ui.console.move_word(right=1)\n\ncopycmap <a-b> <a-left>\ncopycmap <a-f> <a-right>\n\n# Line Editing\ncmap <backspace>  eval fm.ui.console.delete(-1)\ncmap <delete>     eval fm.ui.console.delete(0)\ncmap <C-w>        eval fm.ui.console.delete_word()\ncmap <A-d>        eval fm.ui.console.delete_word(backward=False)\ncmap <C-k>        eval fm.ui.console.delete_rest(1)\ncmap <C-u>        eval fm.ui.console.delete_rest(-1)\ncmap <C-y>        eval fm.ui.console.paste()\n\n# And of course the emacs way\ncopycmap <ESC>       <C-g>\ncopycmap <up>        <C-p>\ncopycmap <down>      <C-n>\ncopycmap <left>      <C-b>\ncopycmap <right>     <C-f>\ncopycmap <home>      <C-a>\ncopycmap <end>       <C-e>\ncopycmap <delete>    <C-d>\ncopycmap <backspace> <C-h>\n\n# Note: There are multiple ways to express backspaces.  <backspace> (code 263)\n# and <backspace2> (code 127).  To be sure, use both.\ncopycmap <backspace> <backspace2>\n\n# This special expression allows typing in numerals:\ncmap <allow_quantifiers> false\n\n# ===================================================================\n# == Pager Keybindings\n# ===================================================================\n\n# Movement\npmap  <down>      pager_move  down=1\npmap  <up>        pager_move  up=1\npmap  <left>      pager_move  left=4\npmap  <right>     pager_move  right=4\npmap  <home>      pager_move  to=0\npmap  <end>       pager_move  to=-1\npmap  <pagedown>  pager_move  down=1.0  pages=True\npmap  <pageup>    pager_move  up=1.0    pages=True\npmap  <C-d>       pager_move  down=0.5  pages=True\npmap  <C-u>       pager_move  up=0.5    pages=True\n\ncopypmap <UP>       k  <C-p>\ncopypmap <DOWN>     j  <C-n> <CR>\ncopypmap <LEFT>     h\ncopypmap <RIGHT>    l\ncopypmap <HOME>     g\ncopypmap <END>      G\ncopypmap <C-d>      d\ncopypmap <C-u>      u\ncopypmap <PAGEDOWN> n  f  <C-F>  <Space>\ncopypmap <PAGEUP>   p  b  <C-B>\n\n# Basic\npmap     <C-l> redraw_window\npmap     <ESC> pager_close\ncopypmap <ESC> q Q i <F3>\npmap E      edit_file\n\n# ===================================================================\n# == Taskview Keybindings\n# ===================================================================\n\n# Movement\ntmap <up>        taskview_move up=1\ntmap <down>      taskview_move down=1\ntmap <home>      taskview_move to=0\ntmap <end>       taskview_move to=-1\ntmap <pagedown>  taskview_move down=1.0  pages=True\ntmap <pageup>    taskview_move up=1.0    pages=True\ntmap <C-d>       taskview_move down=0.5  pages=True\ntmap <C-u>       taskview_move up=0.5    pages=True\n\ncopytmap <UP>       k  <C-p>\ncopytmap <DOWN>     j  <C-n> <CR>\ncopytmap <HOME>     g\ncopytmap <END>      G\ncopytmap <C-u>      u\ncopytmap <PAGEDOWN> n  f  <C-F>  <Space>\ncopytmap <PAGEUP>   p  b  <C-B>\n\n# Changing priority and deleting tasks\ntmap J          eval -q fm.ui.taskview.task_move(-1)\ntmap K          eval -q fm.ui.taskview.task_move(0)\ntmap dd         eval -q fm.ui.taskview.task_remove()\ntmap <pagedown> eval -q fm.ui.taskview.task_move(-1)\ntmap <pageup>   eval -q fm.ui.taskview.task_move(0)\ntmap <delete>   eval -q fm.ui.taskview.task_remove()\n\n# Basic\ntmap <C-l> redraw_window\ntmap <ESC> taskview_close\ncopytmap <ESC> q Q w <C-c>\n"
  },
  {
    "path": "ranger/rifle.conf",
    "content": "# vim: ft=cfg\n#\n# This is the configuration file of \"rifle\", ranger's file executor/opener.\n# Each line consists of conditions and a command.  For each line the conditions\n# are checked and if they are met, the respective command is run.\n#\n# Syntax:\n#   <condition1> , <condition2> , ... = command\n#\n# The command can contain these environment variables:\n#   $1-$9 | The n-th selected file\n#   $@    | All selected files\n#\n# If you use the special command \"ask\", rifle will ask you what program to run.\n#\n# Prefixing a condition with \"!\" will negate its result.\n# These conditions are currently supported:\n#   match <regexp> | The regexp matches $1\n#   ext <regexp>   | The regexp matches the extension of $1\n#   mime <regexp>  | The regexp matches the mime type of $1\n#   name <regexp>  | The regexp matches the basename of $1\n#   path <regexp>  | The regexp matches the absolute path of $1\n#   has <program>  | The program is installed (i.e. located in $PATH)\n#   env <variable> | The environment variable \"variable\" is non-empty\n#   file           | $1 is a file\n#   directory      | $1 is a directory\n#   number <n>     | change the number of this command to n\n#   terminal       | stdin, stderr and stdout are connected to a terminal\n#   X              | A graphical environment is available (darwin, Xorg, or Wayland)\n#\n# There are also pseudo-conditions which have a \"side effect\":\n#   flag <flags>  | Change how the program is run. See below.\n#   label <label> | Assign a label or name to the command so it can\n#                 | be started with :open_with <label> in ranger\n#                 | or `rifle -p <label>` in the standalone executable.\n#   else          | Always true.\n#\n# Flags are single characters which slightly transform the command:\n#   f | Fork the program, make it run in the background.\n#     |   New command = setsid $command >& /dev/null &\n#   r | Execute the command with root permissions\n#     |   New command = sudo $command\n#   t | Run the program in a new terminal.  If $TERMCMD is not defined,\n#     | rifle will attempt to extract it from $TERM.\n#     |   New command = $TERMCMD -e $command\n# Note: The \"New command\" serves only as an illustration, the exact\n# implementation may differ.\n# Note: When using rifle in ranger, there is an additional flag \"c\" for\n# only running the current file even if you have marked multiple files.\n\n#-------------------------------------------\n# Websites\n#-------------------------------------------\n# Rarely installed browsers get higher priority; It is assumed that if you\n# install a rare browser, you probably use it.  Firefox/konqueror/w3m on the\n# other hand are often only installed as fallback browsers.\next x?html?, has surf,             X, flag f = surf -- file://\"$1\"\next x?html?, has vimprobable,      X, flag f = vimprobable -- \"$@\"\next x?html?, has vimprobable2,     X, flag f = vimprobable2 -- \"$@\"\next x?html?, has qutebrowser,      X, flag f = qutebrowser -- \"$@\"\next x?html?, has dwb,              X, flag f = dwb -- \"$@\"\next x?html?, has jumanji,          X, flag f = jumanji -- \"$@\"\next x?html?, has luakit,           X, flag f = luakit -- \"$@\"\next x?html?, has uzbl,             X, flag f = uzbl -- \"$@\"\next x?html?, has uzbl-tabbed,      X, flag f = uzbl-tabbed -- \"$@\"\next x?html?, has uzbl-browser,     X, flag f = uzbl-browser -- \"$@\"\next x?html?, has uzbl-core,        X, flag f = uzbl-core -- \"$@\"\next x?html?, has midori,           X, flag f = midori -- \"$@\"\next x?html?, has opera,            X, flag f = opera -- \"$@\"\next x?html?, has firefox,          X, flag f = firefox -- \"$@\"\next x?html?, has seamonkey,        X, flag f = seamonkey -- \"$@\"\next x?html?, has iceweasel,        X, flag f = iceweasel -- \"$@\"\next x?html?, has chromium-browser, X, flag f = chromium-browser -- \"$@\"\next x?html?, has chromium,         X, flag f = chromium -- \"$@\"\next x?html?, has google-chrome,    X, flag f = google-chrome -- \"$@\"\next x?html?, has epiphany,         X, flag f = epiphany -- \"$@\"\next x?html?, has konqueror,        X, flag f = konqueror -- \"$@\"\next x?html?, has elinks,            terminal = elinks \"$@\"\next x?html?, has links2,            terminal = links2 \"$@\"\next x?html?, has links,             terminal = links \"$@\"\next x?html?, has lynx,              terminal = lynx -- \"$@\"\next x?html?, has w3m,               terminal = w3m \"$@\"\n\n#-------------------------------------------\n# Misc\n#-------------------------------------------\n# Define the \"editor\" for text files as first action\nmime ^text,  label editor = ${VISUAL:-$EDITOR} -- \"$@\"\nmime ^text,  label pager  = \"$PAGER\" -- \"$@\"\n!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- \"$@\"\n!mime ^text, label pager,  ext xml|json|csv|tex|py|pl|rb|js|sh|php = \"$PAGER\" -- \"$@\"\n\next 1                         = man \"$1\"\next s[wmf]c, has zsnes, X     = zsnes \"$1\"\next s[wmf]c, has snes9x-gtk,X = snes9x-gtk \"$1\"\next nes, has fceux, X         = fceux \"$1\"\next exe                       = wine \"$1\"\nname ^[mM]akefile$            = make\n\n#--------------------------------------------\n# Scripts\n#-------------------------------------------\next py  = python -- \"$1\"\next pl  = perl -- \"$1\"\next rb  = ruby -- \"$1\"\next js  = node -- \"$1\"\next sh  = sh -- \"$1\"\next php = php -- \"$1\"\n\n#--------------------------------------------\n# Audio without X\n#-------------------------------------------\nmime ^audio|ogg$, terminal, has mpv      = mpv -- \"$@\"\nmime ^audio|ogg$, terminal, has mplayer2 = mplayer2 -- \"$@\"\nmime ^audio|ogg$, terminal, has mplayer  = mplayer -- \"$@\"\next midi?,        terminal, has wildmidi = wildmidi -- \"$@\"\n\n#--------------------------------------------\n# Video/Audio with a GUI\n#-------------------------------------------\nmime ^video|audio, has gmplayer, X, flag f = gmplayer -- \"$@\"\nmime ^video|audio, has smplayer, X, flag f = smplayer \"$@\"\nmime ^video,       has mpv,      X, flag f = mpv -- \"$@\"\nmime ^video,       has mpv,      X, flag f = mpv --fs -- \"$@\"\nmime ^video,       has mplayer2, X, flag f = mplayer2 -- \"$@\"\nmime ^video,       has mplayer2, X, flag f = mplayer2 -fs -- \"$@\"\nmime ^video,       has mplayer,  X, flag f = mplayer -- \"$@\"\nmime ^video,       has mplayer,  X, flag f = mplayer -fs -- \"$@\"\nmime ^video|audio, has vlc,      X, flag f = vlc -- \"$@\"\nmime ^video|audio, has totem,    X, flag f = totem -- \"$@\"\nmime ^video|audio, has totem,    X, flag f = totem --fullscreen -- \"$@\"\n\n#--------------------------------------------\n# Video without X\n#-------------------------------------------\nmime ^video, terminal, !X, has mpv       = mpv -- \"$@\"\nmime ^video, terminal, !X, has mplayer2  = mplayer2 -- \"$@\"\nmime ^video, terminal, !X, has mplayer   = mplayer -- \"$@\"\n\n#-------------------------------------------\n# Documents\n#-------------------------------------------\next pdf, has llpp,     X, flag f = llpp \"$@\"\next pdf, has zathura,  X, flag f = zathura -- \"$@\"\next pdf, has mupdf,    X, flag f = mupdf \"$@\"\next pdf, has mupdf-x11,X, flag f = mupdf-x11 \"$@\"\next pdf, has apvlv,    X, flag f = apvlv -- \"$@\"\next pdf, has xpdf,     X, flag f = xpdf -- \"$@\"\next pdf, has evince,   X, flag f = evince -- \"$@\"\next pdf, has atril,    X, flag f = atril -- \"$@\"\next pdf, has okular,   X, flag f = okular -- \"$@\"\next pdf, has epdfview, X, flag f = epdfview -- \"$@\"\next pdf, has qpdfview, X, flag f = qpdfview \"$@\"\next pdf, has open,     X, flag f = open \"$@\"\n\next docx?, has catdoc,       terminal = catdoc -- \"$@\" | \"$PAGER\"\n\next                        sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric,    X, flag f = gnumeric -- \"$@\"\next                        sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread,     X, flag f = kspread -- \"$@\"\next pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice \"$@\"\next pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice,     X, flag f = soffice \"$@\"\next pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice,     X, flag f = ooffice \"$@\"\n\next djvu, has zathura,X, flag f = zathura -- \"$@\"\next djvu, has evince, X, flag f = evince -- \"$@\"\next djvu, has atril,  X, flag f = atril -- \"$@\"\next djvu, has djview, X, flag f = djview -- \"$@\"\n\next epub, has ebook-viewer, X, flag f = ebook-viewer -- \"$@\"\next epub, has zathura,      X, flag f = zathura -- \"$@\"\next epub, has mupdf,        X, flag f = mupdf -- \"$@\"\next mobi, has ebook-viewer, X, flag f = ebook-viewer -- \"$@\"\n\next cbr,  has zathura,      X, flag f = zathura -- \"$@\"\next cbz,  has zathura,      X, flag f = zathura -- \"$@\"\n\n#-------------------------------------------\n# Images\n#-------------------------------------------\nmime ^image/svg, has inkscape, X, flag f = inkscape -- \"$@\"\nmime ^image/svg, has display,  X, flag f = display -- \"$@\"\n\nmime ^image, has imv,       X, flag f = imv -- \"$@\"\nmime ^image, has pqiv,      X, flag f = pqiv -- \"$@\"\nmime ^image, has sxiv,      X, flag f = sxiv -- \"$@\"\nmime ^image, has feh,       X, flag f = feh -- \"$@\"\nmime ^image, has mirage,    X, flag f = mirage -- \"$@\"\nmime ^image, has ristretto, X, flag f = ristretto \"$@\"\nmime ^image, has eog,       X, flag f = eog -- \"$@\"\nmime ^image, has eom,       X, flag f = eom -- \"$@\"\nmime ^image, has nomacs,    X, flag f = nomacs -- \"$@\"\nmime ^image, has geeqie,    X, flag f = geeqie -- \"$@\"\nmime ^image, has gpicview,  X, flag f = gpicview -- \"$@\"\nmime ^image, has gwenview,  X, flag f = gwenview -- \"$@\"\nmime ^image, has gimp,      X, flag f = gimp -- \"$@\"\next xcf,                    X, flag f = gimp -- \"$@\"\n\n#-------------------------------------------\n# Archives\n#-------------------------------------------\n\n# avoid password prompt by providing empty password\next 7z, has 7z = 7z -p l \"$@\" | \"$PAGER\"\n# This requires atool\next ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz,     has atool = atool --list --each -- \"$@\" | \"$PAGER\"\next iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --list --each -- \"$@\" | \"$PAGER\"\next 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz,  has atool = atool --extract --each -- \"$@\"\next iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- \"$@\"\n\n# Listing and extracting archives without atool:\next tar|gz|bz2|xz, has tar = tar vvtf \"$1\" | \"$PAGER\"\next tar|gz|bz2|xz, has tar = for file in \"$@\"; do tar vvxf \"$file\"; done\next bz2, has bzip2 = for file in \"$@\"; do bzip2 -dk \"$file\"; done\next zip, has unzip = unzip -l \"$1\" | less\next zip, has unzip = for file in \"$@\"; do unzip -d \"${file%.*}\" \"$file\"; done\next ace, has unace = unace l \"$1\" | less\next ace, has unace = for file in \"$@\"; do unace e \"$file\"; done\next rar, has unrar = unrar l \"$1\" | less\next rar, has unrar = for file in \"$@\"; do unrar x \"$file\"; done\n\n#-------------------------------------------\n# Fonts\n#-------------------------------------------\nmime ^font, has fontforge, X, flag f = fontforge \"$@\"\n\n#-------------------------------------------\n# Flag t fallback terminals\n#-------------------------------------------\n# Rarely installed terminal emulators get higher priority; It is assumed that\n# if you install a rare terminal emulator, you probably use it.\n# gnome-terminal/konsole/xterm on the other hand are often installed as part of\n# a desktop environment or as fallback terminal emulators.\nmime ^ranger/x-terminal-emulator, has terminology = terminology -e \"$@\"\nmime ^ranger/x-terminal-emulator, has kitty = kitty -- \"$@\"\nmime ^ranger/x-terminal-emulator, has alacritty = alacritty -e \"$@\"\nmime ^ranger/x-terminal-emulator, has sakura = sakura -e \"$@\"\nmime ^ranger/x-terminal-emulator, has lilyterm = lilyterm -e \"$@\"\n#mime ^ranger/x-terminal-emulator, has cool-retro-term = cool-retro-term -e \"$@\"\nmime ^ranger/x-terminal-emulator, has termite = termite -x '\"$@\"'\n#mime ^ranger/x-terminal-emulator, has yakuake = yakuake -e \"$@\"\nmime ^ranger/x-terminal-emulator, has guake = guake -ne \"$@\"\nmime ^ranger/x-terminal-emulator, has tilda = tilda -c \"$@\"\nmime ^ranger/x-terminal-emulator, has st = st -e \"$@\"\nmime ^ranger/x-terminal-emulator, has terminator = terminator -x \"$@\"\nmime ^ranger/x-terminal-emulator, has urxvt = urxvt -e \"$@\"\nmime ^ranger/x-terminal-emulator, has pantheon-terminal = pantheon-terminal -e \"$@\"\nmime ^ranger/x-terminal-emulator, has lxterminal = lxterminal -e \"$@\"\nmime ^ranger/x-terminal-emulator, has mate-terminal = mate-terminal -x \"$@\"\nmime ^ranger/x-terminal-emulator, has xfce4-terminal = xfce4-terminal -x \"$@\"\nmime ^ranger/x-terminal-emulator, has konsole = konsole -e \"$@\"\nmime ^ranger/x-terminal-emulator, has gnome-terminal = gnome-terminal -- \"$@\"\nmime ^ranger/x-terminal-emulator, has xterm = xterm -e \"$@\"\n\n#-------------------------------------------\n# Misc\n#-------------------------------------------\nlabel wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale \"$1\"\nlabel wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile \"$1\"\nlabel wallpaper, number 13, mime ^image, has feh, X = feh --bg-center \"$1\"\nlabel wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill \"$1\"\n\n#-------------------------------------------\n# Generic file openers\n#-------------------------------------------\nlabel open, has xdg-open = xdg-open -- \"$@\"\nlabel open, has open     = open -- \"$@\"\n\n# Define the editor for non-text files + pager as last action\n              !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = ask\nlabel editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = ${VISUAL:-$EDITOR} -- \"$@\"\nlabel pager,  !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php  = \"$PAGER\" -- \"$@\"\n\n\n######################################################################\n# The actions below are left so low down in this file on purpose, so #\n# they are never triggered accidentally.                             #\n######################################################################\n\n# Execute a file as program/script.\nmime application/x-executable = \"$1\"\n\n# Move the file to trash using trash-cli.\nlabel trash, has trash-put = trash-put -- \"$@\"\nlabel trash = mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash; mv -- \"$@\" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash\n"
  },
  {
    "path": "ranger/scope.sh",
    "content": "#!/usr/bin/env bash\n\nset -o noclobber -o noglob -o nounset -o pipefail\nIFS=$'\\n'\n\n## If the option `use_preview_script` is set to `true`,\n## then this script will be called and its output will be displayed in ranger.\n## ANSI color codes are supported.\n## STDIN is disabled, so interactive scripts won't work properly\n\n## This script is considered a configuration file and must be updated manually.\n## It will be left untouched if you upgrade ranger.\n\n## Because of some automated testing we do on the script #'s for comments need\n## to be doubled up. Code that is commented out, because it's an alternative for\n## example, gets only one #.\n\n## Meanings of exit codes:\n## code | meaning    | action of ranger\n## -----+------------+-------------------------------------------\n## 0    | success    | Display stdout as preview\n## 1    | no preview | Display no preview at all\n## 2    | plain text | Display the plain content of the file\n## 3    | fix width  | Don't reload when width changes\n## 4    | fix height | Don't reload when height changes\n## 5    | fix both   | Don't ever reload\n## 6    | image      | Display the image `$IMAGE_CACHE_PATH` points to as an image preview\n## 7    | image      | Display the file directly as an image\n\n## Script arguments\nFILE_PATH=\"${1}\"         # Full path of the highlighted file\nPV_WIDTH=\"${2}\"          # Width of the preview pane (number of fitting characters)\n## shellcheck disable=SC2034 # PV_HEIGHT is provided for convenience and unused\nPV_HEIGHT=\"${3}\"         # Height of the preview pane (number of fitting characters)\nIMAGE_CACHE_PATH=\"${4}\"  # Full path that should be used to cache image preview\nPV_IMAGE_ENABLED=\"${5}\"  # 'True' if image previews are enabled, 'False' otherwise.\n\nFILE_EXTENSION=\"${FILE_PATH##*.}\"\nFILE_EXTENSION_LOWER=\"$(printf \"%s\" \"${FILE_EXTENSION}\" | tr '[:upper:]' '[:lower:]')\"\n\n## Settings\nHIGHLIGHT_SIZE_MAX=262143  # 256KiB\nHIGHLIGHT_TABWIDTH=${HIGHLIGHT_TABWIDTH:-8}\nHIGHLIGHT_STYLE=${HIGHLIGHT_STYLE:-pablo}\nHIGHLIGHT_OPTIONS=\"--replace-tabs=${HIGHLIGHT_TABWIDTH} --style=${HIGHLIGHT_STYLE} ${HIGHLIGHT_OPTIONS:-}\"\nPYGMENTIZE_STYLE=${PYGMENTIZE_STYLE:-autumn}\nOPENSCAD_IMGSIZE=${RNGR_OPENSCAD_IMGSIZE:-1000,1000}\nOPENSCAD_COLORSCHEME=${RNGR_OPENSCAD_COLORSCHEME:-Tomorrow Night}\n\nhandle_extension() {\n    case \"${FILE_EXTENSION_LOWER}\" in\n        ## Archive\n        a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|\\\n        rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)\n            atool --list -- \"${FILE_PATH}\" && exit 5\n            bsdtar --list --file \"${FILE_PATH}\" && exit 5\n            exit 1;;\n        rar)\n            ## Avoid password prompt by providing empty password\n            unrar lt -p- -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n        7z)\n            ## Avoid password prompt by providing empty password\n            7z l -p -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## PDF\n        pdf)\n            ## Preview as text conversion\n            pdftotext -l 10 -nopgbrk -q -- \"${FILE_PATH}\" - | \\\n              fmt -w \"${PV_WIDTH}\" && exit 5\n            mutool draw -F txt -i -- \"${FILE_PATH}\" 1-10 | \\\n              fmt -w \"${PV_WIDTH}\" && exit 5\n            exiftool \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## BitTorrent\n        torrent)\n            transmission-show -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## OpenDocument\n        odt|ods|odp|sxw)\n            ## Preview as text conversion\n            odt2txt \"${FILE_PATH}\" && exit 5\n            ## Preview as markdown conversion\n            pandoc -s -t markdown -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## XLSX\n        xlsx)\n            ## Preview as csv conversion\n            ## Uses: https://github.com/dilshod/xlsx2csv\n            xlsx2csv -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## HTML\n        htm|html|xhtml)\n            ## Preview as text conversion\n            w3m -dump \"${FILE_PATH}\" && exit 5\n            lynx -dump -- \"${FILE_PATH}\" && exit 5\n            elinks -dump \"${FILE_PATH}\" && exit 5\n            pandoc -s -t markdown -- \"${FILE_PATH}\" && exit 5\n            ;;\n\n        ## JSON\n        json)\n            jq --color-output . \"${FILE_PATH}\" && exit 5\n            python -m json.tool -- \"${FILE_PATH}\" && exit 5\n            ;;\n\n        ## Direct Stream Digital/Transfer (DSDIFF) and wavpack aren't detected\n        ## by file(1).\n        dff|dsf|wv|wvc)\n            mediainfo \"${FILE_PATH}\" && exit 5\n            exiftool \"${FILE_PATH}\" && exit 5\n            ;; # Continue with next handler on failure\n    esac\n}\n\nhandle_image() {\n    ## Size of the preview if there are multiple options or it has to be\n    ## rendered from vector graphics. If the conversion program allows\n    ## specifying only one dimension while keeping the aspect ratio, the width\n    ## will be used.\n    local DEFAULT_SIZE=\"1920x1080\"\n\n    local mimetype=\"${1}\"\n    case \"${mimetype}\" in\n        ## SVG\n        # image/svg+xml|image/svg)\n        #     convert -- \"${FILE_PATH}\" \"${IMAGE_CACHE_PATH}\" && exit 6\n        #     exit 1;;\n\n        ## DjVu\n        # image/vnd.djvu)\n        #     ddjvu -format=tiff -quality=90 -page=1 -size=\"${DEFAULT_SIZE}\" \\\n        #           - \"${IMAGE_CACHE_PATH}\" < \"${FILE_PATH}\" \\\n        #           && exit 6 || exit 1;;\n\n        ## Image\n        image/*)\n            local orientation\n            orientation=\"$( identify -format '%[EXIF:Orientation]\\n' -- \"${FILE_PATH}\" )\"\n            ## If orientation data is present and the image actually\n            ## needs rotating (\"1\" means no rotation)...\n            if [[ -n \"$orientation\" && \"$orientation\" != 1 ]]; then\n                ## ...auto-rotate the image according to the EXIF data.\n                convert -- \"${FILE_PATH}\" -auto-orient \"${IMAGE_CACHE_PATH}\" && exit 6\n            fi\n\n            ## `w3mimgdisplay` will be called for all images (unless overriden\n            ## as above), but might fail for unsupported types.\n            exit 7;;\n\n        ## Video\n        # video/*)\n        #     # Thumbnail\n        #     ffmpegthumbnailer -i \"${FILE_PATH}\" -o \"${IMAGE_CACHE_PATH}\" -s 0 && exit 6\n        #     exit 1;;\n\n        ## PDF\n        # application/pdf)\n        #     pdftoppm -f 1 -l 1 \\\n        #              -scale-to-x \"${DEFAULT_SIZE%x*}\" \\\n        #              -scale-to-y -1 \\\n        #              -singlefile \\\n        #              -jpeg -tiffcompression jpeg \\\n        #              -- \"${FILE_PATH}\" \"${IMAGE_CACHE_PATH%.*}\" \\\n        #         && exit 6 || exit 1;;\n\n\n        ## ePub, MOBI, FB2 (using Calibre)\n        # application/epub+zip|application/x-mobipocket-ebook|\\\n        # application/x-fictionbook+xml)\n        #     # ePub (using https://github.com/marianosimone/epub-thumbnailer)\n        #     epub-thumbnailer \"${FILE_PATH}\" \"${IMAGE_CACHE_PATH}\" \\\n        #         \"${DEFAULT_SIZE%x*}\" && exit 6\n        #     ebook-meta --get-cover=\"${IMAGE_CACHE_PATH}\" -- \"${FILE_PATH}\" \\\n        #         >/dev/null && exit 6\n        #     exit 1;;\n\n        ## Font\n        application/font*|application/*opentype)\n            preview_png=\"/tmp/$(basename \"${IMAGE_CACHE_PATH%.*}\").png\"\n            if fontimage -o \"${preview_png}\" \\\n                         --pixelsize \"120\" \\\n                         --fontname \\\n                         --pixelsize \"80\" \\\n                         --text \"  ABCDEFGHIJKLMNOPQRSTUVWXYZ  \" \\\n                         --text \"  abcdefghijklmnopqrstuvwxyz  \" \\\n                         --text \"  0123456789.:,;(*!?') ff fl fi ffi ffl  \" \\\n                         --text \"  The quick brown fox jumps over the lazy dog.  \" \\\n                         \"${FILE_PATH}\";\n            then\n                convert -- \"${preview_png}\" \"${IMAGE_CACHE_PATH}\" \\\n                    && rm \"${preview_png}\" \\\n                    && exit 6\n            else\n                exit 1\n            fi\n            ;;\n\n        ## Preview archives using the first image inside.\n        ## (Very useful for comic book collections for example.)\n        # application/zip|application/x-rar|application/x-7z-compressed|\\\n        #     application/x-xz|application/x-bzip2|application/x-gzip|application/x-tar)\n        #     local fn=\"\"; local fe=\"\"\n        #     local zip=\"\"; local rar=\"\"; local tar=\"\"; local bsd=\"\"\n        #     case \"${mimetype}\" in\n        #         application/zip) zip=1 ;;\n        #         application/x-rar) rar=1 ;;\n        #         application/x-7z-compressed) ;;\n        #         *) tar=1 ;;\n        #     esac\n        #     { [ \"$tar\" ] && fn=$(tar --list --file \"${FILE_PATH}\"); } || \\\n        #     { fn=$(bsdtar --list --file \"${FILE_PATH}\") && bsd=1 && tar=\"\"; } || \\\n        #     { [ \"$rar\" ] && fn=$(unrar lb -p- -- \"${FILE_PATH}\"); } || \\\n        #     { [ \"$zip\" ] && fn=$(zipinfo -1 -- \"${FILE_PATH}\"); } || return\n        #\n        #     fn=$(echo \"$fn\" | python -c \"import sys; import mimetypes as m; \\\n        #             [ print(l, end='') for l in sys.stdin if \\\n        #               (m.guess_type(l[:-1])[0] or '').startswith('image/') ]\" |\\\n        #         sort -V | head -n 1)\n        #     [ \"$fn\" = \"\" ] && return\n        #     [ \"$bsd\" ] && fn=$(printf '%b' \"$fn\")\n        #\n        #     [ \"$tar\" ] && tar --extract --to-stdout \\\n        #         --file \"${FILE_PATH}\" -- \"$fn\" > \"${IMAGE_CACHE_PATH}\" && exit 6\n        #     fe=$(echo -n \"$fn\" | sed 's/[][*?\\]/\\\\\\0/g')\n        #     [ \"$bsd\" ] && bsdtar --extract --to-stdout \\\n        #         --file \"${FILE_PATH}\" -- \"$fe\" > \"${IMAGE_CACHE_PATH}\" && exit 6\n        #     [ \"$bsd\" ] || [ \"$tar\" ] && rm -- \"${IMAGE_CACHE_PATH}\"\n        #     [ \"$rar\" ] && unrar p -p- -inul -- \"${FILE_PATH}\" \"$fn\" > \\\n        #         \"${IMAGE_CACHE_PATH}\" && exit 6\n        #     [ \"$zip\" ] && unzip -pP \"\" -- \"${FILE_PATH}\" \"$fe\" > \\\n        #         \"${IMAGE_CACHE_PATH}\" && exit 6\n        #     [ \"$rar\" ] || [ \"$zip\" ] && rm -- \"${IMAGE_CACHE_PATH}\"\n        #     ;;\n    esac\n\n    # openscad_image() {\n    #     TMPPNG=\"$(mktemp -t XXXXXX.png)\"\n    #     openscad --colorscheme=\"${OPENSCAD_COLORSCHEME}\" \\\n    #         --imgsize=\"${OPENSCAD_IMGSIZE/x/,}\" \\\n    #         -o \"${TMPPNG}\" \"${1}\"\n    #     mv \"${TMPPNG}\" \"${IMAGE_CACHE_PATH}\"\n    # }\n\n    # case \"${FILE_EXTENSION_LOWER}\" in\n    #     ## 3D models\n    #     ## OpenSCAD only supports png image output, and ${IMAGE_CACHE_PATH}\n    #     ## is hardcoded as jpeg. So we make a tempfile.png and just\n    #     ## move/rename it to jpg. This works because image libraries are\n    #     ## smart enough to handle it.\n    #     csg|scad)\n    #         openscad_image \"${FILE_PATH}\" && exit 6\n    #         ;;\n    #     3mf|amf|dxf|off|stl)\n    #         openscad_image <(echo \"import(\\\"${FILE_PATH}\\\");\") && exit 6\n    #         ;;\n    # esac\n}\n\nhandle_mime() {\n    local mimetype=\"${1}\"\n    case \"${mimetype}\" in\n        ## RTF and DOC\n        text/rtf|*msword)\n            ## Preview as text conversion\n            ## note: catdoc does not always work for .doc files\n            ## catdoc: http://www.wagner.pp.ru/~vitus/software/catdoc/\n            catdoc -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## DOCX, ePub, FB2 (using markdown)\n        ## You might want to remove \"|epub\" and/or \"|fb2\" below if you have\n        ## uncommented other methods to preview those formats\n        *wordprocessingml.document|*/epub+zip|*/x-fictionbook+xml)\n            ## Preview as markdown conversion\n            pandoc -s -t markdown -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## XLS\n        *ms-excel)\n            ## Preview as csv conversion\n            ## xls2csv comes with catdoc:\n            ##   http://www.wagner.pp.ru/~vitus/software/catdoc/\n            xls2csv -- \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## Text\n        text/* | */xml)\n            ## Syntax highlight\n            if [[ \"$( stat --printf='%s' -- \"${FILE_PATH}\" )\" -gt \"${HIGHLIGHT_SIZE_MAX}\" ]]; then\n                exit 2\n            fi\n            if [[ \"$( tput colors )\" -ge 256 ]]; then\n                local pygmentize_format='terminal'\n                local highlight_format='ansi'\n            else\n                local pygmentize_format='terminal'\n                local highlight_format='ansi'\n            fi\n            env HIGHLIGHT_OPTIONS=\"${HIGHLIGHT_OPTIONS}\" highlight \\\n                --out-format=\"${highlight_format}\" \\\n                --force -- \"${FILE_PATH}\" && exit 5\n            env COLORTERM=8bit bat --color=always --style=\"plain\" \\\n                -- \"${FILE_PATH}\" && exit 5\n            pygmentize -f \"${pygmentize_format}\" -O \"style=${PYGMENTIZE_STYLE}\"\\\n                -- \"${FILE_PATH}\" && exit 5\n            exit 2;;\n\n        ## DjVu\n        image/vnd.djvu)\n            ## Preview as text conversion (requires djvulibre)\n            djvutxt \"${FILE_PATH}\" | fmt -w \"${PV_WIDTH}\" && exit 5\n            exiftool \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## Image\n        image/*)\n            ## Preview as text conversion\n            # img2txt --gamma=0.6 --width=\"${PV_WIDTH}\" -- \"${FILE_PATH}\" && exit 4\n            exiftool \"${FILE_PATH}\" && exit 5\n            exit 1;;\n\n        ## Video and audio\n        video/* | audio/*)\n            mediainfo \"${FILE_PATH}\" && exit 5\n            exiftool \"${FILE_PATH}\" && exit 5\n            exit 1;;\n    esac\n}\n\nhandle_fallback() {\n    echo '----- File Type Classification -----' && file --dereference --brief -- \"${FILE_PATH}\" && exit 5\n    exit 1\n}\n\n\nMIMETYPE=\"$( file --dereference --brief --mime-type -- \"${FILE_PATH}\" )\"\nif [[ \"${PV_IMAGE_ENABLED}\" == 'True' ]]; then\n    handle_image \"${MIMETYPE}\"\nfi\nhandle_extension\nhandle_mime \"${MIMETYPE}\"\nhandle_fallback\n\nexit 1\n"
  },
  {
    "path": "rofi/colors.rasi",
    "content": "/* colors */\n\n* {\n  base:   #1e1e2e;\n  mantle: #181825;\n  crust:  #11111b;\n\n  text:     #cdd6f4;\n  subtext0: #a6adc8;\n  subtext1: #bac2de;\n\n  surface0: #313244;\n  surface1: #45475a;\n  surface2: #585b70;\n\n  overlay0: #6c7086;\n  overlay1: #7f849c;\n  overlay2: #9399b2;\n\n  blue:      #89b4fa;\n  lavender:  #b4befe;\n  sapphire:  #74c7ec;\n  sky:       #89dceb;\n  teal:      #94e2d5;\n  green:     #a6e3a1;\n  yellow:    #f9e2af;\n  peach:     #fab387;\n  maroon:    #eba0ac;\n  red:       #f38ba8;\n  mauve:     #cba6f7;\n  pink:      #f5c2e7;\n  flamingo:  #f2cdcd;\n  rosewater: #f5e0dc;\n}\n"
  },
  {
    "path": "rofi/config.rasi",
    "content": "configuration {\n/*\tmodes: \"drun,run,ssh\";*/\n\tfont: \"SFPro 12\";\n/*\tlocation: 0;*/\n/*\tyoffset: 0;*/\n/*\txoffset: 0;*/\n/*\tfixed-num-lines: true;*/\n/*\tshow-icons: false;*/\n/*\tterminal: \"rofi-sensible-terminal\";*/\n/*\tssh-client: \"ssh\";*/\n/*\tssh-command: \"{terminal} -e {ssh-client} {host} [-p {port}]\";*/\n/*\trun-command: \"{cmd}\";*/\n/*\trun-list-command: \"\";*/\n/*\trun-shell-command: \"{terminal} -e {cmd}\";*/\n/*\twindow-command: \"wmctrl -i -R {window}\";*/\n/*\twindow-match-fields: \"all\";*/\n/*\ticon-theme: ;*/\n/*\tdrun-match-fields: \"name,generic,exec,categories,keywords\";*/\n/*\tdrun-categories: ;*/\n/*\tdrun-show-actions: false;*/\n/*\tdrun-display-format: \"{name} [<span weight='light' size='small'><i>({generic})</i></span>]\";*/\n/*\tdrun-url-launcher: \"xdg-open\";*/\n/*\tdisable-history: false;*/\n/*\tignored-prefixes: \"\";*/\n/*\tsort: false;*/\n/*\tsorting-method: \"normal\";*/\n/*\tcase-sensitive: false;*/\n/*\tcycle: true;*/\n/*\tsidebar-mode: false;*/\n/*\thover-select: false;*/\n/*\teh: 1;*/\n/*\tauto-select: false;*/\n/*\tparse-hosts: false;*/\n/*\tparse-known-hosts: true;*/\n/*\tcombi-modes: \"window,run\";*/\n/*\tmatching: \"normal\";*/\n/*\ttokenize: true;*/\n/*\tm: \"-5\";*/\n/*\tfilter: ;*/\n/*\tdpi: -1;*/\n/*\tthreads: 0;*/\n/*\tscroll-method: 0;*/\n/*\twindow-format: \"{w}    {c}   {t}\";*/\n/*\tclick-to-exit: true;*/\n/*\tmax-history-size: 25;*/\n/*\tcombi-hide-mode-prefix: false;*/\n/*\tcombi-display-format: \"{mode} {text}\";*/\n/*\tmatching-negate-char: '-' /* unsupported */;*/\n/*\tcache-dir: ;*/\n/*\twindow-thumbnail: false;*/\n/*\tdrun-use-desktop-cache: false;*/\n/*\tdrun-reload-desktop-cache: false;*/\n/*\tnormalize-match: false;*/\n/*\tsteal-focus: false;*/\n/*\tapplication-fallback-icon: ;*/\n/*\trefilter-timeout-limit: 8192;*/\n/*\txserver-i300-workaround: false;*/\n/*\tpid: \"/run/user/1001/rofi.pid\";*/\n/*\tdisplay-run: ;*/\n/*\tdisplay-ssh: ;*/\n/*\tdisplay-drun: ;*/\n/*\tdisplay-combi: ;*/\n/*\tdisplay-keys: ;*/\n/*\tdisplay-filebrowser: ;*/\n/*\tdisplay-calc: ;*/\n/*\tkb-primary-paste: \"Control+V,Shift+Insert\";*/\n/*\tkb-secondary-paste: \"Control+v,Insert\";*/\n/*\tkb-clear-line: \"Control+w\";*/\n/*\tkb-move-front: \"Control+a\";*/\n/*\tkb-move-end: \"Control+e\";*/\n/*\tkb-move-word-back: \"Alt+b,Control+Left\";*/\n/*\tkb-move-word-forward: \"Alt+f,Control+Right\";*/\n/*\tkb-move-char-back: \"Left,Control+b\";*/\n/*\tkb-move-char-forward: \"Right,Control+f\";*/\n/*\tkb-remove-word-back: \"Control+Alt+h,Control+BackSpace\";*/\n/*\tkb-remove-word-forward: \"Control+Alt+d\";*/\n/*\tkb-remove-char-forward: \"Delete,Control+d\";*/\n/*\tkb-remove-char-back: \"BackSpace,Shift+BackSpace,Control+h\";*/\n/*\tkb-remove-to-eol: \"Control+k\";*/\n/*\tkb-remove-to-sol: \"Control+u\";*/\n/*\tkb-accept-entry: \"Control+j,Control+m,Return,KP_Enter\";*/\n/*\tkb-accept-custom: \"Control+Return\";*/\n/*\tkb-accept-custom-alt: \"Control+Shift+Return\";*/\n/*\tkb-accept-alt: \"Shift+Return\";*/\n/*\tkb-delete-entry: \"Shift+Delete\";*/\n/*\tkb-mode-next: \"Shift+Right,Control+Tab\";*/\n/*\tkb-mode-previous: \"Shift+Left,Control+ISO_Left_Tab\";*/\n/*\tkb-mode-complete: \"Control+l\";*/\n/*\tkb-row-left: \"Control+Page_Up\";*/\n/*\tkb-row-right: \"Control+Page_Down\";*/\n/*\tkb-row-up: \"Up,Control+p\";*/\n/*\tkb-row-down: \"Down,Control+n\";*/\n/*\tkb-row-tab: \"\";*/\n/*\tkb-element-next: \"Tab\";*/\n/*\tkb-element-prev: \"ISO_Left_Tab\";*/\n/*\tkb-page-prev: \"Page_Up\";*/\n/*\tkb-page-next: \"Page_Down\";*/\n/*\tkb-row-first: \"Home,KP_Home\";*/\n/*\tkb-row-last: \"End,KP_End\";*/\n/*\tkb-row-select: \"Control+space\";*/\n/*\tkb-screenshot: \"Alt+S\";*/\n/*\tkb-ellipsize: \"Alt+period\";*/\n/*\tkb-toggle-case-sensitivity: \"grave,dead_grave\";*/\n/*\tkb-toggle-sort: \"Alt+grave\";*/\n/*\tkb-cancel: \"Escape,Control+g,Control+bracketleft\";*/\n/*\tkb-custom-1: \"Alt+1\";*/\n/*\tkb-custom-2: \"Alt+2\";*/\n/*\tkb-custom-3: \"Alt+3\";*/\n/*\tkb-custom-4: \"Alt+4\";*/\n/*\tkb-custom-5: \"Alt+5\";*/\n/*\tkb-custom-6: \"Alt+6\";*/\n/*\tkb-custom-7: \"Alt+7\";*/\n/*\tkb-custom-8: \"Alt+8\";*/\n/*\tkb-custom-9: \"Alt+9\";*/\n/*\tkb-custom-10: \"Alt+0\";*/\n/*\tkb-custom-11: \"Alt+exclam\";*/\n/*\tkb-custom-12: \"Alt+at\";*/\n/*\tkb-custom-13: \"Alt+numbersign\";*/\n/*\tkb-custom-14: \"Alt+dollar\";*/\n/*\tkb-custom-15: \"Alt+percent\";*/\n/*\tkb-custom-16: \"Alt+dead_circumflex\";*/\n/*\tkb-custom-17: \"Alt+ampersand\";*/\n/*\tkb-custom-18: \"Alt+asterisk\";*/\n/*\tkb-custom-19: \"Alt+parenleft\";*/\n/*\tkb-select-1: \"Super+1\";*/\n/*\tkb-select-2: \"Super+2\";*/\n/*\tkb-select-3: \"Super+3\";*/\n/*\tkb-select-4: \"Super+4\";*/\n/*\tkb-select-5: \"Super+5\";*/\n/*\tkb-select-6: \"Super+6\";*/\n/*\tkb-select-7: \"Super+7\";*/\n/*\tkb-select-8: \"Super+8\";*/\n/*\tkb-select-9: \"Super+9\";*/\n/*\tkb-select-10: \"Super+0\";*/\n/*\tml-row-left: \"ScrollLeft\";*/\n/*\tml-row-right: \"ScrollRight\";*/\n/*\tml-row-up: \"ScrollUp\";*/\n/*\tml-row-down: \"ScrollDown\";*/\n/*\tme-select-entry: \"MousePrimary\";*/\n/*\tme-accept-entry: \"MouseDPrimary\";*/\n/*\tme-accept-custom: \"Control+MouseDPrimary\";*/\n  timeout {\n      action: \"kb-cancel\";\n      delay:  0;\n  }\n  filebrowser {\n      directories-first: true;\n      sorting-method:    \"name\";\n  }\n}\n"
  },
  {
    "path": "rofi/style.rasi",
    "content": "configuration {\n\tfont:\t\t\t\t\t\t\t\"SFPro 15\";\n    show-icons:                     true;\n\ticon-theme: \t\t\t\t\t\"Papirus\";\n    display-drun: \t\t\t\t\t\"\";\n    drun-display-format:            \"{name}\";\n    disable-history:                false;\n    fullscreen:                     false;\n\thide-scrollbar: \t\t\t\ttrue;\n\tsidebar-mode: \t\t\t\t\tfalse;\n}\n\n@import \"colors.rasi\"\n\nwindow {\n    transparency:                   \"real\";\n    background-color:               @crust;\n    text-color:                     @text;\n\tborder:\t\t\t\t\t\t\t3px;\n\tborder-color:\t\t\t\t\t@sky;\n    border-radius:                  15px;\n\twidth:\t\t\t\t\t\t\t20%;\n    location:                       center;\n    margin:                         5px;\n    x-offset:                       0;\n    y-offset:                       0;\n}\n\nprompt {\n    enabled: \t\t\t\t\t\ttrue;\n\tpadding: \t\t\t\t\t\t5px 5px 5px 5px;\n\tbackground-color: \t\t\t\t@green;\n\ttext-color: \t\t\t\t\t@red;\n}\n\ntextbox-prompt-colon {\n\tpadding: \t\t\t\t\t\t8px 7px 4px 7px;\n\tbackground-color: \t\t\t\t@mantle;\n\ttext-color: \t\t\t\t\t@text;\n\texpand: false;\n\tstr: \"\";\n\tfont:\t\t\t\t\t\t\t\"fontawesome 15\";\n}\n\nentry {\n    background-color:               @mantle;\n    text-color:                     @text;\n    placeholder-color:              @subtext1;\n    expand:                         true;\n    horizontal-align:               0;\n    placeholder:                    \"Calculate\";\n\tpadding: \t\t\t\t\t\t6px;\n    blink:                          true;\n}\n\ninputbar {\n\tchildren: \t\t\t\t\t\t[ textbox-prompt-colon, entry ];\n    background-color:               @mantle;\n    text-color:                     @subtext1;\n    expand:                         false;\n\tborder:\t\t\t\t\t\t\t1px;\n    border-radius:                  8px;\n\tborder-color:\t\t\t\t\t@subtext1;\n    margin:                         5px;\n    padding:                        5px;\n}\n\nlistview {\n    background-color:               @crust;\n    padding:                        5px;\n    columns:                        1;\n    lines:                          10;\n    spacing:                        6px;\n    cycle:                          true;\n    dynamic:                        true;\n    layout:                         vertical;\n}\n\nmainbox {\n    background-color:               @crust;\n\tborder:\t\t\t\t\t\t\t0px;\n    border-radius:                  0px;\n\tborder-color:\t\t\t\t\t@teal;\n    children:                       [ inputbar, listview ];\n    spacing:                       \t6px;\n    padding:                        6px;\n}\n\nelement {\n    background-color:               @crust;\n    text-color:                     @subtext1;\n    orientation:                    horizontal;\n    border-radius:                  0px;\n\tpadding: \t\t\t\t\t\t8px 5px 8px -20px;\n}\n\nelement-icon {\n    background-color:               transparent;\n    text-color:               \t\tinherit;\n    size:                           24px;\n    border:                         0px;\n}\n\nelement-text {\n    background-color:               transparent;\n    text-color:               \t\tinherit;\n    expand:                         true;\n    horizontal-align:               0;\n    vertical-align:                 0.5;\n    margin:                         0px 2.5px 0px 2.5px;\n}\n\nelement selected {\n    background-color:               @teal;\n    text-color:                     @crust;\n\tborder:\t\t\t\t\t\t\t0px 0px 0px 0px;\n    border-radius:                  8px;\n    border-color:                  \t@teal;\n}\n"
  },
  {
    "path": "waybar/colors/mocha.css",
    "content": "/*\n*\n* Catppuccin Mocha palette\n* Maintainer: rubyowo\n*\n*/\n\n@define-color base   #1e1e2e;\n@define-color mantle #181825;\n@define-color crust  #11111b;\n\n@define-color text     #cdd6f4;\n@define-color subtext0 #a6adc8;\n@define-color subtext1 #bac2de;\n\n@define-color surface0 #313244;\n@define-color surface1 #45475a;\n@define-color surface2 #585b70;\n\n@define-color overlay0 #6c7086;\n@define-color overlay1 #7f849c;\n@define-color overlay2 #9399b2;\n\n@define-color blue      #89b4fa;\n@define-color lavender  #b4befe;\n@define-color sapphire  #74c7ec;\n@define-color sky       #89dceb;\n@define-color teal      #94e2d5;\n@define-color green     #a6e3a1;\n@define-color yellow    #f9e2af;\n@define-color peach     #fab387;\n@define-color maroon    #eba0ac;\n@define-color red       #f38ba8;\n@define-color mauve     #cba6f7;\n@define-color pink      #f5c2e7;\n@define-color flamingo  #f2cdcd;\n@define-color rosewater #f5e0dc;\n"
  },
  {
    "path": "waybar/desktop-bar/config",
    "content": "{\n  \"height\": 60, \n  \"layer\": \"top\",\n  \"position\": \"top\",\n  \"output\": \"DP-2\",\n  \"spacing\": 7,\n  \"modules-left\": [\"custom/launcher\", \"cpu\", \"temperature\", \"memory\", \"custom/dunst\"],\n  \"modules-center\": [\"wlr/workspaces\"],\n  \"modules-right\": [\"pulseaudio\", \"network\", \"battery\", \"clock\", \"custom/powermenu\"],\n\n  \"wlr/workspaces\": {\n      \"disable-scroll\": true,\n      \"all-outputs\": true,\n      \"on-click\": \"activate\",\n      \"on-scroll-up\": \"hyprctl dispatch workspace e+1\",\n      \"on-scroll-down\": \"hyprctl dispatch workspace e-1\",\n      \"persistent_workspaces\": {\n          \"1\": [],\n          \"2\": [],\n          \"3\": [],\n          \"4\": [],\n          \"5\": [],\n          \"6\": [],\n          \"7\": [],\n          \"8\": [],\n          \"9\": [],\n          \"10\": []\n      }\n  },\n  \n  \"custom/launcher\": {\n      \"interval\": \"once\",\n      \"format\": \"\",\n      \"on-click\": \"wofi --show drun --columns 2 -I -s ~/.config/wofi/style.css\",\n      \"tooltip\": false\n    },\n\n  \"cpu\": {\n    \"interval\": 10,\n    \"format\": \"  {usage}%\",\n    \"max-length\": 10\n  },\n\n  \"temperature\": {\n      \"hwmon-path\": \"/sys/class/hwmon/hwmon4/temp1_input\",\n      \"format\": \" {temperatureC}°C\",\n    \"on-click\": \"psensor\"\n  },\n\n  \"memory\": {\n    \"interval\": 30,\n    \"format\": \"  {}%\",\n    \"format-alt\":\" {used:0.1f}G\",\n    \"max-length\": 10\n},\n\n  \"custom/dunst\": {\n      \"exec\": \"~/.config/waybar/scripts/dunst.sh\",\n      \"on-click\": \"dunstctl set-paused toggle\",\n      \"restart-interval\": 1,\n      \"tooltip\": false\n  },\n\n  \"pulseaudio\": {\n      \"format\": \"{icon}  {volume}%\",\n      \"format-bluetooth\": \"{icon} {volume}% {format_source}\",\n      \"format-bluetooth-muted\": \" {icon} {format_source}\",\n      \"format-muted\": \"婢\",\n      \"format-icons\": {\n          \"headphone\": \"\",\n          \"hands-free\": \"\",\n          \"headset\": \"\",\n          \"phone\": \"\",\n          \"portable\": \"\",\n          \"car\": \"\",\n          \"default\": [\"\", \"\", \"\"]\n      },\n      \"on-click-right\": \"pavucontrol\",\n    \"on-click\": \"pactl set-sink-mute @DEFAULT_SINK@ toggle\"\n  },\n\n  \"network\": {\n      \"format-wifi\": \"直  {signalStrength}%\",\n      \"format-ethernet\": \" wired\",\n      \"format-disconnected\": \"睊 \",\n      \"on-click\": \"sh ~/.config/wofi/wifimenu.sh\"\n  },\n\n  \"battery\": {\n    \"bat\": \"BAT0\",\n    \"adapter\": \"ADP0\",\n    \"interval\": 60,\n    \"states\": {\n        \"warning\": 30,\n        \"critical\": 15\n    },\n    \"max-length\": 20,\n    \"format\": \"{icon}  {capacity}%\",\n    \"format-warning\": \"{icon}  {capacity}%\",\n    \"format-critical\": \"{icon}  {capacity}%\",\n    \"format-charging\": \"  {capacity}%\",\n    \"format-plugged\": \"  {capacity}%\",\n    \"format-alt\": \"{icon}  {time}\",\n    \"format-full\": \"  {capacity}%\",\n    \"format-icons\": [\" \", \" \", \" \", \" \", \" \"]\n  },\n\n  \"clock\": {\n    \"format\": \"  {:%H:%M %B %d, %Y}\",\n    \"format-alt\": \"{:%A, %B %d, %Y (%R)}  \",\n    \"tooltip-format\": \"<tt><small>{calendar}</small></tt>\",\n    \"calendar\": {\n                \"mode\"          : \"year\",\n                \"mode-mon-col\"  : 3,\n                \"weeks-pos\"     : \"right\",\n                \"on-scroll\"     : 1,\n                \"on-click-right\": \"mode\",\n                \"format\": {\n                          \"months\":     \"<span color='#ffead3'><b>{}</b></span>\",\n                          \"days\":       \"<span color='#ecc6d9'><b>{}</b></span>\",\n                          \"weeks\":      \"<span color='#99ffdd'><b>W{}</b></span>\",\n                          \"weekdays\":   \"<span color='#ffcc66'><b>{}</b></span>\",\n                          \"today\":      \"<span color='#ff6699'><b><u>{}</u></b></span>\"\n                          }\n                }\n},\n\n  \"custom/powermenu\": {\n      \"format\": \"\",\n      \"on-click\": \"bash ~/.config/wofi/powermenu.sh\",\n      \"tooltip\": false\n  }\n}\n"
  },
  {
    "path": "waybar/desktop-bar/style.css",
    "content": "@import \"../colors/mocha.css\";\n\n/* margin: top right bottom left */\n/* Spacing outside the element */\n\n/* padding: top right bottom left */\n/* Spacing inside the element */\n\n* {\n  font-family: SFPro;\n  font-size: 17px;\n}\n\nwindow#waybar {\n  background-color: @crust;\n  color: @text;\n  transition-property: background-color;\n  transition-duration: 0.5s;\n  border-radius: 0px;\n  transition-duration: .5s;\n  margin: 16px 16px;\n}\n\nwindow#waybar.hidden {\n  opacity: 0.2;\n}\n\n#workspaces button {\n  color: @text;\n  background: @background3;\n  border-radius: 8px;\n  padding: 0px 10px 0px 10px;\n  margin: 7px 5px 10px 5px;\n  border: 1px solid @border;\n}\n\n#workspaces button:hover {\n  background: @surface0;\n  color: @text;\n}\n\n#workspaces button.active {\n  color: @crust;\n  background: @overlay2;\n  border: none; \n}\n\n#custom-launcher,\n#clock,\n#battery,\n#cpu,\n#temperature,\n#backlight,\n#network,\n#pulseaudio,\n#memory,\n#custom-dunst,\n#custom-powermenu{\n  padding: 0px 20px;\n  margin: 7px 0px 10px 0px;\n\tborder-radius: 8px;\n  color: @crust;\n}\n\n#window,\n\n#custom-launcher {\n  padding: 0px 25px 0px 20px;\n  margin: 7px 0px 10px 20px;\n  background-color: @mauve;\n}\n\n#cpu {\n  background-color: @lavender;\n}\n\n#temperature{\n  background-color: @blue;\n}\n\n#memory {\n  background-color: @sapphire;\n}\n\n#custom-dunst {\n  padding: 0px 20px 0px 13px;\n  background-color: @sky;\n}\n\n#pulseaudio {\n  padding: 0px 20px 0px 17px;\n  background-color: @teal;\n}\n\n#network {\n  padding: 0px 15px 0px 20px;\n  background-color: @green;\n}\n\n#battery {\n  background-color: @yellow;\n}\n\n#clock {\n  background-color: @peach;\n}\n\n#custom-powermenu {\n  padding: 0px 25px 0px 20px;\n  margin: 7px 20px 10px 0px;\n  background-color: @maroon;\n}\n\n@keyframes blink {\n  to {\n    background-color: rgba(30, 34, 42, 0.5);\n    color: #abb2bf;\n  }\n}\n\n#battery.critical:not(.charging) {\n  color: #f53c3c;\n  animation-name: blink;\n  animation-duration: 0.5s;\n  animation-timing-function: linear;\n  animation-iteration-count: infinite;\n  animation-direction: alternate;\n}\n\nlabel:focus {\n  background-color: #000000;\n}"
  },
  {
    "path": "waybar/laptop-bar/config",
    "content": "{\n    \"height\": 50, \n    \"layer\": \"top\",\n    \"position\": \"top\",\n    \"output\": \"eDP-1\",\n    \"spacing\": 7,\n    \"modules-left\": [\"custom/launcher\", \"cpu\", \"temperature\", \"backlight\", \"custom/dunst\"],\n    \"modules-center\": [\"wlr/workspaces\"],\n    \"modules-right\": [\"pulseaudio\", \"network\", \"battery\", \"clock\", \"custom/powermenu\"],\n\n    \"wlr/workspaces\": {\n        \"disable-scroll\": true,\n        \"all-outputs\": true,\n        \"on-click\": \"activate\",\n        \"on-scroll-up\": \"hyprctl dispatch workspace e+1\",\n        \"on-scroll-down\": \"hyprctl dispatch workspace e-1\",\n        \"persistent_workspaces\": {\n            \"1\": [],\n            \"2\": [],\n            \"3\": [],\n            \"4\": [],\n            \"5\": [],\n            \"6\": [],\n            \"7\": [],\n            \"8\": [],\n            \"9\": [],\n            \"10\": []\n        }\n    },\n    \n    \"custom/launcher\": {\n        \"interval\": \"once\",\n        \"format\": \"\",\n        \"on-click\": \"wofi --show drun --columns 2 -I -s ~/.config/wofi/style.css\",\n        \"tooltip\": false\n      },\n\n    \"cpu\": {\n      \"interval\": 10,\n      \"format\": \"  {usage}%\",\n      \"max-length\": 10\n    },\n\n    \"temperature\": {\n        \"hwmon-path-abs\": \"/sys/devices/platform/coretemp.0/hwmon\",\n\t\"input-filename\": \"temp1_input\",\n\t\"format\": \" {temperatureC}°C\",\n\t\"on-click\": \"psensor\"\n    },\n\n    \"backlight\": {\n        \"device\": \"nvidia_0\",\n\t\"max-length\": \"4\",\n        \"format\": \"{icon}  {percent}%\",\n        \"format-icons\": [\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"],\n        \"on-click\": \"\",\n        \"on-scroll-up\": \"brightnessctl set 10%-\",\n        \"on-scroll-down\": \"brightnessctl set +10%\"\n    },\n\n    \"custom/dunst\": {\n        \"exec\": \"~/.config/waybar/scripts/dunst.sh\",\n        \"on-click\": \"dunstctl set-paused toggle\",\n        \"restart-interval\": 1,\n        \"tooltip\": false\n    },\n\n    \"pulseaudio\": {\n        \"format\": \"{icon}  {volume}%\",\n        \"format-bluetooth\": \"{icon} {volume}% {format_source}\",\n        \"format-bluetooth-muted\": \" {icon} {format_source}\",\n        \"format-muted\": \"婢\",\n        \"format-icons\": {\n            \"headphone\": \"\",\n            \"hands-free\": \"\",\n            \"headset\": \"\",\n            \"phone\": \"\",\n            \"portable\": \"\",\n            \"car\": \"\",\n            \"default\": [\"\", \"\", \"\"]\n        },\n        \"on-click-right\": \"pavucontrol\",\n\t    \"on-click\": \"pactl set-sink-mute @DEFAULT_SINK@ toggle\"\n    },\n\n    \"network\": {\n        \"format-wifi\": \"直  {signalStrength}%\",\n        \"format-ethernet\": \" wired\",\n        \"format-disconnected\": \"睊 \",\n        \"on-click\": \"sh ~/.config/wofi/wifimenu.sh\"\n    },\n\n    \"battery\": {\n      \"bat\": \"BAT0\",\n      \"adapter\": \"ADP0\",\n      \"interval\": 60,\n      \"states\": {\n          \"warning\": 30,\n          \"critical\": 15\n      },\n      \"max-length\": 20,\n      \"format\": \"{icon}  {capacity}%\",\n      \"format-warning\": \"{icon}  {capacity}%\",\n      \"format-critical\": \"{icon}  {capacity}%\",\n      \"format-charging\": \"  {capacity}%\",\n      \"format-plugged\": \"  {capacity}%\",\n      \"format-alt\": \"{icon}  {time}\",\n      \"format-full\": \"  {capacity}%\",\n      \"format-icons\": [\" \", \" \", \" \", \" \", \" \"]\n    },\n\n    \"clock\": {\n        \"format-alt\": \"<span> </span> {:%a %b %d}\",\n        \"format\": \"<span> </span> {:%I:%M %p}\"\n    },\n\n    \"custom/powermenu\": {\n        \"format\": \"\",\n        \"on-click\": \"bash ~/.config/wofi/powermenu.sh\",\n        \"tooltip\": false\n    }\n}\n"
  },
  {
    "path": "waybar/laptop-bar/style.css",
    "content": "@import \"../colors/mocha.css\";\n\n/* margin: top right bottom left */\n/* Spacing outside the element */\n\n/* padding: top right bottom left */\n/* Spacing inside the element */\n\n* {\n  font-family: SFPro;\n  font-size: 17px;\n}\n\nwindow#waybar {\n  background-color: @crust;\n  color: @text;\n  transition-property: background-color;\n  transition-duration: 0.5s;\n  border-radius: 0px;\n  transition-duration: .5s;\n  margin: 16px 16px;\n}\n\nwindow#waybar.hidden {\n  opacity: 0.2;\n}\n\n#workspaces button {\n  color: @text;\n  background: @background3;\n  border-radius: 8px;\n  padding: 0px 10px 0px 10px;\n  margin: 7px 5px 10px 5px;\n  border: 1px solid @subtext1;\n}\n\n#workspaces button:hover {\n  background: @surface0;\n  color: @text;\n}\n\n#workspaces button.active {\n  color: @crust;\n  background: @overlay2;\n  border: none; \n}\n\n#custom-launcher,\n#clock,\n#battery,\n#cpu,\n#temperature,\n#backlight,\n#network,\n#pulseaudio,\n#custom-dunst,\n#custom-powermenu{\n  padding: 0px 20px;\n  margin: 7px 0px 10px 0px;\n\tborder-radius: 8px;\n  color: @crust;\n}\n\n#window,\n\n#custom-launcher {\n  padding: 0px 25px 0px 20px;\n  margin: 7px 0px 10px 20px;\n  background-color: @mauve;\n}\n\n#cpu {\n  background-color: @lavender;\n}\n\n#temperature{\n  background-color: @blue;\n}\n\n#backlight {\n  background-color: @sapphire;\n}\n\n#custom-dunst {\n  padding: 0px 20px 0px 13px;\n  background-color: @sky;\n}\n\n#pulseaudio {\n  padding: 0px 20px 0px 17px;\n  background-color: @teal;\n}\n\n#network {\n  padding: 0px 15px 0px 20px;\n  background-color: @green;\n}\n\n#battery {\n  background-color: @yellow;\n}\n\n#clock {\n  background-color: @peach;\n}\n\n#custom-powermenu {\n  padding: 0px 25px 0px 20px;\n  margin: 7px 20px 10px 0px;\n  background-color: @maroon;\n}\n\n@keyframes blink {\n  to {\n    background-color: rgba(30, 34, 42, 0.5);\n    color: #abb2bf;\n  }\n}\n\n#battery.critical:not(.charging) {\n  color: #f53c3c;\n  animation-name: blink;\n  animation-duration: 0.5s;\n  animation-timing-function: linear;\n  animation-iteration-count: infinite;\n  animation-direction: alternate;\n}\n\nlabel:focus {\n  background-color: #000000;\n}\n\n\n"
  },
  {
    "path": "waybar/scripts/dunst.sh",
    "content": "#!/bin/bash\n\nCOUNT=$(dunstctl count waiting)\nENABLED=\nDISABLED=\nif [ $COUNT != 0 ]; then DISABLED=\"$COUNT  \"; fi\nif dunstctl is-paused | grep -q \"false\" ; then echo $ENABLED; else echo $DISABLED; fi\n"
  },
  {
    "path": "waybar/scripts/mediaplayer.py",
    "content": "#!/usr/bin/env python3\nimport argparse\nimport logging\nimport sys\nimport signal\nimport gi\nimport json\ngi.require_version('Playerctl', '2.0')\nfrom gi.repository import Playerctl, GLib\n\nlogger = logging.getLogger(__name__)\n\n\ndef write_output(text, player):\n    logger.info('Writing output')\n\n    output = {'text': text,\n              'class': 'custom-' + player.props.player_name,\n              'alt': player.props.player_name}\n\n    sys.stdout.write(json.dumps(output) + '\\n')\n    sys.stdout.flush()\n\n\ndef on_play(player, status, manager):\n    logger.info('Received new playback status')\n    on_metadata(player, player.props.metadata, manager)\n\n\ndef on_metadata(player, metadata, manager):\n    logger.info('Received new metadata')\n    track_info = ''\n\n    if player.props.player_name == 'spotify' and \\\n            'mpris:trackid' in metadata.keys() and \\\n            ':ad:' in player.props.metadata['mpris:trackid']:\n        track_info = 'AD PLAYING'\n    elif player.get_artist() != '' and player.get_title() != '':\n        track_info = '{artist} - {title}'.format(artist=player.get_artist(),\n                                                 title=player.get_title())\n    else:\n        track_info = player.get_title()\n\n    if player.props.status != 'Playing' and track_info:\n        track_info = ' ' + track_info\n    write_output(track_info, player)\n\n\ndef on_player_appeared(manager, player, selected_player=None):\n    if player is not None and (selected_player is None or player.name == selected_player):\n        init_player(manager, player)\n    else:\n        logger.debug(\"New player appeared, but it's not the selected player, skipping\")\n\n\ndef on_player_vanished(manager, player):\n    logger.info('Player has vanished')\n    sys.stdout.write('\\n')\n    sys.stdout.flush()\n\n\ndef init_player(manager, name):\n    logger.debug('Initialize player: {player}'.format(player=name.name))\n    player = Playerctl.Player.new_from_name(name)\n    player.connect('playback-status', on_play, manager)\n    player.connect('metadata', on_metadata, manager)\n    manager.manage_player(player)\n    on_metadata(player, player.props.metadata, manager)\n\n\ndef signal_handler(sig, frame):\n    logger.debug('Received signal to stop, exiting')\n    sys.stdout.write('\\n')\n    sys.stdout.flush()\n    # loop.quit()\n    sys.exit(0)\n\n\ndef parse_arguments():\n    parser = argparse.ArgumentParser()\n\n    # Increase verbosity with every occurrence of -v\n    parser.add_argument('-v', '--verbose', action='count', default=0)\n\n    # Define for which player we're listening\n    parser.add_argument('--player')\n\n    return parser.parse_args()\n\n\ndef main():\n    arguments = parse_arguments()\n\n    # Initialize logging\n    logging.basicConfig(stream=sys.stderr, level=logging.DEBUG,\n                        format='%(name)s %(levelname)s %(message)s')\n\n    # Logging is set by default to WARN and higher.\n    # With every occurrence of -v it's lowered by one\n    logger.setLevel(max((3 - arguments.verbose) * 10, 0))\n\n    # Log the sent command line arguments\n    logger.debug('Arguments received {}'.format(vars(arguments)))\n\n    manager = Playerctl.PlayerManager()\n    loop = GLib.MainLoop()\n\n    manager.connect('name-appeared', lambda *args: on_player_appeared(*args, arguments.player))\n    manager.connect('player-vanished', on_player_vanished)\n\n    signal.signal(signal.SIGINT, signal_handler)\n    signal.signal(signal.SIGTERM, signal_handler)\n    signal.signal(signal.SIGPIPE, signal.SIG_DFL)\n\n    for player in manager.props.player_names:\n        if arguments.player is not None and arguments.player != player.name:\n            logger.debug('{player} is not the filtered player, skipping it'\n                         .format(player=player.name)\n                         )\n            continue\n\n        init_player(manager, player)\n\n    loop.run()\n\n\nif __name__ == '__main__':\n    main()\n"
  },
  {
    "path": "waybar/scripts/power-menu/powermenu.sh",
    "content": "#!/usr/bin/env bash\n\n## Author : Aditya Shakya (adi1090x)\n## Github : @adi1090x\n#\n## Rofi   : Power Menu\n#\n## Available Styles\n#\n## style-1   style-2   style-3   style-4   style-5\n\n# Current Theme\ndir=\"~/.config/waybar/scripts/power-menu/\"\ntheme='style-1'\n\n# CMDs\nuptime=\"`uptime -p | sed -e 's/up //g'`\"\nhost=`hostname`\n\n# Options\nshutdown=' Shutdown'\nreboot=' Reboot'\nlock=' Lock'\nsuspend=' Suspend'\nlogout=' Logout'\nyes=' Yes'\nno=' No'\n\n# Rofi CMD\nrofi_cmd() {\n\trofi -dmenu \\\n\t\t-p \"$host\" \\\n\t\t-mesg \"Uptime: $uptime\" \\\n\t\t-theme ${dir}/${theme}.rasi\n}\n\n# Confirmation CMD\nconfirm_cmd() {\n\trofi -theme-str 'window {location: center; anchor: center; fullscreen: false; width: 250px;}' \\\n\t\t-theme-str 'mainbox {children: [ \"message\", \"listview\" ];}' \\\n\t\t-theme-str 'listview {columns: 2; lines: 1;}' \\\n\t\t-theme-str 'element-text {horizontal-align: 0.5;}' \\\n\t\t-theme-str 'textbox {horizontal-align: 0.5;}' \\\n\t\t-dmenu \\\n\t\t-p 'Confirmation' \\\n\t\t-mesg 'Are you Sure?' \\\n\t\t-theme ${dir}/${theme}.rasi\n}\n\n# Ask for confirmation\nconfirm_exit() {\n\techo -e \"$yes\\n$no\" | confirm_cmd\n}\n\n# Pass variables to rofi dmenu\nrun_rofi() {\n\techo -e \"$lock\\n$suspend\\n$logout\\n$reboot\\n$shutdown\" | rofi_cmd\n}\n\n# Execute Command\nrun_cmd() {\n\tselected=\"$(confirm_exit)\"\n\tif [[ \"$selected\" == \"$yes\" ]]; then\n\t\tif [[ $1 == '--shutdown' ]]; then\n\t\t\tsystemctl poweroff\n\t\telif [[ $1 == '--reboot' ]]; then\n\t\t\tsystemctl reboot\n\t\telif [[ $1 == '--suspend' ]]; then\n\t\t\tmpc -q pause\n\t\t\tamixer set Master mute\n\t\t\tsystemctl suspend\n\t\telif [[ $1 == '--logout' ]]; then\n      hyprctl dispatch exit 1\n\t\tfi\n\telse\n\t\texit 0\n\tfi\n}\n\n# Actions\nchosen=\"$(run_rofi)\"\ncase ${chosen} in\n    $shutdown)\n\t\trun_cmd --shutdown\n        ;;\n    $reboot)\n\t\trun_cmd --reboot\n        ;;\n    $lock)\n\t\tif [[ -x '/usr/bin/betterlockscreen' ]]; then\n\t\t\tbetterlockscreen -l\n\t\telif [[ -x '/usr/bin/i3lock' ]]; then\n\t\t\ti3lock\n\t\tfi\n        ;;\n    $suspend)\n\t\trun_cmd --suspend\n        ;;\n    $logout)\n\t\trun_cmd --logout\n        ;;\nesac\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/adapta.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #222D32FF;\n    background-alt: #29353BFF;\n    foreground:     #B8C2C6FF;\n    selected:       #00BCD4FF;\n    active:         #21FF90FF;\n    urgent:         #FF4B60FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/arc.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #2F343FFF;\n    background-alt: #383C4AFF;\n    foreground:     #BAC5D0FF;\n    selected:       #5294E2FF;\n    active:         #98C379FF;\n    urgent:         #E06B74FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/black.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #000000FF;\n    background-alt: #101010FF;\n    foreground:     #FFFFFFFF;\n    selected:       #62AEEFFF;\n    active:         #98C379FF;\n    urgent:         #E06B74FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/catppuccin.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #1E1D2FFF;\n    background-alt: #282839FF;\n    foreground:     #D9E0EEFF;\n    selected:       #7AA2F7FF;\n    active:         #ABE9B3FF;\n    urgent:         #F28FADFF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/cyberpunk.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #000B1EFF;\n    background-alt: #0A1528FF;\n    foreground:     #0ABDC6FF;\n    selected:       #0ABDC6FF;\n    active:         #00FF00FF;\n    urgent:         #FF0000FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/dracula.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #1E1F29FF;\n    background-alt: #282A36FF;\n    foreground:     #FFFFFFFF;\n    selected:       #BD93F9FF;\n    active:         #50FA7BFF;\n    urgent:         #FF5555FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/everforest.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #323D43FF;\n    background-alt: #3C474DFF;\n    foreground:     #DAD1BEFF;\n    selected:       #7FBBB3FF;\n    active:         #A7C080FF;\n    urgent:         #E67E80FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/gruvbox.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #282828FF;\n    background-alt: #353535FF;\n    foreground:     #EBDBB2FF;\n    selected:       #83A598FF;\n    active:         #B8BB26FF;\n    urgent:         #FB4934FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/lovelace.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #1D1F28FF;\n    background-alt: #282A36FF;\n    foreground:     #FDFDFDFF;\n    selected:       #79E6F3FF;\n    active:         #5ADECDFF;\n    urgent:         #F37F97FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/navy.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #021B21FF;\n    background-alt: #0C252BFF;\n    foreground:     #F2F1B9FF;\n    selected:       #44B5B1FF;\n    active:         #7CBF9EFF;\n    urgent:         #C2454EFF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/nord.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #2E3440FF;\n    background-alt: #383E4AFF;\n    foreground:     #E5E9F0FF;\n    selected:       #81A1C1FF;\n    active:         #A3BE8CFF;\n    urgent:         #BF616AFF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/onedark.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #0F171C;\n    background-alt: #192329;\n    foreground:     #FFFFFFFF;\n    selected:       #61AFEFFF;\n    active:         #98C379FF;\n    urgent:         #E06C75FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/paper.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #F1F1F1FF;\n    background-alt: #E0E0E0FF;\n    foreground:     #252525FF;\n    selected:       #008EC4FF;\n    active:         #10A778FF;\n    urgent:         #C30771FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/solarized.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #002B36FF;\n    background-alt: #073642FF;\n    foreground:     #EEE8D5FF;\n    selected:       #268BD2FF;\n    active:         #859900FF;\n    urgent:         #DC322FFF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/tokyonight.rasi",
    "content": "/**\n *\n * Author : Levi Lacoss (fishyfishfish55)\n * Github : @fishyfishfish55\n *\n * Colors\n **/\n\n* {\n    background:     #15161EFF;\n    background-alt: #1A1B26FF;\n    foreground:     #C0CAF5FF;\n    selected:       #33467CFF;\n    active:         #414868FF;\n    urgent:         #F7768EFF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors/yousai.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n **/\n\n* {\n    background:     #F5E7DEFF;\n    background-alt: #EBDCD2FF;\n    foreground:     #34302DFF;\n    selected:       #D97742FF;\n    active:         #BF8F60FF;\n    urgent:         #B23636FF;\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/colors.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Colors\n *\n * Available Colors Schemes\n *\n * adapta    catppuccin    everforest    navy       paper\n * arc       cyberpunk     gruvbox       nord       solarized\n * black     dracula       lovelace      onedark    yousai\n *\n **/\n\n/* Import color-scheme from `colors` directory */\n\n@import \"./colors/onedark.rasi\"\n"
  },
  {
    "path": "waybar/scripts/power-menu/shared/fonts.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Fonts\n *\n **/\n\n* {\n    font: \"JetBrains Mono Nerd Font 10\";\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/style-1.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Rofi Theme File\n * Rofi Version: 1.7.3\n **/\n\n/*****----- Configuration -----*****/\nconfiguration {\n    show-icons:                 false;\n}\n\n/*****----- Global Properties -----*****/\n@import                          \"shared/colors.rasi\"\n@import                          \"shared/fonts.rasi\"\n\n/*****----- Main Window -----*****/\nwindow {\n    /* properties for window widget */\n    transparency:                \"real\";\n    location:                    center;\n    anchor:                      center;\n    fullscreen:                  false;\n    width:                       400px;\n    x-offset:                    0px;\n    y-offset:                    0px;\n\n    /* properties for all widgets */\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               12px;\n    border-color:                @selected;\n    cursor:                      \"default\";\n    background-color:            @background;\n}\n\n/*****----- Main Box -----*****/\nmainbox {\n    enabled:                     true;\n    spacing:                     10px;\n    margin:                      0px;\n    padding:                     20px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    children:                    [ \"inputbar\", \"message\", \"listview\" ];\n}\n\n/*****----- Inputbar -----*****/\ninputbar {\n    enabled:                     true;\n    spacing:                     10px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    children:                    [ \"textbox-prompt-colon\", \"prompt\"];\n}\n\ntextbox-prompt-colon {\n    enabled:                     true;\n    expand:                      false;\n    str:                         \"\";\n    padding:                     10px 14px;\n    border-radius:               10px;\n    background-color:            @urgent;\n    text-color:                  @background;\n}\nprompt {\n    enabled:                     true;\n    padding:                     10px;\n    border-radius:               10px;\n    background-color:            @active;\n    text-color:                  @background;\n}\n\n/*****----- Message -----*****/\nmessage {\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               10px;\n    border-color:                @selected;\n    background-color:            @background-alt;\n    text-color:                  @foreground;\n}\ntextbox {\n    background-color:            inherit;\n    text-color:                  inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n    placeholder-color:           @foreground;\n    blink:                       true;\n    markup:                      true;\n}\nerror-message {\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            @background;\n    text-color:                  @foreground;\n}\n\n/*****----- Listview -----*****/\nlistview {\n    enabled:                     true;\n    columns:                     1;\n    lines:                       5;\n    cycle:                       true;\n    dynamic:                     true;\n    scrollbar:                   false;\n    layout:                      vertical;\n    reverse:                     false;\n    fixed-height:                true;\n    fixed-columns:               true;\n    \n    spacing:                     5px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      \"default\";\n}\n\n/*****----- Elements -----*****/\nelement {\n    enabled:                     true;\n    spacing:                     0px;\n    margin:                      0px;\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               10px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      pointer;\n}\nelement-text {\n    background-color:            transparent;\n    text-color:                  inherit;\n    cursor:                      inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n}\nelement selected.normal {\n    background-color:            var(selected);\n    text-color:                  var(background);\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/style-2.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Rofi Theme File\n * Rofi Version: 1.7.3\n **/\n\n/*****----- Configuration -----*****/\nconfiguration {\n    show-icons:                 false;\n}\n\n/*****----- Global Properties -----*****/\n@import                          \"shared/colors.rasi\"\n@import                          \"shared/fonts.rasi\"\n\n/*****----- Main Window -----*****/\nwindow {\n    /* properties for window widget */\n    transparency:                \"real\";\n    location:                    center;\n    anchor:                      center;\n    fullscreen:                  false;\n    width:                       500px;\n    x-offset:                    0px;\n    y-offset:                    0px;\n\n    /* properties for all widgets */\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      2px solid;\n    border-radius:               20px;\n    border-color:                @selected;\n    cursor:                      \"default\";\n    background-color:            @background;\n}\n\n/*****----- Main Box -----*****/\nmainbox {\n    enabled:                     true;\n    spacing:                     15px;\n    margin:                      0px;\n    padding:                     30px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    children:                    [ \"inputbar\", \"message\", \"listview\" ];\n}\n\n/*****----- Inputbar -----*****/\ninputbar {\n    enabled:                     true;\n    spacing:                     15px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    children:                    [ \"textbox-prompt-colon\", \"prompt\"];\n}\n\ntextbox-prompt-colon {\n    enabled:                     true;\n    expand:                      false;\n    str:                         \"\";\n    padding:                     12px 16px;\n    border-radius:               100%;\n    background-color:            @urgent;\n    text-color:                  @background;\n}\nprompt {\n    enabled:                     true;\n    padding:                     12px;\n    border-radius:               100%;\n    background-color:            @active;\n    text-color:                  @background;\n}\n\n/*****----- Message -----*****/\nmessage {\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     12px;\n    border:                      0px solid;\n    border-radius:               100%;\n    border-color:                @selected;\n    background-color:            @background-alt;\n    text-color:                  @foreground;\n}\ntextbox {\n    background-color:            inherit;\n    text-color:                  inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n    placeholder-color:           @foreground;\n    blink:                       true;\n    markup:                      true;\n}\nerror-message {\n    padding:                     12px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            @background;\n    text-color:                  @foreground;\n}\n\n/*****----- Listview -----*****/\nlistview {\n    enabled:                     true;\n    columns:                     1;\n    lines:                       5;\n    cycle:                       true;\n    dynamic:                     true;\n    scrollbar:                   false;\n    layout:                      vertical;\n    reverse:                     false;\n    fixed-height:                true;\n    fixed-columns:               true;\n    \n    spacing:                     5px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      \"default\";\n}\n\n/*****----- Elements -----*****/\nelement {\n    enabled:                     true;\n    spacing:                     0px;\n    margin:                      0px;\n    padding:                     12px;\n    border:                      0px solid;\n    border-radius:               100%;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      pointer;\n}\nelement-text {\n    background-color:            transparent;\n    text-color:                  inherit;\n    cursor:                      inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n}\nelement selected.normal {\n    background-color:            var(selected);\n    text-color:                  var(background);\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/style-3.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Rofi Theme File\n * Rofi Version: 1.7.3\n **/\n\n/*****----- Configuration -----*****/\nconfiguration {\n    show-icons:                 false;\n}\n\n/*****----- Global Properties -----*****/\n@import                          \"shared/colors.rasi\"\n@import                          \"shared/fonts.rasi\"\n\n/*****----- Main Window -----*****/\nwindow {\n    /* properties for window widget */\n    transparency:                \"real\";\n    location:                    center;\n    anchor:                      center;\n    fullscreen:                  false;\n    width:                       350px;\n    x-offset:                    0px;\n    y-offset:                    0px;\n\n    /* properties for all widgets */\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      1px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    cursor:                      \"default\";\n    background-color:            @background;\n}\n\n/*****----- Main Box -----*****/\nmainbox {\n    enabled:                     true;\n    spacing:                     8px;\n    margin:                      0px;\n    padding:                     8px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    children:                    [ \"inputbar\", \"message\", \"listview\" ];\n}\n\n/*****----- Inputbar -----*****/\ninputbar {\n    enabled:                     true;\n    spacing:                     8px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    children:                    [ \"textbox-prompt-colon\", \"prompt\"];\n}\n\ntextbox-prompt-colon {\n    enabled:                     true;\n    expand:                      false;\n    str:                         \"\";\n    padding:                     8px 12px;\n    border-radius:               0px;\n    background-color:            @urgent;\n    text-color:                  @background;\n}\nprompt {\n    enabled:                     true;\n    padding:                     8px;\n    border-radius:               0px;\n    background-color:            @active;\n    text-color:                  @background;\n}\n\n/*****----- Message -----*****/\nmessage {\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     8px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            @background-alt;\n    text-color:                  @foreground;\n}\ntextbox {\n    background-color:            inherit;\n    text-color:                  inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n    placeholder-color:           @foreground;\n    blink:                       true;\n    markup:                      true;\n}\nerror-message {\n    padding:                     8px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            @background;\n    text-color:                  @foreground;\n}\n\n/*****----- Listview -----*****/\nlistview {\n    enabled:                     true;\n    columns:                     1;\n    lines:                       5;\n    cycle:                       true;\n    dynamic:                     true;\n    scrollbar:                   false;\n    layout:                      vertical;\n    reverse:                     false;\n    fixed-height:                true;\n    fixed-columns:               true;\n    \n    spacing:                     5px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      \"default\";\n}\n\n/*****----- Elements -----*****/\nelement {\n    enabled:                     true;\n    spacing:                     0px;\n    margin:                      0px;\n    padding:                     8px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      pointer;\n}\nelement-text {\n    background-color:            transparent;\n    text-color:                  inherit;\n    cursor:                      inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n}\nelement selected.normal {\n    background-color:            var(selected);\n    text-color:                  var(background);\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/style-4.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Rofi Theme File\n * Rofi Version: 1.7.3\n **/\n\n/*****----- Configuration -----*****/\nconfiguration {\n    show-icons:                 false;\n}\n\n/*****----- Global Properties -----*****/\n@import                          \"shared/colors.rasi\"\n@import                          \"shared/fonts.rasi\"\n\n/*****----- Main Window -----*****/\nwindow {\n    /* properties for window widget */\n    transparency:                \"real\";\n    location:                    center;\n    anchor:                      center;\n    fullscreen:                  false;\n    width:                       500px;\n    x-offset:                    0px;\n    y-offset:                    0px;\n\n    /* properties for all widgets */\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               30px 10px 30px 10px;\n    border-color:                @selected;\n    cursor:                      \"default\";\n    background-color:            @background;\n}\n\n/*****----- Main Box -----*****/\nmainbox {\n    enabled:                     true;\n    spacing:                     15px;\n    margin:                      0px;\n    padding:                     30px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    children:                    [ \"inputbar\", \"message\", \"listview\" ];\n}\n\n/*****----- Inputbar -----*****/\ninputbar {\n    enabled:                     true;\n    spacing:                     15px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    children:                    [ \"textbox-prompt-colon\", \"prompt\"];\n}\n\ntextbox-prompt-colon {\n    enabled:                     true;\n    expand:                      false;\n    str:                         \"\";\n    padding:                     10px 14px;\n    border-radius:               15px 10px 15px 10px;\n    background-color:            @urgent;\n    text-color:                  @background;\n}\nprompt {\n    enabled:                     true;\n    padding:                     10px;\n    border-radius:               10px 15px 10px 15px;\n    background-color:            @active;\n    text-color:                  @background;\n}\n\n/*****----- Message -----*****/\nmessage {\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               15px 10px 15px 10px;\n    border-color:                @selected;\n    background-color:            @background-alt;\n    text-color:                  @foreground;\n}\ntextbox {\n    background-color:            inherit;\n    text-color:                  inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n    placeholder-color:           @foreground;\n    blink:                       true;\n    markup:                      true;\n}\nerror-message {\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            @background;\n    text-color:                  @foreground;\n}\n\n/*****----- Listview -----*****/\nlistview {\n    enabled:                     true;\n    columns:                     1;\n    lines:                       5;\n    cycle:                       true;\n    dynamic:                     true;\n    scrollbar:                   false;\n    layout:                      vertical;\n    reverse:                     false;\n    fixed-height:                true;\n    fixed-columns:               true;\n    \n    spacing:                     5px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      \"default\";\n}\n\n/*****----- Elements -----*****/\nelement {\n    enabled:                     true;\n    spacing:                     0px;\n    margin:                      0px;\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               15px 10px 15px 10px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      pointer;\n}\nelement-text {\n    background-color:            transparent;\n    text-color:                  inherit;\n    cursor:                      inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.0;\n}\nelement selected.normal {\n    background-color:            var(selected);\n    text-color:                  var(background);\n}\n"
  },
  {
    "path": "waybar/scripts/power-menu/style-5.rasi",
    "content": "/**\n *\n * Author : Aditya Shakya (adi1090x)\n * Github : @adi1090x\n * \n * Rofi Theme File\n * Rofi Version: 1.7.3\n **/\n\n/*****----- Configuration -----*****/\nconfiguration {\n    show-icons:                 false;\n}\n\n/*****----- Global Properties -----*****/\n@import                          \"shared/colors.rasi\"\n@import                          \"shared/fonts.rasi\"\n\n/*****----- Main Window -----*****/\nwindow {\n    /* properties for window widget */\n    transparency:                \"real\";\n    location:                    center;\n    anchor:                      center;\n    fullscreen:                  false;\n    width:                       605px;\n    x-offset:                    0px;\n    y-offset:                    0px;\n\n    /* properties for all widgets */\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               4px;\n    border-color:                @selected;\n    cursor:                      \"default\";\n    background-color:            @background;\n}\n\n/*****----- Main Box -----*****/\nmainbox {\n    enabled:                     true;\n    spacing:                     10px;\n    margin:                      0px;\n    padding:                     20px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    children:                    [ \"inputbar\", \"message\", \"listview\" ];\n}\n\n/*****----- Inputbar -----*****/\ninputbar {\n    enabled:                     true;\n    spacing:                     10px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    children:                    [ \"textbox-prompt-colon\", dummy, \"prompt\"];\n}\n\ndummy {\n    background-color:            transparent;\n}\n\ntextbox-prompt-colon {\n    enabled:                     true;\n    expand:                      false;\n    str:                         \"\";\n    padding:                     10px 14px;\n    border-radius:               4px;\n    background-color:            @urgent;\n    text-color:                  @background;\n}\nprompt {\n    enabled:                     true;\n    padding:                     10px;\n    border-radius:               4px;\n    background-color:            @active;\n    text-color:                  @background;\n}\n\n/*****----- Message -----*****/\nmessage {\n    enabled:                     true;\n    margin:                      0px;\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               4px;\n    border-color:                @selected;\n    background-color:            @background-alt;\n    text-color:                  @foreground;\n}\ntextbox {\n    background-color:            inherit;\n    text-color:                  inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.5;\n    placeholder-color:           @foreground;\n    blink:                       true;\n    markup:                      true;\n}\nerror-message {\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            @background;\n    text-color:                  @foreground;\n}\n\n/*****----- Listview -----*****/\nlistview {\n    enabled:                     true;\n    columns:                     5;\n    lines:                       1;\n    cycle:                       true;\n    dynamic:                     true;\n    scrollbar:                   false;\n    layout:                      vertical;\n    reverse:                     false;\n    fixed-height:                true;\n    fixed-columns:               true;\n    \n    spacing:                     10px;\n    margin:                      0px;\n    padding:                     0px;\n    border:                      0px solid;\n    border-radius:               0px;\n    border-color:                @selected;\n    background-color:            transparent;\n    text-color:                  @foreground;\n    cursor:                      \"default\";\n}\n\n/*****----- Elements -----*****/\nelement {\n    enabled:                     true;\n    spacing:                     0px;\n    margin:                      0px;\n    padding:                     10px;\n    border:                      0px solid;\n    border-radius:               4px;\n    border-color:                @selected;\n    background-color:            @background-alt;\n    text-color:                  @foreground;\n    cursor:                      pointer;\n}\nelement-text {\n    background-color:            transparent;\n    text-color:                  inherit;\n    cursor:                      inherit;\n    vertical-align:              0.5;\n    horizontal-align:            0.5;\n}\nelement selected.normal {\n    border:                      0px 2px 0px 2px;\n    border-radius:               4px;\n    background-color:            var(selected);\n    text-color:                  var(background);\n}\n"
  },
  {
    "path": "waybar/scripts/rofi-wifi-menu.sh",
    "content": " #!/usr/bin/env bash\n\nnotify-send \"Getting list of available Wi-Fi networks...\"\n# Get a list of available wifi connections and morph it into a nice-looking list\nwifi_list=$(nmcli --fields \"SECURITY,SSID\" device wifi list | sed 1d | sed 's/  */ /g' | sed -E \"s/WPA*.?\\S/ /g\" | sed \"s/^--/ /g\" | sed \"s/  //g\" | sed \"/--/d\")\n\nconnected=$(nmcli -fields WIFI g)\nif [[ \"$connected\" =~ \"enabled\" ]]; then\n\ttoggle=\"睊  Disable Wi-Fi\"\nelif [[ \"$connected\" =~ \"disabled\" ]]; then\n\ttoggle=\"直  Enable Wi-Fi\"\nfi\n\n# Use rofi to select wifi network\nchosen_network=$(echo -e \"$toggle\\n$wifi_list\" | uniq -u | rofi -dmenu -i -selected-row 1 -p \"Wi-Fi SSID: \" )\n# Get name of connection\nchosen_id=$(echo \"${chosen_network:3}\" | xargs)\n\nif [ \"$chosen_network\" = \"\" ]; then\n\texit\nelif [ \"$chosen_network\" = \"直  Enable Wi-Fi\" ]; then\n\tnmcli radio wifi on\nelif [ \"$chosen_network\" = \"睊  Disable Wi-Fi\" ]; then\n\tnmcli radio wifi off\nelse\n\t# Message to show when connection is activated successfully\n\tsuccess_message=\"You are now connected to the Wi-Fi network \\\"$chosen_id\\\".\"\n\t# Get saved connections\n\tsaved_connections=$(nmcli -g NAME connection)\n\tif [[ $(echo \"$saved_connections\" | grep -w \"$chosen_id\") = \"$chosen_id\" ]]; then\n\t\tnmcli connection up id \"$chosen_id\" | grep \"successfully\" && notify-send \"Connection Established\" \"$success_message\"\n\telse\n\t\tif [[ \"$chosen_network\" =~ \"\" ]]; then\n\t\t\twifi_password=$(rofi -dmenu -p \"Password: \" )\n\t\tfi\n\t\tnmcli device wifi connect \"$chosen_id\" password \"$wifi_password\" | grep \"successfully\" && notify-send \"Connection Established\" \"$success_message\"\n\tfi\nfi\n"
  },
  {
    "path": "waybar/scripts/spotify.sh",
    "content": "#!/bin/sh\n# install playerctl\n\n# player_status=$(playerctl status 2> /dev/null)\n# if [ \"$player_status\" = \"Playing\" ]; then\n#     echo \"$(playerctl metadata artist) - $(playerctl metadata title)\"\n# elif [ \"$player_status\" = \"Paused\" ]; then\n#     echo \" $(playerctl metadata artist) - $(playerctl metadata title)\"\n# fi\n\n#!/usr/bin/env bash\n# exec 2>\"$XDG_RUNTIME_DIR/waybar-playerctl.log\"\n# IFS=$'\\n\\t'\n#\n# while true; do\n#\n# \twhile read -r playing position length name artist title arturl hpos hlen; do\n# \t\t# remove leaders\n# \t\tplayng=${playing:1} position=${position:1} length=${length:1} name=${name:1}\n# \t\tartist=${artist:1} title=${title:1} arturl=${arturl:1} hpos=${hpos:1} hlen=${hlen:1}\n#\n# \t\t# build line\n# \t\tline=\"${artist:+$artist ${title:+- }}${title:+$title }${hpos:+$hpos${hlen:+|}}$hlen\"\n#\n# \t\t# json escaping\n# \t\tline=\"${line//\\\"/\\\\\\\"}\"\n# \t\t((percentage = length ? (100 * (position % length)) / length : 0))\n#\n#     if [ -z \"$line\" ]\n#     then\n#         text=\"\"\n#     else\n#         text=\"<span color='#1db954'></span> $line\"\n#     fi\n# #\n# \t\t# integrations for other services (nwg-wrapper)\n# \t\tif [[ $title != \"$ptitle\" || $artist != \"$partist\" || $parturl != \"$arturl\" ]]; then\n# \t\t\ttypeset -p playing length name artist title arturl >\"$XDG_RUNTIME_DIR/waybar-playerctl.info\"\n# \t\t\tpkill -8 nwg-wrapper\n# \t\t\tptitle=$title partist=$artist parturl=$arturl\n# \t\tfi\n#\n# \t\t# exit if print fails\n# \t\tprintf '{\"text\":\"%s\",\"tooltip\":\"%s\",\"class\":\"%s\",\"percentage\":%s}\\n' \\\n# \t\t\t\"$text\" \"$playing $name | $line\" \"$percentage\" \"$percentage\" || break 2\n#\n# \tdone < <(\n# \t\t# requires playerctl>=2.0\n# \t\t# Add non-space character \":\" before each parameter to prevent 'read' from skipping over them\n# \t\tplayerctl --follow metadata --player playerctld --format \\\n# \t\t\t$':{{emoji(status)}}\\t:{{position}}\\t:{{mpris:length}}\\t:{{playerName}}\\t:{{markup_escape(artist)}}\\t:{{markup_escape(title)}}\\t:{{mpris:artUrl}}\\t:{{duration(position)}}\\t:{{duration(mpris:length)}}' &\n# \t\techo $! >\"$XDG_RUNTIME_DIR/waybar-playerctl.pid\"\n# \t)\n#\n# \t# no current players\n# \t# exit if print fails\n# \techo '<span foreground=#dc322f>⏹</span>' || break\n# \tsleep 15\n#\n# done\n#\n# kill \"$(<\"$XDG_RUNTIME_DIR/waybar-playerctl.pid\")\"\n\n#!/usr/bin/env bash\n# exec 2>\"$XDG_RUNTIME_DIR/waybar-playerctl.log\"\n# IFS=$'\\n\\t'\n#\n# while true; do\n#\n# \twhile read -r playing position length name artist title arturl hpos hlen; do\n\nwhile true; do\n\n\tplayer_status=$(playerctl status 2>/dev/null)\n\n\tif [ -z \"$(playerctl metadata album)\" ]; then\n\t\tif [ \"$player_status\" = \"Playing\" ]; then\n\t\t\techo \"$(playerctl metadata artist) - $(playerctl metadata title)\"\n\t\telif [ \"$player_status\" = \"Paused\" ]; then\n\t\t\techo \" $(playerctl metadata artist) - $(playerctl metadata title)\"\n    else\n\t\t\techo \"\"\n\t\tfi\n\telse\n\t\tif [ \"$player_status\" = \"Playing\" ]; then\n\t\t\techo \"<span color='#1db954'></span> $(playerctl metadata artist) - $(playerctl metadata title)\"\n\t\telif [ \"$player_status\" = \"Paused\" ]; then\n\t\t\techo \"<span color='#1db954'></span>  $(playerctl metadata artist) - $(playerctl metadata title)\"\n    else\n\t\t\techo \"\"\n\t\tfi\n\tfi\n\n\tsleep 1\n\ndone\n\n# done\n#\n# kill \"$(<\"$XDG_RUNTIME_DIR/waybar-playerctl.pid\")\"\n"
  },
  {
    "path": "waybar/scripts/weather.py",
    "content": "#!/usr/bin/env python\n\nimport subprocess\nfrom pyquery import PyQuery  # install using `pip install pyquery`\nimport json\n\n# weather icons\nweather_icons = {\n    \"sunnyDay\": \"滛\",\n    \"clearNight\": \"望\",\n    \"cloudyFoggyDay\": \"\",\n    \"cloudyFoggyNight\": \"\",\n    \"rainyDay\": \"\",\n    \"rainyNight\": \"\",\n    \"snowyIcyDay\": \"\",\n    \"snowyIcyNight\": \"\",\n    \"severe\": \"\",\n    \"default\": \"\",\n}\n\n# get location_id\n# to get your own location_id, go to https://weather.com & search your location.\n# once you choose your location, you can see the location_id in the URL(64 chars long hex string)\n# like this: https://weather.com/en-IN/weather/today/l/c3e96d6cc4965fc54f88296b54449571c4107c73b9638c16aafc83575b4ddf2e\nlocation_id = \"a319796a4173829988d68c4e3a5f90c1b6832667ea7aaa201757a1c887ec667a\"  \n# TODO\n# location_id = \"8139363e05edb302e2d8be35101e400084eadcecdfce5507e77d832ac0fa57ae\"\n\n# priv_env_cmd = 'cat $PRIV_ENV_FILE | grep weather_location | cut -d \"=\" -f 2'\n# location_id = subprocess.run(\n#     priv_env_cmd, shell=True, capture_output=True).stdout.decode('utf8').strip()\n\n# get html page\nurl = \"https://weather.com/en-IN/weather/today/l/\" + location_id\nhtml_data = PyQuery(url)\n\n# current temperature\ntemp = html_data(\"span[data-testid='TemperatureValue']\").eq(0).text()\n# print(temp)\n\n# current status phrase\nstatus = html_data(\"div[data-testid='wxPhrase']\").text()\nstatus = f\"{status[:16]}..\" if len(status) > 17 else status\n# print(status)\n\n# status code\nstatus_code = html_data(\"#regionHeader\").attr(\"class\").split(\" \")[2].split(\"-\")[2]\n# print(status_code)\n\n# status icon\nicon = (\n    weather_icons[status_code]\n    if status_code in weather_icons\n    else weather_icons[\"default\"]\n)\n# print(icon)\n\n# temperature feels like\ntemp_feel = html_data(\n    \"div[data-testid='FeelsLikeSection'] > span[data-testid='TemperatureValue']\"\n).text()\ntemp_feel_text = f\"Feels like {temp_feel}c\"\n# print(temp_feel_text)\n\n# min-max temperature\ntemp_min = (\n    html_data(\"div[data-testid='wxData'] > span[data-testid='TemperatureValue']\")\n    .eq(0)\n    .text()\n)\ntemp_max = (\n    html_data(\"div[data-testid='wxData'] > span[data-testid='TemperatureValue']\")\n    .eq(1)\n    .text()\n)\ntemp_min_max = f\"  {temp_min}\\t\\t  {temp_max}\"\n# print(temp_min_max)\n\n# wind speed\nwind_speed = html_data(\"span[data-testid='Wind']\").text().split(\"\\n\")[1]\nwind_text = f\"煮  {wind_speed}\"\n# print(wind_text)\n\n# humidity\nhumidity = html_data(\"span[data-testid='PercentageValue']\").text()\nhumidity_text = f\"  {humidity}\"\n# print(humidity_text)\n\n# visibility\nvisbility = html_data(\"span[data-testid='VisibilityValue']\").text()\nvisbility_text = f\"  {visbility}\"\n# print(visbility_text)\n\n# air quality index\nair_quality_index = html_data(\"text[data-testid='DonutChartValue']\").text()\n# print(air_quality_index)\n\n# hourly rain prediction\nprediction = html_data(\"section[aria-label='Hourly Forecast']\")(\n    \"div[data-testid='SegmentPrecipPercentage'] > span\"\n).text()\nprediction = prediction.replace(\"Chance of Rain\", \"\")\nprediction = f\"\\n\\n    (hourly) {prediction}\" if len(prediction) > 0 else prediction\n# print(prediction)\n\n# tooltip text\ntooltip_text = str.format(\n    \"\\t\\t{}\\t\\t\\n{}\\n{}\\n{}\\n\\n{}\\n{}\\n{}{}\",\n    f'<span size=\"xx-large\">{temp}</span>',\n    f\"<big>{icon}</big>\",\n    f\"<big>{status}</big>\",\n    f\"<small>{temp_feel_text}</small>\",\n    f\"<big>{temp_min_max}</big>\",\n    f\"{wind_text}\\t{humidity_text}\",\n    f\"{visbility_text}\\tAQI {air_quality_index}\",\n    f\"<i>{prediction}</i>\",\n)\n\n# print waybar module data\nout_data = {\n    \"text\": f\"{icon}   {temp}\",\n    \"alt\": status,\n    \"tooltip\": tooltip_text,\n    \"class\": status_code,\n}\nprint(json.dumps(out_data))\n"
  },
  {
    "path": "wofi/colors/mocha.css",
    "content": "/*\n*\n* Catppuccin Mocha palette\n* Maintainer: rubyowo\n*\n*/\n\n@define-color base   #1e1e2e;\n@define-color mantle #181825;\n@define-color crust  #11111b;\n\n@define-color text     #cdd6f4;\n@define-color subtext0 #a6adc8;\n@define-color subtext1 #bac2de;\n\n@define-color surface0 #313244;\n@define-color surface1 #45475a;\n@define-color surface2 #585b70;\n\n@define-color overlay0 #6c7086;\n@define-color overlay1 #7f849c;\n@define-color overlay2 #9399b2;\n\n@define-color blue      #89b4fa;\n@define-color lavender  #b4befe;\n@define-color sapphire  #74c7ec;\n@define-color sky       #89dceb;\n@define-color teal      #94e2d5;\n@define-color green     #a6e3a1;\n@define-color yellow    #f9e2af;\n@define-color peach     #fab387;\n@define-color maroon    #eba0ac;\n@define-color red       #f38ba8;\n@define-color mauve     #cba6f7;\n@define-color pink      #f5c2e7;\n@define-color flamingo  #f2cdcd;\n@define-color rosewater #f5e0dc;\n"
  },
  {
    "path": "wofi/config",
    "content": "mode=drun\nallow_images=true\nimage_size=40\nterm=kitty\ninsensitive=true\nlocation=center\nno_actions=true\nprompt=Search"
  },
  {
    "path": "wofi/powermenu.sh",
    "content": "#!/bin/bash\n\nentries=\"⭮ Reboot\\n⏻ Shutdown\\n⇠ Logout\\n⏾ Suspend\"\n\nselected=$(echo -e $entries|wofi --width 250 --height 260 --dmenu --hide_search=true --hide-scroll --cache-file /dev/null | awk '{print tolower($2)}')\n\ncase $selected in\n  logout)\n    exec hyprctl dispatch exit NOW;;\n  suspend)\n    exec systemctl suspend;;\n  reboot)\n    exec systemctl reboot;;\n  shutdown)\n    exec systemctl poweroff -i;;\nesac"
  },
  {
    "path": "wofi/style.css",
    "content": "@define-color base   #1e1e2e;\n@define-color mantle #181825;\n@define-color crust  #11111b;\n\n@define-color text     #cdd6f4;\n@define-color subtext0 #a6adc8;\n@define-color subtext1 #bac2de;\n\n@define-color surface0 #313244;\n@define-color surface1 #45475a;\n@define-color surface2 #585b70;\n\n@define-color overlay0 #6c7086;\n@define-color overlay1 #7f849c;\n@define-color overlay2 #9399b2;\n\n@define-color blue      #89b4fa;\n@define-color lavender  #b4befe;\n@define-color sapphire  #74c7ec;\n@define-color sky       #89dceb;\n@define-color teal      #94e2d5;\n@define-color green     #a6e3a1;\n@define-color yellow    #f9e2af;\n@define-color peach     #fab387;\n@define-color maroon    #eba0ac;\n@define-color red       #f38ba8;\n@define-color mauve     #cba6f7;\n@define-color pink      #f5c2e7;\n@define-color flamingo  #f2cdcd;\n@define-color rosewater #f5e0dc;\n\n\n* {\n    font-family: SFPro;\n    font-size: 17px;\n    border-radius: 15px;\n}\n\nwindow {\n    margin: 5px;\n    background-color: @crust;\n    border: 3px solid @sky;\n    border-radius: 15px;\n}\n\n#outer-box {\n    margin: 4px;\n    border-radius: 15px;\n}\n\n#input {\n    margin: 10px 10px 20px 10px;\n    background-color: @mantle;\n    color: @subtext1;\n    border-radius: 8px;\n    padding: 5px;\n    border: 1px solid @subtext1; \n}\n\n#inner-box {\n    margin: 0px 10px 50px 10px;\n    border-radius: 0px;\n    background-color: @crust;\n}\n\n#scroll {\n    margin: 0px 0px;\n    border-radius: 8px;\n    border: none;\n}\n\n#text {\n    margin: 2px;\n}\n\n#entry {\n    border: none;\n    border-radius: 8px;\n}\n\n\n#entry:selected {\n    color: @crust;\n    background-color: @teal;\n}"
  },
  {
    "path": "wofi/wifimenu.sh",
    "content": "#!/usr/bin/env bash\n\n# Starts a scan of available broadcasting SSIDs\n# nmcli dev wifi rescan\n\nDIR=\"$( cd \"$( dirname \"${BASH_SOURCE[0]}\" )\" && pwd )\"\n\nFIELDS=SSID,SECURITY\nPOSITION=3\nYOFF=20\nXOFF=-40\n\nif [ -r \"$DIR/config\" ]; then\n\tsource \"$DIR/config\"\nelif [ -r \"$HOME/.config/wofi/wifi\" ]; then\n\tsource \"$HOME/.config/wofi/wifi\"\nelse\n\techo \"WARNING: config file not found! Using default values.\"\nfi\n\nLIST=$(nmcli --fields \"$FIELDS\" device wifi list | sed '/^--/d')\n# For some reason wofi always approximates character width 2 short... hmmm\nRWIDTH=$(($(echo \"$LIST\" | head -n 1 | awk '{print length($0); }')*20))\n# Dynamically change the height of the wofi menu\nLINENUM=$(echo \"$LIST\" | wc -l)\n# Gives a list of known connections so we can parse it later\nKNOWNCON=$(nmcli connection show)\n# Really janky way of telling if there is currently a connection\nCONSTATE=$(nmcli -fields WIFI g)\n\nCURRSSID=$(LANGUAGE=C nmcli -t -f active,ssid dev wifi | awk -F: '$1 ~ /^yes/ {print $2}')\n\nif [[ ! -z $CURRSSID ]]; then\n\tHIGHLINE=$(echo  \"$(echo \"$LIST\" | awk -F \"[  ]{2,}\" '{print $1}' | grep -Fxn -m 1 \"$CURRSSID\" | awk -F \":\" '{print $1}') + 1\" | bc )\nfi\n\n# HOPEFULLY you won't need this as often as I do\n# If there are more than 8 SSIDs, the menu will still only have 8 lines\nif [ \"$LINENUM\" -gt 8 ] && [[ \"$CONSTATE\" =~ \"enabled\" ]]; then\n\tLINENUM=8\nelif [[ \"$CONSTATE\" =~ \"disabled\" ]]; then\n\tLINENUM=1\nfi\n\n\nif [[ \"$CONSTATE\" =~ \"enabled\" ]]; then\n\tTOGGLE=\"toggle off\"\nelif [[ \"$CONSTATE\" =~ \"disabled\" ]]; then\n\tTOGGLE=\"toggle on\"\nfi\n\n\nCHENTRY=$(echo -e \"$TOGGLE\\nmanual\\n$LIST\" | uniq -u | wofi -i -d --prompt \"Wi-Fi SSID: \" --lines \"8\" --width $RWIDTH)\n#echo \"$CHENTRY\"\nCHSSID=$(echo \"$CHENTRY\" | sed  's/\\s\\{2,\\}/\\|/g' | awk -F \"|\" '{print $1}')\n#echo \"$CHSSID\"\n\n# If the user inputs \"manual\" as their SSID in the start window, it will bring them to this screen\nif [ \"$CHENTRY\" = \"manual\" ] ; then\n\t# Manual entry of the SSID and password (if appplicable)\n\tMSSID=$(echo \"enter the SSID of the network (SSID,password)\" | wofi -d \"Manual Entry: \" --lines 1)\n\t# Separating the password from the entered string\n\tMPASS=$(echo \"$MSSID\" | awk -F \",\" '{print $2}')\n\n\t#echo \"$MSSID\"\n\t#echo \"$MPASS\"\n\n\t# If the user entered a manual password, then use the password nmcli command\n\tif [ \"$MPASS\" = \"\" ]; then\n\t\tnmcli dev wifi con \"$MSSID\"\n\telse\n\t\tnmcli dev wifi con \"$MSSID\" password \"$MPASS\"\n\tfi\n\nelif [ \"$CHENTRY\" = \"toggle on\" ]; then\n\tnmcli radio wifi on\n\nelif [ \"$CHENTRY\" = \"toggle off\" ]; then\n\tnmcli radio wifi off\n\nelse\n\n\t# If the connection is already in use, then this will still be able to get the SSID\n\tif [ \"$CHSSID\" = \"*\" ]; then\n\t\tCHSSID=$(echo \"$CHENTRY\" | sed  's/\\s\\{2,\\}/\\|/g' | awk -F \"|\" '{print $3}')\n\tfi\n\n\t# Parses the list of preconfigured connections to see if it already contains the chosen SSID. This speeds up the connection process\n\tif [[ $(echo \"$KNOWNCON\" | grep \"$CHSSID\") = \"$CHSSID\" ]]; then\n\t\tnmcli con up \"$CHSSID\"\n\telse\n\t\tif [[ \"$CHENTRY\" =~ \"WPA2\" ]] || [[ \"$CHENTRY\" =~ \"WEP\" ]]; then\n\t\t\tWIFIPASS=$(echo \"if connection is stored, hit enter\" | wofi -P -d --prompt \"password\" --lines 1 --location \"$POSITION\" --yoffset \"$YOFF\" --xoffset \"$XOFF\" --width $RWIDTH)\n\t\tfi\n\t\tnmcli dev wifi con \"$CHSSID\" password \"$WIFIPASS\"\n\tfi\n\nfi"
  },
  {
    "path": "wrappedhl",
    "content": "#!/bin/sh\n\ncd ~\n\nexport _JAVA_AWT_WM_NONREPARENTING=1\n# export GBM_BACKEND=nvidia-drm\nexport WLR_NO_HARDWARE_CURSORS=1\nexport XDG_SESSION_TYPE=wayland\nexport GTK_THEME=Catppuccin-Mocha-Standard-Teal-Dark\nexport GTKTHEME=Catppuccin-Mocha-Standard-Teal-Dark\nexport MOZ_ENABLE_WAYLAND=1\nexport QT_QPA_PLATFORMTHEME=qt5ct\nexport QT_STYLE_OVERRIDE=kvantum\n# export GDK_BACKEND=\"wayland,x11\"\n#export LIBVA_DRIVER_NAME=nvidia\nexport GBM_BACKEND=nvidia-drm\nexport __GLX_VENDOR_LIBRARY_NAME=nvidia\n\nUSBC=$(cat /sys/class/drm/card0-DP-1/status) # Display in USB C port\nDP=$(cat /sys/class/drm/card0-DP-2/status) # Display in Display Port\n\nif [ \"$USBC\" = 'disconnected' ] && [ \"$DP\" = 'disconnected' ]; then\n\texport LAPTOP=1\n\texport XCURSOR_SIZE=24\nelse\n\texport LAPTOP=0\n\texport XCURSOR_SIZE=48\nfi\n\nexec Hyprland\n"
  },
  {
    "path": "zsh/.p10k.zsh",
    "content": "# Generated by Powerlevel10k configuration wizard on 2023-01-24 at 08:50 EST.\n# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 19454.\n# Wizard options: nerdfont-complete + powerline, small icons, rainbow, unicode,\n# vertical separators, round heads, round tails, 1 line, sparse, many icons, concise,\n# instant_prompt=verbose.\n# Type `p10k configure` to generate another config.\n#\n# Config for Powerlevel10k with powerline prompt style with colorful background.\n# Type `p10k configure` to generate your own config based on it.\n#\n# Tip: Looking for a nice color? Here's a one-liner to print colormap.\n#\n#   for i in {0..255}; do print -Pn \"%K{$i}  %k%F{$i}${(l:3::0:)i}%f \" ${${(M)$((i%6)):#3}:+$'\\n'}; done\n\n# Temporarily change options.\n'builtin' 'local' '-a' 'p10k_config_opts'\n[[ ! -o 'aliases'         ]] || p10k_config_opts+=('aliases')\n[[ ! -o 'sh_glob'         ]] || p10k_config_opts+=('sh_glob')\n[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')\n'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'\n\n() {\n  emulate -L zsh -o extended_glob\n\n  # Unset all configuration options. This allows you to apply configuration changes without\n  # restarting zsh. Edit ~/.p10k.zsh and type `source ~/.p10k.zsh`.\n  unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'\n\n  # Zsh >= 5.1 is required.\n  [[ $ZSH_VERSION == (5.<1->*|<6->.*) ]] || return\n\n  # The list of segments shown on the left. Fill it with the most important segments.\n  typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(\n    os_icon                 # os identifier\n    dir                     # current directory\n    vcs                     # git status\n    # prompt_char           # prompt symbol\n  )\n\n  # The list of segments shown on the right. Fill it with less important segments.\n  # Right prompt on the last prompt line (where you are typing your commands) gets\n  # automatically hidden when the input line reaches it. Right prompt above the\n  # last prompt line gets hidden if it would overlap with left prompt.\n  typeset -g POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(\n    status                  # exit code of the last command\n    command_execution_time  # duration of the last command\n    background_jobs         # presence of background jobs\n    direnv                  # direnv status (https://direnv.net/)\n    asdf                    # asdf version manager (https://github.com/asdf-vm/asdf)\n    virtualenv              # python virtual environment (https://docs.python.org/3/library/venv.html)\n    anaconda                # conda environment (https://conda.io/)\n    pyenv                   # python environment (https://github.com/pyenv/pyenv)\n    goenv                   # go environment (https://github.com/syndbg/goenv)\n    nodenv                  # node.js version from nodenv (https://github.com/nodenv/nodenv)\n    nvm                     # node.js version from nvm (https://github.com/nvm-sh/nvm)\n    nodeenv                 # node.js environment (https://github.com/ekalinin/nodeenv)\n    # node_version          # node.js version\n    # go_version            # go version (https://golang.org)\n    # rust_version          # rustc version (https://www.rust-lang.org)\n    # dotnet_version        # .NET version (https://dotnet.microsoft.com)\n    # php_version           # php version (https://www.php.net/)\n    # laravel_version       # laravel php framework version (https://laravel.com/)\n    # java_version          # java version (https://www.java.com/)\n    # package               # name@version from package.json (https://docs.npmjs.com/files/package.json)\n    rbenv                   # ruby version from rbenv (https://github.com/rbenv/rbenv)\n    rvm                     # ruby version from rvm (https://rvm.io)\n    fvm                     # flutter version management (https://github.com/leoafarias/fvm)\n    luaenv                  # lua version from luaenv (https://github.com/cehoffman/luaenv)\n    jenv                    # java version from jenv (https://github.com/jenv/jenv)\n    plenv                   # perl version from plenv (https://github.com/tokuhirom/plenv)\n    perlbrew                # perl version from perlbrew (https://github.com/gugod/App-perlbrew)\n    phpenv                  # php version from phpenv (https://github.com/phpenv/phpenv)\n    scalaenv                # scala version from scalaenv (https://github.com/scalaenv/scalaenv)\n    haskell_stack           # haskell version from stack (https://haskellstack.org/)\n    kubecontext             # current kubernetes context (https://kubernetes.io/)\n    terraform               # terraform workspace (https://www.terraform.io)\n    # terraform_version     # terraform version (https://www.terraform.io)\n    aws                     # aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html)\n    aws_eb_env              # aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/)\n    azure                   # azure account name (https://docs.microsoft.com/en-us/cli/azure)\n    gcloud                  # google cloud cli account and project (https://cloud.google.com/)\n    google_app_cred         # google application credentials (https://cloud.google.com/docs/authentication/production)\n    toolbox                 # toolbox name (https://github.com/containers/toolbox)\n    context                 # user@hostname\n    nordvpn                 # nordvpn connection status, linux only (https://nordvpn.com/)\n    ranger                  # ranger shell (https://github.com/ranger/ranger)\n    nnn                     # nnn shell (https://github.com/jarun/nnn)\n    xplr                    # xplr shell (https://github.com/sayanarijit/xplr)\n    vim_shell               # vim shell indicator (:sh)\n    midnight_commander      # midnight commander shell (https://midnight-commander.org/)\n    nix_shell               # nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html)\n    vi_mode                 # vi mode (you don't need this if you've enabled prompt_char)\n    # vpn_ip                # virtual private network indicator\n    # load                  # CPU load\n    # disk_usage            # disk usage\n    # ram                   # free RAM\n    # swap                  # used swap\n    todo                    # todo items (https://github.com/todotxt/todo.txt-cli)\n    timewarrior             # timewarrior tracking status (https://timewarrior.net/)\n    taskwarrior             # taskwarrior task count (https://taskwarrior.org/)\n    # cpu_arch              # CPU architecture\n    # time                  # current time\n    # ip                    # ip address and bandwidth usage for a specified network interface\n    # public_ip             # public IP address\n    # proxy                 # system-wide http/https/ftp proxy\n    # battery               # internal battery\n    # wifi                  # wifi speed\n    # example               # example user-defined segment (see prompt_example function below)\n  )\n\n  # Defines character set used by powerlevel10k. It's best to let `p10k configure` set it for you.\n  typeset -g POWERLEVEL9K_MODE=nerdfont-complete\n  # When set to `moderate`, some icons will have an extra space after them. This is meant to avoid\n  # icon overlap when using non-monospace fonts. When set to `none`, spaces are not added.\n  typeset -g POWERLEVEL9K_ICON_PADDING=none\n\n  # When set to true, icons appear before content on both sides of the prompt. When set\n  # to false, icons go after content. If empty or not set, icons go before content in the left\n  # prompt and after content in the right prompt.\n  #\n  # You can also override it for a specific segment:\n  #\n  #   POWERLEVEL9K_STATUS_ICON_BEFORE_CONTENT=false\n  #\n  # Or for a specific segment in specific state:\n  #\n  #   POWERLEVEL9K_DIR_NOT_WRITABLE_ICON_BEFORE_CONTENT=false\n  typeset -g POWERLEVEL9K_ICON_BEFORE_CONTENT=\n\n  # Add an empty line before each prompt.\n  typeset -g POWERLEVEL9K_PROMPT_ADD_NEWLINE=true\n\n  # Connect left prompt lines with these symbols. You'll probably want to use the same color\n  # as POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND below.\n  typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%242F╭─'\n  typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_PREFIX='%242F├─'\n  typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%242F╰─'\n  # Connect right prompt lines with these symbols.\n  typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_SUFFIX='%242F─╮'\n  typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_SUFFIX='%242F─┤'\n  typeset -g POWERLEVEL9K_MULTILINE_LAST_PROMPT_SUFFIX='%242F─╯'\n\n  # Filler between left and right prompt on the first prompt line. You can set it to ' ', '·' or\n  # '─'. The last two make it easier to see the alignment between left and right prompt and to\n  # separate prompt from command output. You might want to set POWERLEVEL9K_PROMPT_ADD_NEWLINE=false\n  # for more compact prompt if using this option.\n  typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR=' '\n  typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_BACKGROUND=\n  typeset -g POWERLEVEL9K_MULTILINE_NEWLINE_PROMPT_GAP_BACKGROUND=\n  if [[ $POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_CHAR != ' ' ]]; then\n    # The color of the filler. You'll probably want to match the color of POWERLEVEL9K_MULTILINE\n    # ornaments defined above.\n    typeset -g POWERLEVEL9K_MULTILINE_FIRST_PROMPT_GAP_FOREGROUND=242\n    # Start filler from the edge of the screen if there are no left segments on the first line.\n    typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_FIRST_SEGMENT_END_SYMBOL='%{%}'\n    # End filler on the edge of the screen if there are no right segments on the first line.\n    typeset -g POWERLEVEL9K_EMPTY_LINE_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='%{%}'\n  fi\n\n  # Separator between same-color segments on the left.\n  typeset -g POWERLEVEL9K_LEFT_SUBSEGMENT_SEPARATOR='\\u2502'\n  # Separator between same-color segments on the right.\n  typeset -g POWERLEVEL9K_RIGHT_SUBSEGMENT_SEPARATOR='\\u2502'\n  # Separator between different-color segments on the left.\n  typeset -g POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=''\n  # Separator between different-color segments on the right.\n  typeset -g POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=''\n  # The right end of left prompt.\n  typeset -g POWERLEVEL9K_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL='\\uE0B4'\n  # The left end of right prompt.\n  typeset -g POWERLEVEL9K_RIGHT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\\uE0B6'\n  # The left end of left prompt.\n  typeset -g POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\\uE0B6'\n  # The right end of right prompt.\n  typeset -g POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='\\uE0B4'\n  # Left prompt terminator for lines without any segments.\n  typeset -g POWERLEVEL9K_EMPTY_LINE_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=\n\n  #################################[ os_icon: os identifier ]##################################\n  # OS identifier color.\n  typeset -g POWERLEVEL9K_OS_ICON_FOREGROUND=232\n  typeset -g POWERLEVEL9K_OS_ICON_BACKGROUND=7\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='⭐'\n\n  ################################[ prompt_char: prompt symbol ]################################\n  # Transparent background.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_BACKGROUND=\n  # Green prompt symbol if the last command succeeded.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_OK_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=76\n  # Red prompt symbol if the last command failed.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_ERROR_{VIINS,VICMD,VIVIS,VIOWR}_FOREGROUND=196\n  # Default prompt symbol.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIINS_CONTENT_EXPANSION='❯'\n  # Prompt symbol in command vi mode.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VICMD_CONTENT_EXPANSION='❮'\n  # Prompt symbol in visual vi mode.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIVIS_CONTENT_EXPANSION='V'\n  # Prompt symbol in overwrite vi mode.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_{OK,ERROR}_VIOWR_CONTENT_EXPANSION='▶'\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_OVERWRITE_STATE=true\n  # No line terminator if prompt_char is the last segment.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_LAST_SEGMENT_END_SYMBOL=\n  # No line introducer if prompt_char is the first segment.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL=\n  # No surrounding whitespace.\n  typeset -g POWERLEVEL9K_PROMPT_CHAR_LEFT_{LEFT,RIGHT}_WHITESPACE=\n\n  ##################################[ dir: current directory ]##################################\n  # Current directory background color.\n  typeset -g POWERLEVEL9K_DIR_BACKGROUND=4\n  # Default current directory foreground color.\n  typeset -g POWERLEVEL9K_DIR_FOREGROUND=254\n  # If directory is too long, shorten some of its segments to the shortest possible unique\n  # prefix. The shortened directory can be tab-completed to the original.\n  typeset -g POWERLEVEL9K_SHORTEN_STRATEGY=truncate_to_unique\n  # Replace removed segment suffixes with this symbol.\n  typeset -g POWERLEVEL9K_SHORTEN_DELIMITER=\n  # Color of the shortened directory segments.\n  typeset -g POWERLEVEL9K_DIR_SHORTENED_FOREGROUND=254\n  # Color of the anchor directory segments. Anchor segments are never shortened. The first\n  # segment is always an anchor.\n  typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=255\n  # Display anchor directory segments in bold.\n  typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true\n  # Don't shorten directories that contain any of these files. They are anchors.\n  local anchor_files=(\n    .bzr\n    .citc\n    .git\n    .hg\n    .node-version\n    .python-version\n    .go-version\n    .ruby-version\n    .lua-version\n    .java-version\n    .perl-version\n    .php-version\n    .tool-version\n    .shorten_folder_marker\n    .svn\n    .terraform\n    CVS\n    Cargo.toml\n    composer.json\n    go.mod\n    package.json\n    stack.yaml\n  )\n  typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER=\"(${(j:|:)anchor_files})\"\n  # If set to \"first\" (\"last\"), remove everything before the first (last) subdirectory that contains\n  # files matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is\n  # /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first)\n  # or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers\n  # and other directories don't.\n  #\n  # Optionally, \"first\" and \"last\" can be followed by \":<offset>\" where <offset> is an integer.\n  # This moves the truncation point to the right (positive offset) or to the left (negative offset)\n  # relative to the marker. Plain \"first\" and \"last\" are equivalent to \"first:0\" and \"last:0\"\n  # respectively.\n  typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false\n  # Don't shorten this many last directory segments. They are anchors.\n  typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1\n  # Shorten directory if it's longer than this even if there is space for it. The value can\n  # be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty,\n  # directory will be shortened only when prompt doesn't fit or when other parameters demand it\n  # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).\n  # If set to `0`, directory will always be shortened to its minimum length.\n  typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80\n  # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this\n  # many columns for typing commands.\n  typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40\n  # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least\n  # COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands.\n  typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50\n  # If set to true, embed a hyperlink into the directory. Useful for quickly\n  # opening a directory in the file manager simply by clicking the link.\n  # Can also be handy when the directory is shortened, as it allows you to see\n  # the full directory that was used in previous commands.\n  typeset -g POWERLEVEL9K_DIR_HYPERLINK=false\n\n  # Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON\n  # and POWERLEVEL9K_DIR_CLASSES below.\n  typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3\n\n  # The default icon shown next to non-writable and non-existent directories when\n  # POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3.\n  # typeset -g POWERLEVEL9K_LOCK_ICON='⭐'\n\n  # POWERLEVEL9K_DIR_CLASSES allows you to specify custom icons and colors for different\n  # directories. It must be an array with 3 * N elements. Each triplet consists of:\n  #\n  #   1. A pattern against which the current directory ($PWD) is matched. Matching is done with\n  #      extended_glob option enabled.\n  #   2. Directory class for the purpose of styling.\n  #   3. An empty string.\n  #\n  # Triplets are tried in order. The first triplet whose pattern matches $PWD wins.\n  #\n  # If POWERLEVEL9K_DIR_SHOW_WRITABLE is set to v3, non-writable and non-existent directories\n  # acquire class suffix _NOT_WRITABLE and NON_EXISTENT respectively.\n  #\n  # For example, given these settings:\n  #\n  #   typeset -g POWERLEVEL9K_DIR_CLASSES=(\n  #     '~/work(|/*)'  WORK     ''\n  #     '~(|/*)'       HOME     ''\n  #     '*'            DEFAULT  '')\n  #\n  # Whenever the current directory is ~/work or a subdirectory of ~/work, it gets styled with one\n  # of the following classes depending on its writability and existence: WORK, WORK_NOT_WRITABLE or\n  # WORK_NON_EXISTENT.\n  #\n  # Simply assigning classes to directories doesn't have any visible effects. It merely gives you an\n  # option to define custom colors and icons for different directory classes.\n  #\n  #   # Styling for WORK.\n  #   typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  #   typeset -g POWERLEVEL9K_DIR_WORK_BACKGROUND=4\n  #   typeset -g POWERLEVEL9K_DIR_WORK_FOREGROUND=254\n  #   typeset -g POWERLEVEL9K_DIR_WORK_SHORTENED_FOREGROUND=250\n  #   typeset -g POWERLEVEL9K_DIR_WORK_ANCHOR_FOREGROUND=255\n  #\n  #   # Styling for WORK_NOT_WRITABLE.\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_BACKGROUND=4\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND=254\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_SHORTENED_FOREGROUND=250\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_ANCHOR_FOREGROUND=255\n  #\n  #   # Styling for WORK_NON_EXISTENT.\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_BACKGROUND=4\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_FOREGROUND=254\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_SHORTENED_FOREGROUND=250\n  #   typeset -g POWERLEVEL9K_DIR_WORK_NON_EXISTENT_ANCHOR_FOREGROUND=255\n  #\n  # If a styling parameter isn't explicitly defined for some class, it falls back to the classless\n  # parameter. For example, if POWERLEVEL9K_DIR_WORK_NOT_WRITABLE_FOREGROUND is not set, it falls\n  # back to POWERLEVEL9K_DIR_FOREGROUND.\n  #\n  # typeset -g POWERLEVEL9K_DIR_CLASSES=()\n\n  # Custom prefix.\n  # typeset -g POWERLEVEL9K_DIR_PREFIX='in '\n\n  #####################################[ vcs: git status ]######################################\n  # Version control background colors.\n  typeset -g POWERLEVEL9K_VCS_CLEAN_BACKGROUND=2\n  typeset -g POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=3\n  typeset -g POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=2\n  typeset -g POWERLEVEL9K_VCS_CONFLICTED_BACKGROUND=3\n  typeset -g POWERLEVEL9K_VCS_LOADING_BACKGROUND=8\n\n  # Branch icon. Set this parameter to '\\UE0A0 ' for the popular Powerline branch icon.\n  typeset -g POWERLEVEL9K_VCS_BRANCH_ICON='\\uF126 '\n\n  # Untracked files icon. It's really a question mark, your font isn't broken.\n  # Change the value of this parameter to show a different icon.\n  typeset -g POWERLEVEL9K_VCS_UNTRACKED_ICON='?'\n\n  # Formatter for Git status.\n  #\n  # Example output: master wip ⇣42⇡42 *42 merge ~42 +42 !42 ?42.\n  #\n  # You can edit the function to customize how Git status looks.\n  #\n  # VCS_STATUS_* parameters are set by gitstatus plugin. See reference:\n  # https://github.com/romkatv/gitstatus/blob/master/gitstatus.plugin.zsh.\n  function my_git_formatter() {\n    emulate -L zsh\n\n    if [[ -n $P9K_CONTENT ]]; then\n      # If P9K_CONTENT is not empty, use it. It's either \"loading\" or from vcs_info (not from\n      # gitstatus plugin). VCS_STATUS_* parameters are not available in this case.\n      typeset -g my_git_format=$P9K_CONTENT\n      return\n    fi\n\n    # Styling for different parts of Git status.\n    local       meta='%7F' # white foreground\n    local      clean='%0F' # black foreground\n    local   modified='%0F' # black foreground\n    local  untracked='%0F' # black foreground\n    local conflicted='%1F' # red foreground\n\n    local res\n\n    if [[ -n $VCS_STATUS_LOCAL_BRANCH ]]; then\n      local branch=${(V)VCS_STATUS_LOCAL_BRANCH}\n      # If local branch name is at most 32 characters long, show it in full.\n      # Otherwise show the first 12 … the last 12.\n      # Tip: To always show local branch name in full without truncation, delete the next line.\n      (( $#branch > 32 )) && branch[13,-13]=\"…\"  # <-- this line\n      res+=\"${clean}${(g::)POWERLEVEL9K_VCS_BRANCH_ICON}${branch//\\%/%%}\"\n    fi\n\n    if [[ -n $VCS_STATUS_TAG\n          # Show tag only if not on a branch.\n          # Tip: To always show tag, delete the next line.\n          && -z $VCS_STATUS_LOCAL_BRANCH  # <-- this line\n        ]]; then\n      local tag=${(V)VCS_STATUS_TAG}\n      # If tag name is at most 32 characters long, show it in full.\n      # Otherwise show the first 12 … the last 12.\n      # Tip: To always show tag name in full without truncation, delete the next line.\n      (( $#tag > 32 )) && tag[13,-13]=\"…\"  # <-- this line\n      res+=\"${meta}#${clean}${tag//\\%/%%}\"\n    fi\n\n    # Display the current Git commit if there is no branch and no tag.\n    # Tip: To always display the current Git commit, delete the next line.\n    [[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] &&  # <-- this line\n      res+=\"${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}\"\n\n    # Show tracking branch name if it differs from local branch.\n    if [[ -n ${VCS_STATUS_REMOTE_BRANCH:#$VCS_STATUS_LOCAL_BRANCH} ]]; then\n      res+=\"${meta}:${clean}${(V)VCS_STATUS_REMOTE_BRANCH//\\%/%%}\"\n    fi\n\n    # Display \"wip\" if the latest commit's summary contains \"wip\" or \"WIP\".\n    if [[ $VCS_STATUS_COMMIT_SUMMARY == (|*[^[:alnum:]])(wip|WIP)(|[^[:alnum:]]*) ]]; then\n      res+=\" ${modified}wip\"\n    fi\n\n    # ⇣42 if behind the remote.\n    (( VCS_STATUS_COMMITS_BEHIND )) && res+=\" ${clean}⇣${VCS_STATUS_COMMITS_BEHIND}\"\n    # ⇡42 if ahead of the remote; no leading space if also behind the remote: ⇣42⇡42.\n    (( VCS_STATUS_COMMITS_AHEAD && !VCS_STATUS_COMMITS_BEHIND )) && res+=\" \"\n    (( VCS_STATUS_COMMITS_AHEAD  )) && res+=\"${clean}⇡${VCS_STATUS_COMMITS_AHEAD}\"\n    # ⇠42 if behind the push remote.\n    (( VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=\" ${clean}⇠${VCS_STATUS_PUSH_COMMITS_BEHIND}\"\n    (( VCS_STATUS_PUSH_COMMITS_AHEAD && !VCS_STATUS_PUSH_COMMITS_BEHIND )) && res+=\" \"\n    # ⇢42 if ahead of the push remote; no leading space if also behind: ⇠42⇢42.\n    (( VCS_STATUS_PUSH_COMMITS_AHEAD  )) && res+=\"${clean}⇢${VCS_STATUS_PUSH_COMMITS_AHEAD}\"\n    # *42 if have stashes.\n    (( VCS_STATUS_STASHES        )) && res+=\" ${clean}*${VCS_STATUS_STASHES}\"\n    # 'merge' if the repo is in an unusual state.\n    [[ -n $VCS_STATUS_ACTION     ]] && res+=\" ${conflicted}${VCS_STATUS_ACTION}\"\n    # ~42 if have merge conflicts.\n    (( VCS_STATUS_NUM_CONFLICTED )) && res+=\" ${conflicted}~${VCS_STATUS_NUM_CONFLICTED}\"\n    # +42 if have staged changes.\n    (( VCS_STATUS_NUM_STAGED     )) && res+=\" ${modified}+${VCS_STATUS_NUM_STAGED}\"\n    # !42 if have unstaged changes.\n    (( VCS_STATUS_NUM_UNSTAGED   )) && res+=\" ${modified}!${VCS_STATUS_NUM_UNSTAGED}\"\n    # ?42 if have untracked files. It's really a question mark, your font isn't broken.\n    # See POWERLEVEL9K_VCS_UNTRACKED_ICON above if you want to use a different icon.\n    # Remove the next line if you don't want to see untracked files at all.\n    (( VCS_STATUS_NUM_UNTRACKED  )) && res+=\" ${untracked}${(g::)POWERLEVEL9K_VCS_UNTRACKED_ICON}${VCS_STATUS_NUM_UNTRACKED}\"\n    # \"─\" if the number of unstaged files is unknown. This can happen due to\n    # POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY (see below) being set to a non-negative number lower\n    # than the number of files in the Git index, or due to bash.showDirtyState being set to false\n    # in the repository config. The number of staged and untracked files may also be unknown\n    # in this case.\n    (( VCS_STATUS_HAS_UNSTAGED == -1 )) && res+=\" ${modified}─\"\n\n    typeset -g my_git_format=$res\n  }\n  functions -M my_git_formatter 2>/dev/null\n\n  # Don't count the number of unstaged, untracked and conflicted files in Git repositories with\n  # more than this many files in the index. Negative value means infinity.\n  #\n  # If you are working in Git repositories with tens of millions of files and seeing performance\n  # sagging, try setting POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY to a number lower than the output\n  # of `git ls-files | wc -l`. Alternatively, add `bash.showDirtyState = false` to the repository's\n  # config: `git config bash.showDirtyState false`.\n  typeset -g POWERLEVEL9K_VCS_MAX_INDEX_SIZE_DIRTY=-1\n\n  # Don't show Git status in prompt for repositories whose workdir matches this pattern.\n  # For example, if set to '~', the Git repository at $HOME/.git will be ignored.\n  # Multiple patterns can be combined with '|': '~(|/foo)|/bar/baz/*'.\n  typeset -g POWERLEVEL9K_VCS_DISABLED_WORKDIR_PATTERN='~'\n\n  # Disable the default Git status formatting.\n  typeset -g POWERLEVEL9K_VCS_DISABLE_GITSTATUS_FORMATTING=true\n  # Install our own Git status formatter.\n  typeset -g POWERLEVEL9K_VCS_CONTENT_EXPANSION='${$((my_git_formatter()))+${my_git_format}}'\n  # Enable counters for staged, unstaged, etc.\n  typeset -g POWERLEVEL9K_VCS_{STAGED,UNSTAGED,UNTRACKED,CONFLICTED,COMMITS_AHEAD,COMMITS_BEHIND}_MAX_NUM=-1\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_VCS_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # Custom prefix.\n  # typeset -g POWERLEVEL9K_VCS_PREFIX='on '\n\n  # Show status of repositories of these types. You can add svn and/or hg if you are\n  # using them. If you do, your prompt may become slow even when your current directory\n  # isn't in an svn or hg repository.\n  typeset -g POWERLEVEL9K_VCS_BACKENDS=(git)\n\n  ##########################[ status: exit code of the last command ]###########################\n  # Enable OK_PIPE, ERROR_PIPE and ERROR_SIGNAL status states to allow us to enable, disable and\n  # style them independently from the regular OK and ERROR state.\n  typeset -g POWERLEVEL9K_STATUS_EXTENDED_STATES=true\n\n  # Status on success. No content, just an icon. No need to show it if prompt_char is enabled as\n  # it will signify success by turning green.\n  typeset -g POWERLEVEL9K_STATUS_OK=true\n  typeset -g POWERLEVEL9K_STATUS_OK_VISUAL_IDENTIFIER_EXPANSION='✔'\n  typeset -g POWERLEVEL9K_STATUS_OK_FOREGROUND=2\n  typeset -g POWERLEVEL9K_STATUS_OK_BACKGROUND=0\n\n  # Status when some part of a pipe command fails but the overall exit status is zero. It may look\n  # like this: 1|0.\n  typeset -g POWERLEVEL9K_STATUS_OK_PIPE=true\n  typeset -g POWERLEVEL9K_STATUS_OK_PIPE_VISUAL_IDENTIFIER_EXPANSION='✔'\n  typeset -g POWERLEVEL9K_STATUS_OK_PIPE_FOREGROUND=2\n  typeset -g POWERLEVEL9K_STATUS_OK_PIPE_BACKGROUND=0\n\n  # Status when it's just an error code (e.g., '1'). No need to show it if prompt_char is enabled as\n  # it will signify error by turning red.\n  typeset -g POWERLEVEL9K_STATUS_ERROR=true\n  typeset -g POWERLEVEL9K_STATUS_ERROR_VISUAL_IDENTIFIER_EXPANSION='✘'\n  typeset -g POWERLEVEL9K_STATUS_ERROR_FOREGROUND=3\n  typeset -g POWERLEVEL9K_STATUS_ERROR_BACKGROUND=1\n\n  # Status when the last command was terminated by a signal.\n  typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL=true\n  # Use terse signal names: \"INT\" instead of \"SIGINT(2)\".\n  typeset -g POWERLEVEL9K_STATUS_VERBOSE_SIGNAME=false\n  typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_VISUAL_IDENTIFIER_EXPANSION='✘'\n  typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_FOREGROUND=3\n  typeset -g POWERLEVEL9K_STATUS_ERROR_SIGNAL_BACKGROUND=1\n\n  # Status when some part of a pipe command fails and the overall exit status is also non-zero.\n  # It may look like this: 1|0.\n  typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE=true\n  typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_VISUAL_IDENTIFIER_EXPANSION='✘'\n  typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_FOREGROUND=3\n  typeset -g POWERLEVEL9K_STATUS_ERROR_PIPE_BACKGROUND=1\n\n  ###################[ command_execution_time: duration of the last command ]###################\n  # Execution time color.\n  typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=0\n  typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=3\n  # Show duration of the last command if takes at least this many seconds.\n  typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=3\n  # Show this many fractional digits. Zero means round to seconds.\n  typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION=0\n  # Duration format: 1d 2h 3m 4s.\n  typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FORMAT='d h m s'\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # Custom prefix.\n  # typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_PREFIX='took '\n\n  #######################[ background_jobs: presence of background jobs ]#######################\n  # Background jobs color.\n  typeset -g POWERLEVEL9K_BACKGROUND_JOBS_FOREGROUND=6\n  typeset -g POWERLEVEL9K_BACKGROUND_JOBS_BACKGROUND=0\n  # Don't show the number of background jobs.\n  typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VERBOSE=false\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_BACKGROUND_JOBS_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #######################[ direnv: direnv status (https://direnv.net/) ]########################\n  # Direnv color.\n  typeset -g POWERLEVEL9K_DIRENV_FOREGROUND=3\n  typeset -g POWERLEVEL9K_DIRENV_BACKGROUND=0\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_DIRENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###############[ asdf: asdf version manager (https://github.com/asdf-vm/asdf) ]###############\n  # Default asdf color. Only used to display tools for which there is no color override (see below).\n  # Tip:  Override these parameters for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_FOREGROUND and\n  # POWERLEVEL9K_ASDF_${TOOL}_BACKGROUND.\n  typeset -g POWERLEVEL9K_ASDF_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_BACKGROUND=7\n\n  # There are four parameters that can be used to hide asdf tools. Each parameter describes\n  # conditions under which a tool gets hidden. Parameters can hide tools but not unhide them. If at\n  # least one parameter decides to hide a tool, that tool gets hidden. If no parameter decides to\n  # hide a tool, it gets shown.\n  #\n  # Special note on the difference between POWERLEVEL9K_ASDF_SOURCES and\n  # POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW. Consider the effect of the following commands:\n  #\n  #   asdf local  python 3.8.1\n  #   asdf global python 3.8.1\n  #\n  # After running both commands the current python version is 3.8.1 and its source is \"local\" as\n  # it takes precedence over \"global\". If POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW is set to false,\n  # it'll hide python version in this case because 3.8.1 is the same as the global version.\n  # POWERLEVEL9K_ASDF_SOURCES will hide python version only if the value of this parameter doesn't\n  # contain \"local\".\n\n  # Hide tool versions that don't come from one of these sources.\n  #\n  # Available sources:\n  #\n  # - shell   `asdf current` says \"set by ASDF_${TOOL}_VERSION environment variable\"\n  # - local   `asdf current` says \"set by /some/not/home/directory/file\"\n  # - global  `asdf current` says \"set by /home/username/file\"\n  #\n  # Note: If this parameter is set to (shell local global), it won't hide tools.\n  # Tip:  Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SOURCES.\n  typeset -g POWERLEVEL9K_ASDF_SOURCES=(shell local global)\n\n  # If set to false, hide tool versions that are the same as global.\n  #\n  # Note: The name of this parameter doesn't reflect its meaning at all.\n  # Note: If this parameter is set to true, it won't hide tools.\n  # Tip:  Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_PROMPT_ALWAYS_SHOW.\n  typeset -g POWERLEVEL9K_ASDF_PROMPT_ALWAYS_SHOW=false\n\n  # If set to false, hide tool versions that are equal to \"system\".\n  #\n  # Note: If this parameter is set to true, it won't hide tools.\n  # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_SYSTEM.\n  typeset -g POWERLEVEL9K_ASDF_SHOW_SYSTEM=true\n\n  # If set to non-empty value, hide tools unless there is a file matching the specified file pattern\n  # in the current directory, or its parent directory, or its grandparent directory, and so on.\n  #\n  # Note: If this parameter is set to empty value, it won't hide tools.\n  # Note: SHOW_ON_UPGLOB isn't specific to asdf. It works with all prompt segments.\n  # Tip: Override this parameter for ${TOOL} with POWERLEVEL9K_ASDF_${TOOL}_SHOW_ON_UPGLOB.\n  #\n  # Example: Hide nodejs version when there is no package.json and no *.js files in the current\n  # directory, in `..`, in `../..` and so on.\n  #\n  #   typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.js|package.json'\n  typeset -g POWERLEVEL9K_ASDF_SHOW_ON_UPGLOB=\n\n  # Ruby version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_RUBY_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_RUBY_BACKGROUND=1\n  # typeset -g POWERLEVEL9K_ASDF_RUBY_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_RUBY_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Python version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_PYTHON_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_PYTHON_BACKGROUND=4\n  # typeset -g POWERLEVEL9K_ASDF_PYTHON_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_PYTHON_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Go version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_GOLANG_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_GOLANG_BACKGROUND=4\n  # typeset -g POWERLEVEL9K_ASDF_GOLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_GOLANG_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Node.js version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_NODEJS_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_NODEJS_BACKGROUND=2\n  # typeset -g POWERLEVEL9K_ASDF_NODEJS_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_NODEJS_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Rust version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_RUST_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_RUST_BACKGROUND=208\n  # typeset -g POWERLEVEL9K_ASDF_RUST_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_RUST_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # .NET Core version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_BACKGROUND=5\n  # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_DOTNET_CORE_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Flutter version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_FLUTTER_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_FLUTTER_BACKGROUND=4\n  # typeset -g POWERLEVEL9K_ASDF_FLUTTER_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_FLUTTER_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Lua version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_LUA_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_LUA_BACKGROUND=4\n  # typeset -g POWERLEVEL9K_ASDF_LUA_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_LUA_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Java version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_JAVA_FOREGROUND=1\n  typeset -g POWERLEVEL9K_ASDF_JAVA_BACKGROUND=7\n  # typeset -g POWERLEVEL9K_ASDF_JAVA_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_JAVA_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Perl version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_PERL_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_PERL_BACKGROUND=4\n  # typeset -g POWERLEVEL9K_ASDF_PERL_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_PERL_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Erlang version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_ERLANG_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_ERLANG_BACKGROUND=1\n  # typeset -g POWERLEVEL9K_ASDF_ERLANG_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_ERLANG_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Elixir version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_ELIXIR_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_ELIXIR_BACKGROUND=5\n  # typeset -g POWERLEVEL9K_ASDF_ELIXIR_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_ELIXIR_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Postgres version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_POSTGRES_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_POSTGRES_BACKGROUND=6\n  # typeset -g POWERLEVEL9K_ASDF_POSTGRES_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_POSTGRES_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # PHP version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_PHP_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_PHP_BACKGROUND=5\n  # typeset -g POWERLEVEL9K_ASDF_PHP_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_PHP_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Haskell version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_HASKELL_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_HASKELL_BACKGROUND=3\n  # typeset -g POWERLEVEL9K_ASDF_HASKELL_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_HASKELL_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  # Julia version from asdf.\n  typeset -g POWERLEVEL9K_ASDF_JULIA_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ASDF_JULIA_BACKGROUND=2\n  # typeset -g POWERLEVEL9K_ASDF_JULIA_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # typeset -g POWERLEVEL9K_ASDF_JULIA_SHOW_ON_UPGLOB='*.foo|*.bar'\n\n  ##########[ nordvpn: nordvpn connection status, linux only (https://nordvpn.com/) ]###########\n  # NordVPN connection indicator color.\n  typeset -g POWERLEVEL9K_NORDVPN_FOREGROUND=7\n  typeset -g POWERLEVEL9K_NORDVPN_BACKGROUND=4\n  # Hide NordVPN connection indicator when not connected.\n  typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_CONTENT_EXPANSION=\n  typeset -g POWERLEVEL9K_NORDVPN_{DISCONNECTED,CONNECTING,DISCONNECTING}_VISUAL_IDENTIFIER_EXPANSION=\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_NORDVPN_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #################[ ranger: ranger shell (https://github.com/ranger/ranger) ]##################\n  # Ranger shell color.\n  typeset -g POWERLEVEL9K_RANGER_FOREGROUND=3\n  typeset -g POWERLEVEL9K_RANGER_BACKGROUND=0\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_RANGER_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ######################[ nnn: nnn shell (https://github.com/jarun/nnn) ]#######################\n  # Nnn shell color.\n  typeset -g POWERLEVEL9K_NNN_FOREGROUND=0\n  typeset -g POWERLEVEL9K_NNN_BACKGROUND=6\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_NNN_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##################[ xplr: xplr shell (https://github.com/sayanarijit/xplr) ]##################\n  # xplr shell color.\n  typeset -g POWERLEVEL9K_XPLR_FOREGROUND=0\n  typeset -g POWERLEVEL9K_XPLR_BACKGROUND=6\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_XPLR_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###########################[ vim_shell: vim shell indicator (:sh) ]###########################\n  # Vim shell indicator color.\n  typeset -g POWERLEVEL9K_VIM_SHELL_FOREGROUND=0\n  typeset -g POWERLEVEL9K_VIM_SHELL_BACKGROUND=2\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_VIM_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ######[ midnight_commander: midnight commander shell (https://midnight-commander.org/) ]######\n  # Midnight Commander shell color.\n  typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_FOREGROUND=3\n  typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_BACKGROUND=0\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_MIDNIGHT_COMMANDER_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #[ nix_shell: nix shell (https://nixos.org/nixos/nix-pills/developing-with-nix-shell.html) ]##\n  # Nix shell color.\n  typeset -g POWERLEVEL9K_NIX_SHELL_FOREGROUND=0\n  typeset -g POWERLEVEL9K_NIX_SHELL_BACKGROUND=4\n\n  # Tip: If you want to see just the icon without \"pure\" and \"impure\", uncomment the next line.\n  # typeset -g POWERLEVEL9K_NIX_SHELL_CONTENT_EXPANSION=\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_NIX_SHELL_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##################################[ disk_usage: disk usage ]##################################\n  # Colors for different levels of disk usage.\n  typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_FOREGROUND=3\n  typeset -g POWERLEVEL9K_DISK_USAGE_NORMAL_BACKGROUND=0\n  typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_FOREGROUND=0\n  typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_BACKGROUND=3\n  typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_FOREGROUND=7\n  typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_BACKGROUND=1\n  # Thresholds for different levels of disk usage (percentage points).\n  typeset -g POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL=90\n  typeset -g POWERLEVEL9K_DISK_USAGE_CRITICAL_LEVEL=95\n  # If set to true, hide disk usage when below $POWERLEVEL9K_DISK_USAGE_WARNING_LEVEL percent.\n  typeset -g POWERLEVEL9K_DISK_USAGE_ONLY_WARNING=false\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_DISK_USAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###########[ vi_mode: vi mode (you don't need this if you've enabled prompt_char) ]###########\n  # Foreground color.\n  typeset -g POWERLEVEL9K_VI_MODE_FOREGROUND=0\n  # Text and color for normal (a.k.a. command) vi mode.\n  typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL\n  typeset -g POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=2\n  # Text and color for visual vi mode.\n  typeset -g POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL\n  typeset -g POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=4\n  # Text and color for overtype (a.k.a. overwrite and replace) vi mode.\n  typeset -g POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE\n  typeset -g POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=3\n  # Text and color for insert vi mode.\n  typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING=\n  typeset -g POWERLEVEL9K_VI_MODE_INSERT_FOREGROUND=8\n\n  ######################################[ ram: free RAM ]#######################################\n  # RAM color.\n  typeset -g POWERLEVEL9K_RAM_FOREGROUND=0\n  typeset -g POWERLEVEL9K_RAM_BACKGROUND=3\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_RAM_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #####################################[ swap: used swap ]######################################\n  # Swap color.\n  typeset -g POWERLEVEL9K_SWAP_FOREGROUND=0\n  typeset -g POWERLEVEL9K_SWAP_BACKGROUND=3\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_SWAP_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ######################################[ load: CPU load ]######################################\n  # Show average CPU load over this many last minutes. Valid values are 1, 5 and 15.\n  typeset -g POWERLEVEL9K_LOAD_WHICH=5\n  # Load color when load is under 50%.\n  typeset -g POWERLEVEL9K_LOAD_NORMAL_FOREGROUND=0\n  typeset -g POWERLEVEL9K_LOAD_NORMAL_BACKGROUND=2\n  # Load color when load is between 50% and 70%.\n  typeset -g POWERLEVEL9K_LOAD_WARNING_FOREGROUND=0\n  typeset -g POWERLEVEL9K_LOAD_WARNING_BACKGROUND=3\n  # Load color when load is over 70%.\n  typeset -g POWERLEVEL9K_LOAD_CRITICAL_FOREGROUND=0\n  typeset -g POWERLEVEL9K_LOAD_CRITICAL_BACKGROUND=1\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_LOAD_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ################[ todo: todo items (https://github.com/todotxt/todo.txt-cli) ]################\n  # Todo color.\n  typeset -g POWERLEVEL9K_TODO_FOREGROUND=0\n  typeset -g POWERLEVEL9K_TODO_BACKGROUND=8\n  # Hide todo when the total number of tasks is zero.\n  typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_TOTAL=true\n  # Hide todo when the number of tasks after filtering is zero.\n  typeset -g POWERLEVEL9K_TODO_HIDE_ZERO_FILTERED=false\n\n  # Todo format. The following parameters are available within the expansion.\n  #\n  # - P9K_TODO_TOTAL_TASK_COUNT     The total number of tasks.\n  # - P9K_TODO_FILTERED_TASK_COUNT  The number of tasks after filtering.\n  #\n  # These variables correspond to the last line of the output of `todo.sh -p ls`:\n  #\n  #   TODO: 24 of 42 tasks shown\n  #\n  # Here 24 is P9K_TODO_FILTERED_TASK_COUNT and 42 is P9K_TODO_TOTAL_TASK_COUNT.\n  #\n  # typeset -g POWERLEVEL9K_TODO_CONTENT_EXPANSION='$P9K_TODO_FILTERED_TASK_COUNT'\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_TODO_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###########[ timewarrior: timewarrior tracking status (https://timewarrior.net/) ]############\n  # Timewarrior color.\n  typeset -g POWERLEVEL9K_TIMEWARRIOR_FOREGROUND=255\n  typeset -g POWERLEVEL9K_TIMEWARRIOR_BACKGROUND=8\n\n  # If the tracked task is longer than 24 characters, truncate and append \"…\".\n  # Tip: To always display tasks without truncation, delete the following parameter.\n  # Tip: To hide task names and display just the icon when time tracking is enabled, set the\n  # value of the following parameter to \"\".\n  typeset -g POWERLEVEL9K_TIMEWARRIOR_CONTENT_EXPANSION='${P9K_CONTENT:0:24}${${P9K_CONTENT:24}:+…}'\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_TIMEWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##############[ taskwarrior: taskwarrior task count (https://taskwarrior.org/) ]##############\n  # Taskwarrior color.\n  typeset -g POWERLEVEL9K_TASKWARRIOR_FOREGROUND=0\n  typeset -g POWERLEVEL9K_TASKWARRIOR_BACKGROUND=6\n\n  # Taskwarrior segment format. The following parameters are available within the expansion.\n  #\n  # - P9K_TASKWARRIOR_PENDING_COUNT   The number of pending tasks: `task +PENDING count`.\n  # - P9K_TASKWARRIOR_OVERDUE_COUNT   The number of overdue tasks: `task +OVERDUE count`.\n  #\n  # Zero values are represented as empty parameters.\n  #\n  # The default format:\n  #\n  #   '${P9K_TASKWARRIOR_OVERDUE_COUNT:+\"!$P9K_TASKWARRIOR_OVERDUE_COUNT/\"}$P9K_TASKWARRIOR_PENDING_COUNT'\n  #\n  # typeset -g POWERLEVEL9K_TASKWARRIOR_CONTENT_EXPANSION='$P9K_TASKWARRIOR_PENDING_COUNT'\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_TASKWARRIOR_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ################################[ cpu_arch: CPU architecture ]################################\n  # CPU architecture color.\n  typeset -g POWERLEVEL9K_CPU_ARCH_FOREGROUND=0\n  typeset -g POWERLEVEL9K_CPU_ARCH_BACKGROUND=3\n\n  # Hide the segment when on a specific CPU architecture.\n  # typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_CONTENT_EXPANSION=\n  # typeset -g POWERLEVEL9K_CPU_ARCH_X86_64_VISUAL_IDENTIFIER_EXPANSION=\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_CPU_ARCH_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##################################[ context: user@hostname ]##################################\n  # Context color when running with privileges.\n  typeset -g POWERLEVEL9K_CONTEXT_ROOT_FOREGROUND=1\n  typeset -g POWERLEVEL9K_CONTEXT_ROOT_BACKGROUND=0\n  # Context color in SSH without privileges.\n  typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_FOREGROUND=3\n  typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_BACKGROUND=0\n  # Default context color (no privileges, no SSH).\n  typeset -g POWERLEVEL9K_CONTEXT_FOREGROUND=3\n  typeset -g POWERLEVEL9K_CONTEXT_BACKGROUND=0\n\n  # Context format when running with privileges: user@hostname.\n  typeset -g POWERLEVEL9K_CONTEXT_ROOT_TEMPLATE='%n@%m'\n  # Context format when in SSH without privileges: user@hostname.\n  typeset -g POWERLEVEL9K_CONTEXT_{REMOTE,REMOTE_SUDO}_TEMPLATE='%n@%m'\n  # Default context format (no privileges, no SSH): user@hostname.\n  typeset -g POWERLEVEL9K_CONTEXT_TEMPLATE='%n@%m'\n\n  # Don't show context unless running with privileges or in SSH.\n  # Tip: Remove the next line to always show context.\n  typeset -g POWERLEVEL9K_CONTEXT_{DEFAULT,SUDO}_{CONTENT,VISUAL_IDENTIFIER}_EXPANSION=\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_CONTEXT_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # Custom prefix.\n  # typeset -g POWERLEVEL9K_CONTEXT_PREFIX='with '\n\n  ###[ virtualenv: python virtual environment (https://docs.python.org/3/library/venv.html) ]###\n  # Python virtual environment color.\n  typeset -g POWERLEVEL9K_VIRTUALENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_VIRTUALENV_BACKGROUND=4\n  # Don't show Python version next to the virtual environment name.\n  typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_PYTHON_VERSION=false\n  # If set to \"false\", won't show virtualenv if pyenv is already shown.\n  # If set to \"if-different\", won't show virtualenv if it's the same as pyenv.\n  typeset -g POWERLEVEL9K_VIRTUALENV_SHOW_WITH_PYENV=false\n  # Separate environment name from Python version only with a space.\n  typeset -g POWERLEVEL9K_VIRTUALENV_{LEFT,RIGHT}_DELIMITER=\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_VIRTUALENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #####################[ anaconda: conda environment (https://conda.io/) ]######################\n  # Anaconda environment color.\n  typeset -g POWERLEVEL9K_ANACONDA_FOREGROUND=0\n  typeset -g POWERLEVEL9K_ANACONDA_BACKGROUND=4\n\n  # Anaconda segment format. The following parameters are available within the expansion.\n  #\n  # - CONDA_PREFIX                 Absolute path to the active Anaconda/Miniconda environment.\n  # - CONDA_DEFAULT_ENV            Name of the active Anaconda/Miniconda environment.\n  # - CONDA_PROMPT_MODIFIER        Configurable prompt modifier (see below).\n  # - P9K_ANACONDA_PYTHON_VERSION  Current python version (python --version).\n  #\n  # CONDA_PROMPT_MODIFIER can be configured with the following command:\n  #\n  #   conda config --set env_prompt '({default_env}) '\n  #\n  # The last argument is a Python format string that can use the following variables:\n  #\n  # - prefix       The same as CONDA_PREFIX.\n  # - default_env  The same as CONDA_DEFAULT_ENV.\n  # - name         The last segment of CONDA_PREFIX.\n  # - stacked_env  Comma-separated list of names in the environment stack. The first element is\n  #                always the same as default_env.\n  #\n  # Note: '({default_env}) ' is the default value of env_prompt.\n  #\n  # The default value of POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION expands to $CONDA_PROMPT_MODIFIER\n  # without the surrounding parentheses, or to the last path component of CONDA_PREFIX if the former\n  # is empty.\n  typeset -g POWERLEVEL9K_ANACONDA_CONTENT_EXPANSION='${${${${CONDA_PROMPT_MODIFIER#\\(}% }%\\)}:-${CONDA_PREFIX:t}}'\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_ANACONDA_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ################[ pyenv: python environment (https://github.com/pyenv/pyenv) ]################\n  # Pyenv color.\n  typeset -g POWERLEVEL9K_PYENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_PYENV_BACKGROUND=4\n  # Hide python version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_PYENV_SOURCES=(shell local global)\n  # If set to false, hide python version if it's the same as global:\n  # $(pyenv version-name) == $(pyenv global).\n  typeset -g POWERLEVEL9K_PYENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide python version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_PYENV_SHOW_SYSTEM=true\n\n  # Pyenv segment format. The following parameters are available within the expansion.\n  #\n  # - P9K_CONTENT                Current pyenv environment (pyenv version-name).\n  # - P9K_PYENV_PYTHON_VERSION   Current python version (python --version).\n  #\n  # The default format has the following logic:\n  #\n  # 1. Display just \"$P9K_CONTENT\" if it's equal to \"$P9K_PYENV_PYTHON_VERSION\" or\n  #    starts with \"$P9K_PYENV_PYTHON_VERSION/\".\n  # 2. Otherwise display \"$P9K_CONTENT $P9K_PYENV_PYTHON_VERSION\".\n  typeset -g POWERLEVEL9K_PYENV_CONTENT_EXPANSION='${P9K_CONTENT}${${P9K_CONTENT:#$P9K_PYENV_PYTHON_VERSION(|/*)}:+ $P9K_PYENV_PYTHON_VERSION}'\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PYENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ################[ goenv: go environment (https://github.com/syndbg/goenv) ]################\n  # Goenv color.\n  typeset -g POWERLEVEL9K_GOENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_GOENV_BACKGROUND=4\n  # Hide go version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_GOENV_SOURCES=(shell local global)\n  # If set to false, hide go version if it's the same as global:\n  # $(goenv version-name) == $(goenv global).\n  typeset -g POWERLEVEL9K_GOENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide go version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_GOENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_GOENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##########[ nodenv: node.js version from nodenv (https://github.com/nodenv/nodenv) ]##########\n  # Nodenv color.\n  typeset -g POWERLEVEL9K_NODENV_FOREGROUND=2\n  typeset -g POWERLEVEL9K_NODENV_BACKGROUND=0\n  # Hide node version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_NODENV_SOURCES=(shell local global)\n  # If set to false, hide node version if it's the same as global:\n  # $(nodenv version-name) == $(nodenv global).\n  typeset -g POWERLEVEL9K_NODENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide node version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_NODENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_NODENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##############[ nvm: node.js version from nvm (https://github.com/nvm-sh/nvm) ]###############\n  # Nvm color.\n  typeset -g POWERLEVEL9K_NVM_FOREGROUND=0\n  typeset -g POWERLEVEL9K_NVM_BACKGROUND=5\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_NVM_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ############[ nodeenv: node.js environment (https://github.com/ekalinin/nodeenv) ]############\n  # Nodeenv color.\n  typeset -g POWERLEVEL9K_NODEENV_FOREGROUND=2\n  typeset -g POWERLEVEL9K_NODEENV_BACKGROUND=0\n  # Don't show Node version next to the environment name.\n  typeset -g POWERLEVEL9K_NODEENV_SHOW_NODE_VERSION=false\n  # Separate environment name from Node version only with a space.\n  typeset -g POWERLEVEL9K_NODEENV_{LEFT,RIGHT}_DELIMITER=\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_NODEENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##############################[ node_version: node.js version ]###############################\n  # Node version color.\n  typeset -g POWERLEVEL9K_NODE_VERSION_FOREGROUND=7\n  typeset -g POWERLEVEL9K_NODE_VERSION_BACKGROUND=2\n  # Show node version only when in a directory tree containing package.json.\n  typeset -g POWERLEVEL9K_NODE_VERSION_PROJECT_ONLY=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_NODE_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #######################[ go_version: go version (https://golang.org) ]########################\n  # Go version color.\n  typeset -g POWERLEVEL9K_GO_VERSION_FOREGROUND=255\n  typeset -g POWERLEVEL9K_GO_VERSION_BACKGROUND=2\n  # Show go version only when in a go project subdirectory.\n  typeset -g POWERLEVEL9K_GO_VERSION_PROJECT_ONLY=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_GO_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #################[ rust_version: rustc version (https://www.rust-lang.org) ]##################\n  # Rust version color.\n  typeset -g POWERLEVEL9K_RUST_VERSION_FOREGROUND=0\n  typeset -g POWERLEVEL9K_RUST_VERSION_BACKGROUND=208\n  # Show rust version only when in a rust project subdirectory.\n  typeset -g POWERLEVEL9K_RUST_VERSION_PROJECT_ONLY=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_RUST_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###############[ dotnet_version: .NET version (https://dotnet.microsoft.com) ]################\n  # .NET version color.\n  typeset -g POWERLEVEL9K_DOTNET_VERSION_FOREGROUND=7\n  typeset -g POWERLEVEL9K_DOTNET_VERSION_BACKGROUND=5\n  # Show .NET version only when in a .NET project subdirectory.\n  typeset -g POWERLEVEL9K_DOTNET_VERSION_PROJECT_ONLY=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_DOTNET_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #####################[ php_version: php version (https://www.php.net/) ]######################\n  # PHP version color.\n  typeset -g POWERLEVEL9K_PHP_VERSION_FOREGROUND=0\n  typeset -g POWERLEVEL9K_PHP_VERSION_BACKGROUND=5\n  # Show PHP version only when in a PHP project subdirectory.\n  typeset -g POWERLEVEL9K_PHP_VERSION_PROJECT_ONLY=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PHP_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##########[ laravel_version: laravel php framework version (https://laravel.com/) ]###########\n  # Laravel version color.\n  typeset -g POWERLEVEL9K_LARAVEL_VERSION_FOREGROUND=1\n  typeset -g POWERLEVEL9K_LARAVEL_VERSION_BACKGROUND=7\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_LARAVEL_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #############[ rbenv: ruby version from rbenv (https://github.com/rbenv/rbenv) ]##############\n  # Rbenv color.\n  typeset -g POWERLEVEL9K_RBENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_RBENV_BACKGROUND=1\n  # Hide ruby version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_RBENV_SOURCES=(shell local global)\n  # If set to false, hide ruby version if it's the same as global:\n  # $(rbenv version-name) == $(rbenv global).\n  typeset -g POWERLEVEL9K_RBENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide ruby version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_RBENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_RBENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ####################[ java_version: java version (https://www.java.com/) ]####################\n  # Java version color.\n  typeset -g POWERLEVEL9K_JAVA_VERSION_FOREGROUND=1\n  typeset -g POWERLEVEL9K_JAVA_VERSION_BACKGROUND=7\n  # Show java version only when in a java project subdirectory.\n  typeset -g POWERLEVEL9K_JAVA_VERSION_PROJECT_ONLY=true\n  # Show brief version.\n  typeset -g POWERLEVEL9K_JAVA_VERSION_FULL=false\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_JAVA_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###[ package: name@version from package.json (https://docs.npmjs.com/files/package.json) ]####\n  # Package color.\n  typeset -g POWERLEVEL9K_PACKAGE_FOREGROUND=0\n  typeset -g POWERLEVEL9K_PACKAGE_BACKGROUND=6\n\n  # Package format. The following parameters are available within the expansion.\n  #\n  # - P9K_PACKAGE_NAME     The value of `name` field in package.json.\n  # - P9K_PACKAGE_VERSION  The value of `version` field in package.json.\n  #\n  # typeset -g POWERLEVEL9K_PACKAGE_CONTENT_EXPANSION='${P9K_PACKAGE_NAME//\\%/%%}@${P9K_PACKAGE_VERSION//\\%/%%}'\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PACKAGE_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #######################[ rvm: ruby version from rvm (https://rvm.io) ]########################\n  # Rvm color.\n  typeset -g POWERLEVEL9K_RVM_FOREGROUND=0\n  typeset -g POWERLEVEL9K_RVM_BACKGROUND=240\n  # Don't show @gemset at the end.\n  typeset -g POWERLEVEL9K_RVM_SHOW_GEMSET=false\n  # Don't show ruby- at the front.\n  typeset -g POWERLEVEL9K_RVM_SHOW_PREFIX=false\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_RVM_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###########[ fvm: flutter version management (https://github.com/leoafarias/fvm) ]############\n  # Fvm color.\n  typeset -g POWERLEVEL9K_FVM_FOREGROUND=0\n  typeset -g POWERLEVEL9K_FVM_BACKGROUND=4\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_FVM_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##########[ luaenv: lua version from luaenv (https://github.com/cehoffman/luaenv) ]###########\n  # Lua color.\n  typeset -g POWERLEVEL9K_LUAENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_LUAENV_BACKGROUND=4\n  # Hide lua version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_LUAENV_SOURCES=(shell local global)\n  # If set to false, hide lua version if it's the same as global:\n  # $(luaenv version-name) == $(luaenv global).\n  typeset -g POWERLEVEL9K_LUAENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide lua version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_LUAENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_LUAENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###############[ jenv: java version from jenv (https://github.com/jenv/jenv) ]################\n  # Java color.\n  typeset -g POWERLEVEL9K_JENV_FOREGROUND=1\n  typeset -g POWERLEVEL9K_JENV_BACKGROUND=7\n  # Hide java version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_JENV_SOURCES=(shell local global)\n  # If set to false, hide java version if it's the same as global:\n  # $(jenv version-name) == $(jenv global).\n  typeset -g POWERLEVEL9K_JENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide java version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_JENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_JENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###########[ plenv: perl version from plenv (https://github.com/tokuhirom/plenv) ]############\n  # Perl color.\n  typeset -g POWERLEVEL9K_PLENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_PLENV_BACKGROUND=4\n  # Hide perl version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_PLENV_SOURCES=(shell local global)\n  # If set to false, hide perl version if it's the same as global:\n  # $(plenv version-name) == $(plenv global).\n  typeset -g POWERLEVEL9K_PLENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide perl version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_PLENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PLENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###########[ perlbrew: perl version from perlbrew (https://github.com/gugod/App-perlbrew) ]############\n  # Perlbrew color.\n  typeset -g POWERLEVEL9K_PERLBREW_FOREGROUND=67\n  # Show perlbrew version only when in a perl project subdirectory.\n  typeset -g POWERLEVEL9K_PERLBREW_PROJECT_ONLY=true\n  # Don't show \"perl-\" at the front.\n  typeset -g POWERLEVEL9K_PERLBREW_SHOW_PREFIX=false\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PERLBREW_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ############[ phpenv: php version from phpenv (https://github.com/phpenv/phpenv) ]############\n  # PHP color.\n  typeset -g POWERLEVEL9K_PHPENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_PHPENV_BACKGROUND=5\n  # Hide php version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_PHPENV_SOURCES=(shell local global)\n  # If set to false, hide php version if it's the same as global:\n  # $(phpenv version-name) == $(phpenv global).\n  typeset -g POWERLEVEL9K_PHPENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide PHP version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_PHPENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PHPENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #######[ scalaenv: scala version from scalaenv (https://github.com/scalaenv/scalaenv) ]#######\n  # Scala color.\n  typeset -g POWERLEVEL9K_SCALAENV_FOREGROUND=0\n  typeset -g POWERLEVEL9K_SCALAENV_BACKGROUND=1\n  # Hide scala version if it doesn't come from one of these sources.\n  typeset -g POWERLEVEL9K_SCALAENV_SOURCES=(shell local global)\n  # If set to false, hide scala version if it's the same as global:\n  # $(scalaenv version-name) == $(scalaenv global).\n  typeset -g POWERLEVEL9K_SCALAENV_PROMPT_ALWAYS_SHOW=false\n  # If set to false, hide scala version if it's equal to \"system\".\n  typeset -g POWERLEVEL9K_SCALAENV_SHOW_SYSTEM=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_SCALAENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##########[ haskell_stack: haskell version from stack (https://haskellstack.org/) ]###########\n  # Haskell color.\n  typeset -g POWERLEVEL9K_HASKELL_STACK_FOREGROUND=0\n  typeset -g POWERLEVEL9K_HASKELL_STACK_BACKGROUND=3\n\n  # Hide haskell version if it doesn't come from one of these sources.\n  #\n  #   shell:  version is set by STACK_YAML\n  #   local:  version is set by stack.yaml up the directory tree\n  #   global: version is set by the implicit global project (~/.stack/global-project/stack.yaml)\n  typeset -g POWERLEVEL9K_HASKELL_STACK_SOURCES=(shell local)\n  # If set to false, hide haskell version if it's the same as in the implicit global project.\n  typeset -g POWERLEVEL9K_HASKELL_STACK_ALWAYS_SHOW=true\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_HASKELL_STACK_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ################[ terraform: terraform workspace (https://www.terraform.io) ]#################\n  # Don't show terraform workspace if it's literally \"default\".\n  typeset -g POWERLEVEL9K_TERRAFORM_SHOW_DEFAULT=false\n  # POWERLEVEL9K_TERRAFORM_CLASSES is an array with even number of elements. The first element\n  # in each pair defines a pattern against which the current terraform workspace gets matched.\n  # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)\n  # that gets matched. If you unset all POWERLEVEL9K_TERRAFORM_*CONTENT_EXPANSION parameters,\n  # you'll see this value in your prompt. The second element of each pair in\n  # POWERLEVEL9K_TERRAFORM_CLASSES defines the workspace class. Patterns are tried in order. The\n  # first match wins.\n  #\n  # For example, given these settings:\n  #\n  #   typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(\n  #     '*prod*'  PROD\n  #     '*test*'  TEST\n  #     '*'       OTHER)\n  #\n  # If your current terraform workspace is \"project_test\", its class is TEST because \"project_test\"\n  # doesn't match the pattern '*prod*' but does match '*test*'.\n  #\n  # You can define different colors, icons and content expansions for different classes:\n  #\n  #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_FOREGROUND=2\n  #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_BACKGROUND=0\n  #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  #   typeset -g POWERLEVEL9K_TERRAFORM_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'\n  typeset -g POWERLEVEL9K_TERRAFORM_CLASSES=(\n      # '*prod*'  PROD    # These values are examples that are unlikely\n      # '*test*'  TEST    # to match your needs. Customize them as needed.\n      '*'         OTHER)\n  typeset -g POWERLEVEL9K_TERRAFORM_OTHER_FOREGROUND=4\n  typeset -g POWERLEVEL9K_TERRAFORM_OTHER_BACKGROUND=0\n  # typeset -g POWERLEVEL9K_TERRAFORM_OTHER_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #############[ terraform_version: terraform version (https://www.terraform.io) ]##############\n  # Terraform version color.\n  typeset -g POWERLEVEL9K_TERRAFORM_VERSION_FOREGROUND=4\n  typeset -g POWERLEVEL9K_TERRAFORM_VERSION_BACKGROUND=0\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_TERRAFORM_VERSION_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ################[ terraform_version: It shows active terraform version (https://www.terraform.io) ]#################\n  typeset -g POWERLEVEL9K_TERRAFORM_VERSION_SHOW_ON_COMMAND='terraform|tf'\n\n  #############[ kubecontext: current kubernetes context (https://kubernetes.io/) ]#############\n  # Show kubecontext only when the command you are typing invokes one of these tools.\n  # Tip: Remove the next line to always show kubecontext.\n  typeset -g POWERLEVEL9K_KUBECONTEXT_SHOW_ON_COMMAND='kubectl|helm|kubens|kubectx|oc|istioctl|kogito|k9s|helmfile|flux|fluxctl|stern|kubeseal|skaffold'\n\n  # Kubernetes context classes for the purpose of using different colors, icons and expansions with\n  # different contexts.\n  #\n  # POWERLEVEL9K_KUBECONTEXT_CLASSES is an array with even number of elements. The first element\n  # in each pair defines a pattern against which the current kubernetes context gets matched.\n  # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)\n  # that gets matched. If you unset all POWERLEVEL9K_KUBECONTEXT_*CONTENT_EXPANSION parameters,\n  # you'll see this value in your prompt. The second element of each pair in\n  # POWERLEVEL9K_KUBECONTEXT_CLASSES defines the context class. Patterns are tried in order. The\n  # first match wins.\n  #\n  # For example, given these settings:\n  #\n  #   typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(\n  #     '*prod*'  PROD\n  #     '*test*'  TEST\n  #     '*'       DEFAULT)\n  #\n  # If your current kubernetes context is \"deathray-testing/default\", its class is TEST\n  # because \"deathray-testing/default\" doesn't match the pattern '*prod*' but does match '*test*'.\n  #\n  # You can define different colors, icons and content expansions for different classes:\n  #\n  #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_FOREGROUND=0\n  #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_BACKGROUND=2\n  #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  #   typeset -g POWERLEVEL9K_KUBECONTEXT_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'\n  typeset -g POWERLEVEL9K_KUBECONTEXT_CLASSES=(\n      # '*prod*'  PROD    # These values are examples that are unlikely\n      # '*test*'  TEST    # to match your needs. Customize them as needed.\n      '*'       DEFAULT)\n  typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_FOREGROUND=7\n  typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_BACKGROUND=5\n  # typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  # Use POWERLEVEL9K_KUBECONTEXT_CONTENT_EXPANSION to specify the content displayed by kubecontext\n  # segment. Parameter expansions are very flexible and fast, too. See reference:\n  # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.\n  #\n  # Within the expansion the following parameters are always available:\n  #\n  # - P9K_CONTENT                The content that would've been displayed if there was no content\n  #                              expansion defined.\n  # - P9K_KUBECONTEXT_NAME       The current context's name. Corresponds to column NAME in the\n  #                              output of `kubectl config get-contexts`.\n  # - P9K_KUBECONTEXT_CLUSTER    The current context's cluster. Corresponds to column CLUSTER in the\n  #                              output of `kubectl config get-contexts`.\n  # - P9K_KUBECONTEXT_NAMESPACE  The current context's namespace. Corresponds to column NAMESPACE\n  #                              in the output of `kubectl config get-contexts`. If there is no\n  #                              namespace, the parameter is set to \"default\".\n  # - P9K_KUBECONTEXT_USER       The current context's user. Corresponds to column AUTHINFO in the\n  #                              output of `kubectl config get-contexts`.\n  #\n  # If the context points to Google Kubernetes Engine (GKE) or Elastic Kubernetes Service (EKS),\n  # the following extra parameters are available:\n  #\n  # - P9K_KUBECONTEXT_CLOUD_NAME     Either \"gke\" or \"eks\".\n  # - P9K_KUBECONTEXT_CLOUD_ACCOUNT  Account/project ID.\n  # - P9K_KUBECONTEXT_CLOUD_ZONE     Availability zone.\n  # - P9K_KUBECONTEXT_CLOUD_CLUSTER  Cluster.\n  #\n  # P9K_KUBECONTEXT_CLOUD_* parameters are derived from P9K_KUBECONTEXT_CLUSTER. For example,\n  # if P9K_KUBECONTEXT_CLUSTER is \"gke_my-account_us-east1-a_my-cluster-01\":\n  #\n  #   - P9K_KUBECONTEXT_CLOUD_NAME=gke\n  #   - P9K_KUBECONTEXT_CLOUD_ACCOUNT=my-account\n  #   - P9K_KUBECONTEXT_CLOUD_ZONE=us-east1-a\n  #   - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01\n  #\n  # If P9K_KUBECONTEXT_CLUSTER is \"arn:aws:eks:us-east-1:123456789012:cluster/my-cluster-01\":\n  #\n  #   - P9K_KUBECONTEXT_CLOUD_NAME=eks\n  #   - P9K_KUBECONTEXT_CLOUD_ACCOUNT=123456789012\n  #   - P9K_KUBECONTEXT_CLOUD_ZONE=us-east-1\n  #   - P9K_KUBECONTEXT_CLOUD_CLUSTER=my-cluster-01\n  typeset -g POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION=\n  # Show P9K_KUBECONTEXT_CLOUD_CLUSTER if it's not empty and fall back to P9K_KUBECONTEXT_NAME.\n  POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${P9K_KUBECONTEXT_CLOUD_CLUSTER:-${P9K_KUBECONTEXT_NAME}}'\n  # Append the current context's namespace if it's not \"default\".\n  POWERLEVEL9K_KUBECONTEXT_DEFAULT_CONTENT_EXPANSION+='${${:-/$P9K_KUBECONTEXT_NAMESPACE}:#/default}'\n\n  # Custom prefix.\n  # typeset -g POWERLEVEL9K_KUBECONTEXT_PREFIX='at '\n\n  #[ aws: aws profile (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-profiles.html) ]#\n  # Show aws only when the command you are typing invokes one of these tools.\n  # Tip: Remove the next line to always show aws.\n  typeset -g POWERLEVEL9K_AWS_SHOW_ON_COMMAND='aws|awless|terraform|pulumi|terragrunt'\n\n  # POWERLEVEL9K_AWS_CLASSES is an array with even number of elements. The first element\n  # in each pair defines a pattern against which the current AWS profile gets matched.\n  # More specifically, it's P9K_CONTENT prior to the application of context expansion (see below)\n  # that gets matched. If you unset all POWERLEVEL9K_AWS_*CONTENT_EXPANSION parameters,\n  # you'll see this value in your prompt. The second element of each pair in\n  # POWERLEVEL9K_AWS_CLASSES defines the profile class. Patterns are tried in order. The\n  # first match wins.\n  #\n  # For example, given these settings:\n  #\n  #   typeset -g POWERLEVEL9K_AWS_CLASSES=(\n  #     '*prod*'  PROD\n  #     '*test*'  TEST\n  #     '*'       DEFAULT)\n  #\n  # If your current AWS profile is \"company_test\", its class is TEST\n  # because \"company_test\" doesn't match the pattern '*prod*' but does match '*test*'.\n  #\n  # You can define different colors, icons and content expansions for different classes:\n  #\n  #   typeset -g POWERLEVEL9K_AWS_TEST_FOREGROUND=28\n  #   typeset -g POWERLEVEL9K_AWS_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  #   typeset -g POWERLEVEL9K_AWS_TEST_CONTENT_EXPANSION='> ${P9K_CONTENT} <'\n  typeset -g POWERLEVEL9K_AWS_CLASSES=(\n      # '*prod*'  PROD    # These values are examples that are unlikely\n      # '*test*'  TEST    # to match your needs. Customize them as needed.\n      '*'       DEFAULT)\n  typeset -g POWERLEVEL9K_AWS_DEFAULT_FOREGROUND=7\n  typeset -g POWERLEVEL9K_AWS_DEFAULT_BACKGROUND=1\n  # typeset -g POWERLEVEL9K_AWS_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  # AWS segment format. The following parameters are available within the expansion.\n  #\n  # - P9K_AWS_PROFILE  The name of the current AWS profile.\n  # - P9K_AWS_REGION   The region associated with the current AWS profile.\n  typeset -g POWERLEVEL9K_AWS_CONTENT_EXPANSION='${P9K_AWS_PROFILE//\\%/%%}${P9K_AWS_REGION:+ ${P9K_AWS_REGION//\\%/%%}}'\n\n  #[ aws_eb_env: aws elastic beanstalk environment (https://aws.amazon.com/elasticbeanstalk/) ]#\n  # AWS Elastic Beanstalk environment color.\n  typeset -g POWERLEVEL9K_AWS_EB_ENV_FOREGROUND=2\n  typeset -g POWERLEVEL9K_AWS_EB_ENV_BACKGROUND=0\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_AWS_EB_ENV_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##########[ azure: azure account name (https://docs.microsoft.com/en-us/cli/azure) ]##########\n  # Show azure only when the command you are typing invokes one of these tools.\n  # Tip: Remove the next line to always show azure.\n  typeset -g POWERLEVEL9K_AZURE_SHOW_ON_COMMAND='az|terraform|pulumi|terragrunt'\n  # Azure account name color.\n  typeset -g POWERLEVEL9K_AZURE_FOREGROUND=7\n  typeset -g POWERLEVEL9K_AZURE_BACKGROUND=4\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_AZURE_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ##########[ gcloud: google cloud account and project (https://cloud.google.com/) ]###########\n  # Show gcloud only when the command you are typing invokes one of these tools.\n  # Tip: Remove the next line to always show gcloud.\n  typeset -g POWERLEVEL9K_GCLOUD_SHOW_ON_COMMAND='gcloud|gcs|gsutil'\n  # Google cloud color.\n  typeset -g POWERLEVEL9K_GCLOUD_FOREGROUND=7\n  typeset -g POWERLEVEL9K_GCLOUD_BACKGROUND=4\n\n  # Google cloud format. Change the value of POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION and/or\n  # POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION if the default is too verbose or not informative\n  # enough. You can use the following parameters in the expansions. Each of them corresponds to the\n  # output of `gcloud` tool.\n  #\n  #   Parameter                | Source\n  #   -------------------------|--------------------------------------------------------------------\n  #   P9K_GCLOUD_CONFIGURATION | gcloud config configurations list --format='value(name)'\n  #   P9K_GCLOUD_ACCOUNT       | gcloud config get-value account\n  #   P9K_GCLOUD_PROJECT_ID    | gcloud config get-value project\n  #   P9K_GCLOUD_PROJECT_NAME  | gcloud projects describe $P9K_GCLOUD_PROJECT_ID --format='value(name)'\n  #\n  # Note: ${VARIABLE//\\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced with '%%'.\n  #\n  # Obtaining project name requires sending a request to Google servers. This can take a long time\n  # and even fail. When project name is unknown, P9K_GCLOUD_PROJECT_NAME is not set and gcloud\n  # prompt segment is in state PARTIAL. When project name gets known, P9K_GCLOUD_PROJECT_NAME gets\n  # set and gcloud prompt segment transitions to state COMPLETE.\n  #\n  # You can customize the format, icon and colors of gcloud segment separately for states PARTIAL\n  # and COMPLETE. You can also hide gcloud in state PARTIAL by setting\n  # POWERLEVEL9K_GCLOUD_PARTIAL_VISUAL_IDENTIFIER_EXPANSION and\n  # POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION to empty.\n  typeset -g POWERLEVEL9K_GCLOUD_PARTIAL_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_ID//\\%/%%}'\n  typeset -g POWERLEVEL9K_GCLOUD_COMPLETE_CONTENT_EXPANSION='${P9K_GCLOUD_PROJECT_NAME//\\%/%%}'\n\n  # Send a request to Google (by means of `gcloud projects describe ...`) to obtain project name\n  # this often. Negative value disables periodic polling. In this mode project name is retrieved\n  # only when the current configuration, account or project id changes.\n  typeset -g POWERLEVEL9K_GCLOUD_REFRESH_PROJECT_NAME_SECONDS=60\n\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_GCLOUD_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #[ google_app_cred: google application credentials (https://cloud.google.com/docs/authentication/production) ]#\n  # Show google_app_cred only when the command you are typing invokes one of these tools.\n  # Tip: Remove the next line to always show google_app_cred.\n  typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_SHOW_ON_COMMAND='terraform|pulumi|terragrunt'\n\n  # Google application credentials classes for the purpose of using different colors, icons and\n  # expansions with different credentials.\n  #\n  # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES is an array with even number of elements. The first\n  # element in each pair defines a pattern against which the current kubernetes context gets\n  # matched. More specifically, it's P9K_CONTENT prior to the application of context expansion\n  # (see below) that gets matched. If you unset all POWERLEVEL9K_GOOGLE_APP_CRED_*CONTENT_EXPANSION\n  # parameters, you'll see this value in your prompt. The second element of each pair in\n  # POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES defines the context class. Patterns are tried in order.\n  # The first match wins.\n  #\n  # For example, given these settings:\n  #\n  #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(\n  #     '*:*prod*:*'  PROD\n  #     '*:*test*:*'  TEST\n  #     '*'           DEFAULT)\n  #\n  # If your current Google application credentials is \"service_account deathray-testing x@y.com\",\n  # its class is TEST because it doesn't match the pattern '* *prod* *' but does match '* *test* *'.\n  #\n  # You can define different colors, icons and content expansions for different classes:\n  #\n  #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_FOREGROUND=28\n  #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  #   typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_TEST_CONTENT_EXPANSION='$P9K_GOOGLE_APP_CRED_PROJECT_ID'\n  typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_CLASSES=(\n      # '*:*prod*:*'  PROD    # These values are examples that are unlikely\n      # '*:*test*:*'  TEST    # to match your needs. Customize them as needed.\n      '*'             DEFAULT)\n  typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_FOREGROUND=7\n  typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_BACKGROUND=4\n  # typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  # Use POWERLEVEL9K_GOOGLE_APP_CRED_CONTENT_EXPANSION to specify the content displayed by\n  # google_app_cred segment. Parameter expansions are very flexible and fast, too. See reference:\n  # http://zsh.sourceforge.net/Doc/Release/Expansion.html#Parameter-Expansion.\n  #\n  # You can use the following parameters in the expansion. Each of them corresponds to one of the\n  # fields in the JSON file pointed to by GOOGLE_APPLICATION_CREDENTIALS.\n  #\n  #   Parameter                        | JSON key file field\n  #   ---------------------------------+---------------\n  #   P9K_GOOGLE_APP_CRED_TYPE         | type\n  #   P9K_GOOGLE_APP_CRED_PROJECT_ID   | project_id\n  #   P9K_GOOGLE_APP_CRED_CLIENT_EMAIL | client_email\n  #\n  # Note: ${VARIABLE//\\%/%%} expands to ${VARIABLE} with all occurrences of '%' replaced by '%%'.\n  typeset -g POWERLEVEL9K_GOOGLE_APP_CRED_DEFAULT_CONTENT_EXPANSION='${P9K_GOOGLE_APP_CRED_PROJECT_ID//\\%/%%}'\n\n  ##############[ toolbox: toolbox name (https://github.com/containers/toolbox) ]###############\n  # Toolbox color.\n  typeset -g POWERLEVEL9K_TOOLBOX_FOREGROUND=0\n  typeset -g POWERLEVEL9K_TOOLBOX_BACKGROUND=3\n  # Don't display the name of the toolbox if it matches fedora-toolbox-*.\n  typeset -g POWERLEVEL9K_TOOLBOX_CONTENT_EXPANSION='${P9K_TOOLBOX_NAME:#fedora-toolbox-*}'\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_TOOLBOX_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # Custom prefix.\n  # typeset -g POWERLEVEL9K_TOOLBOX_PREFIX='in '\n\n  ###############################[ public_ip: public IP address ]###############################\n  # Public IP color.\n  typeset -g POWERLEVEL9K_PUBLIC_IP_FOREGROUND=7\n  typeset -g POWERLEVEL9K_PUBLIC_IP_BACKGROUND=0\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PUBLIC_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ########################[ vpn_ip: virtual private network indicator ]#########################\n  # VPN IP color.\n  typeset -g POWERLEVEL9K_VPN_IP_FOREGROUND=0\n  typeset -g POWERLEVEL9K_VPN_IP_BACKGROUND=6\n  # When on VPN, show just an icon without the IP address.\n  # Tip: To display the private IP address when on VPN, remove the next line.\n  typeset -g POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION=\n  # Regular expression for the VPN network interface. Run `ifconfig` or `ip -4 a show` while on VPN\n  # to see the name of the interface.\n  typeset -g POWERLEVEL9K_VPN_IP_INTERFACE='(gpd|wg|(.*tun)|tailscale)[0-9]*'\n  # If set to true, show one segment per matching network interface. If set to false, show only\n  # one segment corresponding to the first matching network interface.\n  # Tip: If you set it to true, you'll probably want to unset POWERLEVEL9K_VPN_IP_CONTENT_EXPANSION.\n  typeset -g POWERLEVEL9K_VPN_IP_SHOW_ALL=false\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_VPN_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ###########[ ip: ip address and bandwidth usage for a specified network interface ]###########\n  # IP color.\n  typeset -g POWERLEVEL9K_IP_BACKGROUND=4\n  typeset -g POWERLEVEL9K_IP_FOREGROUND=0\n  # The following parameters are accessible within the expansion:\n  #\n  #   Parameter             | Meaning\n  #   ----------------------+-------------------------------------------\n  #   P9K_IP_IP             | IP address\n  #   P9K_IP_INTERFACE      | network interface\n  #   P9K_IP_RX_BYTES       | total number of bytes received\n  #   P9K_IP_TX_BYTES       | total number of bytes sent\n  #   P9K_IP_RX_BYTES_DELTA | number of bytes received since last prompt\n  #   P9K_IP_TX_BYTES_DELTA | number of bytes sent since last prompt\n  #   P9K_IP_RX_RATE        | receive rate (since last prompt)\n  #   P9K_IP_TX_RATE        | send rate (since last prompt)\n  typeset -g POWERLEVEL9K_IP_CONTENT_EXPANSION='${P9K_IP_RX_RATE:+⇣$P9K_IP_RX_RATE }${P9K_IP_TX_RATE:+⇡$P9K_IP_TX_RATE }$P9K_IP_IP'\n  # Show information for the first network interface whose name matches this regular expression.\n  # Run `ifconfig` or `ip -4 a show` to see the names of all network interfaces.\n  typeset -g POWERLEVEL9K_IP_INTERFACE='[ew].*'\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_IP_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  #########################[ proxy: system-wide http/https/ftp proxy ]##########################\n  # Proxy color.\n  typeset -g POWERLEVEL9K_PROXY_FOREGROUND=4\n  typeset -g POWERLEVEL9K_PROXY_BACKGROUND=0\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_PROXY_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  ################################[ battery: internal battery ]#################################\n  # Show battery in red when it's below this level and not connected to power supply.\n  typeset -g POWERLEVEL9K_BATTERY_LOW_THRESHOLD=20\n  typeset -g POWERLEVEL9K_BATTERY_LOW_FOREGROUND=1\n  # Show battery in green when it's charging or fully charged.\n  typeset -g POWERLEVEL9K_BATTERY_{CHARGING,CHARGED}_FOREGROUND=2\n  # Show battery in yellow when it's discharging.\n  typeset -g POWERLEVEL9K_BATTERY_DISCONNECTED_FOREGROUND=3\n  # Battery pictograms going from low to high level of charge.\n  typeset -g POWERLEVEL9K_BATTERY_STAGES='\\uf58d\\uf579\\uf57a\\uf57b\\uf57c\\uf57d\\uf57e\\uf57f\\uf580\\uf581\\uf578'\n  # Don't show the remaining time to charge/discharge.\n  typeset -g POWERLEVEL9K_BATTERY_VERBOSE=false\n  typeset -g POWERLEVEL9K_BATTERY_BACKGROUND=0\n\n  #####################################[ wifi: wifi speed ]#####################################\n  # WiFi color.\n  typeset -g POWERLEVEL9K_WIFI_FOREGROUND=0\n  typeset -g POWERLEVEL9K_WIFI_BACKGROUND=4\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  # Use different colors and icons depending on signal strength ($P9K_WIFI_BARS).\n  #\n  #   # Wifi colors and icons for different signal strength levels (low to high).\n  #   typeset -g my_wifi_fg=(0 0 0 0 0)                                # <-- change these values\n  #   typeset -g my_wifi_icon=('WiFi' 'WiFi' 'WiFi' 'WiFi' 'WiFi')     # <-- change these values\n  #\n  #   typeset -g POWERLEVEL9K_WIFI_CONTENT_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}$P9K_WIFI_LAST_TX_RATE Mbps'\n  #   typeset -g POWERLEVEL9K_WIFI_VISUAL_IDENTIFIER_EXPANSION='%F{${my_wifi_fg[P9K_WIFI_BARS+1]}}${my_wifi_icon[P9K_WIFI_BARS+1]}'\n  #\n  # The following parameters are accessible within the expansions:\n  #\n  #   Parameter             | Meaning\n  #   ----------------------+---------------\n  #   P9K_WIFI_SSID         | service set identifier, a.k.a. network name\n  #   P9K_WIFI_LINK_AUTH    | authentication protocol such as \"wpa2-psk\" or \"none\"; empty if unknown\n  #   P9K_WIFI_LAST_TX_RATE | wireless transmit rate in megabits per second\n  #   P9K_WIFI_RSSI         | signal strength in dBm, from -120 to 0\n  #   P9K_WIFI_NOISE        | noise in dBm, from -120 to 0\n  #   P9K_WIFI_BARS         | signal strength in bars, from 0 to 4 (derived from P9K_WIFI_RSSI and P9K_WIFI_NOISE)\n\n  ####################################[ time: current time ]####################################\n  # Current time color.\n  typeset -g POWERLEVEL9K_TIME_FOREGROUND=0\n  typeset -g POWERLEVEL9K_TIME_BACKGROUND=7\n  # Format for the current time: 09:51:02. See `man 3 strftime`.\n  typeset -g POWERLEVEL9K_TIME_FORMAT='%D{%H:%M:%S}'\n  # If set to true, time will update when you hit enter. This way prompts for the past\n  # commands will contain the start times of their commands as opposed to the default\n  # behavior where they contain the end times of their preceding commands.\n  typeset -g POWERLEVEL9K_TIME_UPDATE_ON_COMMAND=false\n  # Custom icon.\n  # typeset -g POWERLEVEL9K_TIME_VISUAL_IDENTIFIER_EXPANSION='⭐'\n  # Custom prefix.\n  # typeset -g POWERLEVEL9K_TIME_PREFIX='at '\n\n  # Example of a user-defined prompt segment. Function prompt_example will be called on every\n  # prompt if `example` prompt segment is added to POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or\n  # POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS. It displays an icon and yellow text on red background\n  # greeting the user.\n  #\n  # Type `p10k help segment` for documentation and a more sophisticated example.\n  function prompt_example() {\n    p10k segment -b 1 -f 3 -i '⭐' -t 'hello, %n'\n  }\n\n  # User-defined prompt segments may optionally provide an instant_prompt_* function. Its job\n  # is to generate the prompt segment for display in instant prompt. See\n  # https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.\n  #\n  # Powerlevel10k will call instant_prompt_* at the same time as the regular prompt_* function\n  # and will record all `p10k segment` calls it makes. When displaying instant prompt, Powerlevel10k\n  # will replay these calls without actually calling instant_prompt_*. It is imperative that\n  # instant_prompt_* always makes the same `p10k segment` calls regardless of environment. If this\n  # rule is not observed, the content of instant prompt will be incorrect.\n  #\n  # Usually, you should either not define instant_prompt_* or simply call prompt_* from it. If\n  # instant_prompt_* is not defined for a segment, the segment won't be shown in instant prompt.\n  function instant_prompt_example() {\n    # Since prompt_example always makes the same `p10k segment` calls, we can call it from\n    # instant_prompt_example. This will give us the same `example` prompt segment in the instant\n    # and regular prompts.\n    prompt_example\n  }\n\n  # User-defined prompt segments can be customized the same way as built-in segments.\n  typeset -g POWERLEVEL9K_EXAMPLE_FOREGROUND=3\n  typeset -g POWERLEVEL9K_EXAMPLE_BACKGROUND=1\n  # typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='⭐'\n\n  # Transient prompt works similarly to the builtin transient_rprompt option. It trims down prompt\n  # when accepting a command line. Supported values:\n  #\n  #   - off:      Don't change prompt when accepting a command line.\n  #   - always:   Trim down prompt when accepting a command line.\n  #   - same-dir: Trim down prompt when accepting a command line unless this is the first command\n  #               typed after changing current working directory.\n  typeset -g POWERLEVEL9K_TRANSIENT_PROMPT=off\n\n  # Instant prompt mode.\n  #\n  #   - off:     Disable instant prompt. Choose this if you've tried instant prompt and found\n  #              it incompatible with your zsh configuration files.\n  #   - quiet:   Enable instant prompt and don't print warnings when detecting console output\n  #              during zsh initialization. Choose this if you've read and understood\n  #              https://github.com/romkatv/powerlevel10k/blob/master/README.md#instant-prompt.\n  #   - verbose: Enable instant prompt and print a warning when detecting console output during\n  #              zsh initialization. Choose this if you've never tried instant prompt, haven't\n  #              seen the warning, or if you are unsure what this all means.\n  typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose\n\n  # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.\n  # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload\n  # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you\n  # really need it.\n  typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true\n\n  # If p10k is already loaded, reload configuration.\n  # This works even with POWERLEVEL9K_DISABLE_HOT_RELOAD=true.\n  (( ! $+functions[p10k] )) || p10k reload\n}\n\n# Tell `p10k configure` which file it should overwrite.\ntypeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a}\n\n(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}\n'builtin' 'unset' 'p10k_config_opts'\n"
  },
  {
    "path": "zsh/.zshrc",
    "content": "# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.\n# Initialization code that may require console input (password prompts, [y/n]\n# confirmations, etc.) must go above this block; everything else may go below.\nif [[ -r \"${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh\" ]]; then\n  source \"${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh\"\nfi\n\n# If you come from bash you might have to change your $PATH.\n export PATH=$HOME/.local/bin:$PATH\n export PATH=\"$HOME/.local/lib/python3.10/sitepackages/:$PATH\"\n export PATH=\"$HOME/tools/llvm-project/build/bin:$PATH\"\n export LD_LIBRARY_PATH=\"$HOME/tools/llvm-project/build/lib:$LD_LIBRARY_PATH\"\n export EDITOR=nvim\n# Path to your oh-my-zsh installation.\nZSH=/usr/share/oh-my-zsh/\n\n# Set name of the theme to load --- if set to \"random\", it will\n# load a random theme each time oh-my-zsh is loaded, in which case,\n# to know which specific one was loaded, run: echo $RANDOM_THEME\n# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes\n\nalias weather=\"tempy montreal -u metric\"\nalias ls='lsd -a'\n\n# Set list of themes to pick from when loading at random\n# Setting this variable when ZSH_THEME=random will cause zsh to load\n# a theme from this variable instead of looking in $ZSH/themes/\n# If set to an empty array, this variable will have no effect.\n# ZSH_THEME_RANDOM_CANDIDATES=( \"robbyrussell\" \"agnoster\" )\nZSH_THEME=\"powerlevel10k/powerlevel10k\"\n\n# Uncomment the following line to use case-sensitive completion.\n# CASE_SENSITIVE=\"true\"\n\n# Uncomment the following line to use hyphen-insensitive completion.\n# Case-sensitive completion must be off. _ and - will be interchangeable.\n# HYPHEN_INSENSITIVE=\"true\"\n\n# Uncomment one of the following lines to change the auto-update behavior\n# zstyle ':omz:update' mode disabled  # disable automatic updates\n# zstyle ':omz:update' mode auto      # update automatically without asking\n# zstyle ':omz:update' mode reminder  # just remind me to update when it's time\n\n# Uncomment the following line to change how often to auto-update (in days).\n# zstyle ':omz:update' frequency 13\n\n# Uncomment the following line if pasting URLs and other text is messed up.\n# DISABLE_MAGIC_FUNCTIONS=\"true\"\n\n# Uncomment the following line to disable colors in ls.\n# DISABLE_LS_COLORS=\"true\"\n\n# Uncomment the following line to disable auto-setting terminal title.\n# DISABLE_AUTO_TITLE=\"true\"\n\n# Uncomment the following line to enable command auto-correction.\n# ENABLE_CORRECTION=\"true\"\n\n# Uncomment the following line to display red dots whilst waiting for completion.\n# You can also set it to another string to have that shown instead of the default red dots.\n# e.g. COMPLETION_WAITING_DOTS=\"%F{yellow}waiting...%f\"\n# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)\n# COMPLETION_WAITING_DOTS=\"true\"\n\n# Uncomment the following line if you want to disable marking untracked files\n# under VCS as dirty. This makes repository status check for large repositories\n# much, much faster.\n# DISABLE_UNTRACKED_FILES_DIRTY=\"true\"\n\n# Uncomment the following line if you want to change the command execution time\n# stamp shown in the history command output.\n# You can set one of the optional three formats:\n# \"mm/dd/yyyy\"|\"dd.mm.yyyy\"|\"yyyy-mm-dd\"\n# or set a custom format using the strftime function format specifications,\n# see 'man strftime' for details.\n# HIST_STAMPS=\"mm/dd/yyyy\"\n\n# Would you like to use another custom folder than $ZSH/custom?\n# ZSH_CUSTOM=/path/to/new-custom-folder\n\n# Which plugins would you like to load?\n# Standard plugins can be found in $ZSH/plugins/\n# Custom plugins may be added to $ZSH_CUSTOM/plugins/\n# Example format: plugins=(rails git textmate ruby lighthouse)\n# Add wisely, as too many plugins slow down shell startup.\nplugins=(colorize)\n\n\n# User configuration\n\n# export MANPATH=\"/usr/local/man:$MANPATH\"\n\n# You may need to manually set your language environment\n# export LANG=en_US.UTF-8\n\n# Preferred editor for local and remote sessions\n# if [[ -n $SSH_CONNECTION ]]; then\n#   export EDITOR='vim'\n# else\n#   export EDITOR='mvim'\n# fi\n\n# Compilation flags\n# export ARCHFLAGS=\"-arch x86_64\"\n\n# Set personal aliases, overriding those provided by oh-my-zsh libs,\n# plugins, and themes. Aliases can be placed here, though oh-my-zsh\n# users are encouraged to define aliases within the ZSH_CUSTOM folder.\n# For a full list of active aliases, run `alias`.\n#\n# Example aliases\n# alias zshconfig=\"mate ~/.zshrc\"\n# alias ohmyzsh=\"mate ~/.oh-my-zsh\"\n\n# Basic auto/tab complete:\nautoload -U compinit\nzstyle ':completion:*' menu select\nzmodload zsh/complist\ncompinit\n_comp_options+=(globdots)\t\t# Include hidden files.\n\nbindkey \";3C\" forward-word\nbindkey \";3D\" backward-word\n\nHISTFILE=~/.zsh_history\nHISTSIZE=10000\nSAVEHIST=10000\nsetopt appendhistory\n\nZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh\nif [[ ! -d $ZSH_CACHE_DIR ]]; then\n  mkdir $ZSH_CACHE_DIR\nfi\n\n# eval \"$(starship init zsh)\"\n\nsource $ZSH/oh-my-zsh.sh\nsource ~/.zsh/catppuccin_mocha-zsh-syntax-highlighting.zsh\n\n# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.\n[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh\n#eval \"$(starship init zsh)\"\n\n# Load syntax highlighting; should be last.\nsource /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null\n#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!\nexport SDKMAN_DIR=\"$HOME/.sdkman\"\n[[ -s \"$HOME/.sdkman/bin/sdkman-init.sh\" ]] && source \"$HOME/.sdkman/bin/sdkman-init.sh\"\n"
  }
]