Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I wasn't expecting that script. Lol, a little bit above what I do, but I'm still looking at it and I'm probably going to insert some bits into my setup. This is how I have been doing it...
- I like three setups.
- 1. a night theme (dark)
- 2. a day theme (light)
- 3. a side theme (dark and panel on left side vertically, like MX Linux)
- I have three aliases that I use to save my settings at that very moment. The only time I really use these aliases is when I make changes to my desktop or my keybinds. That is important, because if I don't do a 'alias' after changing keybinds and then change mode, I lose my keybinds. Ex. I'm in night mode and I add some keybinds and then go to day mode, my keybinds are lost because I didn't do a 'alias' before changing.
- my three aliases for changing mode are...
- alias day="dconf dump / > /home/dave/Documents/Cinnamon_Settings/day-desktop"
- alias night="dconf dump / > /home/dave/Documents/Cinnamon_Settings/night-desktop"
- alias side="dconf dump / > /home/dave/Documents/Cinnamon_Settings/side-desktop"
- I had thought about applying the aliases to keybinds but decided against it as I have LOTS of custom keybinds already. It's so easy to pop in a terminal and just type 'day.' I have a special terminal setup (furminal) and all I do is super+return, type 'day' and 'q' to exit.
- ---------------------------------------------------------------------------------------------------
- next, I have three files in ~/bin for this to work (this is for my 3 keybinds I use to change modes quickly.
- the three files look like this...
- #!/bin/bash
- dconf load / < ~/Documents/Cinnamon_Settings/day-desktop
- ---------
- #!/bin/bash
- dconf load / < ~/Documents/Cinnamon_Settings/night-desktop
- ---------
- #!/bin/bash
- dconf load / < ~/Documents/Cinnamon_Settings/side-desktop
- don't forget to make them executable.
- ---------------------------------------------------------------------------------------------------
- this part is where the 3 aliases save the config files...
- in ~/Documents I have a folder called 'Cinnamon_Settings' and in this folder I keep this text file so I can remember some commands.
- text file...
- install dconf-editor.
- open a terminal in this folder.
- To backup your current Linux desktop settings..
- dconf dump / > my-cinnamon-desktop
- dconf dump / > my-cinnamon-desktop_"$(date -I)"
- You can view this file using any text editors or cat command
- cat my-cinnamon-desktop
- Now reset your desktop settings to the factory defaults with command..
- dconf reset -f /
- Or, to restore your saved settings, simply do..
- dconf load / < my-cinnamon-desktop
- In this folder (~/Documents/Cinnamon_Settings) I have these 5 files..
- README (text file above)
- my-cinnamon-desktop (created this when I had my system setup with all my keybinds. For backup)
- day-desktop
- night-desktop
- side-desktop
- * and a folder called 'backup' to save old configs (I don't really ever use it)
- ---------------------------------------------------------------------------------------------------
- Keybinds. I only use three keybinds to change modes.
- 1. name: cinnamon day desktop
- command: /home/dave/bin/cinnamon-day-desktop
- my keybind: Shift+Ctrl+Super+D (day)
- 2. name: cinnamon night desktop
- command: /home/dave/bin/cinnamon-night-desktop
- my keybind: Shift+Ctrl+Super+N (night)
- 3. name: cinnamon side desktop
- command: /home/dave/bin/cinnamon-side-desktop
- my keybind: Shift+Ctrl+Super+S (side)
- ---------------------------------------------------------------------------------------------------
- This is really a simple setup and I like it. I've been using it for a long time, too. I remember when I was first setting this up and I tried doing the mode change automatically with Cron but I didn't like it. Instead, I just use keybinds and when I want to change the mode it only takes 2 seconds to do.
- If you would like to try this, this is how I suggest setting it up..
- 1. create the three aliases
- 2. create the three executable files and put them in ~/bin
- 3. create the folder ~/Documents/Cinnamon_Settings (put the README file in this folder)
- 4. open a terminal in the folder above and do this in terminal to save your current desktop settings...
- dconf dump / > my-cinnamon-desktop
- 5. do 'day' first. setup your desktop with the light themes you like and change all settings you want for your day desktop. In terminal just type 'day'
- 6. now do 'night'. Repeat step 5 and setup your desktop for night.
- 7. finally do 'side'. This is optional, but it does work nicely. The panel moves to the side and I even move some of the applets around and it still works. When you go from 'side' back to 'night' all the original applet positions I saved in 'night' mode will work correctly.
- If you go into ~/Documents/Cinnamon_Settings you will see your 4 new files and it's now time to test your keybinds. Have fun!
Advertisement
Add Comment
Please, Sign In to add comment