Страница 19 из 22

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 11 сен 2017, 11:36
BadBird
Chocobo, нее, не ругается.
Обе софтины запускаются но работают не корректно.

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 11 сен 2017, 12:34
Bill Williamson
BadBird писал(а): Не могу сделать гиф с peek
byzanz работает.
BadBird писал(а): так же не могу сделать видео с экрана монитора с kazam
Можно заменить на simplescreenrecorder, тоже работает без проблем в i3wm.

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 11 сен 2017, 13:54
BadBird
Bill Williamson писал(а): byzanz работает.
Устанавливаю:
sudo apt-get purge byzanz

Но не могу запустить, нет ни ярлыка, и через терминал не запускается...

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 11 сен 2017, 13:57
Chocobo

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 11 сен 2017, 14:02
BadBird
Chocobo, ааа, к сожалению, без гуи не вариант....нет желания держать в голове кучу команд для нее....
А интересно, simplescreenrecorder может видео в гиф сохранять?
Было бы не плохо, держать одну софтину для нескольких задач...

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 12 сен 2017, 10:52
Dja
Dja писал(а): Решение нашел здесь
вот, кстати, видео https://youtu.be/ZF76DELEpjM

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 12 сен 2017, 19:12
BadBird

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 23 сен 2017, 12:20
BadBird
Так как уже дополнять нечем, выкладываю конфиги свои.

Конфиг i3:

Код: Выделить всё

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#

# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!

set $mod Mod4

# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:Terminus Re33 8

# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
font pango:Terminus Re33 8

# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.

# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod

# start a terminal
bindsym $mod+Return exec terminator --geometry=+630+0

# kill focused window
bindsym $mod+Shift+q kill

# start dmenu (a program launcher)
bindsym $mod+d exec rofi -show run -xoffset -815 -yoffset -350 -width 15 -lines 15 -bc "#DCDAD5" -bg "#DCDAD5" -fg "#000000" -hlbg "#A09D9D" -hlfg "#000000" 
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop

# 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+colon 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

# split in horizontal orientation
bindsym $mod+h split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle

# change container layout (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

# focus the parent container
bindsym $mod+a focus parent

# focus the child container
#bindsym $mod+d focus child

# switch to workspace
bindsym $mod+1 workspace 1:  1.Internet
bindsym $mod+2 workspace 2:  2.System
bindsym $mod+3 workspace 3:  3.Media
bindsym $mod+4 workspace 4:  4.Office
bindsym $mod+5 workspace 5:  5.Graphic
bindsym $mod+6 workspace 6:  6.Games

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1:  1.Internet
bindsym $mod+Shift+2 move container to workspace 2:  2.System
bindsym $mod+Shift+3 move container to workspace 3:  3.Media
bindsym $mod+Shift+4 move container to workspace 4:  4.Office
bindsym $mod+Shift+5 move container to workspace 5:  5.Graphic
bindsym $mod+Shift+6 move container to workspace 6:  6.Games

# Assign windows to their respective workspaces
# set $ws1 "5:  5.Graphic"
# assign [class="Ristretto"] $ws1
# exec --no-startup-id i3-msg 'workspace $ws1; exec ristretto'

# set $ws2 "2:  2.System"
# assign [class="Thunar"] $ws2
# exec --no-startup-id i3-msg 'workspace $ws2; exec thunar'

# set $ws3 "3:  3.Media"
# assign [class="Parole"] $ws3
# exec --no-startup-id i3-msg 'workspace $ws3; exec parole'

# set $ws4 "4:  4.Office"
# assign [class="Mousepad"] $ws4
# exec --no-startup-id i3-msg 'workspace $ws4; exec mousepad'

# set $ws5 "1:  1.Internet"
# assign [class="Firefox"] $ws5
# exec --no-startup-id i3-msg 'workspace $ws5; exec firefox'

# 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'"

# resize window (you can also use the mouse for that)
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 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym semicolon resize grow width 10 px or 10 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

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}

bindsym $mod+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
# mode hide
        status_command i3blocks 
    strip_workspace_numbers yes
    # binding_mode_indicator yes
    workspace_buttons yes
font pango:Terminus Re33 Bold 8
separator_symbol ">"
colors {
        background #DCDAD5
        statusline #bbbbbb

        focused_workspace  #CDCCC8 #A09D9D #000000
        urgent_workspace   #CDCCC8 #A09D9D #000000
        binding_mode       #CDCCC8 #A09D9D #000000
}
}

# Power PS

set $Locker i3lock && sleep 1

set $mode_system Screensaver (l), Exit (e), Slip (s), Restart (r), Stop (Shift+s)
mode "$mode_system" {
bindsym l exec --no-startup-id $Locker, mode "default"
bindsym e exec --no-startup-id i3-msg exit, mode "default"
bindsym s exec --no-startup-id $Locker && systemctl suspend, mode "default"
bindsym h exec --no-startup-id $Locker && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"

# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}

bindsym $mod+Pause mode "$mode_system"

# Theme colors
client.focused #919191 #919191 #000000 #000000
client.unfocused #DCDAD5 #DCDAD5 #000000 #000000
client.urgent #DCDAD5 #DCDAD5 #000000 #000000

# Open specific applications in floating mode
for_window [class="Xfce4-appfinder"] floating enable border normal
for_window [class="Shutter"] floating enable border normal
for_window [class="Gnome-system-monitor"] floating enable border normal
for_window [class="Streamtuner2"] floating enable border normal
for_window [class="Software-properties-gtk"] floating enable border normal
for_window [class="VirtualBox"] floating enable border normal
for_window [class="vlc"] floating enable border normal
for_window [class="Terminator"] floating enable border normal
for_window [class="Gnome-disks"] floating enable border normal
for_window [class="Peek"] floating enable border normal
for_window [class="Kazam"] floating enable border normal

# Border style for new windows
new_window pixel 2

# Arbitrary commands for specific windows
for_window [class="Thunar"] border normal 
for_window [class="Mousepad"] border normal 
for_window [class="libreoffice"] border normal

focus_follows_mouse no

# Autostart
exec conky
exec clipit
exec --no-startup-id compton -b
exec --no-startup-id nitrogen --restore
# exec gxneur &

# Start Applications
bindsym Ctrl+a exec xfce4-appfinder
bindsym Ctrl+c exec gnome-calculator
bindsym Ctrl+d exec gnome-disks
bindsym Ctrl+f exec firefox
bindsym Ctrl+g exec gthumb
bindsym Ctrl+h exec gtkhash
bindsym Ctrl+k exec kazam
bindsym Ctrl+l exec libreoffice
bindsym Ctrl+m exec mousepad
bindsym Ctrl+n exec xfce4-settings-manager
bindsym Ctrl+o exec opera
bindsym Ctrl+p exec pinta
bindsym Ctrl+s exec shutter
bindsym Ctrl+t exec thunar
bindsym Ctrl+v exec virtualbox
bindsym $mod+Ctrl+c exec gcolor2
bindsym $mod+Ctrl+g exec google-chrome
bindsym $mod+Ctrl+s exec synaptic
bindsym $mod+Ctrl+v exec vlc
bindsym $mod+Ctrl+t exec transmission-gtk
bindsym $mod+shift+s exec synapse
bindsym F12 exec terminator --geometry=+630+0
bindsym Print exec xfce4-screenshooter -f
bindsym shift+mod1+Delete exec gnome-system-monitor
Конфиг i3blocks:

Код: Выделить всё

# i3blocks config file
#
# Please see man i3blocks for a complete reference!
# The man page is also hosted at http://vivien.github.io/i3blocks
#
# List of valid properties:
#
# align
# color
# command
# full_text
# instance
# interval
# label
# min_width
# name
# separator
# separator_block_width
# short_text
# signal
# urgent

# Global properties
#
# The top properties below are applied to every block, but can be overridden.
# Each block command defaults to the script name to avoid boilerplate.
command=/usr/share/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none

# Volume indicator
#
# The first parameter sets the step (and units to display)
# The second parameter overrides the mixer selection
# See the script for details.
[volume]
label=VOL
#label=♪
instance=Master
#instance=PCM
interval=once
signal=10
color=#000000

# Switcher
[kbd]
interval=1
command=xset -q|grep LED| awk '{ if (substr ($10,5,1) == 1) print "RU\nRU\n#0000FF"; else print "EN\nEN\n#FF0000"; }'

# Memory usage
#
# The type defaults to "mem" if the instance is not specified.
# [memory]
# label=MEM
# separator=false
# interval=30
# color=#000000

# [memory]
# label=SWAP
# instance=swap
# separator=false
# interval=30
# color=#000000

# Disk usage
#
# The directory defaults to $HOME if the instance is not specified.
# The script may be called with a optional argument to set the alert
# (defaults to 10 for 10%).
# [disk]
# label=HOME
# instance=/mnt/data
# interval=30
# color=#000000

# Network interface monitoring
#
# If the instance is not specified, use the interface used for default route.
# The address can be forced to IPv4 or IPv6 with -4 or -6 switches.
[iface]
#instance=wlan0
#color=#00FF00
#interval=10
#separator=false

[wifi]
#instance=wlp3s0
interval=10
separator=false

[bandwidth]
#instance=enp0s3
interval=1`
color=#000000

# CPU usage
#
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[cpu_usage]
label=CPU
interval=10
# min_width=CPU: 100.00%
#separator=false
color=#000000

#[load_average]
#interval=10

# Battery indicator
#
# The battery instance defaults to 0.
[battery]
label=BAT
#label=⚡
#instance=1
interval=30

# Date Time
#
[time]
command=date '+%R %a %d %b'
interval=5
color=#000000

# Generic media player support
#
# This displays "ARTIST - SONG" if a music is playing.
# Supported players are: spotify, vlc, audacious, xmms2, mplayer, and others.
#[mediaplayer]
#instance=spotify
#interval=5
#signal=10

# OpenVPN support
#
# Support multiple VPN, with colors.
#[openvpn]
#interval=20

# Temperature
#
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
#[temperature]
#label=TEMP
#interval=10

# Key indicators
#
# Add the following bindings to i3 config file:
#
# bindsym --release Caps_Lock exec pkill -SIGRTMIN+11 i3blocks
# bindsym --release Num_Lock  exec pkill -SIGRTMIN+11 i3blocks
#[keyindicator]
#instance=CAPS
#interval=once
#signal=11

#[keyindicator]
#instance=NUM
#interval=once
#signal=11
Конфиг volume

Код: Выделить всё

#!/bin/bash
# Copyright (C) 2014 Julien Bonjean <julien@bonjean.info>
# Copyright (C) 2014 Alexander Keller <github@nycroth.com>

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

#------------------------------------------------------------------------

# The second parameter overrides the mixer selection
# For PulseAudio users, use "pulse"
# For Jack/Jack2 users, use "jackplug"
# For ALSA users, you may use "default" for your primary card
# or you may use hw:# where # is the number of the card desired
MIXER="default"
[ -n "$(lsmod | grep pulse)" ] && MIXER="pulse"
[ -n "$(lsmod | grep jack)" ] && MIXER="jackplug"
MIXER="${2:-$MIXER}"

# The instance option sets the control to report and configure
# This defaults to the first control of your selected mixer
# For a list of the available, use `amixer -D $Your_Mixer scontrols`
SCONTROL="${BLOCK_INSTANCE:-$(amixer -D $MIXER scontrols |
                  sed -n "s/Simple mixer control '\([A-Za-z ]*\)',0/\1/p" |
                  head -n1
                )}"

# The first parameter sets the step to change the volume by (and units to display)
# This may be in in % or dB (eg. 5% or 3dB)
STEP="${1:-5%}"

#------------------------------------------------------------------------

capability() { # Return "Capture" if the device is a capture device
  amixer -D $MIXER get $SCONTROL |
    sed -n "s/  Capabilities:.*cvolume.*/Capture/p"
}

volume() {
  amixer -D $MIXER get $SCONTROL $(capability)
}

format() {
  perl_filter='if (/.*\[(\d+%)\] (\[(-?\d+.\d+dB)\] )?\[(on|off)\]/)'
  perl_filter+='{CORE::say $4 eq "off" ? "MUTE" : "'
  # If dB was selected, print that instead
  perl_filter+=$([[ $STEP = *dB ]] && echo '$3' || echo '$1')
  perl_filter+='"; exit}'
  perl -ne "$perl_filter"
}

#------------------------------------------------------------------------

case $BLOCK_BUTTON in
  3) amixer -q -D pulse sset Master toggle ;; # right click, mute/unmute
  4) amixer -q -D $MIXER sset $SCONTROL $(capability) ${STEP}+ unmute ;; # scroll up, increase
  5) amixer -q -D $MIXER sset $SCONTROL $(capability) ${STEP}- unmute ;; # scroll down, decrease
esac

volume | format
Конфиг .Xresources:

Код: Выделить всё

cat ~/.Xresources
!font settings--------------
!Xft.dpi: 96 
Xft.autohint: true
Xft.antialias: true
Xft.hinting: true
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xft.lcdfilter: lcddefault
!---------------------------
Вот в принципе и всё....

П.С. Сам перехожу к этому варианту: Xubuntu Core. Настройка и установка софта (Пост BadBird #25478)

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 24 сен 2017, 19:13
BadBird
Подскажите, как тут заставить работать сочетание Alt + Delete + Shift
Скорее всего это из за того что альт является мод клавишей, но все же может есть вариант

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 13:28
BadBird
BadBird писал(а): Подскажите, как тут заставить работать сочетание Alt + Delete + Shift
shift+mod1+Delete

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 16:43
BadBird
Подскажите, что это за значения:
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle


# focus the parent container
bindsym $mod+a focus parent


# reload the configuration file
bindsym $mod+Shift+c reload


Никаких видимых действий она почему то не делают...

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 17:06
Chocobo
BadBird писал(а): # reload the configuration file
bindsym $mod+Shift+c reload
Перевычитка конфига, рестарт самого вм
BadBird писал(а): # focus the parent container
bindsym $mod+a focus parent
Здесь походу смена фокуса между всплывающим окном и его родителем (кто его вызвал)
BadBird писал(а): # change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
Ну а тут получается переключение между тайловыми и плавающими окошками, когда и те и другие намешаны

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 17:28
BadBird
Chocobo писал(а): Перевычитка конфига, рестарт самого вм
Я делал так: менял конфиг, после bindsym $mod+Shift+c reload и потом bindsym $mod+Shift+r restart, но изменения не вступили в силу, пока не сохранил обычным способом и после bindsym $mod+Shift+r restart
Chocobo писал(а): Ну а тут получается переключение между тайловыми и плавающими окошками, когда и те и другие намешаны
Да, так и есть.
Chocobo писал(а): Здесь походу смена фокуса между всплывающим окном и его родителем (кто его вызвал)
Тут ничего не меняется, или я не правильно проверяю действие.

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 17:50
BadBird
BadBird писал(а): # focus the parent container
bindsym $mod+a focus parent
Кое что есть.
Если открыть два и более окон и выполнить этот хоткей, то эти окна становятся одним целым и их одним махом можно закрыть, например командой мод+шифт+къю.
Но вот, зачем это нужно.
Типа, если открыто много окон то закрыть их сразу...если только для этого.

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 18:48
Bill Williamson
BadBird писал(а): Если открыть два и более окон и выполнить этот хоткей, то эти окна становятся одним целым и их одним махом можно закрыть, например командой мод+шифт+къю.
Но вот, зачем это нужно.
Как бы еще можно переносить сразу несколько окон внутри рабочей области или на другую рабочую область.

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 18:52
BadBird
Bill Williamson писал(а): Как бы еще можно переносить сразу несколько окон внутри рабочей области или на другую рабочую область.
Ааааа, да....если честно, сам бы я и не догадался.
Тоды нужная фича - оставляем ))))

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 20:31
linubuntu
BadBird писал(а):
Так вот, имеет ли смысл использовать оконный менеджер типа тайлингового?
"ТАЙЛИНГОВЫЙ" - ЗВУЧИТ КРАСИВО...

Вот только _ кому это нужно, столько раздутых, никому не нужных комментов..., и ради чего ???
Скрытый текст
Для просмотра скрытого текста необходимо быть авторизованным пользователем.

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 20:35
connor41
linubuntu, мне надо иногда, не сравнивай себя с другими)

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 20:37
Chocobo
linubuntu, А зачем так громко, со своим имхо? :acute:

Было бы не нужно, тема бы не взлетела)

Вопрос о тайлинговом оконном менеджере в Linux Mint .

Добавлено: 25 сен 2017, 20:54
linubuntu
Chocobo писал(а): А зачем так громко, со своим имхо? Было бы не нужно, тема бы не взлетела
Chocobo, навозите, хотя бы ТРИ ВЕСКИХ ПРИЧИНЫ, ПО КОТОРЫМ ДАННЫЙ (недоменеджер) КОМУ-ТО НЕОБХОДИМ !
ДА, И ЕГО(недоменеджера) ВАЖНОСТЬ ЕЖЕДНЕВНОГО ИСПОЛЬЗОВАНИЯ... ЧТО, БЕЗ НЕГО ОБОЙТИСЬ НЕЛЬЗЯ ?