Skip to content

Commit

Permalink
First Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindy Metalman committed Dec 13, 2024
1 parent 00d8837 commit 43fcfba
Show file tree
Hide file tree
Showing 32,737 changed files with 277,259 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
40 changes: 40 additions & 0 deletions Herbstluft-KDE-Desktop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## Riccardo Palombo - email at riccardo dot im

Pacchetti necessari:

- herbstluftwm (https://herbstluftwm.org/)
- redshift
- rofi
- firefox
- dmenu
- polybar
- micro (lo schema colori è cmc-16, pre-installato)
- Akwa-dark (tema GTK per il software non QT)
- Roboto Condensed
- FontAwesome

Attenzione a:

- configurare il file powermenu-alt (polybar/script) con i comandi della propria distro.
- controllare i file di Polybar (config e modules) perché contengono voci che devono essere adattate al vostro setup (es: i monitor, la scheda audio, ecc)

Istruzioni:

1) Installare i pacchetti necessari nella propria distro con KDE Plasma (anche Kubuntu, KDE Neon, Manjaro KDE o quel che è).
2) Copiare i file dots dell'archivio seguendo la struttura esistente.
3) Uscire dalla sessione attiva e scegliere la nuova voce Plasma + Herbstluftwm (o come l'avete chiamata) dal vostro login manager (probabilmente SDDM se avete KDE).
4) Da qui iniziare a configurare KDE con i temi, i caratteri e le procedure mostrate nel video (i file dovrebbero già aver fatto tutto per voi, ma è meglio controllare).

Le procedure sono semplici e lineari ma richiedono un po' di pratica con l'ambiente Linux. Non si può passare ad un setup tiling come questo senza un po' di rodaggio.
In caso di problemi potete sempre tornare alla sessione KDE standard (basta selezionarla al momento del login), ma consiglio di sforzarsi ad usare il nuovo ambiente così
da trovare errori e, uno alla volta, capire come risolverli. I più comuni sono: Polybar non si avvia (controllare config, impostazioni monitor o errori di battitura), i font sono diversi
dal previsto (li avete installati? la vostra distro come li chiama?), non si sa cosa premere (vedi sotto).

Per aprire il terminale: Win+INVIO.
Per lanciare Firefox: Win+Barra e poi scrivere Firefox e premere INVIO.
Per chiudere una finestra: Win+Ctrl+Q.
Per aprire il config di Herbstluftwm: aprire il terminale e poi "conf-hb". Con "conf-poly" si apre il config di Polybar. Questi "alias" sono definiti nel file .bashrc che avete installato.

Happy Linux!

Riccardo
21 changes: 21 additions & 0 deletions Herbstluft-KDE-Desktop/home/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# ~/.bashrc
#
# Riccardo Palombo - https://riccardo.im
# Preparato per la community Patreon: patreon.com/riccardopalombo
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto -a'
alias conf-hb='micro ~/.config/herbstluftwm/autostart'
alias conf-poly='micro ~/.config/polybar/config.ini'
alias conf-picom='micro ~/.config/picom.conf'
alias nano='micro'
alias hc='herbstclient'
# PS1='[\u@\h \W]\$ '
PS1="\[\e[1;34m\]\w\[\e[m\]\ \[\e[1;31m\]>\[\e[m\]\[\e[1;33m\]>\[\e[m\]\[\e[1;36m\]>\[\e[m\] "

# Completion for herbstclient
source /usr/share/bash-completion/completions/herbstclient
complete -F _herbstclient_complete -o nospace hc
177 changes: 177 additions & 0 deletions Herbstluft-KDE-Desktop/home/.config/herbstluftwm/autostart
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
#!/usr/bin/env bash
#
# Riccardo Palombo - https://riccardo.im
# Preparato per la community Patreon: patreon.com/riccardopalombo
#
# Config per herbstluftwm con KDE Plasma

hc() {
herbstclient "$@"
}

hc emit_hook reload

#xsetroot -solid '#303030'
#feh --bg-fill ~/Immagini/void.png

hc keyunbind --all
Mod=Mod4 # Tasto Windows / Mod1 per usare Alt
myTerm=konsole # Terminale preferito
myFM=dolphin # File manager preferito
myBorderOne='#262626' # Colore bordo primario
myBorderTwo='#303030' # Colore bordo secondario

hc keybind $Mod-Alt-q quit
hc keybind $Mod-Shift-r reload
hc keybind $Mod-Shift-q close
hc keybind $Mod-Return spawn $myTerm
hc keybind $Mod-t spawn $myFM
hc keybind $Mod-space spawn rofi -show drun -display-run "" -drun-display-format {name}
hc keybind $Mod-Alt-space spawn rofi -modi todo:~/.config/rofi/rofi-todo.sh -show todo
hc keybind $Mod-Control-space spawn ~/.config/polybar/scripts/powermenu-alt

# focusing clients
hc keybind $Mod-Left focus left
hc keybind $Mod-Down focus down
hc keybind $Mod-Up focus up
hc keybind $Mod-Right focus right

# moving clients in tiling and floating mode
hc keybind $Mod-Shift-Left shift left
hc keybind $Mod-Shift-Down shift down
hc keybind $Mod-Shift-Up shift up
hc keybind $Mod-Shift-Right shift right

# splitting frames
# dividi il frame attuale nella direzione richiesta
# e seleziona la nuova parte
hc keybind $Mod-u chain , split bottom 0.60 , focus down
hc keybind $Mod-o chain , split right 0.5 , focus right

# let the current frame explode into subframes
#hc keybind $Mod-Control-space split explode

# resizing frames and floating clients
resizestep=0.04
hc keybind $Mod-Control-Left resize left +$resizestep
hc keybind $Mod-Control-Down resize down +$resizestep
hc keybind $Mod-Control-Up resize up +$resizestep
hc keybind $Mod-Control-Right resize right +$resizestep

# tags
tag_names=( {1..7} )
tag_keys=( {1..7} 0 )

hc rename default "${tag_names[0]}" || true
for i in "${!tag_names[@]}" ; do
hc add "${tag_names[$i]}"
key="${tag_keys[$i]}"
if ! [ -z "$key" ] ; then
hc keybind "$Mod-$key" use_index "$i"
hc keybind "$Mod-Shift-$key" move_index "$i"
fi
done

# cycle through tags (per replicare scorciatoie Gnome)
hc keybind Control-Alt-Up use_index -1
hc keybind Control-Alt-Down use_index +1

# layouting
hc keybind $Mod-r remove
#hc keybind $Mod-s floating toggle # Rendere tutto float
hc keybind $Mod-f fullscreen toggle # Rendere un frame fullscreen
hc keybind $Mod-Shift-f set_attr clients.focus.floating toggle # Rendere float il frame attivo
hc keybind $Mod-p pseudotile toggle

# The following cycles through the available layouts within a frame, but skips
# layouts, if the layout change wouldn't affect the actual window positions.
# I.e. if there are two windows within a frame, the grid layout is skipped.
# Cicla i layout nel frame selezioato (verticale, orizzonale, massimizzato, griglia)
hc keybind $Mod-Shift-space \
or , and . compare tags.focus.curframe_wcount = 2 \
. cycle_layout +1 vertical horizontal max vertical grid \
, cycle_layout +1

# mouse (valido solo su finestre float)
hc mouseunbind --all
hc mousebind $Mod-Button1 move
hc mousebind $Mod-Button2 zoom
hc mousebind $Mod-Button3 resize

# focus (spostare il focus su monitor e finestre)
#hc keybind $Mod-BackSpace cycle_monitor
hc keybind $Mod-Tab cycle_all +1
hc keybind $Mod-Shift-Tab cycle_all -1
#hc keybind $Mod-c cycle
hc keybind $Mod-i jumpto urgent

# theme (da ottimizzare)
hc attr theme.tiling.reset 1
hc attr theme.floating.reset 1
hc set frame_border_active_color '#d7d7af'
hc set frame_border_normal_color $myBorderOne
hc set frame_bg_normal_color $myBorderOne
hc set frame_bg_active_color $myBorderOne
hc set frame_border_width 0
hc set always_show_frame 0
hc set frame_bg_transparent 1
hc set frame_transparent_width 0
hc set frame_gap -2
hc set frame_padding 0

hc attr theme.active.color $myBorderOne
hc attr theme.normal.color $myBorderOne
hc attr theme.urgent.color $myBorderOne
hc attr theme.inner_width 0
hc attr theme.inner_color $myBorderOne
hc attr theme.border_width 30
hc attr theme.active.inner_color $myBorderOne
hc attr theme.active.outer_color $myBorderOne
hc attr theme.background_color $myBorderOne
hc attr theme.floating.border_width 28
hc attr theme.floating.outer_width 2
hc attr theme.floating.outer_color $myBorderTwo
hc attr theme.floating.active.inner_color $myBorderOne
hc attr theme.floating.active.inner_width 30
hc attr theme.floating.active.outer_color $myBorderTwo

hc set window_gap 2
hc set smart_window_surroundings 0
hc set smart_frame_surroundings 0
hc set mouse_recenter_gap 0
hc set focus_crosses_monitor_boundaries 1
hc set swap_monitors_to_get_tag 1

# rules
hc unrule -F
hc rule class='Gimp-2.10' tag=4
hc rule class='Code - OSS' tag=3

hc rule focus=on
hc set focus_follows_mouse 1

# give focus to most common terminals
hc rule class~'(.*[Rr]xvt.*|.*[Tt]erm|Konsole)' focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on
hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on
hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off

hc set tree_style '╾│ ├└╼─┐'

# unlock, just to be sure
hc unlock

# do multi monitor setup here
# hc set_monitors 1920x1080+0+0 3440x1404+1920+0
# or simply:
hc detect_monitors


# find the panel (avvia Polybar e lascia il suo panel come backup)
panel=~/.config/polybar/launch.sh
[ -x "$panel" ] || panel=/etc/xdg/herbstluftwm/panel.sh
for monitor in $(hc list_monitors | cut -d: -f1) ; do
# start it on each monitor
"$panel" "$monitor" &
hc pad 1 0 0 36 0 # padding bottom per Polybar
done
3 changes: 3 additions & 0 deletions Herbstluft-KDE-Desktop/home/.config/ksplashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[KSplash]
Engine=none
Theme=None
80 changes: 80 additions & 0 deletions Herbstluft-KDE-Desktop/home/.config/polybar/config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#
# Riccardo Palombo - https://riccardo.im
# Preparato per la community Patreon: patreon.com/riccardopalombo
#
# Polybar
#

[color]
bg = #262626
fg = #d7d7af
ac = #303030
mf = #383838

[global/wm]
margin-bottom = 0
margin-top = 0
include-file = ~/.config/polybar/modules.ini

[bar/main]
; $ polybar -m | cut -d ':' -f 1 o $ xrandr -q | grep " connected" | cut -d ' ' -f1
; lasciare vuoti i campi monitor sotto se non si conosce il loro nome
; monitor = DisplayPort-0
; monitor-fallback = HDMI-A-0
monitor-strict = false

override-redirect = true
bottom = true
fixed-center = true
width = 100%
height = 36
offset-x = 0%
offset-y = 0%:

background = ${color.bg}
foreground = ${color.fg}
radius-top = 0.0
radius-bottom = 0.0
overline-size = 6
underline-size = 6
overline-color = ${color.bg}
underline-color = ${color.bg}
border-top-size = 2
border-color = ${color.ac}
padding = 6
module-margin-left = 0
module-margin-right = 0

font-0 = "Roboto Condensed:size=10;3"
font-1 = "FontAwesome:size=11;4"

modules-left = sysmenu title
modules-center = hlwm
modules-right = settings redshift keyboard cpu memory alsa network calendar

spacing = 0
dim-value = 1.0
tray-position = none
tray-detached = false
tray-maxsize = 16
tray-transparent = false
tray-offset-x = 0
tray-offset-y = 0
tray-padding = 0
tray-scale = 1.0

;; Cambio di tag con rotellina del mouse
scroll-up = herbstclient use_index -1 --skip-visible
scroll-down = herbstclient use_index +1 --skip-visible

[settings]
throttle-output = 5
throttle-output-for = 10
throttle-input-for = 30
screenchange-reload = false
compositing-background = source
compositing-foreground = over
compositing-overline = over
compositing-underline = over
compositing-border = over
pseudo-transparency = false
13 changes: 13 additions & 0 deletions Herbstluft-KDE-Desktop/home/.config/polybar/launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

## Add this to your wm startup file.

# Terminate already running bar instances
killall -q polybar

# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done

# Launch bar
polybar -c ~/.config/polybar/config.ini main &

Loading

0 comments on commit 43fcfba

Please sign in to comment.