kbdd для hyprland
Привет ЛОР. Сабж. Перебрался bspwm на hyprland, теперь голову ломаю как раскладку привязать к окну.
Привет ЛОР. Сабж. Перебрался bspwm на hyprland, теперь голову ломаю как раскладку привязать к окну.
Добрый день ЛОР. Сабж. Возможно ли вообще такое? Мне гостевая система нужна для прошивки окирпиченого девайса. Проброс устройств не предлагать.
Добрый день лор. Сабж.
Привет лор! Сабж. Готовил все по стандарту, но разрешение сплеша при загрузке слишком низкое. Ниже конфиги. Заранее благодарен.
# GRUB boot loader configuration
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet rd.luks.name=da754ec6-92c5-4b59-a930-4e477bf599e7=cryptlvm root=/dev/vg0/root splash udev.log_priority=3"
GRUB_CMDLINE_LINUX=""
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"
# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y
# Set to 'countdown' or 'hidden' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=menu
# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console
# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `videoinfo'
GRUB_GFXMODE=auto
# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep
# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
# Uncomment and set to the desired menu colors. Used by normal and wallpaper
# modes only. Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"
# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"
# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
#GRUB_SAVEDEFAULT=true
# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y
# Probing for other operating systems is disabled for security reasons. Read
# documentation on GRUB_DISABLE_OS_PROBER, if still want to enable this
# functionality install os-prober and uncomment to detect and include other
# operating systems.
#GRUB_DISABLE_OS_PROBER=false
# MODULES
# The following modules are loaded before any boot hooks are
# run. Advanced users may wish to specify all system modules
# in this array. For instance:
# MODULES=(usbhid xhci_hcd)
MODULES=()
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run last, so it may be used to
# override the actual binaries included by a given hook
# BINARIES are dependency parsed, so you may safely ignore libraries
BINARIES=()
# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in any way. This is useful for config files.
FILES=()
# HOOKS
# This is the most important setting in this file. The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
## This setup specifies all modules in the MODULES setting above.
## No RAID, lvm2, or encrypted root is needed.
# HOOKS=(base)
#
## This setup will autodetect all modules for your system and should
## work as a sane default
# HOOKS=(base udev autodetect modconf block filesystems fsck)
#
## This setup will generate a 'full' image which supports most systems.
## No autodetection is done.
# HOOKS=(base udev modconf block filesystems fsck)
#
## This setup assembles a mdadm array with an encrypted root file system.
## Note: See 'mkinitcpio -H mdadm_udev' for more information on RAID devices.
# HOOKS=(base udev modconf keyboard keymap consolefont block mdadm_udev encrypt filesystems fsck)
#
## This setup loads an lvm2 volume group.
# HOOKS=(base udev modconf block lvm2 filesystems fsck)
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# usr and fsck hooks.
#HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt lvm2 filesystems fsck)
#HOOKS=(base systemd plymouth autodetect modconf kms keyboard sd-vconsole block sd-encrypt lvm2 filesystems fsck)
#HOOKS=(base udev autodetect kms modconf block keyboard keymap consolefont plymouth encrypt lvm2 filesystems fsck)
HOOKS=(base systemd plymouth autodetect modconf kms keyboard sd-vconsole block sd-encrypt lvm2 filesystems fsck)
# COMPRESSION
# Use this to compress the initramfs image. By default, zstd compression
# is used. Use 'cat' to create an uncompressed image.
#COMPRESSION="zstd"
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
#COMPRESSION="lz4"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=()
# MODULES_DECOMPRESS
# Decompress kernel modules during initramfs creation.
# Enable to speedup boot process, disable to save RAM
# during early userspace. Switch (yes/no).
#MODULES_DECOMPRESS="yes"
Существуют ли такие? Без накладки логотипа при сохранении.
Сабж.
Привет ЛОР.
Сабж. Мне нужна эта команда для того чтоб скрывать панель.
Добрый день ЛОР.
Сабж. По умолчанию включено скругление.
Сабж.
Здравствуй ЛОР. Ситуация следующая: После переноса системы на другой носитель i3lock перестал принимать пароль. Пароль заведомо правильный ввожу. В debug нет ничего странного. Начитавшись форумов советуют решить это chmod +r /etc/shadow. Присвоив права чтения всем блокировщик работает адекватно, но не считаю это правильным решением. Мож у кого какие мысли будут?
Сабж. Ctrl+C –> Ctrl+V работает. Средсвами меню нет.
Сабж
Сабж
Сабж
Доброго времени суток! Прошу помощи прикрутить форму загрузки медиаконтента в админ-панели. Дано:
Модель контента
class MediaItem(models.Model):
video = VideoField( upload_to = upload_to,
width_field = 'video_width', height_field = 'video_height',
rotation_field = 'video_rotation',
mimetype_field = 'video_mimetype',
duration_field = 'video_duration',
thumbnail_field = 'video_thumbnail')
video_width = models.IntegerField(null = True, blank = True)
video_height = models.IntegerField(null = True, blank = True)
video_rotation = models.FloatField(null = True, blank = True)
video_mimetype = models.CharField(max_length = 32, null = True, blank = True)
video_duration = models.IntegerField(null = True, blank = True)
video_thumbnail = models.ImageField(null = True, blank = True)
video_mp4 = VideoSpecField(source = 'video', format = 'mp4')
video_ogg = VideoSpecField(source = 'video', format = 'ogg')
video_webm = VideoSpecField(source='video', format='webm')
def __unicode__(self):
return self.video.name
def video_specs_generated(self):
if self.video_mp4.generated() and self.video_ogg.generated():
return True
return False
Форма
from videokit.forms import VideoField
class MediaItemCreateForm(forms.Form):
video = VideoField()
Представление
def item_create(request):
template = 'app/item_create.html'
item_create_form = MediaItemCreateForm()
if request.method == 'POST':
item_create_form = MediaItemCreateForm(request.POST, request.FILES)
if item_create_form.is_valid():
video = request.FILES.get('video', None)
if video:
media_item = MediaItem(video = video)
media_item.save()
media_item.video_webm.generate()
return HttpResponseRedirect(reverse('list'))
context = {
'item_create_form' : item_create_form,
}
return render(request, template, context)
Ну и дефолтный класс в admin.py
class MediaItemAdmin(admin.ModelAdmin):
pass
admin.site.register(MediaItem, MediaItemAdmin)
Вопрос заключается в следующем: что написать в дефолтном классе админки чтоб работала загрузка файла через админку а не с сайта.
Добрый вечер ЛОР. Накатил генту с плазмой, заметил отсутствие в systemsettings настройки блокировки экрана (хочу сменить оформление). Вангую явно что то не доустановил. Подскажите какой пакет отвечает за этот пункт?
Доброго вермени суток ЛОР. Я только начал познавать alpine в контернерах. Вопрос в следующем: прикрутил локализацию от товарища Athor.
В /etc/profile.d/locale.sh следующее:
export MUSL_LOCPATH="/usr/share/i18n/locales/musl"
export CHARSET=UTF-8
export LANG=ru_RU.UTF8
export LC_COLLATE=ru_RU
locale -a показывает только:
C
C.UTF-8
Что я делаю не так?
Привет ЛОР. Вопрос следующий: у меня имеется док-станция Lenovo ThinkPad 4337, и ноут thinkpad t430.
У ноута нет diplay порта у док-станции есть. Будет ли работать внешний монитор подключенный через display порт к достанции?
Добрый вечер ЛОР. Имеется машина с несколькими контейнерами, конфигурилось все через lxd.
Кинфигурация одного из контейнеров:
architecture: x86_64
config:
image.architecture: amd64
image.description: Gentoo current amd64 (20201222_16:07)
image.os: Gentoo
image.release: current
image.serial: "20201222_16:07"
image.type: squashfs
volatile.base_image: 2e50c6c71a2e86ab385f667655ed4e8918d460acdd1ac23ff8c0908f7db139ea
volatile.eth0.host_name: veth68a1816d
volatile.eth0.hwaddr: 00:16:3e:27:49:02
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":65536},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":65536}]'
volatile.last_state.power: RUNNING
devices:
eth0:
ipv4.address: 192.168.10.1
name: eth0
nictype: bridged
parent: lxdbr0
type: nic
ephemeral: false
profiles:
- default
- hostfs
stateful: false
description: ""
Конфигурация бриджа:
config:
ipv4.address: 198.168.10.14/28
ipv4.nat: "true"
ipv6.address: none
description: ""
name: lxdbr0
type: bridge
used_by:
- /1.0/instances/srv-mail
- /1.0/instances/srv-db
- /1.0/profiles/default
managed: true
status: Created
locations:
- none
Конфигурация дефолтного профиля:
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
root:
path: /
pool: default
type: disk
name: default
used_by:
- /1.0/instances/srv-mail
- /1.0/instances/srv-db
Форвардинг пакетов включен. Что я делаю не так?
Доброе утро ЛОР. Сабж.
Имею рабочую машину с 2 дисками. На первом стоит арч, на втором windows. Нужно показать systemd загрузчику где лежит виндовый загрузчик.
следующие → |