# Arch manjaro i3 config ###### tags: `Linux` > 紀錄i3設定 [TOC] ## :memo: 必備工具 YAY ```bash git clone https://aur.archlinux.org/yay.git cd yay makepkg -si ``` | Command | Description | | ---------------------- | -------------------- | | yay -Ss \<Search Term> | 搜尋欲安裝項目 | | yay -S \<Search Term> | 安裝項目 | | yay -Qs | 查詢已安裝項目 | | yay -Yc | 移除不需要的依賴項目 | | yay -Syu | 更新 | ## :memo: Terminal transparency ```bash yay -S compton ``` >如果發生錯誤請刪除以下的檔案[color=#3b75c6] Delete the original .config / compton.conf > 要讓terminal使用透明必須啟用compton,在`.i3/config`設置/修改以下內容[color=#3b75c6] ```bash exec --no-startup-id compton -b # 加入透明參數 bindsym $mod+Return exec terminal -sh 40 ``` ## :memo: 替換音源驅動 > 如發生音效問題可使用[color=#3b75c6] ```bash install_pulse ``` > `rm_pulse` 恢復預設 ## :memo: 自動安裝RTX-2080 driver > 以mhwd安裝驅動[color=#3b75c6] > https://howto.lintel.in/install-nvidia-arch-linux/ ```bash mhwd -a pci nonfree 0300 ``` ## :memo: 螢幕交換 > 查看螢幕名稱狀態 ```bash xrandr ``` > 設定螢幕位置[color=#3b75c6] ```bash xrandr --output HDMI-1 --right-of HDMI-0 ``` ## :memo: 執行列印 > 以遠端印表機列印檔案[color=#3b75c6] ```bash lpr -H <host> -P <printer> <file> ``` ## :memo: 啟動自動程序 > 1. vim ~/.config/i3/autostart.sh 定義好程序[color=#3b75c6] > 2. 在.config/i3/config 新增 [color=#3b75c6] ```bash exec --no-startup-id bash ~/.config/i3/autostart.sh ``` ## :memo: 設定中文輸入 > 安裝fcitx[color=#3b75c6] ```bash sudo pacman -S fcitx-im ``` > 安裝輸入法與字體[color=#3b75c6] - 中文 ```bash yay -S fcitx-chewing yay -S ttf-arphic-ukai ``` - 日文 ```bash sudo pacman -S fcitx-configtool fcitx-mozc yay -S ttf-vlgothic ``` > `sudo vim /etc/environment .profile` 設定環境變數[color=#3b75c6] ```bash # set input export QT_IM_MODULE=fcitx export XMODIFIERS=@im=fcitx export GTK_IM_MODULE=fcitx ``` > 設定`¬/.i3/conifg`開機自動程序[color=#3b75c6] ```bash exec --no-startup-id fcitx -d ``` ## :memo: 截圖工具 > 安裝工具[color=#3b75c6] ```bash yay -S xfce4-screenshooter ``` ```bash yay -S xfce4-clipman-plugin ``` > 設定`¬/.i3/conifg`開機自動程序[color=#3b75c6] ```bash exec --no-startup-id xfce4-clipman & ``` > 執行[color=#3b75c6] ```bash xfce4-screenshooter ``` ## :memo: 手動安裝Anaconda ```bash yay -G anaconda cd ./anaconda makepkg -sric ``` > 啟用[color=#3b75c6] ```bash source /opt/anaconda/bin/activate root ``` > 關閉[color=#3b75c6] ```bash source /opt/anaconda/bin/deactivate root ``` > 安裝軟體環境[color=#3b75c6] ```bash conda install pytorch==1.2.0 torchvision==0.4.0 -c pytorch ``` ## :memo: 關閉蜂鳴器 ```bash xset -b ``` ## :memo: 手動安裝Vivado > 到官網下載最新[Vivado](https://www.xilinx.com/member/forms/download/xef.html?filename=Xilinx_Unified_2020.1_0602_1208.tar.gz) > 解壓縮 ```bash $ tar -axvf Xilinx_Unified_2020.1_0602_1208.tar.gz ``` > 執行安裝檔(若直接執行./xsetup 會正常顯示安裝界面可跳過以下步驟) ```bash $ sudo ./xsetup -b ConfigGen ``` > 依據提示選擇要安裝的軟體 > 選擇完應該會說請查看安裝設定檔 ```bash INFO : Config file available at /root/.Xilinx/install_config.txt. Please use -c <filename> to point to this install configuration. ``` > 以文字編輯器打開,查看安裝設定資料可自行修改或維持預設 ```bash $ sudo vim /root/.Xilinx/install_config.txt ``` > 執行安裝指令 ```bash $ sudo ./xsetup --agree XilinxEULA,3rdPartyEULA,WebTalkTerms --batch Install --config /root/.Xilinx/install_config.txt ``` > 安裝完畢後在安裝目錄下中的/bin 執行以下指令即可開啟程式 ```bash $ bash vavado & ``` --- ## Reference - [i3wm - Enable Autostart](https://gott50.github.io/i3wm-autostart/) - [Japanese input with i3 and Arch based distros](https://confluence.jaytaala.com/display/TKB/Japanese+input+with+i3+and+Arch+based+distros) - [Another anaconda installation error](https://forum.manjaro.org/t/another-anaconda-installation-error/131006/3) - [ビバ道2020.1インストール](https://sweetcafe.jp/?*20200605-142650) - [manjaro i3wm 简单配置](https://www.cnblogs.com/rookieagle/p/12549565.html)