rbreaves / sorun

Desktop Linux for Creators
MIT License
31 stars 2 forks source link

Impending update features #26

Open rbreaves opened 2 years ago

rbreaves commented 2 years ago

In dev now for Ubuntu Budgie


Been awhile since this project has gotten any love - but some of that was due to burn out and being unhappy with the state of it on a particular laptop of mine. I have just recently resolved the issue - hi-dpi issue for laptops that are in between sizes of low res and high. Previously the fix involved xrandr and it would not presist btwn sleep and wake states and the workaround for that was hacky and unreliable imo.

My current solution though simply uses the GDK and QT scale environment variables globally - it may not work as consistently as double scaling and then rescaling via xrandr - but it will likely work better overall and does not require any weird hacks involving acpid to detect wake state.

Items to be completed for next update

Resize screen (eg target is 1920x1080 - take retina screen 1920/2880 = .66667 & then round that up to .7 - 1 = .3 & enlarge it by that margin so 1.3 is the scale size to get what would look normal on 2880 retina screens per the dpi.) ~/.profile

...
export GDK_DPI_SCALE=1.3
export QT_SCALE_FACTOR=1.3
...

Cron fix sudo crontab -e

@reboot setkeycodes 38 125;setkeycodes e05b 56;setkeycodes e01c 28

Middleclick fix (xorg would have been ideal but it seems to fail) ~/.Xmodmap

pointer = 1 25 3 4 5 6 7 8 9
rbreaves commented 2 years ago

Rebind switch within application windows - Super+to Alt+ so it does not interfere with bringing up the terminal in VSCode - remap Super+to Alt+ for all other apps.

rbreaves commented 2 years ago

Compile Plank with clean dots and nice dark dock with white trim.

sudo apt install autopoint valac libgnome-menu-3-dev libxml2-utils build-essential libgtk-3-dev libgee-0.8-2 libgee-0.8-dev libbamf3-dev libwnck-3-dev meson cmake libgranite-dev libdbusmenu-glib-dev libdbusmenu-gtk3-dev gettext help2man valadoc

# 21.xx
git clone https://github.com/lainsce/dock.git
cd dock
git checkout dock-monochrome-indicators
rm -rf ./build
meson build --prefix=/usr
cd build
ninja install

# 20.04 LTS
git clone https://github.com/lainsce/dock.git
cd dock
git checkout dock-monochrome-indicators-20-04
sudo make && sudo make install