-
Notifications
You must be signed in to change notification settings - Fork 67
New contributions #166
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
base: 1.4
Are you sure you want to change the base?
New contributions #166
Changes from all commits
df57739
64468cc
cc8bc21
424b610
6e827b2
02f3d7a
92c968d
4760f78
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,7 +174,7 @@ judge "Install gnome printer support" | |
|
||
print_ok "Installing ubuntu drivers support..." | ||
apt install $INTERACTIVE \ | ||
ubuntu-drivers-common alsa-utils alsa-base fprintd --no-install-recommends | ||
ubuntu-drivers-common alsa-utils alsa-base fprintd printer-driver-all --no-install-recommends | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have concern installing almost all drivers by default. Since not all users may need to setup a printer and this may cause the image larger. But I'm still wondering if it's a big issue that requires installing printer drivers manually. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, how you wish. But I prefer the user to have access to all drivers is easier for him and also if users see their printer from beginning is more happy. |
||
judge "Install ubuntu drivers support" | ||
|
||
print_ok "Installing python3..." | ||
|
@@ -202,4 +202,4 @@ judge "Remove the default vim.desktop file" | |
|
||
print_ok "Installing $LANGUAGE_PACKS language packs" | ||
apt install $INTERACTIVE $LANGUAGE_PACKS --no-install-recommends | ||
judge "Install language packs" | ||
judge "Install language packs" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// ==================== | ||
// File: deskmon.c | ||
// Daemon: watch ~/Desktop for new .desktop files, chmod +x and mark as trusted | ||
// Compile: gcc `pkg-config --cflags --libs gio-2.0 glib-2.0` -O2 -o deskmon deskmon.c | ||
// Compile: gcc `pkg-config --cflags gio-2.0 glib-2.0` -O2 -o deskmon deskmon.c `pkg-config --libs gio-2.0 glib-2.0` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's that for? |
||
// Install to /usr/local/bin/deskmon and run via systemd user service | ||
|
||
#define _GNU_SOURCE | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,20 @@ import {Extension} from 'resource:///org/gnome/shell/extensions/extension.js'; | |
|
||
const LIGHT_SCHEME_NAME = 'prefer-light'; | ||
const DARK_SCHEME_NAME = 'prefer-dark'; | ||
const GLib = imports.gi.GLib; | ||
|
||
function runCommand(command) { | ||
try { | ||
let [stdout, stderr, exit_status] = GLib.spawn_command_line_sync(command); | ||
if (exit_status !== 0) { | ||
global.log(`Error running command: ${stderr}`); | ||
} else { | ||
global.log(`Command output: ${stdout}`); | ||
} | ||
} catch (e) { | ||
global.log(`Error running command: ${e}`); | ||
} | ||
} | ||
|
||
const LIGHT_THEME_SETTINGS = { | ||
"org.gnome.desktop.interface": { | ||
|
@@ -85,8 +99,12 @@ export default class LightDarkSwitcherExtension extends Extension { | |
_syncTheme() { | ||
let scheme = this._interfaceSettings.get_string('color-scheme'); | ||
if (scheme === DARK_SCHEME_NAME) { | ||
GLib.spawn_async(null, ['sh', '-c', "rm -rf $HOME/.config/gtk-4.0/*"], null, GLib.SpawnFlags.SEARCH_PATH, null); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's that for? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For theme, when change the theme to fix for libadawaita. In void linux I add also links in skel to work from the first boot look https://github.com/florintanasa/brgvos-void/tree/main/includedir/etc/skel/.config/gtk-4.0 I use for default the light theme. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Look at https://git.aiursoft.cn/PublicVault/Fluent-gtk-theme/src/branch/master/install.sh from line 718 when install the theme for libadwaita is necessary some links. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And depend on color theme, so when we change from dark to light is necessary some links to light theme and when we change from light to dark theme is necessary to change the links to dark. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, but exist some problem with links Gnome settings not appear correctly for Aspect page, look at color accent Also, I comment the lines for icon theme, I installed Accent Icons extensions and I set this extension with all Fluent icons color, but not exist for teal, is necessary to request from developer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Screenshots are taken from BRGV-OS based by Void Linux. |
||
GLib.spawn_async(null, ['sh', '-c', "ln -sf /usr/share/themes/Fluent-round-Dark/gtk-4.0/* $HOME/.config/gtk-4.0/"], null, GLib.SpawnFlags.SEARCH_PATH, null); | ||
applySettings(DARK_THEME_SETTINGS); | ||
} else { | ||
GLib.spawn_async(null, ['sh', '-c', "rm -rf $HOME/.config/gtk-4.0/*"], null, GLib.SpawnFlags.SEARCH_PATH, null); | ||
GLib.spawn_async(null, ['sh', '-c', "ln -sf /usr/share/themes/Fluent-round-Light/gtk-4.0/* $HOME/.config/gtk-4.0/"], null, GLib.SpawnFlags.SEARCH_PATH, null); | ||
applySettings(LIGHT_THEME_SETTINGS); | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,35 @@ set -e # exit on error | |
set -o pipefail # exit on pipeline error | ||
set -u # treat unset variable as error | ||
|
||
print_ok "Configuring templates..." | ||
mkdir -p /etc/skel/Templates | ||
touch /etc/skel/Templates/Text.txt | ||
touch /etc/skel/Templates/Markdown.md | ||
cat << 'EOF' > /etc/skel/Templates/Markdown.md | ||
print_ok "Declare Templates dir name as variable for specific languages..." | ||
case $LANG_MODE in | ||
"ro_RO") | ||
export TEMPLATE_DIR="Șabloane" | ||
print_ok "Configuring templates..." | ||
mkdir -p /etc/skel/$TEMPLATE_DIR | ||
touch /etc/skel/$TEMPLATE_DIR/Text.txt | ||
touch /etc/skel/$TEMPLATE_DIR/Markdown.md | ||
cat << 'EOF' > /etc/skel/$TEMPLATE_DIR/Markdown.md | ||
# Titlu | ||
|
||
- [ ] De realizat 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This affects globally? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, only when is build for Romanian language. |
||
- [ ] De realizat 2 | ||
- [ ] De realizat 3 | ||
|
||
## Subtitlu | ||
|
||
1. Lista 1 | ||
2. Lista 2 | ||
3. Lista 3 | ||
EOF | ||
;; | ||
*) | ||
export TEMPLATE_DIR="Templates" | ||
print_ok "Configuring templates..." | ||
mkdir -p /etc/skel/$TEMPLATE_DIR | ||
touch /etc/skel/$TEMPLATE_DIR/Text.txt | ||
touch /etc/skel/$TEMPLATE_DIR/Markdown.md | ||
cat << 'EOF' > /etc/skel/$TEMPLATE_DIR/Markdown.md | ||
# Title | ||
|
||
- [ ] Task 1 | ||
|
@@ -19,4 +43,6 @@ cat << 'EOF' > /etc/skel/Templates/Markdown.md | |
2. Numbered 2 | ||
3. Numbered 3 | ||
EOF | ||
judge "Configure templates" | ||
;; | ||
esac | ||
judge "Configure templates" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's not needed because 1.4 branch is for questing while 1.3 is for plucky. But nice to have.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok