more default settings i use

This commit is contained in:
Christoph Haas 2024-04-22 22:57:51 +02:00
parent 173d3c1673
commit c4412fb47b
14 changed files with 206 additions and 10 deletions

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Icon=localsend
Name=LocalSend
Exec=/usr/bin/localsend autostart
Comment=An open source cross-platform alternative to AirDrop.
Categories=Utility;Network;

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Version=1.0
Name=Remmina Applet
Comment=Connect to remote desktops through the applet menu
Icon=org.remmina.Remmina
Exec=remmina -i
Terminal=false
Type=Application
Hidden=false

View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=Seafile
Comment=Seafile desktop sync client
TryExec=seafile-applet
Exec=seafile-applet
Icon=seafile
Type=Application
Categories=Network;FileTransfer;

40
.dconf/Forge.dconf Normal file
View File

@ -0,0 +1,40 @@
[/]
con-split-horizontal=['<Super>z']
con-split-layout-toggle=['<Super>g']
con-split-vertical=['<Super>v']
con-stacked-layout-toggle=['<Shift><Super>s']
con-tabbed-layout-toggle=['<Shift><Super>t']
con-tabbed-showtab-decoration-toggle=['<Control><Alt>y']
focus-border-toggle=['<Super>x']
prefs-tiling-toggle=['<Super>w']
window-focus-down=['<Shift><Super>Down']
window-focus-left=['<Shift><Super>Left']
window-focus-right=['<Shift><Super>Right']
window-focus-up=['<Shift><Super>Up']
window-gap-size-decrease=@as []
window-gap-size-increase=@as []
window-move-down=['<Super>Down']
window-move-left=['<Super>Left']
window-move-right=['<Super>Right']
window-move-up=['<Super>Up']
window-resize-bottom-decrease=['<Shift><Control><Super>i']
window-resize-bottom-increase=['<Control><Super>u']
window-resize-left-decrease=['<Shift><Control><Super>o']
window-resize-left-increase=['<Control><Super>y']
window-resize-right-decrease=['<Shift><Control><Super>y']
window-resize-right-increase=['<Control><Super>o']
window-resize-top-decrease=['<Shift><Control><Super>u']
window-resize-top-increase=['<Control><Super>i']
window-snap-center=['<Control><Alt>c']
window-snap-one-third-left=['<Control><Alt>d']
window-snap-one-third-right=['<Control><Alt>g']
window-snap-two-third-left=['<Control><Alt>e']
window-snap-two-third-right=['<Control><Alt>t']
window-swap-down=['<Control><Super>j']
window-swap-last-active=['<Super>Return']
window-swap-left=['<Control><Super>h']
window-swap-right=['<Control><Super>l']
window-swap-up=['<Control><Super>k']
window-toggle-always-float=['<Shift><Super>c']
window-toggle-float=['<Super>c']
workspace-active-tile-toggle=['<Shift><Super>w']

7
.dconf/MediaKeys.dconf Normal file
View File

@ -0,0 +1,7 @@
[/]
custom-keybindings=['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']
[custom-keybindings/custom0]
binding='Print'
command='/opt/flameshot.sh'
name='Flameshot'

3
.dconf/Mutter.dconf Normal file
View File

@ -0,0 +1,3 @@
[/]
toggle-tiled-left=@as []
toggle-tiled-right=@as []

View File

2
.dconf/Shell.dconf Normal file
View File

@ -0,0 +1,2 @@
[/]
show-screenshot-ui=@as []

22
.dconf/Tilix.dconf Normal file
View File

@ -0,0 +1,22 @@
[/]
copy-on-select=true
prompt-on-close=true
terminal-title-show-when-single=false
terminal-title-style='small'
use-tabs=true
window-style='normal'
[profiles/2b7c4080-0ddd-46c5-8f23-563fd3ba789d]
background-transparency-percent=0
backspace-binding='ascii-delete'
cursor-blink-mode='on'
cursor-shape='underline'
default-size-columns=120
delete-binding='auto'
dim-transparency-percent=0
draw-margin=120
font='MesloLGM Nerd Font 12'
terminal-bell='icon'
text-blink-mode='unfocused'
use-system-font=false
visible-name='Default'

View File

@ -0,0 +1,18 @@
[/]
maximize=@as []
minimize=@as []
move-to-monitor-down=@as []
move-to-monitor-left=['<Shift><Super>Page_Up']
move-to-monitor-right=['<Shift><Super>Page_Down']
move-to-monitor-up=@as []
move-to-workspace-left=['<Shift><Alt><Super>Left']
move-to-workspace-right=['<Shift><Alt><Super>Right']
switch-applications=['<Super>Tab']
switch-applications-backward=['<Shift><Super>Tab']
switch-group=['<Super>plus']
switch-group-backward=['<Shift><Super>plus']
switch-to-workspace-left=['<Alt><Super>Left']
switch-to-workspace-right=['<Alt><Super>Right']
switch-windows=['<Alt>Tab']
switch-windows-backward=['<Shift><Alt>Tab']
unmaximize=@as []

15
.scripts/findmtu.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
destination_ip="${1:-1.1.1.1}"
# Set initial packet size
packet_size=1200
# Loop to find the maximum MTU size
while true; do
ping -4 -M do -c 1 -s $packet_size $destination_ip &> /dev/null
if [ $? -ne 0 ]; then
echo "Maximum MTU size: $((packet_size + 28 - 2))"
break
fi
packet_size=$((packet_size + 2))
done

2
.scripts/flameshot.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
flameshot gui

View File

@ -9,4 +9,29 @@ Bootstrap the dotfiles:
```shell
ansible-playbook --ask-become-pass bootstrap.yml
```
```
## Exporting current configurations
Gnome/DCONF:
```shell
dconf dump /com/gexperts/Tilix/ > .dconf/Tilix.dconf
dconf dump /org/gnome/settings-daemon/plugins/media-keys/ > .dconf/MediaKeys.dconf
dconf dump /org/gnome/desktop/wm/keybindings/ > .dconf/WindowManager.dconf
dconf dump /org/gnome/shell/keybindings/ > .dconf/Shell.dconf
dconf dump /org/gnome/mutter/keybindings/ > .dconf/Mutter.dconf
dconf dump /org/gnome/mutter/wayland/keybindings/ > .dconf/MutterWayland.dconf
dconf dump /org/gnome/shell/extensions/forge/keybindings/ > .dconf/Forge.dconf
```
## Gnome Extensions
- Caffeine (caffeine@patapon.info)
- Blur my Shell (blur-my-shell@aunetx)
- Forge (forge@jmmaranan.com)
- Hot Edge (hotedge@jonathan.jdoda.ca)
- Alphabetical App Grid (AlphabeticalAppGrid@stuarthayhurst)
- Reorder Workspaces (reorder-workspaces@jer.dev)
- Pano Clipboard Manager (pano@elhan.io)

View File

@ -1,6 +1,14 @@
- name: Bootstrap dotfile and depencies
hosts: localhost
vars:
dconf_tilix: "{{ lookup('file', '.dconf/Tilix.dconf') }}"
dconf_gnome_mk: "{{ lookup('file', '.dconf/MediaKeys.dconf') }}"
dconf_gnome_mutter: "{{ lookup('file', '.dconf/Mutter.dconf') }}"
dconf_gnome_mutter_w: "{{ lookup('file', '.dconf/MutterWayland.dconf') }}"
dconf_gnome_shell: "{{ lookup('file', '.dconf/Shell.dconf') }}"
dconf_gnome_wm: "{{ lookup('file', '.dconf/WindowManager.dconf') }}"
dconf_gnome_forge: "{{ lookup('file', '.dconf/Forge.dconf') }}"
tasks:
- name: Full system upgrade
become: true
@ -32,6 +40,7 @@
- zsh
- vim
- ttf-meslo-nerd
- tilix
- name: Check install packages (for later use with yay)
ansible.builtin.command: pacman -Qm
register: installed_packages
@ -43,7 +52,7 @@
- find-the-command
- oh-my-posh
- archey4
- tabby-bin
- find-the-command
- name: Install oh-my-posh config
copy:
src: "{{playbook_dir}}/.ohmyposh/"
@ -71,12 +80,41 @@
copy:
src: "{{playbook_dir}}/.zshrc"
dest: /root/.zshrc
- name: Create tabby config directory if it does not exist
ansible.builtin.file:
path: ~/.config/tabby/
state: directory
mode: '0755'
- name: Install tabby config
- name: Reset tilix config
community.general.dconf:
key: "/com/gexperts/Tilix"
state: absent
- name: Import tilix config
ansible.builtin.command: "dconf load /com/gexperts/Tilix/"
args:
stdin: "{{dconf_tilix}}"
- name: Install fancy helper scripts
become: true
copy:
src: "{{playbook_dir}}/.config/tabby/config.yaml"
dest: ~/.config/tabby/config.yaml
src: "{{playbook_dir}}/.scripts/"
dest: /opt
mode: '0755'
- name: Import Gnome MediaKey Shortcuts
ansible.builtin.command: "dconf load /org/gnome/settings-daemon/plugins/media-keys/"
args:
stdin: "{{dconf_gnome_mk}}"
- name: Import Gnome Mutter Shortcuts
ansible.builtin.command: "dconf load /org/gnome/mutter/keybindings/"
args:
stdin: "{{dconf_gnome_mutter}}"
- name: Import Gnome Mutter Wayland Shortcuts
ansible.builtin.command: "dconf load /org/gnome/mutter/wayland/keybindings/"
args:
stdin: "{{dconf_gnome_mutter_w}}"
- name: Import Gnome Shell Shortcuts
ansible.builtin.command: "dconf load /org/gnome/shell/keybindings/"
args:
stdin: "{{dconf_gnome_shell}}"
- name: Import Gnome Window Manager Shortcuts
ansible.builtin.command: "dconf load /org/gnome/desktop/wm/keybindings/"
args:
stdin: "{{dconf_gnome_wm}}"
- name: Import Gnome Extension Forge
ansible.builtin.command: "dconf load /org/gnome/shell/extensions/forge/keybindings/"
args:
stdin: "{{dconf_gnome_forge}}"