Compare commits

...

2 Commits

Author SHA1 Message Date
Fabio Scotto di Santolo
ec0b9a5b8d Update i3, rofi, and kitty configurations 2026-02-25 22:39:02 +01:00
Fabio Scotto di Santolo
7a8d1e3821 Update XFCE configuration 2026-02-25 22:36:27 +01:00
21 changed files with 673 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ set $down j
set $up k
set $right l
set $term 'xfce4-terminal'
set $term 'kitty'
set $editor 'emacs'
set $filemanager 'thunar'
set $notification 'dunst'
@@ -101,7 +101,7 @@ for_window [class="Authy"] floating enable
for_window [class="Termfloat"] floating enable, resize set 960 540
for_window [class="Mpv"] floating enable, resize set 960 540
for_window [class="Spotify"] floating enable, resize set 1280 1024, move scratchpad
for_window [class="xfce4-clipman-history"] floating enable, resize set 960 540
for_window [class="xfce4-clipman-history"] floating enable
# Workspaces
assign [class="Emacs"] 2

View File

@@ -0,0 +1,59 @@
import tempfile
import os
from shutil import which
from typing import List
from kitty.boss import Boss
ENABLED_LAYOUTS = [
'fat',
'grid',
'horizontal',
'splits',
'stack',
'tall',
'vertical',
]
def fzf(choices: List[str], delimiter='\n'):
exe = which("fzf")
if not exe:
raise SystemError(f"Cannot find 'fzf' installed on $PATH.")
shell = which("zsh") or os.environ.get("SHELL")
if not shell:
raise SystemError(f"Cannot find a $SHELL to use.")
selection = []
with tempfile.NamedTemporaryFile(delete=True) as input_file:
with tempfile.NamedTemporaryFile(delete=True) as output_file:
input_file.write(delimiter.join(map(str, choices)).encode('utf-8'))
input_file.flush()
os.system(f"{shell} -c '{exe} --reverse < \"{input_file.name}\" > \"{output_file.name}\"'")
for line in output_file:
selection.append(line.strip().decode("utf-8"))
return selection
def main(args: List[str]) -> str:
fzf_path = os.path.join(os.environ["HOME"], ".fzf/bin")
os.environ["PATH"] += f":{fzf_path}"
result = fzf(ENABLED_LAYOUTS)
if len(result) > 0:
return result[0]
return ""
def handle_result(args: List[str], answer: str, target_window_id: int, boss: Boss) -> None:
try:
window = boss.window_id_map.get(target_window_id)
tab = boss.tab_for_window(window)
tab.goto_layout(answer)
except Exception:
pass

View File

@@ -0,0 +1,89 @@
# vim:ft=kitty foldmethod=marker
kitty_mod ctrl+shift
scrollback_lines 10000
# UI {{{1
# Theme
#include themes/mocha.conf
# Window layout
remember_window_size no
initial_window_width 160c
initial_window_height 45c
# Tab bar
tab_bar_min_tabs 1
tab_bar_edge bottom
tab_bar_style powerline
tab_powerline_style slanted
tab_title_template {title}{' :{}:'.format(num_windows) if num_windows > 1 else ''}
# Fonts
font_size 14.0
font_family 0xProto Nerd Font
# Cursor
cursor_shape beam
cursor_shape_unfocused hollow
cursor_beam_thickness 3
cursor_blink_interval 1
shell_integration no-cursor no-title
# Color scheme
background_opacity 0.90
background_blur 64
background_image none
dynamic_background_opacity yes
# vim-kitty-navigator {{{1
allow_remote_control yes
listen_on unix:/tmp/mykitty
# Keyboard shortcuts
copy_on_select yes
macos_option_as_alt yes
# Zoom on a window just like in tmux
map kitty_mod+a toggle_layout stack
# Open tabs and windows in the same folder
map kitty_mod+enter new_window_with_cwd
map cmd+enter new_window_with_cwd
map kitty_mod+t new_tab_with_cwd
map cmd+t new_tab_with_cwd
# Move a window into a new tab
map kitty_mod+x detach_window new-tab
# tmux {{{1
# Jump to tabs
map ctrl+a>1 goto_tab 4
map ctrl+a>2 goto_tab 2
map ctrl+a>3 goto_tab 3
map ctrl+a>4 goto_tab 4
map ctrl+a>5 goto_tab 5
map ctrl+a>6 goto_tab 6
map ctrl+a>7 goto_tab 7
map ctrl+a>8 goto_tab 8
map ctrl+a>9 goto_tab 9
map ctrl+a>0 goto_tab 0
# Move a window into a new tab
map ctrl+a>! detach_window new-tab
# Open a new window
map ctrl+a>o new_window_with_cwd
# Open a new tab
map ctrl+a>c new_tab_with_cwd
# Zoom on a window
map ctrl+a>z toggle_layout stack
# Change layout
map ctrl+a>space next_layout
# Choose layout
map ctrl+a>l kitten choose_layout.py
# }}}

View File

@@ -0,0 +1,51 @@
# vim:ft=kitty
## name: Adwaita dark
## license: MIT
## author: Emil Löfquist (https://github.com/ewal)
## upstream: https://github.com/ewal/kitty-adwaita/blob/main/adwaita_dark.conf
## blurb: Adwaita dark - based on https://github.com/Mofiqul/adwaita.nvim
background #1d1d1d
foreground #deddda
selection_background #303030
selection_foreground #c0bfbc
url_color #1a5fb4
wayland_titlebar_color system
macos_titlebar_color system
cursor #deddda
cursor_text_color #1d1d1d
active_border_color #4f4f4f
inactive_border_color #282828
bell_border_color #ed333b
visual_bell_color none
active_tab_background #242424
active_tab_foreground #fcfcfc
inactive_tab_background #303030
inactive_tab_foreground #b0afac
tab_bar_background none
tab_bar_margin_color none
color0 #1d1d1d
color1 #ed333b
color2 #57e389
color3 #ff7800
color4 #62a0ea
color5 #9141ac
color6 #5bc8af
color7 #deddda
color8 #9a9996
color9 #f66151
color10 #8ff0a4
color11 #ffa348
color12 #99c1f1
color13 #dc8add
color14 #93ddc2
color15 #f6f5f4

View File

@@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin Kitty Frappé
## author: Catppuccin Org
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/frappe.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #c6d0f5
background #303446
selection_foreground #303446
selection_background #f2d5cf
# Cursor colors
cursor #f2d5cf
cursor_text_color #303446
# URL underline color when hovering with mouse
url_color #f2d5cf
# Kitty window border colors
active_border_color #babbf1
inactive_border_color #737994
bell_border_color #e5c890
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #232634
active_tab_background #ca9ee6
inactive_tab_foreground #c6d0f5
inactive_tab_background #292c3c
tab_bar_background #232634
# Colors for marks (marked text in the terminal)
mark1_foreground #303446
mark1_background #babbf1
mark2_foreground #303446
mark2_background #ca9ee6
mark3_foreground #303446
mark3_background #85c1dc
# The 16 terminal colors
# black
color0 #51576d
color8 #626880
# red
color1 #e78284
color9 #e78284
# green
color2 #a6d189
color10 #a6d189
# yellow
color3 #e5c890
color11 #e5c890
# blue
color4 #8caaee
color12 #8caaee
# magenta
color5 #f4b8e4
color13 #f4b8e4
# cyan
color6 #81c8be
color14 #81c8be
# white
color7 #b5bfe2
color15 #a5adce

View File

@@ -0,0 +1,55 @@
# Based on https://github.com/morhetz/gruvbox by morhetz <morhetz@gmail.com>
# Adapted to kitty by wdomitrz <witekdomitrz@gmail.com>
cursor #928374
cursor_text_color background
url_color #83a598
visual_bell_color #8ec07c
bell_border_color #8ec07c
active_border_color #d3869b
inactive_border_color #665c54
foreground #ebdbb2
background #282828
selection_foreground #928374
selection_background #ebdbb2
active_tab_foreground #fbf1c7
active_tab_background #665c54
inactive_tab_foreground #a89984
inactive_tab_background #3c3836
# black (bg3/bg4)
color0 #665c54
color8 #7c6f64
# red
color1 #cc241d
color9 #fb4934
#: green
color2 #98971a
color10 #b8bb26
# yellow
color3 #d79921
color11 #fabd2f
# blue
color4 #458588
color12 #83a598
# purple
color5 #b16286
color13 #d3869b
# aqua
color6 #689d6a
color14 #8ec07c
# white (fg4/fg3)
color7 #a89984
color15 #bdae93

View File

@@ -0,0 +1,3 @@
include gruvbox_dark.conf
background #1d2021

View File

@@ -0,0 +1,3 @@
include gruvbox_dark.conf
background #32302f

View File

@@ -0,0 +1,55 @@
# Based on https://github.com/morhetz/gruvbox by morhetz <morhetz@gmail.com>
# Adapted to kitty by wdomitrz <witekdomitrz@gmail.com>
cursor #928374
cursor_text_color background
url_color #458588
visual_bell_color #689d6a
bell_border_color #689d6a
active_border_color #b16286
inactive_border_color #1d2021
foreground #3c3836
background #fbf1c7
selection_foreground #928374
selection_background #3c3836
active_tab_foreground #282828
active_tab_background #928374
inactive_tab_foreground #7c6f64
inactive_tab_background #ebdbb2
# white (bg3/bg4)
color0 #bdae93
color8 #a89984
# red
color1 #cc241d
color9 #9d0006
# green
color2 #98971a
color10 #79740e
# yellow
color3 #d79921
color11 #b57614
# blue
color4 #458588
color12 #076678
# purple
color5 #b16286
color13 #8f3f71
# aqua
color6 #689d6a
color14 #427b58
# black (fg4/fg3)
color7 #7c6f64
color15 #665c54

View File

@@ -0,0 +1,3 @@
include gruvbox_light.conf
background #f9f5d7

View File

@@ -0,0 +1,3 @@
include gruvbox_light.conf
background #f2e5bc

View File

@@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin Kitty Latte
## author: Catppuccin Org
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/latte.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #4c4f69
background #eff1f5
selection_foreground #eff1f5
selection_background #dc8a78
# Cursor colors
cursor #dc8a78
cursor_text_color #eff1f5
# URL underline color when hovering with mouse
url_color #dc8a78
# Kitty window border colors
active_border_color #7287fd
inactive_border_color #9ca0b0
bell_border_color #df8e1d
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #eff1f5
active_tab_background #8839ef
inactive_tab_foreground #4c4f69
inactive_tab_background #9ca0b0
tab_bar_background #bcc0cc
# Colors for marks (marked text in the terminal)
mark1_foreground #eff1f5
mark1_background #7287fd
mark2_foreground #eff1f5
mark2_background #8839ef
mark3_foreground #eff1f5
mark3_background #209fb5
# The 16 terminal colors
# black
color0 #5c5f77
color8 #6c6f85
# red
color1 #d20f39
color9 #d20f39
# green
color2 #40a02b
color10 #40a02b
# yellow
color3 #df8e1d
color11 #df8e1d
# blue
color4 #1e66f5
color12 #1e66f5
# magenta
color5 #ea76cb
color13 #ea76cb
# cyan
color6 #179299
color14 #179299
# white
color7 #acb0be
color15 #bcc0cc

View File

@@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin Kitty Macchiato
## author: Catppuccin Org
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/macchiato.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #cad3f5
background #24273a
selection_foreground #24273a
selection_background #f4dbd6
# Cursor colors
cursor #f4dbd6
cursor_text_color #24273a
# URL underline color when hovering with mouse
url_color #f4dbd6
# Kitty window border colors
active_border_color #b7bdf8
inactive_border_color #6e738d
bell_border_color #eed49f
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #181926
active_tab_background #c6a0f6
inactive_tab_foreground #cad3f5
inactive_tab_background #1e2030
tab_bar_background #181926
# Colors for marks (marked text in the terminal)
mark1_foreground #24273a
mark1_background #b7bdf8
mark2_foreground #24273a
mark2_background #c6a0f6
mark3_foreground #24273a
mark3_background #7dc4e4
# The 16 terminal colors
# black
color0 #494d64
color8 #5b6078
# red
color1 #ed8796
color9 #ed8796
# green
color2 #a6da95
color10 #a6da95
# yellow
color3 #eed49f
color11 #eed49f
# blue
color4 #8aadf4
color12 #8aadf4
# magenta
color5 #f5bde6
color13 #f5bde6
# cyan
color6 #8bd5ca
color14 #8bd5ca
# white
color7 #b8c0e0
color15 #a5adcb

View File

@@ -0,0 +1,80 @@
# vim:ft=kitty
## name: Catppuccin Kitty Mocha
## author: Catppuccin Org
## license: MIT
## upstream: https://github.com/catppuccin/kitty/blob/main/themes/mocha.conf
## blurb: Soothing pastel theme for the high-spirited!
# The basic colors
foreground #cdd6f4
background #1e1e2e
selection_foreground #1e1e2e
selection_background #f5e0dc
# Cursor colors
cursor #f5e0dc
cursor_text_color #1e1e2e
# URL underline color when hovering with mouse
url_color #f5e0dc
# Kitty window border colors
active_border_color #b4befe
inactive_border_color #6c7086
bell_border_color #f9e2af
# OS Window titlebar colors
wayland_titlebar_color system
macos_titlebar_color system
# Tab bar colors
active_tab_foreground #11111b
active_tab_background #cba6f7
inactive_tab_foreground #cdd6f4
inactive_tab_background #181825
tab_bar_background #11111b
# Colors for marks (marked text in the terminal)
mark1_foreground #1e1e2e
mark1_background #b4befe
mark2_foreground #1e1e2e
mark2_background #cba6f7
mark3_foreground #1e1e2e
mark3_background #74c7ec
# The 16 terminal colors
# black
color0 #45475a
color8 #585b70
# red
color1 #f38ba8
color9 #f38ba8
# green
color2 #a6e3a1
color10 #a6e3a1
# yellow
color3 #f9e2af
color11 #f9e2af
# blue
color4 #89b4fa
color12 #89b4fa
# magenta
color5 #f5c2e7
color13 #f5c2e7
# cyan
color6 #94e2d5
color14 #94e2d5
# white
color7 #bac2de
color15 #a6adc8

View File

@@ -4,7 +4,7 @@ configuration {
modi: "drun,window,filebrowser,ssh";
icon-theme: "Papirus";
show-icons: true;
terminal: "alacritty";
terminal: "kitty";
drun-display-format: "{icon} {name}";
location: 0;
disable-history: false;

View File

@@ -2,6 +2,7 @@
; this file is an automated accelerator map dump
;
; (gtk_accel_path "<Actions>/ThunarBookmarks/a92b2c1d964bbd2cee57b3ca30aec9b0" "")
; (gtk_accel_path "<Actions>/ThunarDetailsView/expandable-folders" "")
; (gtk_accel_path "<Actions>/ThunarStandardView/sort-by-type" "")
; (gtk_accel_path "<Actions>/ThunarStatusBar/toggle-last-modified" "")
; (gtk_accel_path "<Actions>/Thunarwindow/menu" "")
@@ -91,6 +92,7 @@
; (gtk_accel_path "<Actions>/ThunarWindow/view-as-icons" "<Primary>1")
; (gtk_accel_path "<Actions>/ThunarActionManager/delete-2" "<Shift>Delete")
; (gtk_accel_path "<Actions>/ThunarWindow/zoom-in" "<Primary>plus")
; (gtk_accel_path "<Actions>/ThunarStandardView/configure-columns" "")
; (gtk_accel_path "<Actions>/ThunarStandardView/rename" "F2")
; (gtk_accel_path "<Actions>/ThunarWindow/open-location" "<Primary>l")
; (gtk_accel_path "<Actions>/ThunarWindow/view-as-compact-list" "<Primary>3")

View File

@@ -6,7 +6,7 @@ show_in_folder=false
screenshot_dir=file:///home/fscotto/Immagini
action=2
delay=0
region=1
region=2
show_mouse=0
show_border=0

View File

@@ -5,7 +5,11 @@
<property name="navigationbar" type="empty">
<property name="position" type="string" value="left"/>
</property>
<property name="height" type="uint" value="805"/>
<property name="width" type="uint" value="1406"/>
<property name="height" type="uint" value="1381"/>
<property name="width" type="uint" value="1702"/>
<property name="thumbnails" type="empty">
<property name="size" type="uint" value="6"/>
<property name="show" type="bool" value="false"/>
</property>
</property>
</channel>

View File

@@ -1,11 +1,11 @@
<?xml version="1.1" encoding="UTF-8"?>
<channel name="thunar" version="1.0">
<property name="last-view" type="string" value="ThunarIconView"/>
<property name="last-view" type="string" value="ThunarDetailsView"/>
<property name="last-icon-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_100_PERCENT"/>
<property name="last-window-width" type="int" value="1698"/>
<property name="last-window-height" type="int" value="1331"/>
<property name="last-window-maximized" type="bool" value="true"/>
<property name="last-window-width" type="int" value="1702"/>
<property name="last-window-height" type="int" value="1381"/>
<property name="last-window-maximized" type="bool" value="false"/>
<property name="last-separator-position" type="int" value="253"/>
<property name="misc-single-click" type="bool" value="false"/>
<property name="misc-use-csd" type="bool" value="false"/>
@@ -15,8 +15,8 @@
<property name="misc-symbolic-icons-in-sidepane" type="bool" value="true"/>
<property name="misc-middle-click-in-tab" type="bool" value="true"/>
<property name="misc-full-path-in-tab-title" type="bool" value="false"/>
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_38_PERCENT"/>
<property name="last-details-view-column-widths" type="string" value="50,50,122,50,50,85,50,50,754,50,50,58,50,62"/>
<property name="last-details-view-zoom-level" type="string" value="THUNAR_ZOOM_LEVEL_75_PERCENT"/>
<property name="last-details-view-column-widths" type="string" value="50,50,132,50,50,85,50,50,1014,50,50,106,50,450"/>
<property name="last-show-hidden" type="bool" value="true"/>
<property name="last-side-pane" type="string" value="THUNAR_SIDEPANE_TYPE_SHORTCUTS"/>
<property name="last-side-pane" type="string" value="THUNAR_SIDEPANE_TYPE_HIDDEN_SHORTCUTS"/>
</channel>

View File

@@ -56,6 +56,9 @@
<property name="plugin-6" type="string" value="systray">
<property name="square-icons" type="bool" value="true"/>
<property name="known-legacy-items" type="array">
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (67%)"/>
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (53%)"/>
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (56%)"/>
<value type="string" value="richiesta di un indirizzo wi-fi per «skywifi_4lxsq»…"/>
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (58%)"/>
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (60%)"/>
@@ -77,6 +80,7 @@
<value type="string" value="clipman"/>
</property>
<property name="known-items" type="array">
<value type="string" value="virt-manager"/>
<value type="string" value="deluge"/>
<value type="string" value="Proton Mail Bridge"/>
<value type="string" value="ProtonMailBridge"/>
@@ -90,10 +94,14 @@
<property name="menu-is-primary" type="bool" value="true"/>
<property name="symbolic-icons" type="bool" value="true"/>
<property name="hidden-items" type="array">
<value type="string" value="virt-manager"/>
<value type="string" value="deluge"/>
</property>
<property name="hidden-legacy-items" type="array">
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (56%)"/>
<value type="string" value="richiesta di un indirizzo wi-fi per «skywifi_4lxsq»…"/>
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (53%)"/>
<value type="string" value="connessione wi-fi «skywifi_4lxsq» attiva: skywifi_4lxsq (67%)"/>
</property>
</property>
<property name="plugin-7" type="string" value="separator">
@@ -125,15 +133,15 @@
<property name="show-command-profile" type="bool" value="true"/>
<property name="button-icon" type="string" value="void-logo"/>
<property name="recent" type="array">
<value type="string" value="virt-manager.desktop"/>
<value type="string" value="org.gnome.Shotwell.desktop"/>
<value type="string" value="org.xfce.ristretto.desktop"/>
<value type="string" value="xfce-settings-manager.desktop"/>
<value type="string" value="org.telegram.desktop.desktop"/>
<value type="string" value="xfce4-taskmanager.desktop"/>
<value type="string" value="org.xfce.mousepad.desktop"/>
<value type="string" value="chromium.desktop"/>
<value type="string" value="org.gnome.Shotwell.desktop"/>
<value type="string" value="xfce-settings-manager.desktop"/>
<value type="string" value="lightdm-gtk-greeter-settings.desktop"/>
<value type="string" value="virt-manager.desktop"/>
<value type="string" value="org.xfce.ristretto.desktop"/>
</property>
<property name="menu-width" type="int" value="700"/>
<property name="menu-height" type="int" value="500"/>

View File

@@ -85,7 +85,7 @@
<value type="string" value="1"/>
<value type="string" value="2"/>
<value type="string" value="3"/>
<value type="string" value="4"/>
<value type="string" value="5"/>
</property>
</property>
</channel>