SSブログ

i3wm + i3status + rofi [ubuntu,debian系]

i3wm + i3status + rofi
お仕事の方はご苦労様です。
あいもかわらずlinuxであそんでいます。



今日のわたしのパソコン環境は、 osは robolinux   i3デスクトップ
CPU: Intel i7-4770K (8) @ 4.000GHz
GPU: NVIDIA GeForce GTS 250


robolinux64-lxde-v10.4.iso





robolinuxはあまり知られていないでしょう。ubuntu系のosです。アメリカ製。




ubuntu系なのでインストールは容易でしょう。省略。


Ubuntu + polybar + i3wm + rofi

ubuntuのi3の記事は書いたばかりなのですが、また同じような記事です。


今回はi3wm + i3status + rofi
antergosのi3wmが簡単に他のosに移植できてしまうということ。


1.awesomefontのインストール
注ubuntuにあるawesomefontではうまく表示できません。
なのであえて以下をインストールする。
awesome-terminal-fonts-master.zip

ダウンロードして解凍。install.shの実行。
$cd /home/satou/Downloads/awesome-terminal-fonts-master
$/home/satou/Downloads/awesome-terminal-fonts-master/install.sh

2./home/satou/.config/i3statusフォルダ新規作成
i3statusフォルダに以下を新規作成(antergosからの移植)
/home/satou/.config/i3status/config
丸写しーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
###############################################################################
# ceerious i3 status config
# see "man i3status" for documentation.
#
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
###############################################################################

general {
    interval = 1
    colors = true
    color_good = '#88b090'
    color_degraded = '#ccdc90'
    color_bad = '#e89393'
}

order += "volume master"
order += "disk /"
#order += "disk /data"
#order += "disk /home"
#order += "run_watch DHCP"
#order += "ipv6"
#order += "run_watch VPN"
#order += "wireless wlp4s0"
#order += "ethernet enp5s0"
#order += "battery 0"
order += "cpu_temperature 0"
order += "cpu_usage 0"
order += "load"
order += "tztime local"

#wireless wlp4s0 {
#    format_up = "%quality  %essid %ip"
#    format_down = ""
#}

#ethernet enp5s0 {
#    # if you use %speed, i3status requires root privileges
#    format_up = "%ip (%speed)"
#    format_down = ""
#}

battery 0 {
    format = "%status %percentage %remaining"
    format_down = ""
    last_full_capacity = true
    integer_battery_capacity = true
    low_threshold = 11
    threshold_type = percentage
    hide_seconds = true
    status_chr = " "
    status_bat = " "
    status_unk = " "
    status_full = " "
}

run_watch DHCP {
    pidfile = "/var/run/dhclient*.pid"
}

run_watch VPN {
    pidfile = "/var/run/vpnc/pid"
}

#%Y-%m-%d %H:%M:%S'
tztime local {
    format = " %d/%m/%Y   %H:%M"
}

load {
    format = " %1min"
}

cpu_usage {
    format = " %usage"
}

cpu_temperature 0 {
    format = " %degrees°C"
}

disk "/" {
    format = " %avail"
    prefix_type    = custom
    low_threshold = 20
    threshold_type = percentage_avail
}

#disk "/data" {
#    format = " %avail"
#    prefix_type = custom
#    low_threshold = 20
#    threshold_type = percentage_avail
#}

#disk "/data" {
#        format = " %avail"
#        prefix_type = custom
#        low_threshold = 20
#        threshold_type = percentage_avail
#}

volume master {
    format = "%volume  "
    format_muted = " "
    device = "default"
    mixer = "Master"
    mixer_idx = 0
}

ここまで丸写し分ーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー

以上で設定終了
/home/satou/.config/i3/configの設定でfontsを14サイズにしています。
このi3statusで十分でしょう。
cpuの温度が危険になると赤く変わって知らせてくれる親切設計です。

今回ubuntuに移植しましたが、
本物のantergosのi3wmを
見てみたいとおもわれた方もおられるのではないでしょうか。
antergos-minimal-19.4-x86_64.iso



あとはi3の設定は参考サイト様

などを参考にされたし。
私の記事も参考にされたし。
alpine linux on usb 2019

Arcolinux + i3wm

i3 wm タイル型ウィンドウマネージャ

Ubuntu + polybar + i3wm + rofi
以下参考画像
2019-04-10-13:14:07_1024x768_scrot.jpg
robolinux i3wmの画像


2019-04-10-14:25:03_1024x768_scrot.jpg
archlabsからの移植  rofiの画像
2019-04-10-14:28:57_1024x768_scrot.jpg
neofetchの画像
2019-04-10-14:17:21_1024x768_scrot.jpg
石原詢子さん
私の場合 以下のようになっている。
/home/satou/.config/i3/config
bindsym $mod+Shift+q kill
bindsym $mod+Shift+F12 exec pcmanfm
bindsym $mod+Shift+F11 exec firefox
bindsym mod1+F4 kill
bindsym Print exec scrot '%Y-%m-%d-%T_$wx$h_scrot.jpg' -e 'mv $f /home/satou/画像'
bindsym $mod+x exec /home/satou/.bin/rofi_run -l
bindsym $mod+d exec /home/satou/.bin/rofi_run -r
bindsym $mod+Prior workspace prev
bindsym $mod+Next workspace next
bindsym $mod+Shift+e exec --no-startup-id \
        "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b \
         'Shutdown' 'systemctl poweroff' -b 'Reboot' 'systemctl reboot' -b 'Logout' 'i3-msg exit'"

nice!(0)  コメント(1) 
共通テーマ:パソコン・インターネット

nice! 0

コメント 1

pukaripukari

i3-logouについて、解凍してできたファイル2個を/usr/bin/にはりつける。起動は以下のようにする。
/home/satou/.config/i3/config
bindsym $mod+x exec --no-startup-id i3_logout


https://sourceforge.net/projects/logout-for-i3-window-manager/
by pukaripukari (2019-04-11 09:26) 

コメントを書く

お名前:
URL:
コメント:
画像認証:
下の画像に表示されている文字を入力してください。