diff --git a/mango/mango/autostart.sh b/mango/mango/autostart.sh new file mode 100755 index 0000000..62902de --- /dev/null +++ b/mango/mango/autostart.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set +e + +swww-daemon & disown +while ! swww query &>/dev/null; do + sleep 0.1 +done +swww clear 000000 +sleep 0.1 +swww img ~/pictures/flower.jpg --transition-type fade --transition-duration 1 & + +dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=wlroots + +export WAYLAND_DISPLAY=wayland-1 +export XDG_CURRENT_DESKTOP=wlroots +export DISPLAY=:0 + +wl-clip-persist --clipboard regular --reconnect-tries 0 & +wl-paste --type text --watch cliphist store & + +gsettings set org.gnome.desktop.interface gtk-theme 'tokyonight-dark' +gsettings set org.gnome.desktop.interface icon-theme 'catppuccin-mocha' +gsettings set org.gnome.desktop.interface font-name 'Geist 11' + diff --git a/mango/mango/config.conf b/mango/mango/config.conf new file mode 100644 index 0000000..ce3f8c7 --- /dev/null +++ b/mango/mango/config.conf @@ -0,0 +1,285 @@ +# More option see https://github.com/DreamMaoMao/mango/wiki/ + +# misc env +env=QT_QPA_PLATFORMTHEME,gtk3 +env=XCURSOR_SIZE,24 +env=GTK_THEME,tokyonight-dark + +# fcitx5 im +env=GTK_IM_MODULE,fcitx +env=QT_IM_MODULE,fcitx +env=SDL_IM_MODULE,fcitx +env=XMODIFIERS,@im=fcitx +env=GLFW_IM_MODULE,ibus + +# scale factor about qt (herr is 1.4) +env=QT_QPA_PLATFORMTHEME,qt5ct +env=QT_AUTO_SCREEN_SCALE_FACTOR,1.25 +env=QT_QPA_PLATFORM,Wayland;xcb +env=QT_WAYLAND_FORCE_DPI,140 + +# Window effect +blur=0 +blur_layer=0 +blur_optimized=1 +blur_params_num_passes = 2 +blur_params_radius = 5 +blur_params_noise = 0.02 +blur_params_brightness = 0.9 +blur_params_contrast = 0.9 +blur_params_saturation = 1.2 + +shadows = 0 +layer_shadows = 0 +shadow_only_floating = 1 +shadows_size = 10 +shadows_blur = 15 +shadows_position_x = 0 +shadows_position_y = 0 +shadowscolor= 0x000000ff + +border_radius=6 +no_radius_when_single=0 +focused_opacity=1.0 +unfocused_opacity=1.0 + +# Animation Configuration(support type:zoom,slide) +# tag_animation_direction: 0-horizontal,1-vertical +animations=1 +layer_animations=1 +animation_type_open=slide +animation_type_close=slide +animation_fade_in=1 +animation_fade_out=1 +tag_animation_direction=1 +zoom_initial_ratio=0.3 +zoom_end_ratio=0.8 +fadein_begin_opacity=0.5 +fadeout_begin_opacity=0.8 +animation_duration_move=200 +animation_duration_open=300 +animation_duration_tag=350 +animation_duration_close=500 +animation_duration_focus=0 +animation_curve_open=0.46,1.0,0.29,1 +animation_curve_move=0.46,1.0,0.29,1 +animation_curve_tag=0.46,1.0,0.29,1 +animation_curve_close=0.08,0.92,0,1 +animation_curve_focus=0.46,1.0,0.29,1 + +# Scroller Layout Setting +scroller_structs=20 +scroller_default_proportion=0.8 +scroller_focus_center=0 +scroller_prefer_center=0 +edge_scroller_pointer_focus=1 +scroller_default_proportion_single=1.0 +scroller_proportion_preset=0.5,0.8,1.0 + +# Master-Stack Layout Setting +new_is_master=1 +default_mfact=0.55 +default_nmaster=1 +smartgaps=0 + +# Overview Setting +hotarea_size=10 +enable_hotarea=1 +ov_tab_mode=0 +overviewgappi=5 +overviewgappo=30 + +# Misc +no_border_when_single=0 +axis_bind_apply_timeout=100 +focus_on_activate=1 +inhibit_regardless_of_visibility=0 +sloppyfocus=1 +warpcursor=1 +focus_cross_monitor=0 +focus_cross_tag=0 +enable_floating_snap=0 +snap_distance=30 +cursor_size=24 +drag_tile_to_tile=1 + +# keyboard +repeat_rate=25 +repeat_delay=600 +numlockon=0 +xkb_rules_layout=us + +# Trackpad +# need relogin to make it apply +disable_trackpad=0 +tap_to_click=1 +tap_and_drag=1 +drag_lock=1 +trackpad_natural_scrolling=0 +disable_while_typing=1 +left_handed=0 +middle_button_emulation=0 +swipe_min_threshold=1 + +# mouse +# need relogin to make it apply +mouse_natural_scrolling=0 + +# Appearance +gappih=7 +gappiv=7 +gappoh=15 +gappov=15 +scratchpad_width_ratio=0.8 +scratchpad_height_ratio=0.9 +borderpx=3 +rootcolor=0x201b14ff +bordercolor=0x444444ff +focuscolor=0xc9b890ff +maximizescreencolor=0x89aa61ff +urgentcolor=0xad401fff +scratchpadcolor=0x516c93ff +globalcolor=0xb153a7ff +overlaycolor=0x14a57cff + +# layout support: +# tile,scroller,grid,deck,monocle,center_tile,vertical_tile,vertical_scroller +tagrule=id:1,layout_name:tile +tagrule=id:2,layout_name:tile +tagrule=id:3,layout_name:tile +tagrule=id:4,layout_name:tile +tagrule=id:5,layout_name:tile +tagrule=id:6,layout_name:tile +tagrule=id:7,layout_name:tile +tagrule=id:8,layout_name:tile +tagrule=id:9,layout_name:tile + +# Key Bindings +# key name refer to `xev` or `wev` command output, +# mod keys name: super,ctrl,alt,shift,none + +# reload config +bind=SUPER,r,reload_config + +# menu and terminal +bind=SUPER,Return,spawn,ghostty +bind=SUPER,d,spawn,rofi-run +bind=SUPER,e,spawn,thunar + +bind=SUPER+alt,p,spawn,ss-region + +# exit +bind=SUPER,m,quit +bind=SUPER+SHIFT,q,killclient, + +# switch window focus +bind=SUPER,Tab,focusstack,next +bind=ALT,Left,focusdir,left +bind=ALT,Right,focusdir,right +bind=ALT,Up,focusdir,up +bind=ALT,Down,focusdir,down + +# swap window +bind=SUPER+SHIFT,Up,exchange_client,up +bind=SUPER+SHIFT,Down,exchange_client,down +bind=SUPER+SHIFT,Left,exchange_client,left +bind=SUPER+SHIFT,Right,exchange_client,right + +# switch window status +bind=SUPER,g,toggleglobal, +bind=ALT,Tab,toggleoverview, +bind=SUPER,t,togglefloating, +bind=ALT,a,togglemaximizescreen, +bind=ALT,f,togglefullscreen, +bind=ALT+SHIFT,f,togglefakefullscreen, +bind=SUPER,i,minimized, +bind=SUPER,o,toggleoverlay, +bind=SUPER+SHIFT,I,restore_minimized +bind=ALT,z,toggle_scratchpad + +# scroller layout +bind=ALT,e,set_proportion,1.0 +bind=ALT,x,switch_proportion_preset, +# bind=SUPER,s,setlayout,scroller + +# switch layout +bind=SUPER,n,switch_layout + +# tag switch +bind=SUPER,Left,viewtoleft,0 +bind=SUPER,Right,viewtoright,0 +bind=CTRL+SUPER,Left,tagtoleft,0 +bind=CTRL+SUPER,Right,tagtoright,0 + +bind=Ctrl,1,view,1,0 +bind=Ctrl,2,view,2,0 +bind=Ctrl,3,view,3,0 +bind=Ctrl,4,view,4,0 +bind=Ctrl,5,view,5,0 +bind=Ctrl,6,view,6,0 +bind=Ctrl,7,view,7,0 +bind=Ctrl,8,view,8,0 +bind=Ctrl,9,view,9,0 + +# tag: move client to the tag and focus it +# tagsilent: move client to the tag and not focus it +# bind=Alt,1,tagsilent,1 +bind=Alt,1,tag,1,0 +bind=Alt,2,tag,2,0 +bind=Alt,3,tag,3,0 +bind=Alt,4,tag,4,0 +bind=Alt,5,tag,5,0 +bind=Alt,6,tag,6,0 +bind=Alt,7,tag,7,0 +bind=Alt,8,tag,8,0 +bind=Alt,9,tag,9,0 + +# monitor switch +bind=alt+shift,Left,focusmon,left +bind=alt+shift,Right,focusmon,right +bind=ALT+SHIFT,Left,tagmon,left +bind=ALT+SHIFT,Right,tagmon,right + +# gaps +# bind=ALT+SHIFT,X,incgaps,1 +# bind=ALT+SHIFT,Z,incgaps,-1 +# bind=ALT+SHIFT,R,togglegaps + +# movewin +# bind=SUPER+SHIFT,Up,movewin,+0,-50 +# bind=SUPER+SHIFT,Down,movewin,+0,+50 +# bind=SUPER+SHIFT,Left,movewin,-50,+0 +# bind=SUPER+SHIFT,Right,movewin,+50,+0 + +# resizewin +bind=SUPER+ALT,Up,resizewin,+0,-50 +bind=SUPER+ALT,Down,resizewin,+0,+50 +bind=SUPER+ALT,Left,resizewin,-50,+0 +bind=SUPER+ALT,Right,resizewin,+50,+0 + +# Mouse Button Bindings +# NONE mode key only work in ov mode +mousebind=SUPER,btn_left,moveresize,curmove +mousebind=NONE,btn_middle,togglemaximizescreen,0 +mousebind=SUPER,btn_right,moveresize,curresize +mousebind=NONE,btn_left,toggleoverview,1 +mousebind=NONE,btn_right,killclient,0 + +# Axis Bindings +axisbind=SUPER,UP,viewtoleft_have_client +axisbind=SUPER,DOWN,viewtoright_have_client + + +# layer rule +layerrule=animation_type_open:zoom,layer_name:rofi +layerrule=animation_type_close:zoom,layer_name:rofi + +blur=1 +blur_params_num_passes=3 +blur_params_radius=4 + +windowrule=blur,class:ghostty +windowrule=opacity:0.9,class:ghostty + +exec-once=waybar +exec-once=init-screen-scale diff --git a/mango/mangoinstall b/mango/mangoinstall new file mode 100644 index 0000000..b97ca18 --- /dev/null +++ b/mango/mangoinstall @@ -0,0 +1,79 @@ +# general packages +sudo pacman -S swaybg wl-clipboard wl-clip-persist cliphist slurp grim satty mako neovim firefox ghostty fastfetch xdg-desktop-portal-wlr libnotify unzip bat rsync exa ripgrep bash-completion jq otf-font-awesome thunar + +# fix locale +# double check /etc/locale.gen for en_US.UTF-8 +sudo locale-gen +sudo localectl set-locale LANG=en_US.UTF-8 + +# sound +sudo pacman -S pipewire pipewire-alsa pipewire-pulse pipewire-jack wireplumber pavucontrol +systemctl --user enable --now pipewire pipewire-pulse wireplumber + +# discord, just run discord without flags with xwayland +# need 'export DISPLAY=:0' in autostart.sh +sudo pacman -S xorg-xwayland + +# japanese +sudo pacman -S fcitx5 fcitx5-anthy fcitx5-gtk fcitx5-qt fcitx5-configtool +sudo pacman -S adobe-source-han-sans-jp-fonts +fc-cache -fv + +# npm +yay -S fnm +echo 'eval "$(fnm env --use-on-cd)"' >> ~/.bashrc + +source ~/.bashrc +fnm install --lts +fnm use lts-latest + +# tailscale +https://tailscale.com/download/linux/arch + +# starship +sudo pacman -S starship +echo 'eval "$(starship init bash)"' >> ~/.bashrc + +# ssh +sudo pacman -S openssh +sudo systemctl start sshd +sudo systemctl enable sshd + +# password manager +sudo pacman -S pass +# create ssh key for pw manager server +ssh-keygen -t ed25519 -C "username@hostname" +# add pub to pw manager server +# clone syncpass and run ./syncpass init and follow instructions +# run ./syncpass update to get latest passwords + +# gtk theme +sudo pacman -S sassc gnome-themes-extra +yay -S gtk-engine-murrine +# instructions: https://www.pling.com/p/1681315 +# probably: Tokyonight-BL-LB-dark.tar.xz +# rename ~/.themes/Tokyonight-BL-LB-Dark to ~/.themes/tokyonight-dark +# copy dotfiles > ~/.config/gtk-3.0/ +# add the autostart of gsettings +# firefox > about:support > os theme should now be tokyonight + +# fonts +# add to ~/.local/share/fonts/*.ttf +# https://github.com/vercel/geist-font/releases +fc-cache -fv + +# monitor management +yay -S wdisplays wlr-randr + +# bluetooth +sudo pacman -S bluez bluez-utils blueman pipewire-bluetooth +sudo systemctl enable --now bluetooth.service +# sudo vim /etc/bluetooth/main.conf +# uncomment [Policy] ... AutoEnable=true +# validate btusb enabled: lsmod | grep btusb +# not enabled: sudo modprobe btusb + +# wallpapers +sudo pacman -S swww +# if pyenv installed: PATH="/usr/bin:$PATH" yay -S waypaper +yay -S waypaper