Vanilla Dpup 11 user customization and tweaks

Moderators: dimkr, Forum moderators

Post Reply
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

This thread is for Vanilla Dpup 11 user summited customization's and tweaks

d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Dark mode part 1

To get most apps into dark mode from a new stock Vanilladpup 11 you need to do the following steps
1 Open spacefm [keyboard shortcut win + e]
2 Show hidden files [keyboard shortcut Ctrl +h]
3 Navigate to .config
4 Add a new folder [right click new folder] name it gtk-3.0
5 Navigate into the gkt-3.0 and create a new file [right click new file] name it setting.ini
6 Open settings.ini with a text editor and copy and paste the follow into it

Code: Select all

[Settings]
gtk-application-prefer-dark-theme=1

7 Save it

Changes should work quickly however open apps will not change without reopening them. Sometimes it's best to just restart the graphical server

Note: This won't change the bar or the menu. I'm going to do those in separate posts.

d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Dark mode part 2 the waybar

To get the waybar into dark mode do the following steps
1 Open spacefm [keyboard shortcut win + e]
2 Show hidden files [keyboard shortcut Ctrl + h]
3 Navigate to .config/waybar/Horizontal [for a default setup]
4 Copy style.css and save it to a safe place so you can undo these changes
5 Open style.css [click on it]
6 Select all [Ctrl a] and delete
7 Copy and paste the code below into it

Code: Select all

* {
    font-family: FontAwesome, sans-serif;
    font-size: 14px;
}

.bar1 {
    border-top: 1px solid #DEDDDC;
}

.bar2 {
    background: none;
    color: #F6F5F4;
}

.bar2 * {
    font-size: 32px;
}

button {
    border-left: 1px solid #FFFFFF;
    border-radius: 0;
    border-bottom: 4px solid #E1DEDB;
}

button:hover {
    border-bottom: 4px solid #CDC7C2;
}

#taskbar button.active {
    border-bottom: 4px solid #3584E4;
}

#custom-launcher, #clock {
    padding: 4px;
}

8 Save it [Ctrl s]
9 Restart the graphical server [The best way I think]

The bar will pick up the dark mode background and text colors
Note: I added a white border-left 1px solid #FFFFFF [white]

Last edited by d-pupp on Thu Jul 04, 2024 8:37 pm, edited 1 time in total.
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Dark mode part 3 the Menu

I think the best way to get a dark mode menu is to create a new theme
This is just a copy of buntoo-ambience with a few colors changed.
1 Open spacefm [keyboard shortcut win + e]
2 Navigate to /usr/share/themes
3 Create a new folder [right click new folder] name it buntoo-dark
4 Go into buntoo-dark and create a new folder [right click new folder] name it openbox-3
5 Go into openbox-3 and creat e a new file [right click new file] name it themerc
6 Open themerc [click on it] and copy and paste the following code into it.

Code: Select all

border.width: 3
titlebar.height: 19
padding.height: 0
window.active.border.color: #222222
window.inactive.border.color: #858585
window.active.title.bg.color: #222222
window.active.label.text.color: #EEEEEE
window.active.button.unpressed.image.color: #EEEEEE
window.inactive.title.bg.color: #858585
window.inactive.label.text.color: #CCCCCC
window.inactive.button.unpressed.image.color: #CCCCCC
menu.items.bg.color: #222222
menu.items.active.bg.color: #858585
menu.items.text.color: #FFFFFF

7 Save it [Ctrl s
8 Set the new theme [Menu > Desktop > labwc Theme Switcher]

Last edited by d-pupp on Thu Jul 04, 2024 8:57 pm, edited 1 time in total.
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Dark mode part 4 geany

To set geany to full dark mode you need a dark theme. You can get one off the geany website or make your own. There is a Alternate that you can play with.
Either way the themes are in /usr/share/geany/colorschemes/

1 Open spacefm [keyboard shortcut win + e]
2 Navigate to /usr/share/geany/colorschemes
3 Copy your new theme here or create a new one
4 Set the new theme [view menu > Change Color Schemes...]

d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Change the clock format to 12 hours

1 Open a terminal window [keyboard shortcut Ctrl + Alt + t]
2 Copy and paste the command below onto the command line

Code: Select all

sed -i 's/%H/%I/' /root/.config/waybar/config.jsonc

3 To paste in the terminal window with a mouse use the center button [The wheel on most mice]
4 Restart the graphical server

d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Start Firefox full screen

1 Open spacefm [keyboard shortcut win e]
2 Show hidden files [keyboard shortcut Ctrl h]
3 Navigate to /root/.config/labwc/rc.xml [Don't click to open]
4 Open the file in a text editor [right click > open > L3afpad]
5 Copy and paste the code below into the file [Not between tags!! look for </ tag-name> and make a space after the tag to paste]

Code: Select all

# Maximize Firefox on start up
<windowRules>
   <windowRule identifier="firefox*">
     <action name="Maximize" direction="both" />
    </windowRule>
 </windowRules>

6 Restart the graphical server

d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Add workspaces to labwc Edit: Workspaces are now included in dpup by default.

The code will add 3 workspaces to labwc. The waybar is not changed however it will show all open apps on any workspace and when selected will move you to that workspace.
This is keyboard only via Ctrl + win + arrow left or right

1 Open spacefm [keyboard shortcut win e]
2 Show hidden files [keyboard shortcut Ctrl h]
3 Navigate to /root/.config/labwc/rc.xml [Don't click to open it]
4 Open the file with a text editor [right click > open > L3afpad or geany]
5 Copy and paste the code below [Between tags!! look for </tag-name> create a space and paste]

Code: Select all

<desktops>
   <popupTime>1000</popupTime>
     <names>
       <name>Workspace 1</name>
       <name>Workspace 2</name>
       <name>Workspace 3</name>
     </names>
 </desktops>

This sets up 3 workspaces
6 Move to the bottom of the page just before

Code: Select all

</keyboard>

create a space and paste the following code

Code: Select all

    <keybind key="W-C-Left">
      <action name="GoToDesktop" to="left" />
    </keybind>

    <keybind key="W-C-Right">
      <action name="GoToDesktop" to="right" />
    </keybind>

This setup the keybindings to move to different workspaces [Ctrl + win + arrow left or right]
7 Restart the graphical server

Last edited by d-pupp on Tue Nov 12, 2024 4:38 pm, edited 1 time in total.
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Make Spacefm show more icon by file types

Spacefm is a good file manager. However it doesn't show many icons for different file types.
You can force spacefm to show icons for different file types with a simple hack.

[edit changed for user spot]
Download and extract the attachment mime.tar.gz
Copy or move it to /home/spot/.local/share/

[edit changed location of icons]
Download and extract the attachment icons.tar.gz
Copy of move it to /home/spot/.local/share/

Edit
Check owner (must be spot)
Permissions (owner must have folders rwx files must be rw )

Restart spacefm

Note: This only covers some main file types like scripts, text, pdf, html, etc
It does not change the mime type or the app used to open it. It only adds the icon

More info in is the spacefm help under mime menu

Edit added screen shot

Attachments
icons.tar.gz
(2.8 KiB) Downloaded 21 times
mime.tar.gz
(6.49 KiB) Downloaded 18 times
screenshot.png
screenshot.png (31.27 KiB) Viewed 1643 times
Last edited by d-pupp on Tue Nov 12, 2024 4:43 pm, edited 4 times in total.
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Desktop file to start cups web interface

Edit: Not really needed now as dpup 11 has an option is the setup menu

Just remove the fake .gz and copy it to your home folder someplace.
Clicking on it will open Firefox at the cups admin page

Attachments
cups.desktop.gz
(202 Bytes) Downloaded 36 times
Last edited by d-pupp on Tue Nov 12, 2024 4:44 pm, edited 1 time in total.
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Desktop file to change your password

Just remove the fake .gz and copy it to your home folder someplace.
Clicking it will open a terminal window and prompt for the new password.
Press enter to close the window.

Attachments
change_pw.desktop.gz
(205 Bytes) Downloaded 37 times
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Make ip output easier to read

The output of ip a is hard to read on a black background as the ip6 address is dark blue.
You can make this easier to read.

Code: Select all

echo 'export COLORFGBG=";0"' >> ~/.bashrc

It changes the colors to bright colors
From the man page

d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Add and set Wallpaper as spot

This tool allows you to add your own wallpaper without root permissions

I have tried to make it as self contained as possible. Everything is in the wallpaper folder.
To use extract and place in /home/spot
I have included some of the default wallpaper for testing. Add you own to the wallpaper folder and use the wallpaper tool included in the folder to set it.

Wallpaper must be .svg, png, or jpg

For Vanilladpup 11.0.200 or later only. It depends on swaybg

Many thanks to @dimkr for the yad wallpaper app. I copied his and changed the paths to make it work.

Attachments
wallpaper.tar.gz
(9.19 KiB) Downloaded 22 times
d-pupp
Posts: 394
Joined: Tue Nov 22, 2022 9:11 pm
Location: Canada
Has thanked: 232 times
Been thanked: 69 times

Re: Vanilla Dpup 11 user customization and tweaks

Post by d-pupp »

Yad launcher for tasks requiring root permissions

This tool is for initial setup of a new pc
You only need to enter your password once.

To use extract and place in /home/spot
Inside the set_root folder you will see apps, launcher, run-as-root
Click run-as-root
It will ask you for your password
The launcher will open as root and stay open until you close it with the x. There are no buttons.
You can ...
Change the host name
Set locale language
Set the timezone
Start or stop services
Save your changes (save2flash)
Create a new save file/folder >> [ Note: For new frugal install to a hard drive this is your first step and it requires a reboot ]
Edit: This tool is for Vanilladpup 11.0.200 or better. It depends on pkexec
However the launcher is just yad and should work on other pups. Just delete run-as-root and replace the desktop files with your own.

Attachments
root_set.tar.gz
(966 Bytes) Downloaded 21 times
Post Reply

Return to “Vanilla Dpup”