Kaynağa Gözat

patch libfm config for alacritty as launched terminal

remove tint2 configs

add journalctl cleanup to disk maintenance

patch wallpaper to eliminate glitchy background transition
Casey DeLorme 2 yıl önce
ebeveyn
işleme
ad06230b75

+ 11 - 3
arch.sh

@@ -72,7 +72,7 @@ PACKAGES="${PACKAGES} cryptsetup lzop unzip p7zip xz unrar unace lrzip arj innoe
 PACKAGES="${PACKAGES} nftables iptables dnsmasq rsync dhcpcd inetutils net-tools openssh sshfs ntp wget curl wireless_tools bluez bluez-utils oath-toolkit openconnect openvpn ethtool pptpclient connman wpa_supplicant iwd"
 
 # programming packages
-PACKAGES="${PACKAGES} pkgfile pkgconf bison gcc gcc-libs cmake ccache ncurses xmlstarlet jq git mercurial subversion bzr patchelf packer vagrant libvirt qemu libguestfs virt-install edk2-ovmf"
+PACKAGES="${PACKAGES} pkgfile pkgconf bison gcc gcc-libs cmake ccache ncurses xmlstarlet jq git mercurial subversion bzr patchelf xdelta3 packer vagrant libvirt qemu libguestfs virt-install edk2-ovmf"
 
 # multimedia dependencies
 PACKAGES="${PACKAGES} mesa lib32-mesa dbus polkit giflib lib32-giflib mpg123 lib32-mpg123 v4l-utils lib32-v4l-utils lame libwebp libid3tag libvorbis vorbis-tools faac x264 x265 libpng12 lib32-libpng12 pulseaudio libpulse lib32-libpulse openal lib32-openal opencl-icd-loader lib32-opencl-icd-loader libva lib32-libva gst-plugins-base-libs lib32-gst-plugins-base-libs graphicsmagick imagemagick joyutils evtest libexif ffmpeg lxsession-gtk3 yt-dlp wine-staging winetricks fcitx5 fcitx5-mozc fcitx5-configtool fcitx5-gtk fcitx5-qt"
@@ -87,13 +87,13 @@ PACKAGES="${PACKAGES} gtk3 lib32-gtk3 pavucontrol pcmanfm-gtk3 ffmpegthumbnailer
 PACKAGES="${PACKAGES} libva-mesa-driver lib32-libva-mesa-driver lib32-mesa-vdpau vulkan-tools vulkan-icd-loader lib32-vulkan-icd-loader"
 
 # Sway dependencies
-PACKAGES="${PACKAGES} sway alacritty wofi waybar xorg-xwayland xorg-xlsclients qt5-wayland glfw-wayland grim slurp xdg-desktop-portal-wlr libpipewire02 wl-clipboard brightnessctl playerctl yad"
+PACKAGES="${PACKAGES} sway alacritty wofi waybar xorg-xwayland xorg-xlsclients qt5-wayland glfw-wayland grim slurp xdg-desktop-portal-wlr libpipewire02 wl-clipboard brightnessctl playerctl mako"
 
 # fonts
 PACKAGES="${PACKAGES} fontconfig ttf-bitstream-vera ttf-droid ttf-dejavu ttf-liberation ttf-hanazono ttf-font-awesome"
 
 # GUI software
-PACKAGES="${PACKAGES} xarchiver gparted psensor hardinfo steam discord mpv openshot gimp krita firefox obs-studio dia mednafen mame ppsspp lutris sublime-text evince viewnior virt-manager virtualbox virtualbox-host-modules-arch"
+PACKAGES="${PACKAGES} xarchiver gparted psensor hardinfo steam steam-native-runtime discord mpv openshot gimp krita firefox obs-studio dia mednafen mame ppsspp lutris sublime-text evince viewnior virt-manager virtualbox virtualbox-host-modules-arch"
 
 # conditional GPU packages
 if [ $(lspci | grep -i "vga" | grep -ci "amd") -gt 0 ]; then
@@ -152,6 +152,13 @@ sudo -u $aur_username git clone https://aur.archlinux.org/xcursor-chameleon-skyb
 sudo -u $aur_username git clone https://aur.archlinux.org/numix-icon-theme-git.git /home/${aur_username}/numix-icon-theme-git
 (cd /home/${aur_username}/numix-icon-theme-git && sudo -u ${aur_username} makepkg -rcsi --noconfirm)
 
+# xpadneo
+
+# cmst (for connman UI)
+
+# corectrl
+
+
 # cleanup aur user
 rm -rf /etc/sudoers.d/${aur_username}
 userdel -fr $aur_username
@@ -254,6 +261,7 @@ systemctl enable dnsmasq
 systemctl enable cronie
 systemctl enable ntpd
 systemctl enable sshd
+systemctl enable connman
 
 # attempt to enable dhcp on active network devices on reboot
 export active_network_device=$(ip addr | awk '/state UP/ {print $2}' | sed 's/.$//')

+ 1 - 1
install/etc/skel/.config/libfm/libfm.conf

@@ -20,7 +20,7 @@ auto_selection_delay=600
 drop_default_action=auto
 defer_content_test=0
 quick_exec=1
-terminal=urxvt %s
+terminal=alacritty %s
 archiver=xarchiver
 thumbnail_local=0
 thumbnail_max=32768

+ 1 - 1
install/etc/skel/.config/sway/config

@@ -101,7 +101,7 @@ bindsym $mod+Shift+0 move container to workspace number 10, workspace number 10
 
 # services
 bindsym $mod+space exec $launcher
-bindsym $mod+F2 exec $applauncher
+bindsym $mod+Shift+F2 exec $applauncher
 bindsym $mod+t exec $term
 bindsym $mod+b exec $files
 bindsym $mod+e exec $editor

+ 0 - 106
install/etc/skel/.config/tint2/tint2rc

@@ -1,106 +0,0 @@
-
-# background & border
-
-rounded = 11
-border_width = 1
-background_color = #000000 80
-border_color = #ffffff 20
-
-rounded = 6
-border_width = 0
-background_color = #ffffff 20
-border_color = #ffffff 20
-
-
-# panel
-
-panel_items = LTSC
-panel_monitor = all
-panel_position = bottom center
-panel_size = 85% 28
-panel_margin = 4 2
-panel_padding = 0 0 2
-font_shadow = 0
-panel_background_id = 0
-
-
-# launchbar
-
-launcher_padding = 4 2 3
-launcher_background_id = 1
-launcher_icon_theme = gnome
-launcher_icon_size = 16
-launcher_item_app = /usr/share/applications/urxvt.desktop
-launcher_item_app = /usr/share/applications/sublime_text.desktop
-launcher_item_app = /usr/share/applications/firefox.desktop
-launcher_item_app = /usr/share/applications/pcmanfm.desktop
-
-
-# taskbar
-
-taskbar_mode = single_desktop
-taskbar_padding = 4 4 2
-taskbar_background_id = 1
-
-
-# tasks
-
-task_icon = 1
-task_text = 1
-task_maximum_size = 100 26
-task_centered = 1
-task_padding = 1 1
-task_font = ForMateKonaVe 7
-task_font_color = #ffffff 70
-task_active_font_color = #ffffff 85
-task_background_id = 3
-task_active_background_id = 2
-
-
-# mouse actions on tasks
-
-mouse_middle = maximize_restore
-mouse_right = none
-mouse_scroll_up = toggle
-mouse_scroll_down = iconify
-
-
-# systray
-
-systray = 1
-systray_padding = 4 2 3
-systray_background_id = 1
-systray_icon_size = 16
-systray_monitor = primary
-
-
-# battery
-
-battery = 0
-battery_low_status = 7
-battery_low_cmd = zenity --warning --title="Battery" --text="Low power, please plug into the nearest outlet."
-bat1_font = ForMateKonaVe bold 8
-bat2_font = ForMateKonaVe 7
-battery_font_color = #ffffff 70
-battery_padding = 4 16
-battery_background_id = 1
-
-
-# clock
-
-time1_format = %T
-time1_font = ForMateKonaVe bold 8
-time2_format = %a. %Y/%m/%d
-time2_font = ForMateKonaVe 6
-clock_font_color = #ffffff 76
-clock_padding = 4 4
-clock_background_id = 1
-
-
-# autohide options
-
-autohide = 0
-autohide_show_timeout = 0.3
-autohide_hide_timeout = 2
-autohide_height = 2
-strut_policy = follow_size

+ 3 - 0
install/usr/local/bin/disk-maintenance

@@ -42,3 +42,6 @@ done
 for j in $(jobs -p); do
 	wait $j
 done
+
+# cleanup journalctl
+journalctl --vacuum-time=10d

+ 7 - 2
install/usr/local/bin/wallpaper

@@ -15,10 +15,15 @@ done
 
 # infinitely change wallpaper
 while true; do
+	old_pid=$(ps aux | grep swaybg | awk 'NR==1{ print $2 }')
+	swaybg_cmd="swaybg"
 	sway_outputs=( $(swaymsg -t get_outputs | jq -r '.[].name') )
 	for op in "${sway_outputs[@]}"; do
-		wp="$(find $wallpaper_path -type f | sort -R | tail -1)"
-		swaymsg "output $op bg $wp" fit \#001E27
+		wp=$(printf '%q' "$(find $wallpaper_path -type f | sort -R | tail -1)")
+		swaybg_cmd="${swaybg_cmd} -o $op -i $wp -m fit -c \#000000"
 	done
+	eval $swaybg_cmd &
+	sleep 1
+	[ -n "$old_pid" ] && kill $old_pid 2>/dev/null
 	sleep $wallpaper_sleep_for
 done

+ 1 - 0
readme.md

@@ -83,3 +83,4 @@ Finally, while I am not a fan of how `systemd` forced proliferation into all lin
 - [touchpad configuration](http://add4jhf.blogspot.com/2013/09/touch-pad-deactivation-while-typing-and.html)
 - [yay AUR Package Manager](https://github.com/Jguer/yay)
 - [Wayland](https://www.fosskers.ca/en/blog/wayland)
+- [swaybg over swaymsg for wallpaper without flicker](https://sylvaindurand.org/dynamic-wallpapers-with-sway/)