echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/$USER
Last active
January 25, 2023 16:42
-
-
Save luizjr/86473fbd9f0b787599e573a6f7f39dc9 to your computer and use it in GitHub Desktop.
Export / Import Gnome Terminal Profiles
Create luizjr-theme-profile.dconf
file:
[/] background-color='#282A36' background-transparency-percent=5 bold-color='#6E46A4' bold-color-same-as-fg=false default-size-columns=130 default-size-rows=28 font='Fira Code 12' foreground-color='#F8F8F2' palette=['#262626', '#E356A7', '#42E66C', '#E4F34A', '#9B6BDF', '#E64747', '#75D7EC', '#EFA554', '#7A7A7A', '#FF79C6', '#50FA7B', '#F1FA8C', '#BD93F9', '#FF5555', '#8BE9FD', '#FFB86C'] use-system-font=false use-theme-colors=false use-theme-transparency=false use-transparent-background=true
List profiles
dconf dump /org/gnome/terminal/legacy/profiles:/
Determine the terminal profile string for the profile you will need. This is the terminal profile that I will export:
[:1430663d-083b-4737-a7f5-8378cc8226d1] foreground-color='#C3C3C7C7D1D1' visible-name='Material Colors' palette=['#070736364141', '#EBEB60606B6B', '#C3C3E8E88D8D', '#F7F7EBEB9595', '#8080CBCBC3C3', '#FFFF24249090', '#AEAEDDDDFFFF', '#FFFFFFFFFFFF', '#00002B2B3636', '#EBEB60606B6B', '#C3C3E8E88D8D', '#F7F7EBEB9595', '#7D7DC6C6BFBF', '#6C6C7171C3C3', '#343443434D4D', '#FFFFFFFFFFFF'] default-size-columns=100 default-size-rows=28 use-system-font=false use-theme-colors=false font='Source Code Pro 10' allow-bold=false bold-color-same-as-fg=true bold-color='#FFFFFFFFFFFF' background-color='#1E1E28282C2C' audible-bell=false scrollbar-policy='never'
And the string that I will need to use to export is
:1430663d-083b-4737-a7f5-8378cc8226d1
The command to export that profile is (note the ending slash)
dconf dump /org/gnome/terminal/legacy/profiles:/:1430663d-083b-4737-a7f5-8378cc8226d1/ > luizjr-theme-profile.dconf
To restore the profile
dconf load /org/gnome/terminal/legacy/profiles:/:1430663d-083b-4737-a7f5-8378cc8226d1/ < luizjr-theme-profile.dconf
Create keys.dconf
file:
[/] close-tab='<Primary>w' close-window='<Primary>q' copy='<Primary>c' new-tab='<Primary>t' new-window='<Primary>n' paste='<Primary>v' preferences='<Primary>comma'
Restore keybindings:
dconf load /org/gnome/terminal/legacy/keybindings/ < keys.dconf
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment