SSブログ
前の10件 | -

archcraft + openbox + Hyprland [arch系]

 archcraft + openbox + Hyprland



あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  archcraft   Hyprland
CPU: AMD Ryzen 7 5700G with Radeon Graphics (16)
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mo
                                



archcraft-2024.01.08-x86_64.iso
  
  




archcraft linuxのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。
archcraft linuxは、arch系、インド製。




インストール終了後

polybar obmenu-generator plank openboxは、おしゃれに構成されていた。
 しかし、使いやすいとは言い難い。
 
 openboxは、jgmenu tint2 で自分好みにした。
jgmenuの設定は・・・。
  
 

sudo pacman -Sy

sudo pacman -Su

sudo pacman -S scrot ark git cmake wget fcitx5 fcitx5-configtool fcitx5-mozc fcitx5-im wofi gimp mpv celluloid base-devel
sudo nano /etc/profile
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5

fcitx5-configtool

sudo pacman -S jgmenu


yayで、以下をインストールした。
最近は、arch系ばかりで遊んでいたので ~/.cache/yay フォルダを保存していて
〇〇〇〇.pkg.tar.zstを取り出してインストールしている。


yayで、
gnome-icon-theme gnome-icon-theme-symbolic google-chrome onlyoffice-bin audacity-3.1-wxgtk2 audacity-3.1-wxgtk2-debug ffmpeg4.4 4.4.4-4



今回は、 notwidow /hyprland というのをインストールした。

どこにも、archcraft と表示されていないのだが、font が archcraft-font がつかわれている。
なので archcraftのhyprland か。
ちなみに本家 archcraftのhyprland は、有料でしょう。


hyprlandのインストール
yay -S hyprland swaybg swayidle swaylock wlroots wl-clipboard kitty mako grim slurp wf-recorder wlogout waybar-git


timeshiftの削除
sudo pacman -Rns timeshift

あとは、自分の好みにしよう。

notwidow /hyprland をダウンロード、解凍、設置
~/.config/hypr フォルダ。




最初に出力設定をなしにします。私の場合HDMI接続。
nano ~/.config/hypr/hyprland.conf
 #monitor=DP-2,1920x1080@144,0x0,1
 #workspace=DP-2,1
 #monitor=DVI-D-1,1360x768@60,1920x0,1
 #workspace=DVI-D-1,2
 
nano ~/.config/hypr/waybar/config
"output": "DP-2",  この部分を削除
ーーーーーーーーーーーーー
ーーーーーーーーーーーーー
"modules-left": ["custom/menu", "hyprland/workspaces", "cpu", "memory", "disk", "custom/updater"],
"modules-center": ["clock", "tray"],
ーーーーーーーーーーーーー
*
*
*


これで端末から、Hyprland 入力で起動するとおもう。H は大文字
起動しないときは、~/.config/hypr フォルダのそれぞれのファイルのアクセス権が有効になっていないからと思われます。


nano ~/.config/hypr/hyprland.conf  以下私の場合追記編集
ーーーーーーーーーーーーーーーー
ーーーーーーーーーーーーーーーー
bind=SUPERSHIFT,F,togglefloating,
bind=SUPERSHIFT,Print,exec,grim $(xdg-user-dir PICTURES)/$(date +'%s_grim.jpg')
bind=SUPER,Return,exec,xfce4-terminal
bind=ALT,F4,killactive,
#bind=SUPERSHIFT,W,exec,firefox
bind=SUPERSHIFT,F11,exec,google-chrome-stable --gtk-version=4
bind=SUPERSHIFT,F12,exec,thunar
bind=SUPERCTRL,left,workspace, -1
bind=SUPERCTRL,right,workspace, +1
bind=SUPER,Q,killactive,
bind=SUPERSHIFT,Q,killactive,
bind=SUPERSHIFT,E,exec,$wlogout
bind=SUPER,D,exec,wofi --show drun --allow-images
ーーーーーーーーーーーーーーーーーーー
ーーーーーーーーーーーーーーーーーーー
bind=SUPERSHIFT,1,movetoworkspace,1
bind=SUPERSHIFT,2,movetoworkspace,2
bind=SUPERSHIFT,3,movetoworkspace,3
bind=SUPERSHIFT,4,movetoworkspace,4
bind=SUPERSHIFT,5,movetoworkspace,5
bind=SUPERSHIFT,6,movetoworkspace,6
bind=SUPERSHIFT,7,movetoworkspace,7
bind=SUPERSHIFT,8,movetoworkspace,8
bind=SUPERSHIFT,9,movetoworkspace,9
ーーーーーーーーーーーーーーーーーーーー




nano /.config/hypr/scripts/startup
ーーーーーーーーーーーーーーーーーーー
#exec mpd &
fcitx5 &

archcraft は、zsh が使われています。
 ~/.zsh_history ファイルを端末に出力する
   

~/zshhist.py export
  


前記事とほぼ一緒でしょう。
archcraft linux は、普通に動いております。
archcraft linux の thunar のツールバーがありません。不便です。
thunar の メニューの移動の項目に戻るとか 上のフォルダにとかがあります。
私が、hyprlandにハマっている理由は、音声、動画がきれいだからでしょう。



以下参考画像

1710835274_grim.jpg
hyprland
1710835833_grim.jpg
neofetch
1710803720_grim.jpg
bind=SUPERSHIFT,E,exec,$wlogout
1710811121_grim.jpg
~/.config/hypr フォルダ
1710835226_grim.jpg
1710835675_grim.jpg

firefox





                                                                


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

manjaro + openbox + Hyprland [arch系]

manjaro + openbox + Hyprland



あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  manjaro   Hyprland
CPU: AMD Ryzen 7 5700G with Radeon Graphics (16)
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mo
                                





manjaro-kde-23.1.3-minimal-240113-linux66.iso

  






manjaro linuxのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。


Hyprlandは、wayland用のウインドーマネージャーでしょう。swayと似ています。
知らない方も多いと思います。

manjaroの場合のHyprlandのインストールは、githubのぺーじからダウンロードして
 JaKooLit /Hyprland-v3
 

debian(JaKooLit/Debian-Hyprland)と同様にインストールできるでしょう。
 
しかし、 manjaroの場合もっと手軽にできるのでは・・・。

以下私のHyprlandのインストール記録でしょう。
openboxは、plasmaを削除したときに残しておきたいソフトのためでしょう。
*
*
#############################################################
#############################################################
sudo pacman-mirrors -c japan
sudo pacman -Syu

インストールしたものとか。
sudo pacman -S fcitx5 fcitx5-configtool fcitx5-mozc fcitx5-im openbox tint2 xfce4-terminal thunar scrot jgmenu yay gvfs polkit-gnome base-devel wofi pluma neofetch feh gimp mpv celluloid pavucontrol noto-fonts-cjk grim swaybg waybar
yay -S gnome-icon-theme onlyoffice-desktopeditors google-chrome

audacity-3.1-wxgtk,ffmpeg4.4 4.4.4-4 のインストール
yay audacity
9
yay ffmpeg
2

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

yay -S wlogout

xdg-desktop-portal-hyprland,hyprlandのインストール
yay Hyprland
1 2





wlogoutの設定
sudo nano /etc/wlogout/layout  一部編集
{
    "label" : "logout",
    "action" : "pkill Hyprland",
    "text" : "Logout",
    "keybind" : "e"
}


Hyprlandの設定
壁紙には、swaybg を使用しています。
端末開き、Hyprland H は、大文字
端末開き、Hyprland と入力 enterキー、ウインドーズキー + m
すると、~/.config/hypr フォルダが作成されます。
nano ~/.config/hypr/hyprland.conf
15行目 コメントアウトする。
#autogenerated = 1


nano ~/.config/hypr/hyprland.conf   一部編集と追記
ーーーーーーーーーーーーーーーーー
exec-once = waybar & fcitx5
exec-once = swaybg -i ~/Pictures/wallpaper/coffee-wallpaper-hd-109.jpg
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
ーーーーーーーーーーーー
$terminal = xfce4-terminal
$fileManager = thunar
$menu = wofi --show drun --allow-images
ーーーーーーーーーーーー
input {
    kb_layout = jp
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    touchpad {
        natural_scroll = no
    }

ーーーーーーーーーーーー
bind = $mainMod, F, fullscreen
bind = $mainMod SHIFT, F, togglefloating,
bind = $mainMod SHIFT, Print, exec, grim $(xdg-user-dir PICTURES)/$(date +'%s_grim.jpg')
bind = $mainMod, Return, exec, xfce4-terminal
bind = ALT, F4, killactive,
bind = $mainMod SHIFT, W, exec, firefox
bind = $mainMod SHIFT, F11, exec, google-chrome-stable --gtk-version=4
bind = $mainMod SHIFT, F12, exec, thunar
bind = $mainMod CTRL, left, workspace, -1
bind = $mainMod CTRL, right, workspace, +1
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod SHIFT, E, exec, wlogout
bind = $mainMod, D, exec, wofi --show drun --allow-images
ーーーーーーーーーーーーーーー
ーーーーーーーーーーーーーーー

waybarの設定   一部編集
cp /etc/xdg/waybar ~/.config/
nano ~/.config/waybar/config
8,9,10行目
 "modules-left": ["hyprland/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
    "modules-center": ["hyprland/window"],
    "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "hyprland/language", "battery", "battery#bat2", "clock", "tray"],
nano ~/.config/waybar/style.css
7行目
window#waybar {
    background-color: #000000;
  ーーーーーーーーーー
  ーーーーーーーーーー
設定がおえたら kde plasma の削除
sudo pacman -Rns plasma kio-extras kde-applications ksysguard manjaro-kde-settings plasma-wayland-session sddm-breath-theme systemd-kcm signon-kwallet-extension kaccounts-integration kaccounts-providers

sudo pacman -S xorg

sudo nano '/etc/sddm.conf'
[Autologin]
Relogin=false
Session=Hyprland
User=satou



ログアウトログイン

以上設定終了

Hyprland だいぶなれてきました・・・・。

以下参考画像
1709616287_grim.jpg
Hyprland
1709617016_grim.jpg
neofetch
1709616434_grim.jpg
bind = $mainMod, D, exec, wofi --show drun --allow-images
1709616453_grim.jpg
wlogout
2024-03-05-152732_1920x1080_scrot.jpg
openbox
openboxのショットカットキー
nano /home/satou/.config/openbox/rc.xml
<keybind key="Print"><action name="Execute"><command>scrot '%Y-%m-%d-%T_$wx$h_scrot.jpg' -e 'mv $f ~/Pictures'</command></action></keybind>
  <keybind key="W-Return"><action name="Execute"><command>xfce4-terminal</command></action></keybind>
  <keybind key="W-S-w"><action name="Execute"><command>firefox</command></action></keybind>
   <keybind key="W-S-F11"><action name="Execute"><command>google-chrome-stable</command></action></keybind>
  <keybind key="W-S-F12"><action name="Execute"><command>thunar</command></action></keybind>
  <keybind key="W-x"><action name="Execute"><command>rofi_run -l</command></action></keybind>
  <keybind key="W-S-e"><action name="Execute"><command>pkill openbox</command></action></keybind>
   <keybind key="W-S-q"><action name="Close"/></keybind>
*
*
1709616336_grim.jpg
firefox



https://www.youtube.com/watch?v=TlzAtKQakeE&list=RDTlzAtKQakeE&start_radio=1

1709616770_grim.jpg
google-chrome

「“妻”も義兄も鍵アカに…」大谷翔平インタビュー公開に“年齢・特徴”一致で「ネット大盛り上がり」
https://news.yahoo.co.jp/articles/07f105f1005eaed731399a198c5fffc9ad21f0db

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

debian + sway + Hyprland [ubuntu,debian系]

debian + sway + Hyprland



あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  debian   Hyprland
CPU: Intel i7-4790 (8) @ 4.000GHz
GPU: NVIDIA GeForce GTX 970









debian-testing-amd64-netinst.iso
  






debian linuxのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。
標準システムユーティリティ、webサーバーだけを選択して進んだ。

Hyprlandは、wayland用のウインドーマネージャーでしょう。swayと似ています。

debianの場合のHyprlandのインストールは、githubのぺーじからダウンロードして
JaKooLit/Debian-Hyprland

手動でインストールするようになります。
このgithubのぺーじのものは、たいへん優秀で素晴らしいものでしょう。
私の場合まっさらのdebianにインストールしたのが良かったのかもしれません。







インストール終了後

su
passwd: 〇〇〇〇
apt update

apt install build-essential sudo
chmod 777 /etc/sudoers
nano /etc/sudoers
chmod 555 /etc/sudoers
exit


sudo apt install gnome-terminal thunar pluma firefox-esr fonts-noto-cjk sway wofi file-roller ntfs-3g
sudo apt install git
sudo apt install fcitx5-mozc
sudo reboot


sway上で作業をおこなった。
複数回の質問に答える形で作業は進むでしょう


sway
~/Downloads/Debian-Hyprland-main.zip
解凍
cd ~/Downloads/Debian-Hyprland-main
~/Downloads/Debian-Hyprland-main/install.sh



Hyprlandのインストール作業終了
reboot




locale
sudo dpkg-reconfigure locales
端末からonlyoffice。
/usr/bin/onlyoffice-desktopeditors --ozone-platform=wayland ~/Music/深夜便.xlsx
*
*
audacity を正常に起動させるために。
sudo apt install xinit
sudo nano /etc/profile
export GTK_IM_MODULE=fcitx5
export QT_IM_MODULE=fcitx5
export XMODIFIERS=@im=fcitx5


あとは自分の好みにしよう。
私は、 garuda-hyprland-settingsを参考にしました。
   




sudo apt remove foot im-config
sudo apt install audacity mpv celluloid gimp neofetch
sudo apt install '/home/satou/Documents/hyprland/onlyoffice-desktopeditors_amd64.deb' '/home/satou/Documents/hyprland/google-chrome-stable_current_amd64.deb'

neofetch


sudo nano /etc/environment.d/fcitx5.conf
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx




fcitx5-configtool

killactive,と、closewindow, があります。
closewindow,はいらないでしょう。
ショットカットキーは、i3 とかsway とかと同じになるようにしています。なにせ単細胞でできてますから・・・。

修正した箇所とか
nano ~/.config/hypr/hyprland.conf

$wallDIR=$HOME/Pictures/wallpapers
$lock = $scriptsDir/LockScreen.sh
$SwwwRandom = $UserScripts/WallpaperAutoChange.sh

# wallpaper stuff / More wallpaper options below
exec-once = swww query || swww init
exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes

exec-once = fcitx5 &
ーーーーーーーーー
ーーーーーーーーー

bind = $mainMod, Return, exec, gnome-terminal
bind = ALT, F4, killactive,
bind = $mainMod SHIFT, W, exec, firefox-esr
bind = $mainMod SHIFT, F11, exec, google-chrome-stable --gtk-version=4
bind = $mainMod SHIFT, F12, exec, thunar
bind = $mainMod CTRL, left, workspace, -1
bind = $mainMod CTRL, right, workspace, +1
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, Q, killactive,
bind = $mainMod SHIFT, E, exec, ~/.config/hypr/scripts/Wlogout.sh
bind = $mainMod, D, exec, wofi --show drun --allow-images
ーーーーーーーー
ーーーーーーーー
bind = $mainMod SHIFT, Print, exec, grim $(xdg-user-dir PICTURES)/$(date +'%s_grim.jpg')


waybarは、garudaのものに変更しています。
  



githubのぺーじは、優秀でしたが、残念ながら使いにくい代物でした。



Hyprlandの起動には、大文字いりのままで起動します。

Hyprland

Hyprlandの情報はあまりなく、これからどのように進んでいくか楽しみでしょう。


以下参考画像

Screenshot_19-Feb_14-31-09_18907.jpg
Hyprland 素の状態
1708324639_grim.jpg
neofetch   変更後
1708323485_grim.jpg
mpv
1708324201_grim.jpg
1709459893_grim.jpg
waybar
オリジナルの設定では、サウンドの棒グラフが表示されるでしょう。◯。
1708324006_grim.jpg

youtube


https://www.youtube.com/watch?v=2mP3IvZfsaQ




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

ubuntu sway remix [ubuntu,debian系]

ubuntu sway remix


あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  ubuntu   sway
CPU: Intel i7-4790K (8) @ 4.400GHz
GPU: NVIDIA GeForce GT 710








ubuntusway-23.10-desktop-amd64.iso

  






ubuntu sway remixのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。
今回の機種 Intel i7-4790K 搭載 ubuntu sway remix の起動にはあまり余裕がありません。
10年前の代物だからしょうがないでしょう。







sudo passwd
sudo apt update
sudo apt upgrade
sudo apt install gnome-terminal pcmanfm-qt gimp celluloid audacity fcitx5 fcitx5-mozc fonts-noto-cjk wofi

sudo apt install ~/Downloads/google-chrome-stable_current_amd64.deb ~/Downloads/onlyoffice-desktopeditors_amd64.deb

fcitx5の設定
sudo nano /etc/environment.d/fcitx5.conf
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx


sudo nano '/etc/sway/config.d'/fcitx5.conf
exec swaymsg input type:keyboard xkb_layout  "jp" &
exec fcitx5 -dr



fcitx5-configtool



sway上でonlyofficeを端末から起動 コマンド
/usr/bin/onlyoffice-desktopeditors --ozone-platform=wayland ~/Music/深夜便.ods
*
*
audacity起動させるために・・・。
cp -r /usr/share/applications /home/satou/.local/share
nano ~/.local/share/applications/audacity.desktop
Exec=env UBUNTU_MENUPROXY=0 GDK_BACKEND=x11 --gtk-version=3 audacity %F

sudo nano /etc/environment
ーーーーーーーーーーーーーーーーーーーーーーーーーーーーー
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

QT_QPA_PLATFORM=wayland
#SDL_VIDEODRIVER=wayland
XDG_SESSION_TYPE=wayland
XDG_SESSION_DESKTOP=sway
XDG_CURRENT_DESKTOP=sway
# avoid iterating over all libseat backends
LIBSEAT_BACKEND=logind

# allow software renderers in sway
WLR_RENDERER_ALLOW_SOFTWARE=1
# for nouveau compatibility
WLR_DRM_NO_MODIFIERS=1

MOZ_ENABLE_WAYLAND=1
ーーーーーーーーーーーーーーーーーーーーーーーーー
*
*
dmenu変更
sudo nano /etc/sway/variables
set $menu wofi --show drun --allow-images

*
*
swaylockの設定解除がわからなかった。なので以下のファイルを削除しちゃった。乱暴な。
sudo rm /usr/bin/swaylock /usr/bin/swayidle






swayの設定 私の多用するシヨットカットキー
pcmanfm-qt     $mod+Shift+F12
google-chrome $mod+Shift+F11
firefox             $mod+Shift+w
閉じる       $mod+Shift+q kill
                      $mod1+F4 kill
リロードsway      $mod+Shift+c
ログアウト     $mod+Shift+e
アプリの移動     $mod+Shift+ナンバーキー
タブ状に並べる     $mod+s
タブ状に並べる解除 $mod+e

ワークスペース移動 $mod+control+矢印キー    
スクリーンショット    $mod+Shift+print



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 $mod1 Mod1
    bindsym $mod1+F4 kill
    bindsym $mod+Shift+F11 exec google-chrome-stable --gtk-version=4
    bindsym $mod+Shift+F12 exec pcmanfm-qt    
    bindsym $mod+Shift+print exec grim $(xdg-user-dir PICTURES)/$(date +'%s_grim.jpg')


    bindsym $mod+Shift+w exec ~/firefox/firefox
    bindsym $mod+control+Right workspace next
    bindsym $mod+control+Left workspace prev    


# Styles
set $theme /usr/share/themes/yaru-sway

# theme variables
include $theme/variables

# Global variables
include /etc/sway/variables

# User variables
include $HOME/.config/sway/variables.d/*.conf

include /etc/sway/outputs/*.conf
include /etc/sway/inputs/*.conf

# include modes
include /etc/sway/modes/*.conf

# Additional configs
include /etc/sway/config.d/*.conf

# User config
include $HOME/.config/sway/config.d/*.conf

# Include nwg-displays config's (if exists)
include ~/.config/sway/outputs
include ~/.config/sway/workspaces
ーーーーーーーーーーーーーーーーーーーーー丸写し終わり



ubuntu sway remix 最初の起動では、画面が暗くなっています。

waybarの左端をクリックすると、アプリの一覧が出るでしょう。
waybarの右端をクリックすると、ログアウトメニューが出るでしょう。





リポジトリ



index




参考サイト様



ubuntu sway remix は、greetdのログインシステムでしょう。
greetdのログインシステムで、軽量化されているでしょう。
greetdのログインシステム オートログイン 追記
sudo nano /etc/greetd/config.toml
[terminal]
vt = "next"

[default_session]
command = "tuigreet --remember --time --issue --asterisks --cmd start-sway"
user = "_greetd"

[initial_session]
command = "start-sway"
user = "satou"
sudo nano /usr/bin/start-sway
ーーーーーーーーーーーーーーーーー
#!/usr/bin/env sh

## General exports
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
export XDG_SESSION_TYPE=wayland

# Check if system is running in virtual machine
case "$(systemd-detect-virt)" in
qemu)
  export WLR_RENDERER=pixman
  export WLR_NO_HARDWARE_CURSORS=1
  ;;
kvm)
  export WLR_NO_HARDWARE_CURSORS=1
  ;;
oracle)
  export WLR_NO_HARDWARE_CURSORS=1
  ;;
esac

# Apply Nvidia-specific variables
if [ -d /sys/module/nvidia ]; then
    export WLR_NO_HARDWARE_CURSORS=1
    export GBM_BACKEND=nvidia-drm
    export __GLX_VENDOR_LIBRARY_NAME=nvidia
    export LIBVA_DRIVER_NAME=nvidia
fi

## Load system environment customizations
if [ -d /etc/environment.d ]; then
    set -o allexport
    for f in /etc/environment.d/*.conf; do
        # shellcheck source=/dev/null
        . "$f"
    done
    set +o allexport
fi

## Load user environment customizations
if [ -d "${XDG_CONFIG_HOME:-$HOME/.config}/environment.d" ]; then
    set -o allexport
    for i in "${XDG_CONFIG_HOME:-$HOME/.config}/environment.d"/*.conf; do
        # shellcheck source=/dev/null
        . "$i"
    done
    set +o allexport
fi

# Check if Nvidia driver installed, start Sway and send output to the journal
if [ -d /sys/module/nvidia ]; then
    exec systemd-cat -- /usr/bin/sway --unsupported-gpu $@
else
    exec systemd-cat -- /usr/bin/sway $@
fi
ーーーーーーーーーーーーーーーーーーーーーーーー

swayにはまると抜けれなくなるかも・・・・・。



以下参考画像

1706143451_grim.jpg
neofetch
1706137887_grim.jpg
logout
1706137918_grim.jpg
logout
1706137906_grim.jpg
dmenu
1706138015_grim.jpg
onlyoffice コマンド
1706137877_grim.jpg
nwg-drawer
1706172087_grim.jpg
waydroid
1706137806_grim.jpg
4個のアプリ起動中  タブ並び
1706137787_grim.jpg
4個のアプリ起動中  ふつう


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

youtubeについて [メモ]

youtubeについて


わたしは、音楽かけ流しなどにyoutubeを使っています。
youtubeが広告スポンサーありきで成り立っているのであれば、
わたしたちは、素直に従って広告も見るぺきでしょう。

しかし、あまりの低レベルの広告に堪忍袋の緒が切れたというか・・・・。
uBlock Origin にしばらく頑張ってもらいます。

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

fedora-silverblue linux + waydroid [fedora系]

fedora-silverblue linux  +   waydroid
お仕事の方はごくろうさまです。
あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  silverblue    swayウインドーマネージャー
CPU: AMD Ryzen 7 5700G with Radeon Graphics (16)
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mo




fedora系で、waydroidをインストールするならfedora-silverblue linuxでしょう。
silverblue linuxを使っている方は少ないと思われる。
今回ののパソコンは、gpt(efi)環境でしょう。





silverblue linuxのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。
silverblue linuxは、デュアルブートができないとおもわれているでしょう。
敬遠される理由にもなっているでしょう。
silverblue linuxは、ssd全部をつかう自動インストールのほうが容易でしょう。
今回は、同一のバソコンssd(500GiB)にsilverblue、debian、manjaroの順番でインストールした。
手間は余計にかかるが、決してデュアルブートが不可能ではないでしょう。
silverblueのインストール終了後、usbに入ったosのgpartedでパーテイションの縮小、作成した。
debian、manjaro用のパーテイションとespのパーテイションを作成した。
debianのインストールするときに新しく作成したespのパーテイションを使う、
silverblueのespパーテイションは、使わないようにするのがポイントでしょう。
debianのインストーラーで使わないespパーテイションをクリックしてゆき
このパーテイションは使わないという項目を選択する。
manjaroのインストールもおなじような作業をする。
debianの/boot/grubフォルダをmanjaroにコピーする。
そして最終作業は、silverblueを起動させる。
パソコン起動時にF2を連打してパソコンの設定を呼び出す。
パソコンの設定で最初に起動するパーテイションを、silverblue入っているパーテイションを選択する。
silverblueのgrubを設定してめでたく3個のosが起動できました。
sudo nano /etc/default/grub
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX="rhgb quiet"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true
GRUB_DISABLE_OS_PROBER=false
GRUB_DISABLE_RECOVERY=true
GRUB_SAVEDEFAULT=true

grubの再インストール
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
rpm-ostree update
rpm-ostree install grub2-common grub2-efi-x64 grub2-pc-modules shim-x64 grub2-tools --allow-inactive

waydroidのインストールと設定
  
rpm-ostree install waydroid
sudo waydroid init -s GAPPS -f -c https://ota.waydro.id/system -v https://ota.waydro.id/vendor
*
*
waydroid session start
新たな端末を開き
sudo waydroid shell
:/ #

上記に続けて以下を貼り付ける
ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"

登録サイトを開き、上記の最後に出できた数字を貼り付けて登録する。
https://www.google.com/android/uncertified

貼り付ける場所
google サービスフレームワーク・・・・・

swayのインストールは、私の記事を参照されたし



インストールしたものとか
rpm-ostree install sway waybar wofi wdisplays wlsunset light grim slurp swappy pavucontrol swayidle bemenu wob audacity gnome-icon-theme fcitx5 fcitx5-mozc
*
*
flatpak で mpv celluloidをインストール


fedora-silverblue linuxのインストールは、設定をおえてみればサクサク動くosでしょう。
sway(wayland)は、動画、音声ともきれいでしょう。


以下参考画像。
1705008596_grim.jpg
waydroid
1705271514_grim.jpg
onlyoffice   sway上では起動させるのが困難なソフトでしょう。
端末から起動できています。
/usr/bin/onlyoffice-desktopeditors --ozone-platform=wayland
1705008697_grim.jpg
gparted
1705012719_grim.jpg
waydroid  起動中
1705012813_grim.jpg
koikoi
1705012998_grim.jpg
google-chrome
1705020646_grim.jpg
mpv
1705020793_grim.jpg
firefox
https://www3.nhk.or.jp/news/html/20240111/k10014316641000.html







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

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) 
共通テーマ:パソコン・インターネット

waydroid-linux 2023 [ubuntu,debian系]

waydroid-linux     2023
お仕事の方はごくろうさまです。
あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  waydroid-linux     gnomeデスクトップ
CPU: Intel i7-7700 (8) @ 4.200GHz
GPU: NVIDIA GeForce GT 730




waydroid-linux-debian-bookworm-lineage-17.1-vanilla-amd64_2022-03-15_1121.iso

 




waydroid-linuxのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。
waydroid-linuxは、debian系とubuntu系があります。今回は、debian系を使用した。
waydroidは、anboxに手を加えたすぐれものでしょう。anboxを検索しているときに知った。
waydroid-linuxというものまであるとは・・・。



参考サイト様


インストール終了後
sudo apt update

アップデートする前に、waydroidのリボジトリを動くようにする。
curl https://repo.waydro.id | sudo bash


アップデートする
sudo apt upgrade
sudo apt install fonts-noto-cjk fcitx5-mozc pavucontrol gimp

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

sudo reboot

fcitx5-configtool


nautilusの設定するコマンド
gsettings set org.gnome.nautilus.preferences always-use-location-entry true
gsettings set org.gnome.nautilus.preferences default-sort-order "type"
gsettings set org.gnome.nautilus.list-view default-visible-columns "['name', 'type', 'size', 'date_modified', 'starred']"
gsettings set org.gnome.desktop.interface clock-show-date true




参考サイト様のとおりにして、Google Play Storeを動くようにする。

sudo waydroid init -s GAPPS -f

waydroid session start
もう一個あたらしい端末を開いて、以下の作業をする。
waydroidが動いていれば以下のコマンドが動くでしょう。
sudo waydroid shell
:/ #

上記に続けて以下を貼り付ける
ANDROID_RUNTIME_ROOT=/apex/com.android.runtime ANDROID_DATA=/data ANDROID_TZDATA_ROOT=/apex/com.android.tzdata ANDROID_I18N_ROOT=/apex/com.android.i18n sqlite3 /data/data/com.google.android.gsf/databases/gservices.db "select * from main where name = \"android_id\";"


登録サイトを開き、上記の最後に出できた数字を貼り付けて登録する。
https://www.google.com/android/uncertified

貼り付ける場所
google サービスフレームワーク・・・・・


waydroidの画面上にsettingのアイコンがある、それをクリックすると音声(media)の調整ができるでしょう。
waydroid-linuxは、アップデートにてまどったが、設定終了してしまえば、希望のアプリを動かすだけでしょう。
waydroidは、インストールが大変でしょう。
waydroid-linuxは、waydroidがすでにインストール済でしょう。

gnomeデスクトップは、タスクバーがないのが辛い。なので以下をインストール。
sudo apt install gnome-shell-extension-kimpanel gnome-shell-extension-manager
使用方法コマンド
extension-manager
以下にチェック
applications menu
input mrthod panel
window list
*
*
waydroid-linuxよりも本家debianのほうがいい・・・

anboxは、しょぼかった。waydroidは、すばらしいでしょう。
スマートフォンで、バッテリーを気にしつつゲームをすることもなくなるでしょう。


以下参考画像

Screenshot from 2023-12-23 10-05-37.jpg
gnome
Screenshot from 2023-12-23 10-09-01.jpg
neofetch
Screenshot from 2023-12-22 15-40-33.jpg
waydroid
Screenshot from 2023-12-22 15-20-40.jpg
powerline
Screenshot from 2023-12-22 15-22-06.jpg
 zero koi koi
Screenshot from 2023-12-22 15-27-33.jpg
number match




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

manjaro linux + anbox 2023 [arch系]

manjaro linux  +   anbox 2023
お仕事の方はごくろうさまです。
あいもかわらずlinuxであそんでいます。
今回の私のパソコン環境は  os  manjaro    openboxウインドーマネージャー
CPU: AMD Ryzen 7 5700G with Radeon Graphics (16)
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mo


old-manjaro

manjaro-xfce-21.0.4-minimal-210506-linux510.iso




2年前の私の記事を見て再現したいとおもいます
新し目のパソコンでgpt(efi)環境でしょう。




anboxのためold manjaro をあえてインストールした。
manjarolinuxのインストールは、 gnome-disksにてusbメモリーに書き込み。起動させてssdにインストールした。





sudo pacman-mirrors -c japan
sudo pacman -Sy
sudo pacman -S manjaro-keyring

アップデート
sudo pacman -Rsc kwindowsystem
sudo pacman -Su


インストールしたもの
sudo pacman -S dkms curl base-devel cmake git lzip android-tools cloud-init yay leafpad openbox tint2 feh jgmenu firefox neofetch fcitx5-im fcitx5-mozc fcitx5-configtool libvoikko nuspell celluloid gimp yt-dlp audacity file-roller scrot gpicview
yay -S otf-takao ttf-nanum onlyoffice-bin gnome-icon-theme noto-fonts-cjk google-chrome


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


snapd,anboxのインストール
git clone https://aur.archlinux.org/snapd.git
cd snapd
makepkg -si
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap
sudo reboot
sudo snap install --beta --devmode anbox


anbox-modulesのインストール
https://github.com/anbox/anbox-modules
anbox-modules-master.zipをダウンロード、解凍。

sudo mkdir /dev/binder
cd ~/ダウンロード/anbox-modules-master
~/ダウンロード/anbox-modules-master/INSTALL.sh
cd ..
cd ..



google-play store のインストール
wget -O -  https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh | bash




anbox-bridgeの設置
https://raw.githubusercontent.com/anbox/anbox/master/scripts/anbox-bridge.sh


anbox-bridge 新規テキストファイル作成 設置場所 /usr/bin/anbox-bridge

sudo anbox-bridge start



anboxの起動 端末2個を使って。
端末から
anbox session-manager
端末から
anbox.appmgr

anboxは、カーネルがポイントでしょう。
今回のmanjaroのカーネルは、anboxとの相性がバッチリでしょう。
そして今回のパソコンのamdのcpuでも動いているでしょう。
kernel version: Linux 5.10.204-1-MANJARO


anboxは、高性能のバソコンを使っても動きはしょぼいままでしょう。
linuxバソコンで、google-playのアプリをあそぶには、
ChromeOS一択になるのでしょうか・・・・。


以下参考画像
2023-12-19-04:44:20_1920x1080_scrot.jpg
snap --version      neofetch
2023-12-19-04:45:42_1920x1080_scrot.jpg
anbox 起動   setting  apps   permission を有効にして・・・。
2023-12-19-04:45:55_1920x1080_scrot.jpg
ピンポイント天気
2023-12-19-04:46:18_1920x1080_scrot.jpg
ばあちゃんの暦
2023-12-19-04:51:37_1920x1080_scrot.jpg
Reversi Free
2023-12-19-04:54:11_1920x1080_scrot.jpg
15 number puzzle
2023-12-19-06:30:44_1920x1080_scrot.jpg
anbox system-info
2023-12-19-06:48:26_1920x1080_scrot.jpg
sdlmae pengo
2023-12-19-06:50:51_1920x1080_scrot.jpg
firefox




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

ファンヒーターについて [メモ]

ファンヒーターについて

コロナの去年買ったばかりのファンヒーターを使っています。
これにはもれなく3時間自動消火装置がついています。
二酸化炭素窒息事故防ぐための法律に基づいているようです。
すきまかぜいっぱいあるわたしの家には不必要な装置だと思われる。

3時間たつとピーピーとなっている。
3時間たつのは、はやいものでしょう。
延長のボタンを押さなければ消えるでしょう。
3時間自動消火装置とおもうから腹が立つのです。
生命維持装置とおもえばいいのでしょう。
生存確認装置と命名しようとおもう。
*
*
メーカーさんは、低レベルの法律の従って作りました。
これでは小学生の工作程度と言えるでしょう。
メーカーさんには、co2センサーを組み込んで、
快適なファンヒーターを作って欲しいものでしょう。

nice!(0) 
共通テーマ:住宅
前の10件 | -