-
Notifications
You must be signed in to change notification settings - Fork 0
Optimizations #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
krish-gh
wants to merge
18
commits into
main
Choose a base branch
from
optimize
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
4d39d47
optimizing scripts
krish-gh c3049ec
updated
krish-gh 74ab7ac
updated
krish-gh 79bdea5
updated
krish-gh 9e69c35
updated
krish-gh b3da7e5
update
krish-gh 041a3bc
updated
krish-gh a9c3719
updated
krish-gh 7fa0100
updated
krish-gh 04c42de
updated
krish-gh f36449a
updated
krish-gh 2de6e9d
updated
krish-gh 386077a
updated
krish-gh 08fbdf5
Refactor setup scripts
krish-gh adf219f
Fix typos in README and update setup command in setup-guide.sh to useβ¦
krish-gh df467d9
Refactor package installation lists in various distro scripts for claβ¦
krish-gh b98b7e3
Remove portable sed function from xfce.sh, arch.sh, and fedora.sh forβ¦
krish-gh 3b21b6d
Reintroduce portable sed function for compatibility with GNU and BSD β¦
krish-gh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,44 @@ | ||
| #!/bin/bash | ||
| #!/bin/sh | ||
|
|
||
| # shellcheck disable=SC2034 | ||
| GUI_TEXT_EDITOR=xed.desktop | ||
|
|
||
| setup_cinnamon() { | ||
| echo -e "Configuring cinnamon stuffs..." | ||
| printf 'Configuring Cinnamon stuff...\n' | ||
| install_pkgs "$CINNAMON_PACKAGES_TO_INSTALL" | ||
|
|
||
| #mkdir -p ~/.local/share/xed/styles | ||
| #copy_file ~/.local/share/xed/styles/mocha.xml https://raw.githubusercontent.com/catppuccin/xed/main/src/mocha.xml | ||
|
|
||
| copy_file "$TEMP_DIR"/cinnamon.dconf "${BASE_REPO_LOCATION}"desktop/cinnamon.dconf | ||
| dconf load / <"$TEMP_DIR"/cinnamon.dconf | ||
| rm -f "$TEMP_DIR"/cinnamon.dconf | ||
| copy_file "$TEMP_DIR/cinnamon.dconf" "${BASE_REPO_LOCATION}desktop/cinnamon.dconf" && { | ||
| dconf load / < "$TEMP_DIR/cinnamon.dconf" 2>/dev/null || printf 'Warning: Failed to load dconf settings\n' >&2 | ||
| rm -f "$TEMP_DIR/cinnamon.dconf" | ||
| } | ||
|
|
||
| # pinned apps | ||
| gwlconfigfile=$(ls ~/.config/cinnamon/spices/grouped-window-list@cinnamon.org/*.json) | ||
| gwlconfig="$(jq '(."pinned-apps".value) |= [ "nemo.desktop", "xed.desktop", "org.gnome.Terminal.desktop", "firefox.desktop" ]' "$gwlconfigfile")" && | ||
| echo -E "${gwlconfig}" >"$gwlconfigfile" | ||
| gwlconfigfile=$(ls ~/.config/cinnamon/spices/grouped-window-list@cinnamon.org/*.json 2>/dev/null) | ||
| if [ -n "$gwlconfigfile" ]; then | ||
| gwlconfig="$(jq '(."pinned-apps".value) |= [ "nemo.desktop", "xed.desktop", "org.gnome.Terminal.desktop", "firefox.desktop" ]' "$gwlconfigfile")" && \ | ||
| printf '%s\n' "$gwlconfig" > "$gwlconfigfile" | ||
| fi | ||
|
|
||
| # menu | ||
| mconfigfile=$(ls ~/.config/cinnamon/spices/menu@cinnamon.org/*.json) | ||
| mconfig="$(jq '(."popup-height".value) |= 600' "$mconfigfile")" && | ||
| echo -E "${mconfig}" >"$mconfigfile" | ||
| mconfigfile=$(ls ~/.config/cinnamon/spices/menu@cinnamon.org/*.json 2>/dev/null) | ||
| if [ -n "$mconfigfile" ]; then | ||
| mconfig="$(jq '(."popup-height".value) |= 600' "$mconfigfile")" && \ | ||
| printf '%s\n' "$mconfig" > "$mconfigfile" | ||
| fi | ||
| } | ||
|
|
||
| setup_cinnamon_theme() { | ||
| gsettings set org.gnome.desktop.interface gtk-theme Mint-Y-Dark | ||
| gsettings set org.gnome.desktop.interface icon-theme Mint-Y | ||
| gsettings set org.cinnamon.desktop.interface gtk-theme Mint-Y-Dark | ||
| gsettings set org.cinnamon.desktop.interface icon-theme Mint-Y | ||
| gsettings set org.cinnamon.theme name Mint-Y-Dark | ||
| sudo crudini --ini-options=nospace --set /etc/lightdm/slick-greeter.conf Greeter theme-name Mint-Y-Dark | ||
| sudo crudini --ini-options=nospace --set /etc/lightdm/slick-greeter.conf Greeter icon-theme-name Mint-Y | ||
| gsettings set org.gnome.desktop.interface gtk-theme Mint-Y-Dark 2>/dev/null || true | ||
| gsettings set org.gnome.desktop.interface icon-theme Mint-Y 2>/dev/null || true | ||
| gsettings set org.cinnamon.desktop.interface gtk-theme Mint-Y-Dark 2>/dev/null || true | ||
| gsettings set org.cinnamon.desktop.interface icon-theme Mint-Y 2>/dev/null || true | ||
| gsettings set org.cinnamon.theme name Mint-Y-Dark 2>/dev/null || true | ||
| sudo crudini --ini-options=nospace --set /etc/lightdm/slick-greeter.conf Greeter theme-name Mint-Y-Dark 2>/dev/null || true | ||
| sudo crudini --ini-options=nospace --set /etc/lightdm/slick-greeter.conf Greeter icon-theme-name Mint-Y 2>/dev/null || true | ||
| } | ||
|
|
||
| set_cinnamon_wallpaper() { | ||
| # shellcheck disable=SC2046 | ||
| gsettings set org.cinnamon.desktop.background picture-uri "file://$1" | ||
| # Set wallpaper for Cinnamon desktop | ||
| gsettings set org.cinnamon.desktop.background picture-uri "file://$1" 2>/dev/null || true | ||
| } | ||
|
|
||
| echo -e "Done cinnamon.sh..." | ||
| printf 'Done cinnamon.sh...\n' |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.