SSブログ

manjaro linux + sway   2024 [arch系]

manjaro linux  +   sway

あけましておめでけとうございます。
お仕事の方はごくろうさまです。
あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  manjaro   sway
CPU: AMD  CPU: Intel i7-7700K (8) @ 4.500GHz
GPU: NVIDIA GeForce GT 730








manjaro-gnome-23.1.1-minimal-231223-linux66.iso
  





ダウンロードをクリックすると、minimalとfullが選択できるようになっています。
manjaro linuxのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。





manjaro-swayエデイションもある。
manjaro-swayエデイションを試してみたが、なんだかなあの結果でした。
今回は、manjaro-gnomeにmanjaro-swayを移植しました。




インストール終了後、gnomeでの作業
sudo pacman-mirrors -c japan
sudo pacman -Sy


リポジトリの追加
sudo nano /etc/pacman.conf
[manjaro-sway]
SigLevel = PackageRequired
Server = https://packages.manjaro-sway.download/stable/$arch


インストールしたものとか
sudo pacman -Sy
sudo pacman -R manjaro-gnome-settings
sudo pacman -S manjaro-sway-settings wofi dmenu neofetch leafpad swaybg base-devel fcitx5-im fcitx5-mozc fcitx5-configtool libvoikko nuspell celluloid gimp yt-dlp pavucontrol audacity scrot gpicview mpv


sudo nano /etc/profile
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5
fcitx5 &



fcitx5-configtool



yay-binのインストール
git clone https://aur.archlinux.org/yay-bin
cd yay-bin
makepkg -si
yay -S otf-takao ttf-nanum google-chrome onlyoffice--desktopeditors gnome-icon-theme noto-fonts-cjk



swayの設定
オリジナルの設定をこわさないようにしつつ私好みにする。
swayのフォルダは、3箇所にあります。
最初にswayにログインすると盛大にエラーがででいます。これは、2箇所修正しました。
sudo nano /etc/sway/config.d/90-enable-theme.conf
 # kvantummanager --set "$kvantum-theme"
sudo nano /etc/sway/config.d/96-waybar-config.conf
position top


lxterminal,pcmanfm,firefoxをショットカットで呼び出すようにする。
ctrl+win+矢印,alt+F4,ログアウトの設定,screenshotも。



mkdir ~/.config/sway
nano ~/.config/sway/config
ーーーーーー丸写し
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
set $mod Mod4
set $alt_mod Mod1

    bindsym $mod+control+Right workspace next
    bindsym $mod+control+Left workspace prev    
    #bindsym $mod+Return exec $term

    bindsym $alt_mod+F4 kill
 
    bindsym $mod+Shift+t exec gnome-terminal
    bindsym $mod+Shift+w exec firefox
    bindsym $mod+Shift+F12 exec nautilus

    bindsym $mod+Shift+e exec /home/satou/wofi-power
    bindsym $mod+Shift+print exec grim $(xdg-user-dir PICTURES)/$(date +'%s_grim.jpg')
    #bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
set $term /usr/bin/lxterminal
# styles - set the folder for your theme definition file
set $theme /usr/share/sway/themes/matcha-green

# theme variables
include $theme/theme.conf

# user theme variable can override the global theme
include $HOME/.config/sway/definitions.d/theme.conf

# global variables
include /etc/sway/definitions

# user variables can override global definitions
include $HOME/.config/sway/definitions.d/*.conf

include /etc/sway/inputs/*
include /etc/sway/outputs/*

# enable modes
include /etc/sway/modes/*

# only enable this if every app you use is compatible with wayland
# xwayland disable

# include additional configs e.g. to autostart applications
include /etc/sway/config.d/*

# user config
include $HOME/.config/sway/config.d/*.conf
ーーーーーーー丸写し終わり




ログアウトファイル 設置はホームに。
nano ~/wofi-power
chmod 755 ~/wofi-power
#!/bin/sh
entries="⇠ Logout\\n⏾ Suspend\\n⭮ Reboot\\n⏻ Shutdown"
selected=$(echo -e $entries|wofi --width 250 --height 210 --dmenu --cache-file /dev/null | awk '{print tolower($2)}')
case $selected in
  logout)
    exec pkill sway;;
  suspend)
    exec systemctl suspend;;
  reboot)
    exec systemctl reboot;;
  shutdown)
    exec systemctl poweroff -i;;
esac



修正した箇所
sudo nano /etc/sway/modes/default
ターミナルの設定,wofi-power
$bindsym $mod+Return exec gnome-terminal
$bindsym $mod+Shift+e exec ~/wofi-power
sudo nano /etc/sway/definitions
dmenuの設定
# Your preferred application launcher
set $menu wofi --show drun --allow-images
sudo nano /etc/sway/modes/shutdown
末尾
#$bindsym $mod+Shift+e mode $mode_shutdown
*
*
waybarの設定  大きさと日付
sudo nano /usr/share/sway/templates/waybar/style.css
ーーーーー
font-size: 20px;
sudo nano /usr/share/sway/templates/waybar/config.jsonc
ーーーーー
 "clock": {
        "interval": 60,
        "format": "{: %b%e日 %Y %H:%M}",

sudo reboot
*
*
オリジナルにしたがって3箇所にあるswayのフォルダの修正は、疲れるでしょう。
1箇所にまとめることも可能でしょう。多分。
私がいつも使っているonlyofficeは、
sway上でonlyofficeを端末から起動 コマンド
/usr/bin/onlyoffice --ozone-platform=wayland 
yay -S fontconfig-ubuntu

manjaro-swayのオリジナルは、使いにくいでしょう。
manjaro-swayのwaybarは、◎。






以下参考画像
1704162839_grim.jpg
sway
waybarのワークスペース表示、別のワークスペース表示
ctrl+win+矢印
1704163149_grim.jpg
neofetch
1704163202_grim.jpg
dmenu
waybarの左端にmanjaroのアイコンクリックでも、dmenuを呼び出せる。
1704163218_grim.jpg
logout
1704164633_grim.jpg
4個のアプリをひらきました。1個だけ違うワークスペースへ移動させる。
移動させるアプリを選択しつつ win+shit+ナンバーキー
1704186210_grim.jpg
4個のアプリをひらきました。タブのリスト表示になっています
スタック [Mod + s]
タブリスト表示縦ならび


タブ [Mod + w]
タブリスト表示横ならび


スプリット [Mod + e]
タブリスト解除
1704189003_grim.jpg
日本航空の516便のエアバスA350型機最新旅客機
1704162671_grim.jpg
能登大地震1-1
被災された方々に、お見舞い申し上げます。
1704162718_grim.jpg
能登大地震1-1
1704162722_grim.jpg
能登大地震1-1

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

nice! 0