mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Compare commits
21 Commits
c9b02d8793
...
feature/mi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6a8ca4a5a | ||
|
|
b23123ae4e | ||
|
|
25379afe2e | ||
|
|
b84a57fc5b | ||
|
|
63cd774f6f | ||
|
|
e5a2b4ee41 | ||
|
|
2065164459 | ||
|
|
85bf7cfd03 | ||
|
|
b7c1cb4482 | ||
|
|
69efe18e2b | ||
|
|
0910ecbd87 | ||
|
|
a6fc0573f2 | ||
|
|
47a45cb285 | ||
|
|
ae8c311044 | ||
|
|
b827ea97a1 | ||
|
|
2d3fb543de | ||
|
|
5023722505 | ||
|
|
1bcaaca92e | ||
|
|
0b3f5e4f0c | ||
|
|
dfa1bd194f | ||
|
|
5c510220a3 |
@@ -6,6 +6,7 @@ desktop_sessions_enabled:
|
||||
|
||||
desktop_default_session: i3
|
||||
desktop_default_session_env: xorg
|
||||
desktop_prompt_for_session: true
|
||||
|
||||
desktop_source_tools:
|
||||
- name: gf
|
||||
@@ -135,15 +136,48 @@ desktop_i3_dotfiles:
|
||||
src: .config/rofi/
|
||||
dest: .config/rofi/
|
||||
mode: preserve
|
||||
- name: picom config
|
||||
src: .config/picom/picom.conf
|
||||
dest: .config/picom/picom.conf
|
||||
mode: "0644"
|
||||
- name: polybar config
|
||||
src: .config/polybar/config.ini
|
||||
dest: .config/polybar/config.ini
|
||||
mode: "0644"
|
||||
- name: polybar launcher
|
||||
src: .config/polybar/launch.sh
|
||||
dest: .config/polybar/launch.sh
|
||||
mode: "0755"
|
||||
- name: alacritty config
|
||||
src: .config/alacritty/
|
||||
dest: .config/alacritty/
|
||||
mode: preserve
|
||||
- name: .xinitrc
|
||||
src: .xinitrc
|
||||
dest: .xinitrc
|
||||
mode: "0644"
|
||||
|
||||
noctalia_bar_monitors:
|
||||
- DP-1
|
||||
|
||||
noctalia_screen_overrides: []
|
||||
desktop_sway_dotfiles:
|
||||
- name: sway config
|
||||
src: .config/sway/
|
||||
dest: .config/sway/
|
||||
mode: preserve
|
||||
- name: dunst config
|
||||
src: .config/dunst/
|
||||
dest: .config/dunst/
|
||||
mode: preserve
|
||||
- name: rofi config
|
||||
src: .config/rofi/
|
||||
dest: .config/rofi/
|
||||
mode: preserve
|
||||
- name: waybar config
|
||||
src: .config/waybar/
|
||||
dest: .config/waybar/
|
||||
mode: preserve
|
||||
- name: alacritty config
|
||||
src: .config/alacritty/
|
||||
dest: .config/alacritty/
|
||||
mode: preserve
|
||||
|
||||
desktop_flatpak_packages:
|
||||
- be.alexandervanhee.gradia
|
||||
|
||||
@@ -63,7 +63,6 @@ void_packages_base:
|
||||
- tealdeer
|
||||
- tree-sitter-grammars
|
||||
- ufw
|
||||
- xdotool
|
||||
- void-repo-nonfree
|
||||
- vpm
|
||||
- vsv
|
||||
@@ -115,10 +114,6 @@ desktop_void_dotfiles:
|
||||
src: .bashrc.d/15-runit-desktop.sh
|
||||
dest: .bashrc.d/15-runit-desktop.sh
|
||||
mode: "0644"
|
||||
- name: alacritty config
|
||||
src: .config/alacritty/
|
||||
dest: .config/alacritty/
|
||||
mode: preserve
|
||||
- name: GTK theme setup script
|
||||
src: .local/bin/setup-gtk-theme
|
||||
dest: .local/bin/setup-gtk-theme
|
||||
@@ -135,15 +130,13 @@ desktop_void_dotfiles:
|
||||
src: .local/bin/update-turnstile-env
|
||||
dest: .local/bin/update-turnstile-env
|
||||
mode: "0755"
|
||||
- name: Noctalia config
|
||||
src: .config/noctalia/
|
||||
dest: .config/noctalia/
|
||||
mode: preserve
|
||||
|
||||
desktop_common_packages:
|
||||
- blueman
|
||||
- brightnessctl
|
||||
- dex
|
||||
- emptty
|
||||
- network-manager-applet
|
||||
- pinentry-emacs
|
||||
- pinentry-gtk
|
||||
- turnstile
|
||||
@@ -151,6 +144,7 @@ desktop_common_packages:
|
||||
- xdg-desktop-portal
|
||||
- xdg-desktop-portal-gtk
|
||||
- xdg-user-dirs
|
||||
- xfce-polkit
|
||||
|
||||
desktop_i3_packages:
|
||||
- arandr
|
||||
@@ -162,20 +156,39 @@ desktop_i3_packages:
|
||||
- i3lock-color
|
||||
- i3status
|
||||
- dunst
|
||||
- network-manager-applet
|
||||
- picom
|
||||
- polybar
|
||||
- rofi
|
||||
- scrot
|
||||
- setxkbmap
|
||||
- blueman
|
||||
- volumeicon
|
||||
- xclip
|
||||
- xfce-polkit
|
||||
- xfce4-clipman-plugin
|
||||
- xfce4-screenshooter
|
||||
- xkbutils
|
||||
- xorg-fonts
|
||||
- xorg-minimal
|
||||
- xss-lock
|
||||
- xdotool
|
||||
|
||||
desktop_sway_packages:
|
||||
- cliphist
|
||||
- dunst
|
||||
- flameshot
|
||||
- grim
|
||||
- jq
|
||||
- kanshi
|
||||
- rofi
|
||||
- slurp
|
||||
- swayfx
|
||||
- swaybg
|
||||
- swayidle
|
||||
- swaylock
|
||||
- SwayOSD
|
||||
- Waybar
|
||||
- wl-clipboard
|
||||
- xdg-desktop-portal-wlr
|
||||
- xorg-server-xwayland
|
||||
|
||||
profile_packages:
|
||||
- alacritty
|
||||
|
||||
@@ -3,6 +3,7 @@ hostname: ikaros
|
||||
|
||||
desktop_sessions_enabled:
|
||||
- i3
|
||||
- sway
|
||||
|
||||
desktop_default_session: i3
|
||||
desktop_default_session_env: xorg
|
||||
|
||||
@@ -3,13 +3,14 @@ hostname: nymph
|
||||
|
||||
desktop_sessions_enabled:
|
||||
- i3
|
||||
- sway
|
||||
|
||||
desktop_default_session: i3
|
||||
desktop_default_session_env: xorg
|
||||
desktop_emptty_session_error_logging: rotate
|
||||
|
||||
host_packages:
|
||||
- nvidia
|
||||
- nvidia580
|
||||
- linux-mainline-headers
|
||||
- mesa-dri
|
||||
- vulkan-loader
|
||||
@@ -30,3 +31,14 @@ host_i3_dotfiles:
|
||||
- src: .config/wireplumber/wireplumber.conf.d/60-camera-priority.conf
|
||||
dest: .config/wireplumber/wireplumber.conf.d/60-camera-priority.conf
|
||||
mode: "0644"
|
||||
|
||||
host_sway_dotfiles:
|
||||
- src: .config/sway/host.conf
|
||||
dest: .config/sway/host.conf
|
||||
mode: "0644"
|
||||
- src: .config/sway/session-env
|
||||
dest: .config/sway/session-env
|
||||
mode: "0644"
|
||||
- src: .config/kanshi/
|
||||
dest: .config/kanshi/
|
||||
mode: preserve
|
||||
|
||||
@@ -61,6 +61,11 @@
|
||||
if 'i3' in (desktop_sessions_enabled | default([]))
|
||||
else []
|
||||
)
|
||||
+ (
|
||||
(desktop_sway_packages | default([]))
|
||||
if 'sway' in (desktop_sessions_enabled | default([]))
|
||||
else []
|
||||
)
|
||||
+ (host_packages | default([]))
|
||||
)
|
||||
| unique
|
||||
|
||||
@@ -246,6 +246,7 @@
|
||||
mode: "0755"
|
||||
loop:
|
||||
- /etc/emptty/xsessions
|
||||
- /etc/emptty/wayland-sessions
|
||||
when: "'void' in group_names"
|
||||
|
||||
- name: Configure emptty
|
||||
@@ -463,6 +464,28 @@
|
||||
- (desktop_flatpak_extensions | default([])) | length > 0
|
||||
- item | length > 0
|
||||
|
||||
- name: Ensure /etc/flatpak/overrides exists
|
||||
tags: [packages, flatpak, theme]
|
||||
ansible.builtin.file:
|
||||
path: /etc/flatpak/overrides
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
when: (desktop_flatpak_packages | default([])) | length > 0
|
||||
|
||||
- name: Force dark GTK theme for Flatpak applications
|
||||
tags: [packages, flatpak, theme]
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/flatpak/overrides/global
|
||||
content: |
|
||||
[Environment]
|
||||
GTK_THEME={{ desktop_flatpak_gtk_theme | default('Yaru-Blue-dark') }}
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
when: (desktop_flatpak_packages | default([])) | length > 0
|
||||
|
||||
- name: Bootstrap rustup toolchain installer
|
||||
tags: [packages]
|
||||
block:
|
||||
|
||||
@@ -10,6 +10,7 @@ DEFAULT_SESSION_ENV={{ desktop_default_session_env | default('') }}
|
||||
DBUS_LAUNCH=false
|
||||
XINITRC_LAUNCH=true
|
||||
XORG_SESSIONS_PATH=/etc/emptty/xsessions
|
||||
WAYLAND_SESSIONS_PATH=/etc/emptty/wayland-sessions
|
||||
VERTICAL_SELECTION=true
|
||||
IDENTIFY_ENVS=true
|
||||
SELECT_LAST_USER=global
|
||||
|
||||
@@ -19,3 +19,18 @@
|
||||
- "'i3' in (desktop_sessions_enabled | default([]))"
|
||||
- (host_i3_dotfiles | default([])) | length > 0
|
||||
|
||||
- name: Copy host-specific sway dotfiles
|
||||
tags: [dotfiles, dotfiles:desktop, dotfiles:host, sway]
|
||||
ansible.builtin.copy:
|
||||
src: "{{ playbook_dir }}/../dotfiles/{{ hostname }}/{{ item.src }}"
|
||||
dest: "{{ user_home }}/{{ item.dest }}"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "{{ item.mode }}"
|
||||
loop: "{{ host_sway_dotfiles | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
when:
|
||||
- "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
- (host_sway_dotfiles | default([])) | length > 0
|
||||
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
- "{{ user_home }}/.config/dunst"
|
||||
- "{{ user_home }}/.config/i3"
|
||||
- "{{ user_home }}/.config/i3blocks"
|
||||
- "{{ user_home }}/.config/picom"
|
||||
- "{{ user_home }}/.config/polybar"
|
||||
- "{{ user_home }}/.config/rofi"
|
||||
when: "'i3' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
[preferred]
|
||||
default=gtk
|
||||
org.freedesktop.impl.portal.Screenshot=wlr
|
||||
org.freedesktop.impl.portal.ScreenCast=wlr
|
||||
5
ansible/roles/profile_desktop_sway/files/sway.desktop
Normal file
5
ansible/roles/profile_desktop_sway/files/sway.desktop
Normal file
@@ -0,0 +1,5 @@
|
||||
[Desktop Entry]
|
||||
Name=Sway
|
||||
Comment=SwayFX (Wayland)
|
||||
Exec=/usr/local/bin/start-sway
|
||||
Type=Application
|
||||
71
ansible/roles/profile_desktop_sway/tasks/main.yml
Normal file
71
ansible/roles/profile_desktop_sway/tasks/main.yml
Normal file
@@ -0,0 +1,71 @@
|
||||
---
|
||||
- name: Ensure sway config directories exist
|
||||
tags: [dotfiles, dotfiles:desktop, sway]
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "0755"
|
||||
loop:
|
||||
- "{{ user_home }}/.config/alacritty"
|
||||
- "{{ user_home }}/.config/dunst"
|
||||
- "{{ user_home }}/.config/rofi"
|
||||
- "{{ user_home }}/.config/sway"
|
||||
- "{{ user_home }}/.config/sway/scripts"
|
||||
- "{{ user_home }}/.config/sway/wallpapers"
|
||||
- "{{ user_home }}/.config/waybar"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Install allowed emptty Wayland sessions
|
||||
tags: [packages, services, emptty, sway]
|
||||
ansible.builtin.copy:
|
||||
src: sway.desktop
|
||||
dest: /etc/emptty/wayland-sessions/sway.desktop
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Install Sway session launcher in /usr/local/bin
|
||||
tags: [packages, services, sway]
|
||||
ansible.builtin.copy:
|
||||
src: "{{ playbook_dir }}/../dotfiles/desktop/.local/bin/start-sway"
|
||||
dest: /usr/local/bin/start-sway
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Ensure /etc/xdg/xdg-desktop-portal exists
|
||||
tags: [packages, services, sway, portal]
|
||||
ansible.builtin.file:
|
||||
path: /etc/xdg/xdg-desktop-portal
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0755"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Configure xdg-desktop-portal backend preferences for sway
|
||||
tags: [packages, services, sway, portal]
|
||||
ansible.builtin.copy:
|
||||
src: sway-portals.conf
|
||||
dest: /etc/xdg/xdg-desktop-portal/sway-portals.conf
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Copy sway desktop dotfiles
|
||||
tags: [dotfiles, dotfiles:desktop, sway]
|
||||
ansible.builtin.copy:
|
||||
src: "{{ playbook_dir }}/../dotfiles/desktop/{{ item.src }}"
|
||||
dest: "{{ user_home }}/{{ item.dest }}"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "{{ item.mode }}"
|
||||
loop: "{{ desktop_sway_dotfiles | default([]) }}"
|
||||
loop_control:
|
||||
label: "{{ item.dest }}"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
@@ -25,6 +25,7 @@
|
||||
- services_runit
|
||||
- profile_desktop_common
|
||||
- profile_desktop_i3
|
||||
- profile_desktop_sway
|
||||
- profile_desktop_host
|
||||
|
||||
- hosts: workstation_dev_ubuntu
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[window]
|
||||
padding = { x = 8, y = 8 }
|
||||
opacity = 1.0
|
||||
opacity = 0.90
|
||||
|
||||
[font]
|
||||
normal = { family = "Hack Nerd Font", style = "Regular" }
|
||||
|
||||
@@ -4,11 +4,11 @@ follow = mouse
|
||||
gap_size = 10
|
||||
|
||||
width = 360
|
||||
height = 120
|
||||
height = (0, 120)
|
||||
origin = top-right
|
||||
offset = 20x40
|
||||
offset = (20, 40)
|
||||
|
||||
font = Liberation Sans 10
|
||||
font = LiterationMono Nerd Font 10
|
||||
line_height = 2
|
||||
|
||||
padding = 12
|
||||
@@ -19,7 +19,7 @@ separator_height = 2
|
||||
frame_width = 2
|
||||
corner_radius = 8
|
||||
|
||||
transparency = 0
|
||||
transparency = 15
|
||||
|
||||
background = "#1f1f28"
|
||||
foreground = "#eeeeee"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
set $mod Mod4
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
|
||||
font pango:Liberation Mono 10
|
||||
font pango:LiterationMono Nerd Font 10
|
||||
|
||||
# Start XDG autostart entries (.desktop), useful on Void for pipewire/wireplumber/etc.
|
||||
exec --no-startup-id dex --autostart --environment i3
|
||||
@@ -18,6 +18,12 @@ exec --no-startup-id pipewire
|
||||
exec --no-startup-id pipewire-pulse
|
||||
exec --no-startup-id wireplumber
|
||||
|
||||
# Compositor
|
||||
exec_always --no-startup-id picom -b
|
||||
|
||||
# Status bar
|
||||
exec_always --no-startup-id ~/.config/polybar/launch.sh
|
||||
|
||||
# Monitor configuration
|
||||
exec --no-startup-id autorandr --persistent --change
|
||||
|
||||
@@ -46,6 +52,12 @@ new_window pixel 2
|
||||
new_float pixel 2
|
||||
hide_edge_borders none
|
||||
|
||||
# Gaps (i3 >= 4.22)
|
||||
gaps inner 10
|
||||
gaps outer 4
|
||||
smart_gaps on
|
||||
smart_borders on
|
||||
|
||||
# vim-like directions
|
||||
set $left h
|
||||
set $down j
|
||||
@@ -150,6 +162,17 @@ set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
workspace $ws1 output primary
|
||||
workspace $ws2 output primary
|
||||
workspace $ws3 output primary
|
||||
workspace $ws4 output primary
|
||||
workspace $ws5 output primary
|
||||
workspace $ws6 output primary
|
||||
workspace $ws7 output primary
|
||||
workspace $ws8 output primary
|
||||
workspace $ws9 output primary
|
||||
workspace $ws10 output primary
|
||||
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
@@ -199,24 +222,24 @@ mode "resize" {
|
||||
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# i3bar + i3status
|
||||
bar {
|
||||
status_command i3blocks
|
||||
position bottom
|
||||
tray_output primary
|
||||
font pango:Liberation Mono 10
|
||||
|
||||
colors {
|
||||
background #1f1f28
|
||||
statusline #d0d0d0
|
||||
separator #3a3a46
|
||||
|
||||
focused_workspace #4a90d9 #4a90d9 #ffffff
|
||||
active_workspace #3a3a46 #2b2b36 #d0d0d0
|
||||
inactive_workspace #1f1f28 #1f1f28 #9a9a9a
|
||||
urgent_workspace #c7162b #c7162b #ffffff
|
||||
}
|
||||
}
|
||||
# i3bar + i3status (disabilitato: ora gestito da polybar)
|
||||
# bar {
|
||||
# status_command i3blocks
|
||||
# position bottom
|
||||
# tray_output primary
|
||||
# font pango:Liberation Mono 10
|
||||
#
|
||||
# colors {
|
||||
# background #1f1f28
|
||||
# statusline #d0d0d0
|
||||
# separator #3a3a46
|
||||
#
|
||||
# focused_workspace #4a90d9 #4a90d9 #ffffff
|
||||
# active_workspace #3a3a46 #2b2b36 #d0d0d0
|
||||
# inactive_workspace #1f1f28 #1f1f28 #9a9a9a
|
||||
# urgent_workspace #c7162b #c7162b #ffffff
|
||||
# }
|
||||
# }
|
||||
|
||||
client.focused #4a90d9 #4a90d9 #ffffff #4a90d9 #4a90d9
|
||||
client.focused_inactive #3a3a46 #2b2b36 #eeeeee #3a3a46 #3a3a46
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
{
|
||||
"mError": "#d95757",
|
||||
"mHover": "#39bae6",
|
||||
"mOnError": "#0b0e14",
|
||||
"mOnHover": "#0b0e14",
|
||||
"mOnPrimary": "#0b0e14",
|
||||
"mOnSecondary": "#0b0e14",
|
||||
"mOnSurface": "#d1d1c7",
|
||||
"mOnSurfaceVariant": "#8e959e",
|
||||
"mOnTertiary": "#0b0e14",
|
||||
"mOutline": "#565b66",
|
||||
"mPrimary": "#e6b450",
|
||||
"mSecondary": "#aad94c",
|
||||
"mShadow": "#000000",
|
||||
"mSurface": "#0b0e14",
|
||||
"mSurfaceVariant": "#1e222a",
|
||||
"mTertiary": "#39bae6"
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
{
|
||||
"dark": {
|
||||
"mPrimary": "#b58fff",
|
||||
"mOnPrimary": "#000000",
|
||||
"mSecondary": "#c79aff",
|
||||
"mOnSecondary": "#000000",
|
||||
"mTertiary": "#d8b4ff",
|
||||
"mOnTertiary": "#000000",
|
||||
"mError": "#ff6f9b",
|
||||
"mOnError": "#000000",
|
||||
"mSurface": "#000000",
|
||||
"mOnSurface": "#e8d8ff",
|
||||
"mSurfaceVariant": "#110d1a",
|
||||
"mOnSurfaceVariant": "#b58fff",
|
||||
"mOutline": "#4c3a70",
|
||||
"mShadow": "#000000",
|
||||
"terminal": {
|
||||
"foreground": "#e8d8ff",
|
||||
"background": "#000000",
|
||||
"selectionFg": "#e8d8ff",
|
||||
"selectionBg": "#4c3a70",
|
||||
"cursorText": "#000000",
|
||||
"cursor": "#e8d8ff",
|
||||
"normal": {
|
||||
"black": "#000000",
|
||||
"red": "#ff6f9b",
|
||||
"green": "#a8e6cf",
|
||||
"yellow": "#d8b4ff",
|
||||
"blue": "#b58fff",
|
||||
"magenta": "#c79aff",
|
||||
"cyan": "#e0c1ff",
|
||||
"white": "#e8d8ff"
|
||||
},
|
||||
"bright": {
|
||||
"black": "#4c3a70",
|
||||
"red": "#ff8cb3",
|
||||
"green": "#b8f0d8",
|
||||
"yellow": "#e6d1ff",
|
||||
"blue": "#c9a8ff",
|
||||
"magenta": "#d4b8ff",
|
||||
"cyan": "#f0e0ff",
|
||||
"white": "#f5f0ff"
|
||||
}
|
||||
}
|
||||
},
|
||||
"light": {
|
||||
"mPrimary": "#8a56d4",
|
||||
"mOnPrimary": "#ffffff",
|
||||
"mSecondary": "#a074ff",
|
||||
"mOnSecondary": "#ffffff",
|
||||
"mTertiary": "#c79aff",
|
||||
"mOnTertiary": "#ffffff",
|
||||
"mError": "#ff6f9b",
|
||||
"mOnError": "#ffffff",
|
||||
"mSurface": "#fbf8ff",
|
||||
"mOnSurface": "#1a1428",
|
||||
"mSurfaceVariant": "#e8e0f8",
|
||||
"mOnSurfaceVariant": "#8a56d4",
|
||||
"mOutline": "#9b85c2",
|
||||
"mShadow": "#e2d8f5",
|
||||
"terminal": {
|
||||
"foreground": "#1a1428",
|
||||
"background": "#fbf8ff",
|
||||
"selectionFg": "#1a1428",
|
||||
"selectionBg": "#e8e0f8",
|
||||
"cursorText": "#fbf8ff",
|
||||
"cursor": "#1a1428",
|
||||
"normal": {
|
||||
"black": "#6b5b95",
|
||||
"red": "#ff6f9b",
|
||||
"green": "#6fb58f",
|
||||
"yellow": "#c79aff",
|
||||
"blue": "#8a56d4",
|
||||
"magenta": "#a074ff",
|
||||
"cyan": "#b89fff",
|
||||
"white": "#1a1428"
|
||||
},
|
||||
"bright": {
|
||||
"black": "#9b85c2",
|
||||
"red": "#ff8cb3",
|
||||
"green": "#85d7a8",
|
||||
"yellow": "#e0c1ff",
|
||||
"blue": "#b58fff",
|
||||
"magenta": "#c79aff",
|
||||
"cyan": "#d8b4ff",
|
||||
"white": "#120f1f"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,90 +0,0 @@
|
||||
{
|
||||
"dark": {
|
||||
"mPrimary": "#ff8cb3",
|
||||
"mOnPrimary": "#000000",
|
||||
"mSecondary": "#ffb3cc",
|
||||
"mOnSecondary": "#000000",
|
||||
"mTertiary": "#ffcce0",
|
||||
"mOnTertiary": "#000000",
|
||||
"mError": "#ff99b8",
|
||||
"mOnError": "#000000",
|
||||
"mSurface": "#000000",
|
||||
"mOnSurface": "#ffe0eb",
|
||||
"mSurfaceVariant": "#1a0f16",
|
||||
"mOnSurfaceVariant": "#ff8cb3",
|
||||
"mOutline": "#5a3f4d",
|
||||
"mShadow": "#000000",
|
||||
"terminal": {
|
||||
"foreground": "#ffe0eb",
|
||||
"background": "#000000",
|
||||
"selectionFg": "#ffe0eb",
|
||||
"selectionBg": "#5a3f4d",
|
||||
"cursorText": "#000000",
|
||||
"cursor": "#ffe0eb",
|
||||
"normal": {
|
||||
"black": "#000000",
|
||||
"red": "#ff99b8",
|
||||
"green": "#ffccdd",
|
||||
"yellow": "#ffcce0",
|
||||
"blue": "#ff8cb3",
|
||||
"magenta": "#ffb3cc",
|
||||
"cyan": "#ffd6e8",
|
||||
"white": "#ffe0eb"
|
||||
},
|
||||
"bright": {
|
||||
"black": "#5a3f4d",
|
||||
"red": "#ffb8cc",
|
||||
"green": "#ffd6e8",
|
||||
"yellow": "#ffe0f0",
|
||||
"blue": "#ffa8c2",
|
||||
"magenta": "#ffccdd",
|
||||
"cyan": "#ffe8f2",
|
||||
"white": "#fff0f5"
|
||||
}
|
||||
}
|
||||
},
|
||||
"light": {
|
||||
"mPrimary": "#e57399",
|
||||
"mOnPrimary": "#ffffff",
|
||||
"mSecondary": "#ff99b8",
|
||||
"mOnSecondary": "#ffffff",
|
||||
"mTertiary": "#ffb3cc",
|
||||
"mOnTertiary": "#ffffff",
|
||||
"mError": "#ff99b8",
|
||||
"mOnError": "#ffffff",
|
||||
"mSurface": "#fff5fa",
|
||||
"mOnSurface": "#2c1822",
|
||||
"mSurfaceVariant": "#f5d6e3",
|
||||
"mOnSurfaceVariant": "#e57399",
|
||||
"mOutline": "#b38099",
|
||||
"mShadow": "#f0d0e0",
|
||||
"terminal": {
|
||||
"foreground": "#2c1822",
|
||||
"background": "#fff5fa",
|
||||
"selectionFg": "#2c1822",
|
||||
"selectionBg": "#f5d6e3",
|
||||
"cursorText": "#fff5fa",
|
||||
"cursor": "#2c1822",
|
||||
"normal": {
|
||||
"black": "#8c6075",
|
||||
"red": "#ff99b8",
|
||||
"green": "#e599b3",
|
||||
"yellow": "#ffb3cc",
|
||||
"blue": "#e57399",
|
||||
"magenta": "#ff99b8",
|
||||
"cyan": "#ffb8d1",
|
||||
"white": "#2c1822"
|
||||
},
|
||||
"bright": {
|
||||
"black": "#b38099",
|
||||
"red": "#ffb8cc",
|
||||
"green": "#ffccdd",
|
||||
"yellow": "#ffcce0",
|
||||
"blue": "#ff8cb3",
|
||||
"magenta": "#ffb3cc",
|
||||
"cyan": "#ffd6e8",
|
||||
"white": "#1a1015"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,94 +0,0 @@
|
||||
{
|
||||
"dark": {
|
||||
"mPrimary": "#FFC799",
|
||||
"mOnPrimary": "#000000",
|
||||
"mSecondary": "#99FFE4",
|
||||
"mOnSecondary": "#000000",
|
||||
"mTertiary": "#FBADFF",
|
||||
"mOnTertiary": "#000000",
|
||||
"mError": "#FF8080",
|
||||
"mOnError": "#000000",
|
||||
"mSurface": "#0C0C0C",
|
||||
"mOnSurface": "#FFFFFF",
|
||||
"mSurfaceVariant": "#1C1C1C",
|
||||
"mOnSurfaceVariant": "#A0A0A0",
|
||||
"mOutline": "#505050",
|
||||
"mShadow": "#000000",
|
||||
"mHover": "#282828",
|
||||
"mOnHover": "#FFFFFF",
|
||||
"terminal": {
|
||||
"foreground": "#FFFFFF",
|
||||
"background": "#0C0C0C",
|
||||
"normal": {
|
||||
"black": "#0C0C0C",
|
||||
"red": "#FF8080",
|
||||
"green": "#99FFE4",
|
||||
"yellow": "#FFC799",
|
||||
"blue": "#80B3FF",
|
||||
"magenta": "#FBADFF",
|
||||
"cyan": "#99FFE4",
|
||||
"white": "#A0A0A0"
|
||||
},
|
||||
"bright": {
|
||||
"black": "#505050",
|
||||
"red": "#FF8080",
|
||||
"green": "#99FFE4",
|
||||
"yellow": "#FFC799",
|
||||
"blue": "#80B3FF",
|
||||
"magenta": "#FBADFF",
|
||||
"cyan": "#99FFE4",
|
||||
"white": "#FFFFFF"
|
||||
},
|
||||
"cursor": "#FFFFFF",
|
||||
"cursorText": "#000000",
|
||||
"selectionFg": "#000000",
|
||||
"selectionBg": "#FFC799"
|
||||
}
|
||||
},
|
||||
"light": {
|
||||
"mPrimary": "#FFB170",
|
||||
"mOnPrimary": "#0C0C0C",
|
||||
"mSecondary": "#00CC99",
|
||||
"mOnSecondary": "#0C0C0C",
|
||||
"mTertiary": "#FBADFF",
|
||||
"mOnTertiary": "#0C0C0C",
|
||||
"mError": "#FF8080",
|
||||
"mOnError": "#0C0C0C",
|
||||
"mSurface": "#F2F2F2",
|
||||
"mOnSurface": "#0C0C0C",
|
||||
"mSurfaceVariant": "#E5E5E5",
|
||||
"mOnSurfaceVariant": "#282828",
|
||||
"mOutline": "#505050",
|
||||
"mShadow": "#D9D9D9",
|
||||
"mHover": "#E0E0E0",
|
||||
"mOnHover": "#0C0C0C",
|
||||
"terminal": {
|
||||
"foreground": "#0C0C0C",
|
||||
"background": "#F2F2F2",
|
||||
"normal": {
|
||||
"black": "#F2F2F2",
|
||||
"red": "#FF8080",
|
||||
"green": "#00CC99",
|
||||
"yellow": "#FFC799",
|
||||
"blue": "#004A77",
|
||||
"magenta": "#FBADFF",
|
||||
"cyan": "#006B57",
|
||||
"white": "#505050"
|
||||
},
|
||||
"bright": {
|
||||
"black": "#A0A0A0",
|
||||
"red": "#FF8080",
|
||||
"green": "#00CC99",
|
||||
"yellow": "#FFC799",
|
||||
"blue": "#80B3FF",
|
||||
"magenta": "#FBADFF",
|
||||
"cyan": "#99FFE4",
|
||||
"white": "#0C0C0C"
|
||||
},
|
||||
"cursor": "#0C0C0C",
|
||||
"cursorText": "#F2F2F2",
|
||||
"selectionFg": "#F2F2F2",
|
||||
"selectionBg": "#FFC799"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"enabled": true,
|
||||
"name": "Noctalia Plugins",
|
||||
"url": "https://github.com/noctalia-dev/noctalia-plugins"
|
||||
}
|
||||
],
|
||||
"states": {
|
||||
"clipper": {
|
||||
"enabled": true,
|
||||
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
|
||||
},
|
||||
"polkit-agent": {
|
||||
"enabled": true,
|
||||
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
|
||||
},
|
||||
"screenshot": {
|
||||
"enabled": true,
|
||||
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
|
||||
},
|
||||
"usb-drive-manager": {
|
||||
"enabled": true,
|
||||
"sourceUrl": "https://github.com/noctalia-dev/noctalia-plugins"
|
||||
}
|
||||
},
|
||||
"version": 2
|
||||
}
|
||||
@@ -1,84 +0,0 @@
|
||||
{
|
||||
"message": "Clipboard Panel",
|
||||
"backgroundColor": "#fabd2f",
|
||||
"cardColors": {
|
||||
"Text": {
|
||||
"bg": "mOutline",
|
||||
"separator": "mSurface",
|
||||
"fg": "mOnSurface"
|
||||
},
|
||||
"Image": {
|
||||
"bg": "mTertiary",
|
||||
"separator": "mSurface",
|
||||
"fg": "mOnTertiary"
|
||||
},
|
||||
"Link": {
|
||||
"bg": "mPrimary",
|
||||
"separator": "mSurface",
|
||||
"fg": "mOnPrimary"
|
||||
},
|
||||
"Code": {
|
||||
"bg": "mSecondary",
|
||||
"separator": "mSurface",
|
||||
"fg": "mOnSecondary"
|
||||
},
|
||||
"Color": {
|
||||
"bg": "mSecondary",
|
||||
"separator": "mSurface",
|
||||
"fg": "mOnSecondary"
|
||||
},
|
||||
"Emoji": {
|
||||
"bg": "mHover",
|
||||
"separator": "mSurface",
|
||||
"fg": "mOnHover"
|
||||
},
|
||||
"File": {
|
||||
"bg": "mError",
|
||||
"separator": "mSurface",
|
||||
"fg": "mOnError"
|
||||
}
|
||||
},
|
||||
"customColors": {
|
||||
"Text": {
|
||||
"bg": "#555555",
|
||||
"separator": "#000000",
|
||||
"fg": "#e9e4f0"
|
||||
},
|
||||
"Image": {
|
||||
"bg": "#e0b7c9",
|
||||
"separator": "#000000",
|
||||
"fg": "#20161f"
|
||||
},
|
||||
"Link": {
|
||||
"bg": "#c7a1d8",
|
||||
"separator": "#000000",
|
||||
"fg": "#1a151f"
|
||||
},
|
||||
"Code": {
|
||||
"bg": "#a984c4",
|
||||
"separator": "#000000",
|
||||
"fg": "#f3edf7"
|
||||
},
|
||||
"Color": {
|
||||
"bg": "#a984c4",
|
||||
"separator": "#000000",
|
||||
"fg": "#f3edf7"
|
||||
},
|
||||
"Emoji": {
|
||||
"bg": "#e0b7c9",
|
||||
"separator": "#000000",
|
||||
"fg": "#20161f"
|
||||
},
|
||||
"File": {
|
||||
"bg": "#e9899d",
|
||||
"separator": "#000000",
|
||||
"fg": "#1e1418"
|
||||
}
|
||||
},
|
||||
"enableTodoIntegration": true,
|
||||
"autoOpenPinnedPanel": false,
|
||||
"pincardsEnabled": true,
|
||||
"notecardsEnabled": true,
|
||||
"showCloseButton": true,
|
||||
"closeOnBackgroundClick": true
|
||||
}
|
||||
57
dotfiles/desktop/.config/picom/picom.conf
Normal file
57
dotfiles/desktop/.config/picom/picom.conf
Normal file
@@ -0,0 +1,57 @@
|
||||
backend = "glx";
|
||||
vsync = true;
|
||||
use-damage = true;
|
||||
detect-rounded-corners = true;
|
||||
detect-client-opacity = true;
|
||||
detect-transient = true;
|
||||
|
||||
corner-radius = 10;
|
||||
rounded-corners-exclude = [
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'",
|
||||
"class_g = 'i3-frame'"
|
||||
];
|
||||
|
||||
shadow = true;
|
||||
shadow-radius = 18;
|
||||
shadow-opacity = 0.55;
|
||||
shadow-offset-x = -10;
|
||||
shadow-offset-y = -10;
|
||||
shadow-exclude = [
|
||||
"name = 'Notification'",
|
||||
"class_g = 'Conky'",
|
||||
"class_g ?= 'Notify-osd'",
|
||||
"class_g = 'Cairo-clock'",
|
||||
"_GTK_FRAME_EXTENTS@:c",
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'"
|
||||
];
|
||||
|
||||
fading = true;
|
||||
fade-in-step = 0.05;
|
||||
fade-out-step = 0.05;
|
||||
fade-delta = 6;
|
||||
|
||||
blur-method = "dual_kawase";
|
||||
blur-strength = 5;
|
||||
blur-background = true;
|
||||
blur-background-frame = true;
|
||||
blur-background-fixed = false;
|
||||
blur-background-exclude = [
|
||||
"window_type = 'dock'",
|
||||
"window_type = 'desktop'",
|
||||
"class_g = 'i3-frame'",
|
||||
"class_g = 'Dunst'",
|
||||
"_GTK_FRAME_EXTENTS@:c"
|
||||
];
|
||||
|
||||
opacity-rule = [];
|
||||
|
||||
wintypes:
|
||||
{
|
||||
tooltip = { fade = true; shadow = true; opacity = 0.95; focus = true; };
|
||||
dock = { shadow = false; };
|
||||
dnd = { shadow = false; };
|
||||
popup_menu = { opacity = 0.95; };
|
||||
dropdown_menu = { opacity = 0.95; };
|
||||
};
|
||||
208
dotfiles/desktop/.config/polybar/config.ini
Normal file
208
dotfiles/desktop/.config/polybar/config.ini
Normal file
@@ -0,0 +1,208 @@
|
||||
[colors]
|
||||
background = #1f1f28
|
||||
background-alt = #2b2b36
|
||||
foreground = #d0d0d0
|
||||
foreground-alt = #9a9a9a
|
||||
primary = #4a90d9
|
||||
secondary = #7dcfff
|
||||
warm = #e0af68
|
||||
success = #9ec07c
|
||||
info = #bb9af7
|
||||
alert = #c7162b
|
||||
disabled = #3a3a46
|
||||
|
||||
[bar/main]
|
||||
monitor = ${env:MONITOR:}
|
||||
bottom = false
|
||||
width = 100%
|
||||
height = 24pt
|
||||
radius = 0
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
line-size = 2pt
|
||||
border-size = 0
|
||||
padding-left = 1
|
||||
padding-right = 1
|
||||
module-margin = 1
|
||||
|
||||
font-0 = LiterationMono Nerd Font:size=10;2
|
||||
font-1 = Symbols Nerd Font Mono:size=12;2
|
||||
|
||||
modules-left = i3
|
||||
modules-center = date
|
||||
modules-right = cpu memory disk temperature backlight wifi battery
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
|
||||
cursor-click = pointer
|
||||
|
||||
wm-restack = i3
|
||||
override-redirect = false
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
pin-workspaces = false
|
||||
show-urgent = true
|
||||
strip-wsnumbers = true
|
||||
enable-scroll = false
|
||||
index-sort = true
|
||||
|
||||
ws-icon-0 = 1;I
|
||||
ws-icon-1 = 2;II
|
||||
ws-icon-2 = 3;III
|
||||
ws-icon-3 = 4;IV
|
||||
ws-icon-4 = 5;V
|
||||
ws-icon-5 = 6;VI
|
||||
ws-icon-6 = 7;VII
|
||||
ws-icon-7 = 8;VIII
|
||||
ws-icon-8 = 9;IX
|
||||
ws-icon-9 = 10;X
|
||||
ws-icon-default =
|
||||
|
||||
label-focused = %icon%
|
||||
label-focused-foreground = #ffffff
|
||||
label-focused-background = ${colors.primary}
|
||||
label-focused-padding = 1
|
||||
|
||||
label-unfocused = %icon%
|
||||
label-unfocused-foreground = ${colors.foreground-alt}
|
||||
label-unfocused-padding = 1
|
||||
|
||||
label-visible = %icon%
|
||||
label-visible-foreground = ${colors.foreground}
|
||||
label-visible-background = ${colors.background-alt}
|
||||
label-visible-padding = 1
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-foreground = #ffffff
|
||||
label-urgent-background = ${colors.alert}
|
||||
label-urgent-padding = 1
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
interval = 60
|
||||
date = %Y-%m-%d
|
||||
time = %H:%M
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground-alt}
|
||||
label = %date% %time%
|
||||
label-foreground = ${colors.foreground}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
interval = 10
|
||||
format = <label>
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.secondary}
|
||||
label = %gb_used% / %gb_total%
|
||||
label-foreground = ${colors.secondary}
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
interval = 10
|
||||
thermal-zone = 0
|
||||
warn-temperature = 80
|
||||
format = <label>
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.warm}
|
||||
format-warn = <label-warn>
|
||||
format-warn-prefix = " "
|
||||
format-warn-prefix-foreground = ${colors.alert}
|
||||
label = %temperature-c%
|
||||
label-foreground = ${colors.warm}
|
||||
label-warn = %temperature-c%
|
||||
label-warn-foreground = ${colors.alert}
|
||||
|
||||
[module/backlight]
|
||||
type = internal/backlight
|
||||
card = intel_backlight
|
||||
use-actual-brightness = true
|
||||
enable-scroll = true
|
||||
format = <label>
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.foreground}
|
||||
label = %percentage%%
|
||||
label-foreground = ${colors.foreground}
|
||||
|
||||
[module/wifi]
|
||||
type = internal/network
|
||||
interface-type = wireless
|
||||
interval = 5
|
||||
format-connected = <label-connected>
|
||||
format-connected-prefix = " "
|
||||
format-connected-prefix-foreground = ${colors.primary}
|
||||
format-disconnected = <label-disconnected>
|
||||
format-disconnected-prefix = " "
|
||||
format-disconnected-prefix-foreground = ${colors.disabled}
|
||||
label-connected = %essid% %signal%%
|
||||
label-connected-foreground = ${colors.primary}
|
||||
label-disconnected = offline
|
||||
label-disconnected-foreground = ${colors.disabled}
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = AC
|
||||
full-at = 98
|
||||
low-at = 15
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
format-full = <label-full>
|
||||
format-low = <label-low>
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.success}
|
||||
|
||||
label-charging = %percentage%%
|
||||
label-charging-foreground = ${colors.success}
|
||||
label-discharging = %percentage%%
|
||||
label-discharging-foreground = ${colors.foreground}
|
||||
label-full = full
|
||||
label-full-foreground = ${colors.success}
|
||||
label-low = %percentage%%
|
||||
label-low-foreground = ${colors.alert}
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.foreground}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
animation-charging-foreground = ${colors.success}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 5
|
||||
format = <label>
|
||||
format-prefix = " "
|
||||
format-prefix-foreground = ${colors.info}
|
||||
label = %percentage%%
|
||||
label-foreground = ${colors.info}
|
||||
|
||||
[module/disk]
|
||||
type = internal/fs
|
||||
mount-0 = /
|
||||
interval = 60
|
||||
format-mounted = <label-mounted>
|
||||
format-mounted-prefix = " "
|
||||
format-mounted-prefix-foreground = ${colors.success}
|
||||
label-mounted = %used% / %total%
|
||||
label-mounted-foreground = ${colors.success}
|
||||
format-unmounted = <label-unmounted>
|
||||
format-unmounted-prefix = " "
|
||||
format-unmounted-prefix-foreground = ${colors.disabled}
|
||||
label-unmounted = %mountpoint% n/a
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
pseudo-transparency = false
|
||||
20
dotfiles/desktop/.config/polybar/launch.sh
Normal file
20
dotfiles/desktop/.config/polybar/launch.sh
Normal file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# Restart polybar on each connected monitor.
|
||||
|
||||
polybar-msg cmd quit >/dev/null 2>&1 || true
|
||||
|
||||
while pgrep -u "$UID" -x polybar >/dev/null; do
|
||||
sleep 0.1
|
||||
done
|
||||
|
||||
if command -v xrandr >/dev/null 2>&1; then
|
||||
monitors=$(xrandr --query | awk '/ connected/ {print $1}')
|
||||
fi
|
||||
|
||||
if [ -n "${monitors:-}" ]; then
|
||||
for m in $monitors; do
|
||||
MONITOR="$m" polybar main >/dev/null 2>&1 &
|
||||
done
|
||||
else
|
||||
polybar main >/dev/null 2>&1 &
|
||||
fi
|
||||
@@ -2,7 +2,7 @@ configuration {
|
||||
modi: "drun,run,window";
|
||||
show-icons: true;
|
||||
icon-theme: "Yaru";
|
||||
font: "Liberation Sans 11";
|
||||
font: "LiterationMono Nerd Font 11";
|
||||
}
|
||||
|
||||
* {
|
||||
|
||||
259
dotfiles/desktop/.config/sway/config
Normal file
259
dotfiles/desktop/.config/sway/config
Normal file
@@ -0,0 +1,259 @@
|
||||
# Sway / SwayFX config
|
||||
|
||||
set $mod Mod4
|
||||
|
||||
font pango:LiterationMono Nerd Font 10
|
||||
|
||||
# vim-like directions
|
||||
set $left h
|
||||
set $down j
|
||||
set $up k
|
||||
set $right l
|
||||
|
||||
# Default terminal (hosts can override via host.conf — e.g. nymph wraps it in prime-run)
|
||||
set $terminal alacritty
|
||||
|
||||
# Workspaces (waybar formatta i numeri in romani via format-icons)
|
||||
set $ws1 "1"
|
||||
set $ws2 "2"
|
||||
set $ws3 "3"
|
||||
set $ws4 "4"
|
||||
set $ws5 "5"
|
||||
set $ws6 "6"
|
||||
set $ws7 "7"
|
||||
set $ws8 "8"
|
||||
set $ws9 "9"
|
||||
set $ws10 "10"
|
||||
|
||||
# Input devices
|
||||
input * {
|
||||
xkb_layout us
|
||||
xkb_variant intl
|
||||
}
|
||||
|
||||
# Cursor
|
||||
seat * xcursor_theme Yaru 24
|
||||
|
||||
# Outputs
|
||||
output * bg ~/.config/sway/wallpapers/wallpaper-161664.jpg center
|
||||
|
||||
# SwayFX effects
|
||||
corner_radius 8
|
||||
blur enable
|
||||
blur_passes 2
|
||||
blur_radius 5
|
||||
shadows enable
|
||||
default_dim_inactive 0.1
|
||||
|
||||
# Allow X11 applications
|
||||
xwayland enable
|
||||
|
||||
# General behavior
|
||||
focus_follows_mouse no
|
||||
mouse_warping none
|
||||
floating_modifier $mod
|
||||
tiling_drag enable
|
||||
|
||||
# Borders
|
||||
default_border pixel 2
|
||||
default_floating_border pixel 2
|
||||
hide_edge_borders none
|
||||
|
||||
# Gaps
|
||||
gaps inner 10
|
||||
gaps outer 4
|
||||
smart_gaps on
|
||||
smart_borders on
|
||||
|
||||
# Per-host overrides (terminal wrapper, gaps tweaks, workspace→output bindings, …)
|
||||
include ~/.config/sway/host.conf
|
||||
|
||||
# Window rules
|
||||
for_window [app_id="(?i)polkit"] floating enable
|
||||
for_window [class="(?i)polkit"] floating enable
|
||||
for_window [title="^Authentication Required"] floating enable
|
||||
|
||||
# Autostart — XDG and session services
|
||||
exec dex --autostart --environment sway
|
||||
exec gnome-keyring-daemon --start --components=secrets
|
||||
exec_always ~/.config/sway/scripts/setup-gtk-theme.sh
|
||||
exec /usr/libexec/xdg-desktop-portal
|
||||
|
||||
# Audio
|
||||
exec pipewire
|
||||
exec pipewire-pulse
|
||||
exec wireplumber
|
||||
|
||||
# Status bar
|
||||
exec waybar
|
||||
|
||||
# OSD daemon (volume/brightness/caps-lock)
|
||||
exec swayosd-server
|
||||
|
||||
# Tray services
|
||||
exec dunst
|
||||
exec /usr/libexec/xfce-polkit
|
||||
exec nm-applet
|
||||
exec blueman-applet
|
||||
exec udiskie
|
||||
exec flameshot
|
||||
|
||||
# Clipboard manager (Wayland-native)
|
||||
exec wl-paste --type text --watch cliphist store
|
||||
exec wl-paste --type image --watch cliphist store
|
||||
|
||||
# Idle / lock policy
|
||||
# 5 min idle → lock
|
||||
# 10 min idle → screen off (DPMS)
|
||||
# resume → screen on
|
||||
# before sleep → lock
|
||||
exec swayidle -w \
|
||||
timeout 300 '~/.config/sway/scripts/lockscreen' \
|
||||
timeout 600 'swaymsg "output * dpms off"' \
|
||||
resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep '~/.config/sway/scripts/lockscreen'
|
||||
|
||||
# Terminal
|
||||
bindsym $mod+Return exec $terminal
|
||||
|
||||
# Emacs client
|
||||
bindsym $mod+Shift+e exec emacsclient -c -n
|
||||
|
||||
# Launcher
|
||||
bindsym $mod+d exec "rofi -show drun -theme ~/.config/rofi/config.rasi"
|
||||
|
||||
# Clipboard history picker
|
||||
bindsym $mod+c exec "cliphist list | rofi -dmenu -theme ~/.config/rofi/config.rasi | cliphist decode | wl-copy"
|
||||
|
||||
# Audio panel control
|
||||
bindsym $mod+Shift+v exec pavucontrol
|
||||
|
||||
# File manager
|
||||
bindsym $mod+Shift+f exec thunar
|
||||
|
||||
# Manual lock screen
|
||||
bindsym $mod+Shift+x exec ~/.config/sway/scripts/lockscreen
|
||||
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
|
||||
# Screenshot
|
||||
# Print → flameshot GUI (annotations, save + clipboard via portal)
|
||||
# Shift+Print → grim+slurp region → clipboard
|
||||
# Alt+Print → grim focused output → clipboard
|
||||
bindsym Print exec flameshot gui --path "$HOME/Pictures/Screenshots" --clipboard
|
||||
bindsym Shift+Print exec ~/.config/sway/scripts/screenshot region
|
||||
bindsym Alt+Print exec ~/.config/sway/scripts/screenshot output
|
||||
|
||||
# Focus
|
||||
bindsym $mod+$left focus left
|
||||
bindsym $mod+$down focus down
|
||||
bindsym $mod+$up focus up
|
||||
bindsym $mod+$right focus right
|
||||
|
||||
bindsym $mod+Left focus left
|
||||
bindsym $mod+Down focus down
|
||||
bindsym $mod+Up focus up
|
||||
bindsym $mod+Right focus right
|
||||
|
||||
# Move windows
|
||||
bindsym $mod+Shift+$left move left
|
||||
bindsym $mod+Shift+$down move down
|
||||
bindsym $mod+Shift+$up move up
|
||||
bindsym $mod+Shift+$right move right
|
||||
|
||||
bindsym $mod+Shift+Left move left
|
||||
bindsym $mod+Shift+Down move down
|
||||
bindsym $mod+Shift+Up move up
|
||||
bindsym $mod+Shift+Right move right
|
||||
|
||||
# Split
|
||||
bindsym $mod+b split h
|
||||
bindsym $mod+v split v
|
||||
|
||||
# Layouts
|
||||
bindsym $mod+f fullscreen toggle
|
||||
bindsym $mod+s layout stacking
|
||||
bindsym $mod+w layout tabbed
|
||||
bindsym $mod+e layout toggle split
|
||||
|
||||
# Floating / focus mode
|
||||
bindsym $mod+Shift+space floating toggle
|
||||
bindsym $mod+space focus mode_toggle
|
||||
bindsym $mod+a focus parent
|
||||
|
||||
# Scratchpad
|
||||
bindsym $mod+Shift+minus move scratchpad
|
||||
bindsym $mod+minus scratchpad show
|
||||
|
||||
# Volume (via swayosd: aggiorna pactl + mostra OSD)
|
||||
bindsym XF86AudioRaiseVolume exec swayosd-client --output-volume raise
|
||||
bindsym XF86AudioLowerVolume exec swayosd-client --output-volume lower
|
||||
bindsym XF86AudioMute exec swayosd-client --output-volume mute-toggle
|
||||
bindsym XF86AudioMicMute exec swayosd-client --input-volume mute-toggle
|
||||
|
||||
# Brightness (via swayosd: aggiorna brightnessctl + mostra OSD)
|
||||
bindsym XF86MonBrightnessUp exec swayosd-client --brightness raise
|
||||
bindsym XF86MonBrightnessDown exec swayosd-client --brightness lower
|
||||
|
||||
# Media keys
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
# Workspace switch
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
bindsym $mod+3 workspace number $ws3
|
||||
bindsym $mod+4 workspace number $ws4
|
||||
bindsym $mod+5 workspace number $ws5
|
||||
bindsym $mod+6 workspace number $ws6
|
||||
bindsym $mod+7 workspace number $ws7
|
||||
bindsym $mod+8 workspace number $ws8
|
||||
bindsym $mod+9 workspace number $ws9
|
||||
bindsym $mod+0 workspace number $ws10
|
||||
bindsym $mod+comma workspace prev
|
||||
bindsym $mod+period workspace next
|
||||
|
||||
bindsym $mod+Shift+1 move container to workspace number $ws1
|
||||
bindsym $mod+Shift+2 move container to workspace number $ws2
|
||||
bindsym $mod+Shift+3 move container to workspace number $ws3
|
||||
bindsym $mod+Shift+4 move container to workspace number $ws4
|
||||
bindsym $mod+Shift+5 move container to workspace number $ws5
|
||||
bindsym $mod+Shift+6 move container to workspace number $ws6
|
||||
bindsym $mod+Shift+7 move container to workspace number $ws7
|
||||
bindsym $mod+Shift+8 move container to workspace number $ws8
|
||||
bindsym $mod+Shift+9 move container to workspace number $ws9
|
||||
bindsym $mod+Shift+0 move container to workspace number $ws10
|
||||
|
||||
# Reload / exit
|
||||
bindsym $mod+Shift+c reload
|
||||
bindsym $mod+Shift+r reload
|
||||
bindsym $mod+Shift+BackSpace exec swaymsg exit
|
||||
bindsym $mod+Shift+Escape exec ~/.config/sway/scripts/powermenu.sh
|
||||
|
||||
# Resize mode
|
||||
mode "resize" {
|
||||
bindsym $left resize shrink width 10 px or 10 ppt
|
||||
bindsym $down resize grow height 10 px or 10 ppt
|
||||
bindsym $up resize shrink height 10 px or 10 ppt
|
||||
bindsym $right resize grow width 10 px or 10 ppt
|
||||
|
||||
bindsym Left resize shrink width 10 px or 10 ppt
|
||||
bindsym Down resize grow height 10 px or 10 ppt
|
||||
bindsym Up resize shrink height 10 px or 10 ppt
|
||||
bindsym Right resize grow width 10 px or 10 ppt
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
bindsym $mod+r mode "default"
|
||||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Client colors (border, background, text, indicator, child_border)
|
||||
client.focused #4a90d9 #4a90d9 #ffffff #4a90d9 #4a90d9
|
||||
client.focused_inactive #3a3a46 #2b2b36 #eeeeee #3a3a46 #3a3a46
|
||||
client.unfocused #2b2b36 #1f1f28 #bcbcbc #2b2b36 #2b2b36
|
||||
client.urgent #c7162b #c7162b #ffffff #c7162b #c7162b
|
||||
client.placeholder #1f1f28 #1f1f28 #bcbcbc #1f1f28 #1f1f28
|
||||
client.background #1f1f28
|
||||
3
dotfiles/desktop/.config/sway/host.conf
Normal file
3
dotfiles/desktop/.config/sway/host.conf
Normal file
@@ -0,0 +1,3 @@
|
||||
# Per-host sway overrides. Empty by default; hosts that need tuning
|
||||
# ship their own version via host_sway_dotfiles, which overwrites this
|
||||
# placeholder during deploy.
|
||||
17
dotfiles/desktop/.config/sway/scripts/lockscreen
Executable file
17
dotfiles/desktop/.config/sway/scripts/lockscreen
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec swaylock \
|
||||
--image "$HOME/.config/sway/wallpapers/maxresdefault.jpg" \
|
||||
--scaling fill \
|
||||
--indicator-idle-visible \
|
||||
--ring-color 2f4058 \
|
||||
--inside-color 1f1f28 \
|
||||
--line-color 00000000 \
|
||||
--separator-color 3a3a46 \
|
||||
--key-hl-color 6daeea \
|
||||
--bs-hl-color c7162b \
|
||||
--ring-ver-color 4a90d9 \
|
||||
--inside-ver-color 1f1f28 \
|
||||
--ring-wrong-color c7162b \
|
||||
--inside-wrong-color 1f1f28 \
|
||||
--text-color d0d0d0
|
||||
29
dotfiles/desktop/.config/sway/scripts/powermenu.sh
Executable file
29
dotfiles/desktop/.config/sway/scripts/powermenu.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
choice="$(printf "⏻ Shutdown\n Reboot\n Logout\n Lock\n⏾ Suspend" \
|
||||
| rofi -dmenu \
|
||||
-i \
|
||||
-p "Power" \
|
||||
-theme ~/.config/rofi/config.rasi \
|
||||
-theme-str 'window { width: 20%; location: center; anchor: center; } listview { columns: 1; spacing: 6px; }')"
|
||||
|
||||
[ -z "$choice" ] && exit 0
|
||||
|
||||
case "$choice" in
|
||||
*Lock)
|
||||
~/.config/sway/scripts/lockscreen
|
||||
;;
|
||||
*Logout)
|
||||
swaymsg exit
|
||||
;;
|
||||
*Suspend)
|
||||
~/.config/sway/scripts/lockscreen
|
||||
loginctl suspend
|
||||
;;
|
||||
*Reboot)
|
||||
loginctl reboot
|
||||
;;
|
||||
*Shutdown)
|
||||
loginctl poweroff
|
||||
;;
|
||||
esac
|
||||
40
dotfiles/desktop/.config/sway/scripts/screenshot
Executable file
40
dotfiles/desktop/.config/sway/scripts/screenshot
Executable file
@@ -0,0 +1,40 @@
|
||||
#!/bin/sh
|
||||
# Quick screenshot helpers for sway. Captures via grim, saves to disk and
|
||||
# also copies to the Wayland clipboard. Use the flameshot binding for
|
||||
# annotations / fancy capture.
|
||||
#
|
||||
# Usage: screenshot {full|region|output|window}
|
||||
|
||||
set -eu
|
||||
|
||||
mode="${1:-full}"
|
||||
dir="$HOME/Pictures/Screenshots"
|
||||
mkdir -p "$dir"
|
||||
file="$dir/$(date +%Y%m%d_%H%M%S).png"
|
||||
|
||||
case "$mode" in
|
||||
full)
|
||||
grim "$file"
|
||||
;;
|
||||
region)
|
||||
grim -g "$(slurp)" "$file"
|
||||
;;
|
||||
output)
|
||||
out=$(swaymsg -t get_outputs --raw \
|
||||
| jq -r '.[] | select(.focused) | .name')
|
||||
grim -o "$out" "$file"
|
||||
;;
|
||||
window)
|
||||
geom=$(swaymsg -t get_tree \
|
||||
| jq -r '.. | select(.focused? == true)
|
||||
| "\(.rect.x),\(.rect.y) \(.rect.width)x\(.rect.height)"')
|
||||
grim -g "$geom" "$file"
|
||||
;;
|
||||
*)
|
||||
printf 'Usage: %s {full|region|output|window}\n' "$0" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
wl-copy < "$file"
|
||||
notify-send "Screenshot saved" "$file" -i image-x-generic >/dev/null 2>&1 || true
|
||||
53
dotfiles/desktop/.config/sway/scripts/setup-gtk-theme.sh
Executable file
53
dotfiles/desktop/.config/sway/scripts/setup-gtk-theme.sh
Executable file
@@ -0,0 +1,53 @@
|
||||
#!/bin/sh
|
||||
|
||||
THEME="Yaru-blue-dark"
|
||||
ICONS="Yaru-blue-dark"
|
||||
CURSOR="Yaru"
|
||||
|
||||
FONT_UI="Liberation Sans 10"
|
||||
|
||||
mkdir -p "$HOME/.config/gtk-3.0"
|
||||
mkdir -p "$HOME/.config/gtk-4.0"
|
||||
|
||||
cat > "$HOME/.gtkrc-2.0" <<EOF
|
||||
gtk-theme-name="$THEME"
|
||||
gtk-icon-theme-name="$ICONS"
|
||||
gtk-cursor-theme-name="$CURSOR"
|
||||
gtk-font-name="$FONT_UI"
|
||||
gtk-button-images=1
|
||||
gtk-menu-images=1
|
||||
EOF
|
||||
|
||||
cat > "$HOME/.config/gtk-3.0/settings.ini" <<EOF
|
||||
[Settings]
|
||||
gtk-theme-name=$THEME
|
||||
gtk-icon-theme-name=$ICONS
|
||||
gtk-cursor-theme-name=$CURSOR
|
||||
gtk-font-name=$FONT_UI
|
||||
gtk-application-prefer-dark-theme=1
|
||||
gtk-xft-antialias=1
|
||||
gtk-xft-hinting=1
|
||||
gtk-xft-hintstyle=hintslight
|
||||
gtk-xft-rgba=rgb
|
||||
EOF
|
||||
|
||||
cat > "$HOME/.config/gtk-4.0/settings.ini" <<EOF
|
||||
[Settings]
|
||||
gtk-theme-name=$THEME
|
||||
gtk-icon-theme-name=$ICONS
|
||||
gtk-cursor-theme-name=$CURSOR
|
||||
gtk-font-name=$FONT_UI
|
||||
gtk-application-prefer-dark-theme=1
|
||||
EOF
|
||||
|
||||
# esporta variabili utili
|
||||
export GTK_THEME=$THEME
|
||||
export XCURSOR_THEME=$CURSOR
|
||||
export XCURSOR_SIZE=24
|
||||
|
||||
if command -v gsettings >/dev/null 2>&1; then
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "$THEME" >/dev/null 2>&1 || true
|
||||
gsettings set org.gnome.desktop.interface icon-theme "$ICONS" >/dev/null 2>&1 || true
|
||||
gsettings set org.gnome.desktop.interface cursor-theme "$CURSOR" >/dev/null 2>&1 || true
|
||||
gsettings set org.gnome.desktop.interface color-scheme prefer-dark >/dev/null 2>&1 || true
|
||||
fi
|
||||
BIN
dotfiles/desktop/.config/sway/wallpapers/maxresdefault.jpg
Executable file
BIN
dotfiles/desktop/.config/sway/wallpapers/maxresdefault.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 116 KiB |
BIN
dotfiles/desktop/.config/sway/wallpapers/wallpaper-161664.jpg
Executable file
BIN
dotfiles/desktop/.config/sway/wallpapers/wallpaper-161664.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
101
dotfiles/desktop/.config/waybar/config.jsonc
Normal file
101
dotfiles/desktop/.config/waybar/config.jsonc
Normal file
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"layer": "top",
|
||||
"position": "top",
|
||||
"height": 26,
|
||||
"spacing": 4,
|
||||
|
||||
"modules-left": ["sway/workspaces"],
|
||||
"modules-center": [],
|
||||
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock"],
|
||||
|
||||
"sway/workspaces": {
|
||||
"disable-scroll": true,
|
||||
"all-outputs": false,
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"1": "I",
|
||||
"2": "II",
|
||||
"3": "III",
|
||||
"4": "IV",
|
||||
"5": "V",
|
||||
"6": "VI",
|
||||
"7": "VII",
|
||||
"8": "VIII",
|
||||
"9": "IX",
|
||||
"10": "X"
|
||||
},
|
||||
"persistent-workspaces": {
|
||||
"*": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
|
||||
}
|
||||
},
|
||||
|
||||
"clock": {
|
||||
"interval": 60,
|
||||
"format": "{:%Y-%m-%d %H:%M}",
|
||||
"tooltip-format": "<tt>{calendar}</tt>"
|
||||
},
|
||||
|
||||
"cpu": {
|
||||
"interval": 5,
|
||||
"format": " {usage}%"
|
||||
},
|
||||
|
||||
"memory": {
|
||||
"interval": 10,
|
||||
"format": " {used:0.1f}G / {total:0.1f}G"
|
||||
},
|
||||
|
||||
"disk": {
|
||||
"interval": 60,
|
||||
"path": "/",
|
||||
"format": " {used} / {total}"
|
||||
},
|
||||
|
||||
"temperature": {
|
||||
"interval": 10,
|
||||
"critical-threshold": 80,
|
||||
"format": " {temperatureC}°C",
|
||||
"format-critical": " {temperatureC}°C"
|
||||
},
|
||||
|
||||
"backlight": {
|
||||
"format": " {percent}%",
|
||||
"on-scroll-up": "brightnessctl set +5%",
|
||||
"on-scroll-down": "brightnessctl set 5%-"
|
||||
},
|
||||
|
||||
"network": {
|
||||
"interval": 5,
|
||||
"format-wifi": " {essid} {signalStrength}%",
|
||||
"format-ethernet": " {ifname}",
|
||||
"format-disconnected": " offline",
|
||||
"tooltip-format": "{ifname} {ipaddr}"
|
||||
},
|
||||
|
||||
"pulseaudio": {
|
||||
"format": "{icon} {volume}%",
|
||||
"format-muted": " muted",
|
||||
"format-bluetooth": "{icon} {volume}% ",
|
||||
"format-icons": { "default": ["", "", ""] },
|
||||
"on-click": "swayosd-client --output-volume mute-toggle",
|
||||
"on-click-right": "pavucontrol"
|
||||
},
|
||||
|
||||
"battery": {
|
||||
"bat": "BAT0",
|
||||
"interval": 30,
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{icon} {capacity}%",
|
||||
"format-charging": " {capacity}%",
|
||||
"format-full": " full",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
|
||||
"tray": {
|
||||
"icon-size": 16,
|
||||
"spacing": 6
|
||||
}
|
||||
}
|
||||
67
dotfiles/desktop/.config/waybar/style.css
Normal file
67
dotfiles/desktop/.config/waybar/style.css
Normal file
@@ -0,0 +1,67 @@
|
||||
* {
|
||||
font-family: "LiterationMono Nerd Font", "Symbols Nerd Font Mono", monospace;
|
||||
font-size: 10pt;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #1f1f28;
|
||||
color: #d0d0d0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 8px;
|
||||
margin: 0;
|
||||
color: #9a9a9a;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#workspaces button.visible {
|
||||
color: #d0d0d0;
|
||||
background-color: #2b2b36;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
color: #ffffff;
|
||||
background-color: #4a90d9;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
color: #ffffff;
|
||||
background-color: #c7162b;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#cpu,
|
||||
#memory,
|
||||
#disk,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#battery,
|
||||
#tray {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
#clock { color: #d0d0d0; }
|
||||
#cpu { color: #bb9af7; }
|
||||
#memory { color: #7dcfff; }
|
||||
#disk { color: #9ec07c; }
|
||||
#temperature { color: #e0af68; }
|
||||
#temperature.critical { color: #c7162b; }
|
||||
#backlight { color: #d0d0d0; }
|
||||
#network { color: #4a90d9; }
|
||||
#network.disconnected { color: #3a3a46; }
|
||||
#pulseaudio { color: #7dcfff; }
|
||||
#pulseaudio.muted { color: #8e8e9a; }
|
||||
#battery { color: #d0d0d0; }
|
||||
#battery.charging { color: #9ec07c; }
|
||||
#battery.warning { color: #e0af68; }
|
||||
#battery.critical { color: #c7162b; }
|
||||
#battery.full { color: #9ec07c; }
|
||||
|
||||
#tray { padding: 0 6px; }
|
||||
@@ -46,6 +46,7 @@
|
||||
'misc/terminal
|
||||
'misc/vcs
|
||||
'misc/documents
|
||||
'misc/i3-config)
|
||||
'misc/i3-config
|
||||
'misc/xclip)
|
||||
|
||||
(message "...user configuration loaded")
|
||||
|
||||
@@ -7,10 +7,10 @@
|
||||
(load-theme 'nordic-night t))
|
||||
|
||||
;; Setting default font
|
||||
(set-frame-font "Liberation Mono 14" nil t)
|
||||
(set-frame-font "LiterationMono Nerd Font 14" nil t)
|
||||
|
||||
(add-to-list 'default-frame-alist
|
||||
'(font . "Liberation Mono-14"))
|
||||
'(font . "FantasqueSansM Nerd Font-14"))
|
||||
|
||||
;; Remove toolbar
|
||||
(tool-bar-mode -1)
|
||||
|
||||
11
dotfiles/desktop/.emacs.d/lisp/misc/xclip.el
Normal file
11
dotfiles/desktop/.emacs.d/lisp/misc/xclip.el
Normal file
@@ -0,0 +1,11 @@
|
||||
;;; misc-xclip.el -*- lexical-binding: t; -*-
|
||||
|
||||
(use-package xclip
|
||||
:ensure t
|
||||
:config
|
||||
(xclip-mode t)
|
||||
(setq xclip-method 'xclip))
|
||||
|
||||
(provide 'xclip)
|
||||
|
||||
;;; xclip.el ends here
|
||||
27
dotfiles/desktop/.local/bin/start-sway
Executable file
27
dotfiles/desktop/.local/bin/start-sway
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -r /etc/profile ] && . /etc/profile
|
||||
[ -r "$HOME/.profile" ] && . "$HOME/.profile"
|
||||
|
||||
export XDG_CURRENT_DESKTOP=sway
|
||||
export XDG_SESSION_DESKTOP=sway
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
export QT_QPA_PLATFORM='wayland;xcb'
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export SDL_VIDEODRIVER=wayland
|
||||
export GDK_BACKEND='wayland,x11'
|
||||
|
||||
export SSH_AUTH_SOCK="$HOME/.local/state/ssh-agent/socket"
|
||||
|
||||
# Per-host session environment (GPU / Wayland tuning, etc.)
|
||||
[ -r "$HOME/.config/sway/session-env" ] && . "$HOME/.config/sway/session-env"
|
||||
|
||||
exec dbus-run-session sh -eu -c '
|
||||
umask 077
|
||||
printf "%s\n" "$DBUS_SESSION_BUS_ADDRESS" > "$HOME/.dbus-session-bus-address"
|
||||
gpgconf --launch gpg-agent
|
||||
"$HOME/.local/bin/update-turnstile-env"
|
||||
exec sway
|
||||
'
|
||||
@@ -6,13 +6,10 @@ if ! command -v turnstile-update-runit-env >/dev/null 2>&1; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
turnstile-update-runit-env \
|
||||
DISPLAY \
|
||||
WAYLAND_DISPLAY \
|
||||
XAUTHORITY \
|
||||
DBUS_SESSION_BUS_ADDRESS \
|
||||
SSH_AUTH_SOCK \
|
||||
XDG_CURRENT_DESKTOP \
|
||||
XDG_SESSION_DESKTOP \
|
||||
XDG_SESSION_TYPE \
|
||||
SWAYSOCK >/dev/null 2>&1 || true
|
||||
vars="DISPLAY XAUTHORITY DBUS_SESSION_BUS_ADDRESS SSH_AUTH_SOCK XDG_CURRENT_DESKTOP XDG_SESSION_DESKTOP XDG_SESSION_TYPE"
|
||||
|
||||
[ -n "${WAYLAND_DISPLAY:-}" ] && vars="$vars WAYLAND_DISPLAY"
|
||||
[ -n "${SWAYSOCK:-}" ] && vars="$vars SWAYSOCK"
|
||||
|
||||
# shellcheck disable=SC2086
|
||||
turnstile-update-runit-env $vars >/dev/null 2>&1 || true
|
||||
|
||||
17
dotfiles/nymph/.config/kanshi/config
Normal file
17
dotfiles/nymph/.config/kanshi/config
Normal file
@@ -0,0 +1,17 @@
|
||||
profile solo {
|
||||
output DP-1 disable
|
||||
output DP-2 disable
|
||||
output HDMI-A-1 disable
|
||||
output HDMI-A-2 disable
|
||||
output eDP-1 enable mode 1920x1080 position 0,0
|
||||
exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output eDP-1; workspace 3, move workspace to output eDP-1; workspace 4, move workspace to output eDP-1; workspace 5, move workspace to output eDP-1; workspace 6, move workspace to output eDP-1; workspace 7, move workspace to output eDP-1; workspace 8, move workspace to output eDP-1; workspace 9, move workspace to output eDP-1; workspace 10, move workspace to output eDP-1"
|
||||
}
|
||||
|
||||
profile dual {
|
||||
output DP-2 disable
|
||||
output HDMI-A-1 disable
|
||||
output HDMI-A-2 disable
|
||||
output eDP-1 enable mode 1920x1080 position 0,0
|
||||
output DP-1 enable mode 3440x1440@100Hz position 1920,0
|
||||
exec swaymsg "workspace 1, move workspace to output eDP-1; workspace 2, move workspace to output DP-1; workspace 3, move workspace to output DP-1; workspace 4, move workspace to output DP-1; workspace 5, move workspace to output DP-1; workspace 6, move workspace to output DP-1; workspace 7, move workspace to output DP-1; workspace 8, move workspace to output DP-1; workspace 9, move workspace to output DP-1; workspace 10, move workspace to output DP-1"
|
||||
}
|
||||
15
dotfiles/nymph/.config/sway/host.conf
Normal file
15
dotfiles/nymph/.config/sway/host.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
set $terminal ~/.local/bin/prime-run /usr/bin/alacritty
|
||||
|
||||
# Multi-monitor profile switching (laptop standalone vs dock)
|
||||
exec kanshi
|
||||
|
||||
workspace 1 output eDP-1
|
||||
workspace 2 output DP-1
|
||||
workspace 3 output DP-1
|
||||
workspace 4 output DP-1
|
||||
workspace 5 output DP-1
|
||||
workspace 6 output DP-1
|
||||
workspace 7 output DP-1
|
||||
workspace 8 output DP-1
|
||||
workspace 9 output DP-1
|
||||
workspace 10 output DP-1
|
||||
6
dotfiles/nymph/.config/sway/session-env
Normal file
6
dotfiles/nymph/.config/sway/session-env
Normal file
@@ -0,0 +1,6 @@
|
||||
export LIBVA_DRIVER_NAME=iHD
|
||||
export QT_QPA_PLATFORM=wayland
|
||||
export QT_QPA_PLATFORMTHEME=qt6ct
|
||||
export SWAY_UNSUPPORTED_GPU=1
|
||||
export WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
|
||||
export WLR_NO_HARDWARE_CURSORS=1
|
||||
103
scripts/cleanup-i3.sh
Executable file
103
scripts/cleanup-i3.sh
Executable file
@@ -0,0 +1,103 @@
|
||||
#!/usr/bin/env sh
|
||||
# Remove i3 session artifacts: exclusive packages, dotfiles and the emptty
|
||||
# xsessions entry. Shared resources with sway (dunst, rofi, alacritty,
|
||||
# xfce4-screenshooter) are left untouched.
|
||||
|
||||
set -eu
|
||||
|
||||
I3_PACKAGES="
|
||||
arandr
|
||||
autorandr
|
||||
feh
|
||||
i3
|
||||
i3blocks
|
||||
i3blocks-blocklets
|
||||
i3lock-color
|
||||
i3status
|
||||
picom
|
||||
polybar
|
||||
scrot
|
||||
setxkbmap
|
||||
volumeicon
|
||||
xclip
|
||||
xfce4-clipman-plugin
|
||||
xkbutils
|
||||
xorg-fonts
|
||||
xorg-minimal
|
||||
xss-lock
|
||||
xdotool
|
||||
"
|
||||
|
||||
I3_DOTFILES="
|
||||
$HOME/.config/i3
|
||||
$HOME/.config/i3blocks
|
||||
$HOME/.config/picom
|
||||
$HOME/.config/polybar
|
||||
$HOME/.xinitrc
|
||||
"
|
||||
|
||||
EMPTTY_SESSION=/etc/emptty/xsessions/i3.desktop
|
||||
|
||||
confirm() {
|
||||
printf '%s [y/N] ' "$1"
|
||||
read -r answer
|
||||
case "$answer" in
|
||||
y|Y|yes|YES) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
filter_installed() {
|
||||
for p in $1; do
|
||||
if xbps-query -p pkgver "$p" >/dev/null 2>&1; then
|
||||
printf '%s\n' "$p"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
if ! command -v xbps-remove >/dev/null 2>&1; then
|
||||
printf 'Error: xbps-remove not found (not a Void host?)\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
installed=$(filter_installed "$I3_PACKAGES" | tr '\n' ' ' | sed 's/ *$//')
|
||||
|
||||
printf '== i3 cleanup ==\n\n'
|
||||
printf 'Packages to remove (installed only):\n'
|
||||
if [ -n "$installed" ]; then
|
||||
printf ' %s\n' $installed
|
||||
else
|
||||
printf ' (none)\n'
|
||||
fi
|
||||
printf '\nDotfiles to remove:\n'
|
||||
for d in $I3_DOTFILES; do
|
||||
if [ -e "$d" ] || [ -L "$d" ]; then
|
||||
printf ' %s\n' "$d"
|
||||
fi
|
||||
done
|
||||
printf '\nEmptty session entry:\n'
|
||||
if [ -e "$EMPTTY_SESSION" ]; then
|
||||
printf ' %s\n' "$EMPTTY_SESSION"
|
||||
else
|
||||
printf ' (absent)\n'
|
||||
fi
|
||||
printf '\nShared (NOT removed): dunst, rofi, alacritty, xfce4-screenshooter and their configs.\n\n'
|
||||
|
||||
confirm 'Proceed?' || { printf 'Aborted.\n'; exit 0; }
|
||||
|
||||
if [ -n "$installed" ]; then
|
||||
# shellcheck disable=SC2086
|
||||
sudo xbps-remove -Ry $installed
|
||||
fi
|
||||
|
||||
for d in $I3_DOTFILES; do
|
||||
if [ -e "$d" ] || [ -L "$d" ]; then
|
||||
rm -rf -- "$d"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -e "$EMPTTY_SESSION" ]; then
|
||||
sudo rm -f -- "$EMPTTY_SESSION"
|
||||
fi
|
||||
|
||||
printf '\nDone.\n'
|
||||
101
scripts/cleanup-sway.sh
Executable file
101
scripts/cleanup-sway.sh
Executable file
@@ -0,0 +1,101 @@
|
||||
#!/usr/bin/env sh
|
||||
# Remove sway session artifacts: exclusive packages, dotfiles, runtime state
|
||||
# and the emptty wayland-sessions entry. Shared resources with i3 (dunst,
|
||||
# rofi, alacritty, xfce4-screenshooter) are left untouched.
|
||||
|
||||
set -eu
|
||||
|
||||
SWAY_PACKAGES="
|
||||
cliphist
|
||||
flameshot
|
||||
grim
|
||||
jq
|
||||
kanshi
|
||||
slurp
|
||||
swayfx
|
||||
swaybg
|
||||
swayidle
|
||||
swaylock
|
||||
SwayOSD
|
||||
Waybar
|
||||
wl-clipboard
|
||||
xdg-desktop-portal-wlr
|
||||
xorg-server-xwayland
|
||||
"
|
||||
|
||||
SWAY_DOTFILES="
|
||||
$HOME/.config/sway
|
||||
$HOME/.config/waybar
|
||||
$HOME/.cache/cliphist
|
||||
"
|
||||
|
||||
SWAY_SYSTEM_FILES="
|
||||
/etc/emptty/wayland-sessions/sway.desktop
|
||||
/usr/local/bin/start-sway
|
||||
"
|
||||
|
||||
confirm() {
|
||||
printf '%s [y/N] ' "$1"
|
||||
read -r answer
|
||||
case "$answer" in
|
||||
y|Y|yes|YES) return 0 ;;
|
||||
*) return 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
filter_installed() {
|
||||
for p in $1; do
|
||||
if xbps-query -p pkgver "$p" >/dev/null 2>&1; then
|
||||
printf '%s\n' "$p"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
if ! command -v xbps-remove >/dev/null 2>&1; then
|
||||
printf 'Error: xbps-remove not found (not a Void host?)\n' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
installed=$(filter_installed "$SWAY_PACKAGES" | tr '\n' ' ' | sed 's/ *$//')
|
||||
|
||||
printf '== sway cleanup ==\n\n'
|
||||
printf 'Packages to remove (installed only):\n'
|
||||
if [ -n "$installed" ]; then
|
||||
printf ' %s\n' $installed
|
||||
else
|
||||
printf ' (none)\n'
|
||||
fi
|
||||
printf '\nDotfiles / state to remove:\n'
|
||||
for d in $SWAY_DOTFILES; do
|
||||
if [ -e "$d" ] || [ -L "$d" ]; then
|
||||
printf ' %s\n' "$d"
|
||||
fi
|
||||
done
|
||||
printf '\nSystem files to remove:\n'
|
||||
for f in $SWAY_SYSTEM_FILES; do
|
||||
if [ -e "$f" ] || [ -L "$f" ]; then
|
||||
printf ' %s\n' "$f"
|
||||
fi
|
||||
done
|
||||
printf '\nShared (NOT removed): dunst, rofi, alacritty, xfce4-screenshooter and their configs.\n\n'
|
||||
|
||||
confirm 'Proceed?' || { printf 'Aborted.\n'; exit 0; }
|
||||
|
||||
if [ -n "$installed" ]; then
|
||||
# shellcheck disable=SC2086
|
||||
sudo xbps-remove -Ry $installed
|
||||
fi
|
||||
|
||||
for d in $SWAY_DOTFILES; do
|
||||
if [ -e "$d" ] || [ -L "$d" ]; then
|
||||
rm -rf -- "$d"
|
||||
fi
|
||||
done
|
||||
|
||||
for f in $SWAY_SYSTEM_FILES; do
|
||||
if [ -e "$f" ] || [ -L "$f" ]; then
|
||||
sudo rm -f -- "$f"
|
||||
fi
|
||||
done
|
||||
|
||||
printf '\nDone.\n'
|
||||
Reference in New Issue
Block a user