From 2adc5a1ffeb2293d977f9f1889c4259296dce3cc Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 19 Mar 2021 15:10:31 +0100 Subject: [PATCH 1/9] Added background --- i3/config | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/i3/config b/i3/config index 8c97d63..48de5bb 100644 --- a/i3/config +++ b/i3/config @@ -278,7 +278,7 @@ exec --no-startup-id "i3-msg 'workspace 9: Chat; append_layout ~/.config/i3/work exec firefox exec thunderbird #exec chat.rocket.RocketChat no_focus -exec im.riot.Riot no_focus +exec element-desktop no_focus exec telegram-desktop no_focus exec --no-startup-id nm-applet @@ -292,6 +292,9 @@ exec --no-startup-id pamac-tray exec --no-startup-id msm_notifier # Audio exec --no-startup-id start-pulseaudio-x11 +# Background +#exec --no-startup-id feh --randomize --bg-fill /home/julian/Pictures/Hintergrundbilder/* +exec --no-startup-id feh --bg-fill /home/julian/Pictures/Hintergrundbilder/space.jpg # Default workspaces at startup (no need because autostart applications get always focused) #exec --no-startup-id i3-msg workspace $ws1 From e485d45fd5ffe7fff94335662b7ea05a37450ec5 Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 19 Mar 2021 16:52:21 +0100 Subject: [PATCH 2/9] Updated gitignore --- .gitignore | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 209b517..17fc231 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,9 @@ # write here all files to upload to git /* -.gitignore +!.gitignore !/i3* +!/rofi +!/mc +/mc/hotlist +/mc/hotlist.bak From 35758bbe2e175f654c3f82027affc5bec08c075f Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 19 Mar 2021 17:06:34 +0100 Subject: [PATCH 3/9] Added dunst --- .gitignore | 1 + dunst/dunstrc | 431 ++++++++++++++++++++++++++++++++++++++++++++++++ i3blocks/config | 4 - 3 files changed, 432 insertions(+), 4 deletions(-) create mode 100644 dunst/dunstrc diff --git a/.gitignore b/.gitignore index 17fc231..7391873 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ !.gitignore !/i3* !/rofi +!/dunst !/mc /mc/hotlist /mc/hotlist.bak diff --git a/dunst/dunstrc b/dunst/dunstrc new file mode 100644 index 0000000..43fb6dd --- /dev/null +++ b/dunst/dunstrc @@ -0,0 +1,431 @@ +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = keyboard #mouse + + # The geometry of the window: + # [{width}]x{height}[+/-{x}+/-{y}] + # The geometry of the message window. + # The height is measured in number of notifications everything else + # in pixels. If the width is omitted but the height is given + # ("-geometry x2"), the message window expands over the whole screen + # (dmenu-like). If width is 0, the window expands to the longest + # message displayed. A positive x is measured from the left, a + # negative from the right side of the screen. Y is measured from + # the top and down respectively. + # The width can be negative. In this case the actual width is the + # screen width minus the width defined in within the geometry option. + geometry = "300x5-30+20" + + # Show how many messages are currently hidden (because of geometry). + indicate_hidden = yes + + # Shrink window if it's smaller than the width. Will be ignored if + # width is 0. + shrink = no + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing window manager is + # present (e.g. xcompmgr, compiz, etc.). + transparency = 0 + + # The height of the entire notification. If the height is smaller + # than the font height and padding combined, it will be raised + # to the font height and padding. + notification_height = 0 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + separator_height = 2 + + # Padding between text and separator. + padding = 8 + + # Horizontal padding. + horizontal_padding = 8 + + # Defines width in pixels of frame around the notification window. + # Set to 0 to disable. + frame_width = 3 + + # Defines color of the frame around the notification window. + frame_color = "#aaaaaa" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + # A client can set the 'transient' hint to bypass this. See the rules + # section for how to disable this if necessary + idle_threshold = 120 + + ### Text ### + + font = Monospace 12 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 0 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # Vertical alignment of message text and icon. + # Possible values are "top", "center" and "bottom". + vertical_alignment = center + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = 60 + + # Split notifications into multiple lines if they don't fit into + # geometry. + word_wrap = yes + + # When word_wrap is set to no, specify where to make an ellipsis in long lines. + # Possible values are "start", "middle" and "end". + ellipsize = middle + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + # Stack together notifications with the same content + stack_duplicates = true + + # Hide the count of stacked notifications with the same content + hide_duplicate_count = false + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + ### Icons ### + + # Align icons left/right/off + icon_position = left + + # Scale small icons up to this size, set to 0 to disable. Helpful + # for e.g. small files or high-dpi screens. In case of conflict, + # max_icon_size takes precedence over this. + min_icon_size = 0 + + # Scale larger icons down to this size, set to 0 to disable + max_icon_size = 32 + + # Paths to default icons. + icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + + ### History ### + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 20 + + ### Misc/Advanced ### + + # dmenu path. + dmenu = /usr/bin/dmenu -p dunst: + + # Browser for opening urls in context menu. + browser = /usr/bin/firefox -new-tab + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst + title = Dunst + + # Define the class of the windows spawned by dunst + class = Dunst + + # Print a notification on startup. + # This is mainly for error detection, since dbus (re-)starts dunst + # automatically after a crash. + startup_notification = false + + # Manage dunst's desire for talking + # Can be one of the following values: + # crit: Critical features. Dunst aborts + # warn: Only non-fatal warnings + # mesg: Important Messages + # info: all unimportant stuff + # debug: all less than unimportant stuff + verbosity = mesg + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 0 + + # Ignore the dbus closeNotification message. + # Useful to enforce the timeout set by dunst configuration. Without this + # parameter, an application may close the notification sent before the + # user defined timeout. + ignore_dbusclose = false + + ### Legacy + + # Use the Xinerama extension instead of RandR for multi-monitor support. + # This setting is provided for compatibility with older nVidia drivers that + # do not support RandR and using it on systems that support RandR is highly + # discouraged. + # + # By enabling this setting dunst will not be able to detect when a monitor + # is connected or disconnected which might break follow mode if the screen + # layout changes. + force_xinerama = false + + ### mouse + + # Defines list of actions for each mouse event + # Possible values are: + # * none: Don't do anything. + # * do_action: If the notification has exactly one action, or one is marked as default, + # invoke it. If there are multiple and no default, open the context menu. + # * close_current: Close current notification. + # * close_all: Close all notifications. + # These values can be strung together for each mouse event, and + # will be executed in sequence. + mouse_left_click = do_action, close_current + mouse_middle_click = do_action, close_current + mouse_right_click = close_all + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + +[shortcuts] + + # Shortcuts are specified as [modifier+][modifier+]...key + # Available modifiers are "ctrl", "mod1" (the alt-key), "mod2", + # "mod3" and "mod4" (windows-key). + # Xev might be helpful to find names for keys. + + # Close notification. + close = ctrl+period + + # Close all notifications. + close_all = ctrl+shift+period + + # Redisplay last message(s). + # On the US keyboard layout "grave" is normally above TAB and left + # of "1". Make sure this key actually exists on your keyboard layout, + # e.g. check output of 'xmodmap -pke' + history = ctrl+shift+space + + # Context menu. + context = ctrl+space + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#222222" + foreground = "#888888" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #icon = /path/to/icon + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + frame_color = "#ff0000" + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# timeout +# urgency +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: if you don't want a notification to be displayed, set the format +# to "". +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# format = "" + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" +# +# vim: ft=cfg diff --git a/i3blocks/config b/i3blocks/config index fbd40a8..c05e382 100644 --- a/i3blocks/config +++ b/i3blocks/config @@ -24,10 +24,6 @@ LABEL= interval=10 signal=10 -[battery] -command=./i3b-gate 6 -interval=120 - [calendar] command=./calendar interval=1 From 6f7792d6fa871caec419c283295a804d825a1b91 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 22 Mar 2021 15:57:02 +0100 Subject: [PATCH 4/9] Added firefox shortcut --- i3/config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/i3/config b/i3/config index 28eef4e..9c399ea 100644 --- a/i3/config +++ b/i3/config @@ -261,6 +261,8 @@ bindsym $mod+p exec xwacomcalibrate bindsym $mod+t exec thunar bindsym $mod+m exec xfce4-terminal -x mc bindsym $mod+Shift+c exec jupyter-calculator +bindsym $mod+b exec firefox + workspace_auto_back_and_forth yes ########## Window settings ########## @@ -295,7 +297,7 @@ exec --no-startup-id "i3-msg 'workspace 9: Chat; append_layout ~/.config/i3/work exec firefox exec thunderbird #exec chat.rocket.RocketChat no_focus -exec im.riot.Riot no_focus +exec element-desktop no_focus exec telegram-desktop no_focus exec --no-startup-id nm-applet From d8048cb7d80f5d1ae31bdc0cfd2555dd8be2a2c4 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 28 Apr 2021 10:25:15 +0200 Subject: [PATCH 5/9] Some Changes --- i3/config | 2 +- i3/manjaro-default-config | 418 ++++++++++++++++++++++++++++++++++++++ i3/setupZoom | 2 +- mc/ini | 4 +- 4 files changed, 423 insertions(+), 3 deletions(-) create mode 100644 i3/manjaro-default-config diff --git a/i3/config b/i3/config index 9c399ea..cd7dd7f 100644 --- a/i3/config +++ b/i3/config @@ -296,7 +296,7 @@ exec --no-startup-id "i3-msg 'workspace 9: Chat; append_layout ~/.config/i3/work exec firefox exec thunderbird -#exec chat.rocket.RocketChat no_focus +exec chat.rocket.RocketChat no_focus exec element-desktop no_focus exec telegram-desktop no_focus diff --git a/i3/manjaro-default-config b/i3/manjaro-default-config new file mode 100644 index 0000000..9e22273 --- /dev/null +++ b/i3/manjaro-default-config @@ -0,0 +1,418 @@ +# i3 config file (v4) +# Please see http://i3wm.org/docs/userguide.html for a complete reference! + +# Set mod key (Mod1=, Mod4=) +set $mod Mod4 + +# set default desktop layout (default is tiling) +# workspace_layout tabbed + +# Configure border style +default_border pixel 1 +default_floating_border normal + +# Hide borders +hide_edge_borders none + +# change borders +bindsym $mod+u border none +bindsym $mod+y border pixel 1 +bindsym $mod+n border normal + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font xft:URWGothic-Book 11 + +# Use Mouse+$mod to drag floating windows +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec terminal + +# kill focused window +bindsym $mod+Shift+q kill + +# start program launcher +bindsym $mod+d exec --no-startup-id dmenu_recency + +# launch categorized menu +bindsym $mod+z exec --no-startup-id morc_menu + +################################################################################################ +## sound-section - DO NOT EDIT if you wish to automatically upgrade Alsa -> Pulseaudio later! ## +################################################################################################ + +#exec --no-startup-id volumeicon +#bindsym $mod+Ctrl+m exec terminal -e 'alsamixer' +exec --no-startup-id pulseaudio +exec --no-startup-id pa-applet +bindsym $mod+Ctrl+m exec pavucontrol + +################################################################################################ + +# Screen brightness controls +# bindsym XF86MonBrightnessUp exec "xbacklight -inc 10; notify-send 'brightness up'" +# bindsym XF86MonBrightnessDown exec "xbacklight -dec 10; notify-send 'brightness down'" + +# Start Applications +bindsym $mod+Ctrl+b exec terminal -e 'bmenu' +bindsym $mod+F2 exec palemoon +bindsym $mod+F3 exec pcmanfm +# bindsym $mod+F3 exec ranger +bindsym $mod+Shift+F3 exec pcmanfm_pkexec +bindsym $mod+F5 exec terminal -e 'mocp' +bindsym $mod+t exec --no-startup-id pkill picom +bindsym $mod+Ctrl+t exec --no-startup-id picom -b +bindsym $mod+Shift+d --release exec "killall dunst; exec notify-send 'restart dunst'" +bindsym Print exec --no-startup-id i3-scrot +bindsym $mod+Print --release exec --no-startup-id i3-scrot -w +bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s +bindsym $mod+Shift+h exec xdg-open /usr/share/doc/manjaro/i3_help.pdf +bindsym $mod+Ctrl+x --release exec --no-startup-id xkill + +# focus_follows_mouse no + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# workspace back and forth (with/without active container) +workspace_auto_back_and_forth yes +bindsym $mod+b workspace back_and_forth +bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth + +# split orientation +bindsym $mod+h split h;exec notify-send 'tile horizontally' +bindsym $mod+v split v;exec notify-send 'tile vertically' +bindsym $mod+q split toggle + +# toggle fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# toggle sticky +bindsym $mod+Shift+s sticky toggle + +# focus the parent container +bindsym $mod+a focus parent + +# move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show + +#navigate workspaces next / previous +bindsym $mod+Ctrl+Right workspace next +bindsym $mod+Ctrl+Left workspace prev + +# Workspace names +# to display names or symbols instead of plain workspace numbers you can use +# something like: set $ws1 1:mail +# set $ws2 2: +set $ws1 1 +set $ws2 2 +set $ws3 3 +set $ws4 4 +set $ws5 5 +set $ws6 6 +set $ws7 7 +set $ws8 8 + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 + +# Move focused container to workspace +bindsym $mod+Ctrl+1 move container to workspace $ws1 +bindsym $mod+Ctrl+2 move container to workspace $ws2 +bindsym $mod+Ctrl+3 move container to workspace $ws3 +bindsym $mod+Ctrl+4 move container to workspace $ws4 +bindsym $mod+Ctrl+5 move container to workspace $ws5 +bindsym $mod+Ctrl+6 move container to workspace $ws6 +bindsym $mod+Ctrl+7 move container to workspace $ws7 +bindsym $mod+Ctrl+8 move container to workspace $ws8 + +# Move to workspace with focused container +bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8 + +# Open applications on specific workspaces +# assign [class="Thunderbird"] $ws1 +# assign [class="Pale moon"] $ws2 +# assign [class="Pcmanfm"] $ws3 +# assign [class="Skype"] $ws5 + +# Open specific applications in floating mode +for_window [title="alsamixer"] floating enable border pixel 1 +for_window [class="calamares"] floating enable border normal +for_window [class="Clipgrab"] floating enable +for_window [title="File Transfer*"] floating enable +for_window [class="fpakman"] floating enable +for_window [class="Galculator"] floating enable border pixel 1 +for_window [class="GParted"] floating enable border normal +for_window [title="i3_help"] floating enable sticky enable border normal +for_window [class="Lightdm-settings"] floating enable +for_window [class="Lxappearance"] floating enable sticky enable border normal +for_window [class="Manjaro-hello"] floating enable +for_window [class="Manjaro Settings Manager"] floating enable border normal +for_window [title="MuseScore: Play Panel"] floating enable +for_window [class="Nitrogen"] floating enable sticky enable border normal +for_window [class="Oblogout"] fullscreen enable +for_window [class="octopi"] floating enable +for_window [title="About Pale Moon"] floating enable +for_window [class="Pamac-manager"] floating enable +for_window [class="Pavucontrol"] floating enable +for_window [class="qt5ct"] floating enable sticky enable border normal +for_window [class="Qtconfig-qt4"] floating enable sticky enable border normal +for_window [class="Simple-scan"] floating enable border normal +for_window [class="(?i)System-config-printer.py"] floating enable border normal +for_window [class="Skype"] floating enable border normal +for_window [class="Timeset-gui"] floating enable border normal +for_window [class="(?i)virtualbox"] floating enable border normal +for_window [class="Xfburn"] floating enable + +# switch to workspace with urgent window automatically +for_window [urgent=latest] focus + +# reload the configuration file +bindsym $mod+Shift+c reload + +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart + +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'" + +# Set shut down, restart and locking features +bindsym $mod+0 mode "$mode_system" +set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown +mode "$mode_system" { + bindsym l exec --no-startup-id i3exit lock, mode "default" + bindsym s exec --no-startup-id i3exit suspend, mode "default" + bindsym u exec --no-startup-id i3exit switch_user, mode "default" + bindsym e exec --no-startup-id i3exit logout, mode "default" + bindsym h exec --no-startup-id i3exit hibernate, mode "default" + bindsym r exec --no-startup-id i3exit reboot, mode "default" + bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default" + + # exit system mode: "Enter" or "Escape" + bindsym Return mode "default" + bindsym Escape mode "default" +} + +# Resize window (you can also use the mouse for that) +bindsym $mod+r mode "resize" +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym j resize shrink width 5 px or 5 ppt + bindsym k resize grow height 5 px or 5 ppt + bindsym l resize shrink height 5 px or 5 ppt + bindsym semicolon resize grow width 5 px or 5 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 ppt + + # exit resize mode: Enter or Escape + bindsym Return mode "default" + bindsym Escape mode "default" +} + +# Lock screen +bindsym $mod+9 exec --no-startup-id blurlock + +# Autostart applications +exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 +exec --no-startup-id nitrogen --restore; sleep 1; picom -b +exec --no-startup-id manjaro-hello +exec --no-startup-id nm-applet +exec --no-startup-id xfce4-power-manager +exec --no-startup-id pamac-tray +exec --no-startup-id clipit +# exec --no-startup-id blueman-applet +# exec_always --no-startup-id sbxkb +exec --no-startup-id start_conky_maia +# exec --no-startup-id start_conky_green +exec --no-startup-id xautolock -time 10 -locker blurlock +exec_always --no-startup-id ff-theme-util +exec_always --no-startup-id fix_xcursor + +# Color palette used for the terminal ( ~/.Xresources file ) +# Colors are gathered based on the documentation: +# https://i3wm.org/docs/userguide.html#xresources +# Change the variable name at the place you want to match the color +# of your terminal like this: +# [example] +# If you want your bar to have the same background color as your +# terminal background change the line 362 from: +# background #14191D +# to: +# background $term_background +# Same logic applied to everything else. +set_from_resource $term_background background +set_from_resource $term_foreground foreground +set_from_resource $term_color0 color0 +set_from_resource $term_color1 color1 +set_from_resource $term_color2 color2 +set_from_resource $term_color3 color3 +set_from_resource $term_color4 color4 +set_from_resource $term_color5 color5 +set_from_resource $term_color6 color6 +set_from_resource $term_color7 color7 +set_from_resource $term_color8 color8 +set_from_resource $term_color9 color9 +set_from_resource $term_color10 color10 +set_from_resource $term_color11 color11 +set_from_resource $term_color12 color12 +set_from_resource $term_color13 color13 +set_from_resource $term_color14 color14 +set_from_resource $term_color15 color15 + +# Start i3bar to display a workspace bar (plus the system information i3status if available) +bar { + i3bar_command i3bar + status_command i3status + position bottom + +## please set your primary output first. Example: 'xrandr --output eDP1 --primary' +# tray_output primary +# tray_output eDP1 + + bindsym button4 nop + bindsym button5 nop +# font xft:URWGothic-Book 11 + strip_workspace_numbers yes + + colors { + background #222D31 + statusline #F9FAF9 + separator #454947 + +# border backgr. text + focused_workspace #F9FAF9 #16a085 #292F34 + active_workspace #595B5B #353836 #FDF6E3 + inactive_workspace #595B5B #222D31 #EEE8D5 + binding_mode #16a085 #2C2C2C #F9FAF9 + urgent_workspace #16a085 #FDF6E3 #E5201D + } +} + +# hide/unhide i3status bar +bindsym $mod+m bar mode toggle + +# Theme colors +# class border backgr. text indic. child_border + client.focused #556064 #556064 #80FFF9 #FDF6E3 + client.focused_inactive #2F3D44 #2F3D44 #1ABC9C #454948 + client.unfocused #2F3D44 #2F3D44 #1ABC9C #454948 + client.urgent #CB4B16 #FDF6E3 #1ABC9C #268BD2 + client.placeholder #000000 #0c0c0c #ffffff #000000 + + client.background #2B2C2B + +############################# +### settings for i3-gaps: ### +############################# + +# Set inner/outer gaps +gaps inner 14 +gaps outer -2 + +# Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size. +# gaps inner|outer current|all set|plus|minus +# gaps inner all set 10 +# gaps outer all plus 5 + +# Smart gaps (gaps used if only more than one container on the workspace) +smart_gaps on + +# Smart borders (draw borders around container only if it is not the only container on this workspace) +# on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0) +smart_borders on + +# Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces. +set $mode_gaps Gaps: (o) outer, (i) inner +set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global) +set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global) +bindsym $mod+Shift+g mode "$mode_gaps" + +mode "$mode_gaps" { + bindsym o mode "$mode_gaps_outer" + bindsym i mode "$mode_gaps_inner" + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_inner" { + bindsym plus gaps inner current plus 5 + bindsym minus gaps inner current minus 5 + bindsym 0 gaps inner current set 0 + + bindsym Shift+plus gaps inner all plus 5 + bindsym Shift+minus gaps inner all minus 5 + bindsym Shift+0 gaps inner all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} +mode "$mode_gaps_outer" { + bindsym plus gaps outer current plus 5 + bindsym minus gaps outer current minus 5 + bindsym 0 gaps outer current set 0 + + bindsym Shift+plus gaps outer all plus 5 + bindsym Shift+minus gaps outer all minus 5 + bindsym Shift+0 gaps outer all set 0 + + bindsym Return mode "default" + bindsym Escape mode "default" +} diff --git a/i3/setupZoom b/i3/setupZoom index 68b3a84..a41a0a4 100755 --- a/i3/setupZoom +++ b/i3/setupZoom @@ -2,5 +2,5 @@ zoom & -i3-msg "workspace --no-auto-back-and-forth 5; exec mousepad /home/julian/nextcloud/studium/zoom.txt" +i3-msg "workspace --no-auto-back-and-forth 5; exec mousepad /home/julian/Nextcloud/studium/zoom.txt" i3-msg "workspace --no-auto-back-and-forth 5; append_layout ~/.config/i3/workspace-zoom.json" diff --git a/mc/ini b/mc/ini index f6f3dbc..86c531b 100644 --- a/mc/ini +++ b/mc/ini @@ -86,6 +86,8 @@ skin=default filepos_max_saved_entries=1024 +shadows=true + [Layout] message_visible=true keybar_visible=true @@ -96,7 +98,7 @@ menubar_visible=true free_space=true horizontal_split=false vertical_equal=true -left_panel_size=47 +left_panel_size=83 horizontal_equal=true top_panel_size=16 From 0205cfafa9ec8199b07c0e051e9f83393b9fb0bf Mon Sep 17 00:00:00 2001 From: julian Date: Tue, 4 May 2021 11:16:23 +0200 Subject: [PATCH 6/9] Removed names from workspaces --- i3/config | 8 ++++---- mc/ini | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/i3/config b/i3/config index cd7dd7f..16fa473 100644 --- a/i3/config +++ b/i3/config @@ -110,7 +110,7 @@ bindsym $mod+a focus parent # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. -set $ws1 "1: Firefox" +set $ws1 "1" set $ws2 "2" set $ws3 "3" set $ws4 "4" @@ -118,8 +118,8 @@ set $ws5 "5" set $ws6 "6" set $ws7 "7" set $ws8 "8" -set $ws9 "9: Chat" -set $ws10 "10: Mail" +set $ws9 "9" +set $ws10 "10" # switch to workspace bindsym $mod+1 workspace number $ws1 @@ -292,7 +292,7 @@ for_window [class="Pamac-updater"] floating enable #for_window [class="Thunderbird" instance="Msgcompose"] floating enable ########## Autostart applications ########## -exec --no-startup-id "i3-msg 'workspace 9: Chat; append_layout ~/.config/i3/workspace-chat.json'" +exec --no-startup-id "i3-msg 'workspace 9; append_layout ~/.config/i3/workspace-chat.json'" exec firefox exec thunderbird diff --git a/mc/ini b/mc/ini index 86c531b..e6f9dfd 100644 --- a/mc/ini +++ b/mc/ini @@ -98,7 +98,7 @@ menubar_visible=true free_space=true horizontal_split=false vertical_equal=true -left_panel_size=83 +left_panel_size=41 horizontal_equal=true top_panel_size=16 From f47c14643d5c2b1f196ff80f241265d48b7d7431 Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 19 May 2021 18:12:21 +0200 Subject: [PATCH 7/9] Added calculator --- i3/config | 4 +++- mc/ini | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/i3/config b/i3/config index 16fa473..f4106be 100644 --- a/i3/config +++ b/i3/config @@ -256,7 +256,7 @@ bindsym $mod+Print mode "$mode_screenshot_clipboard" bindsym $mod+Ctrl+Right move workspace to output right bindsym $mod+Ctrl+Left move workspace to output right -bindsym $mod+c exec rofi_calc +bindsym $mod+c exec xfce4-terminal --role floating --hide-scrollbar --title Calculator -e qalc bindsym $mod+p exec xwacomcalibrate bindsym $mod+t exec thunar bindsym $mod+m exec xfce4-terminal -x mc @@ -290,6 +290,8 @@ for_window [class="Pamac-manager"] floating enable for_window [class="Pamac-updater"] floating enable #for_window [class="zoom" title="Chat"] floating enable #for_window [class="Thunderbird" instance="Msgcompose"] floating enable +# +for_window [window_role=floating] floating enable ########## Autostart applications ########## exec --no-startup-id "i3-msg 'workspace 9; append_layout ~/.config/i3/workspace-chat.json'" diff --git a/mc/ini b/mc/ini index e6f9dfd..86c531b 100644 --- a/mc/ini +++ b/mc/ini @@ -98,7 +98,7 @@ menubar_visible=true free_space=true horizontal_split=false vertical_equal=true -left_panel_size=41 +left_panel_size=83 horizontal_equal=true top_panel_size=16 From a334d2e703849edb0cd625c5661d88e7dc040860 Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Thu, 3 Jun 2021 12:23:55 +0200 Subject: [PATCH 8/9] Removed unnecessary mc files --- .gitignore | 4 +- mc/hotlist | 0 mc/ini | 176 ----------- mc/mc.ext | 851 -------------------------------------------------- mc/menu | 369 ---------------------- mc/panels.ini | 0 6 files changed, 1 insertion(+), 1399 deletions(-) delete mode 100644 mc/hotlist delete mode 100644 mc/ini delete mode 100644 mc/mc.ext delete mode 100644 mc/menu delete mode 100644 mc/panels.ini diff --git a/.gitignore b/.gitignore index 7391873..d9ecc50 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,4 @@ !/i3* !/rofi !/dunst -!/mc -/mc/hotlist -/mc/hotlist.bak +!/mc/mc.keymap diff --git a/mc/hotlist b/mc/hotlist deleted file mode 100644 index e69de29..0000000 diff --git a/mc/ini b/mc/ini deleted file mode 100644 index 86c531b..0000000 --- a/mc/ini +++ /dev/null @@ -1,176 +0,0 @@ -[Midnight-Commander] -verbose=true -shell_patterns=true -auto_save_setup=true -preallocate_space=false -auto_menu=false -use_internal_view=true -use_internal_edit=false -clear_before_exec=true -confirm_delete=true -confirm_overwrite=true -confirm_execute=false -confirm_history_cleanup=true -confirm_exit=false -confirm_directory_hotlist_delete=false -confirm_view_dir=false -safe_delete=false -safe_overwrite=false -use_8th_bit_as_meta=false -mouse_move_pages_viewer=true -mouse_close_dialog=false -fast_refresh=false -drop_menus=false -wrap_mode=false -old_esc_mode=true -cd_symlinks=true -show_all_if_ambiguous=false -use_file_to_guess_type=true -alternate_plus_minus=false -only_leading_plus_minus=true -show_output_starts_shell=false -xtree_mode=false -file_op_compute_totals=true -classic_progressbar=true -use_netrc=true -ftpfs_always_use_proxy=false -ftpfs_use_passive_connections=true -ftpfs_use_passive_connections_over_proxy=false -ftpfs_use_unix_list_options=true -ftpfs_first_cd_then_ls=true -ignore_ftp_chattr_errors=true -editor_fill_tabs_with_spaces=false -editor_return_does_auto_indent=true -editor_backspace_through_tabs=false -editor_fake_half_tabs=true -editor_option_save_position=true -editor_option_auto_para_formatting=false -editor_option_typewriter_wrap=false -editor_edit_confirm_save=true -editor_syntax_highlighting=true -editor_persistent_selections=true -editor_drop_selection_on_copy=true -editor_cursor_beyond_eol=false -editor_cursor_after_inserted_block=false -editor_visible_tabs=true -editor_visible_spaces=true -editor_line_state=false -editor_simple_statusbar=false -editor_check_new_line=false -editor_show_right_margin=false -editor_group_undo=false -editor_state_full_filename=false -editor_ask_filename_before_edit=false -nice_rotating_dash=true -mcview_remember_file_position=false -auto_fill_mkdir_name=true -copymove_persistent_attr=true -pause_after_run=1 -mouse_repeat_rate=100 -double_click_speed=250 -old_esc_mode_timeout=1000000 -max_dirt_limit=10 -num_history_items_recorded=60 -vfs_timeout=60 -ftpfs_directory_timeout=900 -ftpfs_retry_seconds=30 -fish_directory_timeout=900 -editor_tab_spacing=8 -editor_word_wrap_line_length=72 -editor_option_save_mode=0 -editor_backup_extension=~ -editor_filesize_threshold=64M -editor_stop_format_chars=-+*\\,.;:&> -mcview_eof= -skin=default - -filepos_max_saved_entries=1024 - -shadows=true - -[Layout] -message_visible=true -keybar_visible=true -xterm_title=true -output_lines=0 -command_prompt=true -menubar_visible=true -free_space=true -horizontal_split=false -vertical_equal=true -left_panel_size=83 -horizontal_equal=true -top_panel_size=16 - -[Misc] -timeformat_recent=%b %e %H:%M -timeformat_old=%b %e %Y -ftp_proxy_host=gate -ftpfs_password=anonymous@ -display_codepage=UTF-8 -source_codepage=Other_8_bit -autodetect_codeset= -clipboard_store= -clipboard_paste= - -[Colors] -base_color= -xterm-256color= -color_terminals= - -xterm= - -alacritty= - -[Panels] -simple_swap=false -show_mini_info=true -kilobyte_si=true -mix_all_files=false -show_backups=true -show_dot_files=true -fast_reload=false -fast_reload_msg_shown=false -mark_moves_down=true -reverse_files_only=true -auto_save_setup_panels=false -navigate_with_arrows=true -panel_scroll_pages=true -panel_scroll_center=false -mouse_move_pages=true -filetype_mode=true -permission_mode=false -torben_fj_mode=false -quick_search_mode=2 -select_flags=6 - -[FindFile] -file_case_sens=true -file_shell_pattern=true -file_find_recurs=true -file_skip_hidden=false -file_all_charsets=false -content_case_sens=true -content_regexp=false -content_first_hit=false -content_whole_words=false -content_all_charsets=false -ignore_dirs_enable=true -ignore_dirs= - -[DiffView] -show_symbols=false -show_numbers=false -tab_size=8 -diff_quality=0 -diff_ignore_tws=false -diff_ignore_all_space=false -diff_ignore_space_change=false -diff_tab_expansion=false -diff_ignore_case=false - -[Panelize] -Find *.orig after patching=find . -name \\*.orig -print -Find SUID and SGID programs=find . \\( \\( -perm -04000 -a -perm /011 \\) -o \\( -perm -02000 -a -perm /01 \\) \\) -print -Find rejects after patching=find . -name \\*.rej -print -Modified git files=git ls-files --modified diff --git a/mc/mc.ext b/mc/mc.ext deleted file mode 100644 index 4fd21cd..0000000 --- a/mc/mc.ext +++ /dev/null @@ -1,851 +0,0 @@ -# Midnight Commander 3.0 extension file -# Warning: Structure of this file has changed completely with version 3.0 -# -# All lines starting with # or empty lines are thrown away. -# Lines starting in the first column should have following format: -# -# keyword/descNL, i.e. everything after keyword/ until new line is desc -# -# keyword can be: -# -# shell (desc is, when starting with a dot, any extension (no wildcars), -# i.e. matches all the files *desc . Example: .tar matches *.tar; -# if it doesn't start with a dot, it matches only a file of that name) -# -# shell/i (desc is, when starting with a dot, any extension (no wildcars), -# The same as shell but with case insensitive. -# -# regex (desc is an extended regular expression) -# Please note that we are using the GNU regex library and thus -# \| matches the literal | and | has special meaning (or) and -# () have special meaning and \( \) stand for literal ( ). -# -# regex/i (desc is an extended regular expression) -# The same as regex but with case insensitive. -# -# type (file matches this if `file %f` matches regular expression desc -# (the filename: part from `file %f` is removed)) -# -# type/i (file matches this if `file %f` matches regular expression desc) -# The same as type but with case insensitive. -# -# directory (matches any directory matching regular expression desc) -# -# include (matches an include directive) -# -# default (matches any file no matter what desc is) -# -# Other lines should start with a space or tab and should be in the format: -# -# keyword=commandNL (with no spaces around =), where keyword should be: -# -# Open (if the user presses Enter or doubleclicks it), -# -# View (F3), Edit (F4) -# -# Include is the keyword used to add any further entries from an include/ -# section -# -# command is any one-line shell command, with the following substitutions: -# -# %% -> % character -# %p -> name of the current file (without path, but pwd is its path). -# Also provided to external application as MC_EXT_BASENAME -# global variable -# %f -> name of the current file. Unlike %p, if file is located on a -# non-local virtual filesystem, i.e. either tarfs or ftpfs, -# then the file will be temporarily copied into a local directory -# and %f will be the full path to this local temporal file. -# If you don't want to get a local copy and want to get the -# virtual fs path (like /#ftp:ftp.cvut.cz/pub/hungry/xword), then -# use %d/%p instead of %f. -# Also provided to external application as MC_EXT_FILENAME -# global variable -# %d -> name of the current directory (pwd, without trailing slash) -# Also provided to external application as MC_EXT_CURRENTDIR -# global variable -# %s -> "selected files", i.e. space separated list of tagged files if any -# or name of the current file. -# Also provided to external application as MC_EXT_SELECTED -# global variable -# %t -> list of tagged files -# Also provided to external application as MC_EXT_ONLYTAGGED -# global variable -# %u -> list of tagged files (they'll be untaged after the command) -# -# (If these 6 letters are in uppercase, they refer to the other panel. -# But you shouldn't have to use it in this file.) -# -# -# %cd -> the rest is a path mc should change into (cd won't work, since it's -# a child process). %cd handles even vfs names. -# -# %view -> the command you type will be piped into mc's internal file viewer -# if you type only the %view and no command, viewer will load %f file -# instead (i.e. no piping, so it is different to %view cat %f) -# %view may be directly followed by {} with a list of any of -# ascii (Ascii mode), hex (Hex mode), nroff (color highlighting for -# text using backspace for bold and underscore) and unform -# (no highlighting for nroff sequences) separated by commas. -# -# %var -> You use it like this: %var{VAR:default}. This macro will expand -# to the value of the VAR variable in the environment if it's set -# otherwise the value in default will be used. This is similar to -# the Bourne shell ${VAR-default} construct. -# -# Rules are applied from top to bottom, thus the order is important. -# If some actions are missing, search continues as if this target didn't -# match (i.e. if a file matches the first and second entry and View action -# is missing in the first one, then on pressing F3 the View action from -# the second entry will be used. default should catch all the actions. -# -# Any new entries you develop for you are always welcome if they are -# useful on more than one system. You can post your modifications -# as tickets at www.midnight-commander.org - - -### Changes ### -# -# Reorganization: 2012-03-07 Slava Zanko - - -### GIT Repo ### -# gitfs changeset -regex/^\[git\] - Open=%cd %p/changesetfs:// - View=%cd %p/patchsetfs:// - - -### Archives ### - -# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z, .ipk, .gem -regex/\.t([gp]?z|ar\.g?[zZ])$|\.ipk$|\.gem$ - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.gz - -shell/.tar.bz - # Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip - -regex/\.t(ar\.bz2|bz2?|b2)$ - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.bzip2 - -# .tar.lzma, .tlz -regex/\.t(ar\.lzma|lz)$ - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lzma - -# .tar.lz -shell/.tar.lz - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz - -# .tar.lz4, .tlz4 -regex/\.t(ar\.lz4|lz4)$ - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.lz4 - -# .tar.xz, .txz -regex/\.t(ar\.xz|xz)$ - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.xz - -# .tar.zst, .tzst -regex/\.t(ar\.zst|zst)$ - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.zst - -# .tar.F - used in QNX -shell/.tar.F - # Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.F - -# .qpr/.qpk - QNX Neutrino package installer files -regex/\.qp[rk]$ - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar.qpr - -# tar -shell/i/.tar - Open=%cd %p/utar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view tar - -# lha -type/^LHa\ .*archive - Open=%cd %p/ulha:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lha - -# arj -regex/i/\.a(rj|[0-9][0-9])$ - Open=%cd %p/uarj:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arj - -# cab -shell/i/.cab - Open=%cd %p/ucab:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cab - -# ha -shell/i/.ha - Open=%cd %p/uha:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ha - -# rar -regex/i/\.r(ar|[0-9][0-9])$ - Open=%cd %p/urar:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view rar - -# ALZip -shell/i/.alz - Open=%cd %p/ualz:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view alz - -# cpio -shell/.cpio.Z - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.z - -shell/.cpio.lz - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz - -shell/.cpio.lz4 - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.lz4 - -shell/.cpio.xz - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.xz - -shell/.cpio.zst - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.zst - -shell/.cpio.gz - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio.gz - -shell/i/.cpio - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio - -# initrd -regex/^(initramfs.*\.img|initrd(-.+)?\.img(-.+)?)$ - Open=%cd %p/ucpio:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view cpio - -# 7zip archives (they are not man pages) -shell/i/.7z - Open=%cd %p/u7z:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view 7z - -# patch -regex/\.(diff|patch)(\.bz2)$ - Open=%cd %p/patchfs:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2 - -regex/\.(diff|patch)(\.(gz|Z))$ - Open=%cd %p/patchfs:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz - -regex/\.(diff|patch)(\.xz)$ - Open=%cd %p/patchfs:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz - -regex/\.(diff|patch)(\.zst)$ - Open=%cd %p/patchfs:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst - -# ls-lR -regex/(^|\.)ls-?lR(\.gz|Z|bz2)$ - Open=%cd %p/lslR:// - -# trpm -shell/.trpm - Open=%cd %p/trpm:// - View=%view{ascii} /usr/lib/mc/ext.d/package.sh view trpm - -# RPM packages (SuSE uses *.spm for source packages) -regex/\.(src\.rpm|spm)$ - Open=%cd %p/rpm:// - View=%view{ascii} /usr/lib/mc/ext.d/package.sh view src.rpm - -shell/.rpm - Open=%cd %p/rpm:// - View=%view{ascii} /usr/lib/mc/ext.d/package.sh view rpm - -# deb -regex/\.u?deb$ - Open=%cd %p/deb:// - View=%view{ascii} /usr/lib/mc/ext.d/package.sh view deb - -# dpkg -shell/.debd - Open=%cd %p/debd:// - View=%view{ascii} /usr/lib/mc/ext.d/package.sh view debd - -# apt -shell/.deba - Open=%cd %p/deba:// - View=%view{ascii} /usr/lib/mc/ext.d/package.sh view deba - -# ISO9660 -shell/i/.iso - Open=%cd %p/iso9660:// - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view iso9660 - - -regex/\.(diff|patch)$ - Open=%cd %p/patchfs:// - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view cat - -# ar library -regex/\.s?a$ - Open=%cd %p/uar:// - #Open=%view{ascii} ar tv %f - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view ar - -# gplib -shell/i/.lib - Open=%cd %p/ulib:// - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lib - - -# Mailboxes -type/^ASCII\ mail\ text - Open=%cd %p/mailfs:// - - -### Sources ### - -# C/C++ -regex/i/\.(c|cc|cpp)$ - Include=editor - -# C/C++ header -regex/i/\.(h|hh|hpp)$ - Include=editor - -# Fortran -shell/i/.f - Include=editor - -# Assembler -regex/i/\.(s|asm)$ - Include=editor - -# .so libraries -regex/\.(so|so\.[0-9\.]*)$ - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view so - -# Object -type/^ELF - #Open=%var{PAGER:more} %f - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view elf - - -### Documentation ### - -# Texinfo -#regex/\.(te?xi|texinfo)$ - -# GNU Info page -type/^Info\ text - Open=/usr/lib/mc/ext.d/text.sh open info - -shell/.info - Open=/usr/lib/mc/ext.d/text.sh open info - -# Exception: .3gp are video files not manual pages -shell/i/.3gp - Include=video - -# Manual page -regex/(([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])|\.man)$ - Open=/usr/lib/mc/ext.d/text.sh open man %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man %var{PAGER:more} - -# Perl pod page -shell/.pod - Open=/usr/lib/mc/ext.d/text.sh open pod %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view pod %var{PAGER:more} - -# Troff with me macros. -# Exception - "read.me" is not a nroff file. -shell/read.me - Open= - View= - -shell/.me - Open=/usr/lib/mc/ext.d/text.sh open nroff.me %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.me %var{PAGER:more} - -# Troff with ms macros. -shell/.ms - Open=/usr/lib/mc/ext.d/text.sh open nroff.ms %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view nroff.ms %var{PAGER:more} - -# Manual page - compressed -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.g?[Zz]$ - Open=/usr/lib/mc/ext.d/text.sh open man.gz %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.gz %var{PAGER:more} - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz$ - Open=/usr/lib/mc/ext.d/text.sh open man.bz %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz %var{PAGER:more} - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.bz2$ - Open=/usr/lib/mc/ext.d/text.sh open man.bz2 %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.bz2 %var{PAGER:more} - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz$ - Open=/usr/lib/mc/ext.d/text.sh open man.lz %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz %var{PAGER:more} - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lz4$ - Open=/usr/lib/mc/ext.d/text.sh open man.lz4 %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lz4 %var{PAGER:more} - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.lzma$ - Open=/usr/lib/mc/ext.d/text.sh open man.lzma %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.lzma %var{PAGER:more} - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.xz$ - Open=/usr/lib/mc/ext.d/text.sh open man.xz %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.xz %var{PAGER:more} - -regex/([^0-9]|^[^\.]*)\.([1-9][A-Za-z]*|[ln])\.zst$ - Open=/usr/lib/mc/ext.d/text.sh open man.zst %var{PAGER:more} - View=%view{ascii,nroff} /usr/lib/mc/ext.d/text.sh view man.zst %var{PAGER:more} - -# CHM -shell/i/.chm - Open=/usr/lib/mc/ext.d/text.sh open chm - - -### Images ### - -type/^GIF - Include=image - -type/^JPEG - View=%view{ascii} /usr/lib/mc/ext.d/image.sh view jpeg - Include=image - -type/^PC\ bitmap - Include=image - -type/^PNG - Include=image - -type/^JNG - Include=image - -type/^MNG - Include=image - -type/^TIFF - Include=image - -type/^PBM - Include=image - -type/^PGM - Include=image - -type/^PPM - Include=image - -type/^Netpbm - Include=image - -shell/.xcf - Open=/usr/lib/mc/ext.d/image.sh open xcf - -shell/.xbm - Open=/usr/lib/mc/ext.d/image.sh open xbm - -shell/.xpm - Include=image - View=/usr/lib/mc/ext.d/image.sh view xpm %f - -shell/.ico - Include=image - -shell/i/.svg - View=%view{ascii} /usr/lib/mc/ext.d/image.sh view svg - Open=/usr/lib/mc/ext.d/image.sh open svg - - -### Sound files ### - -regex/i/\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv)$ - Open=/usr/lib/mc/ext.d/sound.sh open common - -regex/i/\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$ - Open=/usr/lib/mc/ext.d/sound.sh open mod - -shell/i/.waw22 - Open=/usr/lib/mc/ext.d/sound.sh open wav22 - -shell/i/.mp3 - Open=/usr/lib/mc/ext.d/sound.sh open mp3 - View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view mp3 - -regex/i/\.og[gax]$ - Open=/usr/lib/mc/ext.d/sound.sh open ogg - View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view ogg - -shell/i/.opus - Open=/usr/lib/mc/ext.d/sound.sh open opus - View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view opus - -regex/i/\.(spx|flac)$ - Open=/usr/lib/mc/ext.d/sound.sh open common - -regex/i/\.(midi?|rmid?)$ - Open=/usr/lib/mc/ext.d/sound.sh open midi - -shell/i/.wma - Open=/usr/lib/mc/ext.d/sound.sh open wma - View=%view{ascii} /usr/lib/mc/ext.d/sound.sh view wma - - -### Play lists ### - -regex/i/\.(m3u|pls)$ - Open=/usr/lib/mc/ext.d/sound.sh open playlist - - -### Video ### - -shell/i/.avi - Include=video - -regex/i/\.as[fx]$ - Include=video - -shell/i/.divx - Include=video - -shell/i/.mkv - Include=video - -regex/i/\.(mov|qt)$ - Include=video - -regex/i/\.(mp4|m4v|mpe?g)$ - Include=video - -# MPEG-2 TS container + H.264 codec -shell/i/.mts - Include=video - -shell/i/.ts - Include=video - -shell/i/.vob - Include=video - -shell/i/.wmv - Include=video - -regex/i/\.fl[icv]$ - Include=video - -shell/i/.ogv - Include=video - -regex/i/\.ra?m$ - Open=/usr/lib/mc/ext.d/video.sh open ram - -# WebM -shell/i/.webm - Include=video - -type/WebM - Include=video - - -### Documents ### - -# Postscript -type/^PostScript - Open=/usr/lib/mc/ext.d/doc.sh open ps - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view ps - -# PDF -type/^PDF - Open=/usr/lib/mc/ext.d/doc.sh open pdf - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view pdf -# XOPP -regex/i/\.xopp$ - Open=(nohup xournalpp %f &) - View=(nohup xournalpp %f &) - -# html -regex/i/\.html?$ - Open=/usr/lib/mc/ext.d/web.sh open html - View=%view{ascii} /usr/lib/mc/ext.d/web.sh view html - -# StarOffice 5.2 -shell/.sdw - Open=/usr/lib/mc/ext.d/doc.sh open ooffice - -# StarOffice 6 and OpenOffice.org formats -regex/i/\.(odt|ott|sxw|stw|ods|ots|sxc|stc|odp|otp|sxi|sti|odg|otg|sxd|std|odb|odf|sxm|odm|sxg)$ - Open=/usr/lib/mc/ext.d/doc.sh open ooffice - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view odt - -# AbiWord -shell/.abw - Open=/usr/lib/mc/ext.d/doc.sh open abw - -# Gnumeric -shell/i/.gnumeric - Open=/usr/lib/mc/ext.d/doc.sh open gnumeric - -# Microsoft Word Document -regex/i/\.(do[ct]|wri|docx)$ - Open=/usr/lib/mc/ext.d/doc.sh open msdoc - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc -type/^Microsoft\ Word - Open=/usr/lib/mc/ext.d/doc.sh open msdoc - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msdoc - -# RTF document -shell/i/.rtf - Open=/usr/lib/mc/ext.d/doc.sh open msdoc - -# Microsoft Excel Worksheet -regex/i/\.(xl[sw]|xlsx)$ - Open=/usr/lib/mc/ext.d/doc.sh open msxls - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls -type/^Microsoft\ Excel - Open=/usr/lib/mc/ext.d/doc.sh open msxls - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msxls - -# Microsoft PowerPoint Presentation -regex/i/\.(pp[ts]|pptx)$ - Open=/usr/lib/mc/ext.d/doc.sh open msppt - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view msppt - -# Use OpenOffice.org/LibreOffice to open any MS Office documents -type/^Microsoft\ Office\ Document - Open=/usr/lib/mc/ext.d/doc.sh open ooffice -type/^Microsoft\ OOXML - Open=/usr/lib/mc/ext.d/doc.sh open ooffice - -# Framemaker -type/^FrameMaker - Open=/usr/lib/mc/ext.d/doc.sh open framemaker - -# DVI -shell/i/.dvi - Open=/usr/lib/mc/ext.d/doc.sh open dvi - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view dvi - -# TeX -shell/i/.tex - Include=editor - -# Markdown -shell/i/.md - Include=editor - -# DjVu -regex/i/\.djvu?$ - Open=/usr/lib/mc/ext.d/doc.sh open djvu - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view djvu - -# Comic Books -regex/i/\.cb[zr]$ - Open=/usr/lib/mc/ext.d/doc.sh open comic - -# Epub & mobi -regex/i/\.(epub|mobi)$ - Open=/usr/lib/mc/ext.d/doc.sh open epub - View=%view{ascii} /usr/lib/mc/ext.d/doc.sh view epub - - -### Miscellaneous ### - -# Compiled Java classes -shell/.class - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view javaclass - -# Makefile -regex/^[Mm]akefile$ - Open=make -f %f %{Enter parameters} - -# Imakefile -shell/Imakefile - Open=xmkmf -a - -# Makefile.PL (MakeMaker) -regex/^Makefile\.(PL|pl)$ - Open=%var{PERL:perl} %f - -# sqlite3.db -type/^SQLite 3.x database - Open=/usr/lib/mc/ext.d/misc.sh open sqlite - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view sqlite - -# dbf -shell/i/.dbf - Open=/usr/lib/mc/ext.d/misc.sh open dbf - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view dbf - -# REXX script -regex/\.(rexx?|cmd)$ - Open=rexx %f %{Enter parameters};echo "Press ENTER";read y - -# Disk images for Commodore computers (VIC20, C64, C128) -shell/i/.d64 - Open=%cd %p/uc1541:// - View=%view{ascii} c1541 %f -list - Extract=c1541 %f -extract - -# Glade, a user interface designer for GTK+ and GNOME -shell/i/.glade - Open=/usr/lib/mc/ext.d/misc.sh open glade - -# Gettext Catalogs -regex/\.g?mo$ - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view mo - -# po -shell/.po - Open=/usr/lib/mc/ext.d/misc.sh open po - -# lyx -shell/i/.lyx - Open=/usr/lib/mc/ext.d/misc.sh open lyx - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view lyx - -# torrent -shell/i/.torrent - View=%view{ascii} /usr/lib/mc/ext.d/misc.sh view torrent - - -### Plain compressed files ### - -# ace -shell/i/.ace - Open=%cd %p/uace:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view ace - Extract=unace x %f - -# arc -shell/i/.arc - Open=%cd %p/uarc:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view arc - Extract=arc x %f '*' - Extract (with flags)=I=%{Enter any Arc flags:}; if test -n "$I"; then arc x $I %f; fi - -# zip -shell/i/.zip - Open=%cd %p/uzip:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip - -# zip -type/i/^zip\ archive - Open=%cd %p/uzip:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip - -# jar(zip) -type/i/^Java\ (Jar\ file|archive)\ data\ \((zip|JAR)\) - Open=%cd %p/uzip:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zip - -# zoo -shell/i/.zoo - Open=%cd %p/uzoo:// - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zoo - -# gzip -type/^gzip - Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz - -regex/\.(gz|Z)$ - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz - -# bzip2 -type/^bzip2 - Open=/usr/lib/mc/ext.d/archive.sh view bzip2 %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2 - -regex/\.bz2?$ - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bz2 - -# bzip -type/^bzip - Open=/usr/lib/mc/ext.d/archive.sh view bzip %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view bzip - -# compress -type/^compress - Open=/usr/lib/mc/ext.d/archive.sh view gz %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view gz - -# lz -regex/\.lz$ - Open=/usr/lib/mc/ext.d/archive.sh view lz %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz - -# lz -type/^LZIP - Open=/usr/lib/mc/ext.d/archive.sh view lz %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz - -# lz4 -regex/\.lz4$ - Open=/usr/lib/mc/ext.d/archive.sh view lz4 %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lz4 - -# lzma -regex/\.lzma$ - Open=/usr/lib/mc/ext.d/archive.sh view lzma %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view lzma - -# xz -regex/\.xz$ - Open=/usr/lib/mc/ext.d/archive.sh view xz %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view xz - -# zstd -regex/\.zst$ - Open=/usr/lib/mc/ext.d/archive.sh view zst %var{PAGER:more} - View=%view{ascii} /usr/lib/mc/ext.d/archive.sh view zst - -# Parity Archive -type/^Parity\ Archive\ Volume\ Set - Open=/usr/lib/mc/ext.d/archive.sh open par2 - - -### Includes -# includes should be at end of bindings - -include/editor - Open=%var{EDITOR:vi} %f - -include/image - Open=/usr/lib/mc/ext.d/image.sh open ALL_FORMATS - View=%view{ascii} /usr/lib/mc/ext.d/image.sh view ALL_FORMATS - -include/video - Open=/usr/lib/mc/ext.d/video.sh open ALL_FORMATS - View=%view{ascii} /usr/lib/mc/ext.d/video.sh view ALL_FORMATS - - -### Default ### - -# Default target for anything not described above -default/* - Open= - View= - - -### EOF ### diff --git a/mc/menu b/mc/menu deleted file mode 100644 index 134e01b..0000000 --- a/mc/menu +++ /dev/null @@ -1,369 +0,0 @@ -shell_patterns=0 - -############################################################################## -# %% The % character -# %f The current file (if non-local vfs, file will be copied locally and -# %f will be full path to it) -# %p The current file -# %d The current working directory -# %s "Selected files"; the tagged files if any, otherwise the current file -# %t Tagged files -# %u Tagged files (and they are untagged on return from expand_format) -# %view Runs the commands and pipes standard output to the view command -# If %view is immediately followed by '{', recognize keywords -# ascii, hex, nroff and unform -# -# If the format letter is in uppercase, it refers to the other panel -# -# With a number followed the % character you can turn quoting on (default) -# and off. For example: -# %f quote expanded macro -# %1f ditto -# %0f don't quote expanded macro -############################################################################## - -+ ! t t -@ Do something on the current file - CMD=%{Enter command} - $CMD %f - -+ t t -@ Do something on the tagged files - CMD=%{Enter command} - for i in %t ; do - $CMD "$i" - done - -0 Edit a bug report and send it to root - I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1 - ${EDITOR-vi} "$I" - test -r "$I" && mail root < "$I" - rm -f "$I" - -=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r -1 Display the file with roff -man - %view{ascii,nroff} roff -c -Tlatin1 -mandoc %f - -2 Call the info hypertext browser - info - -= t d -3 Compress the current subdirectory (tar.gz) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \ - echo "../$tar.tar.gz created." - -4 Compress the current subdirectory (tar.bz2) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \ - echo "../$tar.tar.bz2 created." - -5 Compress the current subdirectory (tar.7z) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \ - echo "../$tar.tar.7z created." - -6 Compress the current subdirectory (tar.xz) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \ - echo "../$tar.tar.xz created." - -7 Compress the current subdirectory (tar.zst) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | zstd -f > "$tar.tar.zst" && \ - echo "../$tar.tar.zst created." - -= f \.c$ & t r -+ f \.c$ & t r & ! t t -c Compile and link current .c file - make "`basename %f .c`" 2>/dev/null || cc -O -o "`basename %f .c`" %f - -+ t r & ! t t -a Append file to opposite - cat %f >> %D/%f - -+ t t -A Append files to opposite files - for i in %t ; do - cat "$i" >> %D/"$i" - done - -+ t r & ! t t -d Delete file if a copy exists in the other directory. - if [ %d = %D ]; then - echo "The two directories must be different." - exit 1 - fi - if [ -f %D/%f ]; then # if two of them, then - if cmp -s %D/%f %f; then - rm %f && echo %f": DELETED." - else - echo %f" and "%D/%f" differ: NOT deleted." - echo -n "Press RETURN " - read key - fi - else - echo %f": No copy in "%D/%f": NOT deleted." - fi - -+ t t -D Delete tagged files if a copy exists in the other directory. - if [ %d = %D ]; then - echo "The two directores must be different." - exit 1 - fi - for i in %t ; do - if [ -f %D/"$i" ]; then - SUM1=`sum "$i"` - SUM2=`sum %D/"$i"` - if [ "$SUM1" = "$SUM2" ]; then - rm "$i" && echo "${i}: DELETED." - else - echo "$i and "%D"/$i differ: NOT deleted." - fi - else - echo "$i has no copy in "%D": NOT deleted." - fi - done - -m View manual page - MAN=%{Enter manual name} - %view{ascii,nroff} MANROFFOPT='-c -Tlatin1' MAN_KEEP_FORMATTING=1 man -P cat "$MAN" - -= f \.gz$ & t r -+ ! t t -n Inspect gzip'ed newsbatch file - dd if=%f bs=1 skip=12 | zcat | ${PAGER-more} - # assuming the cunbatch header is 12 bytes long. - -= t r & -+ ! t t -h Strip headers from current newsarticle - CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null - case "$CHECK" in - Newsgroups:|Path:) - I=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 - cp %f "$I" && sed '/^'"$CHECK"' /,/^$/d' "$I" > %f - [ "$?" = "0" ] && rm "$I" - echo %f": header removed." - ;; - *) - echo %f" is not a news article." - ;; - esac - -+ t t -H Strip headers from the marked newsarticles - for i in %t ; do - CHECK=`awk '{print $1 ; exit}' "$i"` 2>/dev/null - WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 - case "$CHECK" in - Newsgroups:|Path:) - cp "$i" "$WFILE" && sed '/^'"$CHECK"' /,/^$/d' "$WFILE" > "$i" - if [ "$?" = "0" ]; then - rm "$WFILE"; echo "$i header removed. OK." - else - echo "Oops! Please check $i against $WFILE." - fi - ;; - *) - echo "$i skipped: Not a news article." - ;; - esac - done - -= t r -+ ! t t -r Copy file to remote host - echo -n "To which host?: " - read Host - echo -n "To which directory on $Host?: " - read Dir - rcp -p %f "${Host}:${Dir}" - -+ t t -R Copy files to remote host (no error checking) - echo -n "Copy files to which host?: " - read Host - echo -n "To which directory on $Host? :" - read Dir - rcp -pr %u "${Host}:${Dir}" - -= f \.tex$ & t r -+ f \.tex$ & t r & ! t t -t Run latex on file and show it with xdvi - latex %f && xdvi "`basename %f .tex`".dvi - -=+ f ^part | f ^Part | f uue & t r -+ t t -U Uudecode marked news articles (needs work) - ( - for i in %t ; do # strip headers - FIRST=`awk '{print $1 ; exit}' "$i"` - cat "$i" | sed '/^'"$FIRST"' /,/^$/d' - done - ) | sed '/^$/d' | sed -n '/^begin 6/,/^end$/p' | uudecode - if [ "$?" != "0" ]; then - echo "Cannot decode "%t"." - fi - echo "Please test the output file before deleting anything." - -=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.lz$ | f \.tar\.lz4$ | f \.tar\.lzma$ | f \.tar\.7z$ | f \.tar\.xz$ | f \.tar\.zst | f \.tar\.Z$ | f \.tar\.bz2$ & t rl -x Extract the contents of a compressed tar file - unset PRG - case %f in - *.tar.7z) PRG="7za e -so";; - *.tar.bz2) PRG="bunzip2 -c";; - *.tar.gz|*.tar.z|*.tgz|*.tpz|*.tar.Z) PRG="gzip -dc";; - *.tar.lz) PRG="lzip -dc";; - *.tar.lz4) PRG="lz4 -dc";; - *.tar.lzma) PRG="lzma -dc";; - *.tar.xz) PRG="xz -dc";; - *.tar.zst) PRG="zstd -dc";; - *) exit 1;; - esac - $PRG %f | tar xvf - - -= t r -+ ! t t -y Gzip or gunzip current file - unset DECOMP - case %f in - *.gz|*.[zZ]) DECOMP=-d;; - esac - # Do *not* add quotes around $DECOMP! - gzip $DECOMP -v %f - -+ t t -Y Gzip or gunzip tagged files - for i in %t ; do - unset DECOMP - case "$i" in - *.gz|*.[zZ]) DECOMP=-d;; - esac - gzip $DECOMP -v "$i" - done - -+ ! t t -b Bzip2 or bunzip2 current file - unset DECOMP - case %f in - *.bz2) DECOMP=-d;; - esac - bzip2 $DECOMP -v %f - -+ t t -B Bzip2 or bunzip2 tagged files - for i in %t ; do - unset DECOMP - case "$i" in - *.bz2) DECOMP=-d;; - esac - bzip2 $DECOMP -v "$i" - done - -+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t -z Extract compressed tar file to subdirectory - unset D - set gzip -cd - case %f in - *.tar.F) D=`basename %f .tar.F`; set freeze -dc;; - *.tar.Z) D=`basename %f .tar.Z`;; - *.tar.bz2) D=`basename %f .tar.bz2`; set bunzip2 -c;; - *.tar.gz) D=`basename %f .tar.gz`;; - *.tar.z) D=`basename %f .tar.z`;; - *.tgz) D=`basename %f .tgz`;; - *.tpz) D=`basename %f .tpz`;; - esac - mkdir "$D"; cd "$D" && ("$1" "$2" ../%f | tar xvf -) - -+ t t -Z Extract compressed tar files to subdirectories - for i in %t ; do - set gzip -dc - unset D - case "$i" in - *.tar.F) D=`basename "$i" .tar.F`; set freeze -dc;; - *.tar.Z) D=`basename "$i" .tar.Z`;; - *.tar.bz2) D=`basename "$i" .tar.bz2`; set bunzip2 -c;; - *.tar.gz) D=`basename "$i" .tar.gz`;; - *.tar.z) D=`basename "$i" .tar.z`;; - *.tgz) D=`basename "$i" .tgz`;; - *.tpz) D=`basename "$i" .tpz`;; - esac - mkdir "$D"; (cd "$D" && "$1" "$2" "../$i" | tar xvf -) - done - -+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t -c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 - unset D - unset EXT - case %f in - *.Z) EXT=Z;; - *.bz2) EXT=bz2;; - *.gz) EXT=gz;; - *.tgz) EXT=tgz;; - *.tpz) EXT=tpz;; - *.z) EXT=z;; - esac - case "$EXT" in - bz2|Z|gz|z) D=`basename %f ."$EXT"`;; - tgz|tpz) D=`basename %f ."$EXT"`.tar;; - esac - if [ "$EXT" = "bz2" ]; then - bunzip2 -v %f - gzip -f9 -v "$D" - else - gunzip -v %f - bzip2 -v "$D" - fi - -+ t t -C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 - for i in %t ; do - unset D - unset EXT - case "$i" in - *.Z) EXT=Z;; - *.bz2) EXT=bz2;; - *.gz) EXT=gz;; - *.tgz) EXT=tgz;; - *.tpz) EXT=tpz;; - *.z) EXT=z;; - esac - case "$EXT" in - bz2|Z|gz|z) D=`basename "$i" ."$EXT"`;; - tgz|tpz) D=`basename "$i" ."$EXT"`.tar;; - esac - if [ "$EXT" = "bz2" ]; then - bunzip2 -v "$i" - gzip -f9 -v "$D" - else - gunzip -v "$i" - bzip2 -v "$D" - fi - done - -+ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh -o Open next a free console - open -s -- sh diff --git a/mc/panels.ini b/mc/panels.ini deleted file mode 100644 index e69de29..0000000 From edbc45351f252afca4f057bb435c03998183842f Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Thu, 3 Jun 2021 12:26:50 +0200 Subject: [PATCH 9/9] Added nvim config --- .gitignore | 1 + nvim/init.vim | 183 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 184 insertions(+) create mode 100644 nvim/init.vim diff --git a/.gitignore b/.gitignore index d9ecc50..ba809ca 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ !/rofi !/dunst !/mc/mc.keymap +!/nvim/init.vim diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..67ece20 --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,183 @@ +" URL: http://vim.wikia.com/wiki/Example_vimrc +" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode +" Description: A minimal, but feature rich, example .vimrc. If you are a +" newbie, basing your first .vimrc on this file is a good choice. +" If you're a more advanced user, building your own .vimrc based +" on this file is still a good idea. + +"------------------------------------------------------------ +" Features {{{1 +" +" These options and commands enable some very useful features in Vim, that +" no user should have to live without. + +" Set 'nocompatible' to ward off unexpected things that your distro might +" have made, as well as sanely reset options when re-sourcing .vimrc +set nocompatible + +" Attempt to determine the type of a file based on its name and possibly its +" contents. Use this to allow intelligent auto-indenting for each filetype, +" and for plugins that are filetype specific. +if has('filetype') + filetype indent plugin on +endif + +" Enable syntax highlighting +if has('syntax') + syntax on +endif + +" Plugins +call plug#begin('~/.vim/plugged') + +Plug 'itchyny/lightline.vim' +Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } +Plug 'Valloric/YouCompleteMe' +Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} +Plug 'https://github.com/ap/vim-css-color.git' + +call plug#end() + +"------------------------------------------------------------ +" Must have options {{{1 +" +" These are highly recommended options. + +" Vim with default settings does not allow easy switching between multiple files +" in the same editor window. Users can use multiple split windows or multiple +" tab pages to edit multiple files, but it is still best to enable an option to +" allow easier switching between files. +" +" One such option is the 'hidden' option, which allows you to re-use the same +" window and switch from an unsaved buffer without saving it first. Also allows +" you to keep an undo history for multiple files when re-using the same window +" in this way. Note that using persistent undo also lets you undo in multiple +" files even in the same window, but is less efficient and is actually designed +" for keeping undo history after closing Vim entirely. Vim will complain if you +" try to quit without saving, and swap files will keep you safe if your computer +" crashes. +set hidden + +" Note that not everyone likes working this way (with the hidden option). +" Alternatives include using tabs or split windows instead of re-using the same +" window as mentioned above, and/or either of the following options: +" set confirm +" set autowriteall + +" Better command-line completion +set wildmenu + +" Show partial commands in the last line of the screen +set showcmd + +" Highlight searches (use to temporarily turn off highlighting; see the +" mapping of below) +set hlsearch + +" Modelines have historically been a source of security vulnerabilities. As +" such, it may be a good idea to disable them and use the securemodelines +" script, . +" set nomodeline + + +"------------------------------------------------------------ +" Usability options {{{1 +" +" These are options that users frequently set in their .vimrc. Some of them +" change Vim's behaviour in ways which deviate from the true Vi way, but +" which are considered to add usability. Which, if any, of these options to +" use is very much a personal preference, but they are harmless. + +" Use case insensitive search, except when using capital letters +set ignorecase +set smartcase + +" Allow backspacing over autoindent, line breaks and start of insert action +set backspace=indent,eol,start + +" When opening a new line and no filetype-specific indenting is enabled, keep +" the same indent as the line you're currently on. Useful for READMEs, etc. +set autoindent + +" Stop certain movements from always going to the first character of a line. +" While this behaviour deviates from that of Vi, it does what most users +" coming from other editors would expect. +set nostartofline + +" Display the cursor position on the last line of the screen or in the status +" line of a window +set ruler + +" Always display the status line, even if only one window is displayed +set laststatus=2 + +" Instead of failing a command because of unsaved changes, instead raise a +" dialogue asking if you wish to save changed files. +set confirm + +" Use visual bell instead of beeping when doing something wrong +set visualbell + +" And reset the terminal code for the visual bell. If visualbell is set, and +" this line is also included, vim will neither flash nor beep. If visualbell +" is unset, this does nothing. +set t_vb= + +" Enable use of the mouse for all modes +if has('mouse') + set mouse=a +endif + +" Set the command window height to 2 lines, to avoid many cases of having to +" "press to continue" +set cmdheight=2 + +" Display line numbers on the left +set number relativenumber + +" Quickly time out on keycodes, but never time out on mappings +set notimeout ttimeout ttimeoutlen=200 + +" Use to toggle between 'paste' and 'nopaste' +set pastetoggle= + + +"------------------------------------------------------------ +" Indentation options {{{1 +" +" Indentation settings according to personal preference. + +" Indentation settings for using 4 spaces instead of tabs. +" Do not change 'tabstop' from its default value of 8 with this setup. +set shiftwidth=4 +set softtabstop=4 +set expandtab + +" Indentation settings for using hard tabs for indent. Display tabs as +" four characters wide. +"set shiftwidth=4 +"set tabstop=4 + + +"------------------------------------------------------------ +" Mappings {{{1 +" +" Useful mappings + +" Map Y to act like D and C, i.e. to yank until EOL, rather than act as yy, +" which is the default +map Y y$ + +" Map (redraw screen) to also turn off search highlighting until the +" next search +nnoremap :nohl + +" Shortcuts for Ycm +nnoremap :YcmCompleter Format +nnoremap :YcmCompleter GoTo +nnoremap :NERDTreeToggle +"------------------------------------------------------------ + +" use Mouse clipboard instead of vims internal one +" use unnamedplus for Keyboard clipboard +set clipboard=unnamed