Arch Linux i3wm Kişiselleştirme

Focal Fossa

Hectopat
Katılım
27 Eylül 2019
Mesajlar
883
Makaleler
3
Çözümler
6
Arch Linux'a i3 kurdum kullanmaya da alıştım fakat kişiselleştirme olayını yapamıyorum. Renkleri ve temaları nasıl uygulayacağımı bulamadım. Tema uygulama vb tarzı şeyler yok sanırım. Duvar kağıdını da feh'le ayarlıyorum fakat reboot atınca eski haline dönüyor. Bir de batarya göstergesi, i3bar'da yanlış gösteriyor.
 

Dosya Ekleri

  • 1602682581.png
    1602682581.png
    81,7 KB · Görüntüleme: 212
Kod:
#i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
#
# This config file uses keycodes (bindsym) and was written for the QWERTY
# layout.
#
# To get a config file with the same key positions, but for your current
# layout, use the i3-config-wizard

# $modkey for ALT and Mod4 for Winkey
set $modkey 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 (TTF) bold 10

# 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:DejaVu Sans Mono 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 these keys for focus, movement, and resize directions when reaching for
# the arrows is not convenient
set $up l
set $down k
set $left j
set $right semicolon

# use Mouse+$modkey to drag floating windows to their wanted position
floating_modifier $modkey

# start a terminal
bindsym $modkey+Return exec --no-startup-id termite

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

# start dmenu (a program launcher)
bindsym $modkey+d exec --no-startup-id rofi -show run
# bindsym $modkey+d exec --no-startup-id dmenu_run

# 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 $modkey+d exec --no-startup-id --no-startup-id i3-dmenu-desktop

# change focus
bindsym $modkey+$left focus left
bindsym $modkey+$down focus down
bindsym $modkey+$up focus up
bindsym $modkey+$right focus right

# alternatively, you can use the cursor keys:
bindsym $modkey+Left focus left
bindsym $modkey+Down focus down
bindsym $modkey+Up focus up
bindsym $modkey+Right focus right

# move focused window
bindsym $modkey+Shift+$left move left
bindsym $modkey+Shift+$down move down
bindsym $modkey+Shift+$up move up
bindsym $modkey+Shift+$right move right

# alternatively, you can use the cursor keys:
bindsym $modkey+Shift+Left move left
bindsym $modkey+Shift+Down move down
bindsym $modkey+Shift+Up move up
bindsym $modkey+Shift+Right move right

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

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

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

# change container layout (stacked, tabbed, toggle split)
bindsym $modkey+s layout stacking
bindsym $modkey+w layout tabbed
bindsym $modkey+e layout toggle split

# toggle tiling / floating
bindsym $modkey+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym $modkey+space focus mode_toggle

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

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

# move the currently focused window to the scratchpad
bindsym $modkey+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 $modkey+minus scratchpad show

# Enable the setion below to fetch all the colors from Xresources
#set_from_resource $xforeground foreground
#set_from_resource $xbackground background
#set_from_resource $xcursor cursorColor
#set_from_resource $xcolor0 color0
#set_from_resource $xcolor8 color8
#set_from_resource $xcolor1 color1
#set_from_resource $xcolor9 color9
#set_from_resource $xcolor2 color2
#set_from_resource $xcolor10 color10
#set_from_resource $xcolor3 color3
#set_from_resource $xcolor11 color11
#set_from_resource $xcolor4 color4
#set_from_resource $xcolor12 color12
#set_from_resource $xcolor5 color5
#set_from_resource $xcolor13 color13
#set_from_resource $xcolor6 color6
#set_from_resource $xcolor14 color14
#set_from_resource $xcolor7 color7
#set_from_resource $xcolor15 color15

# Manual color settings.
# red theme
#set $xforeground #c5c8c6
#set $xbackground #1d1f21
#set $xcursor #c5c8c6
#set $xcolor0 #282a2e
#set $xcolor8 #373b41
#set $xcolor1 #a54242
#set $xcolor9 #cc6666
#set $xcolor2 #8c9440
#set $xcolor10 #b5bd68
#set $xcolor3 #de935f
#set $xcolor11 #f0c674
#set $xcolor4 #5f819d
#set $xcolor12 #81a2be
#set $xcolor5 #85678f
#set $xcolor13 #b294bb
#set $xcolor6 #5e8d87
#set $xcolor14 #8abeb7
#set $xcolor7 #707880
#set $xcolor15 #c5c8c6
# blue theme
set $xforeground #c5c8c6
set $xbackground #1d1f21
set $xcursor #c5c8c6
set $xcolor0 #0d3264
set $xcolor8 #373b41
set $xcolor1 #467ecb
set $xcolor9 #cc6666
set $xcolor2 #8c9440
set $xcolor10 #b5bd68
set $xcolor3 #de935f
set $xcolor11 #f0c674
set $xcolor4 #5f819d
set $xcolor12 #81a2be
set $xcolor5 #85678f
set $xcolor13 #b294bb
set $xcolor6 #6298e0
set $xcolor14 #8abeb7
set $xcolor7 #707880
set $xcolor15 #c5c8c6

# Colors
# Class                 border          backgr      text            indic
client.focused          $xcolor6       $xcolor1     $xbackground   $xcolor7
client.focused_inactive $xcolor6       $xcolor0     $xcolor14
client.unfocused        $xcolor6       $xcolor0     $xcolor14
client.urgent           $xbackground   $xcolor9     $xbackground
client.placeholder      $xcolor7       $xcolor7     $xcolor14

# 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:I"
set $ws2 "2:II"
set $ws3 "3:III"
set $ws4 "4:IV"
set $ws5 "5:V"
set $ws6 "6:VI"
set $ws7 "7:VII"
set $ws8 "8:VIII"
set $ws9 "9:IX"
set $ws10 "10:X"

# switch to workspace
bindsym $modkey+1 workspace $ws1
bindsym $modkey+2 workspace $ws2
bindsym $modkey+3 workspace $ws3
bindsym $modkey+4 workspace $ws4
bindsym $modkey+5 workspace $ws5
bindsym $modkey+6 workspace $ws6
bindsym $modkey+7 workspace $ws7
bindsym $modkey+8 workspace $ws8
bindsym $modkey+9 workspace $ws9
bindsym $modkey+0 workspace $ws10

# move focused container to workspace
bindsym $modkey+Shift+1 move container to workspace $ws1
bindsym $modkey+Shift+2 move container to workspace $ws2
bindsym $modkey+Shift+3 move container to workspace $ws3
bindsym $modkey+Shift+4 move container to workspace $ws4
bindsym $modkey+Shift+5 move container to workspace $ws5
bindsym $modkey+Shift+6 move container to workspace $ws6
bindsym $modkey+Shift+7 move container to workspace $ws7
bindsym $modkey+Shift+8 move container to workspace $ws8
bindsym $modkey+Shift+9 move container to workspace $ws9
bindsym $modkey+Shift+0 move container to workspace $ws10

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

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $modkey+Shift+r restart

# exit i3 (logs you out of your X session) | Changes was made here.
#bindsym $modkey+Shift+e exec --no-startup-id "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 $left       resize shrink width 12 px or 12 ppt
    bindsym $down       resize grow height 12 px or 12 ppt
    bindsym $up         resize shrink height 12 px or 12 ppt
    bindsym $right      resize grow width 12 px or 12 ppt

    # same bindings, but for the arrow keys
    bindsym Left        resize shrink width 12 px or 12 ppt
    bindsym Down        resize grow height 12 px or 12 ppt
    bindsym Up          resize shrink height 12 px or 12 ppt
    bindsym Right       resize grow width 12 px or 12 ppt

    bindsym $modkey+$left       resize shrink width 01 px or 01 ppt
    bindsym $modkey+$down       resize grow height 01 px or 01 ppt
    bindsym $modkey+$up         resize shrink height 01 px or 01 ppt
    bindsym $modkey+$right      resize grow width 01 px or 01 ppt

    bindsym $modkey+Left        resize shrink width 01 px or 01 ppt
    bindsym $modkey+Down        resize grow height 01 px or 01 ppt
    bindsym $modkey+Up          resize shrink height 01 px or 01 ppt
    bindsym $modkey+Right       resize grow width 01 px or 01 ppt

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

bindsym $modkey+r mode "resize"

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
    status_command i3status
    mode dock
    position top
    strip_workspace_numbers yes
    font pango: Terminus (TTF) medium 10
    separator_symbol ")("

    colors {
        #Where      #Color
        background  $xbackground
        statusline  $xforeground

        #Where              #Border         #Background     #Text
        focused_workspace   $xbackground    $xcolor1        $xbackground
        #urgent_workspace    $xbackground    $xcolor9        $xbackground
        urgent_workspace    $xbackground    $xcolor1        $xbackground
        inactive_workspace  $xbackground    $xcolor0        $xforeground
    }
}

# Toggle bar
bindsym $modkey+m bar mode toggle

# Back and forth when pressing the same workspace keybind
workspace_auto_back_and_forth yes

# Display urgent notification on windows
force_display_urgency_hint 500 ms

# Locker configuration
set $Locker i3lock -d -c $black0 -f

set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown, (b) off-screen
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 b exec --no-startup-id sleep 1 && xset dpms force off, 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 $modkey+Shift+e mode "$mode_system"

# Misc (above)
new_window pixel 4

# Floating dialogs
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable

# i3-gaps configuration
gaps inner 10
gaps outer 0
smart_gaps on

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 $modkey+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"
}

######################################################################
# automatically start i3-config-wizard to offer the user to create a
# keysym-based config which used their favorite modifier (alt or windows)
#
# i3-config-wizard will not launch if there already is a config file
# in ~/.i3/config.
#
# Please remove the following exec line:
#######################################################################
exec --no-startup-id i3-config-wizard

# Pulse Audio controls

bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume

bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume

bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound
i3 config dosyanı kod olarak gönderebilir misin?
 
Kod:
# blue theme
set $xforeground #c5c8c6
set $xbackground #1d1f21
set $xcursor #c5c8c6
set $xcolor0 #0d3264
set $xcolor8 #373b41
set $xcolor1 #467ecb
set $xcolor9 #cc6666
set $xcolor2 #8c9440
set $xcolor10 #b5bd68
set $xcolor3 #de935f
set $xcolor11 #f0c674
set $xcolor4 #5f819d
set $xcolor12 #81a2be
set $xcolor5 #85678f
set $xcolor13 #b294bb
set $xcolor6 #6298e0
set $xcolor14 #8abeb7
set $xcolor7 #707880
set $xcolor15 #c5c8c6
Burası bütün renklerin manuel ayarlandığı bölüm.
Kod:
# Colors
# Class                 border          backgr      text            indic
client.focused          $xcolor6       $xcolor1     $xbackground   $xcolor7
client.focused_inactive $xcolor6       $xcolor0     $xcolor14
client.unfocused        $xcolor6       $xcolor0     $xcolor14
client.urgent           $xbackground   $xcolor9     $xbackground
client.placeholder      $xcolor7       $xcolor7     $xcolor14
Burası, odaklandığın/odaklanmadığın pencereler, pencere kenarları ve dış renklerin olduğu kısım.
Kod:
######################################################################
# automatically start i3-config-wizard to offer the user to create a
# keysym-based config which used their favorite modifier (alt or windows)
#
# i3-config-wizard will not launch if there already is a config file
# in ~/.i3/config.
#
# Please remove the following exec line:
#######################################################################
exec --no-startup-id i3-config-wizard
Burası da autostart (otomatik başlatma) kısmı feh ile ilgili kodu exec --no-startup-id ile başlayarak buraya yazarsan otomatik duvar kağıdın yüklenir.
 
Kod:
# blue theme
set $xforeground #c5c8c6
set $xbackground #1d1f21
set $xcursor #c5c8c6
set $xcolor0 #0d3264
set $xcolor8 #373b41
set $xcolor1 #467ecb
set $xcolor9 #cc6666
set $xcolor2 #8c9440
set $xcolor10 #b5bd68
set $xcolor3 #de935f
set $xcolor11 #f0c674
set $xcolor4 #5f819d
set $xcolor12 #81a2be
set $xcolor5 #85678f
set $xcolor13 #b294bb
set $xcolor6 #6298e0
set $xcolor14 #8abeb7
set $xcolor7 #707880
set $xcolor15 #c5c8c6
Burası bütün renklerin manuel ayarlandığı bölüm.
Kod:
# Colors
# Class                 border          backgr      text            indic
client.focused          $xcolor6       $xcolor1     $xbackground   $xcolor7
client.focused_inactive $xcolor6       $xcolor0     $xcolor14
client.unfocused        $xcolor6       $xcolor0     $xcolor14
client.urgent           $xbackground   $xcolor9     $xbackground
client.placeholder      $xcolor7       $xcolor7     $xcolor14
Burası, odaklandığın/odaklanmadığın pencereler, pencere kenarları ve dış renklerin olduğu kısım.
Kod:
######################################################################
# automatically start i3-config-wizard to offer the user to create a
# keysym-based config which used their favorite modifier (alt or windows)
#
# i3-config-wizard will not launch if there already is a config file
# in ~/.i3/config.
#
# Please remove the following exec line:
#######################################################################
exec --no-startup-id i3-config-wizard
Burası da autostart (otomatik başlatma) kısmı feh ile ilgili kodu exec --no-startup-id ile başlayarak buraya yazarsan otomatik duvar kağıdın yüklenir.
Teşekkürler hocam editlemeye başlıyorum sağolun.
 
Arch Linux'a i3 kurdum kullanmaya da alıştım fakat kişiselleştirme olayını yapamıyorum. Renkleri ve temaları nasıl uygulayacağımı bulamadım. Tema uygulama vb tarzı şeyler yok sanırım. Duvar kağıdını da feh'le ayarlıyorum fakat reboot atınca eski haline dönüyor. Bir de batarya göstergesi, i3bar'da yanlış gösteriyor.
exec_always feh --bg-scale /WallpaperinKonumu şeklinde yaparsanız her zaman açık kalır. Temalama konusu biraz karışık olabilir. Sana tavsiyem
Bu içeriği görüntülemek için üçüncü taraf çerezlerini yerleştirmek için izninize ihtiyacımız olacak.
Daha detaylı bilgi için, çerezler sayfamıza bakınız.
bu seriyi izlemen. Her şeyi çok iyi anlatıyor. Ben 3 videoyu da izledim ve gerçekten çok memnunum. Bir tek i3 gaps'dan bahsetmiyor benim gözüme takıldığı kadarıyla. Onu da ayrı olarak araştırabilirsiniz.
 
exec_always feh --bg-scale /WallpaperinKonumu şeklinde yaparsanız her zaman açık kalır. Temalama konusu biraz karışık olabilir. Sana tavsiyem
Bu içeriği görüntülemek için üçüncü taraf çerezlerini yerleştirmek için izninize ihtiyacımız olacak.
Daha detaylı bilgi için, çerezler sayfamıza bakınız.
bu seriyi izlemen. Her şeyi çok iyi anlatıyor. Ben 3 videoyu da izledim ve gerçekten çok memnunum. Bir tek i3 gaps'dan bahsetmiyor benim gözüme takıldığı kadarıyla. Onu da ayrı olarak araştırabilirsiniz.
Bu videoyu görmüştüm fakat üşendiğimden bakmadım :) Birazdan bakayım buna da. Vakit bulunca da uygulamaya geçerim.
 

Geri
Yukarı