tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

Haufinyane tjena ke hlokometse hore laptop ea ka ha e sebetse hantle. Ha e na matla a ho kopanya ntho e 'ngoe le e' ngoe: Vim (+ 20 plugins), VSCode (+ palo e tšoanang ea li-extensions), Google Chrome (+ 20 tabs) joalo-joalo. Ho ne ho bonahala e le bothata bo tloaelehileng ho lilaptop tse nang le 4 GB ea RAM, empa ha kea ka ka tela. Ke rata lilaptop bakeng sa boholo ba tsona bo nyane le taba ea hore li ka sebetsa ka betri kae kapa kae. Ke ne ke hloka ho nahana ka mokhoa oa ho lokolla RAM e eketsehileng, hammoho le ho eketsa ts'ebetso ea matla.

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

Haeba o hloka li-configs hang-hang, theolela tlase ho karolo "Ho khetha ho kenya"

tshebetso ya ho sebetsa

Kaha ke hloka OS e tla ja bonyane ba RAM le betri, ke ile ka khetha Arch Linux. Classic, ha ho letho le lecha. Libaka tsa eona tsa polokelo li tla ntumella ho iketsetsa sehlopha sa mosebetsi o sa hlokahaleng, le AUR e tla boloka nako le ho feta.

mookameli oa fensetere

Ke ile ka etsa qeto ea ho nka mookameli oa fensetere, eseng tikoloho e feletseng. Le hoja ke rata li-sneakers (KDE), li ntse li ja haholo, ka lebaka la hore li hula lilaebrari tse ngata le ho itšetleha ka tsona. Hantle, ka boeona DE'shka e ja haholo ka lebaka la mefuta eohle ea li-widget tse sa hlokahaleng.

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

Ho hlahloba sehlomathisi

Pele re hloka ho kenya liphutheloana tsohle tse ka sehloohong (re hloka ho lokisa ntho e itseng)

sudo pacman -Sy --noconfirm i3 i3-gaps base-devel rofi okular feh vim code picom kitty ranger git xdotool xautolock i3lock-color scrot imagemagick rxvt-unicode urxvt-perls

Mona ke mohlala oa setšoantšo sa kamoo e tla sebetsa kateng

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

Ke liphutheloana life tse hlokahalang bakeng sa eng?

Package
Seo se se hlokang

xwinwrap
Ho hlokahala ho kenya lifaele tsa .gif joalo ka liwallpaper tse phelang

polybar
Hoa hlokahala e le hore mookameli oa fensetere a hlahise topbar

i3
Motsamaisi oa fensetere ka boeena

likhetho tsa i3
Katoloso ea mookameli oa fensetere

setsi-devel
Lisebelisoa tse hlokahalang ho kenya polybar

rofi
Sesebelisoa sa Sesebelisoa

hola
Sebali sa litokomane

nginra
Sebali sa litokomane (ke likeketso tse fokolang tse tšehelitsoeng, empa tse fokolang haholo)

feh
Lenaneo la ho shebella litšoantšo, hammoho le ho seta litšoantšo tse ka morao

vim
Mohlophisi ea ka sehloohong

khoutu
Mohlophisi oa tlatsetso

picom
Moqapi (lenaneo le etsang meriti, pepeneneng, le fifatsa bokamorao)

kitty
Terminal e kholo

urvvt
Terminal e eketsehileng

mokolosi
Taolo ya faele

git
Sistimi ea taolo ea phetolelo

letoto
Sesebelisoa se tla thusa ho theha mangolo le ho sebelisana le lifensetere

xautolock
Sesebelisoa se notlelang komporo ha se sa sebetse ebe se bula i3-lock

i3lock mmala
Phetolelo e ntlafalitsoeng ea i3lock. Lenaneo lea hlokahala ho notlela komporo le ho kenya phasewete

qalo
Minimalist screenshot app

imagemagick
Lenaneo le tla thusa ha o sebelisana le linepe (e li fifatsa esale pele, e fetolela, e fetola qeto)

Ho lokisa i3

i3 - Motsamaisi oa lifensetere ea sa jeng lisebelisoa tse ngata, ka hona, ho tla ba molemo ho rona ho "etsa" batsamaisi ba bang ba tloaelehileng ba lifensetere. (Mpho, ehlile, ke ho thaepa - bokhoni ba mookameli oa fensetere ho holisa lits'ebetso ho karolo eohle ea mahala ea skrineng.)

Ke tla fana ka config i3 ka likarolo, e le hore le ba qalang ba utloisise ntho e 'ngoe le e' ngoe. A re qaleng ka ea bohlokoa ka ho fetisisa - konopo $ mod. E sebeletsa ho buisana le i3. Li-hotkey tsohle tse kholo li tla feta ho eona.

### Tweaks ###
# Set main key (Win)
set $mod Mod4

Ka mor'a moo, re tla ruta mookameli oa fensetere ho tsamaisa lifensetere ka mouse ha o tobetse. $mod

# Press MOD key and click on mouse to move your window
floating_modifier $mod

# Focus doesn't follow the mouse
focus_follows_mouse no

Ha re kenyeng mengolo bakeng sa lits'ebetso tsa rona, hammoho le lits'ebetso tse itšetlehileng ka tsona i3

# Fonts
font pango: JetBrains Mono 10

Maikutlo a ka e ne e le ho etsa lifensetere tsohle qalong fofang (E ileng ea bonahala e le bonolo haholo). Bakeng sa tlhaloso: ho i3 ho na le mefuta e mengata boemakepe windows (Tilling, Fullscreen, Tabbed, Float, Stacking), kaofela li sebetsa maemong a fapaneng, empa ha ke bone lebaka la ho etsa joalo. tsohle lifensetere li tlatsa skrine eohle. Ho molemo ba ke ba e tlatse ha e hatelloa $mod + f, empa e fanyehe moeeng ka boiketsetso, e leng seo ke se entseng karolong e latelang ea khoutu:

# Maximum width for floating windows
floating_minimum_size 400 x 350
floating_maximum_size 1800 x 900

# (1920 - 10)/2 and (1080 - 10)/2
for_window [class=".*"] floating enable
for_window [class=".*"] resize set 955 535
for_window [class=".*"] focus

E le hore u se ke ua ferekanya polelo (1920 - 10)/2 and (1080 - 10)/2 ho bolela hore fensetere e 'ngoe le e' ngoe e tla nka kotara ea skrine, 'me e tla boela e be indent (ho tloha ho e' ngoe) ka lipikselse tse 5 hantle (5 ka mahlakoreng 'ohle).

E latelang, ha re tlamelle lits'ebetso tsohle tsa mantlha. Li-hotkey tsohle li leka ho latela morero ona.

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

## Keyboard Settings ##
# Apps
bindsym $mod+Return exec kitty
bindsym $mod+Mod1+r exec "kitty sh -c 'ranger'"
bindsym $mod+Mod1+g exec google-chrome-stable
bindsym $mod+Mod1+c exec code
bindsym $mod+Mod1+v exec dolphin
bindsym Print exec spectacle

Hape, re tla tlama mesebetsi eohle ea mantlha eo re e etsang ntle le ho nahana, le e tlamehang ho ba joalo

# System / Volume
bindsym XF86AudioMute "exec amixer -D pulse sset Master toggle && notify-send "Volume" "Sound is (un)muted" --urgency low"
bindsym XF86AudioRaiseVolume "exec amixer -D pulse sset Master 5%+ && notify-send "Volume" "Volume added +5%n    Volume level is now $(amixer -D pulse get Master | awk -F 'Left:|[][]' 'BEGIN {RS=""}{ print $3 }')" --urgency low"
bindsym XF86AudioLowerVolume "exec amixer -D pulse sset Master 5%- && notify-send "Volume" "Volume added -5%n    Volume level is now $(amixer -D pulse get Master | awk -F 'Left:|[][]' 'BEGIN {RS=""}{ print $3 }')" --urgency low"

# System / Brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 5
bindsym XF86MonBrightnessUp exec xbacklight -inc 5

# Moving from one window to another
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right

# Choose one of your workspaces
bindsym $mod+1 workspace $workspace1
bindsym $mod+2 workspace $workspace2
bindsym $mod+3 workspace $workspace3
bindsym $mod+4 workspace $workspace4

# Move window to the workspace
bindsym $mod+Shift+1 move container to workspace $workspace1
bindsym $mod+Shift+2 move container to workspace $workspace2
bindsym $mod+Shift+3 move container to workspace $workspace3
bindsym $mod+Shift+4 move container to workspace $workspace4

## Floating manipulation ##
# Make window floating
bindsym $mod+f floating toggle
# Change focus
bindsym $mod+Shift+f focus mode_toggle

# Move windows
bindsym $mod+Shift+h move left 20px
bindsym $mod+Shift+j move down 20px
bindsym $mod+Shift+k move up 20px
bindsym $mod+Shift+l move right 20px

# Resizing Windows
bindsym $mod+Ctrl+l resize shrink width 10 px or 10 ppt
bindsym $mod+Ctrl+k resize grow height 10 px or 10 ppt
bindsym $mod+Ctrl+j resize shrink height 10 px or 10 ppt
bindsym $mod+Ctrl+h resize grow width 10 px or 10 ppt

# Make window fullscreen
bindcode 95 fullscreen toggle

# Reload Configuration
bindsym $mod+p reload

# Kill a window
bindsym $mod+x exec xdotool getwindowfocus windowkill

Ha re etseng karolo ea autostart

### Autostart ###
# Lockscreen after 10min delay
exec --no-startup-id "$HOME/.config/i3/lockscreen"
# Convert background gif to jpg
exec --no-startup-id convert -verbose $HOME/.config/i3/{gif.gif,gif.jpg}
# Generate Colorscheme
exec_always --no-startup-id wal -i $HOME/.config/i3/gif-0.jpg
# Compositor
exec_always --no-startup-id "killall -q picom; picom --config $HOME/.config/picom.conf"
# Language
exec --no-startup-id setxkbmap -model pc105 -layout us,ru -option grp:win_space_toggle
# Dunst
exec --no-startup-id dunst
# Kitty
exec kitty
# Dropbox
exec --no-startup-id dropbox &
# Polybar
exec_always --no-startup-id $HOME/.config/polybar/launch.sh
# Cursor
exec_always --no-startup-id xsetroot -cursor_name left_ptr

likhetho tsa i3 - haha ​​​​i3, e eketsang likarolo tse ngata tse ncha. E 'ngoe ea tsona ke ho eketsoa ha likheo, tse shebahalang li le ntle haholo.

### i3-gaps ###
# Borders for windows
for_window [class=".*"] border pixel 5

# Gaps for i3bar
for_window [class="i3bar"] gaps outer current set 10

# Gaps
gaps inner 10
gaps outer 4

### Topbar and color theme ###
# Color theme of borders
client.focused              #bf616a #2f343f #d8dee8 #bf616a #d8dee8
client.focused_inactive     #2f343f #kf343f #d8dee8 #2f343f #2f343f
client.unfocused            #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.urgent               #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.placeholder          #2f343f #2f343f #d8dee8 #2f343f #2f343f
client.background           #2f343f

Ho etsahetse eng?

'Me e ile ea e-ba kopano e fokolang haholo ho i3, e sebetsang ka potlako ho li-laptops le ho fana ka tshebetso e ntle.

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

Kaha ke ngotse litlhophiso tse ngata (tse bonahalang ka ho hlaka skrineng), li ka fumanoa sebakeng sa polokelo. E kholo i3.

Li-screenshots tse ling tse 'maloa

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

tlhophiso ea laptop ea i3: mokhoa oa ho fokotsa ts'ebetso ho 100%?

Source: www.habr.com

Eketsa ka tlhaloso