-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from alt-gnome-team/dev
0.6.0
- Loading branch information
Showing
6 changed files
with
75 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
# Version: 0.5.0 | ||
# Version: 0.6.0 | ||
|
||
import gi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,88 @@ | ||
# nautilus backspace | ||
<h1 align="center"> | ||
Nautilus backspace | ||
</h1> | ||
|
||
<p align="center"> | ||
<img alt="GitHub Release" src="https://img.shields.io/github/v/release/alt-gnome-team/nautilus-backspace"> | ||
<img alt="GitHub License" src="https://img.shields.io/github/license/alt-gnome-team/nautilus-backspace"> | ||
</p> | ||
|
||
<p align="center"> | ||
Расширения для возврата назад в Nautilus по нажатию сочетания клавиш, назначенного через GSettings | ||
</p> | ||
|
||
|
||
> [!NOTE] | ||
> Идея принадлежит [riclc](https://github.com/riclc), но, увы, автор забросил свой аккаунт. | ||
## Установка из репозитория | ||
|
||
Расширение позволяет возвращаться в предыдущую директорию в Nautilus по нажатию кнопки backspace или иного сочетания клавиш, назначенного через файл конфигурации. | ||
[](https://repology.org/project/nautilus-backspace/versions) | ||
|
||
## Установка | ||
### ALT Sisyphus | ||
```shell | ||
su - | ||
apt-get update | ||
apt-get install nautilus-backspace | ||
``` | ||
|
||
### 1. Устанавливаем зависимости. | ||
|
||
#### Debian/Ubuntu | ||
## Сборка из исходного кода | ||
|
||
```shell | ||
sudo apt-get install python-nautilus | ||
git clone https://github.com/alt-gnome-team/nautilus-backspace.git | ||
cd nautilus-backspace | ||
``` | ||
|
||
#### ALT Linux | ||
### Зависимости | ||
|
||
#### ALT Sisyphus | ||
```shell | ||
su - | ||
apt-get update | ||
apt-get install nautilus-python libnautilus-gir | ||
``` | ||
Или через epm: | ||
|
||
#### Fedora | ||
```shell | ||
epm -i nautilus-python libnautilus-gir | ||
sudo dnf update | ||
sudo dnf install nautilus-python | ||
``` | ||
|
||
### 2. Устанавливаем расширение. | ||
#### Debian/Ubuntu | ||
```shell | ||
sudo apt update | ||
sudo apt install python3-nautilus gir1.2-nautilus-4.0 | ||
``` | ||
|
||
#### Arch Linux | ||
```shell | ||
curl -sSL https://raw.githubusercontent.com/alt-gnome-team/nautilus_backspace/main/install | sh | ||
sudo pacman -Sy python-nautilus | ||
``` | ||
|
||
## Настройка | ||
|
||
### Меняем сочетание: | ||
### Сборка | ||
|
||
Открываем config | ||
```shell | ||
nano ~/.config/nautilus_backspace/config | ||
#### Системная установка | ||
``` | ||
sudo make | ||
sudo make schemas | ||
``` | ||
|
||
Вставляем необходимое сочетание | ||
```ini | ||
[DEFAULT] | ||
shortcut = <Alt>Down | ||
#### Пользовательская установка | ||
``` | ||
make | ||
make schemas | ||
``` | ||
|
||
|
||
## Настройка | ||
|
||
### Смена сочетания | ||
```shell | ||
gsettings set io.github.alt-gnome-team.nautilus-backspace back '<Alt>Down' | ||
``` | ||
### Возврат к значению по умолчанию | ||
```shell | ||
gsettings reset io.github.alt-gnome-team.nautilus-backspace back | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ifeq ($(shell id -u), 0) | ||
EXTENSION_DIR = /usr/share/nautilus-python/extensions | ||
SCHEMA_DIR = /usr/share/glib-2.0/schemas | ||
else | ||
EXTENSION_DIR = ~/.local/share/nautilus-python/extensions | ||
SCHEMA_DIR = ~/.local/share/glib-2.0/schemas | ||
endif | ||
|
||
install: | ||
install -d $(EXTENSION_DIR) | ||
install Back.py $(EXTENSION_DIR) | ||
|
||
install -d $(SCHEMA_DIR) | ||
install io.github.alt-gnome-team.nautilus-backspace.gschema.xml $(SCHEMA_DIR) | ||
|
||
schemas: | ||
glib-compile-schemas $(SCHEMA_DIR) |