More settings for i3
This commit is contained in:
parent
a37fb2deb6
commit
2f77c9e94e
7 changed files with 61 additions and 10 deletions
|
@ -23,9 +23,9 @@
|
||||||
- dia
|
- dia
|
||||||
- evince
|
- evince
|
||||||
- fcitx5
|
- fcitx5
|
||||||
|
- feh
|
||||||
- file-roller
|
- file-roller
|
||||||
- firmware-linux
|
- firmware-linux
|
||||||
- flameshot
|
|
||||||
- git
|
- git
|
||||||
- hiera-eyaml
|
- hiera-eyaml
|
||||||
- i3
|
- i3
|
||||||
|
@ -61,12 +61,13 @@
|
||||||
- puppet-lint
|
- puppet-lint
|
||||||
- python3-deepdiff
|
- python3-deepdiff
|
||||||
- python3-openstackclient
|
- python3-openstackclient
|
||||||
- python3-yamlfix
|
# - python3-yamlfix
|
||||||
- python3-xdg
|
- python3-xdg
|
||||||
- qt5ct
|
- qt5ct
|
||||||
- rsync
|
- rsync
|
||||||
- rofi
|
- rofi
|
||||||
- scdaemon
|
- scdaemon
|
||||||
|
- seahorse
|
||||||
- shfmt
|
- shfmt
|
||||||
- simple-scan
|
- simple-scan
|
||||||
- thunar
|
- thunar
|
||||||
|
@ -75,7 +76,7 @@
|
||||||
- unzip
|
- unzip
|
||||||
- waypipe
|
- waypipe
|
||||||
- wget
|
- wget
|
||||||
- x11-server-utils
|
# - x11-server-utils
|
||||||
- xclip
|
- xclip
|
||||||
- xdg-desktop-portal
|
- xdg-desktop-portal
|
||||||
- xdg-desktop-portal-gtk
|
- xdg-desktop-portal-gtk
|
||||||
|
|
20
playbooks/gpg.yaml
Normal file
20
playbooks/gpg.yaml
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
- name: Set up gpg
|
||||||
|
hosts: localhost
|
||||||
|
connection: local
|
||||||
|
vars:
|
||||||
|
uid: "{{ lookup('env', 'USER') }}"
|
||||||
|
cert_test: "{{ lookup('ansible.builtin.pipe', 'pass show kube1.drive.test.sunet.se/cert') }}"
|
||||||
|
token_test: "{{ lookup('ansible.builtin.pipe', 'pass show kube1.drive.test.sunet.se/token') }}"
|
||||||
|
cert_prod: "{{ lookup('ansible.builtin.pipe', 'pass show kube1.drive.sunet.se/cert') }}"
|
||||||
|
token_prod: "{{ lookup('ansible.builtin.pipe', 'pass show kube1.drive.sunet.se/token') }}"
|
||||||
|
become: false
|
||||||
|
tasks:
|
||||||
|
- name: Add gnupg conf dir
|
||||||
|
ansible.builtin.file:
|
||||||
|
dest: /home/{{ uid }}/.gnupg
|
||||||
|
state: directory
|
||||||
|
- name: Add kube.conf
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: ../templates/gpg-agent.conf.j2
|
||||||
|
dest: /home/{{ uid }}/.gnupg/gpg-agent.conf
|
|
@ -33,7 +33,15 @@
|
||||||
dest: '{{ wallpaper_path }}'
|
dest: '{{ wallpaper_path }}'
|
||||||
src: ../data/debian.jpg
|
src: ../data/debian.jpg
|
||||||
notify: Reload i3
|
notify: Reload i3
|
||||||
|
- name: Install monitor script
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: ../templates/monitors.sh.j2
|
||||||
|
dest: /home/{{ uid }}/.local/bin/monitors.sh
|
||||||
|
owner: '{{ uid }}'
|
||||||
|
group: '{{ uid }}'
|
||||||
|
mode: '0750'
|
||||||
|
notify: Reload i3
|
||||||
handlers:
|
handlers:
|
||||||
- name: Reload i3
|
- name: Reload i3
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: i3msg reload
|
cmd: i3-msg reload
|
||||||
|
|
5
templates/gpg-agent.conf.j2
Normal file
5
templates/gpg-agent.conf.j2
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
scdaemon-program /usr/lib/gnupg/scdaemon
|
||||||
|
enable-ssh-support
|
||||||
|
# Enable debug logging if needed
|
||||||
|
#debug guru
|
||||||
|
#log-file /dev/shm/gpg-agent.log
|
|
@ -22,12 +22,12 @@ font pango:monospace 8
|
||||||
# Start XDG autostart .desktop files using dex. See also
|
# Start XDG autostart .desktop files using dex. See also
|
||||||
# https://wiki.archlinux.org/index.php/XDG_Autostart
|
# https://wiki.archlinux.org/index.php/XDG_Autostart
|
||||||
exec --no-startup-id dex --autostart --environment i3
|
exec --no-startup-id dex --autostart --environment i3
|
||||||
|
exec --no-startup-id setxkbmap -layout se -variant us
|
||||||
|
|
||||||
# Other autostart
|
# Other autostart
|
||||||
exec --no-startup-id autotiling
|
exec --no-startup-id autotiling
|
||||||
exec --no-startup-id picom -b
|
exec --no-startup-id picom -b
|
||||||
exec --no-startup-id xrandr --output DP-1 --auto --left-of eDP-1
|
exec --no-startup-id ${HOME}/.local/bin/monitors.sh
|
||||||
exec --no-startup-id nitrogen --restore
|
|
||||||
|
|
||||||
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
|
||||||
# they are included here as an example. Modify as you see fit.
|
# they are included here as an example. Modify as you see fit.
|
||||||
|
@ -198,7 +198,7 @@ mode $power_mode {
|
||||||
bindsym p exec systemctl poweroff
|
bindsym p exec systemctl poweroff
|
||||||
bindsym r exec systemctl reboot
|
bindsym r exec systemctl reboot
|
||||||
bindsym l exec i3lock -c 000000, mode "default"
|
bindsym l exec i3lock -c 000000, mode "default"
|
||||||
bindsym q exec --no-startup-id swaymsg exit, mode "default"
|
bindsym q exec --no-startup-id i3-msg exit, mode "default"
|
||||||
bindsym h exec systemctl hibernate
|
bindsym h exec systemctl hibernate
|
||||||
bindsym s exec pm-suspend
|
bindsym s exec pm-suspend
|
||||||
|
|
||||||
|
@ -210,6 +210,6 @@ mode $power_mode {
|
||||||
# finds out, if available)
|
# finds out, if available)
|
||||||
bar {
|
bar {
|
||||||
position top
|
position top
|
||||||
tray_output eDP-1
|
tray_output primary
|
||||||
status_command i3status
|
status_command i3status
|
||||||
}
|
}
|
||||||
|
|
17
templates/monitors.sh.j2
Executable file
17
templates/monitors.sh.j2
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
monitors="$(xrandr | awk '/ connected/ {print $1}')"
|
||||||
|
num_monitors="$(echo "${monitors}" | wc -l)"
|
||||||
|
|
||||||
|
if [[ $num_monitors -ge 3 ]]; then
|
||||||
|
xrandr --output eDP-1 --off --output DP-4 --left-of DP-3 --primary --output DP-3 --auto
|
||||||
|
else
|
||||||
|
primary="$(echo "${monitors}" | head -n 1)"
|
||||||
|
output="$(echo "${monitors}" | tail -n 1)"
|
||||||
|
command="xrandr --output --output ${primary} --primary"
|
||||||
|
if [[ ${output} != ${primary} ]]; then
|
||||||
|
command="${command} --right-of ${output} --output ${output} --auto"
|
||||||
|
fi
|
||||||
|
${command}
|
||||||
|
fi
|
||||||
|
feh --bg-scale {{ wallpaper_path }}
|
|
@ -3,7 +3,7 @@ Name=Slack
|
||||||
StartupWMClass=Slack
|
StartupWMClass=Slack
|
||||||
Comment=Slack Desktop
|
Comment=Slack Desktop
|
||||||
GenericName=Slack Client for Linux
|
GenericName=Slack Client for Linux
|
||||||
Exec=/usr/bin/slack --ozone-platform=wayland --enable-features=UseOzonePlatform,WebRTCPipeWireCapturer %U
|
Exec=/usr/bin/slack %U
|
||||||
Icon=/usr/share/pixmaps/slack.png
|
Icon=/usr/share/pixmaps/slack.png
|
||||||
Type=Application
|
Type=Application
|
||||||
StartupNotify=true
|
StartupNotify=true
|
||||||
|
|
Loading…
Add table
Reference in a new issue